git.iko.soy/rowtype-yoga/purescript-yoga-daisyui
on main help sign in
Fix deployment: update yoga-stories to 0.1.8, pin spago ref
commitd80bd727cb9c458c30b412d7ec096d313f7040ed authorMark <mark.eibes@gmail.com> dateFri 20 Feb 2026, 15:41 (7 months ago) parent902fa1f
1082 files changed+71363−7
bun.lock+2−2 dist/assets/index-BeC2O_nG.js+15 dist/assets/index-DnAXTA8P.js+1 dist/assets/index-Dts5fPNe.js+8 dist/assets/index-mEb4lrc-.css+1 dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff dist/index.html+14 dist/stories.json+1 output-es/Control.Alt/index.js+5 output-es/Control.Alternative/index.js+11 output-es/Control.Applicative.Indexed/index.js+12 output-es/Control.Applicative/index.js+18 output-es/Control.Apply.Indexed/index.js+6 output-es/Control.Apply/foreign.js+15 output-es/Control.Apply/index.js+17 output-es/Control.Biapplicative/index.js+5 output-es/Control.Biapply/index.js+11 output-es/Control.Bind.Indexed/index.js+9 output-es/Control.Bind/foreign.js+21 output-es/Control.Bind/index.js+21 output-es/Control.Category/index.js+4 output-es/Control.Comonad.Cofree.Class/index.js+43 output-es/Control.Comonad.Cofree/index.js+255 output-es/Control.Comonad.Env.Class/index.js+55 output-es/Control.Comonad.Env.Trans/index.js+113 output-es/Control.Comonad.Env/index.js+8 output-es/Control.Comonad.Store.Class/index.js+56 output-es/Control.Comonad.Store.Trans/index.js+27 output-es/Control.Comonad.Store/index.js+5 output-es/Control.Comonad.Traced.Class/index.js+62 output-es/Control.Comonad.Traced.Trans/index.js+28 output-es/Control.Comonad.Traced/index.js+4 output-es/Control.Comonad.Trans.Class/index.js+5 output-es/Control.Comonad/index.js+2 output-es/Control.Extend/foreign.js+7 output-es/Control.Extend/index.js+12 output-es/Control.Lazy/index.js+10 output-es/Control.Monad.Cont.Class/index.js+3 output-es/Control.Monad.Cont.Trans/index.js+134 output-es/Control.Monad.Cont/index.js+6 output-es/Control.Monad.Error.Class/index.js+83 output-es/Control.Monad.Except.Trans/index.js+247 output-es/Control.Monad.Except/index.js+10 output-es/Control.Monad.Free.Class/index.js+45 output-es/Control.Monad.Free/index.js+423 output-es/Control.Monad.Gen.Class/index.js+6 output-es/Control.Monad.Gen.Common/index.js+44 output-es/Control.Monad.Gen/index.js+132 output-es/Control.Monad.Identity.Trans/index.js+102 output-es/Control.Monad.Indexed.Qualified/index.js+27 output-es/Control.Monad.Indexed/index.js+21 output-es/Control.Monad.List.Trans/index.js+548 output-es/Control.Monad.Maybe.Trans/index.js+223 output-es/Control.Monad.RWS.Trans/index.js+275 output-es/Control.Monad.RWS/index.js+16 output-es/Control.Monad.Reader.Class/index.js+11 output-es/Control.Monad.Reader.Trans/index.js+331 output-es/Control.Monad.Reader/index.js+6 output-es/Control.Monad.Rec.Class/index.js+265 output-es/Control.Monad.ST.Class/index.js+7 output-es/Control.Monad.ST.Global/index.js+3 output-es/Control.Monad.ST.Internal/foreign.js+90 output-es/Control.Monad.ST.Internal/index.js+75 output-es/Control.Monad.ST.Ref/index.js+1 output-es/Control.Monad.ST.Uncurried/foreign.js+229 output-es/Control.Monad.ST.Uncurried/index.js+39 output-es/Control.Monad.ST/index.js+1 output-es/Control.Monad.State.Class/index.js+12 output-es/Control.Monad.State.Trans/index.js+221 output-es/Control.Monad.State/index.js+8 output-es/Control.Monad.Trampoline/index.js+9 output-es/Control.Monad.Trans.Class/index.js+3 output-es/Control.Monad.Writer.Class/index.js+14 output-es/Control.Monad.Writer.Trans/index.js+266 output-es/Control.Monad.Writer/index.js+6 output-es/Control.Monad/index.js+27 output-es/Control.MonadPlus/index.js+4 output-es/Control.Parallel.Class/index.js+191 output-es/Control.Parallel/index.js+49 output-es/Control.Plus/index.js+4 output-es/Control.Promise/foreign.js+24 output-es/Control.Promise/index.js+40 output-es/Control.Semigroupoid/index.js+4 output-es/DaisyUI.Accordion.Stories/index.js+54 output-es/DaisyUI.Accordion/index.js+9 output-es/DaisyUI.Alert.Stories/index.js+35 output-es/DaisyUI.Alert/index.js+11 output-es/DaisyUI.Avatar.Stories/index.js+138 output-es/DaisyUI.Avatar/index.js+7 output-es/DaisyUI.Badge.Stories/index.js+59 output-es/DaisyUI.Badge/index.js+19 output-es/DaisyUI.Breadcrumbs.Stories/index.js+30 output-es/DaisyUI.Breadcrumbs/index.js+9 output-es/DaisyUI.Button.Stories/index.js+52 output-es/DaisyUI.Button/index.js+55 output-es/DaisyUI.Card.Stories/index.js+45 output-es/DaisyUI.Card/index.js+11 output-es/DaisyUI.Carousel.Stories/index.js+41 output-es/DaisyUI.Carousel/index.js+7 output-es/DaisyUI.Chat.Stories/index.js+82 output-es/DaisyUI.Chat/index.js+15 output-es/DaisyUI.Checkbox.Stories/index.js+52 output-es/DaisyUI.Checkbox/index.js+13 output-es/DaisyUI.Countdown.Stories/index.js+25 output-es/DaisyUI.Countdown/index.js+7 output-es/DaisyUI.Diff.Stories/index.js+33 output-es/DaisyUI.Diff/index.js+7 output-es/DaisyUI.Divider.Stories/index.js+22 output-es/DaisyUI.Divider/index.js+27 output-es/DaisyUI.Dock.Stories/index.js+36 output-es/DaisyUI.Dock/index.js+13 output-es/DaisyUI.Drawer.Stories/index.js+42 output-es/DaisyUI.Drawer/index.js+8 output-es/DaisyUI.Dropdown.Stories/index.js+30 output-es/DaisyUI.Dropdown/index.js+12 output-es/DaisyUI.Fab.Stories/index.js+25 output-es/DaisyUI.Fab/index.js+7 output-es/DaisyUI.FileInput.Stories/index.js+26 output-es/DaisyUI.FileInput/index.js+15 output-es/DaisyUI.Filter.Stories/index.js+26 output-es/DaisyUI.Filter/index.js+4 output-es/DaisyUI.Footer.Stories/index.js+53 output-es/DaisyUI.Footer/index.js+8 output-es/DaisyUI.FormControl.Stories/index.js+27 output-es/DaisyUI.FormControl/index.js+16 output-es/DaisyUI.Hero.Stories/index.js+40 output-es/DaisyUI.Hero/index.js+5 output-es/DaisyUI.Indicator.Stories/index.js+51 output-es/DaisyUI.Indicator/index.js+10 output-es/DaisyUI.Input.Stories/index.js+52 output-es/DaisyUI.Input/index.js+15 output-es/DaisyUI.Kbd.Stories/index.js+46 output-es/DaisyUI.Kbd/index.js+7 output-es/DaisyUI.Label.Stories/index.js+31 output-es/DaisyUI.Label/index.js+6 output-es/DaisyUI.Link.Stories/index.js+25 output-es/DaisyUI.Link/index.js+11 output-es/DaisyUI.List.Stories/index.js+99 output-es/DaisyUI.List/index.js+8 output-es/DaisyUI.Loading.Stories/index.js+37 output-es/DaisyUI.Loading/index.js+13 output-es/DaisyUI.Mask.Stories/index.js+55 output-es/DaisyUI.Mask/index.js+46 output-es/DaisyUI.Menu.Stories/index.js+60 output-es/DaisyUI.Menu/index.js+28 output-es/DaisyUI.MockupBrowser.Stories/index.js+21 output-es/DaisyUI.MockupBrowser/index.js+4 output-es/DaisyUI.MockupCode.Stories/index.js+41 output-es/DaisyUI.MockupCode/index.js+9 output-es/DaisyUI.MockupPhone.Stories/index.js+13 output-es/DaisyUI.MockupPhone/index.js+10 output-es/DaisyUI.MockupWindow.Stories/index.js+14 output-es/DaisyUI.MockupWindow/index.js+3 output-es/DaisyUI.Modal.Stories/index.js+28 output-es/DaisyUI.Modal/foreign.js+7 output-es/DaisyUI.Modal/index.js+13 output-es/DaisyUI.Navbar.Stories/index.js+57 output-es/DaisyUI.Navbar/index.js+6 output-es/DaisyUI.Pagination.Stories/index.js+34 output-es/DaisyUI.Pagination/index.js+5 output-es/DaisyUI.Progress.Stories/index.js+27 output-es/DaisyUI.Progress/index.js+9 output-es/DaisyUI.RadialProgress.Stories/index.js+20 output-es/DaisyUI.RadialProgress/index.js+3 output-es/DaisyUI.Radio.Stories/index.js+44 output-es/DaisyUI.Radio/index.js+13 output-es/DaisyUI.Range.Stories/index.js+29 output-es/DaisyUI.Range/index.js+13 output-es/DaisyUI.Rating.Stories/index.js+63 output-es/DaisyUI.Rating/index.js+8 output-es/DaisyUI.Select.Stories/index.js+60 output-es/DaisyUI.Select/index.js+15 output-es/DaisyUI.Skeleton.Stories/index.js+31 output-es/DaisyUI.Skeleton/index.js+3 output-es/DaisyUI.Stack.Stories/index.js+42 output-es/DaisyUI.Stack/index.js+3 output-es/DaisyUI.Stat.Stories/index.js+83 output-es/DaisyUI.Stat/index.js+10 output-es/DaisyUI.Status.Stories/index.js+61 output-es/DaisyUI.Status/index.js+16 output-es/DaisyUI.Steps.Stories/index.js+56 output-es/DaisyUI.Steps/index.js+15 output-es/DaisyUI.Swap.Stories/index.js+42 output-es/DaisyUI.Swap/index.js+8 output-es/DaisyUI.Table.Stories/index.js+143 output-es/DaisyUI.Table/index.js+28 output-es/DaisyUI.Tabs.Stories/index.js+66 output-es/DaisyUI.Tabs/index.js+13 output-es/DaisyUI.TextRotate.Stories/index.js+31 output-es/DaisyUI.TextRotate/index.js+4 output-es/DaisyUI.Textarea.Stories/index.js+35 output-es/DaisyUI.Textarea/index.js+15 output-es/DaisyUI.ThemeController.Stories/index.js+63 output-es/DaisyUI.ThemeController/index.js+2 output-es/DaisyUI.Timeline.Stories/index.js+75 output-es/DaisyUI.Timeline/index.js+12 output-es/DaisyUI.Toast.Stories/index.js+31 output-es/DaisyUI.Toast/index.js+9 output-es/DaisyUI.Toggle.Stories/index.js+58 output-es/DaisyUI.Toggle/index.js+13 output-es/DaisyUI.Tooltip.Stories/index.js+67 output-es/DaisyUI.Tooltip/index.js+14 output-es/DaisyUI.Validator.Stories/index.js+45 output-es/DaisyUI.Validator/index.js+4 output-es/DaisyUI/index.js+1 output-es/Data.Array.NonEmpty.Internal/foreign.js+77 output-es/Data.Array.NonEmpty.Internal/index.js+90 output-es/Data.Array.NonEmpty/index.js+317 output-es/Data.Array.Partial/index.js+7 output-es/Data.Array.ST.Iterator/index.js+83 output-es/Data.Array.ST.Partial/foreign.js+7 output-es/Data.Array.ST.Partial/index.js+9 output-es/Data.Array.ST/foreign.js+113 output-es/Data.Array.ST/index.js+86 output-es/Data.Array/foreign.js+298 output-es/Data.Array/index.js+556 output-es/Data.ArrayBuffer.Types/index.js+1 output-es/Data.Bifoldable/index.js+149 output-es/Data.Bifunctor.Join/index.js+21 output-es/Data.Bifunctor/index.js+18 output-es/Data.Bitraversable/index.js+195 output-es/Data.Boolean/index.js+2 output-es/Data.BooleanAlgebra/index.js+42 output-es/Data.Bounded.Generic/index.js+37 output-es/Data.Bounded/foreign.js+8 output-es/Data.Bounded/index.js+76 output-es/Data.CatList/index.js+326 output-es/Data.CatQueue/index.js+364 output-es/Data.Char.Gen/index.js+21 output-es/Data.Char/index.js+5 output-es/Data.CommutativeRing/index.js+49 output-es/Data.Comparison/index.js+22 output-es/Data.Const/index.js+56 output-es/Data.Coyoneda/index.js+212 output-es/Data.Date.Component.Gen/index.js+11 output-es/Data.Date.Component/index.js+451 output-es/Data.Date.Gen/index.js+25 output-es/Data.Date/foreign.js+22 output-es/Data.Date/index.js+370 output-es/Data.DateTime.Gen/index.js+8 output-es/Data.DateTime.Instant/foreign.js+18 output-es/Data.DateTime.Instant/index.js+86 output-es/Data.DateTime/foreign.js+33 output-es/Data.DateTime/index.js+131 output-es/Data.Decidable/index.js+70 output-es/Data.Decide/index.js+64 output-es/Data.Distributive/index.js+55 output-es/Data.Divide/index.js+47 output-es/Data.Divisible/index.js+17 output-es/Data.DivisionRing/index.js+6 output-es/Data.Either.Inject/index.js+25 output-es/Data.Either.Nested/index.js+450 output-es/Data.Either/index.js+242 output-es/Data.Enum.Gen/index.js+19 output-es/Data.Enum.Generic/index.js+211 output-es/Data.Enum/foreign.js+7 output-es/Data.Enum/index.js+441 output-es/Data.Eq.Generic/index.js+16 output-es/Data.Eq/foreign.js+23 output-es/Data.Eq/index.js+33 output-es/Data.Equivalence/index.js+8 output-es/Data.EuclideanRing/foreign.js+26 output-es/Data.EuclideanRing/index.js+25 output-es/Data.Exists/index.js+4 output-es/Data.Field/index.js+2 output-es/Data.Foldable/foreign.js+25 output-es/Data.Foldable/index.js+394 output-es/Data.FoldableWithIndex/index.js+431 output-es/Data.Function.Memoize/index.js+242 output-es/Data.Function.Uncurried/foreign.js+218 output-es/Data.Function.Uncurried/index.js+5 output-es/Data.Function/index.js+23 output-es/Data.Functor.App/index.js+87 output-es/Data.Functor.Clown/index.js+24 output-es/Data.Functor.Compose/index.js+131 output-es/Data.Functor.Contravariant/index.js+7 output-es/Data.Functor.Coproduct.Inject/index.js+25 output-es/Data.Functor.Coproduct.Nested/index.js+433 output-es/Data.Functor.Coproduct/index.js+171 output-es/Data.Functor.Costar/index.js+82 output-es/Data.Functor.Flip/index.js+31 output-es/Data.Functor.Indexed/index.js+5 output-es/Data.Functor.Invariant/index.js+14 output-es/Data.Functor.Joker/index.js+88 output-es/Data.Functor.Product.Nested/index.js+46 output-es/Data.Functor.Product/index.js+127 output-es/Data.Functor.Product2/index.js+46 output-es/Data.Functor.Variant/index.js+232 output-es/Data.Functor/foreign.js+10 output-es/Data.Functor/index.js+14 output-es/Data.FunctorWithIndex/foreign.js+10 output-es/Data.FunctorWithIndex/index.js+147 output-es/Data.Generic.Rep/index.js+31 output-es/Data.HeytingAlgebra.Generic/index.js+76 output-es/Data.HeytingAlgebra/foreign.js+15 output-es/Data.HeytingAlgebra/index.js+104 output-es/Data.Identity/index.js+54 output-es/Data.Indexed/index.js+74 output-es/Data.Int.Bits/foreign.js+48 output-es/Data.Int.Bits/index.js+4 output-es/Data.Int/foreign.js+65 output-es/Data.Int/index.js+122 output-es/Data.Interval.Duration.Iso/index.js+423 output-es/Data.Interval.Duration/index.js+124 output-es/Data.Interval/index.js+331 output-es/Data.JSDate/foreign.js+83 output-es/Data.JSDate/index.js+123 output-es/Data.Lazy/foreign.js+14 output-es/Data.Lazy/index.js+143 output-es/Data.List.Internal/index.js+155 output-es/Data.List.Lazy.NonEmpty/index.js+77 output-es/Data.List.Lazy.Types/index.js+511 output-es/Data.List.Lazy/index.js+658 output-es/Data.List.NonEmpty/index.js+540 output-es/Data.List.Partial/index.js+37 output-es/Data.List.Types/index.js+841 output-es/Data.List.ZipList/index.js+43 output-es/Data.List/index.js+1505 output-es/Data.Map.Gen/index.js+15 output-es/Data.Map.Internal/index.js+1234 output-es/Data.Map/index.js+80 output-es/Data.Maybe.First/index.js+85 output-es/Data.Maybe.Last/index.js+86 output-es/Data.Maybe/index.js+253 output-es/Data.MediaType.Common/index.js+30 output-es/Data.MediaType/index.js+8 output-es/Data.Monoid.Additive/index.js+33 output-es/Data.Monoid.Alternate/index.js+46 output-es/Data.Monoid.Conj/index.js+21 output-es/Data.Monoid.Disj/index.js+21 output-es/Data.Monoid.Dual/index.js+19 output-es/Data.Monoid.Endo/index.js+12 output-es/Data.Monoid.Generic/index.js+11 output-es/Data.Monoid.Multiplicative/index.js+33 output-es/Data.Monoid/index.js+66 output-es/Data.NaturalTransformation/index.js+1 output-es/Data.Newtype/index.js+51 output-es/Data.NonEmpty/index.js+217 output-es/Data.Nullable/foreign.js+12 output-es/Data.Nullable/index.js+53 output-es/Data.Number.Approximate/index.js+13 output-es/Data.Number.Format/foreign.js+12 output-es/Data.Number.Format/index.js+53 output-es/Data.Number/foreign.js+80 output-es/Data.Number/index.js+15 output-es/Data.Op/index.js+13 output-es/Data.Ord.Down/index.js+35 output-es/Data.Ord.Generic/index.js+34 output-es/Data.Ord.Max/index.js+34 output-es/Data.Ord.Min/index.js+34 output-es/Data.Ord/foreign.js+43 output-es/Data.Ord/index.js+161 output-es/Data.Ordering/index.js+35 output-es/Data.Posix.Signal/index.js+405 output-es/Data.Posix/index.js+19 output-es/Data.Predicate/index.js+14 output-es/Data.Profunctor.Choice/index.js+26 output-es/Data.Profunctor.Closed/index.js+5 output-es/Data.Profunctor.Cochoice/index.js+3 output-es/Data.Profunctor.Costrong/index.js+3 output-es/Data.Profunctor.Join/index.js+13 output-es/Data.Profunctor.Split/index.js+11 output-es/Data.Profunctor.Star/index.js+250 output-es/Data.Profunctor.Strong/index.js+13 output-es/Data.Profunctor/index.js+13 output-es/Data.Reflectable/foreign.js+5 output-es/Data.Reflectable/index.js+10 output-es/Data.Ring.Generic/index.js+10 output-es/Data.Ring/foreign.js+12 output-es/Data.Ring/index.js+50 output-es/Data.Semigroup.First/index.js+14 output-es/Data.Semigroup.Foldable/index.js+143 output-es/Data.Semigroup.Generic/index.js+11 output-es/Data.Semigroup.Last/index.js+14 output-es/Data.Semigroup.Traversable/index.js+39 output-es/Data.Semigroup/foreign.js+13 output-es/Data.Semigroup/index.js+25 output-es/Data.Semiring.Generic/index.js+52 output-es/Data.Semiring/foreign.js+25 output-es/Data.Semiring/index.js+66 output-es/Data.Set.NonEmpty/index.js+198 output-es/Data.Set/index.js+310 output-es/Data.Show.Generic/foreign.js+5 output-es/Data.Show.Generic/index.js+43 output-es/Data.Show/foreign.js+59 output-es/Data.Show/index.js+56 output-es/Data.String.CaseInsensitive/index.js+12 output-es/Data.String.CodePoints/foreign.js+107 output-es/Data.String.CodePoints/index.js+201 output-es/Data.String.CodeUnits/foreign.js+116 output-es/Data.String.CodeUnits/index.js+55 output-es/Data.String.Common/foreign.js+52 output-es/Data.String.Common/index.js+6 output-es/Data.String.Gen/index.js+26 output-es/Data.String.NonEmpty.CaseInsensitive/index.js+12 output-es/Data.String.NonEmpty.CodePoints/index.js+89 output-es/Data.String.NonEmpty.CodeUnits/index.js+98 output-es/Data.String.NonEmpty.Internal/index.js+119 output-es/Data.String.NonEmpty/index.js+1 output-es/Data.String.Pattern/index.js+13 output-es/Data.String.Regex.Flags/index.js+44 output-es/Data.String.Regex.Unsafe/index.js+10 output-es/Data.String.Regex/foreign.js+103 output-es/Data.String.Regex/index.js+28 output-es/Data.String.Unsafe/foreign.js+11 output-es/Data.String.Unsafe/index.js+4 output-es/Data.String/index.js+1 output-es/Data.Symbol/foreign.js+6 output-es/Data.Symbol/index.js+6 output-es/Data.Time.Component.Gen/index.js+7 output-es/Data.Time.Component/index.js+138 output-es/Data.Time.Duration.Gen/index.js+7 output-es/Data.Time.Duration/index.js+95 output-es/Data.Time.Gen/index.js+8 output-es/Data.Time/index.js+119 output-es/Data.Traversable.Accum.Internal/index.js+35 output-es/Data.Traversable.Accum/index.js+1 output-es/Data.Traversable/foreign.js+52 output-es/Data.Traversable/index.js+303 output-es/Data.TraversableWithIndex/index.js+280 output-es/Data.Tuple.Nested/index.js+290 output-es/Data.Tuple/index.js+194 output-es/Data.Undefined.NoProblem.Closed/index.js+43 output-es/Data.Undefined.NoProblem.Open/index.js+57 output-es/Data.Undefined.NoProblem/foreign.js+2 output-es/Data.Undefined.NoProblem/index.js+104 output-es/Data.Unfoldable/foreign.js+21 output-es/Data.Unfoldable/index.js+45 output-es/Data.Unfoldable1/foreign.js+21 output-es/Data.Unfoldable1/index.js+39 output-es/Data.Unit/foreign.js+1 output-es/Data.Unit/index.js+3 output-es/Data.Variant.Internal/index.js+332 output-es/Data.Variant/index.js+265 output-es/Data.Void/index.js+12 output-es/Data.Yoneda/index.js+85 output-es/Effect.Aff.Class/index.js+114 output-es/Effect.Aff.Compat/index.js+14 output-es/Effect.Aff/foreign.js+1154 output-es/Effect.Aff/index.js+268 output-es/Effect.Class.Console/index.js+25 output-es/Effect.Class/index.js+4 output-es/Effect.Console/foreign.js+67 output-es/Effect.Console/index.js+17 output-es/Effect.Exception.Unsafe/index.js+4 output-es/Effect.Exception/foreign.js+59 output-es/Effect.Exception/index.js+14 output-es/Effect.Now/foreign.js+8 output-es/Effect.Now/index.js+16 output-es/Effect.Ref/foreign.js+37 output-es/Effect.Ref/index.js+34 output-es/Effect.Uncurried/foreign.js+229 output-es/Effect.Uncurried/index.js+386 output-es/Effect.Unsafe/foreign.js+3 output-es/Effect.Unsafe/index.js+3 output-es/Effect/foreign.js+51 output-es/Effect/index.js+49 output-es/Examples.Button.Stories/index.js+71 output-es/Examples.Button/index.js+59 output-es/Examples.Card.Stories/index.js+55 output-es/Examples.Card/index.js+16 output-es/Examples.Progress.Stories/index.js+12 output-es/Examples.Progress/index.js+32 output-es/ExitCodes/index.js+461 output-es/Foreign.Index/foreign.js+11 output-es/Foreign.Index/index.js+80 output-es/Foreign.Keys/foreign.js+9 output-es/Foreign.Keys/index.js+28 output-es/Foreign.Object.Gen/index.js+13 output-es/Foreign.Object.ST.Unsafe/foreign.js+5 output-es/Foreign.Object.ST.Unsafe/index.js+3 output-es/Foreign.Object.ST/foreign.js+37 output-es/Foreign.Object.ST/index.js+9 output-es/Foreign.Object.Unsafe/foreign.js+5 output-es/Foreign.Object.Unsafe/index.js+3 output-es/Foreign.Object/foreign.js+116 output-es/Foreign.Object/index.js+304 output-es/Foreign/foreign.js+19 output-es/Foreign/index.js+171 output-es/ForgetMeNot/index.js+1 output-es/JS.BigInt/foreign.js+124 output-es/JS.BigInt/index.js+77 output-es/Literals.Boolean/index.js+3 output-es/Literals.Int/index.js+24 output-es/Literals.Literal/index.js+5 output-es/Literals.Null/foreign.js+1 output-es/Literals.Null/index.js+5 output-es/Literals.Number/index.js+17 output-es/Literals.String/index.js+3 output-es/Literals.Undefined/foreign.js+1 output-es/Literals.Undefined/index.js+6 output-es/Literals/index.js+1 output-es/Node.Buffer.Class/index.js+48 output-es/Node.Buffer.Constants/foreign.js+5 output-es/Node.Buffer.Constants/index.js+3 output-es/Node.Buffer.Immutable/foreign.js+45 output-es/Node.Buffer.Immutable/index.js+121 output-es/Node.Buffer.ST/index.js+98 output-es/Node.Buffer.Types/index.js+36 output-es/Node.Buffer/foreign.js+33 output-es/Node.Buffer/index.js+191 output-es/Node.Encoding/foreign.js+3 output-es/Node.Encoding/index.js+55 output-es/Node.EventEmitter.UtilTypes/index.js+1 output-es/Node.EventEmitter/foreign.js+24 output-es/Node.EventEmitter/index.js+142 output-es/Node.FS.Aff/index.js+134 output-es/Node.FS.Async/foreign.js+28 output-es/Node.FS.Async/index.js+241 output-es/Node.FS.Constants/foreign.js+17 output-es/Node.FS.Constants/index.js+103 output-es/Node.FS.Perms/index.js+125 output-es/Node.FS.Stats/foreign.js+27 output-es/Node.FS.Stats/index.js+102 output-es/Node.FS.Stream/foreign.js+11 output-es/Node.FS.Stream/index.js+20 output-es/Node.FS.Sync/foreign.js+30 output-es/Node.FS.Sync/index.js+258 output-es/Node.FS/index.js+27 output-es/Node.Path/foreign.js+30 output-es/Node.Path/index.js+3 output-es/Node.Platform/index.js+104 output-es/Node.Process/foreign.js+65 output-es/Node.Process/index.js+180 output-es/Node.Stream.Aff/index.js+445 output-es/Node.Stream/foreign.js+97 output-es/Node.Stream/index.js+310 output-es/Node.Symbol/foreign.js+3 output-es/Node.Symbol/index.js+12 output-es/Options.Applicative.BashCompletion/index.js+395 output-es/Options.Applicative.Builder.Completer/foreign.js+8 output-es/Options.Applicative.Builder.Completer/index.js+133 output-es/Options.Applicative.Builder.Internal/index.js+116 output-es/Options.Applicative.Builder/index.js+306 output-es/Options.Applicative.Common/index.js+497 output-es/Options.Applicative.Extra/index.js+274 output-es/Options.Applicative.Help.Chunk/index.js+229 output-es/Options.Applicative.Help.Core/index.js+401 output-es/Options.Applicative.Help.Levenshtein/index.js+22 output-es/Options.Applicative.Help.Pretty/index.js+1 output-es/Options.Applicative.Help.Types/index.js+112 output-es/Options.Applicative.Help/index.js+3 output-es/Options.Applicative.Internal.Utils/index.js+36 output-es/Options.Applicative.Internal/index.js+447 output-es/Options.Applicative.Types/index.js+967 output-es/Options.Applicative/index.js+1 output-es/Partial.Unsafe/foreign.js+5 output-es/Partial.Unsafe/index.js+8 output-es/Partial/foreign.js+5 output-es/Partial/index.js+6 output-es/Prelude/index.js+13 output-es/Promise.Aff/index.js+55 output-es/Promise.Internal/foreign.js+38 output-es/Promise.Internal/index.js+3 output-es/Promise.Lazy/index.js+131 output-es/Promise.Rejection/foreign.js+10 output-es/Promise.Rejection/index.js+5 output-es/Promise/index.js+13 output-es/React.Basic.DOM.Client/foreign.js+11 output-es/React.Basic.DOM.Client/index.js+3 output-es/React.Basic.DOM.Components.GlobalEvents/foreign.js+95 output-es/React.Basic.DOM.Components.GlobalEvents/index.js+40 output-es/React.Basic.DOM.Components.Ref/foreign.js+41 output-es/React.Basic.DOM.Components.Ref/index.js+21 output-es/React.Basic.DOM.Events/foreign.js+5 output-es/React.Basic.DOM.Events/index.js+122 output-es/React.Basic.DOM.Generated/index.js+1124 output-es/React.Basic.DOM.Internal/foreign.js+34 output-es/React.Basic.DOM.Internal/index.js+9 output-es/React.Basic.DOM.SVG/index.js+770 output-es/React.Basic.DOM.Server/foreign.js+1 output-es/React.Basic.DOM.Server/index.js+3 output-es/React.Basic.DOM.Simplified.Generated/index.js+834 output-es/React.Basic.DOM.Simplified.ToJSX/index.js+23 output-es/React.Basic.DOM/foreign.js+25 output-es/React.Basic.DOM/index.js+15 output-es/React.Basic.Events/index.js+20 output-es/React.Basic.Hooks.Aff/foreign.js+34 output-es/React.Basic.Hooks.Aff/index.js+108 output-es/React.Basic.Hooks.ErrorBoundary/foreign.js+21 output-es/React.Basic.Hooks.ErrorBoundary/index.js+14 output-es/React.Basic.Hooks.Internal/index.js+124 output-es/React.Basic.Hooks.ResetToken/index.js+16 output-es/React.Basic.Hooks.Suspense.Store/index.js+150 output-es/React.Basic.Hooks.Suspense/foreign.js+3 output-es/React.Basic.Hooks.Suspense/index.js+24 output-es/React.Basic.Hooks/foreign.js+144 output-es/React.Basic.Hooks/index.js+159 output-es/React.Basic.StrictMode/foreign.js+2 output-es/React.Basic.StrictMode/index.js+8 output-es/React.Basic/foreign.js+39 output-es/React.Basic/index.js+7 output-es/Record.Builder/foreign.js+44 output-es/Record.Builder/index.js+20 output-es/Record.Unsafe.Union/foreign.js+14 output-es/Record.Unsafe.Union/index.js+4 output-es/Record.Unsafe/foreign.js+38 output-es/Record.Unsafe/index.js+9 output-es/Record/index.js+23 output-es/Safe.Coerce/index.js+3 output-es/Spago.Generated.BuildInfo/index.js+7 output-es/Test.Main/index.js+3 output-es/Text.PrettyPrint.Leijen/index.js+700 output-es/Type.Data.Boolean/index.js+21 output-es/Type.Data.Ordering/index.js+56 output-es/Type.Data.Symbol/index.js+7 output-es/Type.Equality/index.js+5 output-es/Type.Function/index.js+1 output-es/Type.Prelude/index.js+1 output-es/Type.Proxy/index.js+51 output-es/Type.Row.Homogeneous/index.js+4 output-es/Type.Row/index.js+1 output-es/Type.RowList/index.js+10 output-es/Unsafe.Coerce/foreign.js+5 output-es/Unsafe.Coerce/index.js+3 output-es/Unsafe.Reference/foreign.js+5 output-es/Unsafe.Reference/index.js+8 output-es/Untagged.Castable/index.js+21 output-es/Untagged.TypeCheck/foreign.js+9 output-es/Untagged.TypeCheck/index.js+56 output-es/Untagged.Union/index.js+100 output-es/Web.DOM.CharacterData/foreign.js+61 output-es/Web.DOM.CharacterData/index.js+13 output-es/Web.DOM.ChildNode/foreign.js+5 output-es/Web.DOM.ChildNode/index.js+3 output-es/Web.DOM.Comment/index.js+13 output-es/Web.DOM.DOMTokenList/foreign.js+49 output-es/Web.DOM.DOMTokenList/index.js+15 output-es/Web.DOM.Document/foreign.js+112 output-es/Web.DOM.Document/index.js+75 output-es/Web.DOM.DocumentFragment/index.js+13 output-es/Web.DOM.DocumentType/foreign.js+9 output-es/Web.DOM.DocumentType/index.js+11 output-es/Web.DOM.Element/foreign.js+210 output-es/Web.DOM.Element/index.js+101 output-es/Web.DOM.HTMLCollection/foreign.js+27 output-es/Web.DOM.HTMLCollection/index.js+25 output-es/Web.DOM.Internal.Types/index.js+1 output-es/Web.DOM.MutationObserver/foreign.js+29 output-es/Web.DOM.MutationObserver/index.js+4 output-es/Web.DOM.MutationRecord/foreign.js+53 output-es/Web.DOM.MutationRecord/index.js+66 output-es/Web.DOM.Node/foreign.js+153 output-es/Web.DOM.Node/index.js+147 output-es/Web.DOM.NodeList/foreign.js+19 output-es/Web.DOM.NodeList/index.js+15 output-es/Web.DOM.NodeType/index.js+199 output-es/Web.DOM.NonDocumentTypeChildNode/foreign.js+11 output-es/Web.DOM.NonDocumentTypeChildNode/index.js+19 output-es/Web.DOM.NonElementParentNode/foreign.js+7 output-es/Web.DOM.NonElementParentNode/index.js+15 output-es/Web.DOM.ParentNode/foreign.js+28 output-es/Web.DOM.ParentNode/index.js+35 output-es/Web.DOM.ProcessingInstruction/foreign.js+5 output-es/Web.DOM.ProcessingInstruction/index.js+15 output-es/Web.DOM.ShadowRoot/foreign.js+9 output-es/Web.DOM.ShadowRoot/index.js+23 output-es/Web.DOM.Text/foreign.js+13 output-es/Web.DOM.Text/index.js+15 output-es/Web.DOM/index.js+1 output-es/Web.Event.CustomEvent/foreign.js+18 output-es/Web.Event.CustomEvent/index.js+20 output-es/Web.Event.Event/foreign.js+51 output-es/Web.Event.Event/index.js+23 output-es/Web.Event.EventPhase/index.js+99 output-es/Web.Event.EventTarget/foreign.js+51 output-es/Web.Event.EventTarget/index.js+3 output-es/Web.Event.Internal.Types/index.js+1 output-es/Web.File.Blob/foreign.js+19 output-es/Web.File.Blob/index.js+18 output-es/Web.File.File/foreign.js+2 output-es/Web.File.File/index.js+13 output-es/Web.File.FileList/foreign.js+7 output-es/Web.File.FileList/index.js+16 output-es/Web.File.FileReader.ReadyState/index.js+94 output-es/Web.File.FileReader/foreign.js+51 output-es/Web.File.FileReader/index.js+19 output-es/Web.File.Url/foreign.js+11 output-es/Web.File.Url/index.js+3 output-es/Web.HTML.Common/index.js+15 output-es/Web.HTML.Event.BeforeUnloadEvent.EventTypes/index.js+2 output-es/Web.HTML.Event.BeforeUnloadEvent/foreign.js+13 output-es/Web.HTML.Event.BeforeUnloadEvent/index.js+7 output-es/Web.HTML.Event.DataTransfer.DataTransferItem/foreign.js+23 output-es/Web.HTML.Event.DataTransfer.DataTransferItem/index.js+41 output-es/Web.HTML.Event.DataTransfer/foreign.js+55 output-es/Web.HTML.Event.DataTransfer/index.js+63 output-es/Web.HTML.Event.DragEvent.EventTypes/index.js+9 output-es/Web.HTML.Event.DragEvent/foreign.js+3 output-es/Web.HTML.Event.DragEvent/index.js+7 output-es/Web.HTML.Event.ErrorEvent/foreign.js+15 output-es/Web.HTML.Event.ErrorEvent/index.js+7 output-es/Web.HTML.Event.EventTypes/index.js+68 output-es/Web.HTML.Event.HashChangeEvent.EventTypes/index.js+2 output-es/Web.HTML.Event.HashChangeEvent/foreign.js+7 output-es/Web.HTML.Event.HashChangeEvent/index.js+7 output-es/Web.HTML.Event.PageTransitionEvent.EventTypes/index.js+3 output-es/Web.HTML.Event.PageTransitionEvent/foreign.js+3 output-es/Web.HTML.Event.PageTransitionEvent/index.js+7 output-es/Web.HTML.Event.PopStateEvent.EventTypes/index.js+2 output-es/Web.HTML.Event.PopStateEvent/foreign.js+3 output-es/Web.HTML.Event.PopStateEvent/index.js+7 output-es/Web.HTML.Event.TrackEvent.EventTypes/index.js+3 output-es/Web.HTML.Event.TrackEvent/index.js+5 output-es/Web.HTML.HTMLAnchorElement/foreign.js+117 output-es/Web.HTML.HTMLAnchorElement/index.js+36 output-es/Web.HTML.HTMLAreaElement/foreign.js+133 output-es/Web.HTML.HTMLAreaElement/index.js+34 output-es/Web.HTML.HTMLAudioElement/foreign.js+9 output-es/Web.HTML.HTMLAudioElement/index.js+40 output-es/Web.HTML.HTMLBRElement/index.js+32 output-es/Web.HTML.HTMLBaseElement/foreign.js+29 output-es/Web.HTML.HTMLBaseElement/index.js+34 output-es/Web.HTML.HTMLBodyElement/index.js+32 output-es/Web.HTML.HTMLButtonElement/foreign.js+223 output-es/Web.HTML.HTMLButtonElement/index.js+73 output-es/Web.HTML.HTMLCanvasElement/foreign.js+29 output-es/Web.HTML.HTMLCanvasElement/index.js+34 output-es/Web.HTML.HTMLDListElement/index.js+32 output-es/Web.HTML.HTMLDataElement/foreign.js+13 output-es/Web.HTML.HTMLDataElement/index.js+34 output-es/Web.HTML.HTMLDataListElement/foreign.js+5 output-es/Web.HTML.HTMLDataListElement/index.js+34 output-es/Web.HTML.HTMLDialogElement/foreign.js+53 output-es/Web.HTML.HTMLDialogElement/index.js+42 output-es/Web.HTML.HTMLDivElement/index.js+32 output-es/Web.HTML.HTMLDocument.ReadyState/index.js+52 output-es/Web.HTML.HTMLDocument.VisibilityState/index.js+42 output-es/Web.HTML.HTMLDocument/foreign.js+39 output-es/Web.HTML.HTMLDocument/index.js+76 output-es/Web.HTML.HTMLElement/foreign.js+194 output-es/Web.HTML.HTMLElement/index.js+66 output-es/Web.HTML.HTMLEmbedElement/foreign.js+61 output-es/Web.HTML.HTMLEmbedElement/index.js+34 output-es/Web.HTML.HTMLFieldSetElement/foreign.js+103 output-es/Web.HTML.HTMLFieldSetElement/index.js+44 output-es/Web.HTML.HTMLFormElement/foreign.js+181 output-es/Web.HTML.HTMLFormElement/index.js+58 output-es/Web.HTML.HTMLHRElement/index.js+32 output-es/Web.HTML.HTMLHeadElement/index.js+32 output-es/Web.HTML.HTMLHeadingElement/index.js+32 output-es/Web.HTML.HTMLHtmlElement/index.js+32 output-es/Web.HTML.HTMLHyperlinkElementUtils/foreign.js+165 output-es/Web.HTML.HTMLHyperlinkElementUtils/index.js+26 output-es/Web.HTML.HTMLIFrameElement/foreign.js+91 output-es/Web.HTML.HTMLIFrameElement/index.js+52 output-es/Web.HTML.HTMLImageElement.CORSMode/index.js+43 output-es/Web.HTML.HTMLImageElement.DecodingHint/index.js+53 output-es/Web.HTML.HTMLImageElement.Laziness/index.js+43 output-es/Web.HTML.HTMLImageElement/foreign.js+215 output-es/Web.HTML.HTMLImageElement/index.js+140 output-es/Web.HTML.HTMLInputElement/foreign.js+727 output-es/Web.HTML.HTMLInputElement/index.js+171 output-es/Web.HTML.HTMLKeygenElement/foreign.js+151 output-es/Web.HTML.HTMLKeygenElement/index.js+64 output-es/Web.HTML.HTMLLIElement/foreign.js+13 output-es/Web.HTML.HTMLLIElement/index.js+34 output-es/Web.HTML.HTMLLabelElement/foreign.js+29 output-es/Web.HTML.HTMLLabelElement/index.js+52 output-es/Web.HTML.HTMLLegendElement/foreign.js+5 output-es/Web.HTML.HTMLLegendElement/index.js+44 output-es/Web.HTML.HTMLLinkElement/foreign.js+133 output-es/Web.HTML.HTMLLinkElement/index.js+34 output-es/Web.HTML.HTMLMapElement/foreign.js+29 output-es/Web.HTML.HTMLMapElement/index.js+34 output-es/Web.HTML.HTMLMediaElement.CanPlayType/index.js+52 output-es/Web.HTML.HTMLMediaElement.NetworkState/index.js+109 output-es/Web.HTML.HTMLMediaElement.ReadyState/index.js+124 output-es/Web.HTML.HTMLMediaElement/foreign.js+295 output-es/Web.HTML.HTMLMediaElement/index.js+103 output-es/Web.HTML.HTMLMetaElement/foreign.js+45 output-es/Web.HTML.HTMLMetaElement/index.js+34 output-es/Web.HTML.HTMLMeterElement/foreign.js+101 output-es/Web.HTML.HTMLMeterElement/index.js+34 output-es/Web.HTML.HTMLModElement/foreign.js+29 output-es/Web.HTML.HTMLModElement/index.js+34 output-es/Web.HTML.HTMLOListElement/foreign.js+45 output-es/Web.HTML.HTMLOListElement/index.js+34 output-es/Web.HTML.HTMLObjectElement/foreign.js+167 output-es/Web.HTML.HTMLObjectElement/index.js+74 output-es/Web.HTML.HTMLOptGroupElement/foreign.js+29 output-es/Web.HTML.HTMLOptGroupElement/index.js+34 output-es/Web.HTML.HTMLOptionElement/foreign.js+109 output-es/Web.HTML.HTMLOptionElement/index.js+44 output-es/Web.HTML.HTMLOutputElement/foreign.js+119 output-es/Web.HTML.HTMLOutputElement/index.js+60 output-es/Web.HTML.HTMLParagraphElement/index.js+32 output-es/Web.HTML.HTMLParamElement/foreign.js+29 output-es/Web.HTML.HTMLParamElement/index.js+34 output-es/Web.HTML.HTMLPreElement/index.js+32 output-es/Web.HTML.HTMLProgressElement/foreign.js+45 output-es/Web.HTML.HTMLProgressElement/index.js+34 output-es/Web.HTML.HTMLQuoteElement/foreign.js+13 output-es/Web.HTML.HTMLQuoteElement/index.js+34 output-es/Web.HTML.HTMLScriptElement/foreign.js+109 output-es/Web.HTML.HTMLScriptElement/index.js+34 output-es/Web.HTML.HTMLSelectElement/foreign.js+223 output-es/Web.HTML.HTMLSelectElement/index.js+73 output-es/Web.HTML.HTMLSourceElement/foreign.js+45 output-es/Web.HTML.HTMLSourceElement/index.js+34 output-es/Web.HTML.HTMLSpanElement/index.js+32 output-es/Web.HTML.HTMLStyleElement/foreign.js+29 output-es/Web.HTML.HTMLStyleElement/index.js+34 output-es/Web.HTML.HTMLTableCaptionElement/index.js+32 output-es/Web.HTML.HTMLTableCellElement/foreign.js+37 output-es/Web.HTML.HTMLTableCellElement/index.js+34 output-es/Web.HTML.HTMLTableColElement/foreign.js+13 output-es/Web.HTML.HTMLTableColElement/index.js+34 output-es/Web.HTML.HTMLTableDataCellElement/index.js+36 output-es/Web.HTML.HTMLTableElement/foreign.js+153 output-es/Web.HTML.HTMLTableElement/index.js+103 output-es/Web.HTML.HTMLTableHeaderCellElement/foreign.js+29 output-es/Web.HTML.HTMLTableHeaderCellElement/index.js+38 output-es/Web.HTML.HTMLTableRowElement/foreign.js+41 output-es/Web.HTML.HTMLTableRowElement/index.js+38 output-es/Web.HTML.HTMLTableSectionElement/foreign.js+25 output-es/Web.HTML.HTMLTableSectionElement/index.js+38 output-es/Web.HTML.HTMLTemplateElement/foreign.js+5 output-es/Web.HTML.HTMLTemplateElement/index.js+34 output-es/Web.HTML.HTMLTextAreaElement/foreign.js+403 output-es/Web.HTML.HTMLTextAreaElement/index.js+107 output-es/Web.HTML.HTMLTimeElement/foreign.js+13 output-es/Web.HTML.HTMLTimeElement/index.js+34 output-es/Web.HTML.HTMLTitleElement/foreign.js+13 output-es/Web.HTML.HTMLTitleElement/index.js+34 output-es/Web.HTML.HTMLTrackElement.ReadyState/index.js+109 output-es/Web.HTML.HTMLTrackElement/foreign.js+84 output-es/Web.HTML.HTMLTrackElement/index.js+44 output-es/Web.HTML.HTMLUListElement/index.js+32 output-es/Web.HTML.HTMLVideoElement/foreign.js+63 output-es/Web.HTML.HTMLVideoElement/index.js+38 output-es/Web.HTML.History/foreign.js+49 output-es/Web.HTML.History/index.js+16 output-es/Web.HTML.Location/foreign.js+169 output-es/Web.HTML.Location/index.js+25 output-es/Web.HTML.Navigator/foreign.js+29 output-es/Web.HTML.Navigator/index.js+3 output-es/Web.HTML.SelectionMode/index.js+62 output-es/Web.HTML.ValidityState/foreign.js+3 output-es/Web.HTML.ValidityState/index.js+15 output-es/Web.HTML.Window/foreign.js+239 output-es/Web.HTML.Window/index.js+86 output-es/Web.HTML/foreign.js+4 output-es/Web.HTML/index.js+3 output-es/Web.Internal.FFI/foreign.js+20 output-es/Web.Internal.FFI/index.js+5 output-es/Web.Storage.Event.StorageEvent/foreign.js+19 output-es/Web.Storage.Event.StorageEvent/index.js+13 output-es/Web.Storage.Storage/foreign.js+45 output-es/Web.Storage.Storage/index.js+52 output-es/Web.TouchEvent.EventTypes/index.js+5 output-es/Web.TouchEvent.Touch/foreign.js+31 output-es/Web.TouchEvent.Touch/index.js+3 output-es/Web.TouchEvent.TouchEvent/foreign.js+27 output-es/Web.TouchEvent.TouchEvent/index.js+9 output-es/Web.TouchEvent.TouchList/foreign.js+7 output-es/Web.TouchEvent.TouchList/index.js+6 output-es/Web.TouchEvent/index.js+1 output-es/Web.UIEvent.CompositionEvent.EventTypes/index.js+4 output-es/Web.UIEvent.CompositionEvent/foreign.js+3 output-es/Web.UIEvent.CompositionEvent/index.js+9 output-es/Web.UIEvent.EventTypes/index.js+6 output-es/Web.UIEvent.FocusEvent.EventTypes/index.js+5 output-es/Web.UIEvent.FocusEvent/foreign.js+3 output-es/Web.UIEvent.FocusEvent/index.js+12 output-es/Web.UIEvent.InputEvent.EventTypes/index.js+3 output-es/Web.UIEvent.InputEvent.InputType/index.js+494 output-es/Web.UIEvent.InputEvent/foreign.js+11 output-es/Web.UIEvent.InputEvent/index.js+14 output-es/Web.UIEvent.KeyboardEvent.EventTypes/index.js+3 output-es/Web.UIEvent.KeyboardEvent/foreign.js+43 output-es/Web.UIEvent.KeyboardEvent/index.js+134 output-es/Web.UIEvent.MouseEvent.EventTypes/index.js+11 output-es/Web.UIEvent.MouseEvent/foreign.js+59 output-es/Web.UIEvent.MouseEvent/index.js+12 output-es/Web.UIEvent.UIEvent/foreign.js+7 output-es/Web.UIEvent.UIEvent/index.js+10 output-es/Web.UIEvent.WheelEvent.EventTypes/index.js+2 output-es/Web.UIEvent.WheelEvent/foreign.js+15 output-es/Web.UIEvent.WheelEvent/index.js+109 output-es/Yoga.Fastify.Auth.Argon2/foreign.js+13 output-es/Yoga.Fastify.Auth.Argon2/index.js+13 output-es/Yoga.Fastify.Auth.JWT/foreign.js+23 output-es/Yoga.Fastify.Auth.JWT/index.js+26 output-es/Yoga.Fastify.Fastify/foreign.js+41 output-es/Yoga.Fastify.Fastify/index.js+106 output-es/Yoga.Fastify.Plugin.Cors/foreign.js+2 output-es/Yoga.Fastify.Plugin.Cors/index.js+12 output-es/Yoga.Fastify.Plugin.Helmet/foreign.js+2 output-es/Yoga.Fastify.Plugin.Helmet/index.js+8 output-es/Yoga.Fastify.Plugin.RateLimit/foreign.js+2 output-es/Yoga.Fastify.Plugin.RateLimit/index.js+11 output-es/Yoga.Fastify.Plugin/foreign.js+3 output-es/Yoga.Fastify.Plugin/index.js+6 output-es/Yoga.Fastify.Route.HandleResponse/index.js+27 output-es/Yoga.Fastify.Route.HandleRoute/index.js+83 output-es/Yoga.Fastify.Route.ParseBody/index.js+47 output-es/Yoga.Fastify.Route.ParseHeaders/index.js+41 output-es/Yoga.Fastify.Route.ParsePathParams/index.js+38 output-es/Yoga.Fastify.Route.ParseQueryParams/index.js+60 output-es/Yoga.Fastify.Route.SetHeaders/index.js+21 output-es/Yoga.HTTP.API.Path/index.js+150 output-es/Yoga.HTTP.API.Route.Auth/index.js+88 output-es/Yoga.HTTP.API.Route.BearerToken/index.js+1 output-es/Yoga.HTTP.API.Route.Encoding/index.js+1 output-es/Yoga.HTTP.API.Route.Handler/index.js+52 output-es/Yoga.HTTP.API.Route.HeaderError/index.js+18 output-es/Yoga.HTTP.API.Route.HeaderValue/index.js+41 output-es/Yoga.HTTP.API.Route.Method/index.js+1 output-es/Yoga.HTTP.API.Route.OpenAPI/index.js+1503 output-es/Yoga.HTTP.API.Route.OpenAPIMetadata/index.js+803 output-es/Yoga.HTTP.API.Route.RenderMethod/index.js+7 output-es/Yoga.HTTP.API.Route.Response/index.js+283 output-es/Yoga.HTTP.API.Route.Route/index.js+124 output-es/Yoga.HTTP.API.Route.RouteHandler/index.js+10 output-es/Yoga.HTTP.API.Route.StatusCode/index.js+273 output-es/Yoga.HTTP.API.Route/index.js+1 output-es/Yoga.JSON.Derive/index.js+10 output-es/Yoga.JSON.Error/index.js+79 output-es/Yoga.JSON.Generics.EnumSumRep/index.js+69 output-es/Yoga.JSON.Generics.TaggedSumRep/index.js+166 output-es/Yoga.JSON.Generics.UntaggedProductRep/index.js+71 output-es/Yoga.JSON.Generics.UntaggedSumRep/index.js+75 output-es/Yoga.JSON.Generics/index.js+1 output-es/Yoga.JSON.Variant/index.js+138 output-es/Yoga.JSON/foreign.js+19 output-es/Yoga.JSON/index.js+923 output-es/Yoga.Options/index.js+50 output-es/Yoga.React.DOM.Attributes.AutoCapitalize/index.js+21 output-es/Yoga.React.DOM.Attributes.Dir/index.js+11 output-es/Yoga.React.DOM.Attributes.InputMode/index.js+13 output-es/Yoga.React.DOM.Attributes.Target/index.js+9 output-es/Yoga.React.DOM.Attributes.YesOrNo/index.js+24 output-es/Yoga.React.DOM.Attributes/index.js+2 output-es/Yoga.React.DOM.Client/foreign.js+11 output-es/Yoga.React.DOM.Client/index.js+3 output-es/Yoga.React.DOM.Event/index.js+1 output-es/Yoga.React.DOM.HTML.A/index.js+4 output-es/Yoga.React.DOM.HTML.Abbr/index.js+3 output-es/Yoga.React.DOM.HTML.Address/index.js+3 output-es/Yoga.React.DOM.HTML.Area/index.js+3 output-es/Yoga.React.DOM.HTML.Article/index.js+3 output-es/Yoga.React.DOM.HTML.Aside/index.js+3 output-es/Yoga.React.DOM.HTML.Audio/index.js+3 output-es/Yoga.React.DOM.HTML.B/index.js+3 output-es/Yoga.React.DOM.HTML.Base/index.js+3 output-es/Yoga.React.DOM.HTML.Bdi/index.js+3 output-es/Yoga.React.DOM.HTML.Bdo/index.js+3 output-es/Yoga.React.DOM.HTML.Blockquote/index.js+3 output-es/Yoga.React.DOM.HTML.Body/index.js+3 output-es/Yoga.React.DOM.HTML.Br/index.js+3 output-es/Yoga.React.DOM.HTML.Button/index.js+4 output-es/Yoga.React.DOM.HTML.Canvas/index.js+3 output-es/Yoga.React.DOM.HTML.Caption/index.js+3 output-es/Yoga.React.DOM.HTML.Cite/index.js+3 output-es/Yoga.React.DOM.HTML.Code/index.js+3 output-es/Yoga.React.DOM.HTML.Col/index.js+3 output-es/Yoga.React.DOM.HTML.ColGroup/index.js+3 output-es/Yoga.React.DOM.HTML.Data/index.js+3 output-es/Yoga.React.DOM.HTML.DataList/index.js+3 output-es/Yoga.React.DOM.HTML.Dd/index.js+3 output-es/Yoga.React.DOM.HTML.Del/index.js+3 output-es/Yoga.React.DOM.HTML.Details/index.js+3 output-es/Yoga.React.DOM.HTML.Dfn/index.js+3 output-es/Yoga.React.DOM.HTML.Dialog/index.js+3 output-es/Yoga.React.DOM.HTML.Div/index.js+4 output-es/Yoga.React.DOM.HTML.Dl/index.js+3 output-es/Yoga.React.DOM.HTML.Dt/index.js+3 output-es/Yoga.React.DOM.HTML.Em/index.js+3 output-es/Yoga.React.DOM.HTML.Embed/index.js+3 output-es/Yoga.React.DOM.HTML.FieldSet/index.js+3 output-es/Yoga.React.DOM.HTML.Figcaption/index.js+3 output-es/Yoga.React.DOM.HTML.Figure/index.js+3 output-es/Yoga.React.DOM.HTML.Footer/index.js+3 output-es/Yoga.React.DOM.HTML.Form/index.js+3 output-es/Yoga.React.DOM.HTML.H/index.js+8 output-es/Yoga.React.DOM.HTML.HTML/index.js+3 output-es/Yoga.React.DOM.HTML.Head/index.js+3 output-es/Yoga.React.DOM.HTML.Header/index.js+3 output-es/Yoga.React.DOM.HTML.Hr/index.js+3 output-es/Yoga.React.DOM.HTML.I/index.js+3 output-es/Yoga.React.DOM.HTML.IFrame/index.js+4 output-es/Yoga.React.DOM.HTML.Img/index.js+3 output-es/Yoga.React.DOM.HTML.Input/index.js+3 output-es/Yoga.React.DOM.HTML.Kbd/index.js+3 output-es/Yoga.React.DOM.HTML.Label/index.js+3 output-es/Yoga.React.DOM.HTML.Legend/index.js+3 output-es/Yoga.React.DOM.HTML.Li/index.js+3 output-es/Yoga.React.DOM.HTML.Link/index.js+3 output-es/Yoga.React.DOM.HTML.Main/index.js+3 output-es/Yoga.React.DOM.HTML.Map/index.js+3 output-es/Yoga.React.DOM.HTML.Mark/index.js+3 output-es/Yoga.React.DOM.HTML.Menu/index.js+3 output-es/Yoga.React.DOM.HTML.Meta/index.js+3 output-es/Yoga.React.DOM.HTML.Meter/index.js+3 output-es/Yoga.React.DOM.HTML.Nav/index.js+3 output-es/Yoga.React.DOM.HTML.NoScript/index.js+3 output-es/Yoga.React.DOM.HTML.Object/index.js+3 output-es/Yoga.React.DOM.HTML.Ol/index.js+3 output-es/Yoga.React.DOM.HTML.Optgroup/index.js+3 output-es/Yoga.React.DOM.HTML.Option/index.js+3 output-es/Yoga.React.DOM.HTML.Output/index.js+3 output-es/Yoga.React.DOM.HTML.P/index.js+3 output-es/Yoga.React.DOM.HTML.Param/index.js+3 output-es/Yoga.React.DOM.HTML.Picture/index.js+3 output-es/Yoga.React.DOM.HTML.Pre/index.js+3 output-es/Yoga.React.DOM.HTML.Progress/index.js+3 output-es/Yoga.React.DOM.HTML.Q/index.js+3 output-es/Yoga.React.DOM.HTML.Rp/index.js+3 output-es/Yoga.React.DOM.HTML.Rt/index.js+3 output-es/Yoga.React.DOM.HTML.Ruby/index.js+3 output-es/Yoga.React.DOM.HTML.S/index.js+3 output-es/Yoga.React.DOM.HTML.Samp/index.js+3 output-es/Yoga.React.DOM.HTML.Script/index.js+4 output-es/Yoga.React.DOM.HTML.Section/index.js+3 output-es/Yoga.React.DOM.HTML.Select/index.js+3 output-es/Yoga.React.DOM.HTML.Small/index.js+3 output-es/Yoga.React.DOM.HTML.Source/index.js+3 output-es/Yoga.React.DOM.HTML.Span/index.js+3 output-es/Yoga.React.DOM.HTML.Strong/index.js+3 output-es/Yoga.React.DOM.HTML.Style/index.js+3 output-es/Yoga.React.DOM.HTML.Sub/index.js+3 output-es/Yoga.React.DOM.HTML.Summary/index.js+3 output-es/Yoga.React.DOM.HTML.Sup/index.js+3 output-es/Yoga.React.DOM.HTML.Table/index.js+3 output-es/Yoga.React.DOM.HTML.Tbody/index.js+3 output-es/Yoga.React.DOM.HTML.Td/index.js+3 output-es/Yoga.React.DOM.HTML.Template/index.js+3 output-es/Yoga.React.DOM.HTML.Textarea/index.js+3 output-es/Yoga.React.DOM.HTML.Tfoot/index.js+3 output-es/Yoga.React.DOM.HTML.Th/index.js+3 output-es/Yoga.React.DOM.HTML.Thead/index.js+3 output-es/Yoga.React.DOM.HTML.Time/index.js+3 output-es/Yoga.React.DOM.HTML.Title/index.js+3 output-es/Yoga.React.DOM.HTML.Tr/index.js+3 output-es/Yoga.React.DOM.HTML.Track/index.js+3 output-es/Yoga.React.DOM.HTML.U/index.js+3 output-es/Yoga.React.DOM.HTML.Ul/index.js+3 output-es/Yoga.React.DOM.HTML.Var/index.js+3 output-es/Yoga.React.DOM.HTML.Video/index.js+3 output-es/Yoga.React.DOM.HTML.Wbr/index.js+3 output-es/Yoga.React.DOM.HTML/index.js+1 output-es/Yoga.React.DOM.Handler/index.js+9 output-es/Yoga.React.DOM.Internal/foreign.js+16 output-es/Yoga.React.DOM.Internal/index.js+62 output-es/Yoga.React.DOM.Server/foreign.js+1 output-es/Yoga.React.DOM.Server/index.js+3 output-es/Yoga.React.DOM/index.js+1 output-es/Yoga.React/index.js+3 output-es/Yoga.Tree.Zipper/index.js+265 output-es/Yoga.Tree/index.js+209 output-es/YogaStories.CLI/foreign.js+10 output-es/YogaStories.CLI/index.js+192 output-es/YogaStories.Config/index.js+32 output-es/YogaStories.Controls.Types/index.js+47 output-es/YogaStories.Controls/foreign.js+21 output-es/YogaStories.Controls/index.js+689 output-es/YogaStories.Discovery/index.js+35 output-es/YogaStories.ModuleInfo/index.js+66 output-es/YogaStories.Resolution/index.js+9 output-es/YogaStories.Server/index.js+53 output-es/YogaStories.Story/index.js+54 output-es/YogaStories.Types/index.js+1 output-es/YogaStories.UI.Client/foreign.js+41 output-es/YogaStories.UI.Client/index.js+416 output-es/YogaStories.UI.Hash/foreign.js+2 output-es/YogaStories.UI.Hash/index.js+121 output-es/YogaStories.UI.Styles/index.js+77 output-es/package.json+1 output-es/runtime.js+33 output/cache-db.json+1−1 package.json+1−1 spago.lock+2−2 spago.yaml+1−1
bun.lock+2−2
@@ -5,7 +5,7 @@
55 "name": "purescript-yoga-daisyui",
66 "dependencies": {
77 "daisyui": "^5.0.0",
8− "yoga-stories": "^0.1.7",
8+ "yoga-stories": "^0.1.8",
99 },
1010 "devDependencies": {
1111 "@tailwindcss/cli": "^4.1.18",
@@ -322,7 +322,7 @@
322322
323323 "w3c-keyname": ["w3c-keyname@2.2.8", "", {}, "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ=="],
324324
325− "yoga-stories": ["yoga-stories@0.1.7", "", { "dependencies": { "@codemirror/language": "^6.12.1", "@codemirror/legacy-modes": "^6.5.2", "@fontsource/jetbrains-mono": "^5.2.8", "@uiw/codemirror-theme-tokyo-night": "^4.25.4", "@uiw/react-codemirror": "^4.25.4", "vite": "^7.3.1" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" }, "bin": { "yoga-stories": "bin/cli.js" } }, "sha512-qCDyCe3V+7/qmTvY82KnFjBqODEDuYGG2T7L30HGE98X/OHZWcnOaOn0XksLs2/FN+YAKh8pbUJ8pH/T/zTyWw=="],
325+ "yoga-stories": ["yoga-stories@0.1.8", "", { "dependencies": { "@codemirror/language": "^6.12.1", "@codemirror/legacy-modes": "^6.5.2", "@fontsource/jetbrains-mono": "^5.2.8", "@uiw/codemirror-theme-tokyo-night": "^4.25.4", "@uiw/react-codemirror": "^4.25.4", "vite": "^7.3.1" }, "peerDependencies": { "react": ">=18", "react-dom": ">=18" }, "bin": { "yoga-stories": "bin/cli.js" } }, "sha512-78VHRW5VUkpmmJP95ak+ISm2KJzIWMrgNy5TdDdpNFj8MdmvqEVZjof6gdNYlcmtr10tRwpkw9r/GJAZwpOwNg=="],
326326
327327 "@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.8.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" }, "bundled": true }, "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg=="],
328328
dist/assets/index-BeC2O_nG.jsnew file+15
@@ -0,0 +1,15 @@
1+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Dts5fPNe.js","./index-DnAXTA8P.js"])))=>i.map(i=>d[i]);
2+import{r as be,a as Bf,R as Lf}from"./index-DnAXTA8P.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();const Ef="modulepreload",Rf=function(n,e){return new URL(n,e).href},Po={},Pf=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){let h=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");s=h(t.map(c=>{if(c=Rf(c,i),c in Po)return;Po[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(i)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===c&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Ef,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((p,m)=>{d.addEventListener("load",p),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return s.then(o=>{for(const l of o||[])l.status==="rejected"&&r(l.reason);return e().catch(r)})};function Rn(){return Rn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Rn.apply(null,arguments)}function If(n,e){if(n==null)return{};var t={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(e.indexOf(i)!==-1)continue;t[i]=n[i]}return t}let Qs=[],Da=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?Da:Qs).push(t=t+n[e])})();function Nf(n){if(n<768)return!1;for(let e=0,t=Qs.length;;){let i=e+t>>1;if(n<Qs[i])t=i;else if(n>=Da[i])e=i+1;else return!0;if(e==t)return!1}}function Io(n){return n>=127462&&n<=127487}const No=8205;function Wf(n,e,t=!0,i=!0){return(t?Oa:Ff)(n,e,i)}function Oa(n,e,t){if(e==n.length)return e;e&&Ba(n.charCodeAt(e))&&La(n.charCodeAt(e-1))&&e--;let i=bs(n,e);for(e+=Wo(i);e<n.length;){let s=bs(n,e);if(i==No||s==No||t&&Nf(s))e+=Wo(s),i=s;else if(Io(s)){let r=0,o=e-2;for(;o>=0&&Io(bs(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Ff(n,e,t){for(;e>0;){let i=Oa(n,e-2,t);if(i<e)return i;e--}return 0}function bs(n,e){let t=n.charCodeAt(e);if(!La(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Ba(i)?(t-55296<<10)+(i-56320)+65536:t}function Ba(n){return n>=56320&&n<57344}function La(n){return n>=55296&&n<56320}function Wo(n){return n<65536?1:2}class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Zt(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Je.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Zt(this,e,t);let i=[];return this.decompose(e,t,i,0),Je.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new vi(this),r=new vi(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new vi(this,e)}iterRange(e,t=this.length){return new Ea(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ra(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new X(e):Je.from(X.split(e,[]))}}class X extends q{constructor(e,t=Hf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Vf(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new X(Fo(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=An(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new X(l,o.length+r.length));else{let a=l.length>>1;i.push(new X(l.slice(0,a)),new X(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof X))return super.replace(e,t,i);[e,t]=Zt(this,e,t);let s=An(this.text,An(i.text,Fo(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new X(s,r):Je.from(X.split(s,[]),r)}sliceString(e,t=this.length,i=`
3+`){[e,t]=Zt(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new X(i,s)),i=[],s=-1);return s>-1&&t.push(new X(i,s)),t}}class Je extends q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=Zt(this,e,t),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new Je(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
4+`){[e,t]=Zt(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Je))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new X(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof Je)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof X&&a&&(p=c[c.length-1])instanceof X&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new X(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:Je.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new Je(l,t)}}q.empty=new X([""],0);function Hf(n){let e=-1;for(let t of n)e+=t.length+1;return e}function An(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function Fo(n,e,t){return An(n,[""],e,t)}class vi{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof X?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof X?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
5+`,this;e--}else if(s instanceof X){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof X?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Ea{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new vi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ra{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},vi.prototype[Symbol.iterator]=Ea.prototype[Symbol.iterator]=Ra.prototype[Symbol.iterator]=function(){return this});class Vf{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function Zt(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function le(n,e,t=!0,i=!0){return Wf(n,e,t,i)}function zf(n){return n>=56320&&n<57344}function qf(n){return n>=55296&&n<56320}function ke(n,e){let t=n.charCodeAt(e);if(!qf(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return zf(i)?(t-55296<<10)+(i-56320)+65536:t}function jr(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Ye(n){return n<65536?1:2}const Zs=/\r\n?|\n/;var we=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(we||(we={}));class tt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){er(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new tt(e)}composeDesc(e){return this.empty?e:e.empty?this:Pa(this,e)}mapDesc(e,t=!1){return e.empty?this:tr(this,e,t)}mapPos(e,t=-1,i=we.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=s+l;if(a<0){if(h>e)return r+(e-s);r+=l}else{if(i!=we.Simple&&h>=e&&(i==we.TrackDel&&s<e&&h>e||i==we.TrackBefore&&s<e||i==we.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new tt(e)}static create(e){return new tt(e)}}class ne extends tt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return er(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return tr(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(q.empty);i.push(o?e.slice(r,r+o):q.empty)}r+=o}return new ne(t,i)}compose(e){return this.empty?e:e.empty?this:Pa(this,e,!0)}map(e,t=!1){return e.empty?this:tr(this,e,t,!0)}iterChanges(e,t=!1){er(this,e,t)}get desc(){return tt.create(this.sections)}filter(e){let t=[],i=[],s=[],r=new Oi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let c=Math.min(r.len,a-l);me(s,c,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;me(t,c,f),f>0&&dt(i,t,r.text),r.forward(c),l+=c}let h=e[o++];for(;l<h;){if(r.done)break e;let c=Math.min(r.len,h-l);me(t,c,-1),me(s,c,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(c),l+=c}}return{changes:new ne(t,i),filtered:tt.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;o<t&&me(s,t-o,-1);let f=new ne(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof ne){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:u=f,insert:d}=c;if(f>u||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?q.of(d.split(i||Zs)):d:q.empty,m=p.length;if(f==u&&m==0)return;f<o&&a(),f>o&&me(s,f-o,-1),me(s,u-f,m),dt(r,s,p),o=u}}return h(e),a(!l),l}static empty(e){return new ne(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length<s;)i.push(q.empty);i[s]=q.of(r.slice(1)),t.push(r[0],i[s].length)}}}return new ne(t,i)}static createSet(e,t){return new ne(e,t)}}function me(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function dt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(q.empty);n.push(t)}}function er(n,e,t){let i=n.inserted;for(let s=0,r=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)s+=l,r+=l;else{let h=s,c=r,f=q.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[o-2>>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,h,r,c,f),s=h,r=c}}}function tr(n,e,t,i=!1){let s=[],r=i?[]:null,o=new Oi(n),l=new Oi(e);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);me(s,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let h=l.len;for(me(s,l.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&a<o.i&&o.len<=c&&(me(s,0,o.ins),r&&dt(r,s,o.text),a=o.i),o.forward(c),h-=c}l.next()}else if(o.ins>=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;me(s,h,a<o.i?o.ins:0),r&&a<o.i&&dt(r,s,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return r?ne.createSet(s,r):tt.create(s);throw new Error("Mismatched change set lengths")}}}function Pa(n,e,t=!1){let i=[],s=t?[]:null,r=new Oi(n),o=new Oi(e);for(let l=!1;;){if(r.done&&o.done)return s?ne.createSet(i,s):tt.create(i);if(r.ins==0)me(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)me(i,0,o.ins,l),s&&dt(s,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),h=i.length;if(r.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;me(i,a,c,l),s&&c&&dt(s,i,o.text)}else o.ins==-1?(me(i,r.off?0:r.len,a,l),s&&dt(s,i,r.textBit(a))):(me(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&dt(s,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class Oi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ot{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Ot(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return x.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return x.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return x.range(e.anchor,e.head)}static create(e,t,i){return new Ot(e,t,i)}}class x{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:x.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new x([this.main],0)}addRange(e,t=!0){return x.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,x.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new x(e.ranges.map(t=>Ot.fromJSON(t)),e.main)}static single(e,t=e){return new x([x.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=i:r.from<i)return x.normalized(e.slice(),t);i=r.to}return new x(e,t)}static cursor(e,t=0,i,s){return Ot.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let r=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?Ot.create(t,e,48|r):Ot.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?x.range(a,l):x.range(l,a))}}return new x(e,t)}}function Ia(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let _r=0;class O{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=_r++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new O(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Gr),!!e.static,e.enables)}of(e){return new Mn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Gr(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Mn{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=_r++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||ir(f,c)){let d=i(f);if(l?!Ho(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let m=In(u,p);if(this.dependencies.every(g=>g instanceof O?u.facet(g)===f.facet(g):g instanceof ue?u.field(g,!1)==f.field(g,!1):!0)||(l?Ho(d=i(f),m,s):s(d=i(f),m)))return f.values[o]=m,0}else d=i(f);return f.values[o]=d,1}}}}function Ho(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function ir(n,e){let t=!1;for(let i of e)ki(n,i)&1&&(t=!0);return t}function $f(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=In(a,i[c]);if(s[c]==2)for(let u of f)h.push(u);else h.push(f)}return e.combine(h)}return{create(a){for(let h of i)ki(a,h);return a.values[o]=l(a),1},update(a,h){if(!ir(a,r))return 0;let c=l(a);return e.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,h){let c=ir(a,i),f=h.config.facets[e.id],u=h.facet(e);if(f&&!c&&Gr(t,f))return a.values[o]=u,0;let d=l(a);return e.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const tn=O.define({static:!0});class ue{constructor(e,t,i,s,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new ue(_r++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(tn).find(i=>i.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>{let r=i.facet(tn),o=s.facet(tn),l;return(l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,tn.of({field:this,create:e})]}get extension(){return this}}const Tt={lowest:4,low:3,default:2,high:1,highest:0};function fi(n){return e=>new Na(e,n)}const Ht={highest:fi(Tt.highest),high:fi(Tt.high),default:fi(Tt.default),low:fi(Tt.low),lowest:fi(Tt.lowest)};class Na{constructor(e,t){this.inner=e,this.prec=t}}class is{of(e){return new nr(this,e)}reconfigure(e){return is.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class nr{constructor(e,t){this.compartment=e,this.inner=t}}class Pn{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of Kf(e,t,o))u instanceof ue?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i?.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,Gr(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(b=>b.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(b=>g.dynamicSlot(b)));l[p.id]=h.length<<1,h.push(g=>$f(g,p,d))}}let f=h.map(u=>u(l));return new Pn(e,o,f,l,a,r)}}function Kf(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof nr&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof nr){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof Na)r(o.inner,o.prec);else if(o instanceof ue)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Mn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Tt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(n,Tt.default),i.reduce((o,l)=>o.concat(l))}function ki(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function In(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Wa=O.define(),sr=O.define({combine:n=>n.some(e=>e),static:!0}),Fa=O.define({combine:n=>n.length?n[0]:void 0,static:!0}),Ha=O.define(),Va=O.define(),za=O.define(),qa=O.define({combine:n=>n.length?n[0]:!1});class it{constructor(e,t){this.type=e,this.value=t}static define(){return new Uf}}class Uf{of(e){return new it(this,e)}}class jf{constructor(e){this.map=e}of(e){return new I(this,e)}}class I{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new I(this.type,t)}is(e){return this.type==e}static define(e={}){return new jf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}I.reconfigure=I.define();I.appendConfig=I.define();class se{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Ia(i,t.newLength),r.some(l=>l.type==se.time)||(this.annotations=r.concat(se.time.of(Date.now())))}static create(e,t,i,s,r,o){return new se(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(se.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}se.time=it.define();se.userEvent=it.define();se.addToHistory=it.define();se.remote=it.define();function _f(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==e.length||e[s]>=n[i]))r=n[i++],o=n[i++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function $a(n,e,t){var i;let s,r,o;return t?(s=e.changes,r=ne.empty(e.changes.length),o=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),r=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:I.mapEffects(n.effects,s).concat(I.mapEffects(e.effects,r)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function rr(n,e,t){let i=e.selection,s=_t(e.annotations);return e.userEvent&&(s=s.concat(se.userEvent.of(e.userEvent))),{changes:e.changes instanceof ne?e.changes:ne.of(e.changes||[],t,n.facet(Fa)),selection:i&&(i instanceof x?i:x.single(i.anchor,i.head)),effects:_t(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function Ka(n,e,t){let i=rr(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;i=$a(i,rr(n,e[r],o?i.changes.newLength:n.doc.length),o)}let s=se.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return Jf(t?Gf(s):s)}function Gf(n){let e=n.startState,t=!0;for(let s of e.facet(Ha)){let r=s(n);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:_f(t,r))}if(t!==!0){let s,r;if(t===!1)r=n.changes.invertedDesc,s=ne.empty(e.doc.length);else{let o=n.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=se.create(e,s,n.selection&&n.selection.map(r),I.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=e.facet(Va);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof se?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof se?n=r[0]:n=Ka(e,_t(r),!1)}return n}function Jf(n){let e=n.startState,t=e.facet(za),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=$a(i,rr(e,r,n.changes.newLength),!0))}return i==n?n:se.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Yf=[];function _t(n){return n==null?Yf:Array.isArray(n)?n:[n]}var J=(function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n})(J||(J={}));const Xf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let or;try{or=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Qf(n){if(or)return or.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Xf.test(t)))return!0}return!1}function Zf(n){return e=>{if(!/\S/.test(e))return J.Space;if(Qf(e))return J.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return J.Word;return J.Other}}class z{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)ki(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return ki(this,i),In(this,i)}update(...e){return Ka(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(is.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,h)=>s.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(I.reconfigure)?(t=null,i=l.value):l.is(I.appendConfig)&&(t=null,i=_t(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=Pn.resolve(i,s,this),r=new z(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(sr)?e.newSelection:e.newSelection.asSingle();new z(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:x.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=_t(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),h=this.changes(a.changes),c=h.map(s);for(let u=0;u<l;u++)r[u]=r[u].map(c);let f=s.mapDesc(h,!0);r.push(a.range.map(f)),s=s.compose(c),o=I.mapEffects(o,c).concat(I.mapEffects(_t(a.effects),f))}return{changes:s,selection:x.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof ne?e:ne.of(e,this.doc.length,this.facet(z.lineSeparator))}toText(e){return q.of(e.split(this.facet(z.lineSeparator)||Zs))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(ki(this,t),In(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof ue&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(e,r)){let o=i[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return z.create({doc:e.doc,selection:x.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=Pn.resolve(e.extensions||[],new Map),i=e.doc instanceof q?e.doc:q.of((e.doc||"").split(t.staticFacet(z.lineSeparator)||Zs)),s=e.selection?e.selection instanceof x?e.selection:x.single(e.selection.anchor,e.selection.head):x.single(0);return Ia(s,i.length),t.staticFacet(sr)||(s=s.asSingle()),new z(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(z.tabSize)}get lineBreak(){return this.facet(z.lineSeparator)||`
6+`}get readOnly(){return this.facet(qa)}phrase(e,...t){for(let i of this.facet(z.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>t.length?i:t[r-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let r of this.facet(Wa))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&s.push(o[e]);return s}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return Zf(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,l=e-i;for(;o>0;){let a=le(t,o,!1);if(r(t.slice(a,o))!=J.Word)break;o=a}for(;l<s;){let a=le(t,l);if(r(t.slice(l,a))!=J.Word)break;l=a}return o==l?null:x.range(o+i,l+i)}}z.allowMultipleSelections=sr;z.tabSize=O.define({combine:n=>n.length?n[0]:4});z.lineSeparator=Fa;z.readOnly=qa;z.phrases=O.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});z.languageData=Wa;z.changeFilter=Ha;z.transactionFilter=Va;z.transactionExtender=za;is.reconfigure=I.define();function nt(n,e,t={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(t,r))i[r]=t[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class gt{eq(e){return this==e}range(e,t=e){return lr.create(e,t,this)}}gt.prototype.startSide=gt.prototype.endSide=0;gt.prototype.point=!1;gt.prototype.mapMode=we.TrackDel;function Jr(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let lr=class Ua{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Ua(e,t,i)}};function ar(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Yr{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let r=i?this.to:this.from;for(let o=s,l=r.length;;){if(o==l)return o;let a=o+l>>1,h=r[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return h>=0?o:l;h>=0?l=a:o=a+1}}between(e,t,i,s){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);r<o;r++)if(s(this.from[r]+e,this.to[r]+e,this.value[r])===!1)return!1}map(e,t){let i=[],s=[],r=[],o=-1,l=-1;for(let a=0;a<this.value.length;a++){let h=this.value[a],c=this.from[a]+e,f=this.to[a]+e,u,d;if(c==f){let p=t.mapPos(c,h.startSide,h.mapMode);if(p==null||(u=d=p,h.startSide!=h.endSide&&(d=t.mapPos(c,h.endSide),d<u)))continue}else if(u=t.mapPos(c,h.startSide),d=t.mapPos(f,h.endSide),u>d||u==d&&h.startSide>0&&h.endSide<=0)continue;(d-u||h.endSide-h.startSide)<0||(o<0&&(o=u),h.point&&(l=Math.max(l,d-u)),i.push(h),s.push(u-o),r.push(d-o))}return{mapped:i.length?new Yr(s,r,i,l):null,pos:o}}}class F{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new F(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(ar)),this.isEmpty)return t.length?F.of(t):this;let l=new ja(this,null,-1).goto(0),a=0,h=[],c=new lt;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let f=t[a++];c.addInner(f.from,f.to,f.value)||h.push(f)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!o||s>this.chunkEnd(l.chunkIndex)||r<this.chunkPos[l.chunkIndex])&&c.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!o||s>l.to||r<l.from||o(l.from,l.to,l.value))&&(c.addInner(l.from,l.to,l.value)||h.push(lr.create(l.from,l.to,l.value))),l.next());return c.finishInner(this.nextLayer.isEmpty&&!h.length?F.empty:this.nextLayer.update({add:h,filter:o,filterFrom:s,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],s=-1;for(let o=0;o<this.chunk.length;o++){let l=this.chunkPos[o],a=this.chunk[o],h=e.touchesRange(l,l+a.length);if(h===!1)s=Math.max(s,a.maxPoint),t.push(a),i.push(e.mapPos(l));else if(h===!0){let{mapped:c,pos:f}=a.map(l,e);c&&(s=Math.max(s,c.maxPoint),t.push(c),i.push(f))}}let r=this.nextLayer.map(e);return t.length==0?r:new F(i,t,r||F.empty,s)}between(e,t,i){if(!this.isEmpty){for(let s=0;s<this.chunk.length;s++){let r=this.chunkPos[s],o=this.chunk[s];if(t>=r&&e<=r+o.length&&o.between(r,e-r,t-r,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return Bi.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Bi.from(e).goto(t)}static compare(e,t,i,s,r=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=r),l=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=r),a=Vo(o,l,i),h=new ui(o,a,r),c=new ui(l,a,r);i.iterGaps((f,u,d)=>zo(h,f,c,u,d,s)),i.empty&&i.length==0&&zo(h,0,c,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let r=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),o=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let l=Vo(r,o),a=new ui(r,l,0).goto(i),h=new ui(o,l,0).goto(i);for(;;){if(a.to!=h.to||!hr(a.active,h.active)||a.point&&(!h.point||!Jr(a.point,h.point)))return!1;if(a.to>s)return!0;a.next(),h.next()}}static spans(e,t,i,s,r=-1){let o=new ui(e,null,r).goto(t),l=t,a=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFrom<t?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,a);s.point(l,h,o.point,c,f,o.pointRank),a=Math.min(o.openEnd(h),c.length)}else h>l&&(s.span(l,h,o.active,a),a=o.openEnd(h));if(o.to>i)return a+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(e,t=!1){let i=new lt;for(let s of e instanceof lr?[e]:t?eu(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return F.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=F.empty;s=s.nextLayer)t=new F(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}F.empty=new F([],[],null,-1);function eu(n){if(n.length>1)for(let e=n[0],t=1;t<n.length;t++){let i=n[t];if(ar(e,i)>0)return n.slice().sort(ar);e=i}return n}F.empty.nextLayer=F.empty;class lt{finishChunk(e){this.chunks.push(new Yr(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new lt)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(F.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=F.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Vo(n,e,t){let i=new Map;for(let r of n)for(let o=0;o<r.chunk.length;o++)r.chunk[o].maxPoint<=0&&i.set(r.chunk[o],r.chunkPos[o]);let s=new Set;for(let r of e)for(let o=0;o<r.chunk.length;o++){let l=i.get(r.chunk[o]);l!=null&&(t?t.mapPos(l):l)==r.chunkPos[o]&&!t?.touchesRange(l,l+r.chunk[o].length)&&s.add(r.chunk[o])}return s}class ja{constructor(e,t,i,s=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=s}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let s=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(s)||this.layer.chunkEnd(this.chunkIndex)<e||s.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let s=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<s)&&this.setRangeIndex(s)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Bi{constructor(e){this.heap=e}static from(e,t=null,i=-1){let s=[];for(let r=0;r<e.length;r++)for(let o=e[r];!o.isEmpty;o=o.nextLayer)o.maxPoint>=i&&s.push(new ja(o,t,i,r));return s.length==1?s[0]:new Bi(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)xs(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)xs(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),xs(this.heap,0)}}}function xs(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1<n.length&&s.compare(n[i+1])>=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class ui{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Bi.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){nn(this.active,e),nn(this.activeTo,e),nn(this.activeRank,e),this.minActive=qo(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:r}=this.cursor;for(;t<this.activeRank.length&&(r-this.activeRank[t]||s-this.activeTo[t])>0;)t++;sn(this.active,t,i),sn(this.activeTo,t,s),sn(this.activeRank,t,r),e&&sn(e,t,this.cursor.from),this.minActive=qo(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&nn(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=r,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=r.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let s=i.length-1;s>=0&&i[s]<e;s--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function zo(n,e,t,i,s,r){n.goto(e),t.goto(i);let o=i+s,l=i,a=i-e,h=!!r.boundChange;for(let c=!1;;){let f=n.to+a-t.to,u=f||n.endSide-t.endSide,d=u<0?n.to+a:t.to,p=Math.min(d,o);if(n.point||t.point?(n.point&&t.point&&Jr(n.point,t.point)&&hr(n.activeForPoint(n.to),t.activeForPoint(t.to))||r.comparePoint(l,p,n.point,t.point),c=!1):(c&&r.boundChange(l),p>l&&!hr(n.active,t.active)&&r.compareRange(l,p,n.active,t.active),h&&p<o&&(f||n.openEnd(d)!=t.openEnd(d))&&(c=!0)),d>o)break;l=d,u<=0&&n.next(),u>=0&&t.next()}}function hr(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t]&&!Jr(n[t],e[t]))return!1;return!0}function nn(n,e){for(let t=e,i=n.length-1;t<i;t++)n[t]=n[t+1];n.pop()}function sn(n,e,t){for(let i=n.length-1;i>=e;i--)n[i+1]=n[i];n[e]=t}function qo(n,e){let t=-1,i=1e9;for(let s=0;s<e.length;s++)(e[s]-i||n[s].endSide-n[t].endSide)<0&&(t=s,i=e[s]);return t}function li(n,e,t=n.length){let i=0;for(let s=0;s<t&&s<n.length;)n.charCodeAt(s)==9?(i+=e-i%e,s++):(i++,s=le(n,s));return i}function cr(n,e,t,i){for(let s=0,r=0;;){if(r>=e)return s;if(s==n.length)break;r+=n.charCodeAt(s)==9?t-r%t:1,s=le(n,s)}return i===!0?-1:n.length}const fr="ͼ",$o=typeof Symbol>"u"?"__"+fr:Symbol.for(fr),ur=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class yt{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,a,h){let c=[],f=/^@(\w+)\b/.exec(o[0]),u=f&&f[1]=="keyframes";if(f&&l==null)return a.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),p,a);else if(p&&typeof p=="object"){if(!f)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,c,u)}else p!=null&&c.push(d.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(c.length||u)&&a.push((i&&!f&&!h?o.map(i):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)r(s(o),e[o],this.rules)}getRules(){return this.rules.join(`
7+`)}static newName(){let e=Ko[$o]||1;return Ko[$o]=e+1,fr+e.toString(36)}static mount(e,t,i){let s=e[ur],r=i&&i.nonce;s?r&&s.setNonce(r):s=new tu(e,r),s.mount(Array.isArray(t)?t:[t],e)}}let Uo=new Map;class tu{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let r=Uo.get(i);if(r)return e[ur]=r;this.sheet=new s.CSSStyleSheet,Uo.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[ur]=this}mount(e,t){let i=this.sheet,s=0,r=0;for(let o=0;o<e.length;o++){let l=e[o],a=this.modules.indexOf(l);if(a<r&&a>-1&&(this.modules.splice(a,1),r--,a=-1),a==-1){if(this.modules.splice(r++,0,l),i)for(let h=0;h<l.rules.length;h++)i.insertRule(l.rules[h],s++)}else{for(;r<a;)s+=this.modules[r++].rules.length;s+=l.rules.length,r++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let a=0;a<this.modules.length;a++)o+=this.modules[a].getRules()+`
8+`;this.styleTag.textContent=o;let l=t.head||t;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var bt={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Li={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},iu=typeof navigator<"u"&&/Mac/.test(navigator.platform),nu=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ce=0;ce<10;ce++)bt[48+ce]=bt[96+ce]=String(ce);for(var ce=1;ce<=24;ce++)bt[ce+111]="F"+ce;for(var ce=65;ce<=90;ce++)bt[ce]=String.fromCharCode(ce+32),Li[ce]=String.fromCharCode(ce);for(var ws in bt)Li.hasOwnProperty(ws)||(Li[ws]=bt[ws]);function su(n){var e=iu&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||nu&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Li:bt)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function U(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e<arguments.length;e++)_a(n,arguments[e]);return n}function _a(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)_a(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let xe=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},dr=typeof document<"u"?document:{documentElement:{style:{}}};const pr=/Edge\/(\d+)/.exec(xe.userAgent),Ga=/MSIE \d/.test(xe.userAgent),mr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xe.userAgent),ns=!!(Ga||mr||pr),jo=!ns&&/gecko\/(\d+)/i.test(xe.userAgent),vs=!ns&&/Chrome\/(\d+)/.exec(xe.userAgent),ru="webkitFontSmoothing"in dr.documentElement.style,gr=!ns&&/Apple Computer/.test(xe.vendor),_o=gr&&(/Mobile\/\w+/.test(xe.userAgent)||xe.maxTouchPoints>2);var D={mac:_o||/Mac/.test(xe.platform),windows:/Win/.test(xe.platform),linux:/Linux|X11/.test(xe.platform),ie:ns,ie_version:Ga?dr.documentMode||6:mr?+mr[1]:pr?+pr[1]:0,gecko:jo,gecko_version:jo?+(/Firefox\/(\d+)/.exec(xe.userAgent)||[0,0])[1]:0,chrome:!!vs,chrome_version:vs?+vs[1]:0,ios:_o,android:/Android\b/.test(xe.userAgent),webkit_version:ru?+(/\bAppleWebKit\/(\d+)/.exec(xe.userAgent)||[0,0])[1]:0,safari:gr,safari_version:gr?+(/\bVersion\/(\d+(\.\d+)?)/.exec(xe.userAgent)||[0,0])[1]:0,tabSize:dr.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Xr(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const Nn=Object.create(null);function Qr(n,e,t){if(n==e)return!0;n||(n=Nn),e||(e=Nn);let i=Object.keys(n),s=Object.keys(e);if(i.length-0!=s.length-0)return!1;for(let r of i)if(r!=t&&(s.indexOf(r)==-1||n[r]!==e[r]))return!1;return!0}function ou(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function Go(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function lu(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class st{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var fe=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(fe||(fe={}));class E extends gt{constructor(e,t,i,s){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(e){return new _i(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Pt(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:r,end:o}=Ja(e,t);i=(r?t?-3e8:-1:5e8)-1,s=(o?t?2e8:1:-6e8)+1}return new Pt(e,i,s,t,e.widget||null,!0)}static line(e){return new Gi(e)}static set(e,t=!1){return F.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}E.none=F.empty;class _i extends E{constructor(e){let{start:t,end:i}=Ja(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Xr(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Nn}eq(e){return this==e||e instanceof _i&&this.tagName==e.tagName&&Qr(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}_i.prototype.point=!1;class Gi extends E{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Gi&&this.spec.class==e.spec.class&&Qr(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Gi.prototype.mapMode=we.TrackBefore;Gi.prototype.point=!0;class Pt extends E{constructor(e,t,i,s,r,o){super(t,i,r,e),this.block=s,this.isReplace=o,this.mapMode=s?t<=0?we.TrackBefore:we.TrackAfter:we.TrackDel}get type(){return this.startSide!=this.endSide?fe.WidgetRange:this.startSide<=0?fe.WidgetBefore:fe.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Pt&&au(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Pt.prototype.point=!0;function Ja(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function au(n,e){return n==e||!!(n&&e&&n.compare(e))}function Gt(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class Ei extends gt{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof Ei&&this.tagName==e.tagName&&Qr(this.attributes,e.attributes)}static create(e){return new Ei(e.tagName,e.attributes||Nn)}static set(e,t=!1){return F.of(e,t)}}Ei.prototype.startSide=Ei.prototype.endSide=-1;function Ri(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function yr(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function Si(n,e){if(!e.anchorNode)return!1;try{return yr(n,e.anchorNode)}catch{return!1}}function Ci(n){return n.nodeType==3?Ii(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function Ai(n,e,t,i){return t?Jo(n,e,t,i,-1)||Jo(n,e,t,i,1):!1}function xt(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function Wn(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function Jo(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:at(n))){if(n.nodeName=="DIV")return!1;let r=n.parentNode;if(!r||r.nodeType!=1)return!1;e=xt(n)+(s<0?0:1),n=r}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?at(n):0}else return!1}}function at(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Pi(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function hu(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Ya(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function cu(n,e,t,i,s,r,o,l){let a=n.ownerDocument,h=a.defaultView||window;for(let c=n,f=!1;c&&!f;)if(c.nodeType==1){let u,d=c==a.body,p=1,m=1;if(d)u=hu(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let w=c.getBoundingClientRect();({scaleX:p,scaleY:m}=Ya(c,w)),u={left:w.left,right:w.left+c.clientWidth*p,top:w.top,bottom:w.top+c.clientHeight*m}}let g=0,b=0;if(s=="nearest")e.top<u.top?(b=e.top-(u.top+o),t>0&&e.bottom>u.bottom+b&&(b=e.bottom-u.bottom+o)):e.bottom>u.bottom&&(b=e.bottom-u.bottom+o,t<0&&e.top-b<u.top&&(b=e.top-(u.top+o)));else{let w=e.bottom-e.top,v=u.bottom-u.top;b=(s=="center"&&w<=v?e.top+w/2-v/2:s=="start"||s=="center"&&t<0?e.top-o:e.bottom-v+o)-u.top}if(i=="nearest"?e.left<u.left?(g=e.left-(u.left+r),t>0&&e.right>u.right+g&&(g=e.right-u.right+r)):e.right>u.right&&(g=e.right-u.right+r,t<0&&e.left<u.left+g&&(g=e.left-(u.left+r))):g=(i=="center"?e.left+(e.right-e.left)/2-(u.right-u.left)/2:i=="start"==l?e.left-r:e.right-(u.right-u.left)+r)-u.left,g||b)if(d)h.scrollBy(g,b);else{let w=0,v=0;if(b){let T=c.scrollTop;c.scrollTop+=b/m,v=(c.scrollTop-T)*m}if(g){let T=c.scrollLeft;c.scrollLeft+=g/p,w=(c.scrollLeft-T)*p}e={left:e.left-w,top:e.top-v,right:e.right-w,bottom:e.bottom-v},w&&Math.abs(w-g)<1&&(i="nearest"),v&&Math.abs(v-b)<1&&(s="nearest")}if(d)break;(e.top<u.top||e.bottom>u.bottom||e.left<u.left||e.right>u.right)&&(e={left:Math.max(e.left,u.left),right:Math.min(e.right,u.right),top:Math.max(e.top,u.top),bottom:Math.min(e.bottom,u.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function fu(n){let e=n.ownerDocument,t,i;for(let s=n.parentNode;s&&!(s==e.body||t&&i);)if(s.nodeType==1)!i&&s.scrollHeight>s.clientHeight&&(i=s),!t&&s.scrollWidth>s.clientWidth&&(t=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:t,y:i}}class uu{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?at(t):0),i,Math.min(e.focusOffset,i?at(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let Mt=null;D.safari&&D.safari_version>=26&&(Mt=!1);function Xa(n){if(n.setActive)return n.setActive();if(Mt)return n.focus(Mt);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(Mt==null?{get preventScroll(){return Mt={preventScroll:!0},!0}}:void 0),!Mt){Mt=!1;for(let t=0;t<e.length;){let i=e[t++],s=e[t++],r=e[t++];i.scrollTop!=s&&(i.scrollTop=s),i.scrollLeft!=r&&(i.scrollLeft=r)}}}let Yo;function Ii(n,e,t=e){let i=Yo||(Yo=document.createRange());return i.setEnd(n,t),i.setStart(n,e),i}function Jt(n,e,t,i){let s={key:e,code:e,keyCode:t,which:t,cancelable:!0};i&&({altKey:s.altKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,metaKey:s.metaKey}=i);let r=new KeyboardEvent("keydown",s);r.synthetic=!0,n.dispatchEvent(r);let o=new KeyboardEvent("keyup",s);return o.synthetic=!0,n.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function du(n){for(;n;){if(n&&(n.nodeType==9||n.nodeType==11&&n.host))return n;n=n.assignedSlot||n.parentNode}return null}function pu(n,e){let t=e.focusNode,i=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=i)return!1;for(i=Math.min(i,at(t));;)if(i){if(t.nodeType!=1)return!1;let s=t.childNodes[i-1];s.contentEditable=="false"?i--:(t=s,i=at(t))}else{if(t==n)return!0;i=xt(t),t=t.parentNode}}function Qa(n){return n.scrollTop>Math.max(1,n.scrollHeight-n.clientHeight-4)}function Za(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=at(t)}else if(t.parentNode&&!Wn(t))i=xt(t),t=t.parentNode;else return null}}function eh(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i<t.nodeValue.length)return{node:t,offset:i};if(t.nodeType==1&&i<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[i],i=0}else if(t.parentNode&&!Wn(t))i=xt(t)+1,t=t.parentNode;else return null}}class He{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new He(e.parentNode,xt(e),t)}static after(e,t){return new He(e.parentNode,xt(e)+1,t)}}var _=(function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n})(_||(_={}));const It=_.LTR,Zr=_.RTL;function th(n){let e=[];for(let t=0;t<n.length;t++)e.push(1<<+n[t]);return e}const mu=th("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),gu=th("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),br=Object.create(null),Ue=[];for(let n of["()","[]","{}"]){let e=n.charCodeAt(0),t=n.charCodeAt(1);br[e]=t,br[t]=-e}function ih(n){return n<=247?mu[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?gu[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8204?256:64336<=n&&n<=65023?4:1}const yu=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Qe{get dir(){return this.level%2?Zr:It}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,s){let r=-1;for(let o=0;o<e.length;o++){let l=e[o];if(l.from<=t&&l.to>=t){if(l.level==i)return o;(r<0||(s!=0?s<0?l.from<t:l.to>t:e[r].level>l.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function nh(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++){let i=n[t],s=e[t];if(i.from!=s.from||i.to!=s.to||i.direction!=s.direction||!nh(i.inner,s.inner))return!1}return!0}const j=[];function bu(n,e,t,i,s){for(let r=0;r<=i.length;r++){let o=r?i[r-1].to:e,l=r<i.length?i[r].from:t,a=r?256:s;for(let h=o,c=a,f=a;h<l;h++){let u=ih(n.charCodeAt(h));u==512?u=c:u==8&&f==4&&(u=16),j[h]=u==4?2:u,u&7&&(f=u),c=u}for(let h=o,c=a,f=a;h<l;h++){let u=j[h];if(u==128)h<l-1&&c==j[h+1]&&c&24?u=j[h]=c:j[h]=256;else if(u==64){let d=h+1;for(;d<l&&j[d]==64;)d++;let p=h&&c==8||d<t&&j[d]==8?f==1?1:8:256;for(let m=h;m<d;m++)j[m]=p;h=d-1}else u==8&&f==1&&(j[h]=1);c=u,u&7&&(f=u)}}}function xu(n,e,t,i,s){let r=s==1?2:1;for(let o=0,l=0,a=0;o<=i.length;o++){let h=o?i[o-1].to:e,c=o<i.length?i[o].from:t;for(let f=h,u,d,p;f<c;f++)if(d=br[u=n.charCodeAt(f)])if(d<0){for(let m=l-3;m>=0;m-=3)if(Ue[m+1]==-d){let g=Ue[m+2],b=g&2?s:g&4?g&1?r:s:0;b&&(j[f]=j[Ue[m]]=b),l=m;break}}else{if(Ue.length==189)break;Ue[l++]=f,Ue[l++]=u,Ue[l++]=a}else if((p=j[f])==2||p==1){let m=p==s;a=m?0:1;for(let g=l-3;g>=0;g-=3){let b=Ue[g+2];if(b&2)break;if(m)Ue[g+2]|=2;else{if(b&4)break;Ue[g+2]|=4}}}}}function wu(n,e,t,i){for(let s=0,r=i;s<=t.length;s++){let o=s?t[s-1].to:n,l=s<t.length?t[s].from:e;for(let a=o;a<l;){let h=j[a];if(h==256){let c=a+1;for(;;)if(c==l){if(s==t.length)break;c=t[s++].to,l=s<t.length?t[s].from:e}else if(j[c]==256)c++;else break;let f=r==1,u=(c<e?j[c]:i)==1,d=f==u?f?1:2:i;for(let p=c,m=s,g=m?t[m-1].to:n;p>a;)p==g&&(p=t[--m].from,g=m?t[m-1].to:n),j[--p]=d;a=c}else r=h,a++}}}function xr(n,e,t,i,s,r,o){let l=i%2?2:1;if(i%2==s%2)for(let a=e,h=0;a<t;){let c=!0,f=!1;if(h==r.length||a<r[h].from){let m=j[a];m!=l&&(c=!1,f=m==16)}let u=!c&&l==1?[]:null,d=c?i:i+1,p=a;e:for(;;)if(h<r.length&&p==r[h].from){if(f)break e;let m=r[h];if(!c)for(let g=m.to,b=h+1;;){if(g==t)break e;if(b<r.length&&r[b].from==g)g=r[b++].to;else{if(j[g]==l)break e;break}}if(h++,u)u.push(m);else{m.from>a&&o.push(new Qe(a,m.from,d));let g=m.direction==It!=!(d%2);wr(n,g?i+1:i,s,m.inner,m.from,m.to,o),a=m.to}p=m.to}else{if(p==t||(c?j[p]!=l:j[p]==l))break;p++}u?xr(n,a,p,i+1,s,u,o):a<p&&o.push(new Qe(a,p,d)),a=p}else for(let a=t,h=r.length;a>e;){let c=!0,f=!1;if(!h||a>r[h-1].to){let m=j[a-1];m!=l&&(c=!1,f=m==16)}let u=!c&&l==1?[]:null,d=c?i:i+1,p=a;e:for(;;)if(h&&p==r[h-1].to){if(f)break e;let m=r[--h];if(!c)for(let g=m.from,b=h;;){if(g==e)break e;if(b&&r[b-1].to==g)g=r[--b].from;else{if(j[g-1]==l)break e;break}}if(u)u.push(m);else{m.to<a&&o.push(new Qe(m.to,a,d));let g=m.direction==It!=!(d%2);wr(n,g?i+1:i,s,m.inner,m.from,m.to,o),a=m.from}p=m.from}else{if(p==e||(c?j[p-1]!=l:j[p-1]==l))break;p--}u?xr(n,p,a,i+1,s,u,o):p<a&&o.push(new Qe(p,a,d)),a=p}}function wr(n,e,t,i,s,r,o){let l=e%2?2:1;bu(n,s,r,i,l),xu(n,s,r,i,l),wu(s,r,i,l),xr(n,s,r,e,t,i,o)}function vu(n,e,t){if(!n)return[new Qe(0,0,e==Zr?1:0)];if(e==It&&!t.length&&!yu.test(n))return sh(n.length);if(t.length)for(;n.length>j.length;)j[j.length]=256;let i=[],s=e==It?0:1;return wr(n,s,s,t,0,n.length,i),i}function sh(n){return[new Qe(0,n,0)]}let rh="";function ku(n,e,t,i,s){var r;let o=i.head-n.from,l=Qe.find(e,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),a=e[l],h=a.side(s,t);if(o==h){let u=l+=s?1:-1;if(u<0||u>=e.length)return null;a=e[l=u],o=a.side(!s,t),h=a.side(s,t)}let c=le(n.text,o,a.forward(s,t));(c<a.from||c>a.to)&&(c=h),rh=n.text.slice(Math.min(o,c),Math.max(o,c));let f=l==(s?e.length-1:0)?null:e[l+(s?1:-1)];return f&&c==h&&f.level+(s?0:1)<a.level?x.cursor(f.side(!s,t)+n.from,f.forward(s,t)?1:-1,f.level):x.cursor(c+n.from,a.forward(s,t)?-1:1,a.level)}function Su(n,e,t){for(let i=e;i<t;i++){let s=ih(n.charCodeAt(i));if(s==1)return It;if(s==2||s==4)return Zr}return It}const oh=O.define(),lh=O.define(),ah=O.define(),hh=O.define(),vr=O.define(),ch=O.define(),fh=O.define(),eo=O.define(),to=O.define(),uh=O.define({combine:n=>n.some(e=>e)}),dh=O.define({combine:n=>n.some(e=>e)}),ph=O.define();class Yt{constructor(e,t="nearest",i="nearest",s=5,r=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new Yt(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Yt(x.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const rn=I.define({map:(n,e)=>n.map(e)}),mh=I.define();function Ae(n,e,t){let i=n.facet(hh);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const rt=O.define({combine:n=>n.length?n[0]:!0});let Cu=0;const $t=O.define({combine(n){return n.filter((e,t)=>{for(let i=0;i<t;i++)if(n[i].plugin==e.plugin)return!1;return!0})}});class Z{constructor(e,t,i,s,r){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=s,this.baseExtensions=r(this),this.extension=this.baseExtensions.concat($t.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat($t.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:i,eventObservers:s,provide:r,decorations:o}=t||{};return new Z(Cu++,e,i,s,l=>{let a=[];return o&&a.push(ss.of(h=>{let c=h.plugin(l);return c?o(c):E.none})),r&&a.push(r(l)),a})}static fromClass(e,t){return Z.define((i,s)=>new e(i,s),t)}}class ks{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(Ae(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Ae(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){Ae(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const gh=O.define(),io=O.define(),ss=O.define(),yh=O.define(),no=O.define(),Ji=O.define(),bh=O.define();function Xo(n,e){let t=n.state.facet(bh);if(!t.length)return t;let i=t.map(r=>r instanceof Function?r(n):r),s=[];return F.spans(i,e.from,e.to,{point(){},span(r,o,l,a){let h=r-e.from,c=o-e.from,f=s;for(let u=l.length-1;u>=0;u--,a--){let d=l[u].spec.bidiIsolate,p;if(d==null&&(d=Su(e.text,h,c)),a>0&&f.length&&(p=f[f.length-1]).to==h&&p.direction==d)p.to=c,f=p.inner;else{let m={from:h,to:c,direction:d,inner:[]};f.push(m),f=m.inner}}}}),s}const xh=O.define();function so(n){let e=0,t=0,i=0,s=0;for(let r of n.state.facet(xh)){let o=r(n);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)))}return{left:e,right:t,top:i,bottom:s}}const yi=O.define();class Ee{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new Ee(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toA<i.fromA)break;i=i.join(s),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(t.length==0)return e;let i=[];for(let s=0,r=0,o=0;;){let l=s<e.length?e[s].fromB:1e9,a=r<t.length?t[r]:1e9,h=Math.min(l,a);if(h==1e9)break;let c=h+o,f=h,u=c;for(;;)if(r<t.length&&t[r]<=f){let d=t[r+1];r+=2,f=Math.max(f,d);for(let p=s;p<e.length&&e[p].fromB<=f;p++)o=e[p].toA-e[p].toB;u=Math.max(u,d+o)}else if(s<e.length&&e[s].fromB<=f){let d=e[s++];f=Math.max(f,d.toB),u=Math.max(u,d.toA),o=d.toA-d.toB}else break;i.push(new Ee(c,u,h,f))}return i}}class Fn{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=ne.empty(this.startState.doc.length);for(let r of i)this.changes=this.changes.compose(r.changes);let s=[];this.changes.iterChangedRanges((r,o,l,a)=>s.push(new Ee(r,o,l,a))),this.changedRanges=s}static create(e,t,i){return new Fn(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const Au=[];class te{constructor(e,t,i=0){this.dom=e,this.length=t,this.flags=i,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return Au}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&ou(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let i=t;for(let s of this.children){if(s==e)return i;i+=s.length+s.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let i=xt(this.dom),s=this.length?e>0:t>0;return new He(this.parent.dom,i+(s?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof os)return e;return null}static get(e){return e.cmTile}}class rs extends te{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,i=null,s,r=e?.node==t?e:null,o=0;for(let l of this.children){if(l.sync(e),o+=l.length+l.breakAfter,s=i?i.nextSibling:t.firstChild,r&&s!=l.dom&&(r.written=!0),l.dom.parentNode==t)for(;s&&s!=l.dom;)s=Qo(s);else t.insertBefore(l.dom,s);i=l.dom}for(s=i?i.nextSibling:t.firstChild,r&&s&&(r.written=!0);s;)s=Qo(s);this.length=o}}function Qo(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class os extends rs{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=te.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],i=this,s=0,r=0;;)if(s==i.children.length){if(!t.length)return;i=i.parent,i.breakAfter&&r++,s=t.pop()}else{let o=i.children[s++];if(o instanceof ot)t.push(s),i=o,s=0;else{let l=r+o.length,a=e(o,r);if(a!==void 0)return a;r=l+o.breakAfter}}}resolveBlock(e,t){let i,s=-1,r,o=-1;if(this.blockTiles((l,a)=>{let h=a+l.length;if(e>=a&&e<=h){if(l.isWidget()&&t>=-1&&t<=1){if(l.flags&32)return!0;l.flags&16&&(i=void 0)}(a<e||e==h&&(t<-1?l.length:l.covers(1)))&&(!i||!l.isWidget()&&i.isWidget())&&(i=l,s=e-a),(h>e||e==a&&(t>1?l.length:l.covers(-1)))&&(!r||!l.isWidget()&&r.isWidget())&&(r=l,o=e-a)}}),!i&&!r)throw new Error("No tile at position "+e);return i&&t<0||!r?{tile:i,offset:s}:{tile:r,offset:o}}}class ot extends rs{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,t){let i=new ot(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class ei extends rs{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,i){let s=new ei(t||document.createElement("div"),e);return(!t||!i)&&(s.flags|=4),s}get domAttrs(){return this.attrs}resolveInline(e,t,i){let s=null,r=-1,o=null,l=-1;function a(c,f){for(let u=0,d=0;u<c.children.length&&d<=f;u++){let p=c.children[u],m=d+p.length;m>=f&&(p.isComposite()?a(p,f-d):(!o||o.isHidden&&(t>0||i&&Tu(o,p)))&&(m>f||p.flags&32)?(o=p,l=f-d):(d<f||p.flags&16&&!p.isHidden)&&(s=p,r=f-d)),d=m}}a(this,e);let h=(t<0?s:o)||s||o;return h?{tile:h,offset:h==s?r:l}:null}coordsIn(e,t){let i=this.resolveInline(e,t,!0);return i?i.tile.coordsIn(Math.max(0,i.offset),t):Mu(this)}domIn(e,t){let i=this.resolveInline(e,t);if(i){let{tile:s,offset:r}=i;if(this.dom.contains(s.dom))return s.isText()?new He(s.dom,Math.min(s.dom.nodeValue.length,r)):s.domPosFor(r,s.flags&16?1:s.flags&32?-1:t);let o=i.tile.parent,l=!1;for(let a of o.children){if(l)return new He(a.dom,0);a==i.tile&&(l=!0)}}return new He(this.dom,0)}}function Mu(n){let e=n.dom.lastChild;if(!e)return n.dom.getBoundingClientRect();let t=Ci(e);return t[t.length-1]||null}function Tu(n,e){let t=n.coordsIn(0,1),i=e.coordsIn(0,1);return t&&i&&i.top<t.bottom}class Ce extends rs{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let i=new Ce(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class Bt extends te{constructor(e,t){super(e,t.length),this.text=t}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let i=this.dom.nodeValue.length;e>i&&(e=i);let s=e,r=e,o=0;e==0&&t<0||e==i&&t>=0?D.chrome||D.gecko||(e?(s--,o=1):r<i&&(r++,o=-1)):t<0?s--:r<i&&r++;let l=Ii(this.dom,s,r).getClientRects();if(!l.length)return null;let a=l[(o?o<0:t>=0)?0:l.length-1];return D.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,h=>h.width)||a),o?Pi(a,o<0):a||null}static of(e,t){let i=new Bt(t||document.createTextNode(e),e);return t||(i.flags|=2),i}}class Nt extends te{constructor(e,t,i,s){super(e,t,s),this.widget=i}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,i){let s=this.widget.coordsAt(this.dom,e,t);if(s)return s;if(i)return Pi(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let l=this.flags&16?!0:this.flags&32?!1:e>0;for(let a=l?r.length-1:0;o=r[a],!(e>0?a==0:a==r.length-1||o.top<o.bottom);a+=l?-1:1);return Pi(o,!l)}}get overrideDOMText(){if(!this.length)return q.empty;let{root:e}=this;if(!e)return q.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,i,s,r){return r||(r=e.toDOM(t),e.editable||(r.contentEditable="false")),new Nt(r,i,e,s)}}class Hn extends te{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return q.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class Du{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,i){let{tile:s,index:r,beforeBreak:o,parents:l}=this;for(;e||t>0;)if(s.isComposite())if(o){if(!e)break;i&&i.break(),e--,o=!1}else if(r==s.children.length){if(!e&&!l.length)break;i&&i.leave(s),o=!!s.breakAfter,{tile:s,index:r}=l.pop(),r++}else{let a=s.children[r],h=a.breakAfter;(t>0?a.length<=e:a.length<e)&&(!i||i.skip(a,0,a.length)!==!1||!a.isComposite)?(o=!!h,r++,e-=a.length):(l.push({tile:s,index:r}),s=a,r=0,i&&a.isComposite()&&i.enter(a))}else if(r==s.length)o=!!s.breakAfter,{tile:s,index:r}=l.pop(),r++;else if(e){let a=Math.min(e,s.length-r);i&&i.skip(s,r,r+a),e-=a,r+=a}else break;return this.tile=s,this.index=r,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class Ou{constructor(e,t,i,s){this.from=e,this.to=t,this.wrapper=i,this.rank=s}}class Bu{constructor(e,t,i){this.cache=e,this.root=t,this.blockWrappers=i,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,i,s){var r;this.flushBuffer();let o=this.ensureMarks(t,i),l=o.lastChild;if(l&&l.isText()&&!(l.flags&8)&&l.length+e.length<512){this.cache.reused.set(l,2);let a=o.children[o.children.length-1]=new Bt(l.dom,l.text+e);a.parent=o}else o.append(s||Bt.of(e,(r=this.cache.find(Bt))===null||r===void 0?void 0:r.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let i=this.curLine;i.dom!=t.line.dom&&(i.setDOM(this.cache.reused.has(t.line)?Ss(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let s=i;for(let l=t.marks.length-1;l>=0;l--){let a=t.marks[l],h=s.lastChild;if(h instanceof Ce&&h.mark.eq(a.mark))h.dom!=a.dom&&h.setDOM(Ss(a.dom)),s=h;else{if(this.cache.reused.get(a)){let f=te.get(a.dom);f&&f.setDOM(Ss(a.dom))}let c=Ce.of(a.mark,a.dom);s.append(c),s=c}this.cache.reused.set(a,2)}let r=te.get(e.text);r&&this.cache.reused.set(r,2);let o=new Bt(e.text,e.text.nodeValue);o.flags|=8,s.append(o)}addInlineWidget(e,t,i){let s=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);s||this.flushBuffer();let r=this.ensureMarks(t,i);!s&&!(e.flags&16)&&r.append(this.getBuffer(1)),r.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,i){this.flushBuffer(),this.ensureMarks(t,i).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var i;e||(e=wh);let s=ei.start(e,t||((i=this.cache.find(ei))===null||i===void 0?void 0:i.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=s)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var i;let s=this.curLine;for(let r=e.length-1;r>=0;r--){let o=e[r],l;if(t>0&&(l=s.lastChild)&&l instanceof Ce&&l.mark.eq(o))s=l,t--;else{let a=Ce.of(o,(i=this.cache.find(Ce,h=>h.mark.eq(o)))===null||i===void 0?void 0:i.dom);s.append(a),s=a,t=0}}return s}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!Zo(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(D.ios&&Zo(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Cs,0,32)||new Nt(Cs.toDOM(),0,Cs,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=new Ou(e.from,e.to,e.value,e.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-t.rank||this.wrappers[i-1].to-t.to)<0;)i--;this.wrappers.splice(i,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let i of this.wrappers){let s=t.lastChild;if(i.from<this.pos&&s instanceof ot&&s.wrapper.eq(i.wrapper))t=s;else{let r=ot.of(i.wrapper,(e=this.cache.find(ot,o=>o.wrapper.eq(i.wrapper)))===null||e===void 0?void 0:e.dom);t.append(r),t=r}}return t}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),i=this.cache.find(Hn,void 0,1);return i&&(i.flags=t),i||new Hn(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class Lu{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:s,lineBreak:r,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=s;let l=this.textOff=Math.min(e,s.length);return r?null:s.slice(0,l)}let t=Math.min(this.text.length,this.textOff+e),i=this.text.slice(this.textOff,t);return this.textOff=t,i}}const Vn=[Nt,ei,Bt,Ce,Hn,ot,os];for(let n=0;n<Vn.length;n++)Vn[n].bucket=n;class Eu{constructor(e){this.view=e,this.buckets=Vn.map(()=>[]),this.index=Vn.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,i=this.buckets[t];i.length<6?i.push(e):i[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,i=2){let s=e.bucket,r=this.buckets[s],o=this.index[s];for(let l=r.length-1;l>=0;l--){let a=(l+o)%r.length,h=r[a];if((!t||t(h))&&!this.reused.has(h))return r.splice(a,1),a<o&&this.index[s]--,this.reused.set(h,i),h}return null}findWidget(e,t,i){let s=this.buckets[0];if(s.length)for(let r=0,o=0;;r++){if(r==s.length){if(o)return null;o=1,r=0}let l=s[r];if(!this.reused.has(l)&&(o==0?l.widget.compare(e):l.widget.constructor==e.constructor&&e.updateDOM(l.dom,this.view)))return s.splice(r,1),r<this.index[0]&&this.index[0]--,l.widget==e&&l.length==t&&(l.flags&497)==i?(this.reused.set(l,1),l):(this.reused.set(l,2),new Nt(l.dom,t,e,l.flags&-498|i))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class Ru{constructor(e,t,i,s,r){this.view=e,this.decorations=s,this.disallowBlockEffectsFor=r,this.openWidget=!1,this.openMarks=0,this.cache=new Eu(e),this.text=new Lu(e.state.doc),this.builder=new Bu(this.cache,new os(e,e.contentDOM),F.iter(i)),this.cache.reused.set(t,2),this.old=new Du(t),this.reuseWalker={skip:(o,l,a)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,t){let i=t&&this.getCompositionContext(t.text);for(let s=0,r=0,o=0;;){let l=o<e.length?e[o++]:null,a=l?l.fromA:this.old.root.length;if(a>s){let h=a-s;this.preserve(h,!o,!l),s=a,r+=h}if(!l)break;t&&l.fromA<=t.range.fromA&&l.toA>=t.range.toA?(this.forward(l.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(r,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,i),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,l.toA),this.emit(t.range.toB,l.toB)):(this.forward(l.fromA,l.toA),this.emit(r,l.toB)),r=l.toB,s=l.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,i){let s=Nu(this.old),r=this.openMarks;this.old.advance(e,i?1:-1,{skip:(o,l,a)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(a-l);else{let h=a>0||l<o.length?Nt.of(o.widget,this.view,a-l,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);h.flags&256?(h.flags&=-2,this.builder.addBlockWidget(h)):(this.builder.ensureLine(null),this.builder.addInlineWidget(h,s,r),r=s.length)}else if(o.isText())this.builder.ensureLine(null),!l&&a==o.length?this.builder.addText(o.text,s,r,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(l,a),s,r)),r=s.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof Hn)this.cache.add(o);else if(o instanceof Ce)this.builder.ensureLine(null),this.builder.addMark(o,s,r),this.cache.reused.set(o,1),r=s.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof Ce&&s.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?s.length&&(s.length=r=0):o instanceof Ce&&(s.shift(),r=Math.min(r,s.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let i=null,s=this.builder,r=0,o=F.spans(this.decorations,e,t,{point:(l,a,h,c,f,u)=>{if(h instanceof Pt){if(this.disallowBlockEffectsFor[u]){if(h.block)throw new RangeError("Block decorations may not be specified via plugins");if(a>this.view.state.doc.lineAt(l).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=c.length,f>c.length)s.continueWidget(a-l);else{let d=h.widget||(h.block?ti.block:ti.inline),p=Pu(h),m=this.cache.findWidget(d,a-l,p)||Nt.of(d,this.view,a-l,p);h.block?(h.startSide>0&&s.addLineStartIfNotCovered(i),s.addBlockWidget(m)):(s.ensureLine(i),s.addInlineWidget(m,c,f))}i=null}else i=Iu(i,h);a>l&&this.text.skip(a-l)},span:(l,a,h,c)=>{for(let f=l;f<a;){let u=this.text.next(Math.min(512,a-f));u==null?(s.addLineStartIfNotCovered(i),s.addBreak(),f++):(s.ensureLine(i),s.addText(u,h,f==l?c:h.length),f+=u.length),i=null}}});s.addLineStartIfNotCovered(i),this.openWidget=o>r,this.openMarks=o}forward(e,t,i=1){t-e<=10?this.old.advance(t-e,i,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,i,this.reuseWalker))}getCompositionContext(e){let t=[],i=null;for(let s=e.parentNode;;s=s.parentNode){let r=te.get(s);if(s==this.view.contentDOM)break;r instanceof Ce?t.push(r):r?.isLine()?i=r:r instanceof ot||(s.nodeName=="DIV"&&!i&&s!=this.view.contentDOM?i=new ei(s,wh):i||t.push(Ce.of(new _i({tagName:s.nodeName.toLowerCase(),attributes:lu(s)}),s)))}return{line:i,marks:t}}}function Zo(n,e){let t=i=>{for(let s of i.children)if((e?s.isText():s.length)||t(s))return!0;return!1};return t(n)}function Pu(n){let e=n.isReplace?(n.startSide<0?64:0)|(n.endSide>0?128:0):n.startSide>0?32:16;return n.block&&(e|=256),e}const wh={class:"cm-line"};function Iu(n,e){let t=e.spec.attributes,i=e.spec.class;return!t&&!i||(n||(n={class:"cm-line"}),t&&Xr(t,n),i&&(n.class+=" "+i)),n}function Nu(n){let e=[];for(let t=n.parents.length;t>1;t--){let i=t==n.parents.length?n.tile:n.parents[t].tile;i instanceof Ce&&e.push(i.mark)}return e}function Ss(n){let e=te.get(n);return e&&e.setDOM(n.cloneNode()),n}class ti extends st{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ti.inline=new ti("span");ti.block=new ti("div");const Cs=new class extends st{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class el{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=E.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new os(e,e.contentDOM),this.updateInner([new Ee(0,0,0,e.state.doc.length)],null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:f})=>f<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!Uu(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let r=s>-1?Fu(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:f}=this.hasComposition;i=new Ee(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(D.ie||D.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.blockWrappers;this.updateDeco();let a=zu(o,this.decorations,e.changes);a.length&&(i=Ee.extendWithRanges(i,a));let h=$u(l,this.blockWrappers,e.changes);return h.length&&(i=Ee.extendWithRanges(i,h)),r&&!i.some(c=>c.fromA<=r.range.fromA&&c.toA>=r.range.toA)&&(i=r.range.addToSet(i.slice())),this.tile.flags&2&&i.length==0?!1:(this.updateInner(i,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(t||e.length){let o=this.tile,l=new Ru(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=l.run(e,t),kr(o,l.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=D.chrome||D.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),r&&(r.written||i.selectionRange.focusNode!=r.node||!this.tile.dom.contains(r.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let r of this.tile.children)r.isWidget()&&r.widget instanceof As&&s.push(r.dom);i.updateGaps(s)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(mh)&&(this.editContextFormatting=i.value)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:i}=this.tile,s=this.view.root.activeElement,r=s==i,o=!r&&!(this.view.state.facet(rt)||i.tabIndex>-1)&&Si(i,this.view.observer.selectionRange)&&!(s&&i.contains(s));if(!(r||t||o))return;let l=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,h,c;if(a.empty?c=h=this.inlineDOMNearPos(a.anchor,a.assoc||1):(c=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1),h=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)),D.gecko&&a.empty&&!this.hasComposition&&Wu(h)){let u=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(u,h.node.childNodes[h.offset]||null)),h=c=new He(u,0),l=!0}let f=this.view.observer.selectionRange;(l||!f.focusNode||(!Ai(h.node,h.offset,f.anchorNode,f.anchorOffset)||!Ai(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,a))&&(this.view.observer.ignore(()=>{D.android&&D.chrome&&i.contains(f.focusNode)&&Ku(f.focusNode,i)&&(i.blur(),i.focus({preventScroll:!0}));let u=Ri(this.view.root);if(u)if(a.empty){if(D.gecko){let d=Hu(h.node,h.offset);if(d&&d!=3){let p=(d==1?Za:eh)(h.node,h.offset);p&&(h=new He(p.node,p.offset))}}u.collapse(h.node,h.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel)}else if(u.extend){u.collapse(h.node,h.offset);try{u.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();a.anchor>a.head&&([h,c]=[c,h]),d.setEnd(c.node,c.offset),d.setStart(h.node,h.offset),u.removeAllRanges(),u.addRange(d)}o&&this.view.root.activeElement==i&&(i.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(h,c)),this.impreciseAnchor=h.precise?null:new He(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new He(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Ai(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=Ri(e.root),{anchorNode:s,anchorOffset:r}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let l=o.posAtStart;if(t.head==l||t.head==l+o.length)return;let a=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!a||!h||a.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&i.collapse(s,r)}posFromDOM(e,t){let i=this.tile.nearest(e);if(!i)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let s=i.posAtStart;if(i.isComposite()){let r;if(e==i.dom)r=i.dom.childNodes[t];else{let o=at(e)==0?0:t==0?-1:1;for(;;){let l=e.parentNode;if(l==i.dom)break;o==0&&l.firstChild!=l.lastChild&&(e==l.firstChild?o=-1:o=1),e=l}o<0?r=e:r=e.nextSibling}if(r==i.dom.firstChild)return s;for(;r&&!te.get(r);)r=r.nextSibling;if(!r)return s+i.length;for(let o=0,l=s;;o++){let a=i.children[o];if(a.dom==r)return l;l+=a.length+a.breakAfter}}else return i.isText()?e==i.dom?s+t:s+(t?i.length:0):s}domAtPos(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.domPosFor(e,t):i.domIn(s,t)}inlineDOMNearPos(e,t){let i,s=-1,r=!1,o,l=-1,a=!1;return this.tile.blockTiles((h,c)=>{if(h.isWidget()){if(h.flags&32&&c>=e)return!0;h.flags&16&&(r=!0)}else{let f=c+h.length;if(c<=e&&(i=h,s=e-c,r=f<e),f>=e&&!o&&(o=h,l=e-c,a=c>e),c>e&&o)return!0}}),!i&&!o?this.domAtPos(e,t):(r&&o?i=null:a&&i&&(o=null),i&&t<0||!o?i.domIn(s,t):o.domIn(l,t))}coordsAt(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.widget instanceof As?null:i.coordsInWidget(s,t,!0):i.coordsIn(s,t)}lineAt(e,t){let{tile:i}=this.tile.resolveBlock(e,t);return i.isLine()?i:null}coordsForChar(e){let{tile:t,offset:i}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function s(r,o){if(r.isComposite())for(let l of r.children){if(l.length>=o){let a=s(l,o);if(a)return a}if(o-=l.length,o<0)break}else if(r.isText()&&o<r.length){let l=le(r.text,o);if(l==o)return null;let a=Ii(r.dom,o,l).getClientRects();for(let h=0;h<a.length;h++){let c=a[h];if(h==a.length-1||c.top<c.bottom&&c.left<c.right)return c}}return null}return s(t,i)}measureVisibleLineHeights(e){let t=[],{from:i,to:s}=e,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==_.LTR,h=0,c=(f,u,d)=>{for(let p=0;p<f.children.length&&!(u>s);p++){let m=f.children[p],g=u+m.length,b=m.dom.getBoundingClientRect(),{height:w}=b;if(d&&!p&&(h+=b.top-d.top),m instanceof ot)g>i&&c(m,u,b);else if(u>=i&&(h>0&&t.push(-h),t.push(w+h),h=0,o)){let v=m.dom.lastChild,T=v?Ci(v):[];if(T.length){let k=T[T.length-1],C=a?k.right-b.left:b.right-k.left;C>l&&(l=C,this.minWidth=r,this.minWidthFrom=u,this.minWidthTo=g)}}d&&p==f.children.length-1&&(h+=d.bottom-b.bottom),u=g+m.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?_.RTL:_.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let l=0,a;for(let h of o.children){if(!h.isText()||/[^ -~]/.test(h.text))return;let c=Ci(h.dom);if(c.length!=1)return;l+=c[0].width,a=c[0].height}if(l)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:l/o.length,textHeight:a}}});if(e)return e;let t=document.createElement("div"),i,s,r;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let o=Ci(t.firstChild)[0];i=t.getBoundingClientRect().height,s=o&&o.width?o.width/27:7,r=o&&o.height?o.height:i,t.remove()}),{lineHeight:i,charWidth:s,textHeight:r}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let r=s==t.viewports.length?null:t.viewports[s],o=r?r.from-1:this.view.state.doc.length;if(o>i){let l=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(E.replace({widget:new As(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return E.set(e)}updateDeco(){let e=1,t=this.view.state.facet(ss).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),i=!1,s=this.view.state.facet(no).map((r,o)=>{let l=typeof r=="function";return l&&(i=!0),l?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(F.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(yh).map(r=>typeof r=="function"?r(this.view):r)}scrollIntoView(e){if(e.isSnapshot){let h=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=h.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let h of this.view.state.facet(ph))try{if(h(this.view,e.range,e))return!0}catch(c){Ae(this.view.state,c,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let r=so(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;if(cu(this.view.scrollDOM,o,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==_.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(i.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||i.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let h=this.view.docView.lineAt(t.head,1);h&&h.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=i=>i.isWidget()||i.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){kr(this.tile)}}function kr(n,e){let t=e?.get(n);if(t!=1){t==null&&n.destroy();for(let i of n.children)kr(i,e)}}function Wu(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function vh(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let i=Za(t.focusNode,t.focusOffset),s=eh(t.focusNode,t.focusOffset),r=i||s;if(s&&i&&s.node!=i.node){let l=te.get(s.node);if(!l||l.isText()&&l.text!=s.node.nodeValue)r=s;else if(n.docView.lastCompositionAfterCursor){let a=te.get(i.node);!a||a.isText()&&a.text!=i.node.nodeValue||(r=s)}}if(n.docView.lastCompositionAfterCursor=r!=i,!r)return null;let o=e-r.offset;return{from:o,to:o+r.node.nodeValue.length,node:r.node}}function Fu(n,e,t){let i=vh(n,t);if(!i)return null;let{node:s,from:r,to:o}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=e.invertedDesc;return{range:new Ee(a.mapPos(r),a.mapPos(o),r,o),text:s}}function Hu(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e<n.childNodes.length&&n.childNodes[e].contentEditable=="false"?2:0)}let Vu=class{constructor(){this.changes=[]}compareRange(e,t){Gt(e,t,this.changes)}comparePoint(e,t){Gt(e,t,this.changes)}boundChange(e){Gt(e,e,this.changes)}};function zu(n,e,t){let i=new Vu;return F.compare(n,e,t,i),i.changes}class qu{constructor(){this.changes=[]}compareRange(e,t){Gt(e,t,this.changes)}comparePoint(){}boundChange(e){Gt(e,e,this.changes)}}function $u(n,e,t){let i=new qu;return F.compare(n,e,t,i),i.changes}function Ku(n,e){for(let t=n;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function Uu(n,e){let t=!1;return e&&n.iterChangedRanges((i,s)=>{i<e.to&&s>e.from&&(t=!0)}),t}class As extends st{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function ju(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),r=e-s.from;if(s.length==0)return x.cursor(e);r==0?t=1:r==s.length&&(t=-1);let o=r,l=r;t<0?o=le(s.text,r,!1):l=le(s.text,r);let a=i(s.text.slice(o,l));for(;o>0;){let h=le(s.text,o,!1);if(i(s.text.slice(h,o))!=a)break;o=h}for(;l<s.length;){let h=le(s.text,l);if(i(s.text.slice(l,h))!=a)break;l=h}return x.range(o+s.from,l+s.from)}function _u(n,e,t,i,s){let r=Math.round((i-e.left)*n.defaultCharacterWidth);if(n.lineWrapping&&t.height>n.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-t.top-(n.defaultLineHeight-l)*.5)/l);r+=a*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(t.from,t.to);return t.from+cr(o,r,n.state.tabSize)}function Sr(n,e,t){let i=n.lineBlockAt(e);if(Array.isArray(i.type)){let s;for(let r of i.type){if(r.from>e)break;if(!(r.to<e)){if(r.from<e&&r.to>e)return r;(!s||r.type==fe.Text&&(s.type!=r.type||(t<0?r.from<e:r.to>e)))&&(s=r)}}return s||i}return i}function Gu(n,e,t,i){let s=Sr(n,e.head,e.assoc||-1),r=!i||s.type!=fe.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(r){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:t==(l==_.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(a!=null)return x.cursor(a,t?-1:1)}return x.cursor(t?s.to:s.from,t?-1:1)}function tl(n,e,t,i){let s=n.state.doc.lineAt(e.head),r=n.bidiSpans(s),o=n.textDirectionAt(s.from);for(let l=e,a=null;;){let h=ku(s,r,o,l,t),c=rh;if(!h){if(s.number==(t?n.state.doc.lines:1))return l;c=`
9+`,s=n.state.doc.line(s.number+(t?1:-1)),r=n.bidiSpans(s),h=n.visualLineSide(s,!t)}if(a){if(!a(c))return l}else{if(!i)return h;a=i(c)}l=h}}function Ju(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return r=>{let o=i(r);return s==J.Space&&(s=o),s==o}}function Yu(n,e,t,i){let s=e.head,r=t?1:-1;if(s==(t?n.state.doc.length:0))return x.cursor(s,e.assoc);let o=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(s,(e.empty?e.assoc:0)||(t?1:-1)),c=n.documentTop;if(h)o==null&&(o=h.left-a.left),l=r<0?h.top:h.bottom;else{let p=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-p.from))),l=(r<0?p.top:p.bottom)+c}let f=a.left+o,u=i??n.viewState.heightOracle.textHeight>>1,d=Cr(n,{x:f,y:l+u*r},!1,r);return x.cursor(d.pos,d.assoc,void 0,o)}function Mi(n,e,t){for(;;){let i=0;for(let s of n)s.between(e-1,e+1,(r,o,l)=>{if(e>r&&e<o){let a=i||t||(e-r<o-e?-1:1);e=a<0?r:o,i=a}});if(!i)return e}}function kh(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let s=e.ranges[i],r=null;if(s.empty){let o=Mi(n,s.from,0);o!=s.from&&(r=x.cursor(o,-1))}else{let o=Mi(n,s.from,-1),l=Mi(n,s.to,1);(o!=s.from||l!=s.to)&&(r=x.range(s.from==s.anchor?o:l,s.from==s.head?o:l))}r&&(t||(t=e.ranges.slice()),t[i]=r)}return t?x.create(t,e.mainIndex):e}function Ms(n,e,t){let i=Mi(n.state.facet(Ji).map(s=>s(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:x.cursor(i,i<t.from?1:-1)}class Xe{constructor(e,t){this.pos=e,this.assoc=t}}function Cr(n,e,t,i){let s=n.contentDOM.getBoundingClientRect(),r=s.top+n.viewState.paddingTop,{x:o,y:l}=e,a=l-r,h;for(;;){if(a<0)return new Xe(0,1);if(a>n.viewState.docHeight)return new Xe(n.state.doc.length,-1);if(h=n.elementAtHeight(a),i==null)break;if(h.type==fe.Text){if(i<0?h.to<n.viewport.from:h.from>n.viewport.to)break;let u=n.docView.coordsAt(i<0?h.from:h.to,i>0?-1:1);if(u&&(i<0?u.top<=a+r:u.bottom>=a+r))break}let f=n.viewState.heightOracle.textHeight/2;a=i>0?h.bottom+f:h.top-f}if(n.viewport.from>=h.to||n.viewport.to<=h.from){if(t)return null;if(h.type==fe.Text){let f=_u(n,s,h,o,l);return new Xe(f,f==h.from?1:-1)}}if(h.type!=fe.Text)return a<(h.top+h.bottom)/2?new Xe(h.from,1):new Xe(h.to,-1);let c=n.docView.lineAt(h.from,2);return(!c||c.length!=h.length)&&(c=n.docView.lineAt(h.from,-2)),new Xu(n,o,l,n.textDirectionAt(h.from)).scanTile(c,h.from)}class Xu{constructor(e,t,i,s){this.view=e,this.x=t,this.y=i,this.baseDir=s,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:s}=this.bidiSpansAt(e);return s[Qe.find(s,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:s}=this.bidiSpansAt(e);return s[Qe.find(s,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:s}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+s.from<t)}scan(e,t){let i=0,s=e.length-1,r=new Set,o=this.bidiIn(e[0],e[s]),l,a,h=-1,c=1e9,f;e:for(;i<s;){let d=s-i,p=i+s>>1;t:if(r.has(p)){let g=i+Math.floor(Math.random()*d);for(let b=0;b<d;b++){if(!r.has(g)){p=g;break t}g++,g==s&&(g=i)}break e}r.add(p);let m=t(p);if(m)for(let g=0;g<m.length;g++){let b=m[g],w=0;if(b.bottom<this.y)(!l||l.bottom<b.bottom)&&(l=b),w=1;else if(b.top>this.y)(!a||a.top>b.top)&&(a=b),w=-1;else{let v=b.left>this.x?this.x-b.left:b.right<this.x?this.x-b.right:0,T=Math.abs(v);T<c&&(h=p,c=T,f=b),v&&(w=v<0==(this.baseDir==_.LTR)?-1:1)}w==-1&&(!o||this.baseDirAt(e[p],1))?s=p:w==1&&(!o||this.baseDirAt(e[p+1],-1))&&(i=p+1)}}if(!f){let d=l&&(!a||this.y-l.bottom<a.top-this.y)?l:a;return this.y=(d.top+d.bottom)/2,this.scan(e,t)}let u=(o?this.dirAt(e[h],1):this.baseDir)==_.LTR;return{i:h,after:this.x>(f.left+f.right)/2==u}}scanText(e,t){let i=[];for(let r=0;r<e.length;r=le(e.text,r))i.push(t+r);i.push(t+e.length);let s=this.scan(i,r=>{let o=i[r]-t,l=i[r+1]-t;return Ii(e.dom,o,l).getClientRects()});return s.after?new Xe(i[s.i+1],-1):new Xe(i[s.i],1)}scanTile(e,t){if(!e.length)return new Xe(t,1);if(e.children.length==1){let l=e.children[0];if(l.isText())return this.scanText(l,t);if(l.isComposite())return this.scanTile(l,t)}let i=[t];for(let l=0,a=t;l<e.children.length;l++)i.push(a+=e.children[l].length);let s=this.scan(i,l=>{let a=e.children[l];return a.flags&48?null:(a.dom.nodeType==1?a.dom:Ii(a.dom,0,a.length)).getClientRects()}),r=e.children[s.i],o=i[s.i];return r.isText()?this.scanText(r,o):r.isComposite()?this.scanTile(r,o):s.after?new Xe(i[s.i+1],-1):new Xe(o,1)}}const bi="￿";class Qu{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(z.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=bi}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let s=e;;){this.findPointBefore(i,s);let r=this.text.length;this.readNode(s);let o=te.get(s),l=s.nextSibling;if(l==t){o?.breakAfter&&!l&&i!=this.view.contentDOM&&this.lineBreak();break}let a=te.get(l);(o&&a?o.breakAfter:(o?o.breakAfter:Wn(s))||Wn(l)&&(s.nodeName!="BR"||o?.isWidget())&&this.text.length>r)&&!ed(l,t)&&this.lineBreak(),s=l}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,l;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=s.exec(t))&&(r=l.index,o=l[0].length),this.append(t.slice(i,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);i=r+o}}readNode(e){let t=te.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Zu(e,i.node,i.offset)?t:0))}}function Zu(n,e,t){for(;;){if(!e||t<at(e))return!1;if(e==n)return!0;t=xt(e)+1,e=e.parentNode}}function ed(n,e){let t;for(;!(n==e||!n);n=n.nextSibling){let i=te.get(n);if(!i?.isWidget())return!1;i&&(t||(t=[])).push(i)}if(t)for(let i of t){let s=i.overrideDOMText;if(s?.length)return!1}return!0}class il{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class td{constructor(e,t,i,s){this.typeOver=s,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=Sh(e.docView.tile,t,i,0))){let l=r||o?[]:nd(e),a=new Qu(l,e);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=sd(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=r&&r.node==l.focusNode&&r.offset==l.focusOffset||!yr(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),h=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!yr(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),c=e.viewport;if((D.ios||D.chrome)&&e.state.selection.main.empty&&a!=h&&(c.from>0||c.to<e.state.doc.length)){let f=Math.min(a,h),u=Math.max(a,h),d=c.from-f,p=c.to-u;(d==0||d==1||f==0)&&(p==0||p==-1||u==e.state.doc.length)&&(a=0,h=e.state.doc.length)}e.inputState.composing>-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(x.range(h,a)):this.newSel=x.single(h,a)}}}function Sh(n,e,t,i){if(n.isComposite()){let s=-1,r=-1,o=-1,l=-1;for(let a=0,h=i,c=i;a<n.children.length;a++){let f=n.children[a],u=h+f.length;if(h<e&&u>t)return Sh(f,e,t,h);if(u>=e&&s==-1&&(s=a,r=h),h>t&&f.dom.parentNode==n.dom){o=a,l=c;break}c=u,h=u+f.breakAfter}return{from:r,to:l<0?i+n.length:l,startDOM:(s?n.children[s-1].dom.nextSibling:null)||n.dom.firstChild,endDOM:o<n.children.length&&o>=0?n.children[o].dom:null}}else return n.isText()?{from:i,to:i+n.length,startDOM:n.dom,endDOM:n.dom.nextSibling}:null}function Ch(n,e){let t,{newSel:i}=e,s=n.state.selection.main,r=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds,a=s.from,h=null;(r===8||D.android&&e.text.length<l-o)&&(a=s.to,h="end");let c=Ah(n.state.doc.sliceString(o,l,bi),e.text,a-o,h);c&&(D.chrome&&r==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==bi+bi&&c.toB--,t={from:o+c.from,to:o+c.toA,insert:q.of(e.text.slice(c.from,c.toB).split(bi))})}else i&&(!n.hasFocus&&n.state.facet(rt)||zn(i,s))&&(i=null);if(!t&&!i)return!1;if(!t&&e.typeOver&&!s.empty&&i&&i.main.empty?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,s.to)}:(D.mac||D.android)&&t&&t.from==t.to&&t.from==s.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&t.insert.length==2&&(i=x.single(i.main.anchor-1,i.main.head-1)),t={from:t.from,to:t.to,insert:q.of([t.insert.toString().replace("."," ")])}):t&&t.from>=s.from&&t.to<=s.to&&(t.from!=s.from||t.to!=s.to)&&s.to-s.from-(t.to-t.from)<=4?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,s.to))}:n.state.doc.lineAt(s.from).to<s.to&&n.docView.lineHasWidget(s.to)&&n.inputState.insertingTextAt>Date.now()-50?t={from:s.from,to:s.to,insert:n.state.toText(n.inputState.insertingText)}:D.chrome&&t&&t.from==t.to&&t.from==s.head&&t.insert.toString()==`
10+ `&&n.lineWrapping&&(i&&(i=x.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:q.of([" "])}),t)return ro(n,t,i,r);if(i&&!zn(i,s)){let o=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=!0),l=n.inputState.lastSelectionOrigin,l=="select.pointer"&&(i=kh(n.state.facet(Ji).map(a=>a(n)),i))),n.dispatch({selection:i,scrollIntoView:o,userEvent:l}),!0}else return!1}function ro(n,e,t,i=-1){if(D.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(D.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Jt(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>s.head)&&Jt(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&Jt(n.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,l=()=>o||(o=id(n,e,t));return n.state.facet(ch).some(a=>a(n,e.from,e.to,r,l))||n.dispatch(l()),!0}function id(n,e,t){let i,s=n.state,r=s.selection.main,o=-1;if(e.from==e.to&&e.from<r.from||e.from>r.to){let a=e.from<r.from?-1:1,h=a<0?r.from:r.to,c=Mi(s.facet(Ji).map(f=>f(n)),h,a);e.from==c&&(o=c)}if(o>-1)i={changes:e,selection:x.cursor(e.from+e.insert.length,-1)};else if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let a=r.from<e.from?s.sliceDoc(r.from,e.from):"",h=r.to>e.to?s.sliceDoc(e.to,r.to):"";i=s.replaceSelection(n.state.toText(a+e.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let a=s.changes(e),h=t&&t.main.to<=a.newLength?t.main:void 0;if(s.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=r.to+10&&e.to>=r.to-10){let c=n.state.sliceDoc(e.from,e.to),f,u=t&&vh(n,t.main.head);if(u){let p=e.insert.length-(e.to-e.from);f={from:u.from,to:u.to-p}}else f=n.state.doc.lineAt(r.head);let d=r.to-e.to;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:h||p.map(a)};let m=p.to-d,g=m-c.length;if(n.state.sliceDoc(g,m)!=c||m>=f.from&&g<=f.to)return{range:p};let b=s.changes({from:g,to:m,insert:e.insert}),w=p.to-r.to;return{changes:b,range:h?x.range(Math.max(0,h.anchor+w),Math.max(0,h.head+w)):p.map(b)}})}else i={changes:a,selection:h&&s.selection.replaceRange(h)}}let l="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,l+=".compose",n.inputState.compositionFirstChange&&(l+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:l,scrollIntoView:!0})}function Ah(n,e,t,i){let s=Math.min(n.length,e.length),r=0;for(;r<s&&n.charCodeAt(r)==e.charCodeAt(r);)r++;if(r==s&&n.length==e.length)return null;let o=n.length,l=e.length;for(;o>0&&l>0&&n.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(i=="end"){let a=Math.max(0,r-Math.min(o,l));t-=o+a-r}if(o<r&&n.length<e.length){let a=t<=r&&t>=o?r-t:0;r-=a,l=r+(l-o),o=r}else if(l<r){let a=t<=r&&t>=l?r-t:0;r-=a,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function nd(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return t&&(e.push(new il(t,i)),(s!=t||r!=i)&&e.push(new il(s,r))),e}function sd(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?x.single(t+e,i+e):null}function zn(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class rd{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,D.safari&&e.contentDOM.addEventListener("input",()=>null),D.gecko&&wd(e.contentDOM.ownerDocument)}handleEvent(e){!dd(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=od(e),i=this.handlers,s=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,l=i[r];l&&o!=!l.handlers.length&&(s.removeEventListener(r,this.handleEvent),l=null),l||s.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!t[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&Th.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),D.android&&D.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return D.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=Mh.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||ld.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Jt(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:D.safari&&!D.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function nl(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){Ae(t.state,s)}}}function od(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,r=s&&s.plugin.domEventHandlers,o=s&&s.plugin.domEventObservers;if(r)for(let l in r){let a=r[l];a&&t(l).handlers.push(nl(i.value,a))}if(o)for(let l in o){let a=o[l];a&&t(l).observers.push(nl(i.value,a))}}for(let i in ze)t(i).handlers.push(ze[i]);for(let i in Ne)t(i).observers.push(Ne[i]);return e}const Mh=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ld="dthko",Th=[16,17,18,20,91,92,224,225],on=6;function ln(n){return Math.max(0,n)*.7+8}function ad(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class hd{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=fu(e.contentDOM),this.atoms=e.state.facet(Ji).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(z.allowMultipleSelections)&&cd(e,t),this.dragging=ud(e,t)&&Bh(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&ad(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,r=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=so(this.view);e.clientX-a.left<=s+on?t=-ln(s-e.clientX):e.clientX+a.right>=o-on&&(t=ln(e.clientX-o)),e.clientY-a.top<=r+on?i=-ln(r-e.clientY):e.clientY+a.bottom>=l-on&&(i=ln(e.clientY-l)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,i=kh(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function cd(n,e){let t=n.state.facet(oh);return t.length?t[0](e):D.mac?e.metaKey:e.ctrlKey}function fd(n,e){let t=n.state.facet(lh);return t.length?t[0](e):D.mac?!e.altKey:!e.ctrlKey}function ud(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=Ri(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let r=0;r<s.length;r++){let o=s[r];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function dd(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=te.get(t))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(e))return!1;return!0}const ze=Object.create(null),Ne=Object.create(null),Dh=D.ie&&D.ie_version<15||D.ios&&D.webkit_version<604;function pd(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),Oh(n,t.value)},50)}function ls(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function Oh(n,e){e=ls(n.state,eo,e);let{state:t}=n,i,s=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(Ar!=null&&t.selection.ranges.every(a=>a.empty)&&Ar==r.toString()){let a=-1;i=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==a)return{range:h};a=c.from;let f=t.toText((o?r.line(s++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:f},range:x.cursor(h.from+f.length)}})}else o?i=t.changeByRange(a=>{let h=r.line(s++);return{changes:{from:a.from,to:a.to,insert:h.text},range:x.cursor(a.from+h.length)}}):i=t.replaceSelection(r);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Ne.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};ze.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Ne.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Ne.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};ze.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(ah))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=gd(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new hd(n,e,t,i)),i&&n.observer.ignore(()=>{Xa(n.contentDOM);let r=n.root.activeElement;r&&!r.contains(n.contentDOM)&&r.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}else n.inputState.setSelectionOrigin("select.pointer");return!1};function sl(n,e,t,i){if(i==1)return x.cursor(e,t);if(i==2)return ju(n.state,e,t);{let s=n.docView.lineAt(e,t),r=n.state.doc.lineAt(s?s.posAtEnd:e),o=s?s.posAtStart:r.from,l=s?s.posAtEnd:r.to;return l<n.state.doc.length&&l==r.to&&l++,x.range(o,l)}}const md=D.ie&&D.ie_version<=11;let rl=null,ol=0,ll=0;function Bh(n){if(!md)return n.detail;let e=rl,t=ll;return rl=n,ll=Date.now(),ol=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(ol+1)%3:1}function gd(n,e){let t=n.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),i=Bh(e),s=n.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),s=s.map(r.changes))},get(r,o,l){let a=n.posAndSideAtCoords({x:r.clientX,y:r.clientY},!1),h,c=sl(n,a.pos,a.assoc,i);if(t.pos!=a.pos&&!o){let f=sl(n,t.pos,t.assoc,i),u=Math.min(f.from,c.from),d=Math.max(f.to,c.to);c=u<c.from?x.range(u,d):x.range(d,u)}return o?s.replaceRange(s.main.extend(c.from,c.to)):l&&i==1&&s.ranges.length>1&&(h=yd(s,a.pos))?h:l?s.addRange(c):x.create([c])}}}function yd(n,e){for(let t=0;t<n.ranges.length;t++){let{from:i,to:s}=n.ranges[t];if(i<=e&&s>=e)return x.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}ze.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.tile.nearest(e.target);if(s&&s.isWidget()){let r=s.posAtStart,o=r+s.length;(r>=t.to||o<=t.from)&&(t=x.range(r,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",ls(n.state,to,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};ze.dragend=n=>(n.inputState.draggedContent=null,!1);function al(n,e,t,i){if(t=ls(n.state,eo,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=n.inputState,o=i&&r&&fd(n,e)?{from:r.from,to:r.to}:null,l={from:s,insert:t},a=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}ze.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,r=()=>{++s==t.length&&al(n,e,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let l=new FileReader;l.onerror=r,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r()},l.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return al(n,e,i,!0),!0}return!1};ze.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=Dh?null:e.clipboardData;return t?(Oh(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(pd(n),!1)};function bd(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function xd(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:r}of n.selection.ranges){let o=n.doc.lineAt(r);o.number>s&&(e.push(o.text),t.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),s=o.number}i=!0}return{text:ls(n,to,e.join(n.lineBreak)),ranges:t,linewise:i}}let Ar=null;ze.copy=ze.cut=(n,e)=>{if(!Si(n.contentDOM,n.observer.selectionRange))return!1;let{text:t,ranges:i,linewise:s}=xd(n.state);if(!t&&!s)return!1;Ar=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=Dh?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(bd(n,t),!1)};const Lh=it.define();function Eh(n,e){let t=[];for(let i of n.facet(fh)){let s=i(n,e);s&&t.push(s)}return t.length?n.update({effects:t,annotations:Lh.of(!0)}):null}function Rh(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=Eh(n.state,e);t?n.dispatch(t):n.update([])}},10)}Ne.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),Rh(n)};Ne.blur=n=>{n.observer.clearSelectionRange(),Rh(n)};Ne.compositionstart=Ne.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Ne.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,D.chrome&&D.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Ne.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};ze.beforeinput=(n,e)=>{var t,i;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(n.inputState.insertingText=e.data,n.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&n.observer.editContext){let r=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let l=o[0],a=n.posAtDOM(l.startContainer,l.startOffset),h=n.posAtDOM(l.endContainer,l.endOffset);return ro(n,{from:a,to:h,insert:n.state.toText(r)},null),!0}}let s;if(D.chrome&&D.android&&(s=Mh.find(r=>r.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let r=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return D.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),D.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Ne.compositionend(n,e),20),!1};const hl=new Set;function wd(n){hl.has(n)||(hl.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const cl=["pre-wrap","normal","pre-line","break-spaces"];let ii=!1;function fl(){ii=!1}class vd{constructor(e){this.lineWrapping=e,this.doc=q.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return cl.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let s=e[i];s<0?i++:this.heightSamples[Math.floor(s*10)]||(t=!0,this.heightSamples[Math.floor(s*10)]=!0)}return t}refresh(e,t,i,s,r,o){let l=cl.indexOf(e)>-1,a=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=l||Math.abs(i-this.charWidth)>.1;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=r,a){this.heightSamples={};for(let h=0;h<o.length;h++){let c=o[h];c<0?h++:this.heightSamples[Math.floor(c*10)]=!0}}return a}}class kd{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Fe{constructor(e,t,i,s,r){this.from=e,this.length=t,this.top=i,this.height=s,this._content=r}get type(){return typeof this._content=="number"?fe.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Pt?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Fe(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var G=(function(n){return n[n.ByPos=0]="ByPos",n[n.ByHeight=1]="ByHeight",n[n.ByPosNoHeight=2]="ByPosNoHeight",n})(G||(G={}));const Tn=.001;class ve{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Tn&&(ii=!0),this.height=e)}replace(e,t,i){return ve.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let r=this,o=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:h,fromB:c,toB:f}=s[l],u=r.lineAt(a,G.ByPosNoHeight,i.setDoc(t),0,0),d=u.to>=h?u:r.lineAt(h,G.ByPosNoHeight,i,0,0);for(f+=d.to-h,h=d.to;l>0&&u.from<=s[l-1].toA;)a=s[l-1].fromA,c=s[l-1].fromB,l--,a<u.from&&(u=r.lineAt(a,G.ByPosNoHeight,i,0,0));c+=u.from-a,a=u.from;let p=oo.build(i.setDoc(o),e,c,f);r=qn(r,r.replace(a,h,p))}return r.updateHeight(i,0)}static empty(){return new Oe(0,0,0)}static of(e){if(e.length==1)return e[0];let t=0,i=e.length,s=0,r=0;for(;;)if(t==i)if(s>r*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(r>s*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size}else break;else if(s<r){let l=e[t++];l&&(s+=l.size)}else{let l=e[--i];l&&(r+=l.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,i++),new Cd(ve.of(e.slice(0,t)),o,ve.of(e.slice(i)))}}function qn(n,e){return n==e?n:(n.constructor!=e.constructor&&(ii=!0),e)}ve.prototype.size=1;const Sd=E.replace({});class Ph extends ve{constructor(e,t,i){super(e,t),this.deco=i,this.spaceAbove=0}mainBlock(e,t){return new Fe(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,i,s){return this.spaceAbove&&e<i+this.spaceAbove?new Fe(s,0,i,this.spaceAbove,Sd):this.mainBlock(i,s)}lineAt(e,t,i,s,r){let o=this.mainBlock(s,r);return this.spaceAbove?this.blockAt(0,i,s,r).join(o):o}forEachLine(e,t,i,s,r,o){e<=r+this.length&&t>=r&&o(this.lineAt(0,G.ByPos,i,s,r))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setMeasuredHeight(s),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Oe extends Ph{constructor(e,t,i){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i}mainBlock(e,t){return new Fe(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof Oe||s instanceof he&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof he?s=new Oe(s.length,this.height,this.spaceAbove):s.height=this.height,this.outdated||(s.outdated=!1),s):ve.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setMeasuredHeight(s):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class he extends ve{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,r=s-i+1,o,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*r);o=a/r,this.length>r+1&&(l=(this.height-a)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:s,perLine:o,perChar:l}}blockAt(e,t,i,s){let{firstLine:r,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(t,s);if(t.lineWrapping){let h=s+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),c=t.doc.lineAt(h),f=l+c.length*a,u=Math.max(i,e-f/2);return new Fe(c.from,c.length,u,f,0)}else{let h=Math.max(0,Math.min(o-r,Math.floor((e-i)/l))),{from:c,length:f}=t.doc.line(r+h);return new Fe(c,f,i+l*h,l,0)}}lineAt(e,t,i,s,r){if(t==G.ByHeight)return this.blockAt(e,i,s,r);if(t==G.ByPosNoHeight){let{from:d,to:p}=i.doc.lineAt(e);return new Fe(d,p-d,0,0,0)}let{firstLine:o,perLine:l,perChar:a}=this.heightMetrics(i,r),h=i.doc.lineAt(e),c=l+h.length*a,f=h.number-o,u=s+l*f+a*(h.from-r-f);return new Fe(h.from,h.length,Math.max(s,Math.min(u,s+this.height-c)),c,0)}forEachLine(e,t,i,s,r,o){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:l,perLine:a,perChar:h}=this.heightMetrics(i,r);for(let c=e,f=s;c<=t;){let u=i.doc.lineAt(c);if(c==e){let p=u.number-l;f+=a*p+h*(e-r-p)}let d=a+h*u.length;o(new Fe(u.from,u.length,f,d,0)),f+=d,c=u.to+1}}replace(e,t,i){let s=this.length-t;if(s>0){let r=i[i.length-1];r instanceof he?i[i.length-1]=new he(r.length+s):i.push(null,new he(s-1))}if(e>0){let r=i[0];r instanceof he?i[0]=new he(e+r.length):i.unshift(new he(e-1),null)}return ve.of(i)}decomposeLeft(e,t){t.push(new he(e-1),null)}decomposeRight(e,t){t.push(null,new he(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let r=t+this.length;if(s&&s.from<=t+this.length&&s.more){let o=[],l=Math.max(t,s.from),a=-1;for(s.from>t&&o.push(new he(s.from-t-1).updateHeight(e,t));l<=r&&s.more;){let c=e.doc.lineAt(l).length;o.length&&o.push(null);let f=s.heights[s.index++],u=0;f<0&&(u=-f,f=s.heights[s.index++]),a==-1?a=f:Math.abs(f-a)>=Tn&&(a=-2);let d=new Oe(c,f,u);d.outdated=!1,o.push(d),l+=c+1}l<=r&&o.push(null,new he(r-l).updateHeight(e,l));let h=ve.of(o);return(a<0||Math.abs(h.height-this.height)>=Tn||Math.abs(a-this.heightMetrics(e,t).perLine)>=Tn)&&(ii=!0),qn(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Cd extends ve{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let r=i+this.left.height;return e<r?this.left.blockAt(e,t,i,s):this.right.blockAt(e,t,r,s+this.left.length+this.break)}lineAt(e,t,i,s,r){let o=s+this.left.height,l=r+this.left.length+this.break,a=t==G.ByHeight?e<o:e<l,h=a?this.left.lineAt(e,t,i,s,r):this.right.lineAt(e,t,i,o,l);if(this.break||(a?h.to<l:h.from>l))return h;let c=t==G.ByPosNoHeight?G.ByPosNoHeight:G.ByPos;return a?h.join(this.right.lineAt(l,c,i,o,l)):this.left.lineAt(l,c,i,s,r).join(h)}forEachLine(e,t,i,s,r,o){let l=s+this.left.height,a=r+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,s,r,o),t>=a&&this.right.forEachLine(e,t,i,l,a,o);else{let h=this.lineAt(a,G.ByPos,i,s,r);e<h.from&&this.left.forEachLine(e,h.from-1,i,s,r,o),h.to>=e&&h.from<=t&&o(h),t>h.to&&this.right.forEachLine(h.to+1,t,i,l,a,o)}}replace(e,t,i){let s=this.left.length+this.break;if(t<s)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let l of i)r.push(l);if(e>0&&ul(r,o-1),t<this.length){let l=r.length;this.decomposeRight(t,r),ul(r,l)}return ve.of(r)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<s&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?ve.of(this.break?[e,null,t]:[e,t]):(this.left=qn(this.left,e),this.right=qn(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:r,right:o}=this,l=t+r.length+this.break,a=null;return s&&s.from<=t+r.length&&s.more?a=r=r.updateHeight(e,t,i,s):r.updateHeight(e,t,i),s&&s.from<=l+o.length&&s.more?a=o=o.updateHeight(e,l,i,s):o.updateHeight(e,l,i),a?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function ul(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof he&&(i=n[e+1])instanceof he&&n.splice(e-1,3,new he(t.length+1+i.length))}const Ad=5;class oo{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof Oe?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Oe(i-this.pos,-1,0)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let s=i.widget?i.widget.estimatedHeight:0,r=i.widget?i.widget.lineBreaks:0;s<0&&(s=this.oracle.lineHeight);let o=t-e;i.block?this.addBlock(new Ph(o,s,i)):(o||r||s>=Ad)&&this.addLineDeco(s,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Oe(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let i=new he(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Oe)return e;let t=new Oe(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Oe)&&!this.isCovered?this.nodes.push(new Oe(0,-1,0)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let s of this.nodes)s instanceof Oe&&s.updateHeight(this.oracle,i),i+=s?s.length:1;return this.nodes}static build(e,t,i,s){let r=new oo(i,e);return F.spans(t,i,s,r,0),r.finish(i)}}function Md(n,e,t){let i=new Td;return F.compare(n,e,t,i,0),i.changes}class Td{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,s){(e<t||i&&i.heightRelevant||s&&s.heightRelevant)&&Gt(e,t,this.changes,5)}}function Dd(n,e){let t=n.getBoundingClientRect(),i=n.ownerDocument,s=i.defaultView||window,r=Math.max(0,t.left),o=Math.min(s.innerWidth,t.right),l=Math.max(0,t.top),a=Math.min(s.innerHeight,t.bottom);for(let h=n.parentNode;h&&h!=i.body;)if(h.nodeType==1){let c=h,f=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let u=c.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),a=Math.min(h==n.parentNode?s.innerHeight:a,u.bottom)}h=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function Od(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function Bd(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Ts{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],r=t[i];if(s.from!=r.from||s.to!=r.to||s.size!=r.size)return!1}return!0}draw(e,t){return E.replace({widget:new Ld(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Ld extends st{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class dl{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=pl,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=_.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(io).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new vd(t),this.stateDeco=ml(e),this.heightMap=ve.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle.setDoc(e.doc),[new Ee(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=E.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);e.push(new an(r,o))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?pl:new lo(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(xi(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=ml(this.state);let s=e.changedRanges,r=Ee.extendWithRanges(s,Md(i,this.stateDeco,e?e.changes:ne.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);fl(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||ii)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let h=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(h||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(dh)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?_.RTL:_.LTR;let o=this.heightOracle.mustRefreshForWrapping(r)||this.mustMeasureContent==="refresh",l=t.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let h=0,c=0;if(l.width&&l.height){let{scaleX:T,scaleY:k}=Ya(t,l);(T>.005&&Math.abs(this.scaleX-T)>.005||k>.005&&Math.abs(this.scaleY-k)>.005)&&(this.scaleX=T,this.scaleY=k,h|=16,o=a=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=u)&&(this.paddingTop=f,this.paddingBottom=u,h|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=16);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=Qa(e.scrollDOM);let p=(this.printing?Bd:Dd)(t,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(a=!0)),!this.inView&&!this.scrollTarget&&!Od(e.dom))return 0;let w=l.width;if((this.contentDOMWidth!=w||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,h|=16),a){let T=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(T)&&(o=!0),o||s.lineWrapping&&Math.abs(w-this.contentDOMWidth)>s.charWidth){let{lineHeight:k,charWidth:C,textHeight:S}=e.docView.measureTextSize();o=k>0&&s.refresh(r,k,C,S,Math.max(5,w/C),T),o&&(e.docView.minWidth=0,h|=16)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),fl();for(let k of this.viewports){let C=k.from==this.viewport.from?T:e.docView.measureVisibleLineHeights(k);this.heightMap=(o?ve.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle,[new Ee(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,o,new kd(k.from,C))}ii&&(h|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),h|=this.updateForViewport()),(h&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,a=new an(s.lineAt(o-i*1e3,G.ByHeight,r,0,0).from,s.lineAt(l+(1-i)*1e3,G.ByHeight,r,0,0).to);if(t){let{head:h}=t.range;if(h<a.from||h>a.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=s.lineAt(h,G.ByPos,r,0,0),u;t.y=="center"?u=(f.top+f.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&h<a.from?u=f.top:u=f.bottom-c,a=new an(s.lineAt(u-1e3/2,G.ByHeight,r,0,0).from,s.lineAt(u+c+1e3/2,G.ByHeight,r,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),s=t.mapPos(e.to,1);return new an(this.heightMap.lineAt(i,G.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(s,G.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:s}=this.heightMap.lineAt(e,G.ByPos,this.heightOracle,0,0),{bottom:r}=this.heightMap.lineAt(t,G.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:l}=this;return(e==0||s<=o-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||r>=l+Math.max(10,Math.min(i,250)))&&s>o-2*1e3&&r<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let s of e)t.touchesRange(s.from,s.to)||i.push(new Ts(t.mapPos(s.from),t.mapPos(s.to),s.size,s.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,s=i?1e4:2e3,r=s>>1,o=s<<1;if(this.defaultTextDirection!=_.LTR&&!i)return[];let l=[],a=(c,f,u,d)=>{if(f-c<r)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let b of m)if(b>c&&b<f){a(c,b-10,u,d),a(b+10,f,u,d);return}let g=Rd(e,b=>b.from>=u.from&&b.to<=u.to&&Math.abs(b.from-c)<r&&Math.abs(b.to-f)<r&&!m.some(w=>b.from<w&&b.to>w));if(!g){if(f<u.to&&t&&i&&t.visibleRanges.some(v=>v.from<=f&&v.to>=f)){let v=t.moveToLineBoundary(x.cursor(f),!1,!0).head;v>c&&(f=v)}let b=this.gapSize(u,c,f,d),w=i||b<2e6?b:2e6;g=new Ts(c,f,b,w)}l.push(g)},h=c=>{if(c.length<o||c.type!=fe.Text)return;let f=Ed(c.from,c.to,this.stateDeco);if(f.total<o)return;let u=this.scrollTarget?this.scrollTarget.range.head:null,d,p;if(i){let m=s/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,b;if(u!=null){let w=cn(f,u),v=((this.visibleBottom-this.visibleTop)/2+m)/c.height;g=w-v,b=w+v}else g=(this.visibleTop-c.top-m)/c.height,b=(this.visibleBottom-c.top+m)/c.height;d=hn(f,g),p=hn(f,b)}else{let m=f.total*this.heightOracle.charWidth,g=s*this.heightOracle.charWidth,b=0;if(m>2e6)for(let C of e)C.from>=c.from&&C.from<c.to&&C.size!=C.displaySize&&C.from*this.heightOracle.charWidth+b<this.pixelViewport.left&&(b=C.size-C.displaySize);let w=this.pixelViewport.left+b,v=this.pixelViewport.right+b,T,k;if(u!=null){let C=cn(f,u),S=((v-w)/2+g)/m;T=C-S,k=C+S}else T=(w-g)/m,k=(v+g)/m;d=hn(f,T),p=hn(f,k)}d>c.from&&a(c.from,d,c,f),p<c.to&&a(p,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(h):h(c);return l}gapSize(e,t,i,s){let r=cn(s,i)-cn(s,t);return this.heightOracle.lineWrapping?e.height*r:s.total*this.heightOracle.charWidth*r}updateLineGaps(e){Ts.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=E.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];F.spans(t,this.viewport.from,this.viewport.to,{span(r,o){i.push({from:r,to:o})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let r=0;r<i.length&&!(s&8);r++){let o=this.visibleRanges[r],l=i[r];(o.from!=l.from||o.to!=l.to)&&(s|=4,e&&e.mapPos(o.from,-1)==l.from&&e.mapPos(o.to,1)==l.to||(s|=8))}return this.visibleRanges=i,s}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||xi(this.heightMap.lineAt(e,G.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||xi(this.heightMap.lineAt(this.scaler.fromDOM(e),G.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return xi(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class an{constructor(e,t){this.from=e,this.to=t}}function Ed(n,e,t){let i=[],s=n,r=0;return F.spans(t,n,e,{span(){},point(o,l){o>s&&(i.push({from:s,to:o}),r+=o-s),s=l}},20),s<e&&(i.push({from:s,to:e}),r+=e-s),{total:r,ranges:i}}function hn({total:n,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let s=0;;s++){let{from:r,to:o}=e[s],l=o-r;if(i<=l)return r+i;i-=l}}function cn(n,e){let t=0;for(let{from:i,to:s}of n.ranges){if(e<=s){t+=e-i;break}t+=s-i}return t/n.total}function Rd(n,e){for(let t of n)if(e(t))return t}const pl={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};function ml(n){let e=n.facet(ss).filter(i=>typeof i!="function"),t=n.facet(no).filter(i=>typeof i!="function");return t.length&&e.push(F.join(t)),e}class lo{constructor(e,t,i){let s=0,r=0,o=0;this.viewports=i.map(({from:l,to:a})=>{let h=t.lineAt(l,G.ByPos,e,0,0).top,c=t.lineAt(a,G.ByPos,e,0,0).bottom;return s+=c-h,{from:l,to:a,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let l of this.viewports)l.domTop=o+(l.top-r)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(e){for(let t=0,i=0,s=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return s+(e-i)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);i=r.bottom,s=r.domBottom}}fromDOM(e){for(let t=0,i=0,s=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return i+(e-s)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);i=r.bottom,s=r.domBottom}}eq(e){return e instanceof lo?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function xi(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),i=e.toDOM(n.bottom);return new Fe(n.from,n.length,t,i-t,Array.isArray(n._content)?n._content.map(s=>xi(s,e)):n._content)}const fn=O.define({combine:n=>n.join(" ")}),Mr=O.define({combine:n=>n.indexOf(!0)>-1}),Tr=yt.newName(),Ih=yt.newName(),Nh=yt.newName(),Wh={"&light":"."+Ih,"&dark":"."+Nh};function Dr(n,e,t){return new yt(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):n+" "+i}})}const Pd=Dr("."+Tr,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Wh),Id={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ds=D.ie&&D.ie_version<=11;class Nd{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new uu,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(D.ie&&D.ie_version<=11||D.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&D.android&&e.constructor.EDIT_CONTEXT!==!1&&!(D.chrome&&D.chrome_version<126)&&(this.editContext=new Fd(e),e.state.facet(rt)&&(e.contentDOM.editContext=this.editContext.editContext)),Ds&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(rt)?i.root.activeElement!=this.dom:!Si(this.dom,s))return;let r=s.anchorNode&&i.docView.tile.nearest(s.anchorNode);if(r&&r.isWidget()&&r.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(D.ie&&D.ie_version<=11||D.android&&D.chrome)&&!i.state.selection.main.empty&&s.focusNode&&Ai(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Ri(e.root);if(!t)return!1;let i=D.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Wd(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=Si(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&pu(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),s&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(i.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=t)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Id),Ds&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Ds&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let s=()=>{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Jt(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let r of e){let o=this.readMutation(r);o&&(o.typeOver&&(s=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Si(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new td(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=Ch(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!zn(this.view.state.selection,t.newSel.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type=="attributes"),e.type=="childList"){let i=gl(t,e.previousSibling||e.target.previousSibling,-1),s=gl(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(rt)!=e.state.facet(rt)&&(e.view.contentDOM.editContext=e.state.facet(rt)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function gl(n,e,t){for(;e;){let i=te.get(e);if(i&&i.parent==n)return i;let s=e.parentNode;e=s!=n.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function yl(n,e){let t=e.startContainer,i=e.startOffset,s=e.endContainer,r=e.endOffset,o=n.docView.domAtPos(n.state.selection.main.anchor,1);return Ai(o.node,o.offset,s,r)&&([t,i,s,r]=[s,r,t,i]),{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}}function Wd(n,e){if(e.getComposedRanges){let s=e.getComposedRanges(n.root)[0];if(s)return yl(n,s)}let t=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),t=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),t?yl(n,t):null}class Fd{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let s=e.state.selection.main,{anchor:r,head:o}=s,l=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:!1});let h=a-l>i.text.length;l==this.from&&r<this.from?l=r:a==this.to&&r>this.to&&(a=r);let c=Ah(e.state.sliceDoc(l,a),i.text,(h?s.from:s.to)-l,h?"end":null);if(!c){let u=x.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));zn(u,s)||e.dispatch({selection:u,userEvent:"select"});return}let f={from:c.from+l,to:c.toA+l,insert:q.of(i.text.slice(c.from,c.toB).split(`
11+`))};if((D.mac||D.android)&&f.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(f={from:l,to:a,insert:q.of([i.text.replace("."," ")])}),this.pendingContextChange=f,!e.state.readOnly){let u=this.to-this.from+(f.to-f.from+f.insert.length);ro(e,f,x.single(this.toEditorPos(i.selectionStart,u),this.toEditorPos(i.selectionEnd,u)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),f.from<f.to&&!f.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let o=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);o<l;o++){let a=e.coordsForChar(o);r=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||r||new DOMRect,s.push(r)}t.updateCharacterBounds(i.rangeStart,s)},this.handlers.textformatupdate=i=>{let s=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,l=r.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(l)){let a=this.toEditorPos(r.rangeStart),h=this.toEditorPos(r.rangeEnd);if(a<h){let c=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(l)?1:2}px`;s.push(E.mark({attributes:{style:c}}).range(a,h))}}}e.dispatch({effects:mh.of(E.set(s))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=Ri(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((r,o,l,a,h)=>{if(i)return;let c=h.length-(o-r);if(s&&o>=s.to)if(s.from==r&&s.to==o&&s.insert.eq(h)){s=this.pendingContextChange=null,t+=c,this.to+=c;return}else s=null,this.revertPending(e.state);if(r+=t,o+=t,o<=this.from)this.from+=c,this.to+=c;else if(r<this.to){if(r<this.from||o>this.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),h.toString()),this.to+=c}t+=c}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class M{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(s=>s.forEach(r=>i(r,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||du(e.parent)||document,this.viewState=new dl(e.state||z.create(e)),e.scrollTo&&e.scrollTo.is(rn)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet($t).map(s=>new ks(s));for(let s of this.plugins)s.update(this);this.observer=new Nd(this),this.inputState=new rd(this),this.inputState.ensureHandlers(this.plugins),this.docView=new el(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=e.length==1&&e[0]instanceof se?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,s,r=this.state;for(let u of e){if(u.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=u.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,l=0,a=null;e.some(u=>u.annotation(Lh))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=Eh(r,o),a||(l=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(z.phrases)!=this.state.facet(z.phrases))return this.setState(r);s=Fn.create(this,r,e),s.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let u of e){if(f&&(f=f.map(u.changes)),u.scrollIntoView){let{main:d}=u.state.selection;f=new Yt(d.empty?d:x.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of u.effects)d.is(rn)&&(f=d.value.clip(this.state))}this.viewState.update(s,f),this.bidiCache=$n.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(yi)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(u=>u.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(fn)!=s.state.facet(fn)&&(this.viewState.mustMeasureContent=!0),(t||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let u of this.state.facet(vr))try{u(s)}catch(d){Ae(this.state,d,"update listener")}(a||c)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!Ch(this,c)&&h.force&&Jt(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new dl(e),this.plugins=e.facet($t).map(i=>new ks(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new el(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet($t),i=e.state.facet($t);if(t!=i){let s=[];for(let r of i){let o=t.indexOf(r);if(o<0)s.push(new ks(r));else{let l=this.plugins[o];l.mustUpdate=e,s.push(l)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s<this.plugins.length;s++)this.plugins[s].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(i){Ae(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(Qa(i))r=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(s);r=d.from,o=d.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];a&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(d=>{try{return d.read(this)}catch(p){return Ae(this.state,p),bl}}),f=Fn.create(this,this.state,[]),u=!1;f.flags|=a,t?t.flags|=a:t=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),u=this.docView.update(f),u&&this.docViewUpdate());for(let d=0;d<h.length;d++)if(c[d]!=bl)try{let p=h[d];p.write&&p.write(c[d],this)}catch(p){Ae(this.state,p)}if(u&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let p=(r<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(r).top)-o;if(p>1||p<-1){s=s+p,i.scrollTop=s/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(vr))l(t)}get themeClasses(){return Tr+" "+(this.state.facet(Mr)?Nh:Ih)+" "+this.state.facet(fn)}updateAttrs(){let e=xl(this,gh,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(rt)?"true":"false",class:"cm-content",style:`${D.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),xl(this,io,t);let i=this.observer.ignore(()=>{let s=Go(this.contentDOM,this.contentAttrs,t),r=Go(this.dom,this.editorAttrs,e);return s||r});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let s of i.effects)if(s.is(M.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(yi);let e=this.state.facet(M.cspNonce);yt.mount(this.root,this.styleModules.concat(Pd).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(i=>i.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return Ms(this,e,tl(this,e,t,i))}moveByGroup(e,t){return Ms(this,e,tl(this,e,t,i=>Ju(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),s=this.textDirectionAt(e.from),r=i[t?i.length-1:0];return x.cursor(r.side(t,s)+e.from,r.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,i=!0){return Gu(this,e,t,i)}moveVertically(e,t,i){return Ms(this,e,Yu(this,e,t,i))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let i=Cr(this,e,t);return i&&i.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),Cr(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(e),r=this.bidiSpans(s),o=r[Qe.find(r,e-s.from,-1,t)];return Pi(i,o.dir==_.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(uh)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Hd)return sh(e.length);let t=this.textDirectionAt(e.from),i;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||nh(r.isolates,i=Xo(this,e))))return r.order;i||(i=Xo(this,e));let s=vu(e.text,t,i);return this.bidiCache.push(new $n(e.from,e.to,t,i,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||D.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Xa(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return rn.of(new Yt(typeof e=="number"?x.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return rn.of(new Yt(x.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Z.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Z.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=yt.newName(),s=[fn.of(i),yi.of(Dr(`.${i}`,e))];return t&&t.dark&&s.push(Mr.of(!0)),s}static baseTheme(e){return Ht.lowest(yi.of(Dr("."+Tr,e,Wh)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),s=i&&te.get(i)||te.get(e);return((t=s?.root)===null||t===void 0?void 0:t.view)||null}}M.styleModule=yi;M.inputHandler=ch;M.clipboardInputFilter=eo;M.clipboardOutputFilter=to;M.scrollHandler=ph;M.focusChangeEffect=fh;M.perLineTextDirection=uh;M.exceptionSink=hh;M.updateListener=vr;M.editable=rt;M.mouseSelectionStyle=ah;M.dragMovesSelection=lh;M.clickAddsSelectionRange=oh;M.decorations=ss;M.blockWrappers=yh;M.outerDecorations=no;M.atomicRanges=Ji;M.bidiIsolatedRanges=bh;M.scrollMargins=xh;M.darkTheme=Mr;M.cspNonce=O.define({combine:n=>n.length?n[0]:""});M.contentAttributes=io;M.editorAttributes=gh;M.lineWrapping=M.contentAttributes.of({class:"cm-lineWrapping"});M.announce=I.define();const Hd=4096,bl={};class $n{constructor(e,t,i,s,r,o){this.from=e,this.to=t,this.dir=i,this.isolates=s,this.fresh=r,this.order=o}static update(e,t){if(t.empty&&!e.some(r=>r.fresh))return e;let i=[],s=e.length?e[e.length-1].dir:_.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let o=e[r];o.dir==s&&!t.touchesRange(o.from,o.to)&&i.push(new $n(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return i}}function xl(n,e,t){for(let i=n.state.facet(e),s=i.length-1;s>=0;s--){let r=i[s],o=typeof r=="function"?r(n):r;o&&Xr(o,t)}return t}const Vd=D.mac?"mac":D.windows?"win":D.linux?"linux":"key";function zd(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let s,r,o,l;for(let a=0;a<t.length-1;++a){const h=t[a];if(/^(cmd|meta|m)$/i.test(h))l=!0;else if(/^a(lt)?$/i.test(h))s=!0;else if(/^(c|ctrl|control)$/i.test(h))r=!0;else if(/^s(hift)?$/i.test(h))o=!0;else if(/^mod$/i.test(h))e=="mac"?l=!0:r=!0;else throw new Error("Unrecognized modifier name: "+h)}return s&&(i="Alt-"+i),r&&(i="Ctrl-"+i),l&&(i="Meta-"+i),o&&(i="Shift-"+i),i}function un(n,e,t){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t!==!1&&e.shiftKey&&(n="Shift-"+n),n}const qd=Ht.default(M.domEventHandlers({keydown(n,e){return Hh(Fh(e.state),n,e,"editor")}})),as=O.define({enables:qd}),wl=new WeakMap;function Fh(n){let e=n.facet(as),t=wl.get(e);return t||wl.set(e,t=Ud(e.reduce((i,s)=>i.concat(s),[]))),t}function $d(n,e,t){return Hh(Fh(n.state),e,n,t)}let ut=null;const Kd=4e3;function Ud(n,e=Vd){let t=Object.create(null),i=Object.create(null),s=(o,l)=>{let a=i[o];if(a==null)i[o]=l;else if(a!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,l,a,h,c)=>{var f,u;let d=t[o]||(t[o]=Object.create(null)),p=l.split(/ (?!$)/).map(b=>zd(b,e));for(let b=1;b<p.length;b++){let w=p.slice(0,b).join(" ");s(w,!0),d[w]||(d[w]={preventDefault:!0,stopPropagation:!1,run:[v=>{let T=ut={view:v,prefix:w,scope:o};return setTimeout(()=>{ut==T&&(ut=null)},Kd),!0}]})}let m=p.join(" ");s(m,!1);let g=d[m]||(d[m]={preventDefault:!1,stopPropagation:!1,run:((u=(f=d._any)===null||f===void 0?void 0:f.run)===null||u===void 0?void 0:u.slice())||[]});a&&g.run.push(a),h&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of l){let c=t[h]||(t[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=o;for(let u in c)c[u].run.push(d=>f(d,Or))}let a=o[e]||o.key;if(a)for(let h of l)r(h,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(h,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return t}let Or=null;function Hh(n,e,t,i){Or=e;let s=su(e),r=ke(s,0),o=Ye(r)==s.length&&s!=" ",l="",a=!1,h=!1,c=!1;ut&&ut.view==t&&ut.scope==i&&(l=ut.prefix+" ",Th.indexOf(e.keyCode)<0&&(h=!0,ut=null));let f=new Set,u=g=>{if(g){for(let b of g.run)if(!f.has(b)&&(f.add(b),b(t)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),h=!0)}return!1},d=n[i],p,m;return d&&(u(d[l+un(s,e,!o)])?a=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(D.windows&&e.ctrlKey&&e.altKey)&&!(D.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=bt[e.keyCode])&&p!=s?(u(d[l+un(p,e,!0)])||e.shiftKey&&(m=Li[e.keyCode])!=s&&m!=p&&u(d[l+un(m,e,!1)]))&&(a=!0):o&&e.shiftKey&&u(d[l+un(s,e,!0)])&&(a=!0),!a&&u(d._any)&&(a=!0)),h&&(a=!0),a&&c&&e.stopPropagation(),Or=null,a}class Yi{constructor(e,t,i,s,r){this.className=e,this.left=t,this.top=i,this.width=s,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let s=e.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let r=Vh(e);return[new Yi(t,s.left-r.left,s.top-r.top,null,s.bottom-s.top)]}else return jd(e,t,i)}}function Vh(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==_.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function vl(n,e,t,i){let s=n.coordsAtPos(e,t*2);if(!s)return i;let r=n.dom.getBoundingClientRect(),o=(s.top+s.bottom)/2,l=n.posAtCoords({x:r.left+1,y:o}),a=n.posAtCoords({x:r.right-1,y:o});return l==null||a==null?i:{from:Math.max(i.from,Math.min(l,a)),to:Math.min(i.to,Math.max(l,a))}}function jd(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),s=Math.min(t.to,n.viewport.to),r=n.textDirection==_.LTR,o=n.contentDOM,l=o.getBoundingClientRect(),a=Vh(n),h=o.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),f=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),u=l.right-(c?parseInt(c.paddingRight):0),d=Sr(n,i,1),p=Sr(n,s,-1),m=d.type==fe.Text?d:null,g=p.type==fe.Text?p:null;if(m&&(n.lineWrapping||d.widgetLineBreaks)&&(m=vl(n,i,1,m)),g&&(n.lineWrapping||p.widgetLineBreaks)&&(g=vl(n,s,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return w(v(t.from,t.to,m));{let k=m?v(t.from,null,m):T(d,!1),C=g?v(null,t.to,g):T(p,!0),S=[];return(m||d).to<(g||p).from-(m&&g?1:0)||d.widgetLineBreaks>1&&k.bottom+n.defaultLineHeight/2<C.top?S.push(b(f,k.bottom,u,C.top)):k.bottom<C.top&&n.elementAtHeight((k.bottom+C.top)/2).type==fe.Text&&(k.bottom=C.top=(k.bottom+C.top)/2),w(k).concat(S).concat(w(C))}function b(k,C,S,R){return new Yi(e,k-a.left,C-a.top,Math.max(0,S-k),R-C)}function w({top:k,bottom:C,horizontal:S}){let R=[];for(let B=0;B<S.length;B+=2)R.push(b(S[B],k,S[B+1],C));return R}function v(k,C,S){let R=1e9,B=-1e9,H=[];function P(W,$,ie,re,de){let K=n.coordsAtPos(W,W==S.to?-2:2),ee=n.coordsAtPos(ie,ie==S.from?2:-2);!K||!ee||(R=Math.min(K.top,ee.top,R),B=Math.max(K.bottom,ee.bottom,B),de==_.LTR?H.push(r&&$?f:K.left,r&&re?u:ee.right):H.push(!r&&re?f:ee.left,!r&&$?u:K.right))}let L=k??S.from,N=C??S.to;for(let W of n.visibleRanges)if(W.to>L&&W.from<N)for(let $=Math.max(W.from,L),ie=Math.min(W.to,N);;){let re=n.state.doc.lineAt($);for(let de of n.bidiSpans(re)){let K=de.from+re.from,ee=de.to+re.from;if(K>=ie)break;ee>$&&P(Math.max(K,$),k==null&&K<=L,Math.min(ee,ie),C==null&&ee>=N,de.dir)}if($=re.to+1,$>=ie)break}return H.length==0&&P(L,k==null,N,C==null,n.textDirection),{top:R,bottom:B,horizontal:H}}function T(k,C){let S=l.top+(C?k.top:k.bottom);return{top:S,bottom:S,horizontal:[]}}}function _d(n,e){return n.constructor==e.constructor&&n.eq(e)}class Gd{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Dn)!=e.state.facet(Dn)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,i=e.facet(Dn);for(;t<i.length&&i[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,i)=>!_d(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[i].constructor&&s.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e,D.safari&&D.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Dn=O.define();function zh(n){return[Z.define(e=>new Gd(e,n)),Dn.of(n)]}const Ni=O.define({combine(n){return nt(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Jd(n={}){return[Ni.of(n),Yd,Xd,Qd,dh.of(!0)]}function qh(n){return n.startState.facet(Ni)!=n.state.facet(Ni)}const Yd=zh({above:!0,markers(n){let{state:e}=n,t=e.facet(Ni),i=[];for(let s of e.selection.ranges){let r=s==e.selection.main;if(s.empty||t.drawRangeCursor){let o=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=s.empty?s:x.cursor(s.head,s.head>s.anchor?-1:1);for(let a of Yi.forRange(n,o,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=qh(n);return t&&kl(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){kl(e.state,n)},class:"cm-cursorLayer"});function kl(n,e){e.style.animationDuration=n.facet(Ni).cursorBlinkRate+"ms"}const Xd=zh({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:Yi.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||qh(n)},class:"cm-selectionLayer"}),Qd=Ht.highest(M.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),$h=I.define({map(n,e){return n==null?null:e.mapPos(n)}}),wi=ue.define({create(){return null},update(n,e){return n!=null&&(n=e.changes.mapPos(n)),e.effects.reduce((t,i)=>i.is($h)?i.value:t,n)}}),Zd=Z.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var e;let t=n.state.field(wi);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(wi)!=t||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,e=n.state.field(wi),t=e!=null&&n.coordsAtPos(e);if(!t)return null;let i=n.scrollDOM.getBoundingClientRect();return{left:t.left-i.left+n.scrollDOM.scrollLeft*n.scaleX,top:t.top-i.top+n.scrollDOM.scrollTop*n.scaleY,height:t.bottom-t.top}}drawCursor(n){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;n?(this.cursor.style.left=n.left/e+"px",this.cursor.style.top=n.top/t+"px",this.cursor.style.height=n.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(wi)!=n&&this.view.dispatch({effects:$h.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function ep(){return[wi,Zd]}function Sl(n,e,t,i,s){e.lastIndex=0;for(let r=n.iterRange(t,i),o=t,l;!r.next().done;o+=r.value.length)if(!r.lineBreak)for(;l=e.exec(r.value);)s(o+l.index,l)}function tp(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:s,to:r}of t)s=Math.max(n.state.doc.lineAt(s).from,s-e),r=Math.min(n.state.doc.lineAt(r).to,r+e),i.length&&i[i.length-1].to>=s?i[i.length-1].to=r:i.push({from:s,to:r});return i}class ip{constructor(e){const{regexp:t,decoration:i,decorate:s,boundary:r,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(l,a,h,c)=>s(c,h,h+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,h,c)=>{let f=i(l,a,h);f&&c(h,h+l[0].length,f)};else if(i)this.addMatch=(l,a,h,c)=>c(h,h+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=r,this.maxLength=o}createDeco(e){let t=new lt,i=t.add.bind(t);for(let{from:s,to:r}of tp(e,this.maxLength))Sl(e.state.doc,this.regexp,s,r,(o,l)=>this.addMatch(l,e,o,i));return t.finish()}updateDeco(e,t){let i=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((r,o,l,a)=>{a>=e.view.viewport.from&&l<=e.view.viewport.to&&(i=Math.min(l,i),s=Math.max(a,s))}),e.viewportMoved||s-i>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),i,s):t}updateRange(e,t,i,s){for(let r of e.visibleRanges){let o=Math.max(r.from,i),l=Math.min(r.to,s);if(l>=o){let a=e.state.doc.lineAt(o),h=a.to<l?e.state.doc.lineAt(l):a,c=Math.max(r.from,a.from),f=Math.min(r.to,h.to);if(this.boundary){for(;o>a.from;o--)if(this.boundary.test(a.text[o-1-a.from])){c=o;break}for(;l<h.to;l++)if(this.boundary.test(h.text[l-h.from])){f=l;break}}let u=[],d,p=(m,g,b)=>u.push(b.range(m,g));if(a==h)for(this.regexp.lastIndex=c-a.from;(d=this.regexp.exec(a.text))&&d.index<f-a.from;)this.addMatch(d,e,d.index+a.from,p);else Sl(e.state.doc,this.regexp,c,f,(m,g)=>this.addMatch(g,e,m,p));t=t.update({filterFrom:c,filterTo:f,filter:(m,g)=>m<c||g>f,add:u})}}return t}}const Br=/x/.unicode!=null?"gu":"g",np=new RegExp(`[\0-\b
12+--Ÿ­<U+061C>​<U+200E><U+200F>\u2028\u2029<U+202D><U+202E><U+2066><U+2067><U+2069>\uFEFF-]`,Br),sp={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Os=null;function rp(){var n;if(Os==null&&typeof document<"u"&&document.body){let e=document.body.style;Os=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Os||!1}const On=O.define({combine(n){let e=nt(n,{render:null,specialChars:np,addSpecialChars:null});return(e.replaceTabs=!rp())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Br)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Br)),e}});function op(n={}){return[On.of(n),lp()]}let Cl=null;function lp(){return Cl||(Cl=Z.fromClass(class{constructor(n){this.view=n,this.decorations=E.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(On)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new ip({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:s}=t.state,r=ke(e[0],0);if(r==9){let o=s.lineAt(i),l=t.state.tabSize,a=li(o.text,l,i-o.from);return E.replace({widget:new fp((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=E.replace({widget:new cp(n,r)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(On);n.startState.facet(On)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const ap="•";function hp(n){return n>=32?ap:n==10?"␤":String.fromCharCode(9216+n)}class cp extends st{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=hp(this.code),i=e.state.phrase("Control character")+" "+(sp[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let r=document.createElement("span");return r.textContent=t,r.title=i,r.setAttribute("aria-label",i),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class fp extends st{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function up(){return pp}const dp=E.line({class:"cm-activeLine"}),pp=Z.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let s=n.lineBlockAt(i.head);s.from>e&&(t.push(dp.range(s.from)),e=s.from)}return E.set(t)}},{decorations:n=>n.decorations});class mp extends st{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?Ci(e.firstChild):[];if(!t.length)return null;let i=window.getComputedStyle(e.parentNode),s=Pi(t[0],i.direction!="rtl"),r=parseInt(i.lineHeight);return s.bottom-s.top>r*1.5?{left:s.left,right:s.right,top:s.top,bottom:s.top+r}:s}ignoreEvent(){return!1}}function gp(n){let e=Z.fromClass(class{constructor(t){this.view=t,this.placeholder=n?E.set([E.widget({widget:new mp(n),side:1}).range(0)]):E.none}get decorations(){return this.view.state.doc.length?E.none:this.placeholder}},{decorations:t=>t.decorations});return typeof n=="string"?[e,M.contentAttributes.of({"aria-placeholder":n})]:e}const Lr=2e3;function yp(n,e,t){let i=Math.min(e.line,t.line),s=Math.max(e.line,t.line),r=[];if(e.off>Lr||t.off>Lr||e.col<0||t.col<0){let o=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let a=i;a<=s;a++){let h=n.doc.line(a);h.length<=l&&r.push(x.range(h.from+o,h.to+l))}}else{let o=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let a=i;a<=s;a++){let h=n.doc.line(a),c=cr(h.text,o,n.tabSize,!0);if(c<0)r.push(x.cursor(h.to));else{let f=cr(h.text,l,n.tabSize);r.push(x.range(h.from+c,h.from+f))}}}return r}function bp(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function Al(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),s=t-i.from,r=s>Lr?-1:s==i.length?bp(n,e.clientX):li(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:r,off:s}}function xp(n,e){let t=Al(n,e),i=n.state.selection;return t?{update(s){if(s.docChanged){let r=s.changes.mapPos(s.startState.doc.line(t.line).from),o=s.state.doc.lineAt(r);t={line:o.number,col:t.col,off:Math.min(t.off,o.length)},i=i.map(s.changes)}},get(s,r,o){let l=Al(n,s);if(!l)return i;let a=yp(n.state,t,l);return a.length?o?x.create(a.concat(i.ranges)):x.create(a):i}}:null}function wp(n){let e=(t=>t.altKey&&t.button==0);return M.mouseSelectionStyle.of((t,i)=>e(i)?xp(t,i):null)}const vp={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},kp={style:"cursor: crosshair"};function Sp(n={}){let[e,t]=vp[n.key||"Alt"],i=Z.fromClass(class{constructor(s){this.view=s,this.isDown=!1}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}},{eventObservers:{keydown(s){this.set(s.keyCode==e||t(s))},keyup(s){(s.keyCode==e||!t(s))&&this.set(!1)},mousemove(s){this.set(t(s))}}});return[i,M.contentAttributes.of(s=>{var r;return!((r=s.plugin(i))===null||r===void 0)&&r.isDown?kp:null})]}const dn="-10000px";class Kh{constructor(e,t,i,s){this.facet=t,this.createTooltipView=i,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(o=>o);let r=null;this.tooltipViews=this.tooltips.map(o=>r=i(o,r))}update(e,t){var i;let s=e.state.facet(this.facet),r=s.filter(a=>a);if(s===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let o=[],l=t?[]:null;for(let a=0;a<r.length;a++){let h=r[a],c=-1;if(h){for(let f=0;f<this.tooltips.length;f++){let u=this.tooltips[f];u&&u.create==h.create&&(c=f)}if(c<0)o[a]=this.createTooltipView(h,a?o[a-1]:null),l&&(l[a]=!!h.above);else{let f=o[a]=this.tooltipViews[c];l&&(l[a]=t[c]),f.update&&f.update(e)}}}for(let a of this.tooltipViews)o.indexOf(a)<0&&(this.removeTooltipView(a),(i=a.destroy)===null||i===void 0||i.call(a));return t&&(l.forEach((a,h)=>t[h]=a),t.length=l.length),this.input=s,this.tooltips=r,this.tooltipViews=o,!0}}function Cp(n){let e=n.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const Bs=O.define({combine:n=>{var e,t,i;return{position:D.ios?"absolute":((e=n.find(s=>s.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(s=>s.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||Cp}}}),Ml=new WeakMap,ao=Z.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(Bs);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Kh(n,ho,(t,i)=>this.createTooltip(t,i),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(Bs);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n,e){let t=n.create(this.view),i=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),n.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",t.dom.appendChild(s)}return t.dom.style.position=this.position,t.dom.style.top=dn,t.dom.style.left="0px",this.container.insertBefore(t.dom,i),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var n,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(D.safari){let o=r.getBoundingClientRect();t=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else t=!!r.offsetParent&&r.offsetParent!=this.container.ownerDocument.body}if(t||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(n=r.width/this.parent.offsetWidth,e=r.height/this.parent.offsetHeight)}else({scaleX:n,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),s=so(this.view);return{visible:{left:i.left+s.left,top:i.top+s.top,right:i.right-s.right,bottom:i.bottom-s.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((r,o)=>{let l=this.manager.tooltipViews[o];return l.getCoords?l.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(Bs).tooltipSpace(this.view),scaleX:n,scaleY:e,makeAbsolute:t}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:t,space:i,scaleX:s,scaleY:r}=n,o=[];for(let l=0;l<this.manager.tooltips.length;l++){let a=this.manager.tooltips[l],h=this.manager.tooltipViews[l],{dom:c}=h,f=n.pos[l],u=n.size[l];if(!f||a.clip!==!1&&(f.bottom<=Math.max(t.top,i.top)||f.top>=Math.min(t.bottom,i.bottom)||f.right<Math.max(t.left,i.left)-.1||f.left>Math.min(t.right,i.right)+.1)){c.style.top=dn;continue}let d=a.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,m=u.right-u.left,g=(e=Ml.get(h))!==null&&e!==void 0?e:u.bottom-u.top,b=h.offset||Mp,w=this.view.textDirection==_.LTR,v=u.width>i.right-i.left?w?i.left:i.right-u.width:w?Math.max(i.left,Math.min(f.left-(d?14:0)+b.x,i.right-m)):Math.min(Math.max(i.left,f.left-m+(d?14:0)-b.x),i.right-m),T=this.above[l];!a.strictSide&&(T?f.top-g-p-b.y<i.top:f.bottom+g+p+b.y>i.bottom)&&T==i.bottom-f.bottom>f.top-i.top&&(T=this.above[l]=!T);let k=(T?f.top-i.top:i.bottom-f.bottom)-p;if(k<g&&h.resize!==!1){if(k<this.view.defaultLineHeight){c.style.top=dn;continue}Ml.set(h,g),c.style.height=(g=k)/r+"px"}else c.style.height&&(c.style.height="");let C=T?f.top-g-p-b.y:f.bottom+p+b.y,S=v+m;if(h.overlap!==!0)for(let R of o)R.left<S&&R.right>v&&R.top<C+g&&R.bottom>C&&(C=T?R.top-g-2-p:R.bottom+p+2);if(this.position=="absolute"?(c.style.top=(C-n.parent.top)/r+"px",Tl(c,(v-n.parent.left)/s)):(c.style.top=C/r+"px",Tl(c,v/s)),d){let R=f.left+(w?b.x:-b.x)-(v+14-7);d.style.left=R/s+"px"}h.overlap!==!0&&o.push({left:v,top:C,right:S,bottom:C+g}),c.classList.toggle("cm-tooltip-above",T),c.classList.toggle("cm-tooltip-below",!T),h.positioned&&h.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=dn}},{eventObservers:{scroll(){this.maybeMeasure()}}});function Tl(n,e){let t=parseInt(n.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(n.style.left=e+"px")}const Ap=M.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Mp={x:0,y:0},ho=O.define({enables:[ao,Ap]}),Kn=O.define({combine:n=>n.reduce((e,t)=>e.concat(t),[])});class hs{static create(e){return new hs(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Kh(e,Kn,(t,i)=>this.createHostedView(t,i),t=>t.dom.remove())}createHostedView(e,t){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let i of this.manager.tooltipViews){let s=i[e];if(s!==void 0){if(t===void 0)t=s;else if(t!==s)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Tp=ho.compute([Kn],n=>{let e=n.facet(Kn);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var i;return(i=t.end)!==null&&i!==void 0?i:t.pos})),create:hs.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class Dp{constructor(e,t,i,s,r){this.view=e,this.source=t,this.field=i,this.setHover=s,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,i=e.docView.tile.nearest(t.target);if(!i)return;let s,r=1;if(i.isWidget())s=i.posAtStart;else{if(s=e.posAtCoords(t),s==null)return;let l=e.coordsAtPos(s);if(!l||t.y<l.top||t.y>l.bottom||t.x<l.left-e.defaultCharacterWidth||t.x>l.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(s)).find(c=>c.from<=s&&c.to>=s),h=a&&a.dir==_.RTL?-1:1;r=t.x<l.left?-h:h}let o=this.source(e,s,r);if(o?.then){let l=this.pending={pos:s};o.then(a=>{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>Ae(e.state,a,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(ao),t=e?e.manager.tooltips.findIndex(i=>i.create==hs.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:r}=this;if(s.length&&r&&!Op(r.dom,e)||this.pending){let{pos:o}=s[0]||this.pending,l=(i=(t=s[0])===null||t===void 0?void 0:t.end)!==null&&i!==void 0?i:o;(o==l?this.view.posAtCoords(this.lastMove)!=o:!Bp(this.view,o,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const pn=4;function Op(n,e){let{left:t,right:i,top:s,bottom:r}=n.getBoundingClientRect(),o;if(o=n.querySelector(".cm-tooltip-arrow")){let l=o.getBoundingClientRect();s=Math.min(l.top,s),r=Math.max(l.bottom,r)}return e.clientX>=t-pn&&e.clientX<=i+pn&&e.clientY>=s-pn&&e.clientY<=r+pn}function Bp(n,e,t,i,s,r){let o=n.scrollDOM.getBoundingClientRect(),l=n.documentTop+n.documentPadding.top+n.contentHeight;if(o.left>i||o.right<i||o.top>s||Math.min(o.bottom,l)<s)return!1;let a=n.posAtCoords({x:i,y:s},!1);return a>=e&&a<=t}function Lp(n,e={}){let t=I.define(),i=ue.define({create(){return[]},update(s,r){if(s.length&&(e.hideOnChange&&(r.docChanged||r.selection)?s=[]:e.hideOn&&(s=s.filter(o=>!e.hideOn(r,o))),r.docChanged)){let o=[];for(let l of s){let a=r.changes.mapPos(l.pos,-1,we.TrackDel);if(a!=null){let h=Object.assign(Object.create(null),l);h.pos=a,h.end!=null&&(h.end=r.changes.mapPos(h.end)),o.push(h)}}s=o}for(let o of r.effects)o.is(t)&&(s=o.value),o.is(Ep)&&(s=[]);return s},provide:s=>Kn.from(s)});return{active:i,extension:[i,Z.define(s=>new Dp(s,n,i,t,e.hoverTime||300)),Tp]}}function Uh(n,e){let t=n.plugin(ao);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}const Ep=I.define(),Dl=O.define({combine(n){let e,t;for(let i of n)e=e||i.topContainer,t=t||i.bottomContainer;return{topContainer:e,bottomContainer:t}}});function co(n,e){let t=n.plugin(jh),i=t?t.specs.indexOf(e):-1;return i>-1?t.panels[i]:null}const jh=Z.fromClass(class{constructor(n){this.input=n.state.facet(Wi),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(n));let e=n.state.facet(Dl);this.top=new mn(n,!0,e.topContainer),this.bottom=new mn(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(n){let e=n.state.facet(Dl);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new mn(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new mn(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=n.state.facet(Wi);if(t!=this.input){let i=t.filter(a=>a),s=[],r=[],o=[],l=[];for(let a of i){let h=this.specs.indexOf(a),c;h<0?(c=a(n.view),l.push(c)):(c=this.panels[h],c.update&&c.update(n)),s.push(c),(c.top?r:o).push(c)}this.specs=i,this.panels=s,this.top.sync(r),this.bottom.sync(o);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let i of this.panels)i.update&&i.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>M.scrollMargins.of(e=>{let t=e.plugin(n);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class mn{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Ol(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Ol(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Ol(n){let e=n.nextSibling;return n.remove(),e}const Wi=O.define({enables:jh});function Rp(n,e){let t,i=new Promise(o=>t=o),s=o=>Pp(o,e,t);n.state.field(Ls,!1)?n.dispatch({effects:_h.of(s)}):n.dispatch({effects:I.appendConfig.of(Ls.init(()=>[s]))});let r=Gh.of(s);return{close:r,result:i.then(o=>((n.win.queueMicrotask||(a=>n.win.setTimeout(a,10)))(()=>{n.state.field(Ls).indexOf(s)>-1&&n.dispatch({effects:r})}),o))}}const Ls=ue.define({create(){return[]},update(n,e){for(let t of e.effects)t.is(_h)?n=[t.value].concat(n):t.is(Gh)&&(n=n.filter(i=>i!=t.value));return n},provide:n=>Wi.computeN([n],e=>e.field(n))}),_h=I.define(),Gh=I.define();function Pp(n,e,t){let i=e.content?e.content(n,()=>o(null)):null;if(!i){if(i=U("form"),e.input){let l=U("input",e.input);/^(text|password|number|email|tel|url)$/.test(l.type)&&l.classList.add("cm-textfield"),l.name||(l.name="input"),i.appendChild(U("label",(e.label||"")+": ",l))}else i.appendChild(document.createTextNode(e.label||""));i.appendChild(document.createTextNode(" ")),i.appendChild(U("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let s=i.nodeName=="FORM"?[i]:i.querySelectorAll("form");for(let l=0;l<s.length;l++){let a=s[l];a.addEventListener("keydown",h=>{h.keyCode==27?(h.preventDefault(),o(null)):h.keyCode==13&&(h.preventDefault(),o(a))}),a.addEventListener("submit",h=>{h.preventDefault(),o(a)})}let r=U("div",i,U("button",{onclick:()=>o(null),"aria-label":n.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));e.class&&(r.className=e.class),r.classList.add("cm-dialog");function o(l){r.contains(r.ownerDocument.activeElement)&&n.focus(),t(l)}return{dom:r,top:e.top,mount:()=>{if(e.focus){let l;typeof e.focus=="string"?l=i.querySelector(e.focus):l=i.querySelector("input")||i.querySelector("button"),l&&"select"in l?l.select():l&&"focus"in l&&l.focus()}}}}class ht extends gt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}ht.prototype.elementClass="";ht.prototype.toDOM=void 0;ht.prototype.mapMode=we.TrackBefore;ht.prototype.startSide=ht.prototype.endSide=-1;ht.prototype.point=!0;const Bn=O.define(),Ip=O.define(),Np={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>F.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Ti=O.define();function Wp(n){return[Jh(),Ti.of({...Np,...n})]}const Bl=O.define({combine:n=>n.some(e=>e)});function Jh(n){return[Fp]}const Fp=Z.fromClass(class{constructor(n){this.view=n,this.domAfter=null,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(Ti).map(e=>new El(n,e)),this.fixed=!n.state.facet(Bl);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}if(n.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Bl)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=F.iter(this.view.state.facet(Bn),this.view.viewport.from),i=[],s=this.gutters.map(r=>new Hp(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=!0;for(let l of r.type)if(l.type==fe.Text&&o){Er(t,i,l.from);for(let a of s)a.line(this.view,l,i);o=!1}else if(l.widget)for(let a of s)a.widget(this.view,l)}else if(r.type==fe.Text){Er(t,i,r.from);for(let o of s)o.line(this.view,r,i)}else if(r.widget)for(let o of s)o.widget(this.view,r);for(let r of s)r.finish();n&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(n){let e=n.startState.facet(Ti),t=n.state.facet(Ti),i=n.docChanged||n.heightChanged||n.viewportChanged||!F.eq(n.startState.facet(Bn),n.state.facet(Bn),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let r of t){let o=e.indexOf(r);o<0?s.push(new El(this.view,r)):(this.gutters[o].update(n),s.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),s.indexOf(r)<0&&r.destroy();for(let r of s)r.config.side=="after"?this.getDOMAfter().appendChild(r.dom):this.dom.appendChild(r.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:n=>M.scrollMargins.of(e=>{let t=e.plugin(n);if(!t||t.gutters.length==0||!t.fixed)return null;let i=t.dom.offsetWidth*e.scaleX,s=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==_.LTR?{left:i,right:s}:{right:i,left:s}})});function Ll(n){return Array.isArray(n)?n:[n]}function Er(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class Hp{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=F.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,r=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==s.elements.length){let l=new Yh(e,o,r,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(e,o,r,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];Er(this.cursor,s,t.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(e,t,s);r&&s.unshift(r);let o=this.gutter;s.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let r of e.state.facet(Ip)){let o=r(e,t.widget,t);o&&(s||(s=[])).push(o)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class El{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,s=>{let r=s.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let a=r.getBoundingClientRect();o=(a.top+a.bottom)/2}else o=s.clientY;let l=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[i](e,l,s)&&s.preventDefault()});this.markers=Ll(t.markers(e)),t.initialSpacer&&(this.spacer=new Yh(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ll(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!F.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Yh{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Vp(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,o=0;;){let l=o,a=r<t.length?t[r++]:null,h=!1;if(a){let c=a.elementClass;c&&(i+=" "+c);for(let f=o;f<this.markers.length;f++)if(this.markers[f].compare(a)){l=f,h=!0;break}}else l=this.markers.length;for(;o<l;){let c=this.markers[o++];if(c.toDOM){c.destroy(s);let f=s.nextSibling;s.remove(),s=f}}if(!a)break;a.toDOM&&(h?s=s.nextSibling:this.dom.insertBefore(a.toDOM(e),s)),h&&o++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}function Vp(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].compare(e[t]))return!1;return!0}const zp=O.define(),qp=O.define(),Kt=O.define({combine(n){return nt(n,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let s in t){let r=i[s],o=t[s];i[s]=r?(l,a,h)=>r(l,a,h)||o(l,a,h):o}return i}})}});class Es extends ht{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Rs(n,e){return n.state.facet(Kt).formatNumber(e,n.state)}const $p=Ti.compute([Kt],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(zp)},lineMarker(e,t,i){return i.some(s=>s.toDOM)?null:new Es(Rs(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let s of e.state.facet(qp)){let r=s(e,t,i);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(Kt)!=e.state.facet(Kt),initialSpacer(e){return new Es(Rs(e,Rl(e.state.doc.lines)))},updateSpacer(e,t){let i=Rs(t.view,Rl(t.view.state.doc.lines));return i==e.number?e:new Es(i)},domEventHandlers:n.facet(Kt).domEventHandlers,side:"before"}));function Kp(n={}){return[Kt.of(n),Jh(),$p]}function Rl(n){let e=9;for(;e<n;)e=e*10+9;return e}const Up=new class extends ht{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},jp=Bn.compute(["selection"],n=>{let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.head).from;s>t&&(t=s,e.push(Up.range(s)))}return F.of(e)});function _p(){return jp}const Gp=1024;let Jp=0;class Ps{constructor(e,t){this.from=e,this.to=t}}class V{constructor(e={}){this.id=Jp++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Te.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}V.closedBy=new V({deserialize:n=>n.split(" ")});V.openedBy=new V({deserialize:n=>n.split(" ")});V.group=new V({deserialize:n=>n.split(" ")});V.isolate=new V({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});V.contextHash=new V({perNode:!0});V.lookAhead=new V({perNode:!0});V.mounted=new V({perNode:!0});class Di{constructor(e,t,i,s=!1){this.tree=e,this.overlay=t,this.parser=i,this.bracketed=s}static get(e){return e&&e.props&&e.props[V.mounted.id]}}const Yp=Object.create(null);class Te{constructor(e,t,i,s=0){this.name=e,this.props=t,this.id=i,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):Yp,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new Te(e.name||"",t,e.id,i);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(V.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let s of i.split(" "))t[s]=e[i];return i=>{for(let s=i.prop(V.group),r=-1;r<(s?s.length:0);r++){let o=t[r<0?i.name:s[r]];if(o)return o}}}}Te.none=new Te("",Object.create(null),0,8);class fo{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let s=null;for(let r of e){let o=r(i);if(o){s||(s=Object.assign({},i.props));let l=o[1],a=o[0];a.combine&&a.id in s&&(l=a.combine(s[a.id],l)),s[a.id]=l}}t.push(s?new Te(i.name,s,i.id,i.flags):i)}return new fo(t)}}const gn=new WeakMap,Pl=new WeakMap;var Q;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays",n[n.EnterBracketed=16]="EnterBracketed"})(Q||(Q={}));class Y{constructor(e,t,i,s,r){if(this.type=e,this.children=t,this.positions=i,this.length=s,this.props=null,r&&r.length){this.props=Object.create(null);for(let[o,l]of r)this.props[typeof o=="number"?o:o.id]=l}}toString(){let e=Di.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let i of this.children){let s=i.toString();s&&(t&&(t+=","),t+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Pr(this.topNode,e)}cursorAt(e,t=0,i=0){let s=gn.get(this)||this.topNode,r=new Pr(s);return r.moveTo(e,t),gn.set(this,r._tree),r}get topNode(){return new Ie(this,0,0,null)}resolve(e,t=0){let i=Fi(gn.get(this)||this.topNode,e,t,!1);return gn.set(this,i),i}resolveInner(e,t=0){let i=Fi(Pl.get(this)||this.topNode,e,t,!0);return Pl.set(this,i),i}resolveStack(e,t=0){return Zp(this,e,t)}iterate(e){let{enter:t,leave:i,from:s=0,to:r=this.length}=e,o=e.mode||0,l=(o&Q.IncludeAnonymous)>0;for(let a=this.cursor(o|Q.IncludeAnonymous);;){let h=!1;if(a.from<=r&&a.to>=s&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;h=!0}for(;h&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:mo(Te.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,s)=>new Y(this.type,t,i,s,this.propValues),e.makeTree||((t,i,s)=>new Y(Te.none,t,i,s)))}static build(e){return em(e)}}Y.empty=new Y(Te.none,[],[],0);class uo{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new uo(this.buffer,this.index)}}class wt{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Te.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],s=this.set.types[t],r=s.name;if(/\W/.test(r)&&!s.isError&&(r=JSON.stringify(r)),e+=4,i==e)return r;let o=[];for(;e<i;)o.push(this.childString(e)),e=this.buffer[e+3];return r+"("+o.join(",")+")"}findChild(e,t,i,s,r){let{buffer:o}=this,l=-1;for(let a=e;a!=t&&!(Xh(r,s,o[a+1],o[a+2])&&(l=a,i>0));a=o[a+3]);return l}slice(e,t,i){let s=this.buffer,r=new Uint16Array(t-e),o=0;for(let l=e,a=0;l<t;){r[a++]=s[l++],r[a++]=s[l++]-i;let h=r[a++]=s[l++]-i;r[a++]=s[l++]-e,o=Math.max(o,h)}return new wt(r,o,this.set)}}function Xh(n,e,t,i){switch(n){case-2:return t<e;case-1:return i>=e&&t<e;case 0:return t<e&&i>e;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function Fi(n,e,t,i){for(var s;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to<e);){let o=!i&&n instanceof Ie&&n.index<0?null:n.parent;if(!o)return n;n=o}let r=i?0:Q.IgnoreOverlays;if(i)for(let o=n,l=o.parent;l;o=l,l=o.parent)o instanceof Ie&&o.index<0&&((s=l.enter(e,t,r))===null||s===void 0?void 0:s.from)!=o.from&&(n=l);for(;;){let o=n.enter(e,t,r);if(!o)return n;n=o}}class Qh{cursor(e=0){return new Pr(this,e)}getChild(e,t=null,i=null){let s=Il(this,e,t,i);return s.length?s[0]:null}getChildren(e,t=null,i=null){return Il(this,e,t,i)}resolve(e,t=0){return Fi(this,e,t,!1)}resolveInner(e,t=0){return Fi(this,e,t,!0)}matchContext(e){return Rr(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let s=t.lastChild;if(!s||s.to!=t.to)break;s.type.isError&&s.from==s.to?(i=t,t=s.prevSibling):t=s}return i}get node(){return this}get next(){return this.parent}}class Ie extends Qh{constructor(e,t,i,s){super(),this._tree=e,this.from=t,this.index=i,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,s,r=0){for(let o=this;;){for(let{children:l,positions:a}=o._tree,h=t>0?l.length:-1;e!=h;e+=t){let c=l[e],f=a[e]+o.from,u;if(!(!(r&Q.EnterBracketed&&c instanceof Y&&(u=Di.get(c))&&!u.overlay&&u.bracketed&&i>=f&&i<=f+c.length)&&!Xh(s,i,f,f+c.length))){if(c instanceof wt){if(r&Q.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,t,i-f,s);if(d>-1)return new pt(new Xp(o,c,e,f),null,d)}else if(r&Q.IncludeAnonymous||!c.type.isAnonymous||po(c)){let d;if(!(r&Q.IgnoreMounts)&&(d=Di.get(c))&&!d.overlay)return new Ie(d.tree,f,e,o);let p=new Ie(c,f,e,o);return r&Q.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?c.children.length-1:0,t,i,s,r)}}}if(r&Q.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,i=0){let s;if(!(i&Q.IgnoreOverlays)&&(s=Di.get(this._tree))&&s.overlay){let r=e-this.from,o=i&Q.EnterBracketed&&s.bracketed;for(let{from:l,to:a}of s.overlay)if((t>0||o?l<=r:l<r)&&(t<0||o?a>=r:a>r))return new Ie(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Il(n,e,t,i){let s=n.cursor(),r=[];if(!s.firstChild())return r;if(t!=null){for(let o=!1;!o;)if(o=s.type.is(t),!s.nextSibling())return r}for(;;){if(i!=null&&s.type.is(i))return r;if(s.type.is(e)&&r.push(s.node),!s.nextSibling())return i==null?r:[]}}function Rr(n,e,t=e.length-1){for(let i=n;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class Xp{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}}class pt extends Qh{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new pt(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,i=0){if(i&Q.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new pt(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new pt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new pt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,s=this.index+4,r=i.buffer[this.index+3];if(r>s){let o=i.buffer[this.index+1];e.push(i.slice(s,r,o)),t.push(0)}return new Y(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Zh(n){if(!n.length)return null;let e=0,t=n[0];for(let r=1;r<n.length;r++){let o=n[r];(o.from>t.from||o.to<t.to)&&(t=o,e=r)}let i=t instanceof Ie&&t.index<0?null:t.parent,s=n.slice();return i?s[e]=i:s.splice(e,1),new Qp(s,t)}class Qp{constructor(e,t){this.heads=e,this.node=t}get next(){return Zh(this.heads)}}function Zp(n,e,t){let i=n.resolveInner(e,t),s=null;for(let r=i instanceof Ie?i:i.context.parent;r;r=r.parent)if(r.index<0){let o=r.parent;(s||(s=[i])).push(o.resolve(e,t)),r=o}else{let o=Di.get(r.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let l=new Ie(o.tree,o.overlay[0].from+r.from,-1,r);(s||(s=[i])).push(Fi(l,e,t,!1))}}return s?Zh(s):i}class Pr{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~Q.EnterBracketed,e instanceof Ie)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof Ie?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&Q.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Q.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Q.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index<s.buffer.buffer.length)return!1}else for(let r=0;r<this.index;r++)if(s.buffer.buffer[r+3]<this.index)return!1;({index:t,parent:i}=s)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let r=t+e,o=e<0?-1:i._tree.children.length;r!=o;r+=e){let l=i._tree.children[r];if(this.mode&Q.IncludeAnonymous||l instanceof wt||!l.type.isAnonymous||po(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let s=this.index,r=this.stack.length;r>=0;){for(let o=e;o;o=o._parent)if(o.index==s){if(s==this.index)return o;t=o,i=r+1;break e}s=this.stack[--r]}for(let s=i;s<this.stack.length;s++)t=new pt(this.buffer,t,this.stack[s]);return this.bufferNode=new pt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let s=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&t&&t(this),s=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,s=!0}}}matchContext(e){if(!this.buffer)return Rr(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let s=e.length-1,r=this.stack.length-1;s>=0;r--){if(r<0)return Rr(this._tree,e,s);let o=i[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[s]&&e[s]!=o.name)return!1;s--}}return!0}}function po(n){return n.children.some(e=>e instanceof wt||!e.type.isAnonymous||po(e))}function em(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:s=Gp,reused:r=[],minRepeatType:o=i.types.length}=n,l=Array.isArray(t)?new uo(t,t.length):t,a=i.types,h=0,c=0;function f(k,C,S,R,B,H){let{id:P,start:L,end:N,size:W}=l,$=c,ie=h;if(W<0)if(l.next(),W==-1){let ae=r[P];S.push(ae),R.push(L-k);return}else if(W==-3){h=P;return}else if(W==-4){c=P;return}else throw new RangeError(`Unrecognized record size: ${W}`);let re=a[P],de,K,ee=L-k;if(N-L<=s&&(K=g(l.pos-C,B))){let ae=new Uint16Array(K.size-K.skip),pe=l.pos-K.size,Ke=ae.length;for(;l.pos>pe;)Ke=b(K.start,ae,Ke);de=new wt(ae,N-K.start,i),ee=K.start-k}else{let ae=l.pos-W;l.next();let pe=[],Ke=[],Ct=P>=o?P:-1,Vt=0,en=N;for(;l.pos>ae;)Ct>=0&&l.id==Ct&&l.size>=0?(l.end<=en-s&&(p(pe,Ke,L,Vt,l.end,en,Ct,$,ie),Vt=pe.length,en=l.end),l.next()):H>2500?u(L,ae,pe,Ke):f(L,ae,pe,Ke,Ct,H+1);if(Ct>=0&&Vt>0&&Vt<pe.length&&p(pe,Ke,L,Vt,L,en,Ct,$,ie),pe.reverse(),Ke.reverse(),Ct>-1&&Vt>0){let Ro=d(re,ie);de=mo(re,pe,Ke,0,pe.length,0,N-L,Ro,Ro)}else de=m(re,pe,Ke,N-L,$-N,ie)}S.push(de),R.push(ee)}function u(k,C,S,R){let B=[],H=0,P=-1;for(;l.pos>C;){let{id:L,start:N,end:W,size:$}=l;if($>4)l.next();else{if(P>-1&&N<P)break;P<0&&(P=W-s),B.push(L,N,W),H++,l.next()}}if(H){let L=new Uint16Array(H*4),N=B[B.length-2];for(let W=B.length-3,$=0;W>=0;W-=3)L[$++]=B[W],L[$++]=B[W+1]-N,L[$++]=B[W+2]-N,L[$++]=$;S.push(new wt(L,B[2]-N,i)),R.push(N-k)}}function d(k,C){return(S,R,B)=>{let H=0,P=S.length-1,L,N;if(P>=0&&(L=S[P])instanceof Y){if(!P&&L.type==k&&L.length==B)return L;(N=L.prop(V.lookAhead))&&(H=R[P]+L.length+N)}return m(k,S,R,B,H,C)}}function p(k,C,S,R,B,H,P,L,N){let W=[],$=[];for(;k.length>R;)W.push(k.pop()),$.push(C.pop()+S-B);k.push(m(i.types[P],W,$,H-B,L-H,N)),C.push(B-S)}function m(k,C,S,R,B,H,P){if(H){let L=[V.contextHash,H];P=P?[L].concat(P):[L]}if(B>25){let L=[V.lookAhead,B];P=P?[L].concat(P):[L]}return new Y(k,C,S,R,P)}function g(k,C){let S=l.fork(),R=0,B=0,H=0,P=S.end-s,L={size:0,start:0,skip:0};e:for(let N=S.pos-k;S.pos>N;){let W=S.size;if(S.id==C&&W>=0){L.size=R,L.start=B,L.skip=H,H+=4,R+=4,S.next();continue}let $=S.pos-W;if(W<0||$<N||S.start<P)break;let ie=S.id>=o?4:0,re=S.start;for(S.next();S.pos>$;){if(S.size<0)if(S.size==-3||S.size==-4)ie+=4;else break e;else S.id>=o&&(ie+=4);S.next()}B=re,R+=W,H+=ie}return(C<0||R==k)&&(L.size=R,L.start=B,L.skip=H),L.size>4?L:void 0}function b(k,C,S){let{id:R,start:B,end:H,size:P}=l;if(l.next(),P>=0&&R<o){let L=S;if(P>4){let N=l.pos-(P-4);for(;l.pos>N;)S=b(k,C,S)}C[--S]=L,C[--S]=H-k,C[--S]=B-k,C[--S]=R}else P==-3?h=R:P==-4&&(c=R);return S}let w=[],v=[];for(;l.pos>0;)f(n.start||0,n.bufferStart||0,w,v,-1,0);let T=(e=n.length)!==null&&e!==void 0?e:w.length?v[0]+w[0].length:0;return new Y(a[n.topID],w.reverse(),v.reverse(),T)}const Nl=new WeakMap;function Ln(n,e){if(!n.isAnonymous||e instanceof wt||e.type!=n)return 1;let t=Nl.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof Y)){t=1;break}t+=Ln(n,i)}Nl.set(e,t)}return t}function mo(n,e,t,i,s,r,o,l,a){let h=0;for(let p=i;p<s;p++)h+=Ln(n,e[p]);let c=Math.ceil(h*1.5/8),f=[],u=[];function d(p,m,g,b,w){for(let v=g;v<b;){let T=v,k=m[v],C=Ln(n,p[v]);for(v++;v<b;v++){let S=Ln(n,p[v]);if(C+S>=c)break;C+=S}if(v==T+1){if(C>c){let S=p[T];d(S.children,S.positions,0,S.children.length,m[T]+w);continue}f.push(p[T])}else{let S=m[v-1]+p[v-1].length-k;f.push(mo(n,p,m,T,v,k,S,null,a))}u.push(k+w-r)}}return d(e,t,i,s,0),(l||a)(f,u,o)}class Et{constructor(e,t,i,s,r=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=s,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let s=[new Et(0,e.length,e,0,!1,i)];for(let r of t)r.to>e.length&&s.push(r);return s}static applyChanges(e,t,i=128){if(!t.length)return e;let s=[],r=1,o=e.length?e[0]:null;for(let l=0,a=0,h=0;;l++){let c=l<t.length?t[l]:null,f=c?c.fromA:1e9;if(f-a>=i)for(;o&&o.from<f;){let u=o;if(a>=u.from||f<=u.to||h){let d=Math.max(u.from,a)-h,p=Math.min(u.to,f)-h;u=d>=p?null:new Et(d,p,u.tree,u.offset+h,l>0,!!c)}if(u&&s.push(u),o.to>f)break;o=r<e.length?e[r++]:null}if(!c)break;a=c.toA,h=c.toA-c.toB}return s}}class ec{startParse(e,t,i){return typeof e=="string"&&(e=new tm(e)),i=i?i.length?i.map(s=>new Ps(s.from,s.to)):[new Ps(0,0)]:[new Ps(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let r=s.advance();if(r)return r}}}class tm{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new V({perNode:!0});let im=0;class Le{constructor(e,t,i,s){this.name=e,this.set=t,this.base=i,this.modified=s,this.id=im++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Le&&(t=e),t?.base)throw new Error("Can not derive from a modified tag");let s=new Le(i,[],null,[]);if(s.set.push(s),t)for(let r of t.set)s.set.push(r);return s}static defineModifier(e){let t=new Un(e);return i=>i.modified.indexOf(t)>-1?i:Un.get(i.base||i,i.modified.concat(t).sort((s,r)=>s.id-r.id))}}let nm=0;class Un{constructor(e){this.name=e,this.instances=[],this.id=nm++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&sm(t,l.modified));if(i)return i;let s=[],r=new Le(e.name,s,e,t);for(let l of t)l.instances.push(r);let o=rm(t);for(let l of e.set)if(!l.modified.length)for(let a of o)s.push(Un.get(l,a));return r}}function sm(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function rm(n){let e=[[]];for(let t=0;t<n.length;t++)for(let i=0,s=e.length;i<s;i++)e.push(e[i].concat(n[t]));return e.sort((t,i)=>i.length-t.length)}function om(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let s of t.split(" "))if(s){let r=[],o=2,l=s;for(let f=0;;){if(l=="..."&&f>0&&f+3==s.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw new RangeError("Invalid path: "+s);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),f+=u[0].length,f==s.length)break;let d=s[f++];if(f==s.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+s);l=s.slice(f)}let a=r.length-1,h=r[a];if(!h)throw new RangeError("Invalid path: "+s);let c=new Hi(i,o,a>0?r.slice(0,a):null);e[h]=c.sort(e[h])}}return tc.add(e)}const tc=new V({combine(n,e){let t,i,s;for(;n||e;){if(!n||e&&n.depth>=e.depth?(s=e,e=e.next):(s=n,n=n.next),t&&t.mode==s.mode&&!s.context&&!t.context)continue;let r=new Hi(s.tags,s.mode,s.context);t?t.next=r:i=r,t=r}return i}});class Hi{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Hi.empty=new Hi([],2,null);function ic(n,e){let t=Object.create(null);for(let r of n)if(!Array.isArray(r.tag))t[r.tag.id]=r.class;else for(let o of r.tag)t[o.id]=r.class;let{scope:i,all:s=null}=e||{};return{style:r=>{let o=s;for(let l of r)for(let a of l.set){let h=t[a.id];if(h){o=o?o+" "+h:h;break}}return o},scope:i}}function lm(n,e){let t=null;for(let i of n){let s=i.style(e);s&&(t=t?t+" "+s:s)}return t}function am(n,e,t,i=0,s=n.length){let r=new hm(i,Array.isArray(e)?e:[e],t);r.highlightRange(n.cursor(),i,s,"",r.highlighters),r.flush(s)}class hm{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,r){let{type:o,from:l,to:a}=e;if(l>=i||a<=t)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let h=s,c=cm(e)||Hi.empty,f=lm(r,c.tags);if(f&&(h&&(h+=" "),h+=f,c.mode==1&&(s+=(s?" ":"")+f)),this.startSpan(Math.max(t,l),h),c.opaque)return;let u=e.tree&&e.tree.prop(V.mounted);if(u&&u.overlay){let d=e.node.enter(u.overlay[0].from+l,1),p=this.highlighters.filter(g=>!g.scope||g.scope(u.tree.type)),m=e.firstChild();for(let g=0,b=l;;g++){let w=g<u.overlay.length?u.overlay[g]:null,v=w?w.from+l:a,T=Math.max(t,b),k=Math.min(i,v);if(T<k&&m)for(;e.from<k&&(this.highlightRange(e,T,k,s,r),this.startSpan(Math.min(k,e.to),h),!(e.to>=v||!e.nextSibling())););if(!w||v>i)break;b=w.to+l,b>t&&(this.highlightRange(d.cursor(),Math.max(t,w.from+l),Math.min(i,b),"",p),this.startSpan(Math.min(i,b),h))}m&&e.parent()}else if(e.firstChild()){u&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,r),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}}function cm(n){let e=n.type.prop(tc);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const A=Le.define,yn=A(),ct=A(),Wl=A(ct),Fl=A(ct),ft=A(),bn=A(ft),Is=A(ft),Ge=A(),At=A(Ge),je=A(),_e=A(),Ir=A(),di=A(Ir),xn=A(),y={comment:yn,lineComment:A(yn),blockComment:A(yn),docComment:A(yn),name:ct,variableName:A(ct),typeName:Wl,tagName:A(Wl),propertyName:Fl,attributeName:A(Fl),className:A(ct),labelName:A(ct),namespace:A(ct),macroName:A(ct),literal:ft,string:bn,docString:A(bn),character:A(bn),attributeValue:A(bn),number:Is,integer:A(Is),float:A(Is),bool:A(ft),regexp:A(ft),escape:A(ft),color:A(ft),url:A(ft),keyword:je,self:A(je),null:A(je),atom:A(je),unit:A(je),modifier:A(je),operatorKeyword:A(je),controlKeyword:A(je),definitionKeyword:A(je),moduleKeyword:A(je),operator:_e,derefOperator:A(_e),arithmeticOperator:A(_e),logicOperator:A(_e),bitwiseOperator:A(_e),compareOperator:A(_e),updateOperator:A(_e),definitionOperator:A(_e),typeOperator:A(_e),controlOperator:A(_e),punctuation:Ir,separator:A(Ir),bracket:di,angleBracket:A(di),squareBracket:A(di),paren:A(di),brace:A(di),content:Ge,heading:At,heading1:A(At),heading2:A(At),heading3:A(At),heading4:A(At),heading5:A(At),heading6:A(At),contentSeparator:A(Ge),list:A(Ge),quote:A(Ge),emphasis:A(Ge),strong:A(Ge),link:A(Ge),monospace:A(Ge),strikethrough:A(Ge),inserted:A(),deleted:A(),changed:A(),invalid:A(),meta:xn,documentMeta:A(xn),annotation:A(xn),processingInstruction:A(xn),definition:Le.defineModifier("definition"),constant:Le.defineModifier("constant"),function:Le.defineModifier("function"),standard:Le.defineModifier("standard"),local:Le.defineModifier("local"),special:Le.defineModifier("special")};for(let n in y){let e=y[n];e instanceof Le&&(e.name=n)}ic([{tag:y.link,class:"tok-link"},{tag:y.heading,class:"tok-heading"},{tag:y.emphasis,class:"tok-emphasis"},{tag:y.strong,class:"tok-strong"},{tag:y.keyword,class:"tok-keyword"},{tag:y.atom,class:"tok-atom"},{tag:y.bool,class:"tok-bool"},{tag:y.url,class:"tok-url"},{tag:y.labelName,class:"tok-labelName"},{tag:y.inserted,class:"tok-inserted"},{tag:y.deleted,class:"tok-deleted"},{tag:y.literal,class:"tok-literal"},{tag:y.string,class:"tok-string"},{tag:y.number,class:"tok-number"},{tag:[y.regexp,y.escape,y.special(y.string)],class:"tok-string2"},{tag:y.variableName,class:"tok-variableName"},{tag:y.local(y.variableName),class:"tok-variableName tok-local"},{tag:y.definition(y.variableName),class:"tok-variableName tok-definition"},{tag:y.special(y.variableName),class:"tok-variableName2"},{tag:y.definition(y.propertyName),class:"tok-propertyName tok-definition"},{tag:y.typeName,class:"tok-typeName"},{tag:y.namespace,class:"tok-namespace"},{tag:y.className,class:"tok-className"},{tag:y.macroName,class:"tok-macroName"},{tag:y.propertyName,class:"tok-propertyName"},{tag:y.operator,class:"tok-operator"},{tag:y.comment,class:"tok-comment"},{tag:y.meta,class:"tok-meta"},{tag:y.invalid,class:"tok-invalid"},{tag:y.punctuation,class:"tok-punctuation"}]);var Ns;const Ut=new V;function fm(n){return O.define({combine:n?e=>e.concat(n):void 0})}const um=new V;class Ve{constructor(e,t,i=[],s=""){this.data=e,this.name=s,z.prototype.hasOwnProperty("tree")||Object.defineProperty(z.prototype,"tree",{get(){return ge(this)}}),this.parser=t,this.extension=[vt.of(this),z.languageData.of((r,o,l)=>{let a=Hl(r,o,l),h=a.type.prop(Ut);if(!h)return[];let c=r.facet(h),f=a.type.prop(um);if(f){let u=a.resolve(o-a.from,l);for(let d of f)if(d.test(u,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(c)}}return c})].concat(i)}isActiveAt(e,t,i=-1){return Hl(e,t,i).type.prop(Ut)==this.data}findRegions(e){let t=e.facet(vt);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(r,o)=>{if(r.prop(Ut)==this.data){i.push({from:o,to:o+r.length});return}let l=r.prop(V.mounted);if(l){if(l.tree.prop(Ut)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+o,to:a.to+o});else i.push({from:o,to:o+r.length});return}else if(l.overlay){let a=i.length;if(s(l.tree,l.overlay[0].from+o),i.length>a)return}}for(let a=0;a<r.children.length;a++){let h=r.children[a];h instanceof Y&&s(h,r.positions[a]+o)}};return s(ge(e),0),i}get allowsNesting(){return!0}}Ve.setState=I.define();function Hl(n,e,t){let i=n.facet(vt),s=ge(n).topNode;if(!i||i.allowsNesting)for(let r=s;r;r=r.enter(e,t,Q.ExcludeBuffers|Q.EnterBracketed))r.type.isTop&&(s=r);return s}function ge(n){let e=n.field(Ve.state,!1);return e?e.tree:Y.empty}class dm{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let pi=null;class ni{constructor(e,t,i=[],s,r,o,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=s,this.treeLen=r,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new ni(e,t,[],Y.empty,0,i,[],null)}startParse(){return this.parser.startParse(new dm(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Y.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped(Et.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Et.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=pi;pi=this;try{return e()}finally{pi=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Vl(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:s,treeLen:r,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((h,c,f,u)=>a.push({fromA:h,toA:c,fromB:f,toB:u})),i=Et.applyChanges(i,a),s=Y.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),f=e.mapPos(h.to,-1);c<f&&l.push({from:c,to:f})}}}return new ni(this.parser,t,i,s,r,o,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:s,to:r}=this.skipped[i];s<e.to&&r>e.from&&(this.fragments=Vl(this.fragments,s,r),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends ec{createParse(t,i,s){let r=s[0].from,o=s[s.length-1].to;return{parsedPos:r,advance(){let a=pi;if(a){for(let h of s)a.tempSkipped.push(h);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new Y(Te.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return pi}}function Vl(n,e,t){return Et.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class si{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new si(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=ni.create(e.facet(vt).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new si(i)}}Ve.state=ue.define({create:si.init,update(n,e){for(let t of e.effects)if(t.is(Ve.setState))return t.value;return e.startState.facet(vt)!=e.state.facet(vt)?si.init(e.state):n.apply(e)}});let nc=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(nc=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Ws=typeof navigator<"u"&&(!((Ns=navigator.scheduling)===null||Ns===void 0)&&Ns.isInputPending)?()=>navigator.scheduling.isInputPending():null,pm=Z.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ve.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ve.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=nc(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:s}}=this.view,r=i.field(Ve.state);if(r.tree==r.context.tree&&r.context.isDone(s+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Ws?Math.max(25,e.timeRemaining()-5):1e9),l=r.context.treeLen<s&&i.doc.length>s+1e3,a=r.context.work(()=>Ws&&Ws()||Date.now()>o,s+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ve.setState.of(new si(r.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Ae(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),vt=O.define({combine(n){return n.length?n[0]:null},enables:n=>[Ve.state,pm,M.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]}),mm=O.define(),cs=O.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Wt(n){let e=n.facet(cs);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Vi(n,e){let t="",i=n.tabSize,s=n.facet(cs)[0];if(s==" "){for(;e>=i;)t+=" ",e-=i;s=" "}for(let r=0;r<e;r++)t+=s;return t}function go(n,e){n instanceof z&&(n=new fs(n));for(let i of n.state.facet(mm)){let s=i(n,e);if(s!==void 0)return s}let t=ge(n.state);return t.length>=e?gm(n,t,e):null}class fs{constructor(e,t={}){this.state=e,this.options=t,this.unit=Wt(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=i.from&&s<=i.to?r&&s==e?{text:"",from:e}:(t<0?s<e:s<=e)?{text:i.text.slice(s-i.from),from:s}:{text:i.text.slice(0,s-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:s}=this.lineAt(e,t);return i.slice(e-s,Math.min(i.length,e+100-s))}column(e,t=1){let{text:i,from:s}=this.lineAt(e,t),r=this.countColumn(i,e-s),o=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return o>-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return li(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let o=r(s);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const sc=new V;function gm(n,e,t){let i=e.resolveStack(t),s=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(s!=i.node){let r=[];for(let o=s;o&&!(o.from<i.node.from||o.to>i.node.to||o.from==i.node.from&&o.type==i.node.type);o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i}}return rc(i,n,t)}function rc(n,e,t){for(let i=n;i;i=i.next){let s=bm(i.node);if(s)return s(yo.create(e,t,i))}return 0}function ym(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function bm(n){let e=n.type.prop(sc);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(V.closedBy))){let s=n.lastChild,r=s&&i.indexOf(s.name)>-1;return o=>km(o,!0,1,void 0,r&&!ym(o)?s.from:void 0)}return n.parent==null?xm:null}function xm(){return 0}class yo extends fs{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new yo(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(wm(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return rc(this.context.next,this.base,this.pos)}}function wm(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function vm(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let s=n.options.simulateBreak,r=n.state.doc.lineAt(t.from),o=s==null||s<=r.from?r.to:Math.min(r.to,s);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let h=/^ */.exec(r.text.slice(t.to-r.from))[0].length;return{from:t.from,to:t.to+h}}l=a.to}}function km(n,e,t,i,s){let r=n.textAfter,o=r.match(/^\s*/)[0].length,l=i&&r.slice(o,o+i.length)==i||s==n.pos+o,a=vm(n);return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const Sm=200;function Cm(){return z.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:i}=n.newSelection.main,s=t.lineAt(i);if(i>s.from+Sm)return n;let r=t.sliceString(s.from,i);if(!e.some(h=>h.test(r)))return n;let{state:o}=n,l=-1,a=[];for(let{head:h}of o.selection.ranges){let c=o.doc.lineAt(h);if(c.from==l)continue;l=c.from;let f=go(o,c.from);if(f==null)continue;let u=/^\s*/.exec(c.text)[0],d=Vi(o,f);u!=d&&a.push({from:c.from,to:c.from+u.length,insert:d})}return a.length?[n,{changes:a,sequential:!0}]:n})}const Am=O.define(),Mm=new V;function Tm(n,e,t){let i=ge(n);if(i.length<t)return null;let s=i.resolveStack(t,1),r=null;for(let o=s;o;o=o.next){let l=o.node;if(l.to<=t||l.from>t)continue;if(r&&l.from<e)break;let a=l.type.prop(Mm);if(a&&(l.to<i.length-50||i.length==n.doc.length||!Dm(l))){let h=a(l,n);h&&h.from<=t&&h.from>=e&&h.to>t&&(r=h)}}return r}function Dm(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function jn(n,e,t){for(let i of n.facet(Am)){let s=i(n,e,t);if(s)return s}return Tm(n,e,t)}function oc(n,e){let t=e.mapPos(n.from,1),i=e.mapPos(n.to,-1);return t>=i?void 0:{from:t,to:i}}const us=I.define({map:oc}),Xi=I.define({map:oc});function lc(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(i=>i.from<=t&&i.to>=t)||e.push(n.lineBlockAt(t));return e}const Ft=ue.define({create(){return E.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,i)=>n=zl(n,t,i)),n=n.map(e.changes);for(let t of e.effects)if(t.is(us)&&!Om(n,t.value.from,t.value.to)){let{preparePlaceholder:i}=e.state.facet(cc),s=i?E.replace({widget:new Nm(i(e.state,t.value))}):ql;n=n.update({add:[s.range(t.value.from,t.value.to)]})}else t.is(Xi)&&(n=n.update({filter:(i,s)=>t.value.from!=i||t.value.to!=s,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(n=zl(n,e.selection.main.head)),n},provide:n=>M.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(i,s)=>{t.push(i,s)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let i=n[t++],s=n[t++];if(typeof i!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");e.push(ql.range(i,s))}return E.set(e,!0)}});function zl(n,e,t=e){let i=!1;return n.between(e,t,(s,r)=>{s<t&&r>e&&(i=!0)}),i?n.update({filterFrom:e,filterTo:t,filter:(s,r)=>s>=t||r<=e}):n}function _n(n,e,t){var i;let s=null;return(i=n.field(Ft,!1))===null||i===void 0||i.between(e,t,(r,o)=>{(!s||s.from>r)&&(s={from:r,to:o})}),s}function Om(n,e,t){let i=!1;return n.between(e,e,(s,r)=>{s==e&&r==t&&(i=!0)}),i}function ac(n,e){return n.field(Ft,!1)?e:e.concat(I.appendConfig.of(fc()))}const Bm=n=>{for(let e of lc(n)){let t=jn(n.state,e.from,e.to);if(t)return n.dispatch({effects:ac(n.state,[us.of(t),hc(n,t)])}),!0}return!1},Lm=n=>{if(!n.state.field(Ft,!1))return!1;let e=[];for(let t of lc(n)){let i=_n(n.state,t.from,t.to);i&&e.push(Xi.of(i),hc(n,i,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function hc(n,e,t=!0){let i=n.state.doc.lineAt(e.from).number,s=n.state.doc.lineAt(e.to).number;return M.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`)}const Em=n=>{let{state:e}=n,t=[];for(let i=0;i<e.doc.length;){let s=n.lineBlockAt(i),r=jn(e,s.from,s.to);r&&t.push(us.of(r)),i=(r?n.lineBlockAt(r.to):s).to+1}return t.length&&n.dispatch({effects:ac(n.state,t)}),!!t.length},Rm=n=>{let e=n.state.field(Ft,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(i,s)=>{t.push(Xi.of({from:i,to:s}))}),n.dispatch({effects:t}),!0},Pm=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Bm},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Lm},{key:"Ctrl-Alt-[",run:Em},{key:"Ctrl-Alt-]",run:Rm}],Im={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},cc=O.define({combine(n){return nt(n,Im)}});function fc(n){return[Ft,Hm]}function uc(n,e){let{state:t}=n,i=t.facet(cc),s=o=>{let l=n.lineBlockAt(n.posAtDOM(o.target)),a=_n(n.state,l.from,l.to);a&&n.dispatch({effects:Xi.of(a)}),o.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,e);let r=document.createElement("span");return r.textContent=i.placeholderText,r.setAttribute("aria-label",t.phrase("folded code")),r.title=t.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=s,r}const ql=E.replace({widget:new class extends st{toDOM(n){return uc(n,null)}}});class Nm extends st{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return uc(e,this.value)}}const Wm={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Fs extends ht{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Fm(n={}){let e={...Wm,...n},t=new Fs(e,!0),i=new Fs(e,!1),s=Z.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(vt)!=o.state.facet(vt)||o.startState.field(Ft,!1)!=o.state.field(Ft,!1)||ge(o.startState)!=ge(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new lt;for(let a of o.viewportLineBlocks){let h=_n(o.state,a.from,a.to)?i:jn(o.state,a.from,a.to)?t:null;h&&l.add(a.from,a.from,h)}return l.finish()}}),{domEventHandlers:r}=e;return[s,Wp({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(s))===null||l===void 0?void 0:l.markers)||F.empty},initialSpacer(){return new Fs(e,!1)},domEventHandlers:{...r,click:(o,l,a)=>{if(r.click&&r.click(o,l,a))return!0;let h=_n(o.state,l.from,l.to);if(h)return o.dispatch({effects:Xi.of(h)}),!0;let c=jn(o.state,l.from,l.to);return c?(o.dispatch({effects:us.of(c)}),!0):!1}}}),fc()]}const Hm=M.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ai{constructor(e,t){this.specs=e;let i;function s(l){let a=yt.newName();return(i||(i=Object.create(null)))["."+a]=l,a}const r=typeof t.all=="string"?t.all:t.all?s(t.all):void 0,o=t.scope;this.scope=o instanceof Ve?l=>l.prop(Ut)==o.data:o?l=>l==o:void 0,this.style=ic(e.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:r}).style,this.module=i?new yt(i):null,this.themeType=t.themeType}static define(e,t){return new ai(e,t||{})}}const Nr=O.define(),dc=O.define({combine(n){return n.length?[n[0]]:null}});function Hs(n){let e=n.facet(Nr);return e.length?e:n.facet(dc)}function bo(n,e){let t=[zm],i;return n instanceof ai&&(n.module&&t.push(M.styleModule.of(n.module)),i=n.themeType),e?.fallback?t.push(dc.of(n)):i?t.push(Nr.computeN([M.darkTheme],s=>s.facet(M.darkTheme)==(i=="dark")?[n]:[])):t.push(Nr.of(n)),t}class Vm{constructor(e){this.markCache=Object.create(null),this.tree=ge(e.state),this.decorations=this.buildDeco(e,Hs(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=ge(e.state),i=Hs(e.state),s=i!=Hs(e.startState),{viewport:r}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<r.to&&!s&&t.type==this.tree.type&&o>=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return E.none;let i=new lt;for(let{from:s,to:r}of e.visibleRanges)am(this.tree,t,(o,l,a)=>{i.add(o,l,this.markCache[a]||(this.markCache[a]=E.mark({class:a})))},s,r);return i.finish()}}const zm=Ht.high(Z.fromClass(Vm,{decorations:n=>n.decorations})),qm=ai.define([{tag:y.meta,color:"#404740"},{tag:y.link,textDecoration:"underline"},{tag:y.heading,textDecoration:"underline",fontWeight:"bold"},{tag:y.emphasis,fontStyle:"italic"},{tag:y.strong,fontWeight:"bold"},{tag:y.strikethrough,textDecoration:"line-through"},{tag:y.keyword,color:"#708"},{tag:[y.atom,y.bool,y.url,y.contentSeparator,y.labelName],color:"#219"},{tag:[y.literal,y.inserted],color:"#164"},{tag:[y.string,y.deleted],color:"#a11"},{tag:[y.regexp,y.escape,y.special(y.string)],color:"#e40"},{tag:y.definition(y.variableName),color:"#00f"},{tag:y.local(y.variableName),color:"#30a"},{tag:[y.typeName,y.namespace],color:"#085"},{tag:y.className,color:"#167"},{tag:[y.special(y.variableName),y.macroName],color:"#256"},{tag:y.definition(y.propertyName),color:"#00c"},{tag:y.comment,color:"#940"},{tag:y.invalid,color:"#f00"}]),$m=M.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),pc=1e4,mc="()[]{}",gc=O.define({combine(n){return nt(n,{afterCursor:!0,brackets:mc,maxScanDistance:pc,renderMatch:jm})}}),Km=E.mark({class:"cm-matchingBracket"}),Um=E.mark({class:"cm-nonmatchingBracket"});function jm(n){let e=[],t=n.matched?Km:Um;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const _m=ue.define({create(){return E.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],i=e.state.facet(gc);for(let s of e.state.selection.ranges){if(!s.empty)continue;let r=Ze(e.state,s.head,-1,i)||s.head>0&&Ze(e.state,s.head-1,1,i)||i.afterCursor&&(Ze(e.state,s.head,1,i)||s.head<e.state.doc.length&&Ze(e.state,s.head+1,-1,i));r&&(t=t.concat(i.renderMatch(r,e.state)))}return E.set(t,!0)},provide:n=>M.decorations.from(n)}),Gm=[_m,$m];function Jm(n={}){return[gc.of(n),Gm]}const Ym=new V;function Wr(n,e,t){let i=n.prop(e<0?V.openedBy:V.closedBy);if(i)return i;if(n.name.length==1){let s=t.indexOf(n.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function Fr(n){let e=n.type.prop(Ym);return e?e(n.node):n}function Ze(n,e,t,i={}){let s=i.maxScanDistance||pc,r=i.brackets||mc,o=ge(n),l=o.resolveInner(e,t);for(let a=l;a;a=a.parent){let h=Wr(a.type,t,r);if(h&&a.from<a.to){let c=Fr(a);if(c&&(t>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return Xm(n,e,t,a,c,h,r)}}return Qm(n,e,t,o,l.type,s,r)}function Xm(n,e,t,i,s,r,o){let l=i.parent,a={from:s.from,to:s.to},h=0,c=l?.cursor();if(c&&(t<0?c.childBefore(i.from):c.childAfter(i.to)))do if(t<0?c.to<=i.from:c.from>=i.to){if(h==0&&r.indexOf(c.type.name)>-1&&c.from<c.to){let f=Fr(c);return{start:a,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(Wr(c.type,t,o))h++;else if(Wr(c.type,-t,o)){if(h==0){let f=Fr(c);return{start:a,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}h--}}while(t<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}function Qm(n,e,t,i,s,r,o){let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=o.indexOf(l);if(a<0||a%2==0!=t>0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=n.doc.iterRange(e,t>0?n.doc.length:0),f=0;for(let u=0;!c.next().done&&u<=r;){let d=c.value;t<0&&(u+=d.length);let p=e+u*t;for(let m=t>0?0:d.length-1,g=t>0?d.length:-1;m!=g;m+=t){let b=o.indexOf(d[m]);if(!(b<0||i.resolveInner(p+m,1).type!=s))if(b%2==0==t>0)f++;else{if(f==1)return{start:h,end:{from:p+m,to:p+m+1},matched:b>>1==a>>1};f--}}t>0&&(u+=d.length)}return c.done?{start:h,matched:!1}:null}function $l(n,e,t,i=0,s=0){e==null&&(e=n.search(/[^\s\u00a0]/),e==-1&&(e=n.length));let r=s;for(let o=i;o<e;o++)n.charCodeAt(o)==9?r+=t-r%t:r++;return r}class yc{constructor(e,t,i,s){this.string=e,this.tabSize=t,this.indentUnit=i,this.overrideIndent=s,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e instanceof RegExp?e.test(t):e(t)),i)return++this.pos,t}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$l(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return(e=this.overrideIndent)!==null&&e!==void 0?e:$l(this.string,null,this.tabSize)}match(e,t,i){if(typeof e=="string"){let s=o=>i?o.toLowerCase():o,r=this.string.substr(this.pos,e.length);return s(r)==s(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}}function Zm(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||eg,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||vo,mergeTokens:n.mergeTokens!==!1}}function eg(n){if(typeof n!="object")return n;let e={};for(let t in n){let i=n[t];e[t]=i instanceof Array?i.slice():i}return e}const Kl=new WeakMap;class xo extends Ve{constructor(e){let t=fm(e.languageData),i=Zm(e),s,r=new class extends ec{createParse(o,l,a){return new ig(s,o,l,a)}};super(t,r,[],e.name),this.topNode=rg(t,this),s=this,this.streamParser=i,this.stateAfter=new V({perNode:!0}),this.tokenTable=e.tokenTable?new vc(i.tokenTable):sg}static define(e){return new xo(e)}getIndent(e){let t,{overrideIndentation:i}=e.options;i&&(t=Kl.get(e.state),t!=null&&t<e.pos-1e4&&(t=void 0));let s=wo(this,e.node.tree,e.node.from,e.node.from,t??e.pos),r,o;if(s?(o=s.state,r=s.pos+1):(o=this.streamParser.startState(e.unit),r=e.node.from),e.pos-r>1e4)return null;for(;r<e.pos;){let a=e.state.doc.lineAt(r),h=Math.min(e.pos,a.to);if(a.length){let c=i?i(a.from):-1,f=new yc(a.text,e.state.tabSize,e.unit,c<0?void 0:c);for(;f.pos<h-a.from;)xc(this.streamParser.token,f,o)}else this.streamParser.blankLine(o,e.unit);if(h==e.pos)break;r=a.to+1}let l=e.lineAt(e.pos);return i&&t==null&&Kl.set(e.state,l.from),this.streamParser.indent(o,/^\s*(.*)/.exec(l.text)[1],e)}get allowsNesting(){return!1}}function wo(n,e,t,i,s){let r=t>=i&&t+e.length<=s&&e.prop(n.stateAfter);if(r)return{state:n.streamParser.copyState(r),pos:t+e.length};for(let o=e.children.length-1;o>=0;o--){let l=e.children[o],a=t+e.positions[o],h=l instanceof Y&&a<s&&wo(n,l,a,i,s);if(h)return h}return null}function bc(n,e,t,i,s){if(s&&t<=0&&i>=e.length)return e;!s&&t==0&&e.type==n.topNode&&(s=!0);for(let r=e.children.length-1;r>=0;r--){let o=e.positions[r],l=e.children[r],a;if(o<i&&l instanceof Y){if(!(a=bc(n,l,t-o,i-o,s)))break;return s?new Y(e.type,e.children.slice(0,r).concat(a),e.positions.slice(0,r+1),o+a.length):a}}return null}function tg(n,e,t,i,s){for(let r of e){let o=r.from+(r.openStart?25:0),l=r.to-(r.openEnd?25:0),a=o<=t&&l>t&&wo(n,r.tree,0-r.offset,t,l),h;if(a&&a.pos<=i&&(h=bc(n,r.tree,t+r.offset,a.pos+r.offset,!1)))return{state:a.state,tree:h}}return{state:n.streamParser.startState(s?Wt(s):4),tree:Y.empty}}class ig{constructor(e,t,i,s){this.lang=e,this.input=t,this.fragments=i,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let r=ni.get(),o=s[0].from,{state:l,tree:a}=tg(e,i,o,this.to,r?.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let h=0;h<a.children.length;h++)this.chunks.push(a.children[h]),this.chunkPos.push(a.positions[h]);r&&this.parsedPos<r.viewport.from-1e5&&s.some(h=>h.from<=r.viewport.from&&h.to>=r.viewport.from)&&(this.state=this.lang.streamParser.startState(Wt(r.state)),r.skipUntilInView(this.parsedPos,r.viewport.from),this.parsedPos=r.viewport.from),this.moveRangeIndex()}advance(){let e=ni.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),i=Math.min(t,this.chunkStart+512);for(e&&(i=Math.min(i,e.viewport.to));this.parsedPos<i;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==`
13+`&&(t="");else{let i=t.indexOf(`
14+`);i>-1&&(t=t.slice(0,i))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),i=e+t.length;for(let s=this.rangeIndex;;){let r=this.ranges[s].to;if(r>=i||(t=t.slice(0,r-(i-t.length)),s++,s==this.ranges.length))break;let o=this.ranges[s].from,l=this.lineAfter(o);t+=l,i=o+l.length}return{line:t,end:i}}skipGapsTo(e,t,i){for(;;){let s=this.ranges[this.rangeIndex].to,r=e+t;if(i>0?s>r:s>=r)break;let o=this.ranges[++this.rangeIndex].from;t+=o-s}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,i,s){let r=4;if(this.ranges.length>1){s=this.skipGapsTo(t,s,1),t+=s;let l=this.chunk.length;s=this.skipGapsTo(i,s,-1),i+=s,r+=this.chunk.length-l}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&r==4&&o>=0&&this.chunk[o]==e&&this.chunk[o+2]==t?this.chunk[o+2]=i:this.chunk.push(e,t,i,r),s}parseLine(e){let{line:t,end:i}=this.nextLine(),s=0,{streamParser:r}=this.lang,o=new yc(t,e?e.state.tabSize:4,e?Wt(e.state):2);if(o.eol())r.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=xc(r.token,o,this.state);if(l&&(s=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,s)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=Y.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:ng,topID:0,maxBufferLength:512,reused:this.chunkReused});e=new Y(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new Y(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function xc(n,e,t){e.start=e.pos;for(let i=0;i<10;i++){let s=n(e,t);if(e.pos>e.start)return s}throw new Error("Stream parser failed to advance stream.")}const vo=Object.create(null),zi=[Te.none],ng=new fo(zi),Ul=[],jl=Object.create(null),wc=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])wc[n]=kc(vo,e);class vc{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),wc)}resolve(e){return e?this.table[e]||(this.table[e]=kc(this.extra,e)):0}}const sg=new vc(vo);function Vs(n,e){Ul.indexOf(n)>-1||(Ul.push(n),console.warn(e))}function kc(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let h of l.split(".")){let c=n[h]||y[h];c?typeof c=="function"?a.length?a=a.map(c):Vs(h,`Modifier ${h} used at start of tag`):a.length?Vs(h,`Tag ${h} used as modifier`):a=Array.isArray(c)?c:[c]:Vs(h,`Unknown highlighting tag ${h}`)}for(let h of a)t.push(h)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+t.map(l=>l.id),r=jl[s];if(r)return r.id;let o=jl[s]=Te.define({id:zi.length,name:i,props:[om({[i]:t})]});return zi.push(o),o.id}function rg(n,e){let t=Te.define({id:zi.length,name:"Document",props:[Ut.add(()=>n),sc.add(()=>i=>e.getIndent(i))],top:!0});return zi.push(t),t}_.RTL,_.LTR;const og=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=So(n.state,t.from);return i.line?lg(n):i.block?hg(n):!1};function ko(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let s=n(e,t);return s?(i(t.update(s)),!0):!1}}const lg=ko(ug,0),ag=ko(Sc,0),hg=ko((n,e)=>Sc(n,e,fg(e)),0);function So(n,e){let t=n.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const mi=50;function cg(n,{open:e,close:t},i,s){let r=n.sliceDoc(i-mi,i),o=n.sliceDoc(s,s+mi),l=/\s*$/.exec(r)[0].length,a=/^\s*/.exec(o)[0].length,h=r.length-l;if(r.slice(h-e.length,h)==e&&o.slice(a,a+t.length)==t)return{open:{pos:i-l,margin:l&&1},close:{pos:s+a,margin:a&&1}};let c,f;s-i<=2*mi?c=f=n.sliceDoc(i,s):(c=n.sliceDoc(i,i+mi),f=n.sliceDoc(s-mi,s));let u=/^\s*/.exec(c)[0].length,d=/\s*$/.exec(f)[0].length,p=f.length-d-t.length;return c.slice(u,u+e.length)==e&&f.slice(p,p+t.length)==t?{open:{pos:i+u+e.length,margin:/\s/.test(c.charAt(u+e.length))?1:0},close:{pos:s-d-t.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function fg(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),s=t.to<=i.to?i:n.doc.lineAt(t.to);s.from>i.from&&s.from==t.to&&(s=t.to==i.to+1?i:n.doc.lineAt(t.to-1));let r=e.length-1;r>=0&&e[r].to>i.from?e[r].to=s.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return e}function Sc(n,e,t=e.selection.ranges){let i=t.map(r=>So(e,r.from).block);if(!i.every(r=>r))return null;let s=t.map((r,o)=>cg(e,i[o],r.from,r.to));if(n!=2&&!s.every(r=>r))return{changes:e.changes(t.map((r,o)=>s[o]?[]:[{from:r.from,insert:i[o].open+" "},{from:r.to,insert:" "+i[o].close}]))};if(n!=1&&s.some(r=>r)){let r=[];for(let o=0,l;o<s.length;o++)if(l=s[o]){let a=i[o],{open:h,close:c}=l;r.push({from:h.pos-a.open.length,to:h.pos+h.margin},{from:c.pos-c.margin,to:c.pos+a.close.length})}return{changes:r}}return null}function ug(n,e,t=e.selection.ranges){let i=[],s=-1;e:for(let{from:r,to:o}of t){let l=i.length,a=1e9,h;for(let c=r;c<=o;){let f=e.doc.lineAt(c);if(h==null&&(h=So(e,f.from).line,!h))continue e;if(f.from>s&&(r==o||o>f.from)){s=f.from;let u=/^\s*/.exec(f.text)[0].length,d=u==f.length,p=f.text.slice(u,u+h.length)==h?u:-1;u<f.text.length&&u<a&&(a=u),i.push({line:f,comment:p,token:h,indent:u,empty:d,single:!1})}c=f.to+1}if(a<1e9)for(let c=l;c<i.length;c++)i[c].indent<i[c].line.text.length&&(i[c].indent=a);i.length==l+1&&(i[l].single=!0)}if(n!=2&&i.some(r=>r.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:l,token:a,indent:h,empty:c,single:f}of i)(f||!c)&&r.push({from:l.from+h,insert:a+" "});let o=e.changes(r);return{changes:o,selection:e.selection.map(o,1)}}else if(n!=1&&i.some(r=>r.comment>=0)){let r=[];for(let{line:o,comment:l,token:a}of i)if(l>=0){let h=o.from+l,c=h+a.length;o.text[c-o.from]==" "&&c++,r.push({from:h,to:c})}return{changes:r}}return null}const Hr=it.define(),dg=it.define(),pg=O.define(),Cc=O.define({combine(n){return nt(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,s)=>e(i,s)||t(i,s)})}}),Ac=ue.define({create(){return et.empty},update(n,e){let t=e.state.facet(Cc),i=e.annotation(Hr);if(i){let a=Me.fromTransaction(e,i.selection),h=i.side,c=h==0?n.undone:n.done;return a?c=Gn(c,c.length,t.minDepth,a):c=Dc(c,e.startState.selection),new et(h==0?i.rest:c,h==0?c:i.rest)}let s=e.annotation(dg);if((s=="full"||s=="before")&&(n=n.isolate()),e.annotation(se.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let r=Me.fromTransaction(e),o=e.annotation(se.time),l=e.annotation(se.userEvent);return r?n=n.addChanges(r,o,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,o,l,t.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new et(n.done.map(Me.fromJSON),n.undone.map(Me.fromJSON))}});function mg(n={}){return[Ac,Cc.of(n),M.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?Mc:e.inputType=="historyRedo"?Vr:null;return i?(e.preventDefault(),i(t)):!1}})]}function ds(n,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let s=t.field(Ac,!1);if(!s)return!1;let r=s.pop(n,t,e);return r?(i(r),!0):!1}}const Mc=ds(0,!1),Vr=ds(1,!1),gg=ds(0,!0),yg=ds(1,!0);class Me{constructor(e,t,i,s,r){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=s,this.selectionsAfter=r}setSelAfter(e){return new Me(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(e){return new Me(e.changes&&ne.fromJSON(e.changes),[],e.mapped&&tt.fromJSON(e.mapped),e.startSelection&&x.fromJSON(e.startSelection),e.selectionsAfter.map(x.fromJSON))}static fromTransaction(e,t){let i=Re;for(let s of e.startState.facet(pg)){let r=s(e);r.length&&(i=i.concat(r))}return!i.length&&e.changes.empty?null:new Me(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,Re)}static selection(e){return new Me(void 0,Re,void 0,void 0,e)}}function Gn(n,e,t,i){let s=e+1>t+20?e-t-1:0,r=n.slice(s,e);return r.push(i),r}function bg(n,e){let t=[],i=!1;return n.iterChangedRanges((s,r)=>t.push(s,r)),e.iterChangedRanges((s,r,o,l)=>{for(let a=0;a<t.length;){let h=t[a++],c=t[a++];l>=h&&o<=c&&(i=!0)}}),i}function xg(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function Tc(n,e){return n.length?e.length?n.concat(e):n:e}const Re=[],wg=200;function Dc(n,e){if(n.length){let t=n[n.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-wg));return i.length&&i[i.length-1].eq(e)?n:(i.push(e),Gn(n,n.length-1,1e9,t.setSelAfter(i)))}else return[Me.selection([e])]}function vg(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function zs(n,e){if(!n.length)return n;let t=n.length,i=Re;for(;t;){let s=kg(n[t-1],e,i);if(s.changes&&!s.changes.empty||s.effects.length){let r=n.slice(0,t);return r[t-1]=s,r}else e=s.mapped,t--,i=s.selectionsAfter}return i.length?[Me.selection(i)]:Re}function kg(n,e,t){let i=Tc(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):Re,t);if(!n.changes)return Me.selection(i);let s=n.changes.map(e),r=e.mapDesc(n.changes,!0),o=n.mapped?n.mapped.composeDesc(r):r;return new Me(s,I.mapEffects(n.effects,e),o,n.startSelection.map(r),i)}const Sg=/^(input\.type|delete)($|\.)/;class et{constructor(e,t,i=0,s=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new et(this.done,this.undone):this}addChanges(e,t,i,s,r){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||Sg.test(i))&&(!l.selectionsAfter.length&&t-this.prevTime<s.newGroupDelay&&s.joinToEvent(r,bg(l.changes,e.changes))||i=="input.type.compose")?o=Gn(o,o.length-1,s.minDepth,new Me(e.changes.compose(l.changes),Tc(I.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,Re)):o=Gn(o,o.length,s.minDepth,e),new et(o,Re,t,i)}addSelection(e,t,i,s){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:Re;return r.length>0&&t-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&xg(r[r.length-1],e)?this:new et(Dc(this.done,e),this.undone,t,i)}addMapping(e){return new et(zs(this.done,e),zs(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let s=e==0?this.done:this.undone;if(s.length==0)return null;let r=s[s.length-1],o=r.selectionsAfter[0]||(r.startSelection?r.startSelection.map(r.changes.invertedDesc,1):t.selection);if(i&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:Hr.of({side:e,rest:vg(s),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let l=s.length==1?Re:s.slice(0,s.length-1);return r.mapped&&(l=zs(l,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:Hr.of({side:e,rest:l,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}et.empty=new et(Re,Re);const Cg=[{key:"Mod-z",run:Mc,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Vr,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Vr,preventDefault:!0},{key:"Mod-u",run:gg,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:yg,preventDefault:!0}];function hi(n,e){return x.create(n.ranges.map(e),n.mainIndex)}function qe(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function $e({state:n,dispatch:e},t){let i=hi(n.selection,t);return i.eq(n.selection,!0)?!1:(e(qe(n,i)),!0)}function ps(n,e){return x.cursor(e?n.to:n.from)}function Oc(n,e){return $e(n,t=>t.empty?n.moveByChar(t,e):ps(t,e))}function ye(n){return n.textDirectionAt(n.state.selection.main.head)==_.LTR}const Bc=n=>Oc(n,!ye(n)),Lc=n=>Oc(n,ye(n));function Ec(n,e){return $e(n,t=>t.empty?n.moveByGroup(t,e):ps(t,e))}const Ag=n=>Ec(n,!ye(n)),Mg=n=>Ec(n,ye(n));function Tg(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function ms(n,e,t){let i=ge(n).resolveInner(e.head),s=t?V.closedBy:V.openedBy;for(let a=e.head;;){let h=t?i.childAfter(a):i.childBefore(a);if(!h)break;Tg(n,h,s)?i=h:a=t?h.to:h.from}let r=i.type.prop(s),o,l;return r&&(o=t?Ze(n,i.from,1):Ze(n,i.to,-1))&&o.matched?l=t?o.end.to:o.end.from:l=t?i.to:i.from,x.cursor(l,t?-1:1)}const Dg=n=>$e(n,e=>ms(n.state,e,!ye(n))),Og=n=>$e(n,e=>ms(n.state,e,ye(n)));function Rc(n,e){return $e(n,t=>{if(!t.empty)return ps(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const Pc=n=>Rc(n,!1),Ic=n=>Rc(n,!0);function Nc(n){let e=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,t=0,i=0,s;if(e){for(let r of n.state.facet(M.scrollMargins)){let o=r(n);o?.top&&(t=Math.max(o?.top,t)),o?.bottom&&(i=Math.max(o?.bottom,i))}s=n.scrollDOM.clientHeight-t-i}else s=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:i,selfScroll:e,height:Math.max(n.defaultLineHeight,s-5)}}function Wc(n,e){let t=Nc(n),{state:i}=n,s=hi(i.selection,o=>o.empty?n.moveVertically(o,e,t.height):ps(o,e));if(s.eq(i.selection))return!1;let r;if(t.selfScroll){let o=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,h=l.bottom-t.marginBottom;o&&o.top>a&&o.bottom<h&&(r=M.scrollIntoView(s.main.head,{y:"start",yMargin:o.top-a}))}return n.dispatch(qe(i,s),{effects:r}),!0}const _l=n=>Wc(n,!1),zr=n=>Wc(n,!0);function St(n,e,t){let i=n.lineBlockAt(e.head),s=n.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?i.to:i.from)&&(s=n.moveToLineBoundary(e,t,!1)),!t&&s.head==i.from&&i.length){let r=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&e.head!=i.from+r&&(s=x.cursor(i.from+r))}return s}const Bg=n=>$e(n,e=>St(n,e,!0)),Lg=n=>$e(n,e=>St(n,e,!1)),Eg=n=>$e(n,e=>St(n,e,!ye(n))),Rg=n=>$e(n,e=>St(n,e,ye(n))),Pg=n=>$e(n,e=>x.cursor(n.lineBlockAt(e.head).from,1)),Ig=n=>$e(n,e=>x.cursor(n.lineBlockAt(e.head).to,-1));function Ng(n,e,t){let i=!1,s=hi(n.selection,r=>{let o=Ze(n,r.head,-1)||Ze(n,r.head,1)||r.head>0&&Ze(n,r.head-1,1)||r.head<n.doc.length&&Ze(n,r.head+1,-1);if(!o||!o.end)return r;i=!0;let l=o.start.from==r.head?o.end.to:o.end.from;return x.cursor(l)});return i?(e(qe(n,s)),!0):!1}const Wg=({state:n,dispatch:e})=>Ng(n,e);function We(n,e){let t=hi(n.state.selection,i=>{let s=e(i);return x.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(qe(n.state,t)),!0)}function Fc(n,e){return We(n,t=>n.moveByChar(t,e))}const Hc=n=>Fc(n,!ye(n)),Vc=n=>Fc(n,ye(n));function zc(n,e){return We(n,t=>n.moveByGroup(t,e))}const Fg=n=>zc(n,!ye(n)),Hg=n=>zc(n,ye(n)),Vg=n=>We(n,e=>ms(n.state,e,!ye(n))),zg=n=>We(n,e=>ms(n.state,e,ye(n)));function qc(n,e){return We(n,t=>n.moveVertically(t,e))}const $c=n=>qc(n,!1),Kc=n=>qc(n,!0);function Uc(n,e){return We(n,t=>n.moveVertically(t,e,Nc(n).height))}const Gl=n=>Uc(n,!1),Jl=n=>Uc(n,!0),qg=n=>We(n,e=>St(n,e,!0)),$g=n=>We(n,e=>St(n,e,!1)),Kg=n=>We(n,e=>St(n,e,!ye(n))),Ug=n=>We(n,e=>St(n,e,ye(n))),jg=n=>We(n,e=>x.cursor(n.lineBlockAt(e.head).from)),_g=n=>We(n,e=>x.cursor(n.lineBlockAt(e.head).to)),Yl=({state:n,dispatch:e})=>(e(qe(n,{anchor:0})),!0),Xl=({state:n,dispatch:e})=>(e(qe(n,{anchor:n.doc.length})),!0),Ql=({state:n,dispatch:e})=>(e(qe(n,{anchor:n.selection.main.anchor,head:0})),!0),Zl=({state:n,dispatch:e})=>(e(qe(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),Gg=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),Jg=({state:n,dispatch:e})=>{let t=gs(n).map(({from:i,to:s})=>x.range(i,Math.min(s+1,n.doc.length)));return e(n.update({selection:x.create(t),userEvent:"select"})),!0},Yg=({state:n,dispatch:e})=>{let t=hi(n.selection,i=>{let s=ge(n),r=s.resolveStack(i.from,1);if(i.empty){let o=s.resolveStack(i.from,-1);o.node.from>=r.node.from&&o.node.to<=r.node.to&&(r=o)}for(let o=r;o;o=o.next){let{node:l}=o;if((l.from<i.from&&l.to>=i.to||l.to>i.to&&l.from<=i.from)&&o.next)return x.range(l.to,l.from)}return i});return t.eq(n.selection)?!1:(e(qe(n,t)),!0)};function jc(n,e){let{state:t}=n,i=t.selection,s=t.selection.ranges.slice();for(let r of t.selection.ranges){let o=t.doc.lineAt(r.head);if(e?o.to<n.state.doc.length:o.from>0)for(let l=r;;){let a=n.moveVertically(l,e);if(a.head<o.from||a.head>o.to){s.some(h=>h.head==a.head)||s.push(a);break}else{if(a.head==l.head)break;l=a}}}return s.length==i.ranges.length?!1:(n.dispatch(qe(t,x.create(s,s.length-1))),!0)}const Xg=n=>jc(n,!1),Qg=n=>jc(n,!0),Zg=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=x.create([t.main]):t.main.empty||(i=x.create([x.cursor(t.main.head)])),i?(e(qe(n,i)),!0):!1};function Qi(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,s=i.changeByRange(r=>{let{from:o,to:l}=r;if(o==l){let a=e(r);a<o?(t="delete.backward",a=wn(n,a,!1)):a>o&&(t="delete.forward",a=wn(n,a,!0)),o=Math.min(o,a),l=Math.max(l,a)}else o=wn(n,o,!1),l=wn(n,l,!0);return o==l?{range:r}:{changes:{from:o,to:l},range:x.cursor(o,o<r.head?-1:1)}});return s.changes.empty?!1:(n.dispatch(i.update(s,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?M.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function wn(n,e,t){if(n instanceof M)for(let i of n.state.facet(M.atomicRanges).map(s=>s(n)))i.between(e,e,(s,r)=>{s<e&&r>e&&(e=t?r:s)});return e}const _c=(n,e,t)=>Qi(n,i=>{let s=i.from,{state:r}=n,o=r.doc.lineAt(s),l,a;if(t&&!e&&s>o.from&&s<o.from+200&&!/[^ \t]/.test(l=o.text.slice(0,s-o.from))){if(l[l.length-1]==" ")return s-1;let h=li(l,r.tabSize),c=h%Wt(r)||Wt(r);for(let f=0;f<c&&l[l.length-1-f]==" ";f++)s--;a=s}else a=le(o.text,s-o.from,e,e)+o.from,a==s&&o.number!=(e?r.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(a-o.from,s-o.from))&&(a=le(o.text,a-o.from,!1,!1)+o.from);return a}),qr=n=>_c(n,!1,!0),Gc=n=>_c(n,!0,!1),Jc=(n,e)=>Qi(n,t=>{let i=t.head,{state:s}=n,r=s.doc.lineAt(i),o=s.charCategorizer(i);for(let l=null;;){if(i==(e?r.to:r.from)){i==t.head&&r.number!=(e?s.doc.lines:1)&&(i+=e?1:-1);break}let a=le(r.text,i-r.from,e)+r.from,h=r.text.slice(Math.min(i,a)-r.from,Math.max(i,a)-r.from),c=o(h);if(l!=null&&c!=l)break;(h!=" "||i!=t.head)&&(l=c),i=a}return i}),Yc=n=>Jc(n,!1),e0=n=>Jc(n,!0),t0=n=>Qi(n,e=>{let t=n.lineBlockAt(e.head).to;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),i0=n=>Qi(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),n0=n=>Qi(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),s0=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:q.of(["",""])},range:x.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},r0=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,r=n.doc.lineAt(s),o=s==r.from?s-1:le(r.text,s-r.from,!1)+r.from,l=s==r.to?s+1:le(r.text,s-r.from,!0)+r.from;return{changes:{from:o,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(o,s))},range:x.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function gs(n){let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),r=n.doc.lineAt(i.to);if(!i.empty&&i.to==r.from&&(r=n.doc.lineAt(i.to-1)),t>=s.number){let o=e[e.length-1];o.to=r.to,o.ranges.push(i)}else e.push({from:s.from,to:r.to,ranges:[i]});t=r.number+1}return e}function Xc(n,e,t){if(n.readOnly)return!1;let i=[],s=[];for(let r of gs(n)){if(t?r.to==n.doc.length:r.from==0)continue;let o=n.doc.lineAt(t?r.to+1:r.from-1),l=o.length+1;if(t){i.push({from:r.to,to:o.to},{from:r.from,insert:o.text+n.lineBreak});for(let a of r.ranges)s.push(x.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{i.push({from:o.from,to:r.from},{from:r.to,insert:n.lineBreak+o.text});for(let a of r.ranges)s.push(x.range(a.anchor-l,a.head-l))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:x.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const o0=({state:n,dispatch:e})=>Xc(n,e,!1),l0=({state:n,dispatch:e})=>Xc(n,e,!0);function Qc(n,e,t){if(n.readOnly)return!1;let i=[];for(let r of gs(n))t?i.push({from:r.from,insert:n.doc.slice(r.from,r.to)+n.lineBreak}):i.push({from:r.to,insert:n.lineBreak+n.doc.slice(r.from,r.to)});let s=n.changes(i);return e(n.update({changes:s,selection:n.selection.map(s,t?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const a0=({state:n,dispatch:e})=>Qc(n,e,!1),h0=({state:n,dispatch:e})=>Qc(n,e,!0),c0=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(gs(e).map(({from:s,to:r})=>(s>0?s--:r<e.doc.length&&r++,{from:s,to:r}))),i=hi(e.selection,s=>{let r;if(n.lineWrapping){let o=n.lineBlockAt(s.head),l=n.coordsAtPos(s.head,s.assoc||1);l&&(r=o.bottom+n.documentTop-l.bottom+n.defaultLineHeight/2)}return n.moveVertically(s,!0,r)}).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function f0(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=ge(n).resolveInner(e),i=t.childBefore(e),s=t.childAfter(e),r;return i&&s&&i.to<=e&&s.from>=e&&(r=i.type.prop(V.closedBy))&&r.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const ea=Zc(!1),u0=Zc(!0);function Zc(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(s=>{let{from:r,to:o}=s,l=e.doc.lineAt(r),a=!n&&r==o&&f0(e,r);n&&(r=o=(o<=l.to?l:e.doc.lineAt(o)).to);let h=new fs(e,{simulateBreak:r,simulateDoubleBreak:!!a}),c=go(h,r);for(c==null&&(c=li(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));o<l.to&&/\s/.test(l.text[o-l.from]);)o++;a?{from:r,to:o}=a:r>l.from&&r<l.from+100&&!/\S/.test(l.text.slice(0,r))&&(r=l.from);let f=["",Vi(e,c)];return a&&f.push(Vi(e,h.lineIndent(l.from,-1))),{changes:{from:r,to:o,insert:q.of(f)},range:x.cursor(r+1+f[1].length)}});return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Co(n,e){let t=-1;return n.changeByRange(i=>{let s=[];for(let o=i.from;o<=i.to;){let l=n.doc.lineAt(o);l.number>t&&(i.empty||i.to>l.from)&&(e(l,s,i),t=l.number),o=l.to+1}let r=n.changes(s);return{changes:s,range:x.range(r.mapPos(i.anchor,1),r.mapPos(i.head,1))}})}const d0=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new fs(n,{overrideIndentation:r=>{let o=t[r];return o??-1}}),s=Co(n,(r,o,l)=>{let a=go(i,r.from);if(a==null)return;/\S/.test(r.text)||(a=0);let h=/^\s*/.exec(r.text)[0],c=Vi(n,a);(h!=c||l.from<r.from+h.length)&&(t[r.from]=a,o.push({from:r.from,to:r.from+h.length,insert:c}))});return s.changes.empty||e(n.update(s,{userEvent:"indent"})),!0},ef=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Co(n,(t,i)=>{i.push({from:t.from,insert:n.facet(cs)})}),{userEvent:"input.indent"})),!0),tf=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Co(n,(t,i)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let r=li(s,n.tabSize),o=0,l=Vi(n,Math.max(0,r-Wt(n)));for(;o<s.length&&o<l.length&&s.charCodeAt(o)==l.charCodeAt(o);)o++;i.push({from:t.from+o,to:t.from+s.length,insert:l.slice(o)})}),{userEvent:"delete.dedent"})),!0),p0=n=>(n.setTabFocusMode(),!0),m0=[{key:"Ctrl-b",run:Bc,shift:Hc,preventDefault:!0},{key:"Ctrl-f",run:Lc,shift:Vc},{key:"Ctrl-p",run:Pc,shift:$c},{key:"Ctrl-n",run:Ic,shift:Kc},{key:"Ctrl-a",run:Pg,shift:jg},{key:"Ctrl-e",run:Ig,shift:_g},{key:"Ctrl-d",run:Gc},{key:"Ctrl-h",run:qr},{key:"Ctrl-k",run:t0},{key:"Ctrl-Alt-h",run:Yc},{key:"Ctrl-o",run:s0},{key:"Ctrl-t",run:r0},{key:"Ctrl-v",run:zr}],g0=[{key:"ArrowLeft",run:Bc,shift:Hc,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Ag,shift:Fg,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Eg,shift:Kg,preventDefault:!0},{key:"ArrowRight",run:Lc,shift:Vc,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Mg,shift:Hg,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Rg,shift:Ug,preventDefault:!0},{key:"ArrowUp",run:Pc,shift:$c,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Yl,shift:Ql},{mac:"Ctrl-ArrowUp",run:_l,shift:Gl},{key:"ArrowDown",run:Ic,shift:Kc,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Xl,shift:Zl},{mac:"Ctrl-ArrowDown",run:zr,shift:Jl},{key:"PageUp",run:_l,shift:Gl},{key:"PageDown",run:zr,shift:Jl},{key:"Home",run:Lg,shift:$g,preventDefault:!0},{key:"Mod-Home",run:Yl,shift:Ql},{key:"End",run:Bg,shift:qg,preventDefault:!0},{key:"Mod-End",run:Xl,shift:Zl},{key:"Enter",run:ea,shift:ea},{key:"Mod-a",run:Gg},{key:"Backspace",run:qr,shift:qr,preventDefault:!0},{key:"Delete",run:Gc,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Yc,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e0,preventDefault:!0},{mac:"Mod-Backspace",run:i0,preventDefault:!0},{mac:"Mod-Delete",run:n0,preventDefault:!0}].concat(m0.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),y0=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Dg,shift:Vg},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Og,shift:zg},{key:"Alt-ArrowUp",run:o0},{key:"Shift-Alt-ArrowUp",run:a0},{key:"Alt-ArrowDown",run:l0},{key:"Shift-Alt-ArrowDown",run:h0},{key:"Mod-Alt-ArrowUp",run:Xg},{key:"Mod-Alt-ArrowDown",run:Qg},{key:"Escape",run:Zg},{key:"Mod-Enter",run:u0},{key:"Alt-l",mac:"Ctrl-l",run:Jg},{key:"Mod-i",run:Yg,preventDefault:!0},{key:"Mod-[",run:tf},{key:"Mod-]",run:ef},{key:"Mod-Alt-\\",run:d0},{key:"Shift-Mod-k",run:c0},{key:"Shift-Mod-\\",run:Wg},{key:"Mod-/",run:og},{key:"Alt-A",run:ag},{key:"Ctrl-m",mac:"Shift-Alt-m",run:p0}].concat(g0),b0={key:"Tab",run:ef,shift:tf},ta=typeof String.prototype.normalize=="function"?n=>n.normalize("NFKD"):n=>n;class ri{constructor(e,t,i=0,s=e.length,r,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,s),this.bufferStart=i,this.normalize=r?l=>r(ta(l)):ta,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ke(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=jr(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Ye(e);let s=this.normalize(t);if(s.length)for(let r=0,o=i;;r++){let l=s.charCodeAt(r),a=this.match(l,o,this.bufferPos+this.bufferStart);if(r==s.length-1){if(a)return this.value=a,this;break}o==i&&r<t.length&&t.charCodeAt(r)==l&&o++}}}match(e,t,i){let s=null;for(let r=0;r<this.matches.length;r+=2){let o=this.matches[r],l=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?s={from:this.matches[r+1],to:i}:(this.matches[r]++,l=!0)),l||(this.matches.splice(r,2),r-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:t,to:i}:this.matches.push(1,t)),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}typeof Symbol<"u"&&(ri.prototype[Symbol.iterator]=function(){return this});const nf={from:-1,to:-1,match:/.*/.exec("")},Ao="gm"+(/x/.unicode==null?"":"u");class sf{constructor(e,t,i,s=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=nf,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new rf(e,t,i,s,r);this.re=new RegExp(t,Ao+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=e.iter();let o=e.lineAt(s);this.curLineStart=o.from,this.matchPos=Jn(e,s),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,s=i+t[0].length;if(this.matchPos=Jn(this.text,s+(i==s?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<s||i>this.value.to)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const qs=new WeakMap;class Xt{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,i){let s=qs.get(e);if(!s||s.from>=i||s.to<=t){let l=new Xt(t,e.sliceString(t,i));return qs.set(e,l),l}if(s.from==t&&s.to==i)return s;let{text:r,from:o}=s;return o>t&&(r=e.sliceString(t,o)+r,o=t),s.to<i&&(r+=e.sliceString(s.to,i)),qs.set(e,new Xt(o,r)),new Xt(t,r.slice(t-o,i-o))}}class rf{constructor(e,t,i,s,r){this.text=e,this.to=r,this.done=!1,this.value=nf,this.matchPos=Jn(e,s),this.re=new RegExp(t,Ao+(i?.ignoreCase?"i":"")),this.test=i?.test,this.flat=Xt.get(e,s,this.chunkEnd(s+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let i=this.flat.from+t.index,s=i+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this.matchPos=Jn(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Xt.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(sf.prototype[Symbol.iterator]=rf.prototype[Symbol.iterator]=function(){return this});function x0(n){try{return new RegExp(n,Ao),!0}catch{return!1}}function Jn(n,e){if(e>=n.length)return e;let t=n.lineAt(e),i;for(;e<t.to&&(i=t.text.charCodeAt(e-t.from))>=56320&&i<57344;)e++;return e}const w0=n=>{let{state:e}=n,t=String(e.doc.lineAt(n.state.selection.main.head).number),{close:i,result:s}=Rp(n,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:t},focus:!0,submitLabel:e.phrase("go")});return s.then(r=>{let o=r&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(r.elements.line.value);if(!o){n.dispatch({effects:i});return}let l=e.doc.lineAt(e.selection.main.head),[,a,h,c,f]=o,u=c?+c.slice(1):0,d=h?+h:l.number;if(h&&f){let g=d/100;a&&(g=g*(a=="-"?-1:1)+l.number/e.doc.lines),d=Math.round(e.doc.lines*g)}else h&&a&&(d=d*(a=="-"?-1:1)+l.number);let p=e.doc.line(Math.max(1,Math.min(e.doc.lines,d))),m=x.cursor(p.from+Math.max(0,Math.min(u,p.length)));n.dispatch({effects:[i,M.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0},v0={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},k0=O.define({combine(n){return nt(n,v0,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function S0(n){return[D0,T0]}const C0=E.mark({class:"cm-selectionMatch"}),A0=E.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function ia(n,e,t,i){return(t==0||n(e.sliceDoc(t-1,t))!=J.Word)&&(i==e.doc.length||n(e.sliceDoc(i,i+1))!=J.Word)}function M0(n,e,t,i){return n(e.sliceDoc(t,t+1))==J.Word&&n(e.sliceDoc(i-1,i))==J.Word}const T0=Z.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=n.state.facet(k0),{state:t}=n,i=t.selection;if(i.ranges.length>1)return E.none;let s=i.main,r,o=null;if(s.empty){if(!e.highlightWordAroundCursor)return E.none;let a=t.wordAt(s.head);if(!a)return E.none;o=t.charCategorizer(s.head),r=t.sliceDoc(a.from,a.to)}else{let a=s.to-s.from;if(a<e.minSelectionLength||a>200)return E.none;if(e.wholeWords){if(r=t.sliceDoc(s.from,s.to),o=t.charCategorizer(s.head),!(ia(o,t,s.from,s.to)&&M0(o,t,s.from,s.to)))return E.none}else if(r=t.sliceDoc(s.from,s.to),!r)return E.none}let l=[];for(let a of n.visibleRanges){let h=new ri(t.doc,r,a.from,a.to);for(;!h.next().done;){let{from:c,to:f}=h.value;if((!o||ia(o,t,c,f))&&(s.empty&&c<=s.from&&f>=s.to?l.push(A0.range(c,f)):(c>=s.to||f<=s.from)&&l.push(C0.range(c,f)),l.length>e.maxMatches))return E.none}}return E.set(l)}},{decorations:n=>n.decorations}),D0=M.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),O0=({state:n,dispatch:e})=>{let{selection:t}=n,i=x.create(t.ranges.map(s=>n.wordAt(s.head)||x.cursor(s.head)),t.mainIndex);return i.eq(t)?!1:(e(n.update({selection:i})),!0)};function B0(n,e){let{main:t,ranges:i}=n.selection,s=n.wordAt(t.head),r=s&&s.from==t.from&&s.to==t.to;for(let o=!1,l=new ri(n.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new ri(n.doc,e,0,Math.max(0,i[i.length-1].from-1)),o=!0}else{if(o&&i.some(a=>a.from==l.value.from))continue;if(r){let a=n.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const L0=({state:n,dispatch:e})=>{let{ranges:t}=n.selection;if(t.some(r=>r.from===r.to))return O0({state:n,dispatch:e});let i=n.sliceDoc(t[0].from,t[0].to);if(n.selection.ranges.some(r=>n.sliceDoc(r.from,r.to)!=i))return!1;let s=B0(n,i);return s?(e(n.update({selection:n.selection.addRange(x.range(s.from,s.to),!1),effects:M.scrollIntoView(s.to)})),!0):!1},ci=O.define({combine(n){return nt(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new U0(e),scrollToMatch:e=>M.scrollIntoView(e)})}});class of{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||x0(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,i)=>i=="n"?`
15+`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new W0(this):new P0(this)}getCursor(e,t=0,i){let s=e.doc?e:z.create({doc:e});return i==null&&(i=s.doc.length),this.regexp?qt(this,s,t,i):zt(this,s,t,i)}}class lf{constructor(e){this.spec=e}}function E0(n,e,t){return(i,s,r,o)=>{if(t&&!t(i,s,r,o))return!1;let l=i>=o&&s<=o+r.length?r.slice(i-o,s-o):e.doc.sliceString(i,s);return n(l,e,i,s)}}function zt(n,e,t,i){let s;return n.wholeWord&&(s=R0(e.doc,e.charCategorizer(e.selection.main.head))),n.test&&(s=E0(n.test,e,s)),new ri(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),s)}function R0(n,e){return(t,i,s,r)=>((r>t||r+s.length<i)&&(r=Math.max(0,t-2),s=n.sliceString(r,Math.min(n.length,i+2))),(e(Yn(s,t-r))!=J.Word||e(Xn(s,t-r))!=J.Word)&&(e(Xn(s,i-r))!=J.Word||e(Yn(s,i-r))!=J.Word))}class P0 extends lf{constructor(e){super(e)}nextMatch(e,t,i){let s=zt(this.spec,e,i,e.doc.length).nextOverlapping();if(s.done){let r=Math.min(e.doc.length,t+this.spec.unquoted.length);s=zt(this.spec,e,0,r).nextOverlapping()}return s.done||s.value.from==t&&s.value.to==i?null:s.value}prevMatchInRange(e,t,i){for(let s=i;;){let r=Math.max(t,s-1e4-this.spec.unquoted.length),o=zt(this.spec,e,r,s),l=null;for(;!o.nextOverlapping().done;)l=o.value;if(l)return l;if(r==t)return null;s-=1e4}}prevMatch(e,t,i){let s=this.prevMatchInRange(e,0,t);return s||(s=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),s&&(s.from!=t||s.to!=i)?s:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=zt(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let r=zt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}function I0(n,e,t){return(i,s,r)=>(!t||t(i,s,r))&&n(r[0],e,i,s)}function qt(n,e,t,i){let s;return n.wholeWord&&(s=N0(e.charCategorizer(e.selection.main.head))),n.test&&(s=I0(n.test,e,s)),new sf(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:s},t,i)}function Yn(n,e){return n.slice(le(n,e,!1),e)}function Xn(n,e){return n.slice(e,le(n,e))}function N0(n){return(e,t,i)=>!i[0].length||(n(Yn(i.input,i.index))!=J.Word||n(Xn(i.input,i.index))!=J.Word)&&(n(Xn(i.input,i.index+i[0].length))!=J.Word||n(Yn(i.input,i.index+i[0].length))!=J.Word)}class W0 extends lf{nextMatch(e,t,i){let s=qt(this.spec,e,i,e.doc.length).next();return s.done&&(s=qt(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,i){for(let s=1;;s++){let r=Math.max(t,i-s*1e4),o=qt(this.spec,e,r,i),l=null;for(;!o.next().done;)l=o.value;if(l&&(r==t||l.from>r+10))return l;if(r==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let s=i.length;s>0;s--){let r=+i.slice(0,s);if(r>0&&r<e.match.length)return e.match[r]+i.slice(s)}return t})}matchAll(e,t){let i=qt(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let r=qt(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}const qi=I.define(),Mo=I.define(),mt=ue.define({create(n){return new $s($r(n).create(),null)},update(n,e){for(let t of e.effects)t.is(qi)?n=new $s(t.value.create(),n.panel):t.is(Mo)&&(n=new $s(n.query,t.value?To:null));return n},provide:n=>Wi.from(n,e=>e.panel)});class $s{constructor(e,t){this.query=e,this.panel=t}}const F0=E.mark({class:"cm-searchMatch"}),H0=E.mark({class:"cm-searchMatch cm-searchMatch-selected"}),V0=Z.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(mt))}update(n){let e=n.state.field(mt);(e!=n.startState.field(mt)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return E.none;let{view:t}=this,i=new lt;for(let s=0,r=t.visibleRanges,o=r.length;s<o;s++){let{from:l,to:a}=r[s];for(;s<o-1&&a>r[s+1].from-500;)a=r[++s].to;n.highlight(t.state,l,a,(h,c)=>{let f=t.state.selection.ranges.some(u=>u.from==h&&u.to==c);i.add(h,c,f?H0:F0)})}return i.finish()}},{decorations:n=>n.decorations});function Zi(n){return e=>{let t=e.state.field(mt,!1);return t&&t.query.spec.valid?n(e,t):cf(e)}}const Qn=Zi((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let s=x.single(i.from,i.to),r=n.state.facet(ci);return n.dispatch({selection:s,effects:[Do(n,i),r.scrollToMatch(s.main,n)],userEvent:"select.search"}),hf(n),!0}),Zn=Zi((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,s=e.prevMatch(t,i,i);if(!s)return!1;let r=x.single(s.from,s.to),o=n.state.facet(ci);return n.dispatch({selection:r,effects:[Do(n,s),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),hf(n),!0}),z0=Zi((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:x.create(t.map(i=>x.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),q0=({state:n,dispatch:e})=>{let t=n.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:i,to:s}=t.main,r=[],o=0;for(let l=new ri(n.doc,n.sliceDoc(i,s));!l.next().done;){if(r.length>1e3)return!1;l.value.from==i&&(o=r.length),r.push(x.range(l.value.from,l.value.to))}return e(n.update({selection:x.create(r,o),userEvent:"select.search.matches"})),!0},na=Zi((n,{query:e})=>{let{state:t}=n,{from:i,to:s}=t.selection.main;if(t.readOnly)return!1;let r=e.nextMatch(t,i,i);if(!r)return!1;let o=r,l=[],a,h,c=[];o.from==i&&o.to==s&&(h=t.toText(e.getReplacement(o)),l.push({from:o.from,to:o.to,insert:h}),o=e.nextMatch(t,o.from,o.to),c.push(M.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(i).number)+".")));let f=n.state.changes(l);return o&&(a=x.single(o.from,o.to).map(f),c.push(Do(n,o)),c.push(t.facet(ci).scrollToMatch(a.main,n))),n.dispatch({changes:f,selection:a,effects:c,userEvent:"input.replace"}),!0}),$0=Zi((n,{query:e})=>{if(n.state.readOnly)return!1;let t=e.matchAll(n.state,1e9).map(s=>{let{from:r,to:o}=s;return{from:r,to:o,insert:e.getReplacement(s)}});if(!t.length)return!1;let i=n.state.phrase("replaced $ matches",t.length)+".";return n.dispatch({changes:t,effects:M.announce.of(i),userEvent:"input.replace.all"}),!0});function To(n){return n.state.facet(ci).createPanel(n)}function $r(n,e){var t,i,s,r,o;let l=n.selection.main,a=l.empty||l.to>l.from+100?"":n.sliceDoc(l.from,l.to);if(e&&!a)return e;let h=n.facet(ci);return new of({search:((t=e?.literal)!==null&&t!==void 0?t:h.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(i=e?.caseSensitive)!==null&&i!==void 0?i:h.caseSensitive,literal:(s=e?.literal)!==null&&s!==void 0?s:h.literal,regexp:(r=e?.regexp)!==null&&r!==void 0?r:h.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:h.wholeWord})}function af(n){let e=co(n,To);return e&&e.dom.querySelector("[main-field]")}function hf(n){let e=af(n);e&&e==n.root.activeElement&&e.select()}const cf=n=>{let e=n.state.field(mt,!1);if(e&&e.panel){let t=af(n);if(t&&t!=n.root.activeElement){let i=$r(n.state,e.query.spec);i.valid&&n.dispatch({effects:qi.of(i)}),t.focus(),t.select()}}else n.dispatch({effects:[Mo.of(!0),e?qi.of($r(n.state,e.query.spec)):I.appendConfig.of(_0)]});return!0},ff=n=>{let e=n.state.field(mt,!1);if(!e||!e.panel)return!1;let t=co(n,To);return t&&t.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:Mo.of(!1)}),!0},K0=[{key:"Mod-f",run:cf,scope:"editor search-panel"},{key:"F3",run:Qn,shift:Zn,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Qn,shift:Zn,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ff,scope:"editor search-panel"},{key:"Mod-Shift-l",run:q0},{key:"Mod-Alt-g",run:w0},{key:"Mod-d",run:L0,preventDefault:!0}];class U0{constructor(e){this.view=e;let t=this.query=e.state.field(mt).query.spec;this.commit=this.commit.bind(this),this.searchField=U("input",{value:t.search,placeholder:De(e,"Find"),"aria-label":De(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=U("input",{value:t.replace,placeholder:De(e,"Replace"),"aria-label":De(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=U("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=U("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=U("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(s,r,o){return U("button",{class:"cm-button",name:s,onclick:r,type:"button"},o)}this.dom=U("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,i("next",()=>Qn(e),[De(e,"next")]),i("prev",()=>Zn(e),[De(e,"previous")]),i("select",()=>z0(e),[De(e,"all")]),U("label",null,[this.caseField,De(e,"match case")]),U("label",null,[this.reField,De(e,"regexp")]),U("label",null,[this.wordField,De(e,"by word")]),...e.state.readOnly?[]:[U("br"),this.replaceField,i("replace",()=>na(e),[De(e,"replace")]),i("replaceAll",()=>$0(e),[De(e,"replace all")])],U("button",{name:"close",onclick:()=>ff(e),"aria-label":De(e,"close"),type:"button"},["×"])])}commit(){let e=new of({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:qi.of(e)}))}keydown(e){$d(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Zn:Qn)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),na(this.view))}update(e){for(let t of e.transactions)for(let i of t.effects)i.is(qi)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ci).top}}function De(n,e){return n.state.phrase(e)}const vn=30,kn=/[\s\.,:;?!]/;function Do(n,{from:e,to:t}){let i=n.state.doc.lineAt(e),s=n.state.doc.lineAt(t).to,r=Math.max(i.from,e-vn),o=Math.min(s,t+vn),l=n.state.sliceDoc(r,o);if(r!=i.from){for(let a=0;a<vn;a++)if(!kn.test(l[a+1])&&kn.test(l[a])){l=l.slice(a);break}}if(o!=s){for(let a=l.length-1;a>l.length-vn;a--)if(!kn.test(l[a-1])&&kn.test(l[a])){l=l.slice(0,a);break}}return M.announce.of(`${n.state.phrase("current match")}. ${l} ${n.state.phrase("on line")} ${i.number}.`)}const j0=M.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),_0=[mt,Ht.low(V0),j0];class uf{constructor(e,t,i,s){this.state=e,this.pos=t,this.explicit=i,this.view=s,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=ge(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),s=t.text.slice(i-t.from,this.pos-t.from),r=s.search(df(e,!1));return r<0?null:{from:i+r,to:this.pos,text:s.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function sa(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function G0(n){let e=Object.create(null),t=Object.create(null);for(let{label:s}of n){e[s[0]]=!0;for(let r=1;r<s.length;r++)t[s[r]]=!0}let i=sa(e)+sa(t)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function J0(n){let e=n.map(s=>typeof s=="string"?{label:s}:s),[t,i]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:G0(e);return s=>{let r=s.matchBefore(i);return r||s.explicit?{from:r?r.from:s.pos,options:e,validFor:t}:null}}class ra{constructor(e,t,i,s){this.completion=e,this.source=t,this.match=i,this.score=s}}function Rt(n){return n.selection.main.from}function df(n,e){var t;let{source:i}=n,s=e&&i[0]!="^",r=i[i.length-1]!="$";return!s&&!r?n:new RegExp(`${s?"^":""}(?:${i})${r?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const pf=it.define();function Y0(n,e,t,i){let{main:s}=n.selection,r=t-s.from,o=i-s.from;return{...n.changeByRange(l=>{if(l!=s&&t!=i&&n.sliceDoc(l.from+r,l.from+o)!=n.sliceDoc(t,i))return{range:l};let a=n.toText(e);return{changes:{from:l.from+r,to:i==s.from?l.to:l.from+o,insert:a},range:x.cursor(l.from+r+a.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const oa=new WeakMap;function X0(n){if(!Array.isArray(n))return n;let e=oa.get(n);return e||oa.set(n,e=J0(n)),e}const es=I.define(),$i=I.define();class Q0{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let i=ke(e,t),s=Ye(i);this.chars.push(i);let r=e.slice(t,t+s),o=r.toUpperCase();this.folded.push(ke(o==r?r.toLowerCase():o,0)),t+=s}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:i,any:s,precise:r,byWord:o}=this;if(t.length==1){let w=ke(e,0),v=Ye(w),T=v==e.length?0:-100;if(w!=t[0])if(w==i[0])T+=-200;else return null;return this.ret(T,[0,v])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=t.length,h=0;if(l<0){for(let w=0,v=Math.min(e.length,200);w<v&&h<a;){let T=ke(e,w);(T==t[h]||T==i[h])&&(s[h++]=w),w+=Ye(T)}if(h<a)return null}let c=0,f=0,u=!1,d=0,p=-1,m=-1,g=/[a-z]/.test(e),b=!0;for(let w=0,v=Math.min(e.length,200),T=0;w<v&&f<a;){let k=ke(e,w);l<0&&(c<a&&k==t[c]&&(r[c++]=w),d<a&&(k==t[d]||k==i[d]?(d==0&&(p=w),m=w+1,d++):d=0));let C,S=k<255?k>=48&&k<=57||k>=97&&k<=122?2:k>=65&&k<=90?1:0:(C=jr(k))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!w||S==1&&g||T==0&&S!=0)&&(t[f]==k||i[f]==k&&(u=!0)?o[f++]=w:o.length&&(b=!1)),T=S,w+=Ye(k)}return f==a&&o[0]==0&&b?this.result(-100+(u?-200:0),o,e):d==a&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):d==a?this.ret(-900-e.length,[p,m]):f==a?this.result(-100+(u?-200:0)+-700+(b?0:-1100),o,e):t.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,i){let s=[],r=0;for(let o of t){let l=o+(this.astral?Ye(ke(i,o)):1);r&&s[r-1]==o?s[r-1]=l:(s[r++]=o,s[r++]=l)}return this.ret(e-i.length,s)}}class Z0{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),i=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,t.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}const oe=O.define({combine(n){return nt(n,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ey,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>la(e(i),t(i)),optionClass:(e,t)=>i=>la(e(i),t(i)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function la(n,e){return n?e?n+" "+e:n:e}function ey(n,e,t,i,s,r){let o=n.textDirection==_.RTL,l=o,a=!1,h="top",c,f,u=e.left-s.left,d=s.right-e.right,p=i.right-i.left,m=i.bottom-i.top;if(l&&u<Math.min(p,d)?l=!1:!l&&d<Math.min(p,u)&&(l=!0),p<=(l?u:d))c=Math.max(s.top,Math.min(t.top,s.bottom-m))-e.top,f=Math.min(400,l?u:d);else{a=!0,f=Math.min(400,(o?e.right:s.right-e.left)-30);let w=s.bottom-e.bottom;w>=m||w>e.top?c=t.bottom-e.top:(h="bottom",c=e.bottom-t.top)}let g=(e.bottom-e.top)/r.offsetHeight,b=(e.right-e.left)/r.offsetWidth;return{style:`${h}: ${c/g}px; max-width: ${f/b}px`,class:"cm-completionInfo-"+(a?o?"left-narrow":"right-narrow":l?"left":"right")}}function ty(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),t.type&&i.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(t,i,s,r){let o=document.createElement("span");o.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let h=0;h<r.length;){let c=r[h++],f=r[h++];c>a&&o.appendChild(document.createTextNode(l.slice(a,c)));let u=o.appendChild(document.createElement("span"));u.appendChild(document.createTextNode(l.slice(c,f))),u.className="cm-completionMatchedText",a=f}return a<l.length&&o.appendChild(document.createTextNode(l.slice(a))),o},position:50},{render(t){if(!t.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=t.detail,i},position:80}),e.sort((t,i)=>t.position-i.position).map(t=>t.render)}function Ks(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let i=Math.floor((n-e)/t);return{from:n-(i+1)*t,to:n-i*t}}class iy{constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:r,selected:o}=s.open,l=e.state.facet(oe);this.optionContent=ty(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Ks(r.length,o,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:h}=e.state.field(t).open;for(let c=a.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]<h.length){this.applyCompletion(e,h[+f[1]]),a.preventDefault();return}}),this.dom.addEventListener("focusout",a=>{let h=e.state.field(this.stateField,!1);h&&h.tooltip&&e.state.facet(oe).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:$i.of(null)})}),this.showOptions(r,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=s){let{options:r,selected:o,disabled:l}=i.open;(!s.open||s.open.options!=r)&&(this.range=Ks(r.length,o,e.state.facet(oe).maxRenderedOptions),this.showOptions(r,i.id)),this.updateSel(),l!=((t=s.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of t.split(" "))i&&this.dom.classList.add(i);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Ks(t.options.length,t.selected,this.view.state.facet(oe).maxRenderedOptions),this.showOptions(t.options,e.id));let i=this.updateSelectedOption(t.selected);if(i){this.destroyInfo();let{completion:s}=t.options[t.selected],{info:r}=s;if(!r)return;let o=typeof r=="string"?document.createTextNode(r):r(s);if(!o)return;"then"in o?o.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,s)}).catch(l=>Ae(this.view.state,l,"completion info")):(this.addInfoPane(o,s),i.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",i.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:r}=e;i.appendChild(s),this.infoDestroy=r||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),t=i):i.hasAttribute("aria-selected")&&(i.removeAttribute("aria-selected"),i.removeAttribute("aria-describedby"));return t&&sy(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),r=this.space;if(!r){let o=this.dom.ownerDocument.documentElement;r={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return s.top>Math.min(r.bottom,t.bottom)-10||s.bottom<Math.max(r.top,t.top)+10?null:this.view.state.facet(oe).positionInfo(this.view,t,s,i,r,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,i){const s=document.createElement("ul");s.id=t,s.setAttribute("role","listbox"),s.setAttribute("aria-expanded","true"),s.setAttribute("aria-label",this.view.state.phrase("Completions")),s.addEventListener("mousedown",o=>{o.target==s&&o.preventDefault()});let r=null;for(let o=i.from;o<i.to;o++){let{completion:l,match:a}=e[o],{section:h}=l;if(h){let u=typeof h=="string"?h:h.name;if(u!=r&&(o>i.from||i.from==0))if(r=u,typeof h!="string"&&h.header)s.appendChild(h.header(h));else{let d=s.appendChild(document.createElement("completion-section"));d.textContent=u}}const c=s.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let f=this.optionClass(l);f&&(c.className=f);for(let u of this.optionContent){let d=u(l,this.view.state,this.view,a);d&&c.appendChild(d)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&s.classList.add("cm-completionListIncompleteBottom"),s}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function ny(n,e){return t=>new iy(t,n,e)}function sy(n,e){let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),s=t.height/n.offsetHeight;i.top<t.top?n.scrollTop-=(t.top-i.top)/s:i.bottom>t.bottom&&(n.scrollTop+=(i.bottom-t.bottom)/s)}function aa(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function ry(n,e){let t=[],i=null,s=null,r=c=>{t.push(c);let{section:f}=c.completion;if(f){i||(i=[]);let u=typeof f=="string"?f:f.name;i.some(d=>d.name==u)||i.push(typeof f=="string"?{name:u}:f)}},o=e.facet(oe);for(let c of n)if(c.hasResult()){let f=c.result.getMatch;if(c.result.filter===!1)for(let u of c.result.options)r(new ra(u,c.source,f?f(u):[],1e9-t.length));else{let u=e.sliceDoc(c.from,c.to),d,p=o.filterStrict?new Z0(u):new Q0(u);for(let m of c.result.options)if(d=p.match(m.label)){let g=m.displayLabel?f?f(m,d.matched):[]:d.matched,b=d.score+(m.boost||0);if(r(new ra(m,c.source,g,b)),typeof m.section=="object"&&m.section.rank==="dynamic"){let{name:w}=m.section;s||(s=Object.create(null)),s[w]=Math.max(b,s[w]||-1e9)}}}}if(i){let c=Object.create(null),f=0,u=(d,p)=>(d.rank==="dynamic"&&p.rank==="dynamic"?s[p.name]-s[d.name]:0)||(typeof d.rank=="number"?d.rank:1e9)-(typeof p.rank=="number"?p.rank:1e9)||(d.name<p.name?-1:1);for(let d of i.sort(u))f-=1e5,c[d.name]=f;for(let d of t){let{section:p}=d.completion;p&&(d.score+=c[typeof p=="string"?p:p.name])}}let l=[],a=null,h=o.compareCompletions;for(let c of t.sort((f,u)=>u.score-f.score||h(f.completion,u.completion))){let f=c.completion;!a||a.label!=f.label||a.detail!=f.detail||a.type!=null&&f.type!=null&&a.type!=f.type||a.apply!=f.apply||a.boost!=f.boost?l.push(c):aa(c.completion)>aa(a)&&(l[l.length-1]=c),a=c.completion}return l}class jt{constructor(e,t,i,s,r,o){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=s,this.selected=r,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new jt(this.options,ha(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,s,r,o){if(s&&!o&&e.some(h=>h.isPending))return s.setDisabled();let l=ry(e,t);if(!l.length)return s&&e.some(h=>h.isPending)?s.setDisabled():null;let a=t.facet(oe).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let h=s.options[s.selected].completion;for(let c=0;c<l.length;c++)if(l[c].completion==h){a=c;break}}return new jt(l,ha(i,a),{pos:e.reduce((h,c)=>c.hasResult()?Math.min(h,c.from):h,1e8),create:fy,above:r.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new jt(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new jt(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class ts{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new ts(hy,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,i=t.facet(oe),r=(i.override||t.languageDataAt("autocomplete",Rt(t)).map(X0)).map(a=>(this.active.find(c=>c.source==a)||new Pe(a,this.active.some(c=>c.state!=0)?1:0)).update(e,i));r.length==this.active.length&&r.every((a,h)=>a==this.active[h])&&(r=this.active);let o=this.open,l=e.effects.some(a=>a.is(Oo));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||r.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!oy(r,this.active)||l?o=jt.build(r,t,this.id,o,i,l):o&&o.disabled&&!r.some(a=>a.isPending)&&(o=null),!o&&r.every(a=>!a.isPending)&&r.some(a=>a.hasResult())&&(r=r.map(a=>a.hasResult()?new Pe(a.source,0):a));for(let a of e.effects)a.is(gf)&&(o=o&&o.setSelected(a.value,this.id));return r==this.active&&o==this.open?this:new ts(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?ly:ay}}function oy(n,e){if(n==e)return!0;for(let t=0,i=0;;){for(;t<n.length&&!n[t].hasResult();)t++;for(;i<e.length&&!e[i].hasResult();)i++;let s=t==n.length,r=i==e.length;if(s||r)return s==r;if(n[t++].result!=e[i++].result)return!1}}const ly={"aria-autocomplete":"list"},ay={};function ha(n,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":n};return e>-1&&(t["aria-activedescendant"]=n+"-"+e),t}const hy=[];function mf(n,e){if(n.isUserEvent("input.complete")){let i=n.annotation(pf);if(i&&e.activateOnCompletion(i))return 12}let t=n.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class Pe{constructor(e,t,i=!1){this.source=e,this.state=t,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let i=mf(e,t),s=this;(i&8||i&16&&this.touches(e))&&(s=new Pe(s.source,0)),i&4&&s.state==0&&(s=new Pe(this.source,1)),s=s.updateFor(e,i);for(let r of e.effects)if(r.is(es))s=new Pe(s.source,1,r.value);else if(r.is($i))s=new Pe(s.source,0);else if(r.is(Oo))for(let o of r.value)o.source==s.source&&(s=o);return s}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Rt(e.state))}}class Qt extends Pe{constructor(e,t,i,s,r,o){super(e,3,t),this.limit=i,this.result=s,this.from=r,this.to=o}hasResult(){return!0}updateFor(e,t){var i;if(!(t&3))return this.map(e.changes);let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let r=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),l=Rt(e.state);if(l>o||!s||t&2&&(Rt(e.startState)==this.from||l<this.limit))return new Pe(this.source,t&4?1:0);let a=e.changes.mapPos(this.limit);return cy(s.validFor,e.state,r,o)?new Qt(this.source,this.explicit,a,s,r,o):s.update&&(s=s.update(s,r,o,new uf(e.state,l,!1)))?new Qt(this.source,this.explicit,a,s,s.from,(i=s.to)!==null&&i!==void 0?i:Rt(e.state)):new Pe(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Qt(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Pe(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function cy(n,e,t,i){if(!n)return!1;let s=e.sliceDoc(t,i);return typeof n=="function"?n(s,t,i,e):df(n,!0).test(s)}const Oo=I.define({map(n,e){return n.map(t=>t.map(e))}}),gf=I.define(),Se=ue.define({create(){return ts.start()},update(n,e){return n.update(e)},provide:n=>[ho.from(n,e=>e.tooltip),M.contentAttributes.from(n,e=>e.attrs)]});function Bo(n,e){const t=e.completion.apply||e.completion.label;let i=n.state.field(Se).active.find(s=>s.source==e.source);return i instanceof Qt?(typeof t=="string"?n.dispatch({...Y0(n.state,t,i.from,i.to),annotations:pf.of(e.completion)}):t(n,e.completion,i.from,i.to),!0):!1}const fy=ny(Se,Bo);function Sn(n,e="option"){return t=>{let i=t.state.field(Se,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<t.state.facet(oe).interactionDelay)return!1;let s=1,r;e=="page"&&(r=Uh(t,i.open.tooltip))&&(s=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));let{length:o}=i.open.options,l=i.open.selected>-1?i.open.selected+s*(n?1:-1):n?0:o-1;return l<0?l=e=="page"?0:o-1:l>=o&&(l=e=="page"?o-1:0),t.dispatch({effects:gf.of(l)}),!0}}const uy=n=>{let e=n.state.field(Se,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<n.state.facet(oe).interactionDelay?!1:Bo(n,e.open.options[e.open.selected])},Us=n=>n.state.field(Se,!1)?(n.dispatch({effects:es.of(!0)}),!0):!1,dy=n=>{let e=n.state.field(Se,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:$i.of(null)}),!0)};class py{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const my=50,gy=1e3,yy=Z.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of n.state.field(Se).active)e.isPending&&this.startQuery(e)}update(n){let e=n.state.field(Se),t=n.state.facet(oe);if(!n.selectionSet&&!n.docChanged&&n.startState.field(Se)==e)return;let i=n.transactions.some(r=>{let o=mf(r,t);return o&8||(r.selection||r.docChanged)&&!(o&3)});for(let r=0;r<this.running.length;r++){let o=this.running[r];if(i||o.context.abortOnDocChange&&n.docChanged||o.updates.length+n.transactions.length>my&&Date.now()-o.time>gy){for(let l of o.context.abortListeners)try{l()}catch(a){Ae(this.view.state,a)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(r=>r.effects.some(o=>o.is(es)))&&(this.pendingStart=!0);let s=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(r=>r.isPending&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let r of n.transactions)r.isUserEvent("input.type")?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,e=n.field(Se);for(let t of e.active)t.isPending&&!this.running.some(i=>i.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(oe).updateSyncTime))}startQuery(n){let{state:e}=this.view,t=Rt(e),i=new uf(e,t,n.explicit,this.view),s=new py(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(r=>{s.context.aborted||(s.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:$i.of(null)}),Ae(this.view.state,r)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(oe).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(oe),i=this.view.state.field(Se);for(let s=0;s<this.running.length;s++){let r=this.running[s];if(r.done===void 0)continue;if(this.running.splice(s--,1),r.done){let l=Rt(r.updates.length?r.updates[0].startState:this.view.state),a=Math.min(l,r.done.from+(r.active.explicit?0:1)),h=new Qt(r.active.source,r.active.explicit,a,r.done,r.done.from,(n=r.done.to)!==null&&n!==void 0?n:l);for(let c of r.updates)h=h.update(c,t);if(h.hasResult()){e.push(h);continue}}let o=i.active.find(l=>l.source==r.active.source);if(o&&o.isPending)if(r.done==null){let l=new Pe(r.active.source,0);for(let a of r.updates)l=l.update(a,t);l.isPending||e.push(l)}else this.startQuery(o)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:Oo.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(Se,!1);if(e&&e.tooltip&&this.view.state.facet(oe).closeOnBlur){let t=e.open&&Uh(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:$i.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:es.of(!1)}),20),this.composing=0}}}),by=typeof navigator=="object"&&/Win/.test(navigator.platform),xy=Ht.highest(M.domEventHandlers({keydown(n,e){let t=e.state.field(Se,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||n.key.length>1||n.ctrlKey&&!(by&&n.altKey)||n.metaKey)return!1;let i=t.open.options[t.open.selected],s=t.active.find(o=>o.source==i.source),r=i.completion.commitCharacters||s.result.commitCharacters;return r&&r.indexOf(n.key)>-1&&Bo(e,i),!1}})),wy=M.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Ki={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Lt=I.define({map(n,e){let t=e.mapPos(n,-1,we.TrackAfter);return t??void 0}}),Lo=new class extends gt{};Lo.startSide=1;Lo.endSide=-1;const yf=ue.define({create(){return F.empty},update(n,e){if(n=n.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);n=n.update({filter:i=>i>=t.from&&i<=t.to})}for(let t of e.effects)t.is(Lt)&&(n=n.update({add:[Lo.range(t.value,t.value+1)]}));return n}});function vy(){return[Sy,yf]}const js="()[]{}<>«»»«[]{}";function bf(n){for(let e=0;e<js.length;e+=2)if(js.charCodeAt(e)==n)return js.charAt(e+1);return jr(n<128?n:n+1)}function xf(n,e){return n.languageDataAt("closeBrackets",e)[0]||Ki}const ky=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Sy=M.inputHandler.of((n,e,t,i)=>{if((ky?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&Ye(ke(i,0))==1||e!=s.from||t!=s.to)return!1;let r=My(n.state,i);return r?(n.dispatch(r),!0):!1}),Cy=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let i=xf(n,n.selection.main.head).brackets||Ki.brackets,s=null,r=n.changeByRange(o=>{if(o.empty){let l=Ty(n.doc,o.head);for(let a of i)if(a==l&&ys(n.doc,o.head)==bf(ke(a,0)))return{changes:{from:o.head-a.length,to:o.head+a.length},range:x.cursor(o.head-a.length)}}return{range:s=o}});return s||e(n.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},Ay=[{key:"Backspace",run:Cy}];function My(n,e){let t=xf(n,n.selection.main.head),i=t.brackets||Ki.brackets;for(let s of i){let r=bf(ke(s,0));if(e==s)return r==s?By(n,s,i.indexOf(s+s+s)>-1,t):Dy(n,s,r,t.before||Ki.before);if(e==r&&wf(n,n.selection.main.from))return Oy(n,s,r)}return null}function wf(n,e){let t=!1;return n.field(yf).between(0,n.doc.length,i=>{i==e&&(t=!0)}),t}function ys(n,e){let t=n.sliceString(e,e+2);return t.slice(0,Ye(ke(t,0)))}function Ty(n,e){let t=n.sliceString(e-2,e);return Ye(ke(t,0))==t.length?t:t.slice(1)}function Dy(n,e,t,i){let s=null,r=n.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:Lt.of(o.to+e.length),range:x.range(o.anchor+e.length,o.head+e.length)};let l=ys(n.doc,o.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:e+t,from:o.head},effects:Lt.of(o.head+e.length),range:x.cursor(o.head+e.length)}:{range:s=o}});return s?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Oy(n,e,t){let i=null,s=n.changeByRange(r=>r.empty&&ys(n.doc,r.head)==t?{changes:{from:r.head,to:r.head+t.length,insert:t},range:x.cursor(r.head+t.length)}:i={range:r});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function By(n,e,t,i){let s=i.stringPrefixes||Ki.stringPrefixes,r=null,o=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Lt.of(l.to+e.length),range:x.range(l.anchor+e.length,l.head+e.length)};let a=l.head,h=ys(n.doc,a),c;if(h==e){if(ca(n,a))return{changes:{insert:e+e,from:a},effects:Lt.of(a+e.length),range:x.cursor(a+e.length)};if(wf(n,a)){let u=t&&n.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+u.length,insert:u},range:x.cursor(a+u.length)}}}else{if(t&&n.sliceDoc(a-2*e.length,a)==e+e&&(c=fa(n,a-2*e.length,s))>-1&&ca(n,c))return{changes:{insert:e+e+e+e,from:a},effects:Lt.of(a+e.length),range:x.cursor(a+e.length)};if(n.charCategorizer(a)(h)!=J.Word&&fa(n,a,s)>-1&&!Ly(n,a,e,s))return{changes:{insert:e+e,from:a},effects:Lt.of(a+e.length),range:x.cursor(a+e.length)}}return{range:r=l}});return r?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function ca(n,e){let t=ge(n).resolveInner(e+1);return t.parent&&t.from==e}function Ly(n,e,t,i){let s=ge(n).resolveInner(e,-1),r=i.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+t.length+r)),a=l.indexOf(t);if(!a||a>-1&&i.indexOf(l.slice(0,a))>-1){let c=s.firstChild;for(;c&&c.from==s.from&&c.to-c.from>t.length+a;){if(n.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let h=s.to==e&&s.parent;if(!h)break;s=h}return!1}function fa(n,e,t){let i=n.charCategorizer(e);if(i(n.sliceDoc(e-1,e))!=J.Word)return e;for(let s of t){let r=e-s.length;if(n.sliceDoc(r,e)==s&&i(n.sliceDoc(r-1,r))!=J.Word)return r}return-1}function Ey(n={}){return[xy,Se,oe.of(n),yy,Ry,wy]}const vf=[{key:"Ctrl-Space",run:Us},{mac:"Alt-`",run:Us},{mac:"Alt-i",run:Us},{key:"Escape",run:dy},{key:"ArrowDown",run:Sn(!0)},{key:"ArrowUp",run:Sn(!1)},{key:"PageDown",run:Sn(!0,"page")},{key:"PageUp",run:Sn(!1,"page")},{key:"Enter",run:uy}],Ry=Ht.highest(as.computeN([oe],n=>n.facet(oe).defaultKeymap?[vf]:[]));class ua{constructor(e,t,i){this.from=e,this.to=t,this.diagnostic=i}}class Dt{constructor(e,t,i){this.diagnostics=e,this.panel=t,this.selected=i}static init(e,t,i){let s=i.facet(Ui).markerFilter;s&&(e=s(e,i));let r=e.slice().sort((d,p)=>d.from-p.from||d.to-p.to),o=new lt,l=[],a=0,h=i.doc.iter(),c=0,f=i.doc.length;for(let d=0;;){let p=d==r.length?null:r[d];if(!p&&!l.length)break;let m,g;if(l.length)m=a,g=l.reduce((v,T)=>Math.min(v,T.to),p&&p.from>m?p.from:1e8);else{if(m=p.from,m>f)break;g=p.to,l.push(p),d++}for(;d<r.length;){let v=r[d];if(v.from==m&&(v.to>v.from||v.to==m))l.push(v),d++,g=Math.min(v.to,g);else{g=Math.min(v.from,g);break}}g=Math.min(g,f);let b=!1;if(l.some(v=>v.from==m&&(v.to==g||g==f))&&(b=m==g,!b&&g-m<10)){let v=m-(c+h.value.length);v>0&&(h.next(v),c=m);for(let T=m;;){if(T>=g){b=!0;break}if(!h.lineBreak&&c+h.value.length>T)break;T=c+h.value.length,c+=h.value.length,h.next()}}let w=jy(l);if(b)o.add(m,m,E.widget({widget:new qy(w),diagnostics:l.slice()}));else{let v=l.reduce((T,k)=>k.markClass?T+" "+k.markClass:T,"");o.add(m,g,E.mark({class:"cm-lintRange cm-lintRange-"+w+v,diagnostics:l.slice(),inclusiveEnd:l.some(T=>T.to>g)}))}if(a=g,a==f)break;for(let v=0;v<l.length;v++)l[v].to<=a&&l.splice(v--,1)}let u=o.finish();return new Dt(u,t,kt(u))}}function kt(n,e=null,t=0){let i=null;return n.between(t,1e9,(s,r,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!i)i=new ua(s,r,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new ua(i.from,r,i.diagnostic)}}),i}function Py(n,e){let t=e.pos,i=e.end||t,s=n.state.facet(Ui).hideOn(n,t,i);if(s!=null)return s;let r=n.startState.doc.lineAt(e.pos);return!!(n.effects.some(o=>o.is(kf))||n.changes.touchesRange(r.from,Math.max(r.to,i)))}function Iy(n,e){return n.field(Be,!1)?e:e.concat(I.appendConfig.of(_y))}const kf=I.define(),Eo=I.define(),Sf=I.define(),Be=ue.define({create(){return new Dt(E.none,null,null)},update(n,e){if(e.docChanged&&n.diagnostics.size){let t=n.diagnostics.map(e.changes),i=null,s=n.panel;if(n.selected){let r=e.changes.mapPos(n.selected.from,1);i=kt(t,n.selected.diagnostic,r)||kt(t,null,r)}!t.size&&s&&e.state.facet(Ui).autoPanel&&(s=null),n=new Dt(t,s,i)}for(let t of e.effects)if(t.is(kf)){let i=e.state.facet(Ui).autoPanel?t.value.length?ji.open:null:n.panel;n=Dt.init(t.value,i,e.state)}else t.is(Eo)?n=new Dt(n.diagnostics,t.value?ji.open:null,n.selected):t.is(Sf)&&(n=new Dt(n.diagnostics,n.panel,t.value));return n},provide:n=>[Wi.from(n,e=>e.panel),M.decorations.from(n,e=>e.diagnostics)]}),Ny=E.mark({class:"cm-lintRange cm-lintRange-active"});function Wy(n,e,t){let{diagnostics:i}=n.state.field(Be),s,r=-1,o=-1;i.between(e-(t<0?1:0),e+(t>0?1:0),(a,h,{spec:c})=>{if(e>=a&&e<=h&&(a==h||(e>a||t>0)&&(e<h||t<0)))return s=c.diagnostics,r=a,o=h,!1});let l=n.state.facet(Ui).tooltipFilter;return s&&l&&(s=l(s,n.state)),s?{pos:r,end:o,above:n.state.doc.lineAt(r).to<o,create(){return{dom:Fy(n,s)}}}:null}function Fy(n,e){return U("ul",{class:"cm-tooltip-lint"},e.map(t=>Af(n,t,!1)))}const Hy=n=>{let e=n.state.field(Be,!1);(!e||!e.panel)&&n.dispatch({effects:Iy(n.state,[Eo.of(!0)])});let t=co(n,ji.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},da=n=>{let e=n.state.field(Be,!1);return!e||!e.panel?!1:(n.dispatch({effects:Eo.of(!1)}),!0)},Vy=n=>{let e=n.state.field(Be,!1);if(!e)return!1;let t=n.state.selection.main,i=kt(e.diagnostics,null,t.to+1);return!i&&(i=kt(e.diagnostics,null,0),!i||i.from==t.from&&i.to==t.to)?!1:(n.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},zy=[{key:"Mod-Shift-m",run:Hy,preventDefault:!0},{key:"F8",run:Vy}],Ui=O.define({combine(n){return{sources:n.map(e=>e.source).filter(e=>e!=null),...nt(n.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:pa,tooltipFilter:pa,needsRefresh:(e,t)=>e?t?i=>e(i)||t(i):e:t,hideOn:(e,t)=>e?t?(i,s,r)=>e(i,s,r)||t(i,s,r):e:t,autoPanel:(e,t)=>e||t})}}});function pa(n,e){return n?e?(t,i)=>e(n(t,i),i):n:e}function Cf(n){let e=[];if(n)e:for(let{name:t}of n){for(let i=0;i<t.length;i++){let s=t[i];if(/[a-zA-Z]/.test(s)&&!e.some(r=>r.toLowerCase()==s.toLowerCase())){e.push(s);continue e}}e.push("")}return e}function Af(n,e,t){var i;let s=t?Cf(e.actions):[];return U("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},U("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(n):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((r,o)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let p=kt(n.state.field(Be).diagnostics,e);p&&r.apply(n,p.from,p.to)},{name:h}=r,c=s[o]?h.indexOf(s[o]):-1,f=c<0?h:[h.slice(0,c),U("u",h.slice(c,c+1)),h.slice(c+1)],u=r.markClass?" "+r.markClass:"";return U("button",{type:"button",class:"cm-diagnosticAction"+u,onclick:a,onmousedown:a,"aria-label":` Action: ${h}${c<0?"":` (access key "${s[o]})"`}.`},f)}),e.source&&U("div",{class:"cm-diagnosticSource"},e.source))}class qy extends st{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return U("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class ma{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Af(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class ji{constructor(e){this.view=e,this.items=[];let t=s=>{if(!(s.ctrlKey||s.altKey||s.metaKey)){if(s.keyCode==27)da(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:r}=this.items[this.selectedIndex],o=Cf(r.actions);for(let l=0;l<o.length;l++)if(o[l].toUpperCase().charCodeAt(0)==s.keyCode){let a=kt(this.view.state.field(Be).diagnostics,r);a&&r.actions[l].apply(e,a.from,a.to)}}else return;s.preventDefault()}},i=s=>{for(let r=0;r<this.items.length;r++)this.items[r].dom.contains(s.target)&&this.moveSelection(r)};this.list=U("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:i}),this.dom=U("div",{class:"cm-panel-lint"},this.list,U("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>da(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Be).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Be),i=0,s=!1,r=null,o=new Set;for(e.between(0,this.view.state.doc.length,(l,a,{spec:h})=>{for(let c of h.diagnostics){if(o.has(c))continue;o.add(c);let f=-1,u;for(let d=i;d<this.items.length;d++)if(this.items[d].diagnostic==c){f=d;break}f<0?(u=new ma(this.view,c),this.items.splice(i,0,u),s=!0):(u=this.items[f],f>i&&(this.items.splice(i,f-i),s=!0)),t&&u.diagnostic==t.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),r=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)s=!0,this.items.pop();this.items.length==0&&(this.items.push(new ma(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),s=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let h=a.height/this.list.offsetHeight;l.top<a.top?this.list.scrollTop-=(a.top-l.top)/h:l.bottom>a.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let e=this.list.firstChild;function t(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Be),i=kt(t.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:Sf.of(i)})}static open(e){return new ji(e)}}function $y(n,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(n)}</svg>')`}function Cn(n){return $y(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const Ky=M.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Cn("#d11")},".cm-lintRange-warning":{backgroundImage:Cn("orange")},".cm-lintRange-info":{backgroundImage:Cn("#999")},".cm-lintRange-hint":{backgroundImage:Cn("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Uy(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function jy(n){let e="hint",t=1;for(let i of n){let s=Uy(i.severity);s>t&&(t=s,e=i.severity)}return e}const _y=[Be,M.decorations.compute([Be],n=>{let{selected:e,panel:t}=n.field(Be);return!e||!t||e.from==e.to?E.none:E.set([Ny.range(e.from,e.to)])}),Lp(Wy,{hideOn:Py}),Ky];var ga=function(e){e===void 0&&(e={});var{crosshairCursor:t=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(Ay)),e.defaultKeymap!==!1&&(i=i.concat(y0)),e.searchKeymap!==!1&&(i=i.concat(K0)),e.historyKeymap!==!1&&(i=i.concat(Cg)),e.foldKeymap!==!1&&(i=i.concat(Pm)),e.completionKeymap!==!1&&(i=i.concat(vf)),e.lintKeymap!==!1&&(i=i.concat(zy));var s=[];return e.lineNumbers!==!1&&s.push(Kp()),e.highlightActiveLineGutter!==!1&&s.push(_p()),e.highlightSpecialChars!==!1&&s.push(op()),e.history!==!1&&s.push(mg()),e.foldGutter!==!1&&s.push(Fm()),e.drawSelection!==!1&&s.push(Jd()),e.dropCursor!==!1&&s.push(ep()),e.allowMultipleSelections!==!1&&s.push(z.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&s.push(Cm()),e.syntaxHighlighting!==!1&&s.push(bo(qm,{fallback:!0})),e.bracketMatching!==!1&&s.push(Jm()),e.closeBrackets!==!1&&s.push(vy()),e.autocompletion!==!1&&s.push(Ey()),e.rectangularSelection!==!1&&s.push(wp()),t!==!1&&s.push(Sp()),e.highlightActiveLine!==!1&&s.push(up()),e.highlightSelectionMatches!==!1&&s.push(S0()),e.tabSize&&typeof e.tabSize=="number"&&s.push(cs.of(" ".repeat(e.tabSize))),s.concat([as.of(i.flat())]).filter(Boolean)};const Gy="#e5c07b",ya="#e06c75",Jy="#56b6c2",Yy="#ffffff",En="#abb2bf",Kr="#7d8799",Xy="#61afef",Qy="#98c379",ba="#d19a66",Zy="#c678dd",eb="#21252b",xa="#2c313a",wa="#282c34",_s="#353a42",tb="#3E4451",va="#528bff",ib=M.theme({"&":{color:En,backgroundColor:wa},".cm-content":{caretColor:va},".cm-cursor, .cm-dropCursor":{borderLeftColor:va},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:tb},".cm-panels":{backgroundColor:eb,color:En},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:wa,color:Kr,border:"none"},".cm-activeLineGutter":{backgroundColor:xa},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:_s},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:_s,borderBottomColor:_s},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:xa,color:En}}},{dark:!0}),nb=ai.define([{tag:y.keyword,color:Zy},{tag:[y.name,y.deleted,y.character,y.propertyName,y.macroName],color:ya},{tag:[y.function(y.variableName),y.labelName],color:Xy},{tag:[y.color,y.constant(y.name),y.standard(y.name)],color:ba},{tag:[y.definition(y.name),y.separator],color:En},{tag:[y.typeName,y.className,y.number,y.changed,y.annotation,y.modifier,y.self,y.namespace],color:Gy},{tag:[y.operator,y.operatorKeyword,y.url,y.escape,y.regexp,y.link,y.special(y.string)],color:Jy},{tag:[y.meta,y.comment],color:Kr},{tag:y.strong,fontWeight:"bold"},{tag:y.emphasis,fontStyle:"italic"},{tag:y.strikethrough,textDecoration:"line-through"},{tag:y.link,color:Kr,textDecoration:"underline"},{tag:y.heading,fontWeight:"bold",color:ya},{tag:[y.atom,y.bool,y.special(y.variableName)],color:ba},{tag:[y.processingInstruction,y.string,y.inserted],color:Qy},{tag:y.invalid,color:Yy}]),sb=[ib,bo(nb)];var rb=M.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),ob=function(e){e===void 0&&(e={});var{indentWithTab:t=!0,editable:i=!0,readOnly:s=!1,theme:r="light",placeholder:o="",basicSetup:l=!0}=e,a=[];switch(t&&a.unshift(as.of([b0])),l&&(typeof l=="boolean"?a.unshift(ga()):a.unshift(ga(l))),o&&a.unshift(gp(o)),r){case"light":a.push(rb);break;case"dark":a.push(sb);break;case"none":break;default:a.push(r);break}return i===!1&&a.push(M.editable.of(!1)),s&&a.push(z.readOnly.of(!0)),[...a]},lb=n=>({line:n.state.doc.lineAt(n.state.selection.main.from),lineCount:n.state.doc.lines,lineBreak:n.state.lineBreak,length:n.state.doc.length,readOnly:n.state.readOnly,tabSize:n.state.tabSize,selection:n.state.selection,selectionAsSingle:n.state.selection.asSingle().main,ranges:n.state.selection.ranges,selectionCode:n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to),selections:n.state.selection.ranges.map(e=>n.state.sliceDoc(e.from,e.to)),selectedText:n.state.selection.ranges.some(e=>!e.empty)});class ab{constructor(e,t){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=t,this.timeoutMS=t,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(t=>{try{t()}catch(i){console.error("TimeoutLatch callback error:",i)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class ka{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}}var Gs=null,hb=()=>typeof window>"u"?new ka:(Gs||(Gs=new ka),Gs),Sa=it.define(),cb=200,fb=[];function ub(n){var{value:e,selection:t,onChange:i,onStatistics:s,onCreateEditor:r,onUpdate:o,extensions:l=fb,autoFocus:a,theme:h="light",height:c=null,minHeight:f=null,maxHeight:u=null,width:d=null,minWidth:p=null,maxWidth:m=null,placeholder:g="",editable:b=!0,readOnly:w=!1,indentWithTab:v=!0,basicSetup:T=!0,root:k,initialState:C}=n,[S,R]=be.useState(),[B,H]=be.useState(),[P,L]=be.useState(),N=be.useState(()=>({current:null}))[0],W=be.useState(()=>({current:null}))[0],$=M.theme({"&":{height:c,minHeight:f,maxHeight:u,width:d,minWidth:p,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),ie=M.updateListener.of(K=>{if(K.docChanged&&typeof i=="function"&&!K.transactions.some(pe=>pe.annotation(Sa))){N.current?N.current.reset():(N.current=new ab(()=>{if(W.current){var pe=W.current;W.current=null,pe()}N.current=null},cb),hb().add(N.current));var ee=K.state.doc,ae=ee.toString();i(ae,K)}s&&s(lb(K))}),re=ob({theme:h,editable:b,readOnly:w,placeholder:g,indentWithTab:v,basicSetup:T}),de=[ie,$,...re];return o&&typeof o=="function"&&de.push(M.updateListener.of(o)),de=de.concat(l),be.useLayoutEffect(()=>{if(S&&!P){var K={doc:e,selection:t,extensions:de},ee=C?z.fromJSON(C.json,K,C.fields):z.create(K);if(L(ee),!B){var ae=new M({state:ee,parent:S,root:k});H(ae),r&&r(ae,ee)}}return()=>{B&&(L(void 0),H(void 0))}},[S,P]),be.useEffect(()=>{n.container&&R(n.container)},[n.container]),be.useEffect(()=>()=>{B&&(B.destroy(),H(void 0)),N.current&&(N.current.cancel(),N.current=null)},[B]),be.useEffect(()=>{a&&B&&B.focus()},[a,B]),be.useEffect(()=>{B&&B.dispatch({effects:I.reconfigure.of(de)})},[h,l,c,f,u,d,p,m,g,b,w,v,T,i,o]),be.useEffect(()=>{if(e!==void 0){var K=B?B.state.doc.toString():"";if(B&&e!==K){var ee=N.current&&!N.current.isDone,ae=()=>{B&&e!==B.state.doc.toString()&&B.dispatch({changes:{from:0,to:B.state.doc.toString().length,insert:e||""},annotations:[Sa.of(!0)]})};ee?W.current=ae:ae()}}},[e,B]),{state:P,setState:L,view:B,setView:H,container:S,setContainer:R}}var Js={exports:{}},gi={};var Ca;function db(){if(Ca)return gi;Ca=1;var n=Bf(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function o(l,a,h){var c,f={},u=null,d=null;h!==void 0&&(u=""+h),a.key!==void 0&&(u=""+a.key),a.ref!==void 0&&(d=a.ref);for(c in a)i.call(a,c)&&!r.hasOwnProperty(c)&&(f[c]=a[c]);if(l&&l.defaultProps)for(c in a=l.defaultProps,a)f[c]===void 0&&(f[c]=a[c]);return{$$typeof:e,type:l,key:u,ref:d,props:f,_owner:s.current}}return gi.Fragment=t,gi.jsx=o,gi.jsxs=o,gi}var Aa;function pb(){return Aa||(Aa=1,Js.exports=db()),Js.exports}var mb=pb(),gb=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Mf=be.forwardRef((n,e)=>{var{className:t,value:i="",selection:s,extensions:r=[],onChange:o,onStatistics:l,onCreateEditor:a,onUpdate:h,autoFocus:c,theme:f="light",height:u,minHeight:d,maxHeight:p,width:m,minWidth:g,maxWidth:b,basicSetup:w,placeholder:v,indentWithTab:T,editable:k,readOnly:C,root:S,initialState:R}=n,B=If(n,gb),H=be.useRef(null),{state:P,view:L,container:N,setContainer:W}=ub({root:S,value:i,autoFocus:c,theme:f,height:u,minHeight:d,maxHeight:p,width:m,minWidth:g,maxWidth:b,basicSetup:w,placeholder:v,indentWithTab:T,editable:k,readOnly:C,selection:s,onChange:o,onStatistics:l,onCreateEditor:a,onUpdate:h,extensions:r,initialState:R});be.useImperativeHandle(e,()=>({editor:H.current,state:P,view:L}),[H,N,P,L]);var $=be.useCallback(re=>{H.current=re,W(re)},[W]);if(typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var ie=typeof f=="string"?"cm-theme-"+f:"cm-theme";return mb.jsx("div",Rn({ref:$,className:""+ie+(t?" "+t:"")},B))});Mf.displayName="CodeMirror";function Ur(n,e,t){return e(t),t(n,e)}var yb=/[a-z_]/,bb=/[A-Z]/,Ys=/\d/,xb=/[0-9A-Fa-f]/,wb=/[0-7]/,Ma=/[a-z_A-Z0-9'\xa1-\uffff]/,Xs=/[-!#$%&*+.\/<=>?@\\^|~:]/,vb=/[(),;[\]`{}]/,Tf=/[ \t\v\f]/;function oi(n,e){if(n.eatWhile(Tf))return null;var t=n.next();if(vb.test(t)){if(t=="{"&&n.eat("-")){var i="comment";return n.eat("#")&&(i="meta"),Ur(n,e,Df(i,1))}return null}if(t=="'")return n.eat("\\"),n.next(),n.eat("'")?"string":"error";if(t=='"')return Ur(n,e,Of);if(bb.test(t))return n.eatWhile(Ma),n.eat(".")?"qualifier":"type";if(yb.test(t))return n.eatWhile(Ma),"variable";if(Ys.test(t)){if(t=="0"){if(n.eat(/[xX]/))return n.eatWhile(xb),"integer";if(n.eat(/[oO]/))return n.eatWhile(wb),"number"}n.eatWhile(Ys);var i="number";return n.match(/^\.\d+/)&&(i="number"),n.eat(/[eE]/)&&(i="number",n.eat(/[-+]/),n.eatWhile(Ys)),i}return t=="."&&n.eat(".")?"keyword":Xs.test(t)?t=="-"&&n.eat(/-/)&&(n.eatWhile(/-/),!n.eat(Xs))?(n.skipToEnd(),"comment"):(n.eatWhile(Xs),"variable"):"error"}function Df(n,e){return e==0?oi:function(t,i){for(var s=e;!t.eol();){var r=t.next();if(r=="{"&&t.eat("-"))++s;else if(r=="-"&&t.eat("}")&&(--s,s==0))return i(oi),n}return i(Df(n,s)),n}}function Of(n,e){for(;!n.eol();){var t=n.next();if(t=='"')return e(oi),"string";if(t=="\\"){if(n.eol()||n.eat(Tf))return e(kb),"string";n.eat("&")||n.next()}}return e(oi),"error"}function kb(n,e){return n.eat("\\")?Ur(n,e,Of):(n.next(),e(oi),"error")}var Ta=(function(){var n={};function e(t){return function(){for(var i=0;i<arguments.length;i++)n[arguments[i]]=t}}return e("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),e("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),e("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),e("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),e("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3"),n})();const Sb={name:"haskell",startState:function(){return{f:oi}},copyState:function(n){return{f:n.f}},token:function(n,e){var t=e.f(n,function(s){e.f=s}),i=n.current();return Ta.hasOwnProperty(i)?Ta[i]:t},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}};var Cb=n=>{var{theme:e,settings:t={},styles:i=[]}=n,s={".cm-gutters":{}},r={};t.background&&(r.backgroundColor=t.background),t.backgroundImage&&(r.backgroundImage=t.backgroundImage),t.foreground&&(r.color=t.foreground),t.fontSize&&(r.fontSize=t.fontSize),(t.background||t.foreground)&&(s["&"]=r),t.fontFamily&&(s["&.cm-editor .cm-scroller"]={fontFamily:t.fontFamily}),t.gutterBackground&&(s[".cm-gutters"].backgroundColor=t.gutterBackground),t.gutterForeground&&(s[".cm-gutters"].color=t.gutterForeground),t.gutterBorder&&(s[".cm-gutters"].borderRightColor=t.gutterBorder),t.caret&&(s[".cm-content"]={caretColor:t.caret},s[".cm-cursor, .cm-dropCursor"]={borderLeftColor:t.caret});var o={};t.gutterActiveForeground&&(o.color=t.gutterActiveForeground),t.lineHighlight&&(s[".cm-activeLine"]={backgroundColor:t.lineHighlight},o.backgroundColor=t.lineHighlight),s[".cm-activeLineGutter"]=o,t.selection&&(s["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:t.selection+" !important"}),t.selectionMatch&&(s["& .cm-selectionMatch"]={backgroundColor:t.selectionMatch});var l=M.theme(s,{dark:e==="dark"}),a=ai.define(i),h=[l,bo(a)];return h},Ab={background:"#1a1b26",foreground:"#787c99",caret:"#c0caf5",selection:"#515c7e40",selectionMatch:"#16161e",gutterBackground:"#1a1b26",gutterForeground:"#787c99",gutterBorder:"transparent",lineHighlight:"#474b6611"},Mb=[{tag:y.keyword,color:"#bb9af7"},{tag:[y.name,y.deleted,y.character,y.macroName],color:"#c0caf5"},{tag:[y.propertyName],color:"#7aa2f7"},{tag:[y.processingInstruction,y.string,y.inserted,y.special(y.string)],color:"#9ece6a"},{tag:[y.function(y.variableName),y.labelName],color:"#7aa2f7"},{tag:[y.color,y.constant(y.name),y.standard(y.name)],color:"#bb9af7"},{tag:[y.definition(y.name),y.separator],color:"#c0caf5"},{tag:[y.className],color:"#c0caf5"},{tag:[y.number,y.changed,y.annotation,y.modifier,y.self,y.namespace],color:"#ff9e64"},{tag:[y.typeName],color:"#0db9d7"},{tag:[y.operator,y.operatorKeyword],color:"#bb9af7"},{tag:[y.url,y.escape,y.regexp,y.link],color:"#b4f9f8"},{tag:[y.meta,y.comment],color:"#444b6a"},{tag:y.strong,fontWeight:"bold"},{tag:y.emphasis,fontStyle:"italic"},{tag:y.link,textDecoration:"underline"},{tag:y.heading,fontWeight:"bold",color:"#89ddff"},{tag:[y.atom,y.bool,y.special(y.variableName)],color:"#c0caf5"},{tag:y.invalid,color:"#ff5370"},{tag:y.strikethrough,textDecoration:"line-through"}],Tb=n=>{var{theme:e="dark",settings:t={},styles:i=[]}={};return Cb({theme:e,settings:Rn({},Ab,t),styles:[...Mb,...i]})},Db=Tb();const Ob=xo.define(Sb),Bb=M.editable.of(!1),Lb=M.theme({".cm-scroller":{fontFamily:"'JetBrains Mono', ui-monospace, monospace",fontSize:"12px"}});function Eb({code:n}){return Lf.createElement(Mf,{value:n,theme:Db,extensions:[Ob,Bb,Lb],basicSetup:{lineNumbers:!0,foldGutter:!1,highlightActiveLine:!1},editable:!1})}window.__yogaStoriesCodeViewer=Eb;if(!window.__yogaStoriesInitialised){window.__yogaStoriesInitialised=!0;const{clientMain:n}=await Pf(async()=>{const{clientMain:e}=await import("./index-Dts5fPNe.js");return{clientMain:e}},__vite__mapDeps([0,1]),import.meta.url);n()}
dist/assets/index-DnAXTA8P.jsnew file+1
@@ -0,0 +1 @@
1+function X(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var k={exports:{}},r={};var D;function Y(){if(D)return r;D=1;var a=Symbol.for("react.element"),V=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),M=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),B=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),w=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=w&&e[w]||e["@@iterator"],typeof e=="function"?e:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function y(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||$}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function j(){}j.prototype=y.prototype;function v(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||$}var m=v.prototype=new j;m.constructor=v,b(m,y.prototype),m.isPureReactComponent=!0;var O=Array.isArray,g=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var o,u={},i=null,s=null;if(t!=null)for(o in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)g.call(t,o)&&!x.hasOwnProperty(o)&&(u[o]=t[o]);var f=arguments.length-2;if(f===1)u.children=n;else if(1<f){for(var c=Array(f),p=0;p<f;p++)c[p]=arguments[p+2];u.children=c}if(e&&e.defaultProps)for(o in f=e.defaultProps,f)u[o]===void 0&&(u[o]=f[o]);return{$$typeof:a,type:e,key:i,ref:s,props:u,_owner:S.current}}function G(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function R(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function J(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var I=/\/+/g;function E(e,t){return typeof e=="object"&&e!==null&&e.key!=null?J(""+e.key):t.toString(36)}function d(e,t,n,o,u){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case V:s=!0}}if(s)return s=e,u=u(s),e=o===""?"."+E(s,0):o,O(u)?(n="",e!=null&&(n=e.replace(I,"$&/")+"/"),d(u,t,n,"",function(p){return p})):u!=null&&(R(u)&&(u=G(u,n+(!u.key||s&&s.key===u.key?"":(""+u.key).replace(I,"$&/")+"/")+e)),t.push(u)),1;if(s=0,o=o===""?".":o+":",O(e))for(var f=0;f<e.length;f++){i=e[f];var c=o+E(i,f);s+=d(i,t,n,c,u)}else if(c=W(e),typeof c=="function")for(e=c.call(e),f=0;!(i=e.next()).done;)i=i.value,c=o+E(i,f++),s+=d(i,t,n,c,u);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function _(e,t,n){if(e==null)return e;var o=[],u=0;return d(e,o,"","",function(i){return t.call(n,i,u++)}),o}function K(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var l={current:null},h={transition:null},Q={ReactCurrentDispatcher:l,ReactCurrentBatchConfig:h,ReactCurrentOwner:S};function q(){throw Error("act(...) is not supported in production builds of React.")}return r.Children={map:_,forEach:function(e,t,n){_(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _(e,function(){t++}),t},toArray:function(e){return _(e,function(t){return t})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=y,r.Fragment=A,r.Profiler=U,r.PureComponent=v,r.StrictMode=F,r.Suspense=z,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,r.act=q,r.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=b({},e.props),u=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=S.current),t.key!==void 0&&(u=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(c in t)g.call(t,c)&&!x.hasOwnProperty(c)&&(o[c]=t[c]===void 0&&f!==void 0?f[c]:t[c])}var c=arguments.length-2;if(c===1)o.children=n;else if(1<c){f=Array(c);for(var p=0;p<c;p++)f[p]=arguments[p+2];o.children=f}return{$$typeof:a,type:e.type,key:u,ref:i,props:o,_owner:s}},r.createContext=function(e){return e={$$typeof:M,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:L,_context:e},e.Consumer=e},r.createElement=P,r.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:N,render:e}},r.isValidElement=R,r.lazy=function(e){return{$$typeof:H,_payload:{_status:-1,_result:e},_init:K}},r.memo=function(e,t){return{$$typeof:B,type:e,compare:t===void 0?null:t}},r.startTransition=function(e){var t=h.transition;h.transition={};try{e()}finally{h.transition=t}},r.unstable_act=q,r.useCallback=function(e,t){return l.current.useCallback(e,t)},r.useContext=function(e){return l.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return l.current.useDeferredValue(e)},r.useEffect=function(e,t){return l.current.useEffect(e,t)},r.useId=function(){return l.current.useId()},r.useImperativeHandle=function(e,t,n){return l.current.useImperativeHandle(e,t,n)},r.useInsertionEffect=function(e,t){return l.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return l.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return l.current.useMemo(e,t)},r.useReducer=function(e,t,n){return l.current.useReducer(e,t,n)},r.useRef=function(e){return l.current.useRef(e)},r.useState=function(e){return l.current.useState(e)},r.useSyncExternalStore=function(e,t,n){return l.current.useSyncExternalStore(e,t,n)},r.useTransition=function(){return l.current.useTransition()},r.version="18.3.1",r}var T;function Z(){return T||(T=1,k.exports=Y()),k.exports}var ee=Z();const te=X(ee);export{te as R,Z as a,X as g,ee as r};
dist/assets/index-Dts5fPNe.jsnew file+8
@@ -0,0 +1,8 @@
1+import{R as Ee,a as Id,g as Fd}from"./index-DnAXTA8P.js";function Se(){throw new Error("Failed pattern match")}function Dd(i,c){return Math.floor(i/c)}const Za=function(i){return function(c){for(var s=c.length,v=new Array(s),S=0;S<s;S++)v[S]=i(c[S]);return v}},ze=(i,c)=>({tag:i,_1:c}),De=ze("Nothing"),Kr=i=>ze("Just",i),wc=i=>{if(i.tag==="Nothing")return!0;if(i.tag==="Just")return!1;Se()},Qt=(i,c)=>({tag:i,_1:c}),Md=i=>Qt("Left",i),Od=i=>Qt("Right",i),Ad=i=>i,jd={map:i=>c=>i(c)},Sc={apply:i=>c=>i(c),Functor0:()=>jd},Ud={bind:i=>c=>c(i),Apply0:()=>Sc},$d={pure:Ad,Apply0:()=>Sc},Bd={Applicative0:()=>$d,Bind1:()=>Ud},tr=(i,c)=>({tag:"Tuple",_1:i,_2:c}),kc=i=>i._2,_c=i=>i._1,Vd=function(i,c,s,v){for(var S=0,N=v.length;S<N;S++)if(s(v[S]))return i(S);return c},Hd=function(i,c){return c.filter(i)},Wd=function(i,c){for(var s=c.length,v=0;v<s;v++)if(i(c[v]))return!0;return!1},ru=i=>c=>{const s=Vd(Kr,De,i,c);return s.tag==="Just"?ze("Just",c[s._1]):De};function Ec(i,c,s){return i==null?c:s(i)}const Hr=function(i){return function(c){if(i>=0&&i<c.length)return c.charAt(i);throw new Error("Data.String.Unsafe.charAt: Invalid index.")}},Qd=function(i){return i},Pn=function(i){return i.length},Jd=function(i){return function(c){return function(s){return function(v){var S=v.indexOf(s);return S===-1?c:i(S)}}}},Kd=function(i){return function(c){return c.substr(0,i)}},Qr=function(i){return function(c){return c.substring(i)}},Yd=function(i){return function(c){return{before:c.substring(0,i),after:c.substring(i)}}},ui=i=>c=>{const s=Yd(Pn(c)-Pn(i)|0)(c);return s.after===i?ze("Just",s.before):De},xc=Jd(Kr)(De),qa=i=>{const c=xc(i);return s=>{const v=c(s);if(v.tag==="Nothing")return!1;if(v.tag==="Just")return!0;Se()}},Xd=function(i){return function(c){return c.split(i)}},Go=function(i){return i.toLowerCase()};function ba(i){return new Error(i)}const ec=function(i){throw new Error(i)};var Ln=(function(){var i={},c="Pure",s="Throw",v="Catch",S="Sync",N="Async",W="Bind",J="Bracket",b="Fork",ie="Sequential",ue="Map",G="Apply",ne="Alt",se="Cons",Qe="Resume",re="Release",pe="Finalizer",Lt="Finalized",Ot="Forked";function O(_,M,ee,Q){this.tag=_,this._1=M,this._2=ee,this._3=Q}function ae(_){var M=function(ee,Q,R){return new O(_,ee,Q,R)};return M.tag=_,M}function it(_){return new O(c,void 0)}function tt(_){try{_()}catch(M){setTimeout(function(){throw M},0)}}function nt(_,M,ee){try{return M(ee())}catch(Q){return _(Q)}}function gt(_,M,ee){try{return M(ee)()}catch(Q){return ee(_(Q))(),it}}var yt=(function(){var _=1024,M=0,ee=0,Q=new Array(_),R=!1;function E(){var Y;for(R=!0;M!==0;)M--,Y=Q[ee],Q[ee]=void 0,ee=(ee+1)%_,Y();R=!1}return{isDraining:function(){return R},enqueue:function(Y){var j;M===_&&(j=R,E(),R=j),Q[(ee+M)%_]=Y,M++,R||E()}}})();function pn(_){var M={},ee=0,Q=0;return{register:function(R){var E=ee++;R.onComplete({rethrow:!0,handler:function(Y){return function(){Q--,delete M[E]}}})(),M[E]=R,Q++},isEmpty:function(){return Q===0},killAll:function(R,E){return function(){if(Q===0)return E();var Y=0,j={};function ge(Z){j[Z]=M[Z].kill(R,function(me){return function(){delete j[Z],Y--,_.isLeft(me)&&_.fromLeft(me)&&setTimeout(function(){throw _.fromLeft(me)},0),Y===0&&E()}})()}for(var Le in M)M.hasOwnProperty(Le)&&(Y++,ge(Le));return M={},ee=0,Q=0,function(Z){return new O(S,function(){for(var me in j)j.hasOwnProperty(me)&&j[me]()})}}}}}var st=0,xe=1,Ye=2,wt=3,Tt=4,ce=5,at=6;function x(_,M,ee){var Q=0,R=st,E=ee,Y=null,j=null,ge=null,Le=null,Z=null,me=0,ct=0,$e=null,St=!0;function kt(I){for(var F,K,X;;)switch(F=null,K=null,X=null,R){case Ye:R=xe;try{E=ge(E),Le===null?ge=null:(ge=Le._1,Le=Le._2)}catch(Te){R=ce,Y=_.left(Te),E=null}break;case wt:_.isLeft(E)?(R=ce,Y=E,E=null):ge===null?R=ce:(R=Ye,E=_.fromRight(E));break;case xe:switch(E.tag){case W:ge&&(Le=new O(se,ge,Le)),ge=E._2,R=xe,E=E._1;break;case c:ge===null?(R=ce,E=_.right(E._1)):(R=Ye,E=E._1);break;case S:R=wt,E=nt(_.left,_.right,E._1);break;case N:R=Tt,E=gt(_.left,E._1,function(Te){return function(){Q===I&&(Q++,yt.enqueue(function(){Q===I+1&&(R=wt,E=Te,kt(Q))}))}});return;case s:R=ce,Y=_.left(E._1),E=null;break;case v:ge===null?Z=new O(se,E,Z,j):Z=new O(se,E,new O(se,new O(Qe,ge,Le),Z,j),j),ge=null,Le=null,R=xe,E=E._1;break;case J:me++,ge===null?Z=new O(se,E,Z,j):Z=new O(se,E,new O(se,new O(Qe,ge,Le),Z,j),j),ge=null,Le=null,R=xe,E=E._1;break;case b:R=wt,F=x(_,M,E._2),M&&M.register(F),E._1&&F.run(),E=_.right(F);break;case ie:R=xe,E=z(_,M,E._1);break}break;case ce:if(ge=null,Le=null,Z===null)R=at,E=j||Y||E;else switch(F=Z._3,X=Z._1,Z=Z._2,X.tag){case v:j&&j!==F&&me===0?R=ce:Y&&(R=xe,E=X._2(_.fromLeft(Y)),Y=null);break;case Qe:j&&j!==F&&me===0||Y?R=ce:(ge=X._1,Le=X._2,R=Ye,E=_.fromRight(E));break;case J:me--,Y===null&&(K=_.fromRight(E),Z=new O(se,new O(re,X._2,K),Z,F),(j===F||me>0)&&(R=xe,E=X._3(K)));break;case re:Z=new O(se,new O(Lt,E,Y),Z,j),R=xe,j&&j!==F&&me===0?E=X._1.killed(_.fromLeft(j))(X._2):Y?E=X._1.failed(_.fromLeft(Y))(X._2):E=X._1.completed(_.fromRight(E))(X._2),Y=null,me++;break;case pe:me++,Z=new O(se,new O(Lt,E,Y),Z,j),R=xe,E=X._1;break;case Lt:me--,R=ce,E=X._1,Y=X._2;break}break;case at:for(var fe in $e)$e.hasOwnProperty(fe)&&(St=St&&$e[fe].rethrow,tt($e[fe].handler(E)));$e=null,j&&Y?setTimeout(function(){throw _.fromLeft(Y)},0):_.isLeft(E)&&St&&setTimeout(function(){if(St)throw _.fromLeft(E)},0);return;case st:R=xe;break;case Tt:return}}function oe(I){return function(){if(R===at)return St=St&&I.rethrow,I.handler(E)(),function(){};var F=ct++;return $e=$e||{},$e[F]=I,function(){$e!==null&&delete $e[F]}}}function A(I,F){return function(){if(R===at)return F(_.right(void 0))(),function(){};var K=oe({rethrow:!1,handler:function(){return F(_.right(void 0))}})();switch(R){case st:j=_.left(I),R=at,E=j,kt(Q);break;case Tt:j===null&&(j=_.left(I)),me===0&&(R===Tt&&(Z=new O(se,new O(pe,E(I)),Z,j)),R=ce,E=null,Y=null,kt(++Q));break;default:j===null&&(j=_.left(I)),me===0&&(R=ce,E=null,Y=null)}return K}}function H(I){return function(){var F=oe({rethrow:!1,handler:I})();return R===st&&kt(Q),F}}return{kill:A,join:H,onComplete:oe,isSuspended:function(){return R===st},run:function(){R===st&&(yt.isDraining()?kt(Q):yt.enqueue(function(){kt(Q)}))}}}function B(_,M,ee,Q){var R=0,E={},Y=0,j={},ge=new Error("[ParAff] Early exit"),Le=null,Z=i;function me(oe,A,H){var I=A,F=null,K=null,X=0,fe={},Te,Jt;e:for(;;)switch(Te=null,I.tag){case Ot:if(I._3===i&&(Te=E[I._1],fe[X++]=Te.kill(oe,function(lr){return function(){X--,X===0&&H(lr)()}})),F===null)break e;I=F._2,K===null?F=null:(F=K._1,K=K._2);break;case ue:I=I._2;break;case G:case ne:F&&(K=new O(se,F,K)),F=I,I=I._1;break}if(X===0)H(_.right(void 0))();else for(Jt=0,Te=X;Jt<Te;Jt++)fe[Jt]=fe[Jt]();return fe}function ct(oe,A,H){var I,F,K,X,fe,Te;for(_.isLeft(oe)?(I=oe,F=null):(F=oe,I=null);;){if(K=null,X=null,fe=null,Te=null,Le!==null)return;if(A===null){Q(I||F)();return}if(A._3!==i)return;switch(A.tag){case ue:I===null?(A._3=_.right(A._1(_.fromRight(F))),F=A._3):A._3=I;break;case G:if(K=A._1._3,X=A._2._3,I){if(A._3=I,fe=!0,Te=Y++,j[Te]=me(ge,I===K?A._2:A._1,function(){return function(){delete j[Te],fe?fe=!1:H===null?ct(I,null,null):ct(I,H._1,H._2)}}),fe){fe=!1;return}}else{if(K===i||X===i)return;F=_.right(_.fromRight(K)(_.fromRight(X))),A._3=F}break;case ne:if(K=A._1._3,X=A._2._3,K===i&&_.isLeft(X)||X===i&&_.isLeft(K))return;if(K!==i&&_.isLeft(K)&&X!==i&&_.isLeft(X))I=F===K?X:K,F=null,A._3=I;else if(A._3=F,fe=!0,Te=Y++,j[Te]=me(ge,F===K?A._2:A._1,function(){return function(){delete j[Te],fe?fe=!1:H===null?ct(F,null,null):ct(F,H._1,H._2)}}),fe){fe=!1;return}break}H===null?A=null:(A=H._1,H=H._2)}}function $e(oe){return function(A){return function(){delete E[oe._1],oe._3=A,ct(A,oe._2._1,oe._2._2)}}}function St(){var oe=xe,A=ee,H=null,I=null,F,K;e:for(;;)switch(F=null,K=null,oe){case xe:switch(A.tag){case ue:H&&(I=new O(se,H,I)),H=new O(ue,A._1,i,i),A=A._2;break;case G:H&&(I=new O(se,H,I)),H=new O(G,i,A._2,i),A=A._1;break;case ne:H&&(I=new O(se,H,I)),H=new O(ne,i,A._2,i),A=A._1;break;default:K=R++,oe=ce,F=A,A=new O(Ot,K,new O(se,H,I),i),F=x(_,M,F),F.onComplete({rethrow:!1,handler:$e(A)})(),E[K]=F,M&&M.register(F)}break;case ce:if(H===null)break e;H._1===i?(H._1=A,oe=xe,A=H._2,H._2=i):(H._2=A,A=H,I===null?H=null:(H=I._1,I=I._2))}for(Z=A,K=0;K<R;K++)E[K].run()}function kt(oe,A){Le=_.left(oe);var H;for(var I in j)if(j.hasOwnProperty(I)){H=j[I];for(I in H)H.hasOwnProperty(I)&&H[I]()}j=null;var F=me(oe,Z,A);return function(K){return new O(N,function(X){return function(){for(var fe in F)F.hasOwnProperty(fe)&&F[fe]();return it}})}}return St(),function(oe){return new O(N,function(A){return function(){return kt(oe,A)}})}}function z(_,M,ee){return new O(N,function(Q){return function(){return B(_,M,ee,Q)}})}return O.EMPTY=i,O.Pure=ae(c),O.Throw=ae(s),O.Catch=ae(v),O.Sync=ae(S),O.Async=ae(N),O.Bind=ae(W),O.Bracket=ae(J),O.Fork=ae(b),O.Seq=ae(ie),O.ParMap=ae(ue),O.ParApply=ae(G),O.ParAlt=ae(ne),O.Fiber=x,O.Supervisor=pn,O.Scheduler=yt,O.nonCanceler=it,O})();const Gd=Ln.Pure;Ln.Throw;function nr(i){return function(c){return Ln.Bind(i,c)}}const rr=Ln.Sync,Zd=Ln.Async;function oi(i,c){return function(){return Ln.Fiber(i,null,c)}}Ln.Seq;const ii={isLeft:i=>{if(i.tag==="Left")return!0;if(i.tag==="Right")return!1;Se()},fromLeft:i=>{if(i.tag==="Left")return i._1;if(i.tag==="Right")return ec("unsafeFromLeft: Right");Se()},fromRight:i=>{if(i.tag==="Right")return i._1;if(i.tag==="Left")return ec("unsafeFromRight: Left");Se()},left:Md,right:Od},qd=(()=>{const i=Gd();return c=>i})(),bd=function(c){return function(s){return function(v){return function(){return c(s,v)}}}},Cc=i=>({bind:c=>s=>i.Bind1().bind(c)(v=>{if(v.tag==="Left")return i.Applicative0().pure(Qt("Left",v._1));if(v.tag==="Right")return s(v._1);Se()}),Apply0:()=>Nc(i)}),Nc=i=>{const c=i.Bind1().Apply0().Functor0(),s={map:v=>c.map(S=>{if(S.tag==="Left")return Qt("Left",S._1);if(S.tag==="Right")return Qt("Right",v(S._1));Se()})};return{apply:(()=>{const v=Cc(i);return S=>N=>v.bind(S)(W=>v.bind(N)(J=>si(i).pure(W(J))))})(),Functor0:()=>s}},si=i=>({pure:c=>i.Applicative0().pure(Qt("Right",c)),Apply0:()=>Nc(i)}),ep=i=>{const c={Applicative0:()=>si(i),Bind1:()=>Cc(i)};return{throwError:s=>i.Applicative0().pure(Qt("Left",s)),Monad0:()=>c}},tp=(i,c)=>({tag:"NonEmpty",_1:i,_2:c}),np=(i,c,s)=>({tag:i,_1:c,_2:s}),rp=np("Nil");function tc(i){return Object.prototype.toString.call(i).slice(8,-1)}const lp=(i,c,s)=>({tag:i,_1:c,_2:s}),up=i=>c=>s=>tc(s)===c?si(i).pure(s):ep(i).throwError(tp(lp("TypeMismatch",c,tc(s)),rp));function op(i,c,s){return s.then(i,c)}function nc(i){return Promise.resolve(i)}function ip(i,c,s){return s instanceof Error?i(s):c}const ai=i=>c=>Zd(s=>()=>(op(v=>{const N=s(Qt("Right",v))();return nc(N)},v=>{const N=s(Qt("Left",i(v)))();return nc(N)},c),qd)),ci=i=>{const c=ip(Kr,De,i),s=up(Bd)("String")(i),v=(()=>{const S=(()=>{if(s.tag==="Left")return De;if(s.tag==="Right")return ze("Just",ba(s._1));Se()})();return c.tag==="Nothing"?S:c})();if(v.tag==="Nothing")return ba("Promise failed, couldn't extract JS Error or String");if(v.tag==="Just")return v._1;Se()},rc=Ee.createElement;Ee.Fragment;const lc=null;function zn(i){return c=>Array.isArray(c.children)?rc.apply(null,[i,c].concat(c.children)):rc(i,c)}var nu={},Zo={exports:{}},et={},qo={exports:{}},bo={};var uc;function sp(){return uc||(uc=1,(function(i){function c(x,B){var z=x.length;x.push(B);e:for(;0<z;){var _=z-1>>>1,M=x[_];if(0<S(M,B))x[_]=B,x[z]=M,z=_;else break e}}function s(x){return x.length===0?null:x[0]}function v(x){if(x.length===0)return null;var B=x[0],z=x.pop();if(z!==B){x[0]=z;e:for(var _=0,M=x.length,ee=M>>>1;_<ee;){var Q=2*(_+1)-1,R=x[Q],E=Q+1,Y=x[E];if(0>S(R,z))E<M&&0>S(Y,R)?(x[_]=Y,x[E]=z,_=E):(x[_]=R,x[Q]=z,_=Q);else if(E<M&&0>S(Y,z))x[_]=Y,x[E]=z,_=E;else break e}}return B}function S(x,B){var z=x.sortIndex-B.sortIndex;return z!==0?z:x.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var N=performance;i.unstable_now=function(){return N.now()}}else{var W=Date,J=W.now();i.unstable_now=function(){return W.now()-J}}var b=[],ie=[],ue=1,G=null,ne=3,se=!1,Qe=!1,re=!1,pe=typeof setTimeout=="function"?setTimeout:null,Lt=typeof clearTimeout=="function"?clearTimeout:null,Ot=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(x){for(var B=s(ie);B!==null;){if(B.callback===null)v(ie);else if(B.startTime<=x)v(ie),B.sortIndex=B.expirationTime,c(b,B);else break;B=s(ie)}}function ae(x){if(re=!1,O(x),!Qe)if(s(b)!==null)Qe=!0,ce(it);else{var B=s(ie);B!==null&&at(ae,B.startTime-x)}}function it(x,B){Qe=!1,re&&(re=!1,Lt(gt),gt=-1),se=!0;var z=ne;try{for(O(B),G=s(b);G!==null&&(!(G.expirationTime>B)||x&&!st());){var _=G.callback;if(typeof _=="function"){G.callback=null,ne=G.priorityLevel;var M=_(G.expirationTime<=B);B=i.unstable_now(),typeof M=="function"?G.callback=M:G===s(b)&&v(b),O(B)}else v(b);G=s(b)}if(G!==null)var ee=!0;else{var Q=s(ie);Q!==null&&at(ae,Q.startTime-B),ee=!1}return ee}finally{G=null,ne=z,se=!1}}var tt=!1,nt=null,gt=-1,yt=5,pn=-1;function st(){return!(i.unstable_now()-pn<yt)}function xe(){if(nt!==null){var x=i.unstable_now();pn=x;var B=!0;try{B=nt(!0,x)}finally{B?Ye():(tt=!1,nt=null)}}else tt=!1}var Ye;if(typeof Ot=="function")Ye=function(){Ot(xe)};else if(typeof MessageChannel<"u"){var wt=new MessageChannel,Tt=wt.port2;wt.port1.onmessage=xe,Ye=function(){Tt.postMessage(null)}}else Ye=function(){pe(xe,0)};function ce(x){nt=x,tt||(tt=!0,Ye())}function at(x,B){gt=pe(function(){x(i.unstable_now())},B)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(x){x.callback=null},i.unstable_continueExecution=function(){Qe||se||(Qe=!0,ce(it))},i.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):yt=0<x?Math.floor(1e3/x):5},i.unstable_getCurrentPriorityLevel=function(){return ne},i.unstable_getFirstCallbackNode=function(){return s(b)},i.unstable_next=function(x){switch(ne){case 1:case 2:case 3:var B=3;break;default:B=ne}var z=ne;ne=B;try{return x()}finally{ne=z}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(x,B){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var z=ne;ne=x;try{return B()}finally{ne=z}},i.unstable_scheduleCallback=function(x,B,z){var _=i.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?_+z:_):z=_,x){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=z+M,x={id:ue++,callback:B,priorityLevel:x,startTime:z,expirationTime:M,sortIndex:-1},z>_?(x.sortIndex=z,c(ie,x),s(b)===null&&x===s(ie)&&(re?(Lt(gt),gt=-1):re=!0,at(ae,z-_))):(x.sortIndex=M,c(b,x),Qe||se||(Qe=!0,ce(it))),x},i.unstable_shouldYield=st,i.unstable_wrapCallback=function(x){var B=ne;return function(){var z=ne;ne=B;try{return x.apply(this,arguments)}finally{ne=z}}}})(bo)),bo}var oc;function ap(){return oc||(oc=1,qo.exports=sp()),qo.exports}var ic;function cp(){if(ic)return et;ic=1;var i=Id(),c=ap();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v=new Set,S={};function N(e,t){W(e,t),W(e+"Capture",t)}function W(e,t){for(S[e]=t,e=0;e<t.length;e++)v.add(t[e])}var J=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),b=Object.prototype.hasOwnProperty,ie=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ue={},G={};function ne(e){return b.call(G,e)?!0:b.call(ue,e)?!1:ie.test(e)?G[e]=!0:(ue[e]=!0,!1)}function se(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qe(e,t,n,r){if(t===null||typeof t>"u"||se(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function re(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new re(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new re(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new re(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new re(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new re(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new re(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){pe[e]=new re(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){pe[e]=new re(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){pe[e]=new re(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lt=/[\-:]([a-z])/g;function Ot(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Lt,Ot);pe[t]=new re(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Lt,Ot);pe[t]=new re(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Lt,Ot);pe[t]=new re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new re(e,1,!1,e.toLowerCase(),null,!1,!1)}),pe.xlinkHref=new re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){pe[e]=new re(e,1,!1,e.toLowerCase(),null,!0,!0)});function O(e,t,n,r){var l=pe.hasOwnProperty(t)?pe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Qe(t,n,l,r)&&(n=null),r||l===null?ne(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ae=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,it=Symbol.for("react.element"),tt=Symbol.for("react.portal"),nt=Symbol.for("react.fragment"),gt=Symbol.for("react.strict_mode"),yt=Symbol.for("react.profiler"),pn=Symbol.for("react.provider"),st=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),wt=Symbol.for("react.suspense_list"),Tt=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),at=Symbol.for("react.offscreen"),x=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=x&&e[x]||e["@@iterator"],typeof e=="function"?e:null)}var z=Object.assign,_;function M(e){if(_===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return`
2+`+_+e}var ee=!1;function Q(e,t){if(!e||ee)return"";ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var r=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){r=h}e.call(t.prototype)}else{try{throw Error()}catch(h){r=h}e()}}catch(h){if(h&&r&&typeof h.stack=="string"){for(var l=h.stack.split(`
3+`),u=r.stack.split(`
4+`),o=l.length-1,a=u.length-1;1<=o&&0<=a&&l[o]!==u[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==u[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==u[a]){var f=`
5+`+l[o].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=o&&0<=a);break}}}finally{ee=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function R(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=Q(e.type,!1),e;case 11:return e=Q(e.type.render,!1),e;case 1:return e=Q(e.type,!0),e;default:return""}}function E(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nt:return"Fragment";case tt:return"Portal";case yt:return"Profiler";case gt:return"StrictMode";case Ye:return"Suspense";case wt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case st:return(e.displayName||"Context")+".Consumer";case pn:return(e._context.displayName||"Context")+".Provider";case xe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tt:return t=e.displayName||null,t!==null?t:E(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return E(e(t))}catch{}}return null}function Y(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E(t);case 8:return t===gt?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function j(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Le(e){var t=ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Z(e){e._valueTracker||(e._valueTracker=Le(e))}function me(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ge(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ct(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function $e(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function St(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=j(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kt(e,t){t=t.checked,t!=null&&O(e,"checked",t,!1)}function oe(e,t){kt(e,t);var n=j(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?H(e,t.type,n):t.hasOwnProperty("defaultValue")&&H(e,t.type,j(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function A(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function H(e,t,n){(t!=="number"||ct(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var I=Array.isArray;function F(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+j(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function K(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function X(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(s(92));if(I(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:j(n)}}function fe(e,t){var n=j(t.value),r=j(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Te(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Jt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lr(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Jt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yr,fi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yr=Yr||document.createElement("div"),Yr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mc=["Webkit","ms","Moz","O"];Object.keys(or).forEach(function(e){Mc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),or[t]=or[e]})});function di(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||or.hasOwnProperty(e)&&or[e]?(""+t).trim():t+"px"}function pi(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=di(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Oc=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function iu(e,t){if(t){if(Oc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function su(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var au=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fu=null,Tn=null,Rn=null;function mi(e){if(e=zr(e)){if(typeof fu!="function")throw Error(s(280));var t=e.stateNode;t&&(t=gl(t),fu(e.stateNode,e.type,t))}}function hi(e){Tn?Rn?Rn.push(e):Rn=[e]:Tn=e}function vi(){if(Tn){var e=Tn,t=Rn;if(Rn=Tn=null,mi(e),t)for(e=0;e<t.length;e++)mi(t[e])}}function gi(e,t){return e(t)}function yi(){}var du=!1;function wi(e,t,n){if(du)return e(t,n);du=!0;try{return gi(e,t,n)}finally{du=!1,(Tn!==null||Rn!==null)&&(yi(),vi())}}function ir(e,t){var n=e.stateNode;if(n===null)return null;var r=gl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var pu=!1;if(J)try{var sr={};Object.defineProperty(sr,"passive",{get:function(){pu=!0}}),window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{pu=!1}function Ac(e,t,n,r,l,u,o,a,f){var h=Array.prototype.slice.call(arguments,3);try{t.apply(n,h)}catch(y){this.onError(y)}}var ar=!1,Xr=null,Gr=!1,mu=null,jc={onError:function(e){ar=!0,Xr=e}};function Uc(e,t,n,r,l,u,o,a,f){ar=!1,Xr=null,Ac.apply(jc,arguments)}function $c(e,t,n,r,l,u,o,a,f){if(Uc.apply(this,arguments),ar){if(ar){var h=Xr;ar=!1,Xr=null}else throw Error(s(198));Gr||(Gr=!0,mu=h)}}function mn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Si(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ki(e){if(mn(e)!==e)throw Error(s(188))}function Bc(e){var t=e.alternate;if(!t){if(t=mn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var u=l.alternate;if(u===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===n)return ki(l),e;if(u===r)return ki(l),t;u=u.sibling}throw Error(s(188))}if(n.return!==r.return)n=l,r=u;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=u;break}if(a===r){o=!0,r=l,n=u;break}a=a.sibling}if(!o){for(a=u.child;a;){if(a===n){o=!0,n=u,r=l;break}if(a===r){o=!0,r=u,n=l;break}a=a.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function _i(e){return e=Bc(e),e!==null?Ei(e):null}function Ei(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ei(e);if(t!==null)return t;e=e.sibling}return null}var xi=c.unstable_scheduleCallback,Ci=c.unstable_cancelCallback,Vc=c.unstable_shouldYield,Hc=c.unstable_requestPaint,Ne=c.unstable_now,Wc=c.unstable_getCurrentPriorityLevel,hu=c.unstable_ImmediatePriority,Ni=c.unstable_UserBlockingPriority,Zr=c.unstable_NormalPriority,Qc=c.unstable_LowPriority,Pi=c.unstable_IdlePriority,qr=null,Rt=null;function Jc(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(qr,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:Xc,Kc=Math.log,Yc=Math.LN2;function Xc(e){return e>>>=0,e===0?32:31-(Kc(e)/Yc|0)|0}var br=64,el=4194304;function cr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,u=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=cr(a):(u&=o,u!==0&&(r=cr(u)))}else o=n&~l,o!==0?r=cr(o):u!==0&&(r=cr(u));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_t(t),l=1<<n,r|=e[n],t&=~l;return r}function Gc(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,u=e.pendingLanes;0<u;){var o=31-_t(u),a=1<<o,f=l[o];f===-1?((a&n)===0||(a&r)!==0)&&(l[o]=Gc(a,t)):f<=t&&(e.expiredLanes|=a),u&=~a}}function vu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zi(){var e=br;return br<<=1,(br&4194240)===0&&(br=64),e}function gu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function qc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-_t(n),u=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~u}}function yu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var le=0;function Li(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ti,wu,Ri,Ii,Fi,Su=!1,nl=[],Kt=null,Yt=null,Xt=null,dr=new Map,pr=new Map,Gt=[],bc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Di(e,t){switch(e){case"focusin":case"focusout":Kt=null;break;case"dragenter":case"dragleave":Yt=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pr.delete(t.pointerId)}}function mr(e,t,n,r,l,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[l]},t!==null&&(t=zr(t),t!==null&&wu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function ef(e,t,n,r,l){switch(t){case"focusin":return Kt=mr(Kt,e,t,n,r,l),!0;case"dragenter":return Yt=mr(Yt,e,t,n,r,l),!0;case"mouseover":return Xt=mr(Xt,e,t,n,r,l),!0;case"pointerover":var u=l.pointerId;return dr.set(u,mr(dr.get(u)||null,e,t,n,r,l)),!0;case"gotpointercapture":return u=l.pointerId,pr.set(u,mr(pr.get(u)||null,e,t,n,r,l)),!0}return!1}function Mi(e){var t=hn(e.target);if(t!==null){var n=mn(t);if(n!==null){if(t=n.tag,t===13){if(t=Si(n),t!==null){e.blockedOn=t,Fi(e.priority,function(){Ri(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_u(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);au=r,n.target.dispatchEvent(r),au=null}else return t=zr(n),t!==null&&wu(t),e.blockedOn=n,!1;t.shift()}return!0}function Oi(e,t,n){rl(e)&&n.delete(t)}function tf(){Su=!1,Kt!==null&&rl(Kt)&&(Kt=null),Yt!==null&&rl(Yt)&&(Yt=null),Xt!==null&&rl(Xt)&&(Xt=null),dr.forEach(Oi),pr.forEach(Oi)}function hr(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,tf)))}function vr(e){function t(l){return hr(l,e)}if(0<nl.length){hr(nl[0],e);for(var n=1;n<nl.length;n++){var r=nl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kt!==null&&hr(Kt,e),Yt!==null&&hr(Yt,e),Xt!==null&&hr(Xt,e),dr.forEach(t),pr.forEach(t),n=0;n<Gt.length;n++)r=Gt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gt.length&&(n=Gt[0],n.blockedOn===null);)Mi(n),n.blockedOn===null&&Gt.shift()}var In=ae.ReactCurrentBatchConfig,ll=!0;function nf(e,t,n,r){var l=le,u=In.transition;In.transition=null;try{le=1,ku(e,t,n,r)}finally{le=l,In.transition=u}}function rf(e,t,n,r){var l=le,u=In.transition;In.transition=null;try{le=4,ku(e,t,n,r)}finally{le=l,In.transition=u}}function ku(e,t,n,r){if(ll){var l=_u(e,t,n,r);if(l===null)Uu(e,t,r,ul,n),Di(e,r);else if(ef(l,e,t,n,r))r.stopPropagation();else if(Di(e,r),t&4&&-1<bc.indexOf(e)){for(;l!==null;){var u=zr(l);if(u!==null&&Ti(u),u=_u(e,t,n,r),u===null&&Uu(e,t,r,ul,n),u===l)break;l=u}l!==null&&r.stopPropagation()}else Uu(e,t,r,null,n)}}var ul=null;function _u(e,t,n,r){if(ul=null,e=cu(r),e=hn(e),e!==null)if(t=mn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Si(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ul=e,null}function Ai(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wc()){case hu:return 1;case Ni:return 4;case Zr:case Qc:return 16;case Pi:return 536870912;default:return 16}default:return 16}}var Zt=null,Eu=null,ol=null;function ji(){if(ol)return ol;var e,t=Eu,n=t.length,r,l="value"in Zt?Zt.value:Zt.textContent,u=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[u-r];r++);return ol=l.slice(e,1<r?1-r:void 0)}function il(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function sl(){return!0}function Ui(){return!1}function rt(e){function t(n,r,l,u,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(u):u[a]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?sl:Ui,this.isPropagationStopped=Ui,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=sl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=sl)},persist:function(){},isPersistent:sl}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xu=rt(Fn),gr=z({},Fn,{view:0,detail:0}),lf=rt(gr),Cu,Nu,yr,al=z({},gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yr&&(yr&&e.type==="mousemove"?(Cu=e.screenX-yr.screenX,Nu=e.screenY-yr.screenY):Nu=Cu=0,yr=e),Cu)},movementY:function(e){return"movementY"in e?e.movementY:Nu}}),$i=rt(al),uf=z({},al,{dataTransfer:0}),of=rt(uf),sf=z({},gr,{relatedTarget:0}),Pu=rt(sf),af=z({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0}),cf=rt(af),ff=z({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),df=rt(ff),pf=z({},Fn,{data:0}),Bi=rt(pf),mf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vf[e])?!!t[e]:!1}function zu(){return gf}var yf=z({},gr,{key:function(e){if(e.key){var t=mf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=il(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(e){return e.type==="keypress"?il(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?il(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wf=rt(yf),Sf=z({},al,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vi=rt(Sf),kf=z({},gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),_f=rt(kf),Ef=z({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),xf=rt(Ef),Cf=z({},al,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nf=rt(Cf),Pf=[9,13,27,32],Lu=J&&"CompositionEvent"in window,wr=null;J&&"documentMode"in document&&(wr=document.documentMode);var zf=J&&"TextEvent"in window&&!wr,Hi=J&&(!Lu||wr&&8<wr&&11>=wr),Wi=" ",Qi=!1;function Ji(e,t){switch(e){case"keyup":return Pf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ki(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Lf(e,t){switch(e){case"compositionend":return Ki(t);case"keypress":return t.which!==32?null:(Qi=!0,Wi);case"textInput":return e=t.data,e===Wi&&Qi?null:e;default:return null}}function Tf(e,t){if(Dn)return e==="compositionend"||!Lu&&Ji(e,t)?(e=ji(),ol=Eu=Zt=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Hi&&t.locale!=="ko"?null:t.data;default:return null}}var Rf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rf[e.type]:t==="textarea"}function Xi(e,t,n,r){hi(r),t=ml(t,"onChange"),0<t.length&&(n=new xu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sr=null,kr=null;function If(e){ps(e,0)}function cl(e){var t=Un(e);if(me(t))return e}function Ff(e,t){if(e==="change")return t}var Gi=!1;if(J){var Tu;if(J){var Ru="oninput"in document;if(!Ru){var Zi=document.createElement("div");Zi.setAttribute("oninput","return;"),Ru=typeof Zi.oninput=="function"}Tu=Ru}else Tu=!1;Gi=Tu&&(!document.documentMode||9<document.documentMode)}function qi(){Sr&&(Sr.detachEvent("onpropertychange",bi),kr=Sr=null)}function bi(e){if(e.propertyName==="value"&&cl(kr)){var t=[];Xi(t,kr,e,cu(e)),wi(If,t)}}function Df(e,t,n){e==="focusin"?(qi(),Sr=t,kr=n,Sr.attachEvent("onpropertychange",bi)):e==="focusout"&&qi()}function Mf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cl(kr)}function Of(e,t){if(e==="click")return cl(t)}function Af(e,t){if(e==="input"||e==="change")return cl(t)}function jf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:jf;function _r(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!b.call(t,l)||!Et(e[l],t[l]))return!1}return!0}function es(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ts(e,t){var n=es(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=es(n)}}function ns(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ns(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rs(){for(var e=window,t=ct();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ct(e.document)}return t}function Iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uf(e){var t=rs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ns(n.ownerDocument.documentElement,n)){if(r!==null&&Iu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,u=Math.min(r.start,l);r=r.end===void 0?u:Math.min(r.end,l),!e.extend&&u>r&&(l=r,r=u,u=l),l=ts(n,u);var o=ts(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var $f=J&&"documentMode"in document&&11>=document.documentMode,Mn=null,Fu=null,Er=null,Du=!1;function ls(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Du||Mn==null||Mn!==ct(r)||(r=Mn,"selectionStart"in r&&Iu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&_r(Er,r)||(Er=r,r=ml(Fu,"onSelect"),0<r.length&&(t=new xu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Mn)))}function fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var On={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionend:fl("Transition","TransitionEnd")},Mu={},us={};J&&(us=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function dl(e){if(Mu[e])return Mu[e];if(!On[e])return e;var t=On[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in us)return Mu[e]=t[n];return e}var os=dl("animationend"),is=dl("animationiteration"),ss=dl("animationstart"),as=dl("transitionend"),cs=new Map,fs="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function qt(e,t){cs.set(e,t),N(t,[e])}for(var Ou=0;Ou<fs.length;Ou++){var Au=fs[Ou],Bf=Au.toLowerCase(),Vf=Au[0].toUpperCase()+Au.slice(1);qt(Bf,"on"+Vf)}qt(os,"onAnimationEnd"),qt(is,"onAnimationIteration"),qt(ss,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(as,"onTransitionEnd"),W("onMouseEnter",["mouseout","mouseover"]),W("onMouseLeave",["mouseout","mouseover"]),W("onPointerEnter",["pointerout","pointerover"]),W("onPointerLeave",["pointerout","pointerover"]),N("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),N("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),N("onBeforeInput",["compositionend","keypress","textInput","paste"]),N("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),N("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),N("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Hf=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function ds(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,$c(r,t,void 0,e),e.currentTarget=null}function ps(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],f=a.instance,h=a.currentTarget;if(a=a.listener,f!==u&&l.isPropagationStopped())break e;ds(l,a,h),u=f}else for(o=0;o<r.length;o++){if(a=r[o],f=a.instance,h=a.currentTarget,a=a.listener,f!==u&&l.isPropagationStopped())break e;ds(l,a,h),u=f}}}if(Gr)throw e=mu,Gr=!1,mu=null,e}function he(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(ms(t,e,2,!1),n.add(r))}function ju(e,t,n){var r=0;t&&(r|=4),ms(n,e,r,t)}var pl="_reactListening"+Math.random().toString(36).slice(2);function Cr(e){if(!e[pl]){e[pl]=!0,v.forEach(function(n){n!=="selectionchange"&&(Hf.has(n)||ju(n,!1,e),ju(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pl]||(t[pl]=!0,ju("selectionchange",!1,t))}}function ms(e,t,n,r){switch(Ai(t)){case 1:var l=nf;break;case 4:l=rf;break;default:l=ku}n=l.bind(null,t,n,e),l=void 0,!pu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Uu(e,t,n,r,l){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var f=o.tag;if((f===3||f===4)&&(f=o.stateNode.containerInfo,f===l||f.nodeType===8&&f.parentNode===l))return;o=o.return}for(;a!==null;){if(o=hn(a),o===null)return;if(f=o.tag,f===5||f===6){r=u=o;continue e}a=a.parentNode}}r=r.return}wi(function(){var h=u,y=cu(n),w=[];e:{var g=cs.get(e);if(g!==void 0){var C=xu,L=e;switch(e){case"keypress":if(il(n)===0)break e;case"keydown":case"keyup":C=wf;break;case"focusin":L="focus",C=Pu;break;case"focusout":L="blur",C=Pu;break;case"beforeblur":case"afterblur":C=Pu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=$i;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=of;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=_f;break;case os:case is:case ss:C=cf;break;case as:C=xf;break;case"scroll":C=lf;break;case"wheel":C=Nf;break;case"copy":case"cut":case"paste":C=df;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Vi}var T=(t&4)!==0,Pe=!T&&e==="scroll",p=T?g!==null?g+"Capture":null:g;T=[];for(var d=h,m;d!==null;){m=d;var k=m.stateNode;if(m.tag===5&&k!==null&&(m=k,p!==null&&(k=ir(d,p),k!=null&&T.push(Nr(d,k,m)))),Pe)break;d=d.return}0<T.length&&(g=new C(g,L,null,n,y),w.push({event:g,listeners:T}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",g&&n!==au&&(L=n.relatedTarget||n.fromElement)&&(hn(L)||L[At]))break e;if((C||g)&&(g=y.window===y?y:(g=y.ownerDocument)?g.defaultView||g.parentWindow:window,C?(L=n.relatedTarget||n.toElement,C=h,L=L?hn(L):null,L!==null&&(Pe=mn(L),L!==Pe||L.tag!==5&&L.tag!==6)&&(L=null)):(C=null,L=h),C!==L)){if(T=$i,k="onMouseLeave",p="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(T=Vi,k="onPointerLeave",p="onPointerEnter",d="pointer"),Pe=C==null?g:Un(C),m=L==null?g:Un(L),g=new T(k,d+"leave",C,n,y),g.target=Pe,g.relatedTarget=m,k=null,hn(y)===h&&(T=new T(p,d+"enter",L,n,y),T.target=m,T.relatedTarget=Pe,k=T),Pe=k,C&&L)t:{for(T=C,p=L,d=0,m=T;m;m=An(m))d++;for(m=0,k=p;k;k=An(k))m++;for(;0<d-m;)T=An(T),d--;for(;0<m-d;)p=An(p),m--;for(;d--;){if(T===p||p!==null&&T===p.alternate)break t;T=An(T),p=An(p)}T=null}else T=null;C!==null&&hs(w,g,C,T,!1),L!==null&&Pe!==null&&hs(w,Pe,L,T,!0)}}e:{if(g=h?Un(h):window,C=g.nodeName&&g.nodeName.toLowerCase(),C==="select"||C==="input"&&g.type==="file")var D=Ff;else if(Yi(g))if(Gi)D=Af;else{D=Mf;var U=Df}else(C=g.nodeName)&&C.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(D=Of);if(D&&(D=D(e,h))){Xi(w,D,n,y);break e}U&&U(e,g,h),e==="focusout"&&(U=g._wrapperState)&&U.controlled&&g.type==="number"&&H(g,"number",g.value)}switch(U=h?Un(h):window,e){case"focusin":(Yi(U)||U.contentEditable==="true")&&(Mn=U,Fu=h,Er=null);break;case"focusout":Er=Fu=Mn=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,ls(w,n,y);break;case"selectionchange":if($f)break;case"keydown":case"keyup":ls(w,n,y)}var $;if(Lu)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Dn?Ji(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(Hi&&n.locale!=="ko"&&(Dn||V!=="onCompositionStart"?V==="onCompositionEnd"&&Dn&&($=ji()):(Zt=y,Eu="value"in Zt?Zt.value:Zt.textContent,Dn=!0)),U=ml(h,V),0<U.length&&(V=new Bi(V,e,null,n,y),w.push({event:V,listeners:U}),$?V.data=$:($=Ki(n),$!==null&&(V.data=$)))),($=zf?Lf(e,n):Tf(e,n))&&(h=ml(h,"onBeforeInput"),0<h.length&&(y=new Bi("onBeforeInput","beforeinput",null,n,y),w.push({event:y,listeners:h}),y.data=$))}ps(w,t)})}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,u=l.stateNode;l.tag===5&&u!==null&&(l=u,u=ir(e,n),u!=null&&r.unshift(Nr(e,u,l)),u=ir(e,t),u!=null&&r.push(Nr(e,u,l))),e=e.return}return r}function An(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hs(e,t,n,r,l){for(var u=t._reactName,o=[];n!==null&&n!==r;){var a=n,f=a.alternate,h=a.stateNode;if(f!==null&&f===r)break;a.tag===5&&h!==null&&(a=h,l?(f=ir(n,u),f!=null&&o.unshift(Nr(n,f,a))):l||(f=ir(n,u),f!=null&&o.push(Nr(n,f,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Wf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function vs(e){return(typeof e=="string"?e:""+e).replace(Wf,`
6+`).replace(Qf,"")}function hl(e,t,n){if(t=vs(t),vs(e)!==t&&n)throw Error(s(425))}function vl(){}var $u=null,Bu=null;function Vu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hu=typeof setTimeout=="function"?setTimeout:void 0,Jf=typeof clearTimeout=="function"?clearTimeout:void 0,gs=typeof Promise=="function"?Promise:void 0,Kf=typeof queueMicrotask=="function"?queueMicrotask:typeof gs<"u"?function(e){return gs.resolve(null).then(e).catch(Yf)}:Hu;function Yf(e){setTimeout(function(){throw e})}function Wu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),vr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);vr(t)}function bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ys(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var jn=Math.random().toString(36).slice(2),It="__reactFiber$"+jn,Pr="__reactProps$"+jn,At="__reactContainer$"+jn,Qu="__reactEvents$"+jn,Xf="__reactListeners$"+jn,Gf="__reactHandles$"+jn;function hn(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[At]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ys(e);e!==null;){if(n=e[It])return n;e=ys(e)}return t}e=n,n=e.parentNode}return null}function zr(e){return e=e[It]||e[At],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function gl(e){return e[Pr]||null}var Ju=[],$n=-1;function en(e){return{current:e}}function ve(e){0>$n||(e.current=Ju[$n],Ju[$n]=null,$n--)}function de(e,t){$n++,Ju[$n]=e.current,e.current=t}var tn={},Be=en(tn),Xe=en(!1),vn=tn;function Bn(e,t){var n=e.type.contextTypes;if(!n)return tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ge(e){return e=e.childContextTypes,e!=null}function yl(){ve(Xe),ve(Be)}function ws(e,t,n){if(Be.current!==tn)throw Error(s(168));de(Be,t),de(Xe,n)}function Ss(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(s(108,Y(e)||"Unknown",l));return z({},n,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,vn=Be.current,de(Be,e),de(Xe,Xe.current),!0}function ks(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=Ss(e,t,vn),r.__reactInternalMemoizedMergedChildContext=e,ve(Xe),ve(Be),de(Be,e)):ve(Xe),de(Xe,n)}var jt=null,Sl=!1,Ku=!1;function _s(e){jt===null?jt=[e]:jt.push(e)}function Zf(e){Sl=!0,_s(e)}function nn(){if(!Ku&&jt!==null){Ku=!0;var e=0,t=le;try{var n=jt;for(le=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jt=null,Sl=!1}catch(l){throw jt!==null&&(jt=jt.slice(e+1)),xi(hu,nn),l}finally{le=t,Ku=!1}}return null}var Vn=[],Hn=0,kl=null,_l=0,ft=[],dt=0,gn=null,Ut=1,$t="";function yn(e,t){Vn[Hn++]=_l,Vn[Hn++]=kl,kl=e,_l=t}function Es(e,t,n){ft[dt++]=Ut,ft[dt++]=$t,ft[dt++]=gn,gn=e;var r=Ut;e=$t;var l=32-_t(r)-1;r&=~(1<<l),n+=1;var u=32-_t(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Ut=1<<32-_t(t)+l|n<<l|r,$t=u+e}else Ut=1<<u|n<<l|r,$t=e}function Yu(e){e.return!==null&&(yn(e,1),Es(e,1,0))}function Xu(e){for(;e===kl;)kl=Vn[--Hn],Vn[Hn]=null,_l=Vn[--Hn],Vn[Hn]=null;for(;e===gn;)gn=ft[--dt],ft[dt]=null,$t=ft[--dt],ft[dt]=null,Ut=ft[--dt],ft[dt]=null}var lt=null,ut=null,ye=!1,xt=null;function xs(e,t){var n=vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Cs(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lt=e,ut=bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gn!==null?{id:Ut,overflow:$t}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lt=e,ut=null,!0):!1;default:return!1}}function Gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zu(e){if(ye){var t=ut;if(t){var n=t;if(!Cs(e,t)){if(Gu(e))throw Error(s(418));t=bt(n.nextSibling);var r=lt;t&&Cs(e,t)?xs(r,n):(e.flags=e.flags&-4097|2,ye=!1,lt=e)}}else{if(Gu(e))throw Error(s(418));e.flags=e.flags&-4097|2,ye=!1,lt=e}}}function Ns(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function El(e){if(e!==lt)return!1;if(!ye)return Ns(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vu(e.type,e.memoizedProps)),t&&(t=ut)){if(Gu(e))throw Ps(),Error(s(418));for(;t;)xs(e,t),t=bt(t.nextSibling)}if(Ns(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=lt?bt(e.stateNode.nextSibling):null;return!0}function Ps(){for(var e=ut;e;)e=bt(e.nextSibling)}function Wn(){ut=lt=null,ye=!1}function qu(e){xt===null?xt=[e]:xt.push(e)}var qf=ae.ReactCurrentBatchConfig;function Lr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var l=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(o){var a=l.refs;o===null?delete a[u]:a[u]=o},t._stringRef=u,t)}if(typeof e!="string")throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function xl(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zs(e){var t=e._init;return t(e._payload)}function Ls(e){function t(p,d){if(e){var m=p.deletions;m===null?(p.deletions=[d],p.flags|=16):m.push(d)}}function n(p,d){if(!e)return null;for(;d!==null;)t(p,d),d=d.sibling;return null}function r(p,d){for(p=new Map;d!==null;)d.key!==null?p.set(d.key,d):p.set(d.index,d),d=d.sibling;return p}function l(p,d){return p=fn(p,d),p.index=0,p.sibling=null,p}function u(p,d,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<d?(p.flags|=2,d):m):(p.flags|=2,d)):(p.flags|=1048576,d)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,d,m,k){return d===null||d.tag!==6?(d=Wo(m,p.mode,k),d.return=p,d):(d=l(d,m),d.return=p,d)}function f(p,d,m,k){var D=m.type;return D===nt?y(p,d,m.props.children,k,m.key):d!==null&&(d.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===ce&&zs(D)===d.type)?(k=l(d,m.props),k.ref=Lr(p,d,m),k.return=p,k):(k=Yl(m.type,m.key,m.props,null,p.mode,k),k.ref=Lr(p,d,m),k.return=p,k)}function h(p,d,m,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=Qo(m,p.mode,k),d.return=p,d):(d=l(d,m.children||[]),d.return=p,d)}function y(p,d,m,k,D){return d===null||d.tag!==7?(d=Nn(m,p.mode,k,D),d.return=p,d):(d=l(d,m),d.return=p,d)}function w(p,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Wo(""+d,p.mode,m),d.return=p,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case it:return m=Yl(d.type,d.key,d.props,null,p.mode,m),m.ref=Lr(p,null,d),m.return=p,m;case tt:return d=Qo(d,p.mode,m),d.return=p,d;case ce:var k=d._init;return w(p,k(d._payload),m)}if(I(d)||B(d))return d=Nn(d,p.mode,m,null),d.return=p,d;xl(p,d)}return null}function g(p,d,m,k){var D=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return D!==null?null:a(p,d,""+m,k);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case it:return m.key===D?f(p,d,m,k):null;case tt:return m.key===D?h(p,d,m,k):null;case ce:return D=m._init,g(p,d,D(m._payload),k)}if(I(m)||B(m))return D!==null?null:y(p,d,m,k,null);xl(p,m)}return null}function C(p,d,m,k,D){if(typeof k=="string"&&k!==""||typeof k=="number")return p=p.get(m)||null,a(d,p,""+k,D);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case it:return p=p.get(k.key===null?m:k.key)||null,f(d,p,k,D);case tt:return p=p.get(k.key===null?m:k.key)||null,h(d,p,k,D);case ce:var U=k._init;return C(p,d,m,U(k._payload),D)}if(I(k)||B(k))return p=p.get(m)||null,y(d,p,k,D,null);xl(d,k)}return null}function L(p,d,m,k){for(var D=null,U=null,$=d,V=d=0,Ae=null;$!==null&&V<m.length;V++){$.index>V?(Ae=$,$=null):Ae=$.sibling;var te=g(p,$,m[V],k);if(te===null){$===null&&($=Ae);break}e&&$&&te.alternate===null&&t(p,$),d=u(te,d,V),U===null?D=te:U.sibling=te,U=te,$=Ae}if(V===m.length)return n(p,$),ye&&yn(p,V),D;if($===null){for(;V<m.length;V++)$=w(p,m[V],k),$!==null&&(d=u($,d,V),U===null?D=$:U.sibling=$,U=$);return ye&&yn(p,V),D}for($=r(p,$);V<m.length;V++)Ae=C($,p,V,m[V],k),Ae!==null&&(e&&Ae.alternate!==null&&$.delete(Ae.key===null?V:Ae.key),d=u(Ae,d,V),U===null?D=Ae:U.sibling=Ae,U=Ae);return e&&$.forEach(function(dn){return t(p,dn)}),ye&&yn(p,V),D}function T(p,d,m,k){var D=B(m);if(typeof D!="function")throw Error(s(150));if(m=D.call(m),m==null)throw Error(s(151));for(var U=D=null,$=d,V=d=0,Ae=null,te=m.next();$!==null&&!te.done;V++,te=m.next()){$.index>V?(Ae=$,$=null):Ae=$.sibling;var dn=g(p,$,te.value,k);if(dn===null){$===null&&($=Ae);break}e&&$&&dn.alternate===null&&t(p,$),d=u(dn,d,V),U===null?D=dn:U.sibling=dn,U=dn,$=Ae}if(te.done)return n(p,$),ye&&yn(p,V),D;if($===null){for(;!te.done;V++,te=m.next())te=w(p,te.value,k),te!==null&&(d=u(te,d,V),U===null?D=te:U.sibling=te,U=te);return ye&&yn(p,V),D}for($=r(p,$);!te.done;V++,te=m.next())te=C($,p,V,te.value,k),te!==null&&(e&&te.alternate!==null&&$.delete(te.key===null?V:te.key),d=u(te,d,V),U===null?D=te:U.sibling=te,U=te);return e&&$.forEach(function(Rd){return t(p,Rd)}),ye&&yn(p,V),D}function Pe(p,d,m,k){if(typeof m=="object"&&m!==null&&m.type===nt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case it:e:{for(var D=m.key,U=d;U!==null;){if(U.key===D){if(D=m.type,D===nt){if(U.tag===7){n(p,U.sibling),d=l(U,m.props.children),d.return=p,p=d;break e}}else if(U.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===ce&&zs(D)===U.type){n(p,U.sibling),d=l(U,m.props),d.ref=Lr(p,U,m),d.return=p,p=d;break e}n(p,U);break}else t(p,U);U=U.sibling}m.type===nt?(d=Nn(m.props.children,p.mode,k,m.key),d.return=p,p=d):(k=Yl(m.type,m.key,m.props,null,p.mode,k),k.ref=Lr(p,d,m),k.return=p,p=k)}return o(p);case tt:e:{for(U=m.key;d!==null;){if(d.key===U)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=l(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Qo(m,p.mode,k),d.return=p,p=d}return o(p);case ce:return U=m._init,Pe(p,d,U(m._payload),k)}if(I(m))return L(p,d,m,k);if(B(m))return T(p,d,m,k);xl(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,m),d.return=p,p=d):(n(p,d),d=Wo(m,p.mode,k),d.return=p,p=d),o(p)):n(p,d)}return Pe}var Qn=Ls(!0),Ts=Ls(!1),Cl=en(null),Nl=null,Jn=null,bu=null;function eo(){bu=Jn=Nl=null}function to(e){var t=Cl.current;ve(Cl),e._currentValue=t}function no(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Kn(e,t){Nl=e,bu=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ze=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(bu!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if(Nl===null)throw Error(s(308));Jn=e,Nl.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var wn=null;function ro(e){wn===null?wn=[e]:wn.push(e)}function Rs(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ro(t)):(n.next=l.next,l.next=n),t.interleaved=n,Bt(e,r)}function Bt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rn=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Is(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(q&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Bt(e,n)}return l=r.interleaved,l===null?(t.next=t,ro(r)):(t.next=l.next,l.next=t),r.interleaved=t,Bt(e,n)}function Pl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yu(e,n)}}function Fs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=o:u=u.next=o,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zl(e,t,n,r){var l=e.updateQueue;rn=!1;var u=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var f=a,h=f.next;f.next=null,o===null?u=h:o.next=h,o=f;var y=e.alternate;y!==null&&(y=y.updateQueue,a=y.lastBaseUpdate,a!==o&&(a===null?y.firstBaseUpdate=h:a.next=h,y.lastBaseUpdate=f))}if(u!==null){var w=l.baseState;o=0,y=h=f=null,a=u;do{var g=a.lane,C=a.eventTime;if((r&g)===g){y!==null&&(y=y.next={eventTime:C,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var L=e,T=a;switch(g=t,C=n,T.tag){case 1:if(L=T.payload,typeof L=="function"){w=L.call(C,w,g);break e}w=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=T.payload,g=typeof L=="function"?L.call(C,w,g):L,g==null)break e;w=z({},w,g);break e;case 2:rn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=l.effects,g===null?l.effects=[a]:g.push(a))}else C={eventTime:C,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},y===null?(h=y=C,f=w):y=y.next=C,o|=g;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;g=a,a=g.next,g.next=null,l.lastBaseUpdate=g,l.shared.pending=null}}while(!0);if(y===null&&(f=w),l.baseState=f,l.firstBaseUpdate=h,l.lastBaseUpdate=y,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);_n|=o,e.lanes=o,e.memoizedState=w}}function Ds(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(s(191,l));l.call(r)}}}var Tr={},Ft=en(Tr),Rr=en(Tr),Ir=en(Tr);function Sn(e){if(e===Tr)throw Error(s(174));return e}function uo(e,t){switch(de(Ir,t),de(Rr,e),de(Ft,Tr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lr(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lr(t,e)}ve(Ft),de(Ft,t)}function Yn(){ve(Ft),ve(Rr),ve(Ir)}function Ms(e){Sn(Ir.current);var t=Sn(Ft.current),n=lr(t,e.type);t!==n&&(de(Rr,e),de(Ft,n))}function oo(e){Rr.current===e&&(ve(Ft),ve(Rr))}var ke=en(0);function Ll(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=[];function so(){for(var e=0;e<io.length;e++)io[e]._workInProgressVersionPrimary=null;io.length=0}var Tl=ae.ReactCurrentDispatcher,ao=ae.ReactCurrentBatchConfig,kn=0,_e=null,Ie=null,Me=null,Rl=!1,Fr=!1,Dr=0,bf=0;function Ve(){throw Error(s(321))}function co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function fo(e,t,n,r,l,u){if(kn=u,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Tl.current=e===null||e.memoizedState===null?rd:ld,e=n(r,l),Fr){u=0;do{if(Fr=!1,Dr=0,25<=u)throw Error(s(301));u+=1,Me=Ie=null,t.updateQueue=null,Tl.current=ud,e=n(r,l)}while(Fr)}if(Tl.current=Dl,t=Ie!==null&&Ie.next!==null,kn=0,Me=Ie=_e=null,Rl=!1,t)throw Error(s(300));return e}function po(){var e=Dr!==0;return Dr=0,e}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?_e.memoizedState=Me=e:Me=Me.next=e,Me}function mt(){if(Ie===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=Me===null?_e.memoizedState:Me.next;if(t!==null)Me=t,Ie=e;else{if(e===null)throw Error(s(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Me===null?_e.memoizedState=Me=e:Me=Me.next=e}return Me}function Mr(e,t){return typeof t=="function"?t(e):t}function mo(e){var t=mt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=Ie,l=r.baseQueue,u=n.pending;if(u!==null){if(l!==null){var o=l.next;l.next=u.next,u.next=o}r.baseQueue=l=u,n.pending=null}if(l!==null){u=l.next,r=r.baseState;var a=o=null,f=null,h=u;do{var y=h.lane;if((kn&y)===y)f!==null&&(f=f.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),r=h.hasEagerState?h.eagerState:e(r,h.action);else{var w={lane:y,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};f===null?(a=f=w,o=r):f=f.next=w,_e.lanes|=y,_n|=y}h=h.next}while(h!==null&&h!==u);f===null?o=r:f.next=a,Et(r,t.memoizedState)||(Ze=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=f,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do u=l.lane,_e.lanes|=u,_n|=u,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ho(e){var t=mt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,u=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do u=e(u,o.action),o=o.next;while(o!==l);Et(u,t.memoizedState)||(Ze=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Os(){}function As(e,t){var n=_e,r=mt(),l=t(),u=!Et(r.memoizedState,l);if(u&&(r.memoizedState=l,Ze=!0),r=r.queue,vo($s.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||Me!==null&&Me.memoizedState.tag&1){if(n.flags|=2048,Or(9,Us.bind(null,n,r,l,t),void 0,null),Oe===null)throw Error(s(349));(kn&30)!==0||js(n,t,l)}return l}function js(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Us(e,t,n,r){t.value=n,t.getSnapshot=r,Bs(t)&&Vs(e)}function $s(e,t,n){return n(function(){Bs(t)&&Vs(e)})}function Bs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Vs(e){var t=Bt(e,1);t!==null&&zt(t,e,1,-1)}function Hs(e){var t=Dt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:e},t.queue=e,e=e.dispatch=nd.bind(null,_e,e),[t.memoizedState,e]}function Or(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ws(){return mt().memoizedState}function Il(e,t,n,r){var l=Dt();_e.flags|=e,l.memoizedState=Or(1|t,n,void 0,r===void 0?null:r)}function Fl(e,t,n,r){var l=mt();r=r===void 0?null:r;var u=void 0;if(Ie!==null){var o=Ie.memoizedState;if(u=o.destroy,r!==null&&co(r,o.deps)){l.memoizedState=Or(t,n,u,r);return}}_e.flags|=e,l.memoizedState=Or(1|t,n,u,r)}function Qs(e,t){return Il(8390656,8,e,t)}function vo(e,t){return Fl(2048,8,e,t)}function Js(e,t){return Fl(4,2,e,t)}function Ks(e,t){return Fl(4,4,e,t)}function Ys(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xs(e,t,n){return n=n!=null?n.concat([e]):null,Fl(4,4,Ys.bind(null,t,e),n)}function go(){}function Gs(e,t){var n=mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zs(e,t){var n=mt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&co(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qs(e,t,n){return(kn&21)===0?(e.baseState&&(e.baseState=!1,Ze=!0),e.memoizedState=n):(Et(n,t)||(n=zi(),_e.lanes|=n,_n|=n,e.baseState=!0),t)}function ed(e,t){var n=le;le=n!==0&&4>n?n:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),t()}finally{le=n,ao.transition=r}}function bs(){return mt().memoizedState}function td(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ea(e))ta(t,n);else if(n=Rs(e,t,n,r),n!==null){var l=Ke();zt(n,e,r,l),na(n,t,r)}}function nd(e,t,n){var r=an(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ea(e))ta(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,a=u(o,n);if(l.hasEagerState=!0,l.eagerState=a,Et(a,o)){var f=t.interleaved;f===null?(l.next=l,ro(t)):(l.next=f.next,f.next=l),t.interleaved=l;return}}catch{}n=Rs(e,t,l,r),n!==null&&(l=Ke(),zt(n,e,r,l),na(n,t,r))}}function ea(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function ta(e,t){Fr=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function na(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yu(e,n)}}var Dl={readContext:pt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},rd={readContext:pt,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Qs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Il(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Il(4194308,4,e,t)},useInsertionEffect:function(e,t){return Il(4,2,e,t)},useMemo:function(e,t){var n=Dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Dt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=td.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:Hs,useDebugValue:go,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=Hs(!1),t=e[0];return e=ed.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,l=Dt();if(ye){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Oe===null)throw Error(s(349));(kn&30)!==0||js(r,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Qs($s.bind(null,r,u,e),[e]),r.flags|=2048,Or(9,Us.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=Dt(),t=Oe.identifierPrefix;if(ye){var n=$t,r=Ut;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Dr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ld={readContext:pt,useCallback:Gs,useContext:pt,useEffect:vo,useImperativeHandle:Xs,useInsertionEffect:Js,useLayoutEffect:Ks,useMemo:Zs,useReducer:mo,useRef:Ws,useState:function(){return mo(Mr)},useDebugValue:go,useDeferredValue:function(e){var t=mt();return qs(t,Ie.memoizedState,e)},useTransition:function(){var e=mo(Mr)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Os,useSyncExternalStore:As,useId:bs,unstable_isNewReconciler:!1},ud={readContext:pt,useCallback:Gs,useContext:pt,useEffect:vo,useImperativeHandle:Xs,useInsertionEffect:Js,useLayoutEffect:Ks,useMemo:Zs,useReducer:ho,useRef:Ws,useState:function(){return ho(Mr)},useDebugValue:go,useDeferredValue:function(e){var t=mt();return Ie===null?t.memoizedState=e:qs(t,Ie.memoizedState,e)},useTransition:function(){var e=ho(Mr)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Os,useSyncExternalStore:As,useId:bs,unstable_isNewReconciler:!1};function Ct(e,t){if(e&&e.defaultProps){t=z({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ml={isMounted:function(e){return(e=e._reactInternals)?mn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ke(),l=an(e),u=Vt(r,l);u.payload=t,n!=null&&(u.callback=n),t=ln(e,u,l),t!==null&&(zt(t,e,l,r),Pl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ke(),l=an(e),u=Vt(r,l);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=ln(e,u,l),t!==null&&(zt(t,e,l,r),Pl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ke(),r=an(e),l=Vt(n,r);l.tag=2,t!=null&&(l.callback=t),t=ln(e,l,r),t!==null&&(zt(t,e,r,n),Pl(t,e,r))}};function ra(e,t,n,r,l,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,o):t.prototype&&t.prototype.isPureReactComponent?!_r(n,r)||!_r(l,u):!0}function la(e,t,n){var r=!1,l=tn,u=t.contextType;return typeof u=="object"&&u!==null?u=pt(u):(l=Ge(t)?vn:Be.current,r=t.contextTypes,u=(r=r!=null)?Bn(e,l):tn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=u),t}function ua(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ml.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},lo(e);var u=t.contextType;typeof u=="object"&&u!==null?l.context=pt(u):(u=Ge(t)?vn:Be.current,l.context=Bn(e,u)),l.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(yo(e,t,u,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Ml.enqueueReplaceState(l,l.state,null),zl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Xn(e,t){try{var n="",r=t;do n+=R(r),r=r.return;while(r);var l=n}catch(u){l=`
7+Error generating stack: `+u.message+`
8+`+u.stack}return{value:e,source:t,stack:l,digest:null}}function So(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ko(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var od=typeof WeakMap=="function"?WeakMap:Map;function oa(e,t,n){n=Vt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Oo=r),ko(e,t)},n}function ia(e,t,n){n=Vt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ko(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){ko(e,t),typeof r!="function"&&(on===null?on=new Set([this]):on.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function sa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new od;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Sd.bind(null,e,t,n),t.then(e,e))}function aa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ca(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vt(-1,1),t.tag=2,ln(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var id=ae.ReactCurrentOwner,Ze=!1;function Je(e,t,n,r){t.child=e===null?Ts(t,null,n,r):Qn(t,e.child,n,r)}function fa(e,t,n,r,l){n=n.render;var u=t.ref;return Kn(t,l),r=fo(e,t,n,r,u,l),n=po(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(ye&&n&&Yu(t),t.flags|=1,Je(e,t,r,l),t.child)}function da(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!Ho(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,pa(e,t,u,r,l)):(e=Yl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:_r,n(o,r)&&e.ref===t.ref)return Ht(e,t,l)}return t.flags|=1,e=fn(u,r),e.ref=t.ref,e.return=t,t.child=e}function pa(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(_r(u,r)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,Ht(e,t,l)}return _o(e,t,n,r,l)}function ma(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Zn,ot),ot|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(Zn,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,de(Zn,ot),ot|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,de(Zn,ot),ot|=r;return Je(e,t,l,n),t.child}function ha(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _o(e,t,n,r,l){var u=Ge(n)?vn:Be.current;return u=Bn(t,u),Kn(t,l),n=fo(e,t,n,r,u,l),r=po(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(ye&&r&&Yu(t),t.flags|=1,Je(e,t,n,l),t.child)}function va(e,t,n,r,l){if(Ge(n)){var u=!0;wl(t)}else u=!1;if(Kn(t,l),t.stateNode===null)Al(e,t),la(t,n,r),wo(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var f=o.context,h=n.contextType;typeof h=="object"&&h!==null?h=pt(h):(h=Ge(n)?vn:Be.current,h=Bn(t,h));var y=n.getDerivedStateFromProps,w=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";w||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||f!==h)&&ua(t,o,r,h),rn=!1;var g=t.memoizedState;o.state=g,zl(t,r,o,l),f=t.memoizedState,a!==r||g!==f||Xe.current||rn?(typeof y=="function"&&(yo(t,n,y,r),f=t.memoizedState),(a=rn||ra(t,n,a,r,g,f,h))?(w||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=h,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Is(e,t),a=t.memoizedProps,h=t.type===t.elementType?a:Ct(t.type,a),o.props=h,w=t.pendingProps,g=o.context,f=n.contextType,typeof f=="object"&&f!==null?f=pt(f):(f=Ge(n)?vn:Be.current,f=Bn(t,f));var C=n.getDerivedStateFromProps;(y=typeof C=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==w||g!==f)&&ua(t,o,r,f),rn=!1,g=t.memoizedState,o.state=g,zl(t,r,o,l);var L=t.memoizedState;a!==w||g!==L||Xe.current||rn?(typeof C=="function"&&(yo(t,n,C,r),L=t.memoizedState),(h=rn||ra(t,n,h,r,g,L,f)||!1)?(y||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,L,f),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,L,f)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),o.props=r,o.state=L,o.context=f,r=h):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Eo(e,t,n,r,u,l)}function Eo(e,t,n,r,l,u){ha(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&ks(t,n,!1),Ht(e,t,u);r=t.stateNode,id.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Qn(t,e.child,null,u),t.child=Qn(t,null,a,u)):Je(e,t,a,u),t.memoizedState=r.state,l&&ks(t,n,!0),t.child}function ga(e){var t=e.stateNode;t.pendingContext?ws(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ws(e,t.context,!1),uo(e,t.containerInfo)}function ya(e,t,n,r,l){return Wn(),qu(l),t.flags|=256,Je(e,t,n,r),t.child}var xo={dehydrated:null,treeContext:null,retryLane:0};function Co(e){return{baseLanes:e,cachePool:null,transitions:null}}function wa(e,t,n){var r=t.pendingProps,l=ke.current,u=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),de(ke,l&1),e===null)return Zu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,u?(r=t.mode,u=t.child,o={mode:"hidden",children:o},(r&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=o):u=Xl(o,r,0,null),e=Nn(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Co(n),t.memoizedState=xo,e):No(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return sd(e,t,o,r,a,l,n);if(u){u=r.fallback,o=t.mode,l=e.child,a=l.sibling;var f={mode:"hidden",children:r.children};return(o&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=f,t.deletions=null):(r=fn(l,f),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?u=fn(a,u):(u=Nn(u,o,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,o=e.child.memoizedState,o=o===null?Co(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},u.memoizedState=o,u.childLanes=e.childLanes&~n,t.memoizedState=xo,r}return u=e.child,e=u.sibling,r=fn(u,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function No(e,t){return t=Xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ol(e,t,n,r){return r!==null&&qu(r),Qn(t,e.child,null,n),e=No(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sd(e,t,n,r,l,u,o){if(n)return t.flags&256?(t.flags&=-257,r=So(Error(s(422))),Ol(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,l=t.mode,r=Xl({mode:"visible",children:r.children},l,0,null),u=Nn(u,l,o,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,(t.mode&1)!==0&&Qn(t,e.child,null,o),t.child.memoizedState=Co(o),t.memoizedState=xo,u);if((t.mode&1)===0)return Ol(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,u=Error(s(419)),r=So(u,r,void 0),Ol(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ze||a){if(r=Oe,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|o))!==0?0:l,l!==0&&l!==u.retryLane&&(u.retryLane=l,Bt(e,l),zt(r,e,l,-1))}return Vo(),r=So(Error(s(421))),Ol(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=kd.bind(null,e),l._reactRetry=t,null):(e=u.treeContext,ut=bt(l.nextSibling),lt=t,ye=!0,xt=null,e!==null&&(ft[dt++]=Ut,ft[dt++]=$t,ft[dt++]=gn,Ut=e.id,$t=e.overflow,gn=t),t=No(t,r.children),t.flags|=4096,t)}function Sa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),no(e.return,t,n)}function Po(e,t,n,r,l){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=l)}function ka(e,t,n){var r=t.pendingProps,l=r.revealOrder,u=r.tail;if(Je(e,t,r.children,n),r=ke.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sa(e,n,t);else if(e.tag===19)Sa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ke,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ll(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Po(t,!1,l,n,u);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ll(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Po(t,!0,n,null,u);break;case"together":Po(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Al(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_n|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ad(e,t,n){switch(t.tag){case 3:ga(t),Wn();break;case 5:Ms(t);break;case 1:Ge(t.type)&&wl(t);break;case 4:uo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;de(Cl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ke,ke.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?wa(e,t,n):(de(ke,ke.current&1),e=Ht(e,t,n),e!==null?e.sibling:null);de(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return ka(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),de(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,ma(e,t,n)}return Ht(e,t,n)}var _a,zo,Ea,xa;_a=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},zo=function(){},Ea=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Sn(Ft.current);var u=null;switch(n){case"input":l=$e(e,l),r=$e(e,r),u=[];break;case"select":l=z({},l,{value:void 0}),r=z({},r,{value:void 0}),u=[];break;case"textarea":l=K(e,l),r=K(e,r),u=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vl)}iu(n,r);var o;n=null;for(h in l)if(!r.hasOwnProperty(h)&&l.hasOwnProperty(h)&&l[h]!=null)if(h==="style"){var a=l[h];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(S.hasOwnProperty(h)?u||(u=[]):(u=u||[]).push(h,null));for(h in r){var f=r[h];if(a=l?.[h],r.hasOwnProperty(h)&&f!==a&&(f!=null||a!=null))if(h==="style")if(a){for(o in a)!a.hasOwnProperty(o)||f&&f.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in f)f.hasOwnProperty(o)&&a[o]!==f[o]&&(n||(n={}),n[o]=f[o])}else n||(u||(u=[]),u.push(h,n)),n=f;else h==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,a=a?a.__html:void 0,f!=null&&a!==f&&(u=u||[]).push(h,f)):h==="children"?typeof f!="string"&&typeof f!="number"||(u=u||[]).push(h,""+f):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(S.hasOwnProperty(h)?(f!=null&&h==="onScroll"&&he("scroll",e),u||a===f||(u=[])):(u=u||[]).push(h,f))}n&&(u=u||[]).push("style",n);var h=u;(t.updateQueue=h)&&(t.flags|=4)}},xa=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ar(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cd(e,t,n){var r=t.pendingProps;switch(Xu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return Ge(t.type)&&yl(),He(t),null;case 3:return r=t.stateNode,Yn(),ve(Xe),ve(Be),so(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(El(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xt!==null&&(Uo(xt),xt=null))),zo(e,t),He(t),null;case 5:oo(t);var l=Sn(Ir.current);if(n=t.type,e!==null&&t.stateNode!=null)Ea(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(s(166));return He(t),null}if(e=Sn(Ft.current),El(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[It]=t,r[Pr]=u,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(l=0;l<xr.length;l++)he(xr[l],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":St(r,u),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},he("invalid",r);break;case"textarea":X(r,u),he("invalid",r)}iu(n,u),l=null;for(var o in u)if(u.hasOwnProperty(o)){var a=u[o];o==="children"?typeof a=="string"?r.textContent!==a&&(u.suppressHydrationWarning!==!0&&hl(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(u.suppressHydrationWarning!==!0&&hl(r.textContent,a,e),l=["children",""+a]):S.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&he("scroll",r)}switch(n){case"input":Z(r),A(r,u,!0);break;case"textarea":Z(r),Te(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=vl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Jt(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[It]=t,e[Pr]=r,_a(e,t,!1,!1),t.stateNode=e;e:{switch(o=su(n,r),n){case"dialog":he("cancel",e),he("close",e),l=r;break;case"iframe":case"object":case"embed":he("load",e),l=r;break;case"video":case"audio":for(l=0;l<xr.length;l++)he(xr[l],e);l=r;break;case"source":he("error",e),l=r;break;case"img":case"image":case"link":he("error",e),he("load",e),l=r;break;case"details":he("toggle",e),l=r;break;case"input":St(e,r),l=$e(e,r),he("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=z({},r,{value:void 0}),he("invalid",e);break;case"textarea":X(e,r),l=K(e,r),he("invalid",e);break;default:l=r}iu(n,l),a=l;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];u==="style"?pi(e,f):u==="dangerouslySetInnerHTML"?(f=f?f.__html:void 0,f!=null&&fi(e,f)):u==="children"?typeof f=="string"?(n!=="textarea"||f!=="")&&ur(e,f):typeof f=="number"&&ur(e,""+f):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(S.hasOwnProperty(u)?f!=null&&u==="onScroll"&&he("scroll",e):f!=null&&O(e,u,f,o))}switch(n){case"input":Z(e),A(e,r,!1);break;case"textarea":Z(e),Te(e);break;case"option":r.value!=null&&e.setAttribute("value",""+j(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?F(e,!!r.multiple,u,!1):r.defaultValue!=null&&F(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=vl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)xa(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(n=Sn(Ir.current),Sn(Ft.current),El(t)){if(r=t.stateNode,n=t.memoizedProps,r[It]=t,(u=r.nodeValue!==n)&&(e=lt,e!==null))switch(e.tag){case 3:hl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hl(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[It]=t,t.stateNode=r}return He(t),null;case 13:if(ve(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&&ut!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ps(),Wn(),t.flags|=98560,u=!1;else if(u=El(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[It]=t}else Wn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),u=!1}else xt!==null&&(Uo(xt),xt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ke.current&1)!==0?Fe===0&&(Fe=3):Vo())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return Yn(),zo(e,t),e===null&&Cr(t.stateNode.containerInfo),He(t),null;case 10:return to(t.type._context),He(t),null;case 17:return Ge(t.type)&&yl(),He(t),null;case 19:if(ve(ke),u=t.memoizedState,u===null)return He(t),null;if(r=(t.flags&128)!==0,o=u.rendering,o===null)if(r)Ar(u,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Ll(e),o!==null){for(t.flags|=128,Ar(u,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,o=u.alternate,o===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=o.childLanes,u.lanes=o.lanes,u.child=o.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=o.memoizedProps,u.memoizedState=o.memoizedState,u.updateQueue=o.updateQueue,u.type=o.type,e=o.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ke,ke.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ne()>qn&&(t.flags|=128,r=!0,Ar(u,!1),t.lanes=4194304)}else{if(!r)if(e=Ll(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!ye)return He(t),null}else 2*Ne()-u.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,Ar(u,!1),t.lanes=4194304);u.isBackwards?(o.sibling=t.child,t.child=o):(n=u.last,n!==null?n.sibling=o:t.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ne(),t.sibling=null,n=ke.current,de(ke,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return Bo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ot&1073741824)!==0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function fd(e,t){switch(Xu(t),t.tag){case 1:return Ge(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(),ve(Xe),ve(Be),so(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return oo(t),null;case 13:if(ve(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(ke),null;case 4:return Yn(),null;case 10:return to(t.type._context),null;case 22:case 23:return Bo(),null;case 24:return null;default:return null}}var jl=!1,We=!1,dd=typeof WeakSet=="function"?WeakSet:Set,P=null;function Gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Lo(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var Ca=!1;function pd(e,t){if($u=ll,e=rs(),Iu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var o=0,a=-1,f=-1,h=0,y=0,w=e,g=null;t:for(;;){for(var C;w!==n||l!==0&&w.nodeType!==3||(a=o+l),w!==u||r!==0&&w.nodeType!==3||(f=o+r),w.nodeType===3&&(o+=w.nodeValue.length),(C=w.firstChild)!==null;)g=w,w=C;for(;;){if(w===e)break t;if(g===n&&++h===l&&(a=o),g===u&&++y===r&&(f=o),(C=w.nextSibling)!==null)break;w=g,g=w.parentNode}w=C}n=a===-1||f===-1?null:{start:a,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bu={focusedElem:e,selectionRange:n},ll=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var L=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(L!==null){var T=L.memoizedProps,Pe=L.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?T:Ct(t.type,T),Pe);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(k){Ce(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return L=Ca,Ca=!1,L}function jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Lo(t,n,u)}l=l.next}while(l!==r)}}function Ul(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function To(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function Na(e){var t=e.alternate;t!==null&&(e.alternate=null,Na(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[Pr],delete t[Qu],delete t[Xf],delete t[Gf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pa(e){return e.tag===5||e.tag===3||e.tag===4}function za(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ro(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vl));else if(r!==4&&(e=e.child,e!==null))for(Ro(e,t,n),e=e.sibling;e!==null;)Ro(e,t,n),e=e.sibling}function Io(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Io(e,t,n),e=e.sibling;e!==null;)Io(e,t,n),e=e.sibling}var je=null,Nt=!1;function un(e,t,n){for(n=n.child;n!==null;)La(e,t,n),n=n.sibling}function La(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(qr,n)}catch{}switch(n.tag){case 5:We||Gn(n,t);case 6:var r=je,l=Nt;je=null,un(e,t,n),je=r,Nt=l,je!==null&&(Nt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Nt?(e=je,n=n.stateNode,e.nodeType===8?Wu(e.parentNode,n):e.nodeType===1&&Wu(e,n),vr(e)):Wu(je,n.stateNode));break;case 4:r=je,l=Nt,je=n.stateNode.containerInfo,Nt=!0,un(e,t,n),je=r,Nt=l;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var u=l,o=u.destroy;u=u.tag,o!==void 0&&((u&2)!==0||(u&4)!==0)&&Lo(n,t,o),l=l.next}while(l!==r)}un(e,t,n);break;case 1:if(!We&&(Gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ce(n,t,a)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,un(e,t,n),We=r):un(e,t,n);break;default:un(e,t,n)}}function Ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dd),t.forEach(function(r){var l=_d.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var u=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:je=a.stateNode,Nt=!1;break e;case 3:je=a.stateNode.containerInfo,Nt=!0;break e;case 4:je=a.stateNode.containerInfo,Nt=!0;break e}a=a.return}if(je===null)throw Error(s(160));La(u,o,l),je=null,Nt=!1;var f=l.alternate;f!==null&&(f.return=null),l.return=null}catch(h){Ce(l,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ra(t,e),t=t.sibling}function Ra(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Mt(e),r&4){try{jr(3,e,e.return),Ul(3,e)}catch(T){Ce(e,e.return,T)}try{jr(5,e,e.return)}catch(T){Ce(e,e.return,T)}}break;case 1:Pt(t,e),Mt(e),r&512&&n!==null&&Gn(n,n.return);break;case 5:if(Pt(t,e),Mt(e),r&512&&n!==null&&Gn(n,n.return),e.flags&32){var l=e.stateNode;try{ur(l,"")}catch(T){Ce(e,e.return,T)}}if(r&4&&(l=e.stateNode,l!=null)){var u=e.memoizedProps,o=n!==null?n.memoizedProps:u,a=e.type,f=e.updateQueue;if(e.updateQueue=null,f!==null)try{a==="input"&&u.type==="radio"&&u.name!=null&&kt(l,u),su(a,o);var h=su(a,u);for(o=0;o<f.length;o+=2){var y=f[o],w=f[o+1];y==="style"?pi(l,w):y==="dangerouslySetInnerHTML"?fi(l,w):y==="children"?ur(l,w):O(l,y,w,h)}switch(a){case"input":oe(l,u);break;case"textarea":fe(l,u);break;case"select":var g=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!u.multiple;var C=u.value;C!=null?F(l,!!u.multiple,C,!1):g!==!!u.multiple&&(u.defaultValue!=null?F(l,!!u.multiple,u.defaultValue,!0):F(l,!!u.multiple,u.multiple?[]:"",!1))}l[Pr]=u}catch(T){Ce(e,e.return,T)}}break;case 6:if(Pt(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,u=e.memoizedProps;try{l.nodeValue=u}catch(T){Ce(e,e.return,T)}}break;case 3:if(Pt(t,e),Mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vr(t.containerInfo)}catch(T){Ce(e,e.return,T)}break;case 4:Pt(t,e),Mt(e);break;case 13:Pt(t,e),Mt(e),l=e.child,l.flags&8192&&(u=l.memoizedState!==null,l.stateNode.isHidden=u,!u||l.alternate!==null&&l.alternate.memoizedState!==null||(Mo=Ne())),r&4&&Ta(e);break;case 22:if(y=n!==null&&n.memoizedState!==null,e.mode&1?(We=(h=We)||y,Pt(t,e),We=h):Pt(t,e),Mt(e),r&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!y&&(e.mode&1)!==0)for(P=e,y=e.child;y!==null;){for(w=P=y;P!==null;){switch(g=P,C=g.child,g.tag){case 0:case 11:case 14:case 15:jr(4,g,g.return);break;case 1:Gn(g,g.return);var L=g.stateNode;if(typeof L.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,L.props=t.memoizedProps,L.state=t.memoizedState,L.componentWillUnmount()}catch(T){Ce(r,n,T)}}break;case 5:Gn(g,g.return);break;case 22:if(g.memoizedState!==null){Da(w);continue}}C!==null?(C.return=g,P=C):Da(w)}y=y.sibling}e:for(y=null,w=e;;){if(w.tag===5){if(y===null){y=w;try{l=w.stateNode,h?(u=l.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(a=w.stateNode,f=w.memoizedProps.style,o=f!=null&&f.hasOwnProperty("display")?f.display:null,a.style.display=di("display",o))}catch(T){Ce(e,e.return,T)}}}else if(w.tag===6){if(y===null)try{w.stateNode.nodeValue=h?"":w.memoizedProps}catch(T){Ce(e,e.return,T)}}else if((w.tag!==22&&w.tag!==23||w.memoizedState===null||w===e)&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===e)break e;for(;w.sibling===null;){if(w.return===null||w.return===e)break e;y===w&&(y=null),w=w.return}y===w&&(y=null),w.sibling.return=w.return,w=w.sibling}}break;case 19:Pt(t,e),Mt(e),r&4&&Ta(e);break;case 21:break;default:Pt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pa(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(ur(l,""),r.flags&=-33);var u=za(e);Io(e,u,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=za(e);Ro(e,a,o);break;default:throw Error(s(161))}}catch(f){Ce(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function md(e,t,n){P=e,Ia(e)}function Ia(e,t,n){for(var r=(e.mode&1)!==0;P!==null;){var l=P,u=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||jl;if(!o){var a=l.alternate,f=a!==null&&a.memoizedState!==null||We;a=jl;var h=We;if(jl=o,(We=f)&&!h)for(P=l;P!==null;)o=P,f=o.child,o.tag===22&&o.memoizedState!==null?Ma(l):f!==null?(f.return=o,P=f):Ma(l);for(;u!==null;)P=u,Ia(u),u=u.sibling;P=l,jl=a,We=h}Fa(e)}else(l.subtreeFlags&8772)!==0&&u!==null?(u.return=l,P=u):Fa(e)}}function Fa(e){for(;P!==null;){var t=P;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:We||Ul(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ct(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Ds(t,u,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ds(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var f=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":f.autoFocus&&n.focus();break;case"img":f.src&&(n.src=f.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var y=h.memoizedState;if(y!==null){var w=y.dehydrated;w!==null&&vr(w)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}We||t.flags&512&&To(t)}catch(g){Ce(t,t.return,g)}}if(t===e){P=null;break}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}function Da(e){for(;P!==null;){var t=P;if(t===e){P=null;break}var n=t.sibling;if(n!==null){n.return=t.return,P=n;break}P=t.return}}function Ma(e){for(;P!==null;){var t=P;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ul(4,t)}catch(f){Ce(t,n,f)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(f){Ce(t,l,f)}}var u=t.return;try{To(t)}catch(f){Ce(t,u,f)}break;case 5:var o=t.return;try{To(t)}catch(f){Ce(t,o,f)}}}catch(f){Ce(t,t.return,f)}if(t===e){P=null;break}var a=t.sibling;if(a!==null){a.return=t.return,P=a;break}P=t.return}}var hd=Math.ceil,$l=ae.ReactCurrentDispatcher,Fo=ae.ReactCurrentOwner,ht=ae.ReactCurrentBatchConfig,q=0,Oe=null,Re=null,Ue=0,ot=0,Zn=en(0),Fe=0,Ur=null,_n=0,Bl=0,Do=0,$r=null,qe=null,Mo=0,qn=1/0,Wt=null,Vl=!1,Oo=null,on=null,Hl=!1,sn=null,Wl=0,Br=0,Ao=null,Ql=-1,Jl=0;function Ke(){return(q&6)!==0?Ne():Ql!==-1?Ql:Ql=Ne()}function an(e){return(e.mode&1)===0?1:(q&2)!==0&&Ue!==0?Ue&-Ue:qf.transition!==null?(Jl===0&&(Jl=zi()),Jl):(e=le,e!==0||(e=window.event,e=e===void 0?16:Ai(e.type)),e)}function zt(e,t,n,r){if(50<Br)throw Br=0,Ao=null,Error(s(185));fr(e,n,r),((q&2)===0||e!==Oe)&&(e===Oe&&((q&2)===0&&(Bl|=n),Fe===4&&cn(e,Ue)),be(e,r),n===1&&q===0&&(t.mode&1)===0&&(qn=Ne()+500,Sl&&nn()))}function be(e,t){var n=e.callbackNode;Zc(e,t);var r=tl(e,e===Oe?Ue:0);if(r===0)n!==null&&Ci(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ci(n),t===1)e.tag===0?Zf(Aa.bind(null,e)):_s(Aa.bind(null,e)),Kf(function(){(q&6)===0&&nn()}),n=null;else{switch(Li(r)){case 1:n=hu;break;case 4:n=Ni;break;case 16:n=Zr;break;case 536870912:n=Pi;break;default:n=Zr}n=Qa(n,Oa.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Oa(e,t){if(Ql=-1,Jl=0,(q&6)!==0)throw Error(s(327));var n=e.callbackNode;if(bn()&&e.callbackNode!==n)return null;var r=tl(e,e===Oe?Ue:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Kl(e,r);else{t=r;var l=q;q|=2;var u=Ua();(Oe!==e||Ue!==t)&&(Wt=null,qn=Ne()+500,xn(e,t));do try{yd();break}catch(a){ja(e,a)}while(!0);eo(),$l.current=u,q=l,Re!==null?t=0:(Oe=null,Ue=0,t=Fe)}if(t!==0){if(t===2&&(l=vu(e),l!==0&&(r=l,t=jo(e,l))),t===1)throw n=Ur,xn(e,0),cn(e,r),be(e,Ne()),n;if(t===6)cn(e,r);else{if(l=e.current.alternate,(r&30)===0&&!vd(l)&&(t=Kl(e,r),t===2&&(u=vu(e),u!==0&&(r=u,t=jo(e,u))),t===1))throw n=Ur,xn(e,0),cn(e,r),be(e,Ne()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:Cn(e,qe,Wt);break;case 3:if(cn(e,r),(r&130023424)===r&&(t=Mo+500-Ne(),10<t)){if(tl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){Ke(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Hu(Cn.bind(null,e,qe,Wt),t);break}Cn(e,qe,Wt);break;case 4:if(cn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-_t(r);u=1<<o,o=t[o],o>l&&(l=o),r&=~u}if(r=l,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hd(r/1960))-r,10<r){e.timeoutHandle=Hu(Cn.bind(null,e,qe,Wt),r);break}Cn(e,qe,Wt);break;case 5:Cn(e,qe,Wt);break;default:throw Error(s(329))}}}return be(e,Ne()),e.callbackNode===n?Oa.bind(null,e):null}function jo(e,t){var n=$r;return e.current.memoizedState.isDehydrated&&(xn(e,t).flags|=256),e=Kl(e,t),e!==2&&(t=qe,qe=n,t!==null&&Uo(t)),e}function Uo(e){qe===null?qe=e:qe.push.apply(qe,e)}function vd(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],u=l.getSnapshot;l=l.value;try{if(!Et(u(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cn(e,t){for(t&=~Do,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Aa(e){if((q&6)!==0)throw Error(s(327));bn();var t=tl(e,0);if((t&1)===0)return be(e,Ne()),null;var n=Kl(e,t);if(e.tag!==0&&n===2){var r=vu(e);r!==0&&(t=r,n=jo(e,r))}if(n===1)throw n=Ur,xn(e,0),cn(e,t),be(e,Ne()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cn(e,qe,Wt),be(e,Ne()),null}function $o(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(qn=Ne()+500,Sl&&nn())}}function En(e){sn!==null&&sn.tag===0&&(q&6)===0&&bn();var t=q;q|=1;var n=ht.transition,r=le;try{if(ht.transition=null,le=1,e)return e()}finally{le=r,ht.transition=n,q=t,(q&6)===0&&nn()}}function Bo(){ot=Zn.current,ve(Zn)}function xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Jf(n)),Re!==null)for(n=Re.return;n!==null;){var r=n;switch(Xu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:Yn(),ve(Xe),ve(Be),so();break;case 5:oo(r);break;case 4:Yn();break;case 13:ve(ke);break;case 19:ve(ke);break;case 10:to(r.type._context);break;case 22:case 23:Bo()}n=n.return}if(Oe=e,Re=e=fn(e.current,null),Ue=ot=t,Fe=0,Ur=null,Do=Bl=_n=0,qe=$r=null,wn!==null){for(t=0;t<wn.length;t++)if(n=wn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,u=n.pending;if(u!==null){var o=u.next;u.next=l,r.next=o}n.pending=r}wn=null}return e}function ja(e,t){do{var n=Re;try{if(eo(),Tl.current=Dl,Rl){for(var r=_e.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Rl=!1}if(kn=0,Me=Ie=_e=null,Fr=!1,Dr=0,Fo.current=null,n===null||n.return===null){Fe=1,Ur=t,Re=null;break}e:{var u=e,o=n.return,a=n,f=t;if(t=Ue,a.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){var h=f,y=a,w=y.tag;if((y.mode&1)===0&&(w===0||w===11||w===15)){var g=y.alternate;g?(y.updateQueue=g.updateQueue,y.memoizedState=g.memoizedState,y.lanes=g.lanes):(y.updateQueue=null,y.memoizedState=null)}var C=aa(o);if(C!==null){C.flags&=-257,ca(C,o,a,u,t),C.mode&1&&sa(u,h,t),t=C,f=h;var L=t.updateQueue;if(L===null){var T=new Set;T.add(f),t.updateQueue=T}else L.add(f);break e}else{if((t&1)===0){sa(u,h,t),Vo();break e}f=Error(s(426))}}else if(ye&&a.mode&1){var Pe=aa(o);if(Pe!==null){(Pe.flags&65536)===0&&(Pe.flags|=256),ca(Pe,o,a,u,t),qu(Xn(f,a));break e}}u=f=Xn(f,a),Fe!==4&&(Fe=2),$r===null?$r=[u]:$r.push(u),u=o;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var p=oa(u,f,t);Fs(u,p);break e;case 1:a=f;var d=u.type,m=u.stateNode;if((u.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(on===null||!on.has(m)))){u.flags|=65536,t&=-t,u.lanes|=t;var k=ia(u,a,t);Fs(u,k);break e}}u=u.return}while(u!==null)}Ba(n)}catch(D){t=D,Re===n&&n!==null&&(Re=n=n.return);continue}break}while(!0)}function Ua(){var e=$l.current;return $l.current=Dl,e===null?Dl:e}function Vo(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Oe===null||(_n&268435455)===0&&(Bl&268435455)===0||cn(Oe,Ue)}function Kl(e,t){var n=q;q|=2;var r=Ua();(Oe!==e||Ue!==t)&&(Wt=null,xn(e,t));do try{gd();break}catch(l){ja(e,l)}while(!0);if(eo(),q=n,$l.current=r,Re!==null)throw Error(s(261));return Oe=null,Ue=0,Fe}function gd(){for(;Re!==null;)$a(Re)}function yd(){for(;Re!==null&&!Vc();)$a(Re)}function $a(e){var t=Wa(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?Ba(e):Re=t,Fo.current=null}function Ba(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=cd(n,t,ot),n!==null){Re=n;return}}else{if(n=fd(n,t),n!==null){n.flags&=32767,Re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,Re=null;return}}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);Fe===0&&(Fe=5)}function Cn(e,t,n){var r=le,l=ht.transition;try{ht.transition=null,le=1,wd(e,t,n,r)}finally{ht.transition=l,le=r}return null}function wd(e,t,n,r){do bn();while(sn!==null);if((q&6)!==0)throw Error(s(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(qc(e,u),e===Oe&&(Re=Oe=null,Ue=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Hl||(Hl=!0,Qa(Zr,function(){return bn(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=ht.transition,ht.transition=null;var o=le;le=1;var a=q;q|=4,Fo.current=null,pd(e,n),Ra(n,e),Uf(Bu),ll=!!$u,Bu=$u=null,e.current=n,md(n),Hc(),q=a,le=o,ht.transition=u}else e.current=n;if(Hl&&(Hl=!1,sn=e,Wl=l),u=e.pendingLanes,u===0&&(on=null),Jc(n.stateNode),be(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Vl)throw Vl=!1,e=Oo,Oo=null,e;return(Wl&1)!==0&&e.tag!==0&&bn(),u=e.pendingLanes,(u&1)!==0?e===Ao?Br++:(Br=0,Ao=e):Br=0,nn(),null}function bn(){if(sn!==null){var e=Li(Wl),t=ht.transition,n=le;try{if(ht.transition=null,le=16>e?16:e,sn===null)var r=!1;else{if(e=sn,sn=null,Wl=0,(q&6)!==0)throw Error(s(331));var l=q;for(q|=4,P=e.current;P!==null;){var u=P,o=u.child;if((P.flags&16)!==0){var a=u.deletions;if(a!==null){for(var f=0;f<a.length;f++){var h=a[f];for(P=h;P!==null;){var y=P;switch(y.tag){case 0:case 11:case 15:jr(8,y,u)}var w=y.child;if(w!==null)w.return=y,P=w;else for(;P!==null;){y=P;var g=y.sibling,C=y.return;if(Na(y),y===h){P=null;break}if(g!==null){g.return=C,P=g;break}P=C}}}var L=u.alternate;if(L!==null){var T=L.child;if(T!==null){L.child=null;do{var Pe=T.sibling;T.sibling=null,T=Pe}while(T!==null)}}P=u}}if((u.subtreeFlags&2064)!==0&&o!==null)o.return=u,P=o;else e:for(;P!==null;){if(u=P,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:jr(9,u,u.return)}var p=u.sibling;if(p!==null){p.return=u.return,P=p;break e}P=u.return}}var d=e.current;for(P=d;P!==null;){o=P;var m=o.child;if((o.subtreeFlags&2064)!==0&&m!==null)m.return=o,P=m;else e:for(o=d;P!==null;){if(a=P,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Ul(9,a)}}catch(D){Ce(a,a.return,D)}if(a===o){P=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,P=k;break e}P=a.return}}if(q=l,nn(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(qr,e)}catch{}r=!0}return r}finally{le=n,ht.transition=t}}return!1}function Va(e,t,n){t=Xn(n,t),t=oa(e,t,1),e=ln(e,t,1),t=Ke(),e!==null&&(fr(e,1,t),be(e,t))}function Ce(e,t,n){if(e.tag===3)Va(e,e,n);else for(;t!==null;){if(t.tag===3){Va(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(on===null||!on.has(r))){e=Xn(n,e),e=ia(t,e,1),t=ln(t,e,1),e=Ke(),t!==null&&(fr(t,1,e),be(t,e));break}}t=t.return}}function Sd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&(Ue&n)===n&&(Fe===4||Fe===3&&(Ue&130023424)===Ue&&500>Ne()-Mo?xn(e,0):Do|=n),be(e,t)}function Ha(e,t){t===0&&((e.mode&1)===0?t=1:(t=el,el<<=1,(el&130023424)===0&&(el=4194304)));var n=Ke();e=Bt(e,t),e!==null&&(fr(e,t,n),be(e,n))}function kd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ha(e,n)}function _d(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),Ha(e,n)}var Wa;Wa=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Ze=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ze=!1,ad(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,ye&&(t.flags&1048576)!==0&&Es(t,_l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Al(e,t),e=t.pendingProps;var l=Bn(t,Be.current);Kn(t,n),l=fo(null,t,r,e,l,n);var u=po();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(u=!0,wl(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,lo(t),l.updater=Ml,t.stateNode=l,l._reactInternals=t,wo(t,r,e,n),t=Eo(null,t,r,!0,u,n)):(t.tag=0,ye&&u&&Yu(t),Je(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Al(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=xd(r),e=Ct(r,e),l){case 0:t=_o(null,t,r,e,n);break e;case 1:t=va(null,t,r,e,n);break e;case 11:t=fa(null,t,r,e,n);break e;case 14:t=da(null,t,r,Ct(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ct(r,l),_o(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ct(r,l),va(e,t,r,l,n);case 3:e:{if(ga(t),e===null)throw Error(s(387));r=t.pendingProps,u=t.memoizedState,l=u.element,Is(e,t),zl(t,r,null,n);var o=t.memoizedState;if(r=o.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=Xn(Error(s(423)),t),t=ya(e,t,r,n,l);break e}else if(r!==l){l=Xn(Error(s(424)),t),t=ya(e,t,r,n,l);break e}else for(ut=bt(t.stateNode.containerInfo.firstChild),lt=t,ye=!0,xt=null,n=Ts(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===l){t=Ht(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return Ms(t),e===null&&Zu(t),r=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,o=l.children,Vu(r,l)?o=null:u!==null&&Vu(r,u)&&(t.flags|=32),ha(e,t),Je(e,t,o,n),t.child;case 6:return e===null&&Zu(t),null;case 13:return wa(e,t,n);case 4:return uo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qn(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ct(r,l),fa(e,t,r,l,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,u=t.memoizedProps,o=l.value,de(Cl,r._currentValue),r._currentValue=o,u!==null)if(Et(u.value,o)){if(u.children===l.children&&!Xe.current){t=Ht(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var a=u.dependencies;if(a!==null){o=u.child;for(var f=a.firstContext;f!==null;){if(f.context===r){if(u.tag===1){f=Vt(-1,n&-n),f.tag=2;var h=u.updateQueue;if(h!==null){h=h.shared;var y=h.pending;y===null?f.next=f:(f.next=y.next,y.next=f),h.pending=f}}u.lanes|=n,f=u.alternate,f!==null&&(f.lanes|=n),no(u.return,n,t),a.lanes|=n;break}f=f.next}}else if(u.tag===10)o=u.type===t.type?null:u.child;else if(u.tag===18){if(o=u.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),no(o,n,t),o=u.sibling}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}Je(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Kn(t,n),l=pt(l),r=r(l),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,l=Ct(r,t.pendingProps),l=Ct(r.type,l),da(e,t,r,l,n);case 15:return pa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ct(r,l),Al(e,t),t.tag=1,Ge(r)?(e=!0,wl(t)):e=!1,Kn(t,n),la(t,r,l),wo(t,r,l,n),Eo(null,t,r,!0,e,n);case 19:return ka(e,t,n);case 22:return ma(e,t,n)}throw Error(s(156,t.tag))};function Qa(e,t){return xi(e,t)}function Ed(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new Ed(e,t,n,r)}function Ho(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xd(e){if(typeof e=="function")return Ho(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xe)return 11;if(e===Tt)return 14}return 2}function fn(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yl(e,t,n,r,l,u){var o=2;if(r=e,typeof e=="function")Ho(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case nt:return Nn(n.children,l,u,t);case gt:o=8,l|=8;break;case yt:return e=vt(12,n,t,l|2),e.elementType=yt,e.lanes=u,e;case Ye:return e=vt(13,n,t,l),e.elementType=Ye,e.lanes=u,e;case wt:return e=vt(19,n,t,l),e.elementType=wt,e.lanes=u,e;case at:return Xl(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pn:o=10;break e;case st:o=9;break e;case xe:o=11;break e;case Tt:o=14;break e;case ce:o=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=vt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=u,t}function Nn(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=vt(22,e,r,t),e.elementType=at,e.lanes=n,e.stateNode={isHidden:!1},e}function Wo(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function Qo(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gu(0),this.expirationTimes=gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Jo(e,t,n,r,l,u,o,a,f){return e=new Cd(e,t,n,a,f),t===1?(t=1,u===!0&&(t|=8)):t=0,u=vt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lo(u),e}function Nd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ja(e){if(!e)return tn;e=e._reactInternals;e:{if(mn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(Ge(n))return Ss(e,n,t)}return t}function Ka(e,t,n,r,l,u,o,a,f){return e=Jo(n,r,!0,e,l,u,o,a,f),e.context=Ja(null),n=e.current,r=Ke(),l=an(n),u=Vt(r,l),u.callback=t??null,ln(n,u,l),e.current.lanes=l,fr(e,l,r),be(e,r),e}function Gl(e,t,n,r){var l=t.current,u=Ke(),o=an(l);return n=Ja(n),t.context===null?t.context=n:t.pendingContext=n,t=Vt(u,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ln(l,t,o),e!==null&&(zt(e,l,o,u),Pl(e,l,o)),o}function Zl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Ya(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ko(e,t){Ya(e,t),(e=e.alternate)&&Ya(e,t)}function Pd(){return null}var Xa=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yo(e){this._internalRoot=e}ql.prototype.render=Yo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Gl(e,t,null,null)},ql.prototype.unmount=Yo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;En(function(){Gl(null,e,null,null)}),t[At]=null}};function ql(e){this._internalRoot=e}ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ii();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gt.length&&t!==0&&t<Gt[n].priority;n++);Gt.splice(n,0,e),n===0&&Mi(e)}};function Xo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ga(){}function zd(e,t,n,r,l){if(l){if(typeof r=="function"){var u=r;r=function(){var h=Zl(o);u.call(h)}}var o=Ka(t,r,e,0,null,!1,!1,"",Ga);return e._reactRootContainer=o,e[At]=o.current,Cr(e.nodeType===8?e.parentNode:e),En(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var h=Zl(f);a.call(h)}}var f=Jo(e,0,!1,null,null,!1,!1,"",Ga);return e._reactRootContainer=f,e[At]=f.current,Cr(e.nodeType===8?e.parentNode:e),En(function(){Gl(t,f,n,r)}),f}function eu(e,t,n,r,l){var u=n._reactRootContainer;if(u){var o=u;if(typeof l=="function"){var a=l;l=function(){var f=Zl(o);a.call(f)}}Gl(t,o,e,l)}else o=zd(n,t,e,l,r);return Zl(o)}Ti=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=cr(t.pendingLanes);n!==0&&(yu(t,n|1),be(t,Ne()),(q&6)===0&&(qn=Ne()+500,nn()))}break;case 13:En(function(){var r=Bt(e,1);if(r!==null){var l=Ke();zt(r,e,1,l)}}),Ko(e,1)}},wu=function(e){if(e.tag===13){var t=Bt(e,134217728);if(t!==null){var n=Ke();zt(t,e,134217728,n)}Ko(e,134217728)}},Ri=function(e){if(e.tag===13){var t=an(e),n=Bt(e,t);if(n!==null){var r=Ke();zt(n,e,t,r)}Ko(e,t)}},Ii=function(){return le},Fi=function(e,t){var n=le;try{return le=e,t()}finally{le=n}},fu=function(e,t,n){switch(t){case"input":if(oe(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=gl(r);if(!l)throw Error(s(90));me(r),oe(r,l)}}}break;case"textarea":fe(e,n);break;case"select":t=n.value,t!=null&&F(e,!!n.multiple,t,!1)}},gi=$o,yi=En;var Ld={usingClientEntryPoint:!1,Events:[zr,Un,gl,hi,vi,$o]},Vr={findFiberByHostInstance:hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Td={bundleType:Vr.bundleType,version:Vr.version,rendererPackageName:Vr.rendererPackageName,rendererConfig:Vr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ae.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_i(e),e===null?null:e.stateNode},findFiberByHostInstance:Vr.findFiberByHostInstance||Pd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tu.isDisabled&&tu.supportsFiber)try{qr=tu.inject(Td),Rt=tu}catch{}}return et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ld,et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xo(t))throw Error(s(200));return Nd(e,t,null,n)},et.createRoot=function(e,t){if(!Xo(e))throw Error(s(299));var n=!1,r="",l=Xa;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Jo(e,1,!1,null,null,n,!1,r,l),e[At]=t.current,Cr(e.nodeType===8?e.parentNode:e),new Yo(t)},et.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=_i(t),e=e===null?null:e.stateNode,e},et.flushSync=function(e){return En(e)},et.hydrate=function(e,t,n){if(!bl(t))throw Error(s(200));return eu(null,e,t,!0,n)},et.hydrateRoot=function(e,t,n){if(!Xo(e))throw Error(s(405));var r=n!=null&&n.hydratedSources||null,l=!1,u="",o=Xa;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ka(t,null,e,1,n??null,l,!1,u,o),e[At]=t.current,Cr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new ql(t)},et.render=function(e,t,n){if(!bl(t))throw Error(s(200));return eu(null,e,t,!1,n)},et.unmountComponentAtNode=function(e){if(!bl(e))throw Error(s(40));return e._reactRootContainer?(En(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[At]=null})}),!0):!1},et.unstable_batchedUpdates=$o,et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bl(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return eu(e,t,n,!1,r)},et.version="18.3.1-next-f1338f8080-20240426",et}var sc;function fp(){if(sc)return Zo.exports;sc=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),Zo.exports=cp(),Zo.exports}var ac;function dp(){if(ac)return nu;ac=1;var i=fp();return nu.createRoot=i.createRoot,nu.hydrateRoot=i.hydrateRoot,nu}var pp=dp();const mp=Fd(pp),hp=i=>()=>mp.createRoot(i),vp=i=>c=>()=>i.render(c);function gp(i){return c=>{const s=(v,S)=>{var N=null;v._data!=null&&(N={_data:void 0},Object.entries(v._data).forEach(function(J){N["data-"+J[0]]=J[1]}));var W=null;return v._aria!=null&&(W={_aria:void 0},Object.entries(v._aria).forEach(function(J){W["aria-"+J[0]]=J[1]})),Object.assign({ref:S},v,N,W)};return()=>{const v=Ee.forwardRef((S,N)=>i(c)(s(S,N)));return v.displayName=c,v}}}const Pc=gp(zn),yp=Pc("input")(),zc=Pc("div")(),wp=zn(zc),Sp=(i,c)=>{const s=Ee.useRef(c);return s.current!==c&&!i(s.current,c)&&(s.current=c),s.current};Ee.memo;Ee.memo;function ni(i,c){const[s,v]=Ee.useState(typeof c=="function"?()=>c:c);return v.hasOwnProperty("$$reactBasicHooks$$cachedSetState")||(v.$$reactBasicHooks$$cachedSetState=S=>()=>v(S)),i(s,v.$$reactBasicHooks$$cachedSetState)}function lu(i,c,s){const v=Sp(i,c);Ee.useEffect(s,[v])}Ee.useRef;Ee.useContext;Ee.useDebugValue;Ee.useId;Ee.useDeferredValue;Ee.useSyncExternalStore;Ee.useSyncExternalStore;function kp(i,c){return c.displayName=i,c.toString=()=>i,c}Ee.useEffectEvent||Ee.experimental_useEffectEvent;const Jr=i=>()=>{const c=ni((s,v)=>tr(s,v),i);return tr(c._1,s=>c._2(v=>s))},_p=i=>c=>s=>()=>lu((v,S)=>i.eq(v)(S),c,s),uu=i=>c=>()=>{const s=kp(i,S=>c(S.nested)()),v=zn(s);return S=>v({nested:S})},Ep={map:i=>c=>()=>{const s=c();return i(s)}},Lc=i=>{const c={apply:s=>v=>()=>{const S=s(),N=v();return S(N)},Functor0:()=>Ep};return{pure:s=>()=>s,Apply0:()=>c}},we=(i,c,s)=>typeof s===void 0||s==null||s.length===0?Ee.createElement(i,c):Array.isArray(s)?Ee.createElement(i,c,...s):Ee.createElement(i,c,s);Ee.createElement;const ri=i=>Object.assign.apply(null,[{}].concat(i));function Wr(i){return i.charCodeAt(0)}function xp(i){return String.fromCharCode(i)}const Cp=function(i){return function(c){if(c===0)return 0;var s=Math.abs(c);return(i%s+s)%s}},Np=function(i){return function(c){return function(s){return function(v){return function(S){return function(N){for(var W=[],J=N;;){var b=S(J);W.push(s(b));var ie=v(b);if(i(ie))return W;J=c(ie)}}}}}}},Pp=i=>{if(i.tag==="Just")return i._1;Se()},zp={unfoldr1:Np(wc)(Pp)(_c)(kc)},Lp=function(i){return function(c){return function(s){return function(v){return function(S){return function(N){for(var W=[],J=N;;){var b=S(J);if(i(b))return W;var ie=c(b);W.push(s(ie)),J=v(ie)}}}}}}},Tp=i=>{if(i.tag==="Just")return i._1;Se()},Rp={unfoldr:Lp(wc)(Tp)(_c)(kc),Unfoldable10:()=>zp};var Ip=typeof Array.from=="function",Fp=typeof Symbol<"u"&&Symbol!=null&&typeof Symbol.iterator<"u"&&typeof String.prototype[Symbol.iterator]=="function",Dp=typeof String.prototype.fromCodePoint=="function",Mp=typeof String.prototype.codePointAt=="function";const Op=function(i){return Mp?function(c){return c.codePointAt(0)}:i},Ap=function(i){return Dp?String.fromCodePoint:i},jp=function(i){return function(c){return Fp?function(s){for(var v="",S=s[Symbol.iterator](),N=0;N<c;++N){var W=S.next();if(W.done)return v;v+=W.value}return v}:i(c)}},Up=function(i){return function(c){return Ip?function(s){return Array.from(s,c)}:i}},Tc=i=>{const c=Pn(i);if(c===0)return De;if(c===1)return ze("Just",{head:Wr(Hr(0)(i)),tail:""});const s=Wr(Hr(1)(i)),v=Wr(Hr(0)(i));return 55296<=v&&v<=56319&&56320<=s&&s<=57343?ze("Just",{head:(((v-55296|0)*1024|0)+(s-56320|0)|0)+65536|0,tail:Qr(2)(i)}):ze("Just",{head:v,tail:Qr(1)(i)})},$p=i=>{const c=Tc(i);return c.tag==="Just"?ze("Just",tr(c._1.head,c._1.tail)):De},Bp=i=>Rp.unfoldr($p)(i),Vp=i=>{const c=Wr(Hr(0)(i));if(55296<=c&&c<=56319&&Pn(i)>1){const s=Wr(Hr(1)(i));if(56320<=s&&s<=57343)return(((c-55296|0)*1024|0)+(s-56320|0)|0)+65536|0}return c},Hp=Op(Vp),Wp=Up(Bp)(Hp),Rc=i=>c=>{const s=xc(i)(c);return s.tag==="Just"?ze("Just",Wp(Kd(s._1)(c)).length):De},ei=i=>Qd(i>=0&&i<=65535?xp(i):i<0?"\0":"￿"),Qp=i=>i<=65535?ei(i):ei(Dd(i-65536|0,1024)+55296|0)+ei(Cp(i-65536|0)(1024)+56320|0),Jp=Ap(Qp),Ic=i=>c=>{if(i<1)return"";const s=Tc(c);return s.tag==="Just"?Jp(s._1.head)+Ic(i-1|0)(s._1.tail):c},er=jp(Ic);function Kp(i){return function(){return function(c){return i(c)()}}}function Yp(i){return function(c){return function(s){return function(v){return function(){return v.addEventListener(i,c,s)}}}}}function Xp(i){return function(c){return function(s){return function(v){return function(){return v.removeEventListener(i,c,s)}}}}}const cc=function(){return window};function ti(i){return function(){return i.hash}}function Gp(i){return function(c){return function(){c.hash=i}}}function fc(i){return function(){return i.location}}const Zp=Lc().pure,li={moduleName:De,exportName:De},qp=i=>{const c=Rc("?")(i);if(c.tag==="Just"){const s=Qr(Pn(er(c._1+1|0)(i)))(i);return s===""?De:ze("Just",s)}if(c.tag==="Nothing")return De;Se()},bp=i=>{const c=Rc("?")(i);if(c.tag==="Just")return er(c._1)(i);if(c.tag==="Nothing")return i;Se()},dc=i=>{const c=Xd("/")((()=>{const s=bp(i);return er(2)(s)==="#/"?Qr(Pn(er(2)(s)))(s):er(1)(s)==="#"?Qr(Pn(er(1)(s)))(s):s})());return c.length===2?c[0]!==""?{moduleName:ze("Just",c[0]),exportName:ze("Just",c[1])}:li:c.length===1&&c[0]!==""?{moduleName:ze("Just",c[0]),exportName:De}:li},em=(()=>{const i=Jr(li);return()=>{const c=i();return lu((s,v)=>!0,void 0,()=>{const s=cc(),v=fc(s)(),S=ti(v)();c._2(dc(S))();const N=Kp(W=>{const J=ti(v);return()=>{const b=J();return c._2(dc(b))()}})();return Yp("hashchange")(N)(!1)(s)(),Xp("hashchange")(N)(!1)(s)}),Zp(tr(c._1,s=>v=>()=>{const S=cc(),N=fc(S)(),W=ti(N)();return Gp((()=>{const J=qp(W);return"#/"+s+"/"+v+(()=>{if(J.tag==="Nothing")return"";if(J.tag==="Just")return"?"+J._1;Se()})()})())(N)()}))()}})(),tm={display:"flex",gap:"4px"},nm={color:"#818cf8",fontSize:"16px",margin:"0"},rm={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},pc={marginTop:"16px"},mc={fontSize:"12px",color:"#64748b",cursor:"pointer",marginBottom:"8px"},hc={fontFamily:"system-ui, -apple-system, sans-serif",fontSize:"14px",lineHeight:"1.6",color:"#cbd5e1"},lm={width:"256px",borderRight:"1px solid #334155",display:"flex",flexDirection:"column",flexShrink:"0"},um={flex:"1",overflowY:"auto",padding:"12px 0"},om={padding:"8px 16px",fontSize:"11px",color:"#475569",borderTop:"1px solid #334155"},im={padding:"8px 12px",borderBottom:"1px solid #334155"},sm={display:"flex",flex:"1"},am={minHeight:"100vh",display:"flex",flexDirection:"column",fontFamily:"system-ui, -apple-system, sans-serif",backgroundColor:"#0f172a",color:"#e2e8f0",margin:"0"},vc={flex:"1",overflowY:"auto",padding:"24px"},Fc={color:"#64748b"},gc={border:"1px solid #334155",borderRadius:"4px",background:"#1e293b",color:"#94a3b8",padding:"4px 8px",cursor:"pointer",fontSize:"14px",fontFamily:"inherit"},cm={flex:"1"},fm={display:"flex",alignItems:"center",justifyContent:"center"},dm=ri([ri([Fc,fm]),cm]);function pm(i){return()=>import(i+"?t="+Date.now())}function Dc(){return fetch("stories.json").then(i=>i.json())}function mm(i,c){return c[i]}function hm(i){return()=>document.getElementById(i)}function vm(i){return()=>{window.__yogaStoriesHMR=c=>i(c)()}}function gm(i){return()=>{window.__yogaStoriesRefreshStories=()=>i()}}const yc=window.__yogaStoriesCodeViewer||"pre";function ym(i){return function(c){return Ee.createElement("details",{open:i||void 0,className:"ys-module-group"},...c)}}function wm(i){return Ee.createElement("summary",{className:"ys-module-label"},i)}const ou=Lc().pure,Sm=zn(zc),km=_p({eq:i=>c=>(i.mod.tag==="Nothing"?c.mod.tag==="Nothing":i.mod.tag==="Just"&&c.mod.tag==="Just"&&i.mod._1===c.mod._1)&&i.ver===c.ver}),_m=zn(yp),Em=bd(mm),xm=uu("StoryView")(i=>{const c=Em(i.exportName)(i.mod);return()=>{const s=c();return ou(Sm({className:i.layoutClass+" "+i.stageClass,children:[s]}))()}})(),Cm=i=>{if(i.tag==="Nothing")return lc;if(i.tag==="Just"){const c=ui(".Stories")(i._1.moduleName),s=(()=>{if(c.tag==="Nothing")return i._1.moduleName;if(c.tag==="Just")return c._1;Se()})();return wp({children:[(()=>{const v=Ec(i._1.componentSourceCode,De,Kr);if(v.tag==="Nothing")return lc;if(v.tag==="Just")return we("details",{style:pc},[we("summary",{style:mc},"Component: "+s),we("div",{style:hc},[zn(yc)({code:v._1})])]);Se()})(),we("details",{style:pc},[we("summary",{style:mc},"Story: "+i._1.sourcePath),we("div",{style:hc},[zn(yc)({code:i._1.sourceCode})])])]})}Se()},Nm=uu("MainPanel")(i=>()=>{const c=ni((ue,G)=>tr(ue,G),De),s=Jr(!0)(),v=ni((ue,G)=>tr(ue,G),0),S=vm(ue=>v._2(G=>G+1|0));lu((ue,G)=>!0,void 0,()=>(S(),()=>{})),km({mod:i.selected.moduleName,ver:v._1})((()=>{if(i.selected.moduleName.tag==="Nothing")return()=>()=>{};if(i.selected.moduleName.tag==="Just"){const ue=i.selected.moduleName._1,G=oi(ii,nr(nr(rr(pm("/output/"+ue+"/index.js")))(ai(ci)))(ne=>rr(c._2(se=>ze("Just",{name:ue,mod:ne})))));return()=>(G().run(),()=>{})}Se()})())();const N=Jr(!0)(),W=N._1?"ys-layout-right":"ys-layout-bottom",J=s._1?"ys-stage-dark":"ys-stage-light",b=s._1?"☀":"☾",ie=N._1?"↓":"→";return ou((()=>{if(i.selected.moduleName.tag==="Just"&&i.selected.exportName.tag==="Just"){const ue=i.selected.moduleName._1,G=ui(".Stories")(ue),ne=(()=>{if(G.tag==="Nothing")return ue;if(G.tag==="Just")return G._1;Se()})(),se=i.selected.exportName._1==="default"?ne:ne+" / "+i.selected.exportName._1,Qe=ru(re=>re.moduleName===ue)(i.stories);if(c._1.tag==="Nothing")return we("div",{style:ri([Fc,vc])},"Loading...");if(c._1.tag==="Just")return we("div",{style:vc},[we("div",{style:rm},[we("h3",{style:nm},se),we("div",{style:tm},[we("button",{style:gc,onClick:(()=>{const re=s._2(!s._1);return pe=>re()})()},b),we("button",{style:gc,onClick:(()=>{const re=N._2(!N._1);return pe=>re()})()},ie)])]),xm({mod:c._1._1.mod,exportName:i.selected.exportName._1,layoutClass:W,stageClass:J}),Cm(Qe)]);Se()}return we("div",{style:dm},"Select a story")})())()})(),Pm=uu("Sidebar")(i=>{const c=Jr("");return()=>{const s=c(),v=Go(s._1);return ou(we("nav",{style:lm},[we("div",{style:im},[_m({type:"text",placeholder:"Search...",value:s._1,onChange:S=>{const N=Ec(S.target.value,De,Kr);if(N.tag==="Just")return s._2(N._1)()},style:{width:"100%",padding:"6px 10px",fontSize:"13px",border:"1px solid #334155",borderRadius:"4px",background:"#1e293b",color:"#e2e8f0",outline:"none",fontFamily:"inherit"}})]),we("div",{style:um},[we("div",{},Za(S=>{const N=ui(".Stories")(S.moduleName),W=(()=>{if(N.tag==="Nothing")return S.moduleName;if(N.tag==="Just")return N._1;Se()})(),J=i.selected.moduleName.tag==="Nothing"?!1:i.selected.moduleName.tag==="Just"&&i.selected.moduleName._1===S.moduleName;return S.exports.length===1&&S.exports[0]==="default"?we("button",{style:{display:"block",width:"100%",textAlign:"left",padding:"6px 24px",fontSize:"12px",border:"none",cursor:"pointer",fontFamily:"inherit",color:J?"#ffffff":"#94a3b8",backgroundColor:J?"#1e293b":"transparent"},onClick:(()=>{const b=i.onSelect(S.moduleName)("default");return ie=>b()})()},W):ym(J)([wm(W),we("div",{},Za((()=>{const b=S.moduleName;return ie=>we("button",{style:(()=>{const ue=(i.selected.moduleName.tag==="Nothing"?!1:i.selected.moduleName.tag==="Just"&&i.selected.moduleName._1===b)&&(i.selected.exportName.tag==="Nothing"?!1:i.selected.exportName.tag==="Just"&&i.selected.exportName._1===ie);return{display:"block",width:"100%",textAlign:"left",padding:"6px 24px",fontSize:"12px",border:"none",cursor:"pointer",fontFamily:"inherit",color:ue?"#ffffff":"#94a3b8",backgroundColor:ue?"#1e293b":"transparent"}})(),onClick:(()=>{const ue=i.onSelect(b)(ie);return G=>ue()})()},ie)})())(S.exports))])})(Hd(S=>{const N=qa(v);return qa(v)(Go(S.moduleName))||Wd(W=>N(Go(W)),S.exports)},i.stories)))]),we("div",{style:om},"yoga-stories")]))()}})(),zm=i=>c=>{const s=v=>0<v.length?{moduleName:ze("Just",v[0].moduleName),exportName:(()=>{const S=ru(N=>N==="default")(v[0].exports);if(S.tag==="Just")return ze("Just",S._1);if(S.tag==="Nothing")return 0<v[0].exports.length?ze("Just",v[0].exports[0]):De;Se()})()}:c;if(c.exportName.tag==="Nothing"){if(c.moduleName.tag==="Nothing")return s(i);if(c.moduleName.tag==="Just"){const v=c.moduleName._1,S=ru(N=>N.moduleName===v)(i);if(S.tag==="Just")return{moduleName:ze("Just",v),exportName:(()=>{const N=ru(W=>W==="default")(S._1.exports);if(N.tag==="Just")return ze("Just",N._1);if(N.tag==="Nothing")return 0<S._1.exports.length?ze("Just",S._1.exports[0]):De;Se()})()};if(S.tag==="Nothing")return s(i);Se()}}return c},Lm=uu("App")(i=>()=>{const c=em(),s=Jr(i)(),v=gm((()=>{const N=oi(ii,nr(nr(rr(Dc))(ai(ci)))(W=>rr(s._2(W))));return()=>{N().run()}})());lu((N,W)=>!0,void 0,()=>(v(),()=>{}));const S=zm(s._1)(c._1);return ou(we("div",{style:am},[we("div",{style:sm},[Pm({stories:s._1,selected:S,onSelect:c._2}),Nm({selected:S,stories:s._1})])]))()})(),Rm=(()=>{const i=oi(ii,nr(nr(rr(Dc))(ai(ci)))(c=>rr((()=>{const s=hm("app");return()=>{const v=s(),S=hp(v)();return vp(S)(Lm(c))()}})())));return()=>{i().run()}})();export{Lm as app,zm as autoSelect,Rm as clientMain,yc as codeViewerComponent,ym as detailsElImpl,Sm as div,pm as dynamicImportImpl,Dc as fetchStoryDataImpl,hm as getElementByIdImpl,_m as input,Nm as mainPanel,vm as onModuleUpdateImpl,gm as onStoriesUpdateImpl,ou as pure,Pm as sidebar,Cm as sourceView,xm as storyView,wm as summaryElImpl,Em as unsafeGetProperty,mm as unsafeGetPropertyImpl,km as useEffect};
dist/assets/index-mEb4lrc-.cssnew file+1
@@ -0,0 +1 @@
1+@layer base{*,*:before,*:after{box-sizing:border-box;margin:0}}body{background:#0f172a;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}nav{max-height:100svh;overflow:hidden;display:flex;flex-direction:column}nav>div:nth-child(2){scrollbar-width:thin;scrollbar-color:#334155 transparent}nav>div:nth-child(2)::-webkit-scrollbar{width:6px}nav>div:nth-child(2)::-webkit-scrollbar-track{background:transparent}nav>div:nth-child(2)::-webkit-scrollbar-thumb{background:#334155;border-radius:3px}nav>div:nth-child(2)::-webkit-scrollbar-thumb:hover{background:#475569}nav details{border-bottom:1px solid #1e293b}nav details summary{cursor:pointer;list-style:none;padding:4px 12px!important;margin:0!important;font-size:11px!important;font-weight:600;color:#818cf8;-webkit-user-select:none;user-select:none}nav details summary::-webkit-details-marker{display:none}nav details summary:before{content:"▸ ";font-size:9px;margin-right:4px;color:#475569}nav details[open] summary:before{content:"▾ "}nav details summary:hover{background:#1e293b}nav button{padding:1px 20px!important;font-size:11px!important}.ys-layout-right,.ys-layout-bottom{border:1px solid #334155;border-radius:8px;overflow:hidden;margin-bottom:24px}.ys-layout-right>*,.ys-layout-bottom>*{display:contents}.ys-layout-right .ys-controls,.ys-layout-bottom .ys-controls{border-top:1px solid #334155}@media(min-width:800px){.ys-layout-right{display:grid;grid-template-columns:1fr 320px}.ys-layout-right .ys-controls{border-top:none;border-left:1px solid #334155}}.ys-preview{padding:48px;display:flex;align-items:center;justify-content:center;min-height:400px}.ys-controls{padding:16px;overflow-y:auto;background:#1e293b}.ys-stage-dark .ys-preview{background-color:#0a0a0a;background-image:linear-gradient(45deg,#111 25%,transparent 25%),linear-gradient(-45deg,#111 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#111 75%),linear-gradient(-45deg,transparent 75%,#111 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #1e293b;border-radius:8px}.ys-stage-light .ys-preview{background-color:#f8f8f8;background-image:linear-gradient(45deg,#e8e8e8 25%,transparent 25%),linear-gradient(-45deg,#e8e8e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8e8e8 75%),linear-gradient(-45deg,transparent 75%,#e8e8e8 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAASIABAAAAAACQQAAAQuAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVF4AdBEICoRkhAALIAABNgIkAzoEIAWFAAeBFAwHG2oHKJ6DceNW4lJEFHn9tEOE37LNsvkjHr7f739rn3u+OSrSxLQytE91Dw2PYtNVq3Qaw/vJ7fUBMdOj/u2ImB98cT5WUx9F13ZKt06mU7tG1sAYcM26yCRX4f/0904bmwq8hwkUUMTRX61pa9C3xlpAGYw1vOu8C2SBZZFlld7DAW82RJWmwYMI1AJCKBNCIASqdZGFmtPSNQRhMpR0EKjWTwm6z6sJ+4jqhxjovTinVdRpZaQjaQzAYjI8NgAKDJCokgunCn9oUQE8VZd/F//+v6P4F1U9gLr58yNI/dJX9BAshEoJbTDogz7ocKoUsPvES8UK/aQIUQgpGgECBVLkOEV6iASTYgNAPKdNXayhDPL7IJuAZnEYSZ0eOLc9i5Rv5/+lEi3sW/kfnCf/+fTe0sxS7CKLx5erRJkKOixEqQaoqrvx5HN4iz4VhX0gS6DjFIWUzn/fIXJRVFY1NFRVNVeFt+SYmrK6vCU6eJsnKnJj5HTESMTQZOTI3Y/tzr3rUcOsiRy/ciP50s3Mycgxmhz9GMXhjzVH30ut796NHP0UUa31/Zoa6vCH6iPvdIM0IRANaT60FablmZlZd+UKNFy9NrvnFGxb5NC2CRxR0/rIyF/WNn+35sv9r+tHVhkseuWGKkCPPh96+GXt8Lc/Sh24ujfjf+tNw1lZWreiPuHb/PSpyjdv2rf/++ZE5TSKjFdZxYsBvr1sEHl5STuHZqYR7jGYGvGBBdjcaB5bODY1GAxMjsd0wDMIzXAXODRd74DxNMtO4YuYHclgLQRzp9KlUmxptCwv9bYgvWGD2xBW7r9413fdJu+mxzvzAUYeeONQvZP4kgfqZle4jhH/MWh+UbxgtJdrLdXLymNL53PRU0D3Q6FcXTfGqGcul6vrqhgLGAVSv+IVIfZOHpu+mlLqSlnj903j8mazXDsba/wbxhS/4Oubh1c5/uXDgt4j5KtnGEy5BIJHo0ur+jD+r2qCkuP1aRVM8EpUoRYSJyqNRA38uwDvHBNo0AejO2Z+ZYLLal1QiFyFh1EDQOgSCSCpjwwKU8yDbIjroEwne0G5Qca49cYp4AlqtQNZfWTQoFb1tRpFYAmRD+HXTkV4uQhG2bg4OKmyoypAsUGtWgQXyFxYrkpODeUxvGqIZA61erXo0sFG1UBGuPgpuon8RNUG2DhovAjZCBuZwtXrU3mQGki9+pm0eVZAXoWxLWTQoYHBPrJR4WunNxIFbCHfkTyPK+sqxjxDmGArZvf79JGJ3GwEqjwc7a7NIrl/7bJ7Nzu4+n1Ow6shEPnUrtVo7cnd5Wi5qCUbBIQbNKCP95FMCSZylEV5VCiiMqqiOmrKZ/I/C0gI1fyuulVcM2E1r4MhtcV/fbCD+HwEvVzH1dGNAzFE0FTbKzyQz3gootrNbN2a4PuG0j0JOgE=) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAAbUAA8AAAAACOgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABWAAAABgAAAAcABQABEdQT1MAAAFwAAAAHgAAAB5EdEx1R1NVQgAAAZAAAAAnAAAAKLj8uOpPUy8yAAABuAAAAFEAAABgFwRca1NUQVQAAAIMAAAARgAAAF7mY9MfY21hcAAAAlQAAABRAAAAdAyHCodnYXNwAAACqAAAAAgAAAAIAAAAEGdseWYAAAKwAAAB6QAAAl7g5OpvaGVhZAAABJwAAAA2AAAANhSQ8UNoaGVhAAAE1AAAAB8AAAAkAcoBImhtdHgAAAT0AAAAHgAAADofBAM2bG9jYQAABRQAAAAgAAAAIATcBZ9tYXhwAAAFNAAAABwAAAAgAIcCb25hbWUAAAVQAAABEgAAAoA4pV3kcG9zdAAABmQAAABwAAAAlNdzMTB42mNgZGBg4GGAAEYgZAWTjCAeAAG0ABkAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYlADQiYXN58QBqGcxJI8Bj4GEGABEf//g0gAWkkFVQB42mNgYYpinMDAysDA1MUUwcDA4A2hGeMYjBgdgKIMDJwMUMDEzoAEvJyAxAEGXpaXzH/+XWFgYP7DqKPAwDj//nWgSjWmW0BZBQZWABNDDdYAAAB42kXIIQIBARQFwHl/QQIkWXInUAANXMOBJCcTd+KIGCjMNViq9/H0CM6P/S0j0bOwUqh08iEb8kPTXn3RiMoYhD90Nwc3AAB42lXIRwHCQBAF0JceehWAlTjhjikUgAVQA4mJLbdk5neUqHBVKWSv3XF2VCnt3AyevkVZv+sxBBbbq/6HfFP4hEcYQgEK82v1aHQ5RTs3FRQAAAAAAQAB//8AD3jabZA1tNRAFEDfTGDdfXHI2QQnZJJvK5ngDs13Welwt/78CtcS7xvcrcHKbXCtceh+wgtu437nXRCgC4BY9AGOXOAFYNHR0dzoKCGju8gJ6xiZaF3DWqcPBiSV5i2geaCgAlAJ77ghgjfiLC7KojvOZEmSXS63emXr5W7lsTLtXFMkRmks4ly+cYOEnvO2YLDNANv+9oJwhkpAAJAcHPG/1RC2BERc1ZGGMxYVWDyVSjc0NMaZELUf9e4JhCgNB3b2PiJRctuqZ0WPR8zilxutN/ji97vUBYMAnGjtzxjtK3wrDaMABo+R9KjWwNRUMppwuWS1QdfFZCIlMF2TxDGuJJlYW7OmVlvD+sx86b1hvC/l8yXf2hqZ66xbZ80yWzyD9/fzGaRzA58+nSOzYC+gw9AP+vyNqUAUhoD4lSnputbgUFPJ5O9Y+ReWlxkrc96naX08b3zk/KORb+E+VjYPmH1M6+UHeVlDtCzzGZ9FY8YMA8gPMsQA0jqaGkHT6cYSdVwl7Zs9Wzx+DyWUugPujd03T52ikrUvM26kF9PIcRmycuDBKcd3XRhPDgtnQACINzJ3fVl1tTB++3bc2S7kyD3cCQIQNMcSKaY2YOciE+d0zFbGjps6u0PILTFlRZHNJfAFnfeHtgAAAAABAAAAAjYEro52gl8PPPUAAwPoAAAAANvSppoAAAAA29rQ8vk5/tQEkgP8AAAABgACAAAAAAAAeNpjYGRgYP7z7woDA8uGn5Z/+1kmAUVQAR8Ar8AG6gB42mOKYIgCYiMkrAzCUHEbJJoBikHgCkMPAPDwCFUAAAAAABoAOwBGAFEAbwB3AKkAsQDmAQkBCQEJAQkBFgEveNpjYGRgYOBn3MGQx7CFgQ3MQwBmBiYALRoB+HjajJADbgVQEEXPZ20bQW3bthvXbr8Vp4to1KV0AV1Wb9JvZzJvzhvcB6CQL0wYzHnAj6E/yAYaDeVBNlJsMAfZxCy/QTbTy3eQLdTzGWQr3VwGuZhx2v/ZAIVUB9kc0TSUKJ8f5FIRHGPjnWs+2MKt+MYzt1xwr/jIk3JymR0X0wzIXKo7VbXjFvfLn3lTtCn7qPoB6+yyzb3qy8pdq/6hrj11fMj7OFbtEY+mrlU/516rVFCdVobplw/JEjVaCaqIYlUiUzOaW9aa/Q1idmlPXZHbCagW/B10XwaRi06VuVdMf+9DnIov6rlF8yzhUXxC/4c66Uz48UepqEN9N/Tzt2RwjOljsUUfj581AbaEXsIAAHjaY2BiAIP/qQxGQIqRAR3wA7EKw0lGJgYbRmZGFkZWRjZGdgZmRg5GTkYuRm42x6Si1LJU9tK8TAMTR1cI7WoB5btB+Zas6Ym5uYlgnoGjAZNzEF9icmlJanJ+bpJecmJxKg9IxtjADMwBAKDtHJg=) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal-C190GLew.woff2) format("woff2"),url(./jetbrains-mono-greek-400-normal-B9oWc5Lo.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA9UABAAAAAALMAAAA7zAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhWocghYGYD9TVEFUXgCDBBEICrBAp3ILgjgAATYCJAOEKAQgBYUAB4xODAcbIiYzo8LGAQCKfn4o/usELQ4rdj22ABHwitFYjZPqB3XSqAbV3C5dFkHYtTehxpeGbU+3+QexdERCkxARw9oNxAyetvXzdhdjl/7aiBiHgcqBjZywaGPSh4mNFccpF3DHlfyO8Jc/OiSe/kb7/iQYRAE23iScpHngiRRBFETNiZzQwc2HOllJ0fqXIjTY8RTYbDsklKc81hGPQcOJojhD/w80ll1aG/qiQErbzqOXjmvOVKd14tuv+Hxrlbarq/5xH7CiMPjaZXlrfNSp7uqaroZXvYAzc8A0kH2zs3MvHQBUORcJ2GG2cdFRgArh+Sgb7yOsjImpmgM0kq1FwhQCQzQ1Mt+j7at5GSAAIQAAKFLk6uMul4pIl4HIpEEUK0dUMiCMmhFWNoSDC+Exghgzi5i3hNhtN9qaINo+EbQj1tEIgJVLj5oebQ6I1/fyLMQYALYgALKS0yEOQCJG89uIiEPKyeRDVCmC0HgZ203jIg7kk6cHxfEKeBSDXtxd6n5yJzqpfSgXs9xMri1fPezlKMAVcCGEIhmwHiDRtJOyKfXkGsAVqI7ohIZs0rsDM/IU4fuQgkppCk2n+VRHy6mFttJ26t16mBjQPyIeYhvZnyXaiDSeaAYYXLiKPIm4uKh1zIq6gSRVU7WNPIV5v1PwBOy07RrrT6skwoEAtYyZeYgpBUABaDEmtPWRGP/UGABFgUUjchFXAghAgAYQpyPkCIBBoRwQgU/g3kQcyqTY9KSDItmjjmmkP+qJHG3C66hjXhtlhzwglI+1+4Be+T77hYQxxeNkCIDaKU+ANXhkMqePOVAQr7uwCjoBlCdtHQE8TNRd17//A/evkhSpkOMDA9VTmwAVAbLNlwMkoAG5qG2bWCYA/h3uEYgEhFqSmJJPpCIFbJHg1Aw5GaAujjqMzIHc8NrIHBEJJjGZP3cuFQZD9PvzLvZIaCIjBcTvEnIzTWiGjqdzlD+VAO2TUERK8smEi8lNNOguiAM9P6Gfo6bX8bD0v7V/cPwA/fDBi0BaGgUllWy5AATy6X9gAZqRVIsMLuVmqQ3QmrBbiFgTiWbxLDj1hBqINGLVYewQwySWWRyeQK1kXVJ0S2UjZ5WgXaIOSTodp42CUzqHXH226ZfJI4tXth45eqnslGdQgSGFhmmMyOdTbEyJcdv56U0pNa3MDJ1JVRZUmldtkcESglQkAOA8AMgAoBeYLQi+wDxAtwAAGlXJUdVLPLmo/TLRystE3SsqO29LUY0hsrtvBoXUw1Fy+XjIhqbj4rEZISsUysW1L68PlGRwyWImjWXjS9LFyUzjC7v7Z5hYsYKRhIH49EyxTJxutwOy2PRxp1R63SVViB+eNFYRywlEzJBIMDIl5Aa4PtbFOno416WTTkfVQwSPgIve66BCbLAuLmpCh59ln5uFECODSuUIJ2CJCCzDwbf+DV2/3yTtan5J1gEVuilcVASHULO9Bt+nWkIEHMMit5gOxaO4JpWjvdzOcySeFek9q4dy3jxi2BxHwsuuo2CzbQ+KJWxyqPUJljVCU3WT8JwlhZyLkKODRhZkQByHu8ERJIcGBexSmdwGPfMPbjnC0SwRUTyCAIwY4Mdr9zxJTKE5yp0mcEe9s3Umm/TZp2s4X/27cQUmhrd4Ow4ibPOTOxxT6w+S8ENc9AGE7meFOlNbuzjngJtzjFKcrMsxtf4G4UIPcNGXbvwNaeDea6+1L7kaYG+M13a455pruOh5Ww0HlhllPy/PsqS9Zr7ZV9cSLODAoItzBt2cI5i1brCxQRIcH6yr9wV5+XjhtlxuziH7LiqGTXVnkfCZntd1doJ5liyIno6X3GqH56fcnGNwE2IXvYhw5a/MJGsMns/TOawd+2HX5kOXxQZFsYkwmMetzGtqKDKSe+h9h7jX77z2Snb98vyL7rjmil1N3B/cCBfsC5rymA/ExpPlni/DL9i7eflmn66oxrSlMRRB/8Dbq/e/3aN95L3BG+dFd1d+uCVzKhQy5/+I77CmWJ/o2Hygaay8yleXU1c1NH2IpqHOYUtriyWHf3iZwxjZvNxm/Ti/O5+22uC3nVFxhu1wvQc08ZZ+nb5/9oBF38ehJXaKPt7K6/v34Ltqai21rbXDXI3BRDa+9XDSGp8gzZZarV2ag9v3RBzSNfFjU/M+uVduNDTsMNY0GCOHDU3O4dazeb3zFXjg0rlPuiV75+m+kzV3v5qc/PHdJ2j6pI+wDP+U7mFPW/uw23ltZemTVTo+3+KNa1yyuwdmfI41j1/yvbG3oaLR3G3Sd1xdrNOUfAou3jYw0z860D9jr+9sqU1IIHve9W56/fIEU2fztvaqHQ213trhKauqjXVmr/kFxP1m7bdCE88Plpb1m840l/VNQz72QvvMPlc5z9fvKPt1xBtXv9yVZ9nGmxscXiDfwGcI4LQ9duBaG7Nxjw2aWMuArp7In2qxObTwKfr40/iy/j34zhqeN59qHuZqDBaysQWiL/PZsk4cyV13mvbwWw7phfEDC/O+fm9/ram+sspcXxs5hm9pHjufSujGRbKXaTPmBAPPfMm45bau15+jR/bbBx80mR7sCth94rfB6Q6sngJcuO1v4a7Lu157ad9GKIlypuEea9GDnXs0IytDmZ2Rka2cVv4jrIHmaFZ3O9OWlWX7gLuRH1mMjsxE8VrEH/XNRrErsh61R6PD3e2d7dDsb3Z38k15W/kFkrwmHk+PhWNKx3nLMhHkSl5ZLMvHWPGPfwRB9AKr2QoSUb4qSlB18X715zkqwRI0G3lvUOptugtcID+tsKQForrC+pqxS4X1dcof21bf4OQcbZ2Le6y53kKao3rxNWE9f1a+S3t2tiIu5yej2d/W12RozBwrLh7LbDT0NkUDi+HBQPj0xIlAoKHFFxAMPB8Vce+KKo28Rq0SHV3LUk6MNLv35DMrCzVNmbxBeCGCKzMtu20y8f+SVD4h31Sosky03Upl9YJxzh+L0ZFANLR4LOpYj452tne145E/wok2e6JX/xBX/vH8WaFQojdWlrhzuOXjs1Zn3cCkT4qWSmZeqX/B4tciE4HBmUBZwGxtMDaqnCpdllPVaIzdNw9ZqfDU30ppYDgw2B+A5JP5L8bj4tgWoy/t6WRRcO2P8uFDakiP2fMWaviyaOYFr94gE0nEsXysWligOuHRC2TiH0XSJ/4WqQcjE4GxmUAocKlG+jECgZHFwGX8vabVzf8f4KQSi8Gp6laIdgV0q8OzbmjyaWdnW1MQXZoJDb7ZaEdzVzMoNQiAGESUwszDAIzTDIqSxGFoxoRZ/vTKM8CfyZ9V/ZAPfzZ/Ds4tMHm0dSxCkOPaNpKlK8/KwGQVCdzqbPDn1HKuiT8WHUnStEQYZB2TC6WJ6spymNIjBV7JK5lSs1C5qDoRSYBUSlgH31LlM7X5O4o8eBxrX3MDwtOG1iZdZ/NjXsu0gBJohRVmlQNfwVfQmsReAdZEAahljqkMaxLHg/gT+BONkwxcgT0CH/5k/pQrcCpMUYiGtPqbDGvVgALfitYyTHyI7iP25WqsSqAlstCbcmZ3k0PcRZlgbs0KCrwb7lImBTqQCCawVEpMWHur0DRm3+9sVAOK6UQiqESr8NaEtY8Vu86AIjK3KRZhXNwqD34Oc38umLZM7/33+38/uOj7///Z9yMAAHqAUtN3Bsa/l9rSiKVxlONqqbKozYWfYMRMRkicEE2FhIs4TuWQJL0RDNwCPy0hP1CbGAVY9Mb6W+DZ2p14CIQoIBjqGKpe6lOONhDJTUFBXMgZYOPct8C7Ffmf2jR2ksQ72U7f6SBu5gywoW8x2Qhy1APl1CZGAQ4ksGGD8loGsjY0UQKXmhdvpBboCNglmiU2XUCieL2dF1bDaTacoykaTjgFAhquyoFkiSk0LZyooeM7gQDVIlmNOwCPlICNKQpatkhBhUQJpdLCVwFqWj3FQ8sWeajTWbJiLeRJQlRmsyh1YLRZtAzVNr0dAoCqYN6wXLhzQGL8LY6mvwSAd1698ly88s2Xfwa7FbVA/wsgBhQAgABfG3dQHs2o/066DhB0wWo68NIlpR8Rtqkj9flbwtMc3oZyWoIn3n+L86o5vA1V8ng6L4C9+Ax3YgMBHN8Er4rV97ZRXgdo2vF244hH35wAzlOM0Y1BABGNnNCZ4UFNPID7U9KeSCgiP5EiDnMizejpExlFzj9RIM2BE2MU8pwgViH7TAQQSqpgnDuJJAk2kHIaYDNnhs+sFsvBuaf5DXMbXT9uwvLIbk49b4mBNm3JsEV+85YtKUHWb5rT5ywap9WpUZtWo6q5Fot8W89a0m4OaXOK2Ywat2KaD3NdRi1S/+eloldCT0fn1K5q61Mpa6eaNrKMB6WMQqn83IfXmTNv1eIRiaKj7aOsikMmoxej+EfqsmjOpFHDLnneylGLQxT66vnHnh/n12VXDN1Hw6/bcNpctWo3vrwApZvfrdEDiP8IzgPkeiYUoQlzDvYWB0cnZ6uLq5t7+aRk5I6TIFGS5IqkSJWWXjqFDEqZVLJky5FrG7W8quQrUEijSLESWtsz0tErVVa9chUqValmUMNoh1omZjxSM4s69Ro0atKspTe1smrLpl2HTl262dg5OLm4eezMw6tHrz79BgzyGarXsBGjxqJtJvhNmjJtxqw58xYsWrJsxS4Bu61aE7THXvvsFxJ2wEERhxx2xFHHrIs6fuE/r+1vm6/8jhhtDCwnASDGR1h4SGhYwEGU1Y/Xffk5G4u9XgIAYtxyGpZ5y9sDdNbyP142W5DgAhoE7i3q0c5x2vm9v24aZuNohdcxqSEAz8up00My03HSwmqPa8bMecG3Tjzb+f9EelEtg2vpzPeiIEEBwSA8IEDBwAE9F5Z6vQIQjAnLGTgWLO+uZTL/qwGEAYOAQpg3TefgwBCQgBDzqukKDBAOoU3KVtqIbBXK9XpEAAujuudkZN724kIGmrtVaS38ZZLrS9/4fsKMQhN3yXK5gvSBvJ2Y9/Nydbcvb0bm58+e3FhmGfGLJ9u7axl1F1LQTbaCeyrbu7wFCsorFgV4qnh+GUrWtaczqkSBB96AEeKRB94k2SyLuyw3qwrxeg3P5FNR1Av1Gsq2/ds6dPPkBAAA) format("woff2"),url(./jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2) format("woff2"),url(./jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal-V6pRDFza.woff2) format("woff2"),url(./jetbrains-mono-latin-400-normal-6-qcROiO.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-orange-400:oklch(75% .183 55.934);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-neutral-900:oklch(20.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:where(:root),:root:has(input.theme-controller[value=light]:checked),[data-theme=light]{color-scheme:light;--color-base-100:oklch(100% 0 0);--color-base-200:oklch(98% 0 0);--color-base-300:oklch(95% 0 0);--color-base-content:oklch(21% .006 285.885);--color-primary:oklch(45% .24 277.023);--color-primary-content:oklch(93% .034 272.788);--color-secondary:oklch(65% .241 354.308);--color-secondary-content:oklch(94% .028 342.258);--color-accent:oklch(77% .152 181.912);--color-accent-content:oklch(38% .063 188.416);--color-neutral:oklch(14% .005 285.823);--color-neutral-content:oklch(92% .004 286.32);--color-info:oklch(74% .16 232.661);--color-info-content:oklch(29% .066 243.157);--color-success:oklch(76% .177 163.223);--color-success-content:oklch(37% .077 168.94);--color-warning:oklch(82% .189 84.429);--color-warning-content:oklch(41% .112 45.904);--color-error:oklch(71% .194 13.428);--color-error-content:oklch(27% .105 12.094);--radius-selector:.5rem;--radius-field:.25rem;--radius-box:.5rem;--size-selector:.25rem;--size-field:.25rem;--border:1px;--depth:1;--noise:0}@media(prefers-color-scheme:dark){:root:not([data-theme]){color-scheme:dark;--color-base-100:oklch(25.33% .016 252.42);--color-base-200:oklch(23.26% .014 253.1);--color-base-300:oklch(21.15% .012 254.09);--color-base-content:oklch(97.807% .029 256.847);--color-primary:oklch(58% .233 277.117);--color-primary-content:oklch(96% .018 272.314);--color-secondary:oklch(65% .241 354.308);--color-secondary-content:oklch(94% .028 342.258);--color-accent:oklch(77% .152 181.912);--color-accent-content:oklch(38% .063 188.416);--color-neutral:oklch(14% .005 285.823);--color-neutral-content:oklch(92% .004 286.32);--color-info:oklch(74% .16 232.661);--color-info-content:oklch(29% .066 243.157);--color-success:oklch(76% .177 163.223);--color-success-content:oklch(37% .077 168.94);--color-warning:oklch(82% .189 84.429);--color-warning-content:oklch(41% .112 45.904);--color-error:oklch(71% .194 13.428);--color-error-content:oklch(27% .105 12.094);--radius-selector:.5rem;--radius-field:.25rem;--radius-box:.5rem;--size-selector:.25rem;--size-field:.25rem;--border:1px;--depth:1;--noise:0}}:root:has(input.theme-controller[value=light]:checked),[data-theme=light]{color-scheme:light;--color-base-100:oklch(100% 0 0);--color-base-200:oklch(98% 0 0);--color-base-300:oklch(95% 0 0);--color-base-content:oklch(21% .006 285.885);--color-primary:oklch(45% .24 277.023);--color-primary-content:oklch(93% .034 272.788);--color-secondary:oklch(65% .241 354.308);--color-secondary-content:oklch(94% .028 342.258);--color-accent:oklch(77% .152 181.912);--color-accent-content:oklch(38% .063 188.416);--color-neutral:oklch(14% .005 285.823);--color-neutral-content:oklch(92% .004 286.32);--color-info:oklch(74% .16 232.661);--color-info-content:oklch(29% .066 243.157);--color-success:oklch(76% .177 163.223);--color-success-content:oklch(37% .077 168.94);--color-warning:oklch(82% .189 84.429);--color-warning-content:oklch(41% .112 45.904);--color-error:oklch(71% .194 13.428);--color-error-content:oklch(27% .105 12.094);--radius-selector:.5rem;--radius-field:.25rem;--radius-box:.5rem;--size-selector:.25rem;--size-field:.25rem;--border:1px;--depth:1;--noise:0}:root:has(input.theme-controller[value=dark]:checked),[data-theme=dark]{color-scheme:dark;--color-base-100:oklch(25.33% .016 252.42);--color-base-200:oklch(23.26% .014 253.1);--color-base-300:oklch(21.15% .012 254.09);--color-base-content:oklch(97.807% .029 256.847);--color-primary:oklch(58% .233 277.117);--color-primary-content:oklch(96% .018 272.314);--color-secondary:oklch(65% .241 354.308);--color-secondary-content:oklch(94% .028 342.258);--color-accent:oklch(77% .152 181.912);--color-accent-content:oklch(38% .063 188.416);--color-neutral:oklch(14% .005 285.823);--color-neutral-content:oklch(92% .004 286.32);--color-info:oklch(74% .16 232.661);--color-info-content:oklch(29% .066 243.157);--color-success:oklch(76% .177 163.223);--color-success-content:oklch(37% .077 168.94);--color-warning:oklch(82% .189 84.429);--color-warning-content:oklch(41% .112 45.904);--color-error:oklch(71% .194 13.428);--color-error-content:oklch(27% .105 12.094);--radius-selector:.5rem;--radius-field:.25rem;--radius-box:.5rem;--size-selector:.25rem;--size-field:.25rem;--border:1px;--depth:1;--noise:0}:root{--fx-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.34' numOctaves='4' stitchTiles='stitch'%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23a)' opacity='0.2'%3E%3C/rect%3E%3C/svg%3E");scrollbar-color:currentColor #0000}@supports (color:color-mix(in lab,red,red)){:root{scrollbar-color:color-mix(in oklch,currentColor 35%,#0000) #0000}}@property --radialprogress{syntax:"<percentage>";inherits:true;initial-value:0%}:root:not(span){overflow:var(--page-overflow)}:root{background:var(--page-scroll-bg,var(--root-bg));--page-scroll-bg-on:linear-gradient(var(--root-bg,#0000), var(--root-bg,#0000)) var(--root-bg,#0000)}@supports (color:color-mix(in lab,red,red)){:root{--page-scroll-bg-on:linear-gradient(var(--root-bg,#0000), var(--root-bg,#0000)) color-mix(in srgb, var(--root-bg,#0000), oklch(0% 0 0) calc(var(--page-has-backdrop,0) * 40%))}}:root{--page-scroll-transition-on:background-color .3s ease-out;transition:var(--page-scroll-transition);scrollbar-gutter:var(--page-scroll-gutter,unset);scrollbar-gutter:if(style(--page-has-scroll: 1): var(--page-scroll-gutter,unset) ; else: unset)}@keyframes set-page-has-scroll{0%,to{--page-has-scroll:1}}:root,[data-theme]{background:var(--page-scroll-bg,var(--root-bg));color:var(--color-base-content)}:where(:root,[data-theme]){--root-bg:var(--color-base-100)}}@layer components;@layer utilities{@layer daisyui.l1.l2.l3{.diff{webkit-user-select:none;-webkit-user-select:none;user-select:none;direction:ltr;grid-template-rows:1fr 1.8rem 1fr;grid-template-columns:auto 1fr;width:100%;display:grid;position:relative;overflow:hidden;container-type:inline-size}.diff:focus-visible,.diff:has(.diff-item-1:focus-visible){outline-style:var(--tw-outline-style);outline-offset:1px;outline-width:2px;outline-color:var(--color-base-content)}.diff:focus-visible .diff-resizer{min-width:95cqi;max-width:95cqi}.diff:has(.diff-item-1:focus-visible){outline-style:var(--tw-outline-style);outline-offset:1px;outline-width:2px}.diff:has(.diff-item-1:focus-visible) .diff-resizer{min-width:5cqi;max-width:5cqi}@supports (-webkit-overflow-scrolling:touch) and (overflow:-webkit-paged-x){.diff:focus .diff-resizer{min-width:5cqi;max-width:5cqi}.diff:has(.diff-item-1:focus) .diff-resizer{min-width:95cqi;max-width:95cqi}}:where(.drawer-side){overflow:hidden}.drawer-side{pointer-events:none;visibility:hidden;z-index:10;overscroll-behavior:contain;opacity:0;width:100%;transition:opacity .2s ease-out .1s allow-discrete,visibility .3s ease-out .1s allow-discrete;inset-inline-start:0;background-color:#0000;grid-template-rows:repeat(1,minmax(0,1fr));grid-template-columns:repeat(1,minmax(0,1fr));grid-row-start:1;grid-column-start:1;place-items:flex-start start;height:100dvh;display:grid;position:fixed;top:0}.drawer-side>.drawer-overlay{cursor:pointer;background-color:#0006;place-self:stretch stretch;position:sticky;top:0}.drawer-side>*{grid-row-start:1;grid-column-start:1}.drawer-side>:not(.drawer-overlay){will-change:transform;transition:translate .3s ease-out,width .2s ease-out;translate:-100%}[dir=rtl] :is(.drawer-side>:not(.drawer-overlay)){translate:100%}.fab{pointer-events:none;z-index:999;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));white-space:nowrap;inset-inline-end:1rem;flex-direction:column-reverse;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1rem}.fab>*{pointer-events:auto;align-items:center;gap:.5rem;display:flex}.fab>:hover,.fab>:has(:focus-visible){z-index:1}.fab>[tabindex]:first-child{transition-property:opacity,visibility,rotate;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:grid;position:relative}.fab .fab-close,.fab .fab-main-action{inset-inline-end:0;position:absolute;bottom:0}:is(.fab:focus-within:has(.fab-close),.fab:focus-within:has(.fab-main-action))>[tabindex]{opacity:0;rotate:90deg}.fab:focus-within>[tabindex]:first-child{pointer-events:none}.fab:focus-within>:nth-child(n+2){visibility:visible;--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:1}.fab>:nth-child(n+2){visibility:hidden;--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:0;transition-property:opacity,scale,visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.fab>:nth-child(n+2).fab-main-action,.fab>:nth-child(n+2).fab-close{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.fab>:nth-child(3){transition-delay:30ms}.fab>:nth-child(4){transition-delay:60ms}.fab>:nth-child(5){transition-delay:90ms}.fab>:nth-child(6){transition-delay:.12s}.drawer-toggle{appearance:none;opacity:0;width:0;height:0;position:fixed}:where(.drawer-toggle:checked~.drawer-side){scrollbar-color:currentColor oklch(0 0 0 / calc(var(--page-has-backdrop,0) * .4))}@supports (color:color-mix(in lab,red,red)){:where(.drawer-toggle:checked~.drawer-side){scrollbar-color:color-mix(in oklch,currentColor 35%,#0000) oklch(0 0 0 / calc(var(--page-has-backdrop,0) * .4))}}:where(:root:has(.drawer-toggle:checked)){--page-has-backdrop:1;--page-overflow:hidden;--page-scroll-bg:var(--page-scroll-bg-on);--page-scroll-gutter:stable;--page-scroll-transition:var(--page-scroll-transition-on);animation:forwards set-page-has-scroll;animation-timeline:scroll()}.tooltip{--tt-bg:var(--color-neutral);--tt-off: calc(100% + .5rem) ;--tt-tail: calc(100% + 1px + .25rem) ;display:inline-block;position:relative}.tooltip>.tooltip-content,.tooltip[data-tip]:before{border-radius:var(--radius-field);text-align:center;white-space:normal;max-width:20rem;color:var(--color-neutral-content);opacity:0;background-color:var(--tt-bg);pointer-events:none;z-index:2;--tw-content:attr(data-tip);content:var(--tw-content);width:max-content;padding-block:.25rem;padding-inline:.5rem;font-size:.875rem;line-height:1.25;position:absolute}.tooltip:after{opacity:0;background-color:var(--tt-bg);content:"";pointer-events:none;--mask-tooltip:url("data:image/svg+xml,%3Csvg width='10' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.500009 1C3.5 1 3.00001 4 5.00001 4C7 4 6.5 1 9.5 1C10 1 10 0.499897 10 0H0C-1.99338e-08 0.5 0 1 0.500009 1Z' fill='black'/%3E%3C/svg%3E%0A");width:.625rem;height:.25rem;-webkit-mask-position:-1px 0;mask-position:-1px 0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-image:var(--mask-tooltip);mask-image:var(--mask-tooltip);display:block;position:absolute}@media(prefers-reduced-motion:no-preference){.tooltip>.tooltip-content,.tooltip[data-tip]:before,.tooltip:after{transition:opacity .2s cubic-bezier(.4,0,.2,1) 75ms,transform .2s cubic-bezier(.4,0,.2,1) 75ms}}:is(.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))).tooltip-open,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):hover,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):has(:focus-visible))>.tooltip-content,:is(.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))).tooltip-open,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):hover,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):has(:focus-visible))[data-tip]:before,:is(.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))).tooltip-open,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):hover,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):has(:focus-visible)):after{opacity:1;--tt-pos:0rem}@media(prefers-reduced-motion:no-preference){:is(.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))).tooltip-open,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):hover,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):has(:focus-visible))>.tooltip-content,:is(.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))).tooltip-open,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):hover,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):has(:focus-visible))[data-tip]:before,:is(.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))).tooltip-open,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):hover,.tooltip:is([data-tip]:not([data-tip=""]),:has(.tooltip-content:not(:empty))):has(:focus-visible)):after{transition:opacity .2s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.4,0,.2,1)}}.tab{cursor:pointer;appearance:none;text-align:center;webkit-user-select:none;-webkit-user-select:none;user-select:none;flex-wrap:wrap;justify-content:center;align-items:center;display:inline-flex;position:relative}@media(hover:hover){.tab:hover{color:var(--color-base-content)}}.tab{--tab-p:.75rem;--tab-bg:var(--color-base-100);--tab-border-color:var(--color-base-300);--tab-radius-ss:0;--tab-radius-se:0;--tab-radius-es:0;--tab-radius-ee:0;--tab-order:0;--tab-radius-min:calc(.75rem - var(--border));--tab-radius-limit:min(var(--radius-field), var(--tab-radius-min));--tab-radius-grad:#0000 calc(69% - var(--border)), var(--tab-border-color) calc(69% - var(--border) + .25px), var(--tab-border-color) 69%, var(--tab-bg) calc(69% + .25px) ;order:var(--tab-order);height:var(--tab-height);padding-inline:var(--tab-p);border-color:#0000;font-size:.875rem}.tab:is(input[type=radio]){min-width:fit-content}.tab:is(input[type=radio]):after{--tw-content:attr(aria-label);content:var(--tw-content)}.tab:is(label){position:relative}.tab:is(label) input{cursor:pointer;appearance:none;opacity:0;position:absolute;inset:0}:is(.tab:checked,.tab:is(label:has(:checked)),.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]))+.tab-content{display:block}.tab:not(:checked,label:has(:checked),:hover,.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]){color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.tab:not(:checked,label:has(:checked),:hover,.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]){color:color-mix(in oklab,var(--color-base-content) 50%,transparent)}}.tab:not(input):empty{cursor:default;flex-grow:1}.tab:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.tab:focus{outline-offset:2px;outline:2px solid #0000}}.tab:focus-visible,.tab:is(label:has(:checked:focus-visible)){outline-offset:-5px;outline:2px solid}.tab[disabled]{pointer-events:none;opacity:.4}.menu{--menu-active-fg:var(--color-neutral-content);--menu-active-bg:var(--color-neutral);flex-flow:column wrap;width:fit-content;padding:.5rem;font-size:.875rem;display:flex}.menu :where(li ul){white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem;position:relative}.menu :where(li ul):before{background-color:var(--color-base-content);opacity:.1;width:var(--border);content:"";inset-inline-start:0;position:absolute;top:.75rem;bottom:.75rem}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}.menu :where(li:not(.menu-title)>:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--radius-field);text-align:start;text-wrap:balance;-webkit-user-select:none;user-select:none;grid-auto-columns:minmax(auto,max-content) auto max-content;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;padding-block:.375rem;padding-inline:.75rem;transition-property:color,background-color,box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);display:grid}.menu :where(li>details>summary){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.menu :where(li>details>summary){outline-offset:2px;outline:2px solid #0000}}.menu :where(li>details>summary)::-webkit-details-marker{display:none}:is(.menu :where(li>details>summary),.menu :where(li>.menu-dropdown-toggle)):after{content:"";transform-origin:50%;pointer-events:none;justify-self:flex-end;width:.375rem;height:.375rem;transition-property:rotate,translate;transition-duration:.2s;display:block;translate:0 -1px;rotate:-135deg;box-shadow:inset 2px 2px}.menu details{interpolate-size:allow-keywords;overflow:hidden}.menu details::details-content{block-size:0}@media(prefers-reduced-motion:no-preference){.menu details::details-content{transition-behavior:allow-discrete;transition-property:block-size,content-visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}}.menu details[open]::details-content{block-size:auto}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{translate:0 1px;rotate:45deg}.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn).menu-focus,.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn):focus-visible{cursor:pointer;background-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn).menu-focus,.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn):focus-visible{background-color:color-mix(in oklab,var(--color-base-content) 10%,transparent)}}.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn).menu-focus,.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn):focus-visible{color:var(--color-base-content);--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn).menu-focus,.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title),li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.menu-active,:active,.btn):focus-visible{outline-offset:2px;outline:2px solid #0000}}.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title):not(.menu-active,:active,.btn):hover,li:not(.menu-title,.disabled)>details>summary:not(.menu-title):not(.menu-active,:active,.btn):hover){cursor:pointer;background-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title):not(.menu-active,:active,.btn):hover,li:not(.menu-title,.disabled)>details>summary:not(.menu-title):not(.menu-active,:active,.btn):hover){background-color:color-mix(in oklab,var(--color-base-content) 10%,transparent)}}.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title):not(.menu-active,:active,.btn):hover,li:not(.menu-title,.disabled)>details>summary:not(.menu-title):not(.menu-active,:active,.btn):hover){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title):not(.menu-active,:active,.btn):hover,li:not(.menu-title,.disabled)>details>summary:not(.menu-title):not(.menu-active,:active,.btn):hover){outline-offset:2px;outline:2px solid #0000}}.menu :where(li:not(.menu-title,.disabled)>:not(ul,details,.menu-title):not(.menu-active,:active,.btn):hover,li:not(.menu-title,.disabled)>details>summary:not(.menu-title):not(.menu-active,:active,.btn):hover){box-shadow:inset 0 1px #00000003,inset 0 -1px #ffffff03}.menu :where(li:empty){background-color:var(--color-base-content);opacity:.1;height:1px;margin:.5rem 1rem}.menu :where(li){flex-flow:column wrap;flex-shrink:0;align-items:stretch;display:flex;position:relative}.menu :where(li) .badge{justify-self:flex-end}.menu :where(li)>:not(ul,.menu-title,details,.btn):active,.menu :where(li)>:not(ul,.menu-title,details,.btn).menu-active,.menu :where(li)>details>summary:active{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.menu :where(li)>:not(ul,.menu-title,details,.btn):active,.menu :where(li)>:not(ul,.menu-title,details,.btn).menu-active,.menu :where(li)>details>summary:active{outline-offset:2px;outline:2px solid #0000}}.menu :where(li)>:not(ul,.menu-title,details,.btn):active,.menu :where(li)>:not(ul,.menu-title,details,.btn).menu-active,.menu :where(li)>details>summary:active{color:var(--menu-active-fg);background-color:var(--menu-active-bg);background-size:auto,calc(var(--noise) * 100%);background-image:none,var(--fx-noise)}:is(.menu :where(li)>:not(ul,.menu-title,details,.btn):active,.menu :where(li)>:not(ul,.menu-title,details,.btn).menu-active,.menu :where(li)>details>summary:active):not(:is(.menu :where(li)>:not(ul,.menu-title,details,.btn):active,.menu :where(li)>:not(ul,.menu-title,details,.btn).menu-active,.menu :where(li)>details>summary:active):active){box-shadow:0 2px calc(var(--depth) * 3px) -2px var(--menu-active-bg)}.menu :where(li).menu-disabled{pointer-events:none;color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.menu :where(li).menu-disabled{color:color-mix(in oklab,var(--color-base-content) 20%,transparent)}}.menu .dropdown:focus-within .menu-dropdown-toggle:after{translate:0 1px;rotate:45deg}.menu .dropdown-content{margin-top:.5rem;padding:.5rem}.menu .dropdown-content:before{display:none}.floating-label{display:block;position:relative}.floating-label input{display:block}.floating-label input::placeholder,.floating-label textarea::placeholder{transition:top .1s ease-out,translate .1s ease-out,scale .1s ease-out,opacity .1s ease-out}.floating-label>span{z-index:1;background-color:var(--color-base-100);opacity:0;inset-inline-start:.75rem;top:calc(var(--size-field,.25rem) * 10 / 2);pointer-events:none;border-radius:2px;padding-inline:.25rem;font-size:.875rem;line-height:1;transition:top .1s ease-out,translate .1s ease-out,scale .1s ease-out,opacity .1s ease-out;position:absolute;translate:0 -50%}:is(.floating-label:focus-within,.floating-label:not(:has(input:placeholder-shown,textarea:placeholder-shown))) ::placeholder{opacity:0;pointer-events:auto;top:0;translate:-12.5% calc(-50% - .125em);scale:.75}:is(.floating-label:focus-within,.floating-label:not(:has(input:placeholder-shown,textarea:placeholder-shown)))>span{opacity:1;pointer-events:auto;z-index:2;top:0;translate:-12.5% calc(-50% - .125em);scale:.75}.floating-label:has(:disabled,[disabled])>span{opacity:0}.floating-label:has(.input-xs,.select-xs,.textarea-xs) span{top:calc(var(--size-field,.25rem) * 6 / 2);font-size:.6875rem}.floating-label:has(.input-sm,.select-sm,.textarea-sm) span{top:calc(var(--size-field,.25rem) * 8 / 2);font-size:.75rem}.floating-label:has(.input-md,.select-md,.textarea-md) span{top:calc(var(--size-field,.25rem) * 10 / 2);font-size:.875rem}.floating-label:has(.input-lg,.select-lg,.textarea-lg) span{top:calc(var(--size-field,.25rem) * 12 / 2);font-size:1.125rem}.floating-label:has(.input-xl,.select-xl,.textarea-xl) span{top:calc(var(--size-field,.25rem) * 14 / 2);font-size:1.375rem}.diff-item-2{grid-row:1/span 3;grid-column-start:1;position:relative}.diff-item-2:after{pointer-events:none;z-index:2;background-color:var(--color-base-100);border-radius:3.40282e38px;position:absolute;top:50%;bottom:0;right:1px}@supports (color:color-mix(in lab,red,red)){.diff-item-2:after{background-color:color-mix(in oklab,var(--color-base-100) 98%,transparent)}}.diff-item-2:after{border:2px solid var(--color-base-100);content:"";outline:1px solid var(--color-base-content);border:.5px solid #0000001f;width:1.2rem;height:1.8rem}@supports (color:color-mix(in lab,red,red)){.diff-item-2:after{outline:1px solid color-mix(in oklab,var(--color-base-content) 10%,#0000)}}.diff-item-2:after{outline-offset:-3px;translate:50% -50%}.diff-item-2>*{pointer-events:none;object-fit:cover;object-position:center;width:100cqi;max-width:none;height:100%;position:absolute;top:0;bottom:0;left:0}@supports (-webkit-overflow-scrolling:touch) and (overflow:-webkit-paged-x){.diff-item-2:after{--tw-content:none;content:var(--tw-content)}}.diff-item-1{z-index:1;border-right:2px solid var(--color-base-100);grid-row:1/span 3;grid-column-start:1;position:relative;overflow:hidden}.diff-item-1:focus-visible{--tw-outline-style:none;outline-style:none}.diff-item-1>*{pointer-events:none;object-fit:cover;object-position:center;width:100cqi;max-width:none;height:100%;position:absolute;top:0;bottom:0;left:0}.dock{z-index:1;background-color:var(--color-base-100);color:currentColor;border-top:.5px solid var(--color-base-content);flex-direction:row;justify-content:space-around;align-items:center;width:100%;padding:.5rem;display:flex;position:fixed;bottom:0;left:0;right:0}@supports (color:color-mix(in lab,red,red)){.dock{border-top:.5px solid color-mix(in oklab,var(--color-base-content) 5%,#0000)}}.dock{height:4rem;height:calc(4rem + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}.dock>*{cursor:pointer;border-radius:var(--radius-box);background-color:#0000;flex-direction:column;flex-shrink:1;flex-basis:100%;justify-content:center;align-items:center;gap:1px;max-width:8rem;height:100%;margin-bottom:.5rem;transition:opacity .2s ease-out;display:flex;position:relative}@media(hover:hover){.dock>:hover{opacity:.8}}:is(.dock>[aria-disabled=true],.dock>[disabled]),:is(.dock>[aria-disabled=true],.dock>[disabled]):hover{pointer-events:none;color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:is(.dock>[aria-disabled=true],.dock>[disabled]),:is(.dock>[aria-disabled=true],.dock>[disabled]):hover{color:color-mix(in oklab,var(--color-base-content) 10%,transparent)}}:is(.dock>[aria-disabled=true],.dock>[disabled]),:is(.dock>[aria-disabled=true],.dock>[disabled]):hover{opacity:1}.dock>* .dock-label{font-size:.6875rem}.dock>:after{content:"";background-color:#0000;border-top:3px solid #0000;border-radius:3.40282e38px;width:1.5rem;height:.25rem;transition:background-color .1s ease-out,text-color .1s ease-out,width .1s ease-out;position:absolute;bottom:.2rem}.dropdown{position-area:var(--anchor-v,bottom) var(--anchor-h,span-right);display:inline-block;position:relative}.dropdown>:not(:has(~[class*=dropdown-content])):focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.dropdown>:not(:has(~[class*=dropdown-content])):focus{outline-offset:2px;outline:2px solid #0000}}.dropdown .dropdown-content{position:absolute}.dropdown.dropdown-close .dropdown-content,.dropdown:not(details,.dropdown-open,.dropdown-hover:hover,:focus-within) .dropdown-content,.dropdown.dropdown-hover:not(:hover) [tabindex]:first-child:focus:not(:focus-visible)~.dropdown-content{transform-origin:top;opacity:0;display:none;scale:95%}.dropdown[popover],.dropdown .dropdown-content{z-index:999}@media(prefers-reduced-motion:no-preference){.dropdown[popover],.dropdown .dropdown-content{transition-behavior:allow-discrete;transition-property:opacity,scale,display;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);animation:.2s dropdown}}@starting-style{.dropdown[popover],.dropdown .dropdown-content{opacity:0;scale:95%}}:is(.dropdown:not(.dropdown-close).dropdown-open,.dropdown:not(.dropdown-close):not(.dropdown-hover):focus,.dropdown:not(.dropdown-close):focus-within)>[tabindex]:first-child{pointer-events:none}:is(.dropdown:not(.dropdown-close).dropdown-open,.dropdown:not(.dropdown-close):not(.dropdown-hover):focus,.dropdown:not(.dropdown-close):focus-within) .dropdown-content,.dropdown:not(.dropdown-close).dropdown-hover:hover .dropdown-content{opacity:1;scale:100%}.dropdown:is(details) summary::-webkit-details-marker{display:none}.dropdown:where([popover]){background:0 0}.dropdown[popover]{color:inherit;position:fixed}@supports not (position-area:bottom){.dropdown[popover]{margin:auto}.dropdown[popover].dropdown-close{transform-origin:top;opacity:0;display:none;scale:95%}.dropdown[popover].dropdown-open:not(:popover-open){transform-origin:top;opacity:0;display:none;scale:95%}.dropdown[popover]::backdrop{background-color:oklab(0% none none/.3)}}:is(.dropdown[popover].dropdown-close,.dropdown[popover]:not(.dropdown-open,:popover-open)){transform-origin:top;opacity:0;display:none;scale:95%}:where(.btn){width:unset}.btn{cursor:pointer;text-align:center;vertical-align:middle;outline-offset:2px;webkit-user-select:none;-webkit-user-select:none;user-select:none;padding-inline:var(--btn-p);color:var(--btn-fg);--tw-prose-links:var(--btn-fg);height:var(--size);font-size:var(--fontsize,.875rem);outline-color:var(--btn-color,var(--color-base-content));background-color:var(--btn-bg);background-size:auto,calc(var(--noise) * 100%);background-image:none,var(--btn-noise);border-width:var(--border);border-style:solid;border-color:var(--btn-border);text-shadow:0 .5px oklch(100% 0 0 / calc(var(--depth) * .15));touch-action:manipulation;box-shadow:0 .5px 0 .5px oklch(100% 0 0 / calc(var(--depth) * 6%)) inset,var(--btn-shadow);--size:calc(var(--size-field,.25rem) * 10);--btn-bg:var(--btn-color,var(--color-base-200));--btn-fg:var(--color-base-content);--btn-p:1rem;--btn-border:var(--btn-bg);border-start-start-radius:var(--join-ss,var(--radius-field));border-start-end-radius:var(--join-se,var(--radius-field));border-end-end-radius:var(--join-ee,var(--radius-field));border-end-start-radius:var(--join-es,var(--radius-field));flex-wrap:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:.375rem;font-weight:600;transition-property:color,background-color,border-color,box-shadow;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);display:inline-flex}@supports (color:color-mix(in lab,red,red)){.btn{--btn-border:color-mix(in oklab, var(--btn-bg), #000 calc(var(--depth) * 5%))}}.btn{--btn-shadow:0 3px 2px -2px var(--btn-bg), 0 4px 3px -2px var(--btn-bg)}@supports (color:color-mix(in lab,red,red)){.btn{--btn-shadow:0 3px 2px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000), 0 4px 3px -2px color-mix(in oklab, var(--btn-bg) calc(var(--depth) * 30%), #0000)}}.btn{--btn-noise:var(--fx-noise)}@media(hover:hover){.btn:hover{--btn-bg:var(--btn-color,var(--color-base-200))}@supports (color:color-mix(in lab,red,red)){.btn:hover{--btn-bg:color-mix(in oklab, var(--btn-color,var(--color-base-200)), #000 7%)}}}.btn:focus-visible,.btn:has(:focus-visible){isolation:isolate;outline-width:2px;outline-style:solid}.btn:active:not(.btn-active){--btn-bg:var(--btn-color,var(--color-base-200));translate:0 .5px}@supports (color:color-mix(in lab,red,red)){.btn:active:not(.btn-active){--btn-bg:color-mix(in oklab, var(--btn-color,var(--color-base-200)), #000 5%)}}.btn:active:not(.btn-active){--btn-border:var(--btn-color,var(--color-base-200))}@supports (color:color-mix(in lab,red,red)){.btn:active:not(.btn-active){--btn-border:color-mix(in oklab, var(--btn-color,var(--color-base-200)), #000 7%)}}.btn:active:not(.btn-active){--btn-shadow:0 0 0 0 oklch(0% 0 0/0), 0 0 0 0 oklch(0% 0 0/0)}.btn:is(input[type=checkbox],input[type=radio]){appearance:none}.btn:is(input[type=checkbox],input[type=radio])[aria-label]:after{--tw-content:attr(aria-label);content:var(--tw-content)}.btn:where(input:checked:not(.filter .btn)){--btn-color:var(--color-primary);--btn-fg:var(--color-primary-content);isolation:isolate}.loading{pointer-events:none;aspect-ratio:1;vertical-align:middle;width:calc(var(--size-selector,.25rem) * 6);background-color:currentColor;display:inline-block;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.countdown{display:inline-flex}.countdown>*{visibility:hidden;--value-v: mod(max(0, var(--value)), 1000) ;--value-hundreds: round(to-zero, var(--value-v) / 100, 1) ;--value-tens: round(to-zero, mod(var(--value-v), 100) / 10, 1) ;--value-ones: mod(var(--value-v), 100) ;--show-hundreds:clamp(clamp(0, var(--digits,1) - 2, 1), var(--value-hundreds), 1);--show-tens:clamp(clamp(0, var(--digits,1) - 1, 1), var(--value-tens) + var(--show-hundreds), 1);--first-digits: round(to-zero, var(--value-v) / 10, 1) ;height:1em;width:calc(1ch + var(--show-tens) * 1ch + var(--show-hundreds) * 1ch);direction:ltr;transition:width .4s ease-out .2s;display:inline-block;position:relative;overflow-y:clip}.countdown>:before,.countdown>:after{visibility:visible;--tw-content:"00\a 01\a 02\a 03\a 04\a 05\a 06\a 07\a 08\a 09\a 10\a 11\a 12\a 13\a 14\a 15\a 16\a 17\a 18\a 19\a 20\a 21\a 22\a 23\a 24\a 25\a 26\a 27\a 28\a 29\a 30\a 31\a 32\a 33\a 34\a 35\a 36\a 37\a 38\a 39\a 40\a 41\a 42\a 43\a 44\a 45\a 46\a 47\a 48\a 49\a 50\a 51\a 52\a 53\a 54\a 55\a 56\a 57\a 58\a 59\a 60\a 61\a 62\a 63\a 64\a 65\a 66\a 67\a 68\a 69\a 70\a 71\a 72\a 73\a 74\a 75\a 76\a 77\a 78\a 79\a 80\a 81\a 82\a 83\a 84\a 85\a 86\a 87\a 88\a 89\a 90\a 91\a 92\a 93\a 94\a 95\a 96\a 97\a 98\a 99\a";content:var(--tw-content);font-variant-numeric:tabular-nums;white-space:pre;text-align:end;direction:rtl;transition:all 1s cubic-bezier(1,0,0,1),width .2s ease-out .2s,opacity .2s ease-out .2s;position:absolute;overflow-x:clip}.countdown>:before{width:calc(1ch + var(--show-hundreds) * 1ch);top:calc(var(--first-digits) * -1em);opacity:var(--show-tens);inset-inline-end:0}.countdown>:after{width:1ch;top:calc(var(--value-ones) * -1em);inset-inline-start:0}.collapse{border-radius:var(--radius-box,1rem);isolation:isolate;grid-template-rows:max-content 0fr;grid-template-columns:minmax(0,1fr);width:100%;display:grid;position:relative;overflow:hidden}@media(prefers-reduced-motion:no-preference){.collapse{transition:grid-template-rows .2s}}.collapse>input:is([type=checkbox],[type=radio]){appearance:none;opacity:0;z-index:1;grid-row-start:1;grid-column-start:1;width:100%;min-height:1lh;padding:1rem;padding-inline-end:3rem;transition:background-color .2s ease-out}.collapse:is([open],[tabindex]:focus:not(.collapse-close),[tabindex]:focus-within:not(.collapse-close)),.collapse:not(.collapse-close):has(>input:is([type=checkbox],[type=radio]):checked){grid-template-rows:max-content 1fr}.collapse:is([open],[tabindex]:focus:not(.collapse-close),[tabindex]:focus-within:not(.collapse-close))>.collapse-content,.collapse:not(.collapse-close)>:where(input:is([type=checkbox],[type=radio]):checked~.collapse-content){content-visibility:visible;min-height:fit-content}@supports not (content-visibility:visible){.collapse:is([open],[tabindex]:focus:not(.collapse-close),[tabindex]:focus-within:not(.collapse-close))>.collapse-content,.collapse:not(.collapse-close)>:where(input:is([type=checkbox],[type=radio]):checked~.collapse-content){visibility:visible}}.collapse:focus-visible,.collapse:has(>input:is([type=checkbox],[type=radio]):focus-visible),.collapse:has(summary:focus-visible){outline-color:var(--color-base-content);outline-offset:2px;outline-width:2px;outline-style:solid}.collapse:not(.collapse-close)>input[type=checkbox],.collapse:not(.collapse-close)>input[type=radio]:not(:checked),.collapse:not(.collapse-close)>.collapse-title{cursor:pointer}:is(.collapse[tabindex]:focus:not(.collapse-close,.collapse[open]),.collapse[tabindex]:focus-within:not(.collapse-close,.collapse[open]))>.collapse-title{cursor:unset}.collapse:is([open],[tabindex]:focus:not(.collapse-close),[tabindex]:focus-within:not(.collapse-close))>:where(.collapse-content),.collapse:not(.collapse-close)>:where(input:is([type=checkbox],[type=radio]):checked~.collapse-content){padding-bottom:1rem}.collapse:is(details){width:100%}@media(prefers-reduced-motion:no-preference){.collapse:is(details)::details-content{transition:content-visibility .2s allow-discrete,visibility .2s allow-discrete,min-height .2s ease-out allow-discrete,padding .1s ease-out 20ms,background-color .2s ease-out,height .2s;interpolate-size:allow-keywords;height:0}.collapse:is(details):where([open])::details-content{height:auto}}.collapse:is(details) summary{display:block;position:relative}.collapse:is(details) summary::-webkit-details-marker{display:none}.collapse:is(details)>.collapse-content{content-visibility:visible}.collapse:is(details) summary{outline:none}.collapse-content{content-visibility:hidden;min-height:0;cursor:unset;grid-row-start:2;grid-column-start:1;padding-left:1rem;padding-right:1rem}@supports not (content-visibility:hidden){.collapse-content{visibility:hidden}}@media(prefers-reduced-motion:no-preference){.collapse-content{transition:content-visibility .2s allow-discrete,visibility .2s allow-discrete,min-height .2s ease-out allow-discrete,padding .1s ease-out 20ms,background-color .2s ease-out}}.validator-hint{visibility:hidden;margin-top:.5rem;font-size:.75rem}.validator:user-valid{--input-color:var(--color-success)}.validator:user-valid:focus{--input-color:var(--color-success)}.validator:user-valid:checked{--input-color:var(--color-success)}.validator:user-valid[aria-checked=true]{--input-color:var(--color-success)}.validator:user-valid:focus-within{--input-color:var(--color-success)}.validator:has(:user-valid){--input-color:var(--color-success)}.validator:has(:user-valid):focus{--input-color:var(--color-success)}.validator:has(:user-valid):checked{--input-color:var(--color-success)}.validator:has(:user-valid)[aria-checked=true]{--input-color:var(--color-success)}.validator:has(:user-valid):focus-within{--input-color:var(--color-success)}.validator:user-invalid{--input-color:var(--color-error)}.validator:user-invalid:focus{--input-color:var(--color-error)}.validator:user-invalid:checked{--input-color:var(--color-error)}.validator:user-invalid[aria-checked=true]{--input-color:var(--color-error)}.validator:user-invalid:focus-within{--input-color:var(--color-error)}.validator:user-invalid~.validator-hint{visibility:visible;color:var(--color-error)}.validator:has(:user-invalid){--input-color:var(--color-error)}.validator:has(:user-invalid):focus{--input-color:var(--color-error)}.validator:has(:user-invalid):checked{--input-color:var(--color-error)}.validator:has(:user-invalid)[aria-checked=true]{--input-color:var(--color-error)}.validator:has(:user-invalid):focus-within{--input-color:var(--color-error)}.validator:has(:user-invalid)~.validator-hint{visibility:visible;color:var(--color-error)}:is(.validator[aria-invalid]:not([aria-invalid=false]),.validator:has([aria-invalid]:not([aria-invalid=false]))),:is(.validator[aria-invalid]:not([aria-invalid=false]),.validator:has([aria-invalid]:not([aria-invalid=false]))):focus,:is(.validator[aria-invalid]:not([aria-invalid=false]),.validator:has([aria-invalid]:not([aria-invalid=false]))):checked,:is(.validator[aria-invalid]:not([aria-invalid=false]),.validator:has([aria-invalid]:not([aria-invalid=false])))[aria-checked=true],:is(.validator[aria-invalid]:not([aria-invalid=false]),.validator:has([aria-invalid]:not([aria-invalid=false]))):focus-within{--input-color:var(--color-error)}:is(.validator[aria-invalid]:not([aria-invalid=false]),.validator:has([aria-invalid]:not([aria-invalid=false])))~.validator-hint{visibility:visible;color:var(--color-error)}.radial-progress{height:var(--size);width:var(--size);vertical-align:middle;box-sizing:content-box;--value:0;--size:5rem;--thickness:calc(var(--size) / 10);--radialprogress:calc(var(--value) * 1%);background-color:#0000;border-radius:3.40282e38px;place-content:center;transition:--radialprogress .3s linear;display:inline-grid;position:relative}.radial-progress:before{content:"";background:radial-gradient(farthest-side,currentColor 98%,#0000) top/var(--thickness) var(--thickness) no-repeat,conic-gradient(currentColor var(--radialprogress),#0000 0);webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - var(--thickness)),#000 calc(100% + .5px - var(--thickness)));-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - var(--thickness)),#000 calc(100% + .5px - var(--thickness)));mask:radial-gradient(farthest-side,#0000 calc(100% - var(--thickness)),#000 calc(100% + .5px - var(--thickness)));border-radius:3.40282e38px;position:absolute;inset:0}.radial-progress:after{content:"";inset:calc(50% - var(--thickness) / 2);transform:rotate(calc(var(--value) * 3.6deg - 90deg)) translate(calc(var(--size) / 2 - 50%));background-color:currentColor;border-radius:3.40282e38px;transition:transform .3s linear;position:absolute}.list{flex-direction:column;font-size:.875rem;display:flex}.list .list-row{--list-grid-cols:minmax(0, auto) 1fr;border-radius:var(--radius-box);word-break:break-word;grid-auto-flow:column;grid-template-columns:var(--list-grid-cols);gap:1rem;padding:1rem;display:grid;position:relative}:is(.list>:not(:last-child).list-row,.list>:not(:last-child) .list-row):after{content:"";border-bottom:var(--border) solid;inset-inline:var(--radius-box);border-color:var(--color-base-content);position:absolute;bottom:0}@supports (color:color-mix(in lab,red,red)){:is(.list>:not(:last-child).list-row,.list>:not(:last-child) .list-row):after{border-color:color-mix(in oklab,var(--color-base-content) 5%,transparent)}}.toast{translate:var(--toast-x,0) var(--toast-y,0);inset-inline:auto 1rem;background-color:#0000;flex-direction:column;gap:.5rem;width:max-content;max-width:calc(100vw - 2rem);display:flex;position:fixed;top:auto;bottom:1rem}@media(prefers-reduced-motion:no-preference){.toast>*{animation:.25s ease-out toast}}.toggle{border:var(--border) solid currentColor;color:var(--input-color);cursor:pointer;appearance:none;vertical-align:middle;webkit-user-select:none;-webkit-user-select:none;user-select:none;--radius-selector-max:calc(var(--radius-selector) + var(--radius-selector) + var(--radius-selector));border-radius:calc(var(--radius-selector) + min(var(--toggle-p),var(--radius-selector-max)) + min(var(--border),var(--radius-selector-max)));padding:var(--toggle-p);flex-shrink:0;grid-template-columns:0fr 1fr 1fr;place-content:center;display:inline-grid;position:relative;box-shadow:inset 0 1px}@supports (color:color-mix(in lab,red,red)){.toggle{box-shadow:0 1px color-mix(in oklab,currentColor calc(var(--depth) * 10%),#0000) inset}}.toggle{--input-color:var(--color-base-content);transition:color .3s,grid-template-columns .2s}@supports (color:color-mix(in lab,red,red)){.toggle{--input-color:color-mix(in oklab, var(--color-base-content) 50%, #0000)}}.toggle{--toggle-p:calc(var(--size) * .125);--size:calc(var(--size-selector,.25rem) * 6);width:calc((var(--size) * 2) - (var(--border) + var(--toggle-p)) * 2);height:var(--size)}.toggle>*{z-index:1;cursor:pointer;appearance:none;background-color:#0000;border:none;grid-column:2/span 1;grid-row-start:1;height:100%;padding:.125rem;transition:opacity .2s,rotate .4s}.toggle>:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.toggle>:focus{outline-offset:2px;outline:2px solid #0000}}.toggle>:nth-child(2){color:var(--color-base-100);rotate:none}.toggle>:nth-child(3){color:var(--color-base-100);opacity:0;rotate:-15deg}.toggle:has(:checked)>:nth-child(2){opacity:0;rotate:15deg}.toggle:has(:checked)>:nth-child(3){opacity:1;rotate:none}.toggle:before{aspect-ratio:1;border-radius:var(--radius-selector);--tw-content:"";content:var(--tw-content);width:100%;height:100%;box-shadow:0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px currentColor;background-color:currentColor;grid-row-start:1;grid-column-start:2;transition:background-color .1s,translate .2s,inset-inline-start .2s;position:relative;inset-inline-start:0;translate:0}@supports (color:color-mix(in lab,red,red)){.toggle:before{box-shadow:0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px color-mix(in oklab,currentColor calc(var(--depth) * 10%),#0000)}}.toggle:before{background-size:auto,calc(var(--noise) * 100%);background-image:none,var(--fx-noise)}@media(forced-colors:active){.toggle:before{outline-style:var(--tw-outline-style);outline-offset:-1px;outline-width:1px}}@media print{.toggle:before{outline-offset:-1rem;outline:.25rem solid}}.toggle:focus-visible,.toggle:has(:focus-visible){outline-offset:2px;outline:2px solid}.toggle:checked,.toggle[aria-checked=true],.toggle:has(>input:checked){background-color:var(--color-base-100);--input-color:var(--color-base-content);grid-template-columns:1fr 1fr 0fr}:is(.toggle:checked,.toggle[aria-checked=true],.toggle:has(>input:checked)):before{background-color:currentColor}@starting-style{:is(.toggle:checked,.toggle[aria-checked=true],.toggle:has(>input:checked)):before{opacity:0}}.toggle:indeterminate{grid-template-columns:.5fr 1fr .5fr}.toggle:disabled{cursor:not-allowed;opacity:.3}.toggle:disabled:before{border:var(--border) solid currentColor;background-color:#0000}.input{cursor:text;border:var(--border) solid #0000;appearance:none;background-color:var(--color-base-100);vertical-align:middle;white-space:nowrap;width:clamp(3rem,20rem,100%);height:var(--size);font-size:max(var(--font-size,.875rem),.875rem);touch-action:manipulation;border-color:var(--input-color);box-shadow:0 1px var(--input-color) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;border-start-start-radius:var(--join-ss,var(--radius-field));border-start-end-radius:var(--join-se,var(--radius-field));border-end-end-radius:var(--join-ee,var(--radius-field));border-end-start-radius:var(--join-es,var(--radius-field));flex-shrink:1;align-items:center;gap:.5rem;padding-inline:.75rem;display:inline-flex;position:relative}@supports (color:color-mix(in lab,red,red)){.input{box-shadow:0 1px color-mix(in oklab,var(--input-color) calc(var(--depth) * 10%),#0000) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset}}.input{--size:calc(var(--size-field,.25rem) * 10);--input-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.input{--input-color:color-mix(in oklab, var(--color-base-content) 20%, #0000)}}.input:where(input){display:inline-flex}.input :where(input){appearance:none;background-color:#0000;border:none;width:100%;height:100%;display:inline-flex}.input :where(input):focus,.input :where(input):focus-within{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.input :where(input):focus,.input :where(input):focus-within{outline-offset:2px;outline:2px solid #0000}}.input :where(input[type=url]),.input :where(input[type=email]){direction:ltr}.input :where(input[type=date]){display:inline-flex}.input:focus,.input:focus-within{--input-color:var(--color-base-content);box-shadow:0 1px var(--input-color)}@supports (color:color-mix(in lab,red,red)){.input:focus,.input:focus-within{box-shadow:0 1px color-mix(in oklab,var(--input-color) calc(var(--depth) * 10%),#0000)}}.input:focus,.input:focus-within{outline:2px solid var(--input-color);outline-offset:2px;isolation:isolate}@media(pointer:coarse){@supports (-webkit-touch-callout:none){.input:focus,.input:focus-within{--font-size:1rem}}}.input:has(>input[disabled]),.input:is(:disabled,[disabled]),fieldset:disabled .input{cursor:not-allowed;border-color:var(--color-base-200);background-color:var(--color-base-200);color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.input:has(>input[disabled]),.input:is(:disabled,[disabled]),fieldset:disabled .input{color:color-mix(in oklab,var(--color-base-content) 40%,transparent)}}:is(.input:has(>input[disabled]),.input:is(:disabled,[disabled]),fieldset:disabled .input)::placeholder{color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:is(.input:has(>input[disabled]),.input:is(:disabled,[disabled]),fieldset:disabled .input)::placeholder{color:color-mix(in oklab,var(--color-base-content) 20%,transparent)}}.input:has(>input[disabled]),.input:is(:disabled,[disabled]),fieldset:disabled .input{box-shadow:none}.input:has(>input[disabled])>input[disabled]{cursor:not-allowed}.input::-webkit-date-and-time-value{text-align:inherit}.input[type=number]::-webkit-inner-spin-button{margin-block:-.75rem;margin-inline-end:-.75rem}.input::-webkit-calendar-picker-indicator{position:absolute;inset-inline-end:.75em}.input:has(>input[type=date]) :where(input[type=date]){webkit-appearance:none;appearance:none;display:inline-flex}.input:has(>input[type=date]) input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;width:1em;height:1em;position:absolute;inset-inline-end:.75em}.indicator{width:max-content;display:inline-flex;position:relative}.indicator :where(.indicator-item){z-index:1;white-space:nowrap;top:var(--indicator-t,0);bottom:var(--indicator-b,auto);left:var(--indicator-s,auto);right:var(--indicator-e,0);translate:var(--indicator-x,50%) var(--indicator-y,-50%);position:absolute}.table{border-collapse:separate;--tw-border-spacing-x: 0rem ;--tw-border-spacing-y: 0rem ;width:100%;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-radius:var(--radius-box);text-align:left;font-size:.875rem;position:relative}.table:where(:dir(rtl),[dir=rtl],[dir=rtl] *){text-align:right}@media(hover:hover){:is(.table tr.row-hover,.table tr.row-hover:nth-child(2n)):hover{background-color:var(--color-base-200)}}.table :where(th,td){vertical-align:middle;padding-block:.75rem;padding-inline:1rem}.table :where(thead,tfoot){white-space:nowrap;color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.table :where(thead,tfoot){color:color-mix(in oklab,var(--color-base-content) 60%,transparent)}}.table :where(thead,tfoot){font-size:.875rem;font-weight:600}.table :where(tfoot tr:first-child :is(td,th)){border-top:var(--border) solid var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.table :where(tfoot tr:first-child :is(td,th)){border-top:var(--border) solid color-mix(in oklch,var(--color-base-content) 5%,#0000)}}.table :where(.table-pin-rows thead tr){z-index:1;background-color:var(--color-base-100);position:sticky;top:0}.table :where(.table-pin-rows tfoot tr){z-index:1;background-color:var(--color-base-100);position:sticky;bottom:0}.table :where(.table-pin-cols tr th){background-color:var(--color-base-100);position:sticky;left:0;right:0}.table :where(thead tr :is(td,th),tbody tr:not(:last-child) :is(td,th)){border-bottom:var(--border) solid var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.table :where(thead tr :is(td,th),tbody tr:not(:last-child) :is(td,th)){border-bottom:var(--border) solid color-mix(in oklch,var(--color-base-content) 5%,#0000)}}.steps{counter-reset:step;grid-auto-columns:1fr;grid-auto-flow:column;display:inline-grid;overflow:auto hidden}.steps .step{text-align:center;--step-bg:var(--color-base-300);--step-fg:var(--color-base-content);grid-template-rows:40px 1fr;grid-template-columns:auto;place-items:center;min-width:4rem;display:grid}.steps .step:before{width:100%;height:.5rem;color:var(--step-bg);background-color:var(--step-bg);content:"";border:1px solid;grid-row-start:1;grid-column-start:1;margin-inline-start:-100%;top:0}.steps .step>.step-icon,.steps .step:not(:has(.step-icon)):after{--tw-content:counter(step);content:var(--tw-content);counter-increment:step;z-index:1;color:var(--step-fg);background-color:var(--step-bg);border:1px solid var(--step-bg);border-radius:3.40282e38px;grid-row-start:1;grid-column-start:1;place-self:center;place-items:center;width:2rem;height:2rem;display:grid;position:relative}.steps .step:first-child:before{--tw-content:none;content:var(--tw-content)}.steps .step[data-content]:after{--tw-content:attr(data-content);content:var(--tw-content)}.range{appearance:none;webkit-appearance:none;--range-thumb:var(--color-base-100);--range-thumb-size:calc(var(--size-selector,.25rem) * 6);--range-progress:currentColor;--range-fill:1;--range-p:.25rem;--range-bg:currentColor}@supports (color:color-mix(in lab,red,red)){.range{--range-bg:color-mix(in oklab, currentColor 10%, #0000)}}.range{cursor:pointer;vertical-align:middle;--radius-selector-max:calc(var(--radius-selector) + var(--radius-selector) + var(--radius-selector));border-radius:calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)));width:clamp(3rem,20rem,100%);height:var(--range-thumb-size);background-color:#0000;border:none;overflow:hidden}[dir=rtl] .range{--range-dir:-1}.range:focus{outline:none}.range:focus-visible{outline-offset:2px;outline:2px solid}.range::-webkit-slider-runnable-track{background-color:var(--range-bg);border-radius:var(--radius-selector);width:100%;height:calc(var(--range-thumb-size) * .5)}@media(forced-colors:active){.range::-webkit-slider-runnable-track{border:1px solid}.range::-moz-range-track{border:1px solid}}.range::-webkit-slider-thumb{box-sizing:border-box;border-radius:calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)));background-color:var(--range-thumb);height:var(--range-thumb-size);width:var(--range-thumb-size);border:var(--range-p) solid;appearance:none;webkit-appearance:none;color:var(--range-progress);box-shadow:0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px currentColor,0 0 0 2rem var(--range-thumb) inset,calc((var(--range-dir,1) * -100cqw) - (var(--range-dir,1) * var(--range-thumb-size) / 2)) 0 0 calc(100cqw * var(--range-fill));position:relative;top:50%;transform:translateY(-50%)}@supports (color:color-mix(in lab,red,red)){.range::-webkit-slider-thumb{box-shadow:0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px color-mix(in oklab,currentColor calc(var(--depth) * 10%),#0000),0 0 0 2rem var(--range-thumb) inset,calc((var(--range-dir,1) * -100cqw) - (var(--range-dir,1) * var(--range-thumb-size) / 2)) 0 0 calc(100cqw * var(--range-fill))}}.range::-moz-range-track{background-color:var(--range-bg);border-radius:var(--radius-selector);width:100%;height:calc(var(--range-thumb-size) * .5)}.range::-moz-range-thumb{box-sizing:border-box;border-radius:calc(var(--radius-selector) + min(var(--range-p),var(--radius-selector-max)));height:var(--range-thumb-size);width:var(--range-thumb-size);border:var(--range-p) solid;color:var(--range-progress);box-shadow:0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px currentColor,0 0 0 2rem var(--range-thumb) inset,calc((var(--range-dir,1) * -100cqw) - (var(--range-dir,1) * var(--range-thumb-size) / 2)) 0 0 calc(100cqw * var(--range-fill));background-color:currentColor;position:relative;top:50%}@supports (color:color-mix(in lab,red,red)){.range::-moz-range-thumb{box-shadow:0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px color-mix(in oklab,currentColor calc(var(--depth) * 10%),#0000),0 0 0 2rem var(--range-thumb) inset,calc((var(--range-dir,1) * -100cqw) - (var(--range-dir,1) * var(--range-thumb-size) / 2)) 0 0 calc(100cqw * var(--range-fill))}}.range:disabled{cursor:not-allowed;opacity:.3}.chat-bubble{border-radius:var(--radius-field);background-color:var(--color-base-300);width:fit-content;color:var(--color-base-content);grid-row-end:3;min-width:2.5rem;max-width:90%;min-height:2rem;padding-block:.5rem;padding-inline:1rem;display:block;position:relative}.chat-bubble:before{background-color:inherit;content:"";width:.75rem;height:.75rem;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-image:var(--mask-chat);mask-image:var(--mask-chat);position:absolute;bottom:0;-webkit-mask-position:0 -1px;mask-position:0 -1px;-webkit-mask-size:.8125rem;mask-size:.8125rem}.diff-resizer{isolation:isolate;z-index:2;resize:horizontal;opacity:0;cursor:ew-resize;transform-origin:100% 100%;clip-path:inset(calc(100% - .75rem) 0 0 calc(100% - .75rem));grid-row-start:2;grid-column-start:1;width:50cqi;min-width:1rem;max-width:calc(100cqi - 1rem);height:.75rem;transition:min-width .3s ease-out,max-width .3s ease-out;position:relative;overflow:hidden;transform:scaleY(5)translate(.32rem,50%)}.select{border:var(--border) solid #0000;appearance:none;background-color:var(--color-base-100);vertical-align:middle;width:clamp(3rem,20rem,100%);height:var(--size);touch-action:manipulation;white-space:nowrap;text-overflow:ellipsis;box-shadow:0 1px var(--input-color) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-repeat:no-repeat;background-size:4px 4px,4px 4px;border-start-start-radius:var(--join-ss,var(--radius-field));border-start-end-radius:var(--join-se,var(--radius-field));border-end-end-radius:var(--join-ee,var(--radius-field));border-end-start-radius:var(--join-es,var(--radius-field));flex-shrink:1;align-items:center;gap:.375rem;padding-inline:.75rem 1.75rem;font-size:.875rem;display:inline-flex;position:relative;overflow:hidden}@supports (color:color-mix(in lab,red,red)){.select{box-shadow:0 1px color-mix(in oklab,var(--input-color) calc(var(--depth) * 10%),#0000) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset}}.select{border-color:var(--input-color);--input-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.select{--input-color:color-mix(in oklab, var(--color-base-content) 20%, #0000)}}.select{--size:calc(var(--size-field,.25rem) * 10)}[dir=rtl] .select{background-position:12px calc(1px + 50%),16px calc(1px + 50%)}[dir=rtl] .select::picker(select){translate:.5rem}[dir=rtl] .select select::picker(select){translate:.5rem}.select[multiple]{background-image:none;height:auto;padding-block:.75rem;padding-inline-end:.75rem;overflow:auto}.select select{appearance:none;width:calc(100% + 2.75rem);height:calc(100% - calc(var(--border) * 2));background:inherit;border-radius:inherit;border-style:none;align-items:center;margin-inline:-.75rem -1.75rem;padding-inline:.75rem 1.75rem}.select select:focus,.select select:focus-within{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.select select:focus,.select select:focus-within{outline-offset:2px;outline:2px solid #0000}}.select select:not(:last-child){background-image:none;margin-inline-end:-1.375rem}.select:focus,.select:focus-within{--input-color:var(--color-base-content);box-shadow:0 1px var(--input-color)}@supports (color:color-mix(in lab,red,red)){.select:focus,.select:focus-within{box-shadow:0 1px color-mix(in oklab,var(--input-color) calc(var(--depth) * 10%),#0000)}}.select:focus,.select:focus-within{outline:2px solid var(--input-color);outline-offset:2px;isolation:isolate}.select:has(>select[disabled]),.select:is(:disabled,[disabled]),fieldset:disabled .select{cursor:not-allowed;border-color:var(--color-base-200);background-color:var(--color-base-200);color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.select:has(>select[disabled]),.select:is(:disabled,[disabled]),fieldset:disabled .select{color:color-mix(in oklab,var(--color-base-content) 40%,transparent)}}:is(.select:has(>select[disabled]),.select:is(:disabled,[disabled]),fieldset:disabled .select)::placeholder{color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:is(.select:has(>select[disabled]),.select:is(:disabled,[disabled]),fieldset:disabled .select)::placeholder{color:color-mix(in oklab,var(--color-base-content) 20%,transparent)}}.select:has(>select[disabled])>select[disabled]{cursor:not-allowed}@supports (appearance:base-select){.select,.select select{appearance:base-select}:is(.select,.select select)::picker(select){appearance:base-select}}:is(.select,.select select)::picker(select){color:inherit;border:var(--border) solid var(--color-base-200);border-radius:var(--radius-box);background-color:inherit;max-height:min(24rem,70dvh);box-shadow:0 2px calc(var(--depth) * 3px) -2px #0003;box-shadow:0 20px 25px -5px rgb(0 0 0/calc(var(--depth) * .1)),0 8px 10px -6px rgb(0 0 0/calc(var(--depth) * .1));margin-block:.5rem;margin-inline:.5rem;padding:.5rem;translate:-.5rem}:is(.select,.select select)::picker-icon{display:none}:is(.select,.select select) optgroup{padding-top:.5em}:is(.select,.select select) optgroup option:first-child{margin-top:.5em}:is(.select,.select select) option{border-radius:var(--radius-field);white-space:normal;padding-block:.375rem;padding-inline:.75rem;transition-property:color,background-color;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}:is(.select,.select select) option:not(:disabled):hover,:is(.select,.select select) option:not(:disabled):focus-visible{cursor:pointer;background-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:is(.select,.select select) option:not(:disabled):hover,:is(.select,.select select) option:not(:disabled):focus-visible{background-color:color-mix(in oklab,var(--color-base-content) 10%,transparent)}}:is(.select,.select select) option:not(:disabled):hover,:is(.select,.select select) option:not(:disabled):focus-visible{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){:is(.select,.select select) option:not(:disabled):hover,:is(.select,.select select) option:not(:disabled):focus-visible{outline-offset:2px;outline:2px solid #0000}}:is(.select,.select select) option:not(:disabled):active{background-color:var(--color-neutral);color:var(--color-neutral-content);box-shadow:0 2px calc(var(--depth) * 3px) -2px var(--color-neutral)}.timeline{display:flex;position:relative}.timeline>li{grid-template-rows:var(--timeline-row-start,minmax(0, 1fr)) auto var(--timeline-row-end,minmax(0, 1fr));grid-template-columns:var(--timeline-col-start,minmax(0, 1fr)) auto var(--timeline-col-end,minmax(0, 1fr));flex-shrink:0;align-items:center;display:grid;position:relative}.timeline>li>hr{border:none;width:100%}.timeline>li>hr:first-child{grid-row-start:2;grid-column-start:1}.timeline>li>hr:last-child{grid-area:2/3/auto/none}@media print{.timeline>li>hr{border:.1px solid var(--color-base-300)}}.timeline :where(hr){background-color:var(--color-base-300);height:.25rem}.timeline:has(.timeline-middle hr):first-child{border-start-start-radius:0;border-start-end-radius:var(--radius-selector);border-end-end-radius:var(--radius-selector);border-end-start-radius:0}.timeline:has(.timeline-middle hr):last-child,.timeline:not(:has(.timeline-middle)) :first-child hr:last-child{border-start-start-radius:var(--radius-selector);border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:var(--radius-selector)}.timeline:not(:has(.timeline-middle)) :last-child hr:first-child{border-start-start-radius:0;border-start-end-radius:var(--radius-selector);border-end-end-radius:var(--radius-selector);border-end-start-radius:0}.swap{cursor:pointer;vertical-align:middle;webkit-user-select:none;-webkit-user-select:none;user-select:none;place-content:center;display:inline-grid;position:relative}.swap input{appearance:none;border:none}.swap>*{grid-row-start:1;grid-column-start:1}@media(prefers-reduced-motion:no-preference){.swap>*{transition-property:transform,rotate,opacity;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on,.swap input:is(:checked,:indeterminate)~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1;backface-visibility:visible}.collapse-title{grid-row-start:1;grid-column-start:1;width:100%;min-height:1lh;padding:1rem;padding-inline-end:3rem;transition:background-color .2s ease-out;position:relative}.mockup-browser{border-radius:var(--radius-box);position:relative;overflow:auto hidden}.mockup-browser pre[data-prefix]:before{--tw-content:attr(data-prefix);content:var(--tw-content);text-align:right;display:inline-block}.mockup-browser .mockup-browser-toolbar{align-items:center;width:100%;margin-block:.75rem;padding-right:1.4em;display:inline-flex}.mockup-browser .mockup-browser-toolbar:where(:dir(rtl),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.mockup-browser .mockup-browser-toolbar:before{content:"";aspect-ratio:1;opacity:.3;border-radius:3.40282e38px;height:.75rem;margin-right:4.8rem;display:inline-block;box-shadow:1.4em 0,2.8em 0,4.2em 0}.mockup-browser .mockup-browser-toolbar .input{background-color:var(--color-base-200);text-overflow:ellipsis;white-space:nowrap;direction:ltr;align-items:center;gap:.5rem;height:100%;margin-inline:auto;font-size:.75rem;display:flex;overflow:hidden}.mockup-browser .mockup-browser-toolbar .input:before{content:"";opacity:.5;background-color:currentColor;width:1rem;height:1rem;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z' clip-rule='evenodd' /%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z' clip-rule='evenodd' /%3E%3C/svg%3E") 50%/contain no-repeat}.mockup-code{border-radius:var(--radius-box);background-color:var(--color-neutral);color:var(--color-neutral-content);direction:ltr;padding-block:1.25rem;font-size:.875rem;position:relative;overflow:auto hidden}.mockup-code:before{content:"";opacity:.3;border-radius:3.40282e38px;width:.75rem;height:.75rem;margin-bottom:1rem;display:block;box-shadow:1.4em 0,2.8em 0,4.2em 0}.mockup-code pre{padding-right:1.25rem}.mockup-code pre:before{content:"";margin-right:2ch}.mockup-code pre[data-prefix]:before{--tw-content:attr(data-prefix);content:var(--tw-content);text-align:right;opacity:.5;width:2rem;display:inline-block}.mockup-window{border-radius:var(--radius-box);flex-direction:column;padding-top:1.25rem;display:flex;position:relative;overflow:auto hidden}.mockup-window:before{content:"";aspect-ratio:1;opacity:.3;border-radius:3.40282e38px;flex-shrink:0;align-self:flex-start;height:.75rem;margin-bottom:1rem;display:block;box-shadow:1.4em 0,2.8em 0,4.2em 0}[dir=rtl] .mockup-window:before{align-self:flex-end}.mockup-window pre[data-prefix]:before{--tw-content:attr(data-prefix);content:var(--tw-content);text-align:right;display:inline-block}.avatar{vertical-align:middle;display:inline-flex;position:relative}.avatar>div{aspect-ratio:1;display:block;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.checkbox{border:var(--border) solid var(--input-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.checkbox{border:var(--border) solid var(--input-color,color-mix(in oklab, var(--color-base-content) 20%, #0000))}}.checkbox{cursor:pointer;appearance:none;border-radius:var(--radius-selector);vertical-align:middle;color:var(--color-base-content);box-shadow:0 1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 0 #0000 inset,0 0 #0000;--size:calc(var(--size-selector,.25rem) * 6);width:var(--size);height:var(--size);background-size:auto,calc(var(--noise) * 100%);background-image:none,var(--fx-noise);flex-shrink:0;padding:.25rem;transition:background-color .2s,box-shadow .2s;display:inline-block;position:relative}.checkbox:before{--tw-content:"";content:var(--tw-content);opacity:0;clip-path:polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%);width:100%;height:100%;box-shadow:0 3px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;background-color:currentColor;font-size:1rem;line-height:.75;transition:clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s;display:block;rotate:45deg}.checkbox:focus-visible{outline:2px solid var(--input-color,currentColor);outline-offset:2px}.checkbox:checked,.checkbox[aria-checked=true]{background-color:var(--input-color,#0000);box-shadow:0 0 #0000 inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px oklch(0% 0 0 / calc(var(--depth) * .1))}:is(.checkbox:checked,.checkbox[aria-checked=true]):before{clip-path:polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%);opacity:1}@media(forced-colors:active){:is(.checkbox:checked,.checkbox[aria-checked=true]):before{--tw-content:"✔︎";clip-path:none;background-color:#0000;rotate:none}}@media print{:is(.checkbox:checked,.checkbox[aria-checked=true]):before{--tw-content:"✔︎";clip-path:none;background-color:#0000;rotate:none}}.checkbox:indeterminate{background-color:var(--input-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.checkbox:indeterminate{background-color:var(--input-color,color-mix(in oklab, var(--color-base-content) 20%, #0000))}}.checkbox:indeterminate:before{opacity:1;clip-path:polygon(20% 100%,20% 80%,50% 80%,50% 80%,80% 80%,80% 100%);translate:0 -35%;rotate:none}.radio{cursor:pointer;appearance:none;vertical-align:middle;border:var(--border) solid var(--input-color,currentColor);border-radius:3.40282e38px;flex-shrink:0;padding:.25rem;display:inline-block;position:relative}@supports (color:color-mix(in lab,red,red)){.radio{border:var(--border) solid var(--input-color,color-mix(in srgb, currentColor 20%, #0000))}}.radio{box-shadow:0 1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset;--size:calc(var(--size-selector,.25rem) * 6);width:var(--size);height:var(--size);color:var(--input-color,currentColor)}.radio:before{--tw-content:"";content:var(--tw-content);background-size:auto,calc(var(--noise) * 100%);background-image:none,var(--fx-noise);border-radius:3.40282e38px;width:100%;height:100%;display:block}.radio:focus-visible{outline:2px solid}.radio:checked,.radio[aria-checked=true]{background-color:var(--color-base-100);border-color:currentColor}@media(prefers-reduced-motion:no-preference){.radio:checked,.radio[aria-checked=true]{animation:.2s ease-out radio}}:is(.radio:checked,.radio[aria-checked=true]):before{box-shadow:0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset,0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px oklch(0% 0 0 / calc(var(--depth) * .1));background-color:currentColor}@media(forced-colors:active){:is(.radio:checked,.radio[aria-checked=true]):before{outline-style:var(--tw-outline-style);outline-offset:-1px;outline-width:1px}}@media print{:is(.radio:checked,.radio[aria-checked=true]):before{outline-offset:-1rem;outline:.25rem solid}}.rating{vertical-align:middle;display:inline-flex;position:relative}.rating input{appearance:none;border:none}.rating :where(*){background-color:var(--color-base-content);opacity:.2;border-radius:0;width:1.5rem;height:1.5rem}@media(prefers-reduced-motion:no-preference){.rating :where(*){animation:.25s ease-out rating}}.rating :where(*):is(input){cursor:pointer}.rating .rating-hidden{background-color:#0000;width:.5rem}.rating input[type=radio]:checked{background-image:none}.rating :checked,.rating [aria-checked=true],.rating [aria-current=true],.rating :has(~:checked,~[aria-checked=true],~[aria-current=true]){opacity:1}.rating :focus-visible{scale:1.1}@media(prefers-reduced-motion:no-preference){.rating :focus-visible{transition:scale .2s ease-out}}.rating :active:focus{animation:none;scale:1.1}.navbar{align-items:center;width:100%;min-height:4rem;padding:.5rem;display:flex}.drawer{grid-auto-columns:max-content auto;width:100%;display:grid;position:relative}.card{border-radius:var(--radius-box);outline-offset:2px;outline:0 solid #0000;flex-direction:column;transition:outline .2s ease-in-out;display:flex;position:relative}.card:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.card:focus{outline-offset:2px;outline:2px solid #0000}}.card:focus-visible{outline-color:currentColor}.card :where(figure:first-child){border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-end-radius:unset;border-end-start-radius:unset;overflow:hidden}.card :where(figure:last-child){border-start-start-radius:unset;border-start-end-radius:unset;border-end-end-radius:inherit;border-end-start-radius:inherit;overflow:hidden}.card figure{justify-content:center;align-items:center;display:flex}.card:has(>input:is(input[type=checkbox],input[type=radio])){cursor:pointer;-webkit-user-select:none;user-select:none}.card:has(>:checked){outline:2px solid}.stats{border-radius:var(--radius-box);grid-auto-flow:column;display:inline-grid;position:relative;overflow-x:auto}.progress{appearance:none;border-radius:var(--radius-box);background-color:currentColor;width:100%;height:.5rem;position:relative;overflow:hidden}@supports (color:color-mix(in lab,red,red)){.progress{background-color:color-mix(in oklab,currentcolor 20%,transparent)}}.progress{color:var(--color-base-content)}.progress:indeterminate{background-image:repeating-linear-gradient(90deg,currentColor -1% 10%,#0000 10% 90%);background-position-x:15%;background-size:200%}@media(prefers-reduced-motion:no-preference){.progress:indeterminate{animation:5s ease-in-out infinite progress}}@supports ((-moz-appearance:none)){.progress:indeterminate::-moz-progress-bar{background-color:#0000}@media(prefers-reduced-motion:no-preference){.progress:indeterminate::-moz-progress-bar{background-image:repeating-linear-gradient(90deg,currentColor -1% 10%,#0000 10% 90%);background-position-x:15%;background-size:200%;animation:5s ease-in-out infinite progress}}.progress::-moz-progress-bar{border-radius:var(--radius-box);background-color:currentColor}}@supports ((-webkit-appearance:none)){.progress::-webkit-progress-bar{border-radius:var(--radius-box);background-color:#0000}.progress::-webkit-progress-value{border-radius:var(--radius-box);background-color:currentColor}}.file-input{cursor:pointer;border:var(--border) solid #0000;appearance:none;background-color:var(--color-base-100);vertical-align:middle;webkit-user-select:none;-webkit-user-select:none;user-select:none;width:clamp(3rem,20rem,100%);height:var(--size);border-color:var(--input-color);box-shadow:0 1px var(--input-color) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;border-start-start-radius:var(--join-ss,var(--radius-field));border-start-end-radius:var(--join-se,var(--radius-field));border-end-end-radius:var(--join-ee,var(--radius-field));border-end-start-radius:var(--join-es,var(--radius-field));align-items:center;padding-inline-end:.75rem;font-size:.875rem;line-height:2;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.file-input{box-shadow:0 1px color-mix(in oklab,var(--input-color) calc(var(--depth) * 10%),#0000) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset}}.file-input{--size:calc(var(--size-field,.25rem) * 10);--input-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.file-input{--input-color:color-mix(in oklab, var(--color-base-content) 20%, #0000)}}.file-input::file-selector-button{cursor:pointer;webkit-user-select:none;-webkit-user-select:none;user-select:none;height:calc(100% + var(--border) * 2);margin-inline-end:1rem;margin-block:calc(var(--border) * -1);color:var(--btn-fg);border-width:var(--border);border-style:solid;border-color:var(--btn-border);background-color:var(--btn-bg);background-size:calc(var(--noise) * 100%);background-image:var(--btn-noise);text-shadow:0 .5px oklch(1 0 0 / calc(var(--depth) * .15));box-shadow:0 .5px 0 .5px #fff inset,var(--btn-shadow);border-start-start-radius:calc(var(--join-ss,var(--radius-field) - var(--border)));border-end-start-radius:calc(var(--join-es,var(--radius-field) - var(--border)));margin-inline-start:calc(var(--border) * -1);padding-inline:1rem;font-size:.875rem;font-weight:600}@supports (color:color-mix(in lab,red,red)){.file-input::file-selector-button{box-shadow:0 .5px 0 .5px color-mix(in oklab,color-mix(in oklab,white 30%,var(--btn-bg)) calc(var(--depth) * 20%),#0000) inset,var(--btn-shadow)}}.file-input::file-selector-button{--size:calc(var(--size-field,.25rem) * 10);--btn-bg:var(--btn-color,var(--color-base-200));--btn-fg:var(--color-base-content);--btn-border:var(--btn-bg)}@supports (color:color-mix(in lab,red,red)){.file-input::file-selector-button{--btn-border:color-mix(in oklab, var(--btn-bg), #000 5%)}}.file-input::file-selector-button{--btn-shadow:0 3px 2px -2px var(--btn-bg), 0 4px 3px -2px var(--btn-bg)}@supports (color:color-mix(in lab,red,red)){.file-input::file-selector-button{--btn-shadow:0 3px 2px -2px color-mix(in oklab, var(--btn-bg) 30%, #0000), 0 4px 3px -2px color-mix(in oklab, var(--btn-bg) 30%, #0000)}}.file-input::file-selector-button{--btn-noise:var(--fx-noise)}.file-input:focus{--input-color:var(--color-base-content);box-shadow:0 1px var(--input-color)}@supports (color:color-mix(in lab,red,red)){.file-input:focus{box-shadow:0 1px color-mix(in oklab,var(--input-color) 10%,#0000)}}.file-input:focus{outline:2px solid var(--input-color);outline-offset:2px;isolation:isolate}.file-input:has(>input[disabled]),.file-input:is(:disabled,[disabled]){cursor:not-allowed;border-color:var(--color-base-200);background-color:var(--color-base-200)}:is(.file-input:has(>input[disabled]),.file-input:is(:disabled,[disabled]))::placeholder{color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:is(.file-input:has(>input[disabled]),.file-input:is(:disabled,[disabled]))::placeholder{color:color-mix(in oklab,var(--color-base-content) 20%,transparent)}}.file-input:has(>input[disabled]),.file-input:is(:disabled,[disabled]){box-shadow:none;color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.file-input:has(>input[disabled]),.file-input:is(:disabled,[disabled]){color:color-mix(in oklch,var(--color-base-content) 20%,#0000)}}:is(.file-input:has(>input[disabled]),.file-input:is(:disabled,[disabled]))::file-selector-button{cursor:not-allowed;border-color:var(--color-base-200);background-color:var(--color-base-200);--btn-border:#0000;--btn-noise:none;--btn-fg:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:is(.file-input:has(>input[disabled]),.file-input:is(:disabled,[disabled]))::file-selector-button{--btn-fg:color-mix(in oklch, var(--color-base-content) 20%, #0000)}}.hero-content{isolation:isolate;justify-content:center;align-items:center;gap:1rem;max-width:80rem;padding:1rem;display:flex}.textarea{border:var(--border) solid #0000;appearance:none;border-radius:var(--radius-field);background-color:var(--color-base-100);vertical-align:middle;width:clamp(3rem,20rem,100%);min-height:5rem;font-size:max(var(--font-size,.875rem),.875rem);touch-action:manipulation;border-color:var(--input-color);box-shadow:0 1px var(--input-color) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset;flex-shrink:1;padding-block:.5rem;padding-inline:.75rem}@supports (color:color-mix(in lab,red,red)){.textarea{box-shadow:0 1px color-mix(in oklab,var(--input-color) calc(var(--depth) * 10%),#0000) inset,0 -1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset}}.textarea{--input-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.textarea{--input-color:color-mix(in oklab, var(--color-base-content) 20%, #0000)}}.textarea textarea{appearance:none;background-color:#0000;border:none}.textarea textarea:focus,.textarea textarea:focus-within{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.textarea textarea:focus,.textarea textarea:focus-within{outline-offset:2px;outline:2px solid #0000}}.textarea:focus,.textarea:focus-within{--input-color:var(--color-base-content);box-shadow:0 1px var(--input-color)}@supports (color:color-mix(in lab,red,red)){.textarea:focus,.textarea:focus-within{box-shadow:0 1px color-mix(in oklab,var(--input-color) calc(var(--depth) * 10%),#0000)}}.textarea:focus,.textarea:focus-within{outline:2px solid var(--input-color);outline-offset:2px;isolation:isolate}@media(pointer:coarse){@supports (-webkit-touch-callout:none){.textarea:focus,.textarea:focus-within{--font-size:1rem}}}.textarea:has(>textarea[disabled]),.textarea:is(:disabled,[disabled]){cursor:not-allowed;border-color:var(--color-base-200);background-color:var(--color-base-200);color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.textarea:has(>textarea[disabled]),.textarea:is(:disabled,[disabled]){color:color-mix(in oklab,var(--color-base-content) 40%,transparent)}}:is(.textarea:has(>textarea[disabled]),.textarea:is(:disabled,[disabled]))::placeholder{color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:is(.textarea:has(>textarea[disabled]),.textarea:is(:disabled,[disabled]))::placeholder{color:color-mix(in oklab,var(--color-base-content) 20%,transparent)}}.textarea:has(>textarea[disabled]),.textarea:is(:disabled,[disabled]){box-shadow:none}.textarea:has(>textarea[disabled])>textarea[disabled]{cursor:not-allowed}.mockup-phone-camera{z-index:1;background:#000;border-radius:17px;grid-area:1/1/1/1;width:28%;height:3.7%;margin-top:3%}.stack{grid-template-rows:3px 4px 1fr 4px 3px;grid-template-columns:3px 4px 1fr 4px 3px;display:inline-grid}.stack>*{width:100%;height:100%}.stack>:nth-child(n+2){opacity:.7;width:100%}.stack>:nth-child(2){z-index:2;opacity:.9}.stack>:first-child{z-index:3;width:100%}.modal-backdrop{color:#0000;z-index:-1;grid-row-start:1;grid-column-start:1;place-self:stretch stretch;display:grid}.modal-backdrop button{cursor:pointer}.tab-content{order:var(--tabcontent-order);--tabcontent-radius-ss:var(--radius-box);--tabcontent-radius-se:var(--radius-box);--tabcontent-radius-es:var(--radius-box);--tabcontent-radius-ee:var(--radius-box);--tabcontent-order:1;width:100%;height:calc(100% - var(--tab-height) + var(--border));margin:var(--tabcontent-margin);border-color:#0000;border-width:var(--border);border-start-start-radius:var(--tabcontent-radius-ss);border-start-end-radius:var(--tabcontent-radius-se);border-end-end-radius:var(--tabcontent-radius-ee);border-end-start-radius:var(--tabcontent-radius-es);display:none}.mockup-phone-display{border-radius:54px;grid-area:1/1/1/1;width:100%;height:100%;overflow:hidden}@supports (corner-shape:superellipse(1.87)){.mockup-phone-display{corner-shape:superellipse(1.87);border-radius:101px}}.mockup-phone-display>img{object-fit:cover;width:100%;height:100%}.timeline-end{grid-area:3/1/4/4;place-self:flex-start center;margin:.25rem}.timeline-start{grid-area:1/1/2/4;place-self:flex-end center;margin:.25rem}.stat-figure{grid-row:1/span 3;grid-column-start:2;place-self:center flex-end}.hero{background-position:50%;background-size:cover;place-items:center;width:100%;display:grid}.hero>*{grid-row-start:1;grid-column-start:1}.hero-overlay{background-color:var(--color-neutral);grid-row-start:1;grid-column-start:1;width:100%;height:100%}@supports (color:color-mix(in lab,red,red)){.hero-overlay{background-color:color-mix(in oklab,var(--color-neutral) 50%,transparent)}}.modal-box{background-color:var(--color-base-100);border-top-left-radius:var(--modal-tl,var(--radius-box));border-top-right-radius:var(--modal-tr,var(--radius-box));border-bottom-left-radius:var(--modal-bl,var(--radius-box));border-bottom-right-radius:var(--modal-br,var(--radius-box));opacity:0;overscroll-behavior:contain;grid-row-start:1;grid-column-start:1;width:91.6667%;max-width:32rem;max-height:100vh;padding:1.5rem;transition:translate .3s ease-out,scale .3s ease-out,opacity .2s ease-out 50ms,box-shadow .3s ease-out;overflow-y:auto;scale:95%;box-shadow:0 25px 50px -12px #00000040}.drawer-content{grid-row-start:1;grid-column-start:2;min-width:0}.timeline-middle{grid-row-start:2;grid-column-start:2}.stat-value{white-space:nowrap;grid-column-start:1;font-size:2rem;font-weight:800}.stat-desc{white-space:nowrap;color:var(--color-base-content);grid-column-start:1}@supports (color:color-mix(in lab,red,red)){.stat-desc{color:color-mix(in oklab,var(--color-base-content) 60%,transparent)}}.stat-desc{font-size:.75rem}.stat-title{white-space:nowrap;color:var(--color-base-content);grid-column-start:1}@supports (color:color-mix(in lab,red,red)){.stat-title{color:color-mix(in oklab,var(--color-base-content) 60%,transparent)}}.stat-title{font-size:.75rem}.stat-actions{white-space:nowrap;grid-column-start:1}.chat-image{grid-row:span 2/span 2;align-self:flex-end}.chat-footer{grid-row-start:3;gap:.25rem;font-size:.6875rem;display:flex}.chat-header{grid-row-start:1;gap:.25rem;font-size:.6875rem;display:flex}.divider{white-space:nowrap;height:1rem;margin:var(--divider-m,1rem 0);--divider-color:var(--color-base-content);flex-direction:row;align-self:stretch;align-items:center;display:flex}@supports (color:color-mix(in lab,red,red)){.divider{--divider-color:color-mix(in oklab, var(--color-base-content) 10%, transparent)}}.divider:before,.divider:after{content:"";background-color:var(--divider-color);flex-grow:1;width:100%;height:.125rem}@media print{.divider:before,.divider:after{border:.5px solid}}.divider:not(:empty){gap:1rem}.filter{flex-wrap:wrap;display:flex}.filter input[type=radio]{width:auto}.filter input{opacity:1;transition:margin .1s,opacity .3s,padding .3s,border-width .1s;overflow:hidden;scale:1}.filter input:not(:last-child){margin-inline-end:.25rem}.filter input.filter-reset{aspect-ratio:1}.filter input.filter-reset:after{--tw-content:"×";content:var(--tw-content)}.filter:not(:has(input:checked:not(.filter-reset))) .filter-reset,.filter:not(:has(input:checked:not(.filter-reset))) input[type=reset],.filter:has(input:checked:not(.filter-reset)) input:not(:checked,.filter-reset,input[type=reset]){opacity:0;border-width:0;width:0;margin-inline:0;padding-inline:0;scale:0}.label{white-space:nowrap;color:currentColor;align-items:center;gap:.375rem;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.label{color:color-mix(in oklab,currentcolor 60%,transparent)}}.label:has(input){cursor:pointer}.label:is(.input>*,.select>*){white-space:nowrap;height:calc(100% - .5rem);font-size:inherit;align-items:center;padding-inline:.75rem;display:flex}.label:is(.input>*,.select>*):first-child{border-inline-end:var(--border) solid currentColor;margin-inline:-.75rem .75rem}@supports (color:color-mix(in lab,red,red)){.label:is(.input>*,.select>*):first-child{border-inline-end:var(--border) solid color-mix(in oklab,currentColor 10%,#0000)}}.label:is(.input>*,.select>*):last-child{border-inline-start:var(--border) solid currentColor;margin-inline:.75rem -.75rem}@supports (color:color-mix(in lab,red,red)){.label:is(.input>*,.select>*):last-child{border-inline-start:var(--border) solid color-mix(in oklab,currentColor 10%,#0000)}}.modal-action{justify-content:flex-end;gap:.5rem;margin-top:1.5rem;display:flex}.breadcrumbs{max-width:100%;padding-block:.5rem;overflow-x:auto}.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol{white-space:nowrap;align-items:center;min-height:min-content;display:flex}:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li{align-items:center;display:flex}:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li>*{cursor:pointer;align-items:center;gap:.5rem;display:flex}@media(hover:hover){:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li>:hover{text-decoration-line:underline}}:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li>:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li>:focus{outline-offset:2px;outline:2px solid #0000}}:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li>:focus-visible{outline-offset:2px;outline:2px solid}:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li+:before{content:"";opacity:.4;background-color:#0000;border-top:1px solid;border-right:1px solid;width:.375rem;height:.375rem;margin-left:.5rem;margin-right:.75rem;display:block;rotate:45deg}[dir=rtl] :is(:is(.breadcrumbs>menu,.breadcrumbs>ul,.breadcrumbs>ol)>li)+:before{rotate:-135deg}.fieldset-legend{color:var(--color-base-content);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:-.25rem;padding-block:.5rem;font-weight:600;display:flex}.footer-title{text-transform:uppercase;opacity:.6;margin-bottom:.5rem;font-weight:600}.carousel-item{box-sizing:content-box;scroll-snap-align:start;flex:none;display:flex}.status{aspect-ratio:1;border-radius:var(--radius-selector);background-color:var(--color-base-content);width:.5rem;height:.5rem;display:inline-block}@supports (color:color-mix(in lab,red,red)){.status{background-color:color-mix(in oklab,var(--color-base-content) 20%,transparent)}}.status{vertical-align:middle;color:#0000004d;background-position:50%;background-repeat:no-repeat}@supports (color:color-mix(in lab,red,red)){.status{color:color-mix(in oklab,var(--color-black) 30%,transparent)}}.status{background-image:radial-gradient(circle at 35% 30%,oklch(1 0 0 / calc(var(--depth) * .5)),#0000);box-shadow:0 2px 3px -1px}@supports (color:color-mix(in lab,red,red)){.status{box-shadow:0 2px 3px -1px color-mix(in oklab,currentColor calc(var(--depth) * 100%),#0000)}}.mockup-phone{aspect-ratio:462/978;background-color:#000;border:5px solid #6b6b6b;border-radius:65px;justify-items:center;width:100%;max-width:462px;padding:6px;display:inline-grid;overflow:hidden}@supports (corner-shape:superellipse(1.45)){.mockup-phone{corner-shape:superellipse(1.45);border-radius:90px}}.badge{border-radius:var(--radius-selector);vertical-align:middle;color:var(--badge-fg);border:var(--border) solid var(--badge-color,var(--color-base-200));background-size:auto,calc(var(--noise) * 100%);background-image:none,var(--fx-noise);background-color:var(--badge-bg);--badge-bg:var(--badge-color,var(--color-base-100));--badge-fg:var(--color-base-content);--size:calc(var(--size-selector,.25rem) * 6);width:fit-content;height:var(--size);padding-inline:calc(var(--size) / 2 - var(--border));justify-content:center;align-items:center;gap:.5rem;font-size:.875rem;display:inline-flex}.kbd{border-radius:var(--radius-field);background-color:var(--color-base-200);vertical-align:middle;border:var(--border) solid var(--color-base-content);justify-content:center;align-items:center;padding-inline:.5em;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.kbd{border:var(--border) solid color-mix(in srgb,var(--color-base-content) 20%,#0000)}}.kbd{border-bottom:calc(var(--border) + 1px) solid var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.kbd{border-bottom:calc(var(--border) + 1px) solid color-mix(in srgb,var(--color-base-content) 20%,#0000)}}.kbd{--size:calc(var(--size-selector,.25rem) * 6);height:var(--size);min-width:var(--size);font-size:.875rem}.text-rotate{vertical-align:bottom;white-space:nowrap;--duration:var(--tw-duration);transition-property:none;display:inline-block;overflow:hidden}.text-rotate>*{height:calc(var(--items,1) * 100%);justify-items:start;display:grid}.text-rotate>:has(:nth-child(2)){--items:2;animation:rotator var(--duration,10s) linear(0 0% 49%,.5 50% 99%,1 100% 100%) infinite}.text-rotate>:has(:nth-child(3)){--items:3;animation:rotator var(--duration,10s) linear(0 0% 32%,.333333 33% 65%,.666666 66% 99%,1 100% 100%) infinite}.text-rotate>:has(:nth-child(4)){--items:4;animation:rotator var(--duration,10s) linear(0 0% 24%,.25 25% 49%,.5 50% 74%,.75 75% 99%,1 100% 100%) infinite}.text-rotate>:has(:nth-child(5)){--items:5;animation:rotator var(--duration,10s) linear(0 0% 19%,.2 20% 39%,.4 40% 59%,.6 60% 79%,.8 80% 99%,1 100% 100%) infinite}.text-rotate>:has(:nth-child(6)){--items:6;animation:rotator var(--duration,10s) linear(0 0% 15%,.16666 16% 32%,.333333 33% 49%,.5 50% 65%,.666666 66% 82%,.833333 83% 99%,1 100% 100%) infinite}.text-rotate>*>*{clip-path:inset(.5px 0);align-content:baseline}.text-rotate>*>:first-child{translate:var(--first-item-position)}.text-rotate:hover>*{animation-play-state:paused}.tabs{--tabs-height:auto;--tabs-direction:row;--tab-height:calc(var(--size-field,.25rem) * 10);height:var(--tabs-height);flex-wrap:wrap;flex-direction:var(--tabs-direction);display:flex}.footer{grid-auto-flow:row;place-items:start;gap:2.5rem 1rem;width:100%;font-size:.875rem;line-height:1.25rem;display:grid}.footer>*{place-items:start;gap:.5rem;display:grid}.footer.footer-center{text-align:center;grid-auto-flow:column dense;place-items:center}.footer.footer-center>*{place-items:center}.stat{grid-template-columns:repeat(1,1fr);column-gap:1rem;width:100%;padding-block:1rem;padding-inline:1.5rem;display:inline-grid}.stat:not(:last-child){border-inline-end:var(--border) dashed currentColor}@supports (color:color-mix(in lab,red,red)){.stat:not(:last-child){border-inline-end:var(--border) dashed color-mix(in oklab,currentColor 10%,#0000)}}.stat:not(:last-child){border-block-end:none}.navbar-end{justify-content:flex-end;align-items:center;width:50%;display:inline-flex}.navbar-start{justify-content:flex-start;align-items:center;width:50%;display:inline-flex}.card-body{padding:var(--card-p,1.5rem);font-size:var(--card-fs,.875rem);flex-direction:column;flex:auto;gap:.5rem;display:flex}.card-body :where(p){flex-grow:1}.navbar-center{flex-shrink:0;align-items:center;display:inline-flex}.fab-flower{--position:0rem;display:grid}.fab-flower>:nth-child(-n+2){--position:0rem}.fab-flower>*{--degree:180deg;--flip-degree:calc(180deg - var(--degree));transform:translate(calc(cos(var(--degree)) * var(--position))) translateY(calc(sin(var(--degree)) * -1 * var(--position)));grid-area:1/1}[dir=rtl] :is(.fab-flower>*){transform:translate(calc(cos(var(--flip-degree)) * var(--position))) translateY(calc(sin(var(--flip-degree)) * -1 * var(--position)))}.fab-flower>:nth-child(n+7){display:none}.fab-flower:has(:nth-child(3)){--position:140%}.fab-flower:has(:nth-child(3))>:nth-child(3){--degree:135deg}.fab-flower:has(:nth-child(4)){--position:140%}.fab-flower:has(:nth-child(4))>:nth-child(3){--degree:165deg}.fab-flower:has(:nth-child(4))>:nth-child(4){--degree:105deg}.fab-flower:has(:nth-child(5)){--position:180%}.fab-flower:has(:nth-child(5))>:nth-child(3){--degree:180deg}.fab-flower:has(:nth-child(5))>:nth-child(4){--degree:135deg}.fab-flower:has(:nth-child(5))>:nth-child(5){--degree:90deg}.fab-flower:has(:nth-child(6)){--position:220%}.fab-flower:has(:nth-child(6))>:nth-child(3){--degree:180deg}.fab-flower:has(:nth-child(6))>:nth-child(4){--degree:150deg}.fab-flower:has(:nth-child(6))>:nth-child(5){--degree:120deg}.fab-flower:has(:nth-child(6))>:nth-child(6){--degree:90deg}.carousel{scroll-snap-type:x mandatory;scrollbar-width:none;display:inline-flex;overflow-x:scroll}@media(prefers-reduced-motion:no-preference){.carousel{scroll-behavior:smooth}}.carousel::-webkit-scrollbar{display:none}.alert{--alert-border-color:var(--color-base-200);border-radius:var(--radius-box);color:var(--color-base-content);background-color:var(--alert-color,var(--color-base-200));text-align:start;background-size:auto,calc(var(--noise) * 100%);background-image:none,var(--fx-noise);box-shadow:0 3px 0 -2px oklch(100% 0 0 / calc(var(--depth) * .08)) inset,0 1px #000,0 4px 3px -2px oklch(0% 0 0 / calc(var(--depth) * .08));border-style:solid;grid-template-columns:auto;grid-auto-flow:column;justify-content:start;place-items:center start;gap:1rem;padding-block:.75rem;padding-inline:1rem;font-size:.875rem;line-height:1.25rem;display:grid}@supports (color:color-mix(in lab,red,red)){.alert{box-shadow:0 3px 0 -2px oklch(100% 0 0 / calc(var(--depth) * .08)) inset,0 1px color-mix(in oklab,color-mix(in oklab,#000 20%,var(--alert-color,var(--color-base-200))) calc(var(--depth) * 20%),#0000),0 4px 3px -2px oklch(0% 0 0 / calc(var(--depth) * .08))}}.alert:has(:nth-child(2)){grid-template-columns:auto minmax(auto,1fr)}.fieldset{grid-template-columns:1fr;grid-auto-rows:max-content;gap:.375rem;padding-block:.25rem;font-size:.75rem;display:grid}.chat{--mask-chat:url("data:image/svg+xml,%3csvg width='13' height='13' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='M0 11.5004C0 13.0004 2 13.0004 2 13.0004H12H13V0.00036329L12.5 0C12.5 0 11.977 2.09572 11.8581 2.50033C11.6075 3.35237 10.9149 4.22374 9 5.50036C6 7.50036 0 10.0004 0 11.5004Z'/%3e%3c/svg%3e");grid-auto-rows:min-content;column-gap:.75rem;padding-block:.25rem;display:grid}.card-actions{flex-wrap:wrap;align-items:flex-start;gap:.5rem;display:flex}.card-title{font-size:var(--cardtitle-fs,1.125rem);align-items:center;gap:.5rem;font-weight:600;display:flex}.avatar-group{display:flex;overflow:hidden}.avatar-group .avatar{border:4px solid var(--color-base-100);border-radius:3.40282e38px;overflow:hidden}.mask{vertical-align:middle;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.skeleton{border-radius:var(--radius-box);background-color:var(--color-base-300)}@media(prefers-reduced-motion:reduce){.skeleton{transition-duration:15s}}.skeleton{will-change:background-position;background-image:linear-gradient(105deg,#0000 0% 40%,var(--color-base-100) 50%,#0000 60% 100%);background-position-x:-50%;background-size:200%}@media(prefers-reduced-motion:no-preference){.skeleton{animation:1.8s ease-in-out infinite skeleton}}.link{cursor:pointer;text-decoration-line:underline}.link:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.link:focus{outline-offset:2px;outline:2px solid #0000}}.link:focus-visible{outline-offset:2px;outline:2px solid}.menu-title{color:var(--color-base-content);padding-block:.5rem;padding-inline:.75rem}@supports (color:color-mix(in lab,red,red)){.menu-title{color:color-mix(in oklab,var(--color-base-content) 40%,transparent)}}.menu-title{font-size:.875rem;font-weight:600}.btn-accent{--btn-color:var(--color-accent);--btn-fg:var(--color-accent-content)}.btn-error{--btn-color:var(--color-error);--btn-fg:var(--color-error-content)}.btn-info{--btn-color:var(--color-info);--btn-fg:var(--color-info-content)}.btn-neutral{--btn-color:var(--color-neutral);--btn-fg:var(--color-neutral-content)}.btn-primary{--btn-color:var(--color-primary);--btn-fg:var(--color-primary-content)}.btn-secondary{--btn-color:var(--color-secondary);--btn-fg:var(--color-secondary-content)}.btn-success{--btn-color:var(--color-success);--btn-fg:var(--color-success-content)}.btn-warning{--btn-color:var(--color-warning);--btn-fg:var(--color-warning-content)}}@layer daisyui.l1.l2{:where(.drawer-toggle:checked~.drawer-side){pointer-events:auto;visibility:visible;opacity:1;overflow-y:auto}:where(.drawer-toggle:checked~.drawer-side)>:not(.drawer-overlay){translate:0%}.drawer-toggle:focus-visible~.drawer-content label.drawer-button{outline-offset:2px;outline:2px solid}.tooltip>.tooltip-content,.tooltip[data-tip]:before{transform:translate(-50%) translateY(var(--tt-pos,.25rem));inset:auto auto var(--tt-off) 50%}.tooltip:after{transform:translate(-50%) translateY(var(--tt-pos,.25rem));inset:auto auto var(--tt-tail) 50%}.collapse-arrow>.collapse-title:after{width:.5rem;height:.5rem;display:block;position:absolute;transform:translateY(-100%)rotate(45deg)}@media(prefers-reduced-motion:no-preference){.collapse-arrow>.collapse-title:after{transition-property:all;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}}.collapse-arrow>.collapse-title:after{content:"";transform-origin:75% 75%;pointer-events:none;top:50%;inset-inline-end:1.4rem;box-shadow:2px 2px}.collapse-plus>.collapse-title:after{width:.5rem;height:.5rem;display:block;position:absolute}@media(prefers-reduced-motion:no-preference){.collapse-plus>.collapse-title:after{transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}}.collapse-plus>.collapse-title:after{--tw-content:"+";content:var(--tw-content);pointer-events:none;top:.9rem;inset-inline-end:1.4rem}.btn:disabled:not(.btn-link,.btn-ghost){background-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.btn:disabled:not(.btn-link,.btn-ghost){background-color:color-mix(in oklab,var(--color-base-content) 10%,transparent)}}.btn:disabled:not(.btn-link,.btn-ghost){box-shadow:none}.btn:disabled{pointer-events:none;--btn-border:#0000;--btn-noise:none;--btn-fg:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.btn:disabled{--btn-fg:color-mix(in oklch, var(--color-base-content) 20%, #0000)}}.btn[disabled]:not(.btn-link,.btn-ghost){background-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.btn[disabled]:not(.btn-link,.btn-ghost){background-color:color-mix(in oklab,var(--color-base-content) 10%,transparent)}}.btn[disabled]:not(.btn-link,.btn-ghost){box-shadow:none}.btn[disabled]{pointer-events:none;--btn-border:#0000;--btn-noise:none;--btn-fg:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.btn[disabled]{--btn-fg:color-mix(in oklch, var(--color-base-content) 20%, #0000)}}.btn-disabled:not(.btn-link,.btn-ghost){background-color:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.btn-disabled:not(.btn-link,.btn-ghost){background-color:color-mix(in oklab,var(--color-base-content) 10%,transparent)}}.btn-disabled:not(.btn-link,.btn-ghost){box-shadow:none}.btn-disabled{pointer-events:none;--btn-border:#0000;--btn-noise:none;--btn-fg:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){.btn-disabled{--btn-fg:color-mix(in oklch, var(--color-base-content) 20%, #0000)}}@media(prefers-reduced-motion:no-preference){.collapse[open].collapse-arrow>.collapse-title:after,.collapse.collapse-open.collapse-arrow>.collapse-title:after{transform:translateY(-50%)rotate(225deg)}}.collapse.collapse-open.collapse-plus>.collapse-title:after{--tw-content:"−";content:var(--tw-content)}:is(.collapse[tabindex].collapse-arrow:focus:not(.collapse-close),.collapse.collapse-arrow[tabindex]:focus-within:not(.collapse-close))>.collapse-title:after,.collapse.collapse-arrow:not(.collapse-close)>input:is([type=checkbox],[type=radio]):checked~.collapse-title:after{transform:translateY(-50%)rotate(225deg)}.collapse[open].collapse-plus>.collapse-title:after,.collapse[tabindex].collapse-plus:focus:not(.collapse-close)>.collapse-title:after,.collapse.collapse-plus:not(.collapse-close)>input:is([type=checkbox],[type=radio]):checked~.collapse-title:after{--tw-content:"−";content:var(--tw-content)}.collapse-open{grid-template-rows:max-content 1fr}.collapse-open>.collapse-content{content-visibility:visible;min-height:fit-content;padding-bottom:1rem}@supports not (content-visibility:visible){.collapse-open>.collapse-content{visibility:visible}}.tabs-lift{--tabs-height:auto;--tabs-direction:row}.tabs-lift>.tab{--tab-border:0 0 var(--border) 0;--tab-radius-ss:var(--tab-radius-limit);--tab-radius-se:var(--tab-radius-limit);--tab-radius-es:0;--tab-radius-ee:0;--tab-paddings:var(--border) var(--tab-p) 0 var(--tab-p);--tab-border-colors:#0000 #0000 var(--tab-border-color) #0000;--tab-corner-width:calc(100% + var(--tab-radius-limit) * 2);--tab-corner-height:var(--tab-radius-limit);--tab-corner-position:top left, top right;border-width:var(--tab-border);padding:var(--tab-paddings);border-color:var(--tab-border-colors);border-start-start-radius:var(--tab-radius-ss);border-start-end-radius:var(--tab-radius-se);border-end-end-radius:var(--tab-radius-ee);border-end-start-radius:var(--tab-radius-es)}.tabs-lift>.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-lift>.tab:is(input:checked,label:has(:checked)){--tab-border:var(--border) var(--border) 0 var(--border);--tab-border-colors:var(--tab-border-color) var(--tab-border-color) #0000 var(--tab-border-color);--tab-paddings:0 calc(var(--tab-p) - var(--border)) var(--border) calc(var(--tab-p) - var(--border));--tab-inset:auto auto 0 auto;--radius-start:radial-gradient(circle at top left, var(--tab-radius-grad));--radius-end:radial-gradient(circle at top right, var(--tab-radius-grad));background-color:var(--tab-bg)}:is(.tabs-lift>.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-lift>.tab:is(input:checked,label:has(:checked))):before{z-index:1;content:"";width:var(--tab-corner-width);height:var(--tab-corner-height);background-position:var(--tab-corner-position);background-image:var(--radius-start),var(--radius-end);background-size:var(--tab-radius-limit) var(--tab-radius-limit);inset:var(--tab-inset);background-repeat:no-repeat;display:block;position:absolute}:is(.tabs-lift>.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-lift>.tab:is(input:checked,label:has(:checked))):first-child:before{--radius-start:none}[dir=rtl] :is(.tabs-lift>.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-lift>.tab:is(input:checked,label:has(:checked))):first-child:before{transform:rotateY(180deg)}:is(.tabs-lift>.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-lift>.tab:is(input:checked,label:has(:checked))):last-child:before{--radius-end:none}[dir=rtl] :is(.tabs-lift>.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-lift>.tab:is(input:checked,label:has(:checked))):last-child:before{transform:rotateY(180deg)}.tabs-lift:has(>.tab-content)>.tab:first-child:not(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]){--tab-border-colors:var(--tab-border-color) var(--tab-border-color) #0000 var(--tab-border-color)}.tabs-lift>.tab-content{--tabcontent-margin:calc(-1 * var(--border)) 0 0 0;--tabcontent-radius-ss:0;--tabcontent-radius-se:var(--radius-box);--tabcontent-radius-es:var(--radius-box);--tabcontent-radius-ee:var(--radius-box)}:is(.tabs-lift :checked,.tabs-lift label:has(:checked),.tabs-lift :is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]))+.tab-content:first-child,:is(.tabs-lift :checked,.tabs-lift label:has(:checked),.tabs-lift :is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]))+.tab-content:nth-child(n+3){--tabcontent-radius-ss:var(--radius-box)}.list .list-row:has(.list-col-grow:first-child){--list-grid-cols:1fr}.list .list-row:has(.list-col-grow:nth-child(2)){--list-grid-cols:minmax(0, auto) 1fr}.list .list-row:has(.list-col-grow:nth-child(3)){--list-grid-cols:minmax(0, auto) minmax(0, auto) 1fr}.list .list-row:has(.list-col-grow:nth-child(4)){--list-grid-cols:minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr}.list .list-row:has(.list-col-grow:nth-child(5)){--list-grid-cols:minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr}.list .list-row:has(.list-col-grow:nth-child(6)){--list-grid-cols:minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto) 1fr}.list .list-row>*{grid-row-start:1}.steps .step-neutral+.step-neutral:before,.steps .step-neutral:after,.steps .step-neutral>.step-icon{--step-bg:var(--color-neutral);--step-fg:var(--color-neutral-content)}.steps .step-primary+.step-primary:before,.steps .step-primary:after,.steps .step-primary>.step-icon{--step-bg:var(--color-primary);--step-fg:var(--color-primary-content)}.steps .step-secondary+.step-secondary:before,.steps .step-secondary:after,.steps .step-secondary>.step-icon{--step-bg:var(--color-secondary);--step-fg:var(--color-secondary-content)}.steps .step-accent+.step-accent:before,.steps .step-accent:after,.steps .step-accent>.step-icon{--step-bg:var(--color-accent);--step-fg:var(--color-accent-content)}.steps .step-info+.step-info:before,.steps .step-info:after,.steps .step-info>.step-icon{--step-bg:var(--color-info);--step-fg:var(--color-info-content)}.steps .step-success+.step-success:before,.steps .step-success:after,.steps .step-success>.step-icon{--step-bg:var(--color-success);--step-fg:var(--color-success-content)}.steps .step-warning+.step-warning:before,.steps .step-warning:after,.steps .step-warning>.step-icon{--step-bg:var(--color-warning);--step-fg:var(--color-warning-content)}.steps .step-error+.step-error:before,.steps .step-error:after,.steps .step-error>.step-icon{--step-bg:var(--color-error);--step-fg:var(--color-error-content)}.tabs-border>.tab{--tab-border-color:#0000 #0000 var(--tab-border-color) #0000;border-radius:var(--radius-field);position:relative}.tabs-border>.tab:before{content:"";background-color:var(--tab-border-color);border-radius:var(--radius-field);width:80%;height:3px;transition:background-color .2s;position:absolute;bottom:0;left:10%}:is(.tabs-border>.tab:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-border>.tab:is(input:checked),.tabs-border>.tab:is(label:has(:checked))):before{--tab-border-color:currentColor;border-top:3px solid}.menu-horizontal{flex-direction:row;display:inline-flex}.menu-horizontal>li:not(.menu-title)>details>ul{transform-origin:top;border-radius:var(--radius-box);background-color:var(--color-base-100);opacity:0;margin-inline-start:0;margin-top:1rem;padding-block:.5rem;padding-inline-end:.5rem;position:absolute;scale:95%;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}@media(prefers-reduced-motion:no-preference){@starting-style{.menu-horizontal>li:not(.menu-title)>details>ul{opacity:0;scale:95%}}.menu-horizontal>li:not(.menu-title)>details>ul{transition-behavior:allow-discrete;transition-property:opacity,scale,display;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);animation:.2s menu}}.menu-horizontal>li:not(.menu-title)>details[open]>ul{opacity:1;scale:100%}.menu-horizontal>li>details>ul:before{--tw-content:none;content:var(--tw-content)}.checkbox:disabled,.radio:disabled{cursor:not-allowed;opacity:.2}.rating.rating-xs :where(:not(.rating-hidden)){width:1rem;height:1rem}.rating.rating-sm :where(:not(.rating-hidden)){width:1.25rem;height:1.25rem}.rating.rating-md :where(:not(.rating-hidden)){width:1.5rem;height:1.5rem}.rating.rating-lg :where(:not(.rating-hidden)){width:1.75rem;height:1.75rem}.rating.rating-xl :where(:not(.rating-hidden)){width:2rem;height:2rem}:where(.navbar){position:relative}.tooltip-bottom>.tooltip-content,.tooltip-bottom[data-tip]:before{transform:translate(-50%) translateY(var(--tt-pos,-.25rem));inset:var(--tt-off) auto auto 50%}.tooltip-bottom:after{transform:translate(-50%) translateY(var(--tt-pos,-.25rem)) rotate(180deg);inset:var(--tt-tail) auto auto 50%}.tooltip-left>.tooltip-content,.tooltip-left[data-tip]:before{transform:translate(calc(var(--tt-pos,.25rem) - .25rem)) translateY(-50%);inset:50% var(--tt-off) auto auto}.tooltip-left:after{transform:translate(var(--tt-pos,.25rem)) translateY(-50%) rotate(-90deg);inset:50% calc(var(--tt-tail) + 1px) auto auto}.tooltip-right>.tooltip-content,.tooltip-right[data-tip]:before{transform:translate(calc(var(--tt-pos,-.25rem) + .25rem)) translateY(-50%);inset:50% auto auto var(--tt-off)}.tooltip-right:after{transform:translate(var(--tt-pos,-.25rem)) translateY(-50%) rotate(90deg);inset:50% auto auto calc(var(--tt-tail) + 1px)}.tooltip-top>.tooltip-content,.tooltip-top[data-tip]:before{transform:translate(-50%) translateY(var(--tt-pos,.25rem));inset:auto auto var(--tt-off) 50%}.tooltip-top:after{transform:translate(-50%) translateY(var(--tt-pos,.25rem));inset:auto auto var(--tt-tail) 50%}.toast-center{--toast-x:-50%;inset-inline:50%}.toast-end{--toast-x:0;inset-inline:auto 1rem}.toast-start{--toast-x:0;inset-inline:1rem auto}.dropdown-right{--anchor-h:right;--anchor-v:span-bottom}.dropdown-right .dropdown-content{transform-origin:0;inset-inline-start:100%;top:0;bottom:auto}.chat-end{grid-template-columns:1fr auto;place-items:end}.chat-end .chat-header,.chat-end .chat-footer{grid-column-start:1}.chat-end .chat-image{grid-column-start:2}.chat-end .chat-bubble{border-end-end-radius:0;grid-column-start:1}.chat-end .chat-bubble:before{inset-inline-start:100%;transform:rotateY(180deg)}[dir=rtl] :is(.chat-end .chat-bubble):before{transform:rotateY(0)}.chat-start{grid-template-columns:auto 1fr;place-items:start}.chat-start .chat-header,.chat-start .chat-footer{grid-column-start:2}.chat-start .chat-image{grid-column-start:1}.chat-start .chat-bubble{border-end-start-radius:0;grid-column-start:2}.chat-start .chat-bubble:before{inset-inline-start:-.75rem;transform:rotateY(0)}[dir=rtl] :is(.chat-start .chat-bubble):before{transform:rotateY(180deg)}.dropdown-left{--anchor-h:left;--anchor-v:span-bottom}.dropdown-left .dropdown-content{transform-origin:100%;inset-inline-end:100%;top:0;bottom:auto}.dropdown-end{--anchor-h:span-left}.dropdown-end :where(.dropdown-content){inset-inline-end:0;translate:0}[dir=rtl] :is(.dropdown-end :where(.dropdown-content)){translate:0}.dropdown-end.dropdown-left{--anchor-h:left;--anchor-v:span-top}.dropdown-end.dropdown-left .dropdown-content{top:auto;bottom:0}.dropdown-end.dropdown-right{--anchor-h:right;--anchor-v:span-top}.dropdown-end.dropdown-right .dropdown-content{top:auto;bottom:0}.dropdown-bottom{--anchor-v:bottom}.dropdown-bottom .dropdown-content{transform-origin:top;top:100%;bottom:auto}.dropdown-top{--anchor-v:top}.dropdown-top .dropdown-content{transform-origin:bottom;top:auto;bottom:100%}.toast-bottom{--toast-y:0;top:auto;bottom:1rem}.toast-middle{--toast-y:-50%;top:50%;bottom:auto}.toast-top{--toast-y:0;top:1rem;bottom:auto}.dock-sm{height:3.5rem;height:calc(3.5rem + env(safe-area-inset-bottom))}.dock-sm .dock-active:after{bottom:-.1rem}.dock-sm .dock-label{font-size:.625rem}.dock-lg{height:4.5rem;height:calc(4.5rem + env(safe-area-inset-bottom))}.dock-lg .dock-active:after{bottom:.4rem}.dock-lg .dock-label{font-size:.6875rem}.dock-xl{height:5rem;height:calc(5rem + env(safe-area-inset-bottom))}.dock-xl .dock-active:after{bottom:.4rem}.dock-xl .dock-label{font-size:.75rem}.dock-xs{height:3rem;height:calc(3rem + env(safe-area-inset-bottom))}.dock-xs .dock-active:after{bottom:-.1rem}.dock-xs .dock-label{font-size:.625rem}.btn-active{--btn-bg:var(--btn-color,var(--color-base-200))}@supports (color:color-mix(in lab,red,red)){.btn-active{--btn-bg:color-mix(in oklab, var(--btn-color,var(--color-base-200)), #000 7%)}}.btn-active{--btn-shadow:0 0 0 0 oklch(0% 0 0/0), 0 0 0 0 oklch(0% 0 0/0);isolation:isolate}:is(.stack,.stack.stack-bottom)>*{grid-area:3/3/6/4}:is(.stack,.stack.stack-bottom)>:nth-child(2){grid-area:2/2/5/5}:is(.stack,.stack.stack-bottom)>:first-child{grid-area:1/1/4/6}.stack.stack-top>*{grid-area:1/3/4/4}.stack.stack-top>:nth-child(2){grid-area:2/2/5/5}.stack.stack-top>:first-child{grid-area:3/1/6/6}.stack.stack-start>*{grid-area:3/1/4/4}.stack.stack-start>:nth-child(2){grid-area:2/2/5/5}.stack.stack-start>:first-child{grid-area:1/3/6/6}.stack.stack-end>*{grid-area:3/3/4/6}.stack.stack-end>:nth-child(2){grid-area:2/2/5/5}.stack.stack-end>:first-child{grid-area:1/1/6/4}.tabs-box{background-color:var(--color-base-200);--tabs-box-radius:calc(3 * var(--radius-field));border-radius:calc(min(var(--tab-height) / 2,var(--radius-field)) + min(.25rem,var(--tabs-box-radius)));box-shadow:0 -.5px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 .5px oklch(0% 0 0 / calc(var(--depth) * .05)) inset;padding:.25rem}.tabs-box>.tab{border-radius:var(--radius-field);border-style:none}.tabs-box>.tab:focus-visible,.tabs-box>.tab:is(label:has(:checked:focus-visible)){outline-offset:2px}.tabs-box>.tab:focus-visible{z-index:1}.tabs-box>:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-box>:is(input:checked),.tabs-box>:is(label:has(:checked)){background-color:var(--tab-bg,var(--color-base-100));box-shadow:0 1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px 1px -1px var(--color-neutral),0 1px 6px -4px var(--color-neutral)}@supports (color:color-mix(in lab,red,red)){.tabs-box>:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-box>:is(input:checked),.tabs-box>:is(label:has(:checked)){box-shadow:0 1px oklch(100% 0 0 / calc(var(--depth) * .1)) inset,0 1px 1px -1px color-mix(in oklab,var(--color-neutral) calc(var(--depth) * 50%),#0000),0 1px 6px -4px color-mix(in oklab,var(--color-neutral) calc(var(--depth) * 100%),#0000)}}@media(forced-colors:active){.tabs-box>:is(.tab-active,[aria-selected=true],[aria-current=true],[aria-current=page]):not(.tab-disabled,[disabled]),.tabs-box>:is(input:checked),.tabs-box>:is(label:has(:checked)){border:1px solid}}.tabs-box>.tab-content{height:calc(100% - var(--tab-height) + var(--border) - .5rem);border-radius:calc(min(var(--tab-height) / 2,var(--radius-field)) + min(.25rem,var(--tabs-box-radius)) - var(--border));margin-top:.25rem}.timeline-vertical{flex-direction:column}.timeline-vertical>li{--timeline-row-start:minmax(0, 1fr);--timeline-row-end:minmax(0, 1fr);justify-items:center}.timeline-vertical>li>hr{width:.25rem;height:100%}.timeline-vertical>li>hr:first-child{grid-row-start:1;grid-column-start:2}.timeline-vertical>li>hr:last-child{grid-area:3/2/none}.timeline-vertical .timeline-start{grid-area:1/1/4/2;place-self:center flex-end}.timeline-vertical .timeline-end{grid-area:1/3/4/4;place-self:center flex-start}.timeline-vertical:has(.timeline-middle)>li>hr:first-child{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:var(--radius-selector);border-bottom-left-radius:var(--radius-selector)}.timeline-vertical:has(.timeline-middle)>li>hr:last-child,.timeline-vertical:not(:has(.timeline-middle)) :first-child>hr:last-child{border-top-left-radius:var(--radius-selector);border-top-right-radius:var(--radius-selector);border-bottom-right-radius:0;border-bottom-left-radius:0}.timeline-vertical:not(:has(.timeline-middle)) :last-child>hr:first-child{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:var(--radius-selector);border-bottom-left-radius:var(--radius-selector)}.timeline-vertical.timeline-snap-icon>li{--timeline-col-start:minmax(0, 1fr);--timeline-row-start:.5rem}.drawer-end{grid-auto-columns:auto max-content}.drawer-end>.drawer-toggle~.drawer-content{grid-column-start:1}.drawer-end>.drawer-toggle~.drawer-side{grid-column-start:2;justify-items:end}.drawer-end>.drawer-toggle~.drawer-side>:not(.drawer-overlay){translate:100%}[dir=rtl] :is(.drawer-end>.drawer-toggle~.drawer-side>:not(.drawer-overlay)){translate:-100%}.drawer-end>.drawer-toggle:checked~.drawer-side>:not(.drawer-overlay){translate:0%}.file-input-ghost{box-shadow:none;background-color:#0000;border-color:#0000;transition:background-color .2s}.file-input-ghost::file-selector-button{cursor:pointer;webkit-user-select:none;-webkit-user-select:none;user-select:none;border-start-end-radius:calc(var(--join-ss,var(--radius-field) - var(--border)));border-end-end-radius:calc(var(--join-es,var(--radius-field) - var(--border)));height:100%;margin-block:0;margin-inline:0 1rem;padding-inline:1rem}.file-input-ghost:focus,.file-input-ghost:focus-within{background-color:var(--color-base-100);color:var(--color-base-content);box-shadow:none;border-color:#0000}.input-lg{--size:calc(var(--size-field,.25rem) * 12);font-size:max(var(--font-size,1.125rem),1.125rem)}.input-lg[type=number]::-webkit-inner-spin-button{margin-block:-.75rem;margin-inline-end:-.75rem}.input-md{--size:calc(var(--size-field,.25rem) * 10);font-size:max(var(--font-size,.875rem),.875rem)}.input-md[type=number]::-webkit-inner-spin-button{margin-block:-.75rem;margin-inline-end:-.75rem}.input-sm{--size:calc(var(--size-field,.25rem) * 8);font-size:max(var(--font-size,.75rem),.75rem)}.input-sm[type=number]::-webkit-inner-spin-button{margin-block:-.5rem;margin-inline-end:-.75rem}.input-xs{--size:calc(var(--size-field,.25rem) * 6);font-size:max(var(--font-size,.6875rem),.6875rem)}.input-xs[type=number]::-webkit-inner-spin-button{margin-block:-.25rem;margin-inline-end:-.75rem}.steps-vertical{grid-auto-rows:1fr;grid-auto-flow:row}.steps-vertical .step{grid-template-rows:auto;grid-template-columns:40px 1fr;justify-items:start;gap:.5rem;min-height:4rem;display:grid}.steps-vertical .step:before{width:.5rem;height:100%;margin-inline-start:50%;translate:-50% -50%}[dir=rtl] :is(.steps-vertical .step):before{translate:50% -50%}.steps-horizontal{grid-auto-columns:1fr;grid-auto-flow:column;display:inline-grid;overflow:auto hidden}.steps-horizontal .step{text-align:center;grid-template-rows:40px 1fr;grid-template-columns:auto;place-items:center;min-width:4rem;display:grid}.steps-horizontal .step:before{width:100%;height:.5rem;margin-inline-start:-100%;translate:0}[dir=rtl] :is(.steps-horizontal .step):before{translate:0}.divider-end:after,.divider-start:before{display:none}.modal-bottom{place-items:end}.modal-bottom .modal-box{--modal-tl:var(--radius-box);--modal-tr:var(--radius-box);--modal-bl:0;--modal-br:0;width:100%;max-width:none;height:auto;max-height:calc(100vh - 5em);translate:0 100%;scale:1}.modal-middle{place-items:center}.modal-middle .modal-box{--modal-tl:var(--radius-box);--modal-tr:var(--radius-box);--modal-bl:var(--radius-box);--modal-br:var(--radius-box);width:91.6667%;max-width:32rem;height:auto;max-height:calc(100vh - 5em);translate:0 2%;scale:98%}.modal-top{place-items:start}.modal-top .modal-box{--modal-tl:0;--modal-tr:0;--modal-bl:var(--radius-box);--modal-br:var(--radius-box);width:100%;max-width:none;height:auto;max-height:calc(100vh - 5em);translate:0 -100%;scale:1}.card-side{flex-direction:row;align-items:stretch}.card-side :where(figure:first-child){border-start-start-radius:inherit;border-start-end-radius:unset;border-end-end-radius:unset;border-end-start-radius:inherit;overflow:hidden}.card-side :where(figure:last-child){border-start-start-radius:unset;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:unset;overflow:hidden}.card-side figure>*{max-width:unset}.card-side :where(figure>*){object-fit:cover;width:100%;height:100%}.divider-horizontal{--divider-m:0 1rem}.divider-horizontal.divider{flex-direction:column;width:1rem;height:auto}.divider-horizontal.divider:before,.divider-horizontal.divider:after{width:.125rem;height:100%}.btn-circle{width:var(--size);height:var(--size);border-radius:3.40282e38px;padding-inline:0}.btn-square{width:var(--size);height:var(--size);padding-inline:0}.status-lg{width:.75rem;height:.75rem}.status-md{width:.5rem;height:.5rem}.status-sm{width:.25rem;height:.25rem}.status-xl{width:1rem;height:1rem}.status-xs{width:.125rem;height:.125rem}.dock-md{height:4rem;height:calc(4rem + env(safe-area-inset-bottom))}.dock-md .dock-label{font-size:.6875rem}.btn-wide{width:100%;max-width:16rem}.dock-active:after{color:currentColor;background-color:currentColor;width:2.5rem}.rating-half.rating-xs :not(.rating-hidden){width:.5rem}.rating-half.rating-sm :not(.rating-hidden){width:.625rem}.rating-half.rating-md :not(.rating-hidden){width:.75rem}.rating-half.rating-lg :not(.rating-hidden){width:.875rem}.rating-half.rating-xl :not(.rating-hidden){width:1rem}.btn-block{width:100%}.loading-lg{width:calc(var(--size-selector,.25rem) * 7)}.loading-md{width:calc(var(--size-selector,.25rem) * 6)}.loading-sm{width:calc(var(--size-selector,.25rem) * 5)}.loading-xs{width:calc(var(--size-selector,.25rem) * 4)}.swap-rotate .swap-on,.swap-rotate input:indeterminate~.swap-on{rotate:45deg}.swap-rotate input:is(:checked,:indeterminate)~.swap-on,.swap-rotate.swap-active .swap-on{rotate:none}.swap-rotate input:is(:checked,:indeterminate)~.swap-off,.swap-rotate.swap-active .swap-off{rotate:-45deg}.swap-flip{transform-style:preserve-3d;perspective:20rem}.swap-flip .swap-on,.swap-flip .swap-indeterminate,.swap-flip input:indeterminate~.swap-on{backface-visibility:hidden;transform:rotateY(180deg)}.swap-flip input:is(:checked,:indeterminate)~.swap-on,.swap-flip.swap-active .swap-on{transform:rotateY(0)}.swap-flip input:is(:checked,:indeterminate)~.swap-off,.swap-flip.swap-active .swap-off{backface-visibility:hidden;opacity:1;transform:rotateY(-180deg)}.carousel-vertical{scroll-snap-type:y mandatory;flex-direction:column;overflow-y:scroll}.carousel-center .carousel-item{scroll-snap-align:center}.carousel-end .carousel-item{scroll-snap-align:end}.alert-vertical{text-align:center;grid-template-columns:auto;grid-auto-flow:row;justify-content:center;justify-items:center}.alert-vertical:has(:nth-child(2)){grid-template-columns:auto}.stats-vertical{grid-auto-flow:row;overflow-y:auto}.stats-vertical .stat:not(:last-child){border-inline-end:none;border-block-end:var(--border) dashed currentColor}@supports (color:color-mix(in lab,red,red)){.stats-vertical .stat:not(:last-child){border-block-end:var(--border) dashed color-mix(in oklab,currentColor 10%,#0000)}}.menu-lg :where(li:not(.menu-title)>:not(ul,details,.menu-title)),.menu-lg :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--radius-field);padding-block:.375rem;padding-inline:1rem;font-size:1.125rem}.menu-lg .menu-title{padding-block:.75rem;padding-inline:1.5rem}.menu-md :where(li:not(.menu-title)>:not(ul,details,.menu-title)),.menu-md :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--radius-field);padding-block:.375rem;padding-inline:.75rem;font-size:.875rem}.menu-md .menu-title{padding-block:.5rem;padding-inline:.75rem}.menu-sm :where(li:not(.menu-title)>:not(ul,details,.menu-title)),.menu-sm :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--radius-field);padding-block:.25rem;padding-inline:.625rem;font-size:.75rem}.menu-sm .menu-title{padding-block:.5rem;padding-inline:.75rem}.menu-xs :where(li:not(.menu-title)>:not(ul,details,.menu-title)),.menu-xs :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--radius-field);padding-block:.25rem;padding-inline:.5rem;font-size:.6875rem}.menu-xs .menu-title{padding-block:.25rem;padding-inline:.5rem}.badge-dash{color:var(--badge-color);--badge-bg:#0000;background-image:none;border-style:dashed;border-color:currentColor}.badge-ghost{border-color:var(--color-base-200);background-color:var(--color-base-200);color:var(--color-base-content);background-image:none}.badge-soft{color:var(--badge-color,var(--color-base-content));background-color:var(--badge-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.badge-soft{background-color:color-mix(in oklab,var(--badge-color,var(--color-base-content)) 8%,var(--color-base-100))}}.badge-soft{border-color:var(--badge-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.badge-soft{border-color:color-mix(in oklab,var(--badge-color,var(--color-base-content)) 10%,var(--color-base-100))}}.badge-soft{background-image:none}.select-ghost{box-shadow:none;background-color:#0000;border-color:#0000;transition:background-color .2s}.select-ghost:focus,.select-ghost:focus-within{background-color:var(--color-base-100);color:var(--color-base-content);box-shadow:none;border-color:#0000}.input-ghost{box-shadow:none;background-color:#0000;border-color:#0000}.input-ghost:focus,.input-ghost:focus-within{background-color:var(--color-base-100);color:var(--color-base-content);box-shadow:none;border-color:#0000}.textarea-ghost{box-shadow:none;background-color:#0000;border-color:#0000}.textarea-ghost:focus,.textarea-ghost:focus-within{background-color:var(--color-base-100);color:var(--color-base-content);box-shadow:none;border-color:#0000}.badge-outline{color:var(--badge-color);--badge-bg:#0000;background-image:none;border-color:currentColor}.chat-bubble-accent{background-color:var(--color-accent);color:var(--color-accent-content)}.chat-bubble-error{background-color:var(--color-error);color:var(--color-error-content)}.chat-bubble-info{background-color:var(--color-info);color:var(--color-info-content)}.chat-bubble-primary{background-color:var(--color-primary);color:var(--color-primary-content)}.chat-bubble-secondary{background-color:var(--color-secondary);color:var(--color-secondary-content)}.chat-bubble-success{background-color:var(--color-success);color:var(--color-success-content)}.chat-bubble-warning{background-color:var(--color-warning);color:var(--color-warning-content)}.status-accent{background-color:var(--color-accent);color:var(--color-accent)}.status-error{background-color:var(--color-error);color:var(--color-error)}.status-info{background-color:var(--color-info);color:var(--color-info)}.status-neutral{background-color:var(--color-neutral);color:var(--color-neutral)}.status-primary{background-color:var(--color-primary);color:var(--color-primary)}.status-secondary{background-color:var(--color-secondary);color:var(--color-secondary)}.status-success{background-color:var(--color-success);color:var(--color-success)}.status-warning{background-color:var(--color-warning);color:var(--color-warning)}.table-zebra tbody tr:where(:nth-child(2n)),.table-zebra tbody tr:where(:nth-child(2n)) :where(.table-pin-cols tr th){background-color:var(--color-base-200)}@media(hover:hover){:is(.table-zebra tbody tr.row-hover,.table-zebra tbody tr.row-hover:where(:nth-child(2n))):hover{background-color:var(--color-base-300)}}.divider-accent:before,.divider-accent:after{background-color:var(--color-accent)}.divider-error:before,.divider-error:after{background-color:var(--color-error)}.divider-info:before,.divider-info:after{background-color:var(--color-info)}.divider-neutral:before,.divider-neutral:after{background-color:var(--color-neutral)}.divider-primary:before,.divider-primary:after{background-color:var(--color-primary)}.divider-secondary:before,.divider-secondary:after{background-color:var(--color-secondary)}.divider-success:before,.divider-success:after{background-color:var(--color-success)}.divider-warning:before,.divider-warning:after{background-color:var(--color-warning)}.loading-ball{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='12' cy='5' rx='4' ry='4'%3E%3Canimate attributeName='cy' values='5;20;20.5;20;5' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1'/%3E%3Canimate attributeName='rx' values='4;4;4.8;4;4' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='ry' values='4;4;3;4;4' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite'/%3E%3C/ellipse%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='12' cy='5' rx='4' ry='4'%3E%3Canimate attributeName='cy' values='5;20;20.5;20;5' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1'/%3E%3Canimate attributeName='rx' values='4;4;4.8;4;4' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='ry' values='4;4;3;4;4' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite'/%3E%3C/ellipse%3E%3C/svg%3E")}.loading-bars{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='9' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3C/rect%3E%3Crect x='17' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3C/rect%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='9' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3C/rect%3E%3Crect x='17' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3C/rect%3E%3C/svg%3E")}.loading-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.1s'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.2s'/%3E%3C/circle%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.1s'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.2s'/%3E%3C/circle%3E%3C/svg%3E")}.loading-infinity{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='shape-rendering:auto;' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Cpath fill='none' stroke='black' stroke-width='10' stroke-dasharray='205.271 51.318' d='M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z' stroke-linecap='round' style='transform:scale(0.8);transform-origin:50px 50px'%3E%3Canimate attributeName='stroke-dashoffset' repeatCount='indefinite' dur='2s' keyTimes='0;1' values='0;256.589'/%3E%3C/path%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='shape-rendering:auto;' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Cpath fill='none' stroke='black' stroke-width='10' stroke-dasharray='205.271 51.318' d='M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z' stroke-linecap='round' style='transform:scale(0.8);transform-origin:50px 50px'%3E%3Canimate attributeName='stroke-dashoffset' repeatCount='indefinite' dur='2s' keyTimes='0;1' values='0;256.589'/%3E%3C/path%3E%3C/svg%3E")}.loading-ring{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='white'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='white'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E")}.loading-spinner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E")}.mask-circle{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle fill='black' cx='100' cy='100' r='100' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle fill='black' cx='100' cy='100' r='100' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-decagon{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 0 58.779 19.098 36.327 50v61.804l-36.327 50L96 200l-58.779-19.098-36.327-50V69.098l36.327-50z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 0 58.779 19.098 36.327 50v61.804l-36.327 50L96 200l-58.779-19.098-36.327-50V69.098l36.327-50z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-diamond{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m100 0 100 100-100 100L0 100z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m100 0 100 100-100 100L0 100z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-heart{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='185' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='185' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e")}.mask-hexagon{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='182' height='201' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M.3 65.486c0-9.196 6.687-20.063 14.211-25.078l61.86-35.946c8.36-5.016 20.899-5.016 29.258 0l61.86 35.946c8.36 5.015 14.211 15.882 14.211 25.078v71.055c0 9.196-6.687 20.063-14.211 25.079l-61.86 35.945c-8.36 4.18-20.899 4.18-29.258 0L14.51 161.62C6.151 157.44.3 145.737.3 136.54V65.486Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='182' height='201' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M.3 65.486c0-9.196 6.687-20.063 14.211-25.078l61.86-35.946c8.36-5.016 20.899-5.016 29.258 0l61.86 35.946c8.36 5.015 14.211 15.882 14.211 25.078v71.055c0 9.196-6.687 20.063-14.211 25.079l-61.86 35.945c-8.36 4.18-20.899 4.18-29.258 0L14.51 161.62C6.151 157.44.3 145.737.3 136.54V65.486Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e")}.mask-hexagon-2{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='182' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M64.786 181.4c-9.196 0-20.063-6.687-25.079-14.21L3.762 105.33c-5.016-8.36-5.016-20.9 0-29.259l35.945-61.86C44.723 5.851 55.59 0 64.786 0h71.055c9.196 0 20.063 6.688 25.079 14.211l35.945 61.86c4.18 8.36 4.18 20.899 0 29.258l-35.945 61.86c-4.18 8.36-15.883 14.211-25.079 14.211H64.786Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='182' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M64.786 181.4c-9.196 0-20.063-6.687-25.079-14.21L3.762 105.33c-5.016-8.36-5.016-20.9 0-29.259l35.945-61.86C44.723 5.851 55.59 0 64.786 0h71.055c9.196 0 20.063 6.688 25.079 14.211l35.945 61.86c4.18 8.36 4.18 20.899 0 29.258l-35.945 61.86c-4.18 8.36-15.883 14.211-25.079 14.211H64.786Z' fill='black' fill-rule='nonzero'/%3e%3c/svg%3e")}.mask-pentagon{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='181' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 0 95.106 69.098-36.327 111.804H37.22L.894 69.098z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='181' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 0 95.106 69.098-36.327 111.804H37.22L.894 69.098z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-squircle{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e")}.mask-star{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-star-2{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-triangle{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='174' height='149' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m87 148.476-86.603.185L43.86 74.423 87 0l43.14 74.423 43.463 74.238z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='174' height='149' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m87 148.476-86.603.185L43.86 74.423 87 0l43.14 74.423 43.463 74.238z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-triangle-2{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='174' height='150' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m87 .738 86.603-.184-43.463 74.238L87 149.214 43.86 74.792.397.554z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='174' height='150' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m87 .738 86.603-.184-43.463 74.238L87 149.214 43.86 74.792.397.554z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-triangle-3{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m149.369 87.107.185 86.603-74.239-43.463L.893 87.107l74.422-43.14L149.554.505z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m149.369 87.107.185 86.603-74.239-43.463L.893 87.107l74.422-43.14L149.554.505z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-triangle-4{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='M.631 87.107.446.505l74.239 43.462 74.422 43.14-74.422 43.14L.446 173.71z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='150' height='174' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='M.631 87.107.446.505l74.239 43.462 74.422 43.14-74.422 43.14L.446 173.71z' fill-rule='evenodd'/%3e%3c/svg%3e")}.mask-half-1{-webkit-mask-position:0;mask-position:0;-webkit-mask-size:200%;mask-size:200%}.mask-half-1:where(:dir(rtl),[dir=rtl],[dir=rtl] *){-webkit-mask-position:100%;mask-position:100%}.mask-half-2{-webkit-mask-position:100%;mask-position:100%;-webkit-mask-size:200%;mask-size:200%}.mask-half-2:where(:dir(rtl),[dir=rtl],[dir=rtl] *){-webkit-mask-position:0;mask-position:0}.checkbox-lg{--size:calc(var(--size-selector,.25rem) * 7);padding:.3125rem}.checkbox-md{--size:calc(var(--size-selector,.25rem) * 6);padding:.25rem}.checkbox-sm{--size:calc(var(--size-selector,.25rem) * 5);padding:.1875rem}.checkbox-xs{--size:calc(var(--size-selector,.25rem) * 4);padding:.125rem}.radio-lg{padding:.3125rem}.radio-lg[type=radio]{--size:calc(var(--size-selector,.25rem) * 7)}.radio-md{padding:.25rem}.radio-md[type=radio]{--size:calc(var(--size-selector,.25rem) * 6)}.radio-sm{padding:.1875rem}.radio-sm[type=radio]{--size:calc(var(--size-selector,.25rem) * 5)}.radio-xs{padding:.125rem}.radio-xs[type=radio]{--size:calc(var(--size-selector,.25rem) * 4)}.select-lg{--size:calc(var(--size-field,.25rem) * 12);font-size:1.125rem}.select-lg option{padding-block:.375rem;padding-inline:1rem}.select-md{--size:calc(var(--size-field,.25rem) * 10);font-size:.875rem}.select-md option{padding-block:.375rem;padding-inline:.75rem}.select-sm{--size:calc(var(--size-field,.25rem) * 8);font-size:.75rem}.select-sm option{padding-block:.25rem;padding-inline:.625rem}.select-xs{--size:calc(var(--size-field,.25rem) * 6);font-size:.6875rem}.select-xs option{padding-block:.25rem;padding-inline:.5rem}.table-lg :not(thead,tfoot) tr{font-size:1.125rem}.table-lg :where(th,td){padding-block:1rem;padding-inline:1.25rem}.table-md :not(thead,tfoot) tr{font-size:.875rem}.table-md :where(th,td){padding-block:.75rem;padding-inline:1rem}.table-sm :not(thead,tfoot) tr{font-size:.75rem}.table-sm :where(th,td){padding-block:.5rem;padding-inline:.75rem}.table-xs :not(thead,tfoot) tr{font-size:.6875rem}.table-xs :where(th,td){padding-block:.25rem;padding-inline:.5rem}.file-input-lg{--size:calc(var(--size-field,.25rem) * 12);font-size:1.125rem;line-height:2.5rem}.file-input-lg::file-selector-button{font-size:1.125rem}.file-input-md{--size:calc(var(--size-field,.25rem) * 10);font-size:.875rem;line-height:2}.file-input-md::file-selector-button{font-size:.875rem}.file-input-sm{--size:calc(var(--size-field,.25rem) * 8);font-size:.75rem;line-height:1.5rem}.file-input-sm::file-selector-button{font-size:.75rem}.file-input-xs{--size:calc(var(--size-field,.25rem) * 6);font-size:.6875rem;line-height:1rem}.file-input-xs::file-selector-button{font-size:.6875rem}.tabs-lg{--tab-height:calc(var(--size-field,.25rem) * 12)}.tabs-lg>.tab{--tab-p:1rem;--tab-radius-min:calc(1.5rem - var(--border));font-size:1.125rem}.tabs-md{--tab-height:calc(var(--size-field,.25rem) * 10)}.tabs-md>.tab{--tab-p:.75rem;--tab-radius-min:calc(.75rem - var(--border));font-size:.875rem}.tabs-sm{--tab-height:calc(var(--size-field,.25rem) * 8)}.tabs-sm>.tab{--tab-p:.5rem;--tab-radius-min:calc(.5rem - var(--border));font-size:.875rem}.tabs-xs{--tab-height:calc(var(--size-field,.25rem) * 6)}.tabs-xs>.tab{--tab-p:.375rem;--tab-radius-min:calc(.5rem - var(--border));font-size:.75rem}.badge-lg{--size:calc(var(--size-selector,.25rem) * 7);font-size:1rem}.badge-md{--size:calc(var(--size-selector,.25rem) * 6);font-size:.875rem}.badge-sm{--size:calc(var(--size-selector,.25rem) * 5);font-size:.75rem}.badge-xs{--size:calc(var(--size-selector,.25rem) * 4);font-size:.625rem}.kbd-lg{--size:calc(var(--size-selector,.25rem) * 7);font-size:1rem}.kbd-md{--size:calc(var(--size-selector,.25rem) * 6);font-size:.875rem}.kbd-sm{--size:calc(var(--size-selector,.25rem) * 5);font-size:.75rem}.kbd-xs{--size:calc(var(--size-selector,.25rem) * 4);font-size:.625rem}.textarea-lg{font-size:max(var(--font-size,1.125rem),1.125rem)}.textarea-md{font-size:max(var(--font-size,.875rem),.875rem)}.textarea-sm{font-size:max(var(--font-size,.75rem),.75rem)}.textarea-xs{font-size:max(var(--font-size,.6875rem),.6875rem)}.alert-error{color:var(--color-error-content);--alert-border-color:var(--color-error);--alert-color:var(--color-error)}.alert-info{color:var(--color-info-content);--alert-border-color:var(--color-info);--alert-color:var(--color-info)}.alert-success{color:var(--color-success-content);--alert-border-color:var(--color-success);--alert-color:var(--color-success)}.alert-warning{color:var(--color-warning-content);--alert-border-color:var(--color-warning);--alert-color:var(--color-warning)}.file-input-accent{--btn-color:var(--color-accent)}.file-input-accent::file-selector-button{color:var(--color-accent-content)}.file-input-accent,.file-input-accent:focus,.file-input-accent:focus-within{--input-color:var(--color-accent)}.file-input-error{--btn-color:var(--color-error)}.file-input-error::file-selector-button{color:var(--color-error-content)}.file-input-error,.file-input-error:focus,.file-input-error:focus-within{--input-color:var(--color-error)}.file-input-info{--btn-color:var(--color-info)}.file-input-info::file-selector-button{color:var(--color-info-content)}.file-input-info,.file-input-info:focus,.file-input-info:focus-within{--input-color:var(--color-info)}.file-input-primary{--btn-color:var(--color-primary)}.file-input-primary::file-selector-button{color:var(--color-primary-content)}.file-input-primary,.file-input-primary:focus,.file-input-primary:focus-within{--input-color:var(--color-primary)}.file-input-secondary{--btn-color:var(--color-secondary)}.file-input-secondary::file-selector-button{color:var(--color-secondary-content)}.file-input-secondary,.file-input-secondary:focus,.file-input-secondary:focus-within{--input-color:var(--color-secondary)}.file-input-success{--btn-color:var(--color-success)}.file-input-success::file-selector-button{color:var(--color-success-content)}.file-input-success,.file-input-success:focus,.file-input-success:focus-within{--input-color:var(--color-success)}.file-input-warning{--btn-color:var(--color-warning)}.file-input-warning::file-selector-button{color:var(--color-warning-content)}.file-input-warning,.file-input-warning:focus,.file-input-warning:focus-within{--input-color:var(--color-warning)}.checkbox-accent{color:var(--color-accent-content);--input-color:var(--color-accent)}.checkbox-error{color:var(--color-error-content);--input-color:var(--color-error)}.checkbox-info{color:var(--color-info-content);--input-color:var(--color-info)}.checkbox-primary{color:var(--color-primary-content);--input-color:var(--color-primary)}.checkbox-secondary{color:var(--color-secondary-content);--input-color:var(--color-secondary)}.checkbox-success{color:var(--color-success-content);--input-color:var(--color-success)}.checkbox-warning{color:var(--color-warning-content);--input-color:var(--color-warning)}.link-accent{color:var(--color-accent)}@media(hover:hover){.link-accent:hover{color:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){.link-accent:hover{color:color-mix(in oklab,var(--color-accent) 80%,#000)}}}.link-error{color:var(--color-error)}@media(hover:hover){.link-error:hover{color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.link-error:hover{color:color-mix(in oklab,var(--color-error) 80%,#000)}}}.link-info{color:var(--color-info)}@media(hover:hover){.link-info:hover{color:var(--color-info)}@supports (color:color-mix(in lab,red,red)){.link-info:hover{color:color-mix(in oklab,var(--color-info) 80%,#000)}}}.link-neutral{color:var(--color-neutral)}@media(hover:hover){.link-neutral:hover{color:var(--color-neutral)}@supports (color:color-mix(in lab,red,red)){.link-neutral:hover{color:color-mix(in oklab,var(--color-neutral) 80%,#000)}}}.link-primary{color:var(--color-primary)}@media(hover:hover){.link-primary:hover{color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.link-primary:hover{color:color-mix(in oklab,var(--color-primary) 80%,#000)}}}.link-secondary{color:var(--color-secondary)}@media(hover:hover){.link-secondary:hover{color:var(--color-secondary)}@supports (color:color-mix(in lab,red,red)){.link-secondary:hover{color:color-mix(in oklab,var(--color-secondary) 80%,#000)}}}.link-success{color:var(--color-success)}@media(hover:hover){.link-success:hover{color:var(--color-success)}@supports (color:color-mix(in lab,red,red)){.link-success:hover{color:color-mix(in oklab,var(--color-success) 80%,#000)}}}.link-warning{color:var(--color-warning)}@media(hover:hover){.link-warning:hover{color:var(--color-warning)}@supports (color:color-mix(in lab,red,red)){.link-warning:hover{color:color-mix(in oklab,var(--color-warning) 80%,#000)}}}.range-accent{color:var(--color-accent);--range-thumb:var(--color-accent-content)}.range-error{color:var(--color-error);--range-thumb:var(--color-error-content)}.range-info{color:var(--color-info);--range-thumb:var(--color-info-content)}.range-primary{color:var(--color-primary);--range-thumb:var(--color-primary-content)}.range-secondary{color:var(--color-secondary);--range-thumb:var(--color-secondary-content)}.range-success{color:var(--color-success);--range-thumb:var(--color-success-content)}.range-warning{color:var(--color-warning);--range-thumb:var(--color-warning-content)}.tooltip-accent{--tt-bg:var(--color-accent)}.tooltip-accent>.tooltip-content,.tooltip-accent[data-tip]:before{color:var(--color-accent-content)}.tooltip-error{--tt-bg:var(--color-error)}.tooltip-error>.tooltip-content,.tooltip-error[data-tip]:before{color:var(--color-error-content)}.tooltip-info{--tt-bg:var(--color-info)}.tooltip-info>.tooltip-content,.tooltip-info[data-tip]:before{color:var(--color-info-content)}.tooltip-primary{--tt-bg:var(--color-primary)}.tooltip-primary>.tooltip-content,.tooltip-primary[data-tip]:before{color:var(--color-primary-content)}.tooltip-secondary{--tt-bg:var(--color-secondary)}.tooltip-secondary>.tooltip-content,.tooltip-secondary[data-tip]:before{color:var(--color-secondary-content)}.tooltip-success{--tt-bg:var(--color-success)}.tooltip-success>.tooltip-content,.tooltip-success[data-tip]:before{color:var(--color-success-content)}.tooltip-warning{--tt-bg:var(--color-warning)}.tooltip-warning>.tooltip-content,.tooltip-warning[data-tip]:before{color:var(--color-warning-content)}.progress-accent{color:var(--color-accent)}.progress-error{color:var(--color-error)}.progress-info{color:var(--color-info)}.progress-primary{color:var(--color-primary)}.progress-secondary{color:var(--color-secondary)}.progress-success{color:var(--color-success)}.progress-warning{color:var(--color-warning)}.link-hover{text-decoration-line:none}@media(hover:hover){.link-hover:hover{text-decoration-line:underline}}.indicator-end{--indicator-s:auto;--indicator-e:0;--indicator-x:50%}[dir=rtl] .indicator-end,.indicator-start{--indicator-s:0;--indicator-e:auto;--indicator-x:-50%}[dir=rtl] .indicator-start{--indicator-s:auto;--indicator-e:0;--indicator-x:50%}.indicator-center{--indicator-s:50%;--indicator-e:50%;--indicator-x:-50%}[dir=rtl] .indicator-center{--indicator-x:50%}.btn-lg{--fontsize:1.125rem;--btn-p:1.25rem;--size:calc(var(--size-field,.25rem) * 12)}.btn-sm{--fontsize:.75rem;--btn-p:.75rem;--size:calc(var(--size-field,.25rem) * 8)}.btn-xs{--fontsize:.6875rem;--btn-p:.5rem;--size:calc(var(--size-field,.25rem) * 6)}.indicator-bottom{--indicator-t:auto;--indicator-b:0;--indicator-y:50%}.indicator-top{--indicator-t:0;--indicator-b:auto;--indicator-y:-50%}.badge-accent{--badge-color:var(--color-accent);--badge-fg:var(--color-accent-content)}.badge-error{--badge-color:var(--color-error);--badge-fg:var(--color-error-content)}.badge-info{--badge-color:var(--color-info);--badge-fg:var(--color-info-content)}.badge-neutral{--badge-color:var(--color-neutral);--badge-fg:var(--color-neutral-content)}.badge-primary{--badge-color:var(--color-primary);--badge-fg:var(--color-primary-content)}.badge-secondary{--badge-color:var(--color-secondary);--badge-fg:var(--color-secondary-content)}.badge-success{--badge-color:var(--color-success);--badge-fg:var(--color-success-content)}.badge-warning{--badge-color:var(--color-warning);--badge-fg:var(--color-warning-content)}.card-border{border:var(--border) solid var(--color-base-200)}.card-dash{border:var(--border) dashed var(--color-base-200)}.input-accent,.input-accent:focus,.input-accent:focus-within{--input-color:var(--color-accent)}.input-error,.input-error:focus,.input-error:focus-within{--input-color:var(--color-error)}.input-info,.input-info:focus,.input-info:focus-within{--input-color:var(--color-info)}.input-primary,.input-primary:focus,.input-primary:focus-within{--input-color:var(--color-primary)}.input-secondary,.input-secondary:focus,.input-secondary:focus-within{--input-color:var(--color-secondary)}.input-success,.input-success:focus,.input-success:focus-within{--input-color:var(--color-success)}.input-warning,.input-warning:focus,.input-warning:focus-within{--input-color:var(--color-warning)}.radio-accent{--input-color:var(--color-accent)}.radio-error{--input-color:var(--color-error)}.radio-info{--input-color:var(--color-info)}.radio-primary{--input-color:var(--color-primary)}.radio-secondary{--input-color:var(--color-secondary)}.radio-success{--input-color:var(--color-success)}.radio-warning{--input-color:var(--color-warning)}.range-lg{--range-thumb-size:calc(var(--size-selector,.25rem) * 7)}.range-md{--range-thumb-size:calc(var(--size-selector,.25rem) * 6)}.range-sm{--range-thumb-size:calc(var(--size-selector,.25rem) * 5)}.range-xs{--range-thumb-size:calc(var(--size-selector,.25rem) * 4)}.select-accent,.select-accent:focus,.select-accent:focus-within{--input-color:var(--color-accent)}.select-error,.select-error:focus,.select-error:focus-within{--input-color:var(--color-error)}.select-info,.select-info:focus,.select-info:focus-within{--input-color:var(--color-info)}.select-primary,.select-primary:focus,.select-primary:focus-within{--input-color:var(--color-primary)}.select-secondary,.select-secondary:focus,.select-secondary:focus-within{--input-color:var(--color-secondary)}.select-success,.select-success:focus,.select-success:focus-within{--input-color:var(--color-success)}.select-warning,.select-warning:focus,.select-warning:focus-within{--input-color:var(--color-warning)}.textarea-accent,.textarea-accent:focus,.textarea-accent:focus-within{--input-color:var(--color-accent)}.textarea-error,.textarea-error:focus,.textarea-error:focus-within{--input-color:var(--color-error)}.textarea-info,.textarea-info:focus,.textarea-info:focus-within{--input-color:var(--color-info)}.textarea-primary,.textarea-primary:focus,.textarea-primary:focus-within{--input-color:var(--color-primary)}.textarea-secondary,.textarea-secondary:focus,.textarea-secondary:focus-within{--input-color:var(--color-secondary)}.textarea-success,.textarea-success:focus,.textarea-success:focus-within{--input-color:var(--color-success)}.textarea-warning,.textarea-warning:focus,.textarea-warning:focus-within{--input-color:var(--color-warning)}.toggle-accent:checked,.toggle-accent[aria-checked=true]{--input-color:var(--color-accent)}.toggle-error:checked,.toggle-error[aria-checked=true]{--input-color:var(--color-error)}.toggle-info:checked,.toggle-info[aria-checked=true]{--input-color:var(--color-info)}.toggle-lg[type=checkbox],.toggle-lg:has([type=checkbox]){--size:calc(var(--size-selector,.25rem) * 7)}.toggle-md[type=checkbox],.toggle-md:has([type=checkbox]){--size:calc(var(--size-selector,.25rem) * 6)}.toggle-primary:checked,.toggle-primary[aria-checked=true]{--input-color:var(--color-primary)}.toggle-secondary:checked,.toggle-secondary[aria-checked=true]{--input-color:var(--color-secondary)}.toggle-sm[type=checkbox],.toggle-sm:has([type=checkbox]){--size:calc(var(--size-selector,.25rem) * 5)}.toggle-success:checked,.toggle-success[aria-checked=true]{--input-color:var(--color-success)}.toggle-warning:checked,.toggle-warning[aria-checked=true]{--input-color:var(--color-warning)}.toggle-xs[type=checkbox],.toggle-xs:has([type=checkbox]){--size:calc(var(--size-selector,.25rem) * 4)}}.countdown.countdown{line-height:1em}.collapse:not(td,tr,colgroup){visibility:revert-layer}.validator:user-invalid~.validator-hint{display:revert-layer}.validator:has(:user-invalid)~.validator-hint{display:revert-layer}:is(.validator[aria-invalid]:not([aria-invalid=false]),.validator:has([aria-invalid]:not([aria-invalid=false])))~.validator-hint{display:revert-layer}.collapse{visibility:collapse}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.join{--join-ss:0;--join-se:0;--join-es:0;--join-ee:0;align-items:stretch;display:inline-flex}.join :where(.join-item){border-start-start-radius:var(--join-ss,0);border-start-end-radius:var(--join-se,0);border-end-end-radius:var(--join-ee,0);border-end-start-radius:var(--join-es,0)}.join :where(.join-item) *{--join-ss:var(--radius-field);--join-se:var(--radius-field);--join-es:var(--radius-field);--join-ee:var(--radius-field)}.join>.join-item:where(:first-child),.join :first-child:not(:last-child) :where(.join-item){--join-ss:var(--radius-field);--join-se:0;--join-es:var(--radius-field);--join-ee:0}.join>.join-item:where(:last-child),.join :last-child:not(:first-child) :where(.join-item){--join-ss:0;--join-se:var(--radius-field);--join-es:0;--join-ee:var(--radius-field)}.join>.join-item:where(:only-child),.join :only-child :where(.join-item){--join-ss:var(--radius-field);--join-se:var(--radius-field);--join-es:var(--radius-field);--join-ee:var(--radius-field)}.join>:where(:focus,:has(:focus)){z-index:1}@media(hover:hover){.join>:where(.btn:hover,:has(.btn:hover)){isolation:isolate}}.z-10{z-index:10}@layer daisyui.l1{.list-col-wrap{grid-row-start:2}.alert-dash{color:var(--alert-color);box-shadow:none;background-color:#0000;background-image:none;border-style:dashed}.btn-dash:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn),:disabled,[disabled],.btn-disabled){--btn-shadow:"";--btn-bg:#0000;--btn-fg:var(--btn-color);--btn-border:var(--btn-color);--btn-noise:none}@media(hover:none){.btn-dash:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-shadow:"";--btn-bg:#0000;--btn-fg:var(--btn-color);--btn-border:var(--btn-color);--btn-noise:none}}.alert-outline{color:var(--alert-color);box-shadow:none;background-color:#0000;background-image:none}.alert-soft{color:var(--alert-color,var(--color-base-content));background:var(--alert-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.alert-soft{background:color-mix(in oklab,var(--alert-color,var(--color-base-content)) 8%,var(--color-base-100))}}.alert-soft{--alert-border-color:var(--alert-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.alert-soft{--alert-border-color:color-mix(in oklab, var(--alert-color,var(--color-base-content)) 10%, var(--color-base-100))}}.alert-soft{box-shadow:none;background-image:none}.btn-link{--btn-border:#0000;--btn-bg:#0000;--btn-noise:none;--btn-shadow:"";outline-color:currentColor;text-decoration-line:underline}.btn-link:not(.btn-disabled,.btn:disabled,.btn[disabled]){--btn-fg:var(--btn-color,var(--color-primary))}.btn-link:is(.btn-active,:hover,:active:focus,:focus-visible){--btn-border:#0000;--btn-bg:#0000}.btn-ghost:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn)){--btn-shadow:"";--btn-bg:#0000;--btn-border:#0000;--btn-noise:none}.btn-ghost:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn)):not(:disabled,[disabled],.btn-disabled){--btn-fg:var(--btn-color,currentColor);outline-color:currentColor}@media(hover:none){.btn-ghost:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-shadow:"";--btn-bg:#0000;--btn-fg:var(--btn-color,currentColor);--btn-border:#0000;--btn-noise:none;outline-color:currentColor}}.btn-outline:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn),:disabled,[disabled],.btn-disabled){--btn-shadow:"";--btn-bg:#0000;--btn-fg:var(--btn-color);--btn-border:var(--btn-color);--btn-noise:none}@media(hover:none){.btn-outline:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-shadow:"";--btn-bg:#0000;--btn-fg:var(--btn-color);--btn-border:var(--btn-color);--btn-noise:none}}.btn-soft:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn),:disabled,[disabled],.btn-disabled){--btn-shadow:"";--btn-fg:var(--btn-color,var(--color-base-content));--btn-bg:var(--btn-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.btn-soft:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn),:disabled,[disabled],.btn-disabled){--btn-bg:color-mix(in oklab, var(--btn-color,var(--color-base-content)) 8%, var(--color-base-100))}}.btn-soft:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn),:disabled,[disabled],.btn-disabled){--btn-border:var(--btn-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.btn-soft:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn),:disabled,[disabled],.btn-disabled){--btn-border:color-mix(in oklab, var(--btn-color,var(--color-base-content)) 10%, var(--color-base-100))}}.btn-soft:not(.btn-active,:hover,:active:focus,:focus-visible,input:checked:not(.filter .btn),:disabled,[disabled],.btn-disabled){--btn-noise:none}@media(hover:none){.btn-soft:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-shadow:"";--btn-fg:var(--btn-color,var(--color-base-content));--btn-bg:var(--btn-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.btn-soft:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-bg:color-mix(in oklab, var(--btn-color,var(--color-base-content)) 8%, var(--color-base-100))}}.btn-soft:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-border:var(--btn-color,var(--color-base-content))}@supports (color:color-mix(in lab,red,red)){.btn-soft:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-border:color-mix(in oklab, var(--btn-color,var(--color-base-content)) 10%, var(--color-base-100))}}.btn-soft:not(.btn-active,:active,:focus-visible,input:checked:not(.filter .btn)):hover{--btn-noise:none}}}.m-0{margin:calc(var(--spacing) * 0)}.join-vertical{flex-direction:column}.join-vertical>.join-item:first-child,.join-vertical :first-child:not(:last-child) .join-item{--join-ss:var(--radius-field);--join-se:var(--radius-field);--join-es:0;--join-ee:0}.join-vertical>.join-item:last-child,.join-vertical :last-child:not(:first-child) .join-item{--join-ss:0;--join-se:0;--join-es:var(--radius-field);--join-ee:var(--radius-field)}.join-vertical>.join-item:only-child,.join-vertical :only-child .join-item{--join-ss:var(--radius-field);--join-se:var(--radius-field);--join-es:var(--radius-field);--join-ee:var(--radius-field)}.join-vertical .join-item:where(:not(:first-child)){margin-block-start:calc(var(--border,1px) * -1);margin-inline-start:0}.join-item:where(:not(:first-child,:disabled,[disabled],.btn-disabled)){margin-block-start:0;margin-inline-start:calc(var(--border,1px) * -1)}.join-item:where(:is(:disabled,[disabled],.btn-disabled)){border-width:var(--border,1px) 0 var(--border,1px) var(--border,1px)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.kbd{box-shadow:none}.text-rotate{height:1lh}.alert{border-width:var(--border);border-color:var(--alert-border-color,var(--color-base-200))}:root .prose{--tw-prose-body:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-body:color-mix(in oklab, var(--color-base-content) 80%, #0000)}}:root .prose{--tw-prose-headings:var(--color-base-content);--tw-prose-lead:var(--color-base-content);--tw-prose-links:var(--color-base-content);--tw-prose-bold:var(--color-base-content);--tw-prose-counters:var(--color-base-content);--tw-prose-bullets:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-bullets:color-mix(in oklab, var(--color-base-content) 50%, #0000)}}:root .prose{--tw-prose-hr:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-hr:color-mix(in oklab, var(--color-base-content) 20%, #0000)}}:root .prose{--tw-prose-quotes:var(--color-base-content);--tw-prose-quote-borders:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-quote-borders:color-mix(in oklab, var(--color-base-content) 20%, #0000)}}:root .prose{--tw-prose-captions:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-captions:color-mix(in oklab, var(--color-base-content) 50%, #0000)}}:root .prose{--tw-prose-code:var(--color-base-content);--tw-prose-pre-code:var(--color-neutral-content);--tw-prose-pre-bg:var(--color-neutral);--tw-prose-th-borders:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-th-borders:color-mix(in oklab, var(--color-base-content) 50%, #0000)}}:root .prose{--tw-prose-td-borders:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-td-borders:color-mix(in oklab, var(--color-base-content) 20%, #0000)}}:root .prose{--tw-prose-kbd:var(--color-base-content)}@supports (color:color-mix(in lab,red,red)){:root .prose{--tw-prose-kbd:color-mix(in oklab, var(--color-base-content) 80%, #0000)}}:root .prose :where(code):not(pre>code){background-color:var(--color-base-200);border-radius:var(--radius-selector);border:var(--border) solid var(--color-base-300);font-weight:inherit;padding-block:.2em;padding-inline:.5em}:root .prose :where(code):not(pre>code):before,:root .prose :where(code):not(pre>code):after{display:none}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.table{display:table}.aspect-\[16\/9\]{aspect-ratio:16/9}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-32{height:calc(var(--spacing) * 32)}.h-48{height:calc(var(--spacing) * 48)}.h-64{height:calc(var(--spacing) * 64)}.h-80{height:calc(var(--spacing) * 80)}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-80{width:calc(var(--spacing) * 80)}.w-96{width:calc(var(--spacing) * 96)}.w-full{width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -6) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -6) * calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-box{border-radius:var(--radius-box)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.btn-dash{border-style:dashed}.border-base-300{border-color:var(--color-base-300)}.glass{-webkit-backdrop-filter:blur(var(--glass-blur,40px));backdrop-filter:blur(var(--glass-blur,40px));background-color:#0000;background-image:linear-gradient(135deg,oklch(100% 0 0 / var(--glass-opacity,30%)),#0000),linear-gradient(var(--glass-reflect-degree,100deg),oklch(100% 0 0 / var(--glass-reflect-opacity,5%)) 25%,oklch(0% 0 0/0) 25%);box-shadow:0 0 0 1px oklch(100% 0 0 / var(--glass-border-opacity,20%)) inset,0 0 0 2px #0000000d;text-shadow:0 1px oklch(0% 0 0 / var(--glass-text-shadow-opacity,5%));border:none}.bg-accent{background-color:var(--color-accent)}.bg-base-100{background-color:var(--color-base-100)}.bg-base-200{background-color:var(--color-base-200)}.bg-base-300{background-color:var(--color-base-300)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-neutral{background-color:var(--color-neutral)}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-primary{background-color:var(--color-primary)}.bg-red-600{background-color:var(--color-red-600)}.bg-secondary{background-color:var(--color-secondary)}.bg-slate-700{background-color:var(--color-slate-700)}.mask-circle{--tw-mask-radial-shape:circle}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-10{padding:calc(var(--spacing) * 10)}.p-16{padding:calc(var(--spacing) * 16)}.p-32{padding:calc(var(--spacing) * 32)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin{--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.text-accent-content{color:var(--color-accent-content)}.text-base-content{color:var(--color-base-content)}.text-neutral-content{color:var(--color-neutral-content)}.text-primary{color:var(--color-primary)}.text-primary-content{color:var(--color-primary-content)}.text-secondary-content{color:var(--color-secondary-content)}.text-slate-100{color:var(--color-slate-100)}.text-slate-200{color:var(--color-slate-200)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-warning{color:var(--color-warning)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.prose :where(a.btn:not(.btn-link)):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:none}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-primary{--tw-ring-color:var(--color-primary)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-base-100{--tw-ring-offset-color:var(--color-base-100)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}.hover\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\:bg-slate-600:hover{background-color:var(--color-slate-600)}}.\[\&_\.dock\]\:static .dock{position:static}.\[\&_\.dock\]\:w-full .dock{width:100%}.\[\&_\.drawer-side\]\:absolute .drawer-side{position:absolute}.\[\&_\.drawer-side\]\:h-full .drawer-side{height:100%}.\[\&_\.fab\]\:static .fab{position:static}.\[\&_\.hero\]\:min-h-\[24rem\] .hero{min-height:24rem}.\[\&_\.toast\]\:static .toast{position:static}}@keyframes rating{0%,40%{filter:brightness(1.05)contrast(1.05);scale:1.1}}@keyframes dropdown{0%{opacity:0}}@keyframes radio{0%{padding:5px}50%{padding:3px}}@keyframes toast{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes rotator{89.9999%,to{--first-item-position:0 0%}90%,99.9999%{--first-item-position:0 calc(var(--items) * 100%)}to{translate:0 -100%}}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}@keyframes menu{0%{opacity:0}}@keyframes progress{50%{background-position-x:-115%}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2new file

Binary file not shown.

dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woffnew file

Binary file not shown.

dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woffnew file

Binary file not shown.

dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2new file

Binary file not shown.

dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woffnew file

Binary file not shown.

dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2new file

Binary file not shown.

dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2new file

Binary file not shown.

dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woffnew file

Binary file not shown.

dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woffnew file

Binary file not shown.

dist/index.htmlnew file+14
@@ -0,0 +1,14 @@
1+<!doctype html>
2+<html lang="en">
3+ <head>
4+ <meta charset="utf-8" />
5+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6+ <title>yoga-stories</title>
7+ <script type="module" crossorigin src="./assets/index-BeC2O_nG.js"></script>
8+ <link rel="modulepreload" crossorigin href="./assets/index-DnAXTA8P.js">
9+ <link rel="stylesheet" crossorigin href="./assets/index-mEb4lrc-.css">
10+ </head>
11+ <body>
12+ <div id="app"></div>
13+ </body>
14+</html>
dist/stories.jsonnew file+1
@@ -0,0 +1 @@
1+[{"moduleName":"DaisyUI.Accordion.Stories","sourcePath":"test/DaisyUI/Accordion/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Accordion.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Accordion as Acc\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkAccordion :: {} -> JSX\nmkAccordion = component \"AccordionStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-0 w-full max-w-lg\" }\n [ Acc.collapse (Acc.arrow <> \" bg-base-100 border border-base-300\")\n [ input { type: \"radio\", name: \"my-accordion-1\", checked: true }\n , Acc.collapseTitle \"How do I create an account?\"\n , Acc.collapseContent\n \"Click the Sign Up button in the top right corner and follow the registration process.\"\n ]\n , Acc.collapse (Acc.arrow <> \" bg-base-100 border border-base-300\")\n [ input { type: \"radio\", name: \"my-accordion-1\" }\n , Acc.collapseTitle \"I forgot my password. What should I do?\"\n , Acc.collapseContent\n \"Click on Forgot Password on the login page and follow the instructions sent to your email.\"\n ]\n , Acc.collapse (Acc.arrow <> \" bg-base-100 border border-base-300\")\n [ input { type: \"radio\", name: \"my-accordion-1\" }\n , Acc.collapseTitle \"How can I contact support?\"\n , Acc.collapseContent\n \"You can reach our support team through the Contact Us page or by emailing support@example.com.\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkAccordion {}\n","componentSourceCode":"module DaisyUI.Accordion where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ncollapse :: String -> forall kids. IsJSX kids => kids -> JSX\ncollapse variant = div { className: \"collapse\" <> \" \" <> variant, tabIndex: 0 }\n\ncollapseTitle :: forall kids. IsJSX kids => kids -> JSX\ncollapseTitle = div { className: \"collapse-title font-semibold\" }\n\ncollapseContent :: forall kids. IsJSX kids => kids -> JSX\ncollapseContent = div { className: \"collapse-content\" }\n\n-- Variants\narrow :: String\narrow = \"collapse-arrow\"\n\nplus :: String\nplus = \"collapse-plus\"\n\nopen :: String\nopen = \"collapse-open\"\n\nclose :: String\nclose = \"collapse-close\"\n"},{"moduleName":"DaisyUI.Alert.Stories","sourcePath":"test/DaisyUI/Alert/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Alert.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Alert as Alert\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, span)\nimport YogaStories.Story (story) as S\n\nmkAlert :: {} -> JSX\nmkAlert = component \"AlertStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-lg\" }\n [ Alert.alert (Alert.info <> \" \" <> Alert.soft)\n [ span {} \"12 unread messages. Tap to see.\" ]\n , Alert.alert (Alert.success <> \" \" <> Alert.soft)\n [ span {} \"Your purchase has been confirmed!\" ]\n , Alert.alert (Alert.warning <> \" \" <> Alert.soft)\n [ span {} \"Warning: Invalid email address!\" ]\n , Alert.alert (Alert.error <> \" \" <> Alert.soft)\n [ span {} \"Error! Task failed successfully.\" ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkAlert {}\n","componentSourceCode":"module DaisyUI.Alert where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, span)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nalert :: String -> forall kids. IsJSX kids => kids -> JSX\nalert color = div { className: \"alert\" <> \" \" <> color, role: \"alert\" }\n\n-- Colors\ninfo :: String\ninfo = \"alert-info\"\n\nsuccess :: String\nsuccess = \"alert-success\"\n\nwarning :: String\nwarning = \"alert-warning\"\n\nerror :: String\nerror = \"alert-error\"\n\n-- Modifiers\nsoft :: String\nsoft = \"alert-soft\"\n\ndash :: String\ndash = \"alert-dash\"\n\noutline :: String\noutline = \"alert-outline\"\n\nvertical :: String\nvertical = \"alert-vertical\"\n"},{"moduleName":"DaisyUI.Avatar.Stories","sourcePath":"test/DaisyUI/Avatar/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Avatar.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Avatar as Av\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, img, span)\nimport YogaStories.Story (story) as S\n\nmkAvatar :: {} -> JSX\nmkAvatar = component \"AvatarStory\" \\_ -> React.do\n let imgUrl = \"https://img.daisyui.com/images/profile/demo/2@94.webp\"\n pure $ div { className: \"flex flex-col gap-8\" }\n [ div { className: \"flex gap-4 items-end\" }\n [ Av.avatar\n [ div { className: \"w-24 rounded\" }\n [ img { src: imgUrl, alt: \"Avatar\" } ]\n ]\n , Av.avatar\n [ div { className: \"w-16 rounded\" }\n [ img { src: imgUrl, alt: \"Avatar\" } ]\n ]\n , Av.avatar\n [ div { className: \"w-12 rounded\" }\n [ img { src: imgUrl, alt: \"Avatar\" } ]\n ]\n ]\n , div { className: \"flex gap-4 items-end\" }\n [ Av.avatar\n [ div { className: \"w-24 rounded-full\" }\n [ img { src: imgUrl, alt: \"Avatar\" } ]\n ]\n , Av.avatar\n [ div { className: \"ring-primary ring-offset-base-100 w-24 rounded-full ring ring-offset-2\" }\n [ img { src: imgUrl, alt: \"Avatar\" } ]\n ]\n ]\n , div { className: \"flex gap-4 items-center\" }\n [ Av.avatarOnline\n [ div { className: \"w-12 rounded-full\" }\n [ img { src: imgUrl, alt: \"Avatar\" } ]\n ]\n , Av.avatarOffline\n [ div { className: \"w-12 rounded-full\" }\n [ img { src: imgUrl, alt: \"Avatar\" } ]\n ]\n ]\n , div { className: \"flex gap-4 items-center\" }\n [ Av.avatarPlaceholder\n [ div { className: \"bg-neutral text-neutral-content w-24 rounded-full\" }\n [ span { className: \"text-3xl\" } \"D\" ]\n ]\n , Av.avatarPlaceholder\n [ div { className: \"bg-neutral text-neutral-content w-12 rounded-full\" }\n [ span {} \"D\" ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkAvatar {}\n","componentSourceCode":"module DaisyUI.Avatar where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\navatar :: forall kids. IsJSX kids => kids -> JSX\navatar = div { className: \"avatar\" }\n\navatarOnline :: forall kids. IsJSX kids => kids -> JSX\navatarOnline = div { className: \"avatar online\" }\n\navatarOffline :: forall kids. IsJSX kids => kids -> JSX\navatarOffline = div { className: \"avatar offline\" }\n\navatarPlaceholder :: forall kids. IsJSX kids => kids -> JSX\navatarPlaceholder = div { className: \"avatar placeholder\" }\n\navatarGroup :: forall kids. IsJSX kids => kids -> JSX\navatarGroup = div { className: \"avatar-group -space-x-6\" }\n"},{"moduleName":"DaisyUI.Badge.Stories","sourcePath":"test/DaisyUI/Badge/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Badge.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Badge as Badge\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, span)\nimport YogaStories.Story (story) as S\n\nmkBadge :: {} -> JSX\nmkBadge = component \"BadgeStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6\" }\n [ div { className: \"flex flex-wrap gap-2\" }\n [ Badge.badge Badge.neutral \"\" \"neutral\"\n , Badge.badge Badge.primary \"\" \"primary\"\n , Badge.badge Badge.secondary \"\" \"secondary\"\n , Badge.badge Badge.accent \"\" \"accent\"\n , Badge.badge Badge.ghost \"\" \"ghost\"\n ]\n , div { className: \"flex flex-wrap gap-2\" }\n [ Badge.badge (Badge.primary <> \" \" <> Badge.outline) \"\" \"outline\"\n , Badge.badge (Badge.primary <> \" \" <> Badge.soft) \"\" \"soft\"\n , Badge.badge (Badge.primary <> \" \" <> Badge.dash) \"\" \"dash\"\n ]\n , div { className: \"flex flex-wrap gap-2\" }\n [ Badge.badge Badge.primary Badge.lg \"large\"\n , Badge.badge Badge.primary Badge.md \"medium\"\n , Badge.badge Badge.primary Badge.sm \"small\"\n , Badge.badge Badge.primary Badge.xs \"tiny\"\n ]\n , div { className: \"flex gap-2\" }\n [ Btn.btn \"\" \"\" [ span {} \"Inbox \", Badge.badge Badge.secondary Badge.sm \"+99\" ] ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkBadge {}\n","componentSourceCode":"module DaisyUI.Badge where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (span)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nbadge :: String -> String -> forall kids. IsJSX kids => kids -> JSX\nbadge color size = span { className: \"badge\" <> \" \" <> color <> \" \" <> size }\n\n-- Colors\nneutral :: String\nneutral = \"badge-neutral\"\n\nprimary :: String\nprimary = \"badge-primary\"\n\nsecondary :: String\nsecondary = \"badge-secondary\"\n\naccent :: String\naccent = \"badge-accent\"\n\ninfo :: String\ninfo = \"badge-info\"\n\nsuccess :: String\nsuccess = \"badge-success\"\n\nwarning :: String\nwarning = \"badge-warning\"\n\nerror :: String\nerror = \"badge-error\"\n\nghost :: String\nghost = \"badge-ghost\"\n\n-- Sizes\nxs :: String\nxs = \"badge-xs\"\n\nsm :: String\nsm = \"badge-sm\"\n\nmd :: String\nmd = \"badge-md\"\n\nlg :: String\nlg = \"badge-lg\"\n\n-- Modifiers\noutline :: String\noutline = \"badge-outline\"\n\nsoft :: String\nsoft = \"badge-soft\"\n\ndash :: String\ndash = \"badge-dash\"\n"},{"moduleName":"DaisyUI.Breadcrumbs.Stories","sourcePath":"test/DaisyUI/Breadcrumbs/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Breadcrumbs.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Breadcrumbs as BC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (a, div)\nimport YogaStories.Story (story) as S\n\nmkBreadcrumbs :: {} -> JSX\nmkBreadcrumbs = component \"BreadcrumbsStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ BC.breadcrumbs\n [ BC.breadcrumbItem [ a {} \"Home\" ]\n , BC.breadcrumbItem [ a {} \"Documents\" ]\n , BC.breadcrumbItem \"Add Document\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkBreadcrumbs {}\n","componentSourceCode":"module DaisyUI.Breadcrumbs where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, ul, li)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nbreadcrumbs :: forall kids. IsJSX kids => kids -> JSX\nbreadcrumbs kids = div { className: \"breadcrumbs text-sm\" }\n [ ul {} kids ]\n\nbreadcrumbItem :: forall kids. IsJSX kids => kids -> JSX\nbreadcrumbItem = li {}\n"},{"moduleName":"DaisyUI.Button.Stories","sourcePath":"test/DaisyUI/Button/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Button.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkButton :: {} -> JSX\nmkButton = component \"ButtonStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6\" }\n [ div { className: \"flex flex-wrap gap-2\" }\n [ Btn.btn \"\" \"\" \"Default\"\n , Btn.btn Btn.neutral \"\" \"Neutral\"\n , Btn.btn Btn.primary \"\" \"Primary\"\n , Btn.btn Btn.secondary \"\" \"Secondary\"\n , Btn.btn Btn.accent \"\" \"Accent\"\n , Btn.btn Btn.ghost \"\" \"Ghost\"\n , Btn.btn Btn.link \"\" \"Link\"\n ]\n , div { className: \"flex flex-wrap gap-2\" }\n [ Btn.btn Btn.outline \"\" \"Outline\"\n , Btn.btn Btn.soft \"\" \"Soft\"\n , Btn.btn Btn.dash \"\" \"Dash\"\n ]\n , div { className: \"flex flex-wrap gap-2 items-center\" }\n [ Btn.btn \"\" Btn.lg \"Large\"\n , Btn.btn \"\" \"\" \"Normal\"\n , Btn.btn \"\" Btn.sm \"Small\"\n , Btn.btn \"\" Btn.xs \"Tiny\"\n ]\n , div { className: \"flex flex-wrap gap-2\" }\n [ Btn.btn (Btn.primary <> \" \" <> Btn.wide) \"\" \"Wide\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkButton {}\n","componentSourceCode":"module DaisyUI.Button where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (button)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nbtn :: String -> String -> forall kids. IsJSX kids => kids -> JSX\nbtn color size = button { className: \"btn\" <> \" \" <> color <> \" \" <> size }\n\n-- Colors\nneutral :: String\nneutral = \"btn-neutral\"\n\nprimary :: String\nprimary = \"btn-primary\"\n\nsecondary :: String\nsecondary = \"btn-secondary\"\n\naccent :: String\naccent = \"btn-accent\"\n\ninfo :: String\ninfo = \"btn-info\"\n\nsuccess :: String\nsuccess = \"btn-success\"\n\nwarning :: String\nwarning = \"btn-warning\"\n\nerror :: String\nerror = \"btn-error\"\n\nghost :: String\nghost = \"btn-ghost\"\n\nlink :: String\nlink = \"btn-link\"\n\n-- Sizes\nxs :: String\nxs = \"btn-xs\"\n\nsm :: String\nsm = \"btn-sm\"\n\nmd :: String\nmd = \"\"\n\nlg :: String\nlg = \"btn-lg\"\n\n-- Modifiers\noutline :: String\noutline = \"btn-outline\"\n\nwide :: String\nwide = \"btn-wide\"\n\nblock :: String\nblock = \"btn-block\"\n\ncircle :: String\ncircle = \"btn-circle\"\n\nsquare :: String\nsquare = \"btn-square\"\n\nnoAnimation :: String\nnoAnimation = \"no-animation\"\n\nglass :: String\nglass = \"glass\"\n\nactive :: String\nactive = \"btn-active\"\n\ndisabled :: String\ndisabled = \"btn-disabled\"\n\nsoft :: String\nsoft = \"btn-soft\"\n\ndash :: String\ndash = \"btn-dash\"\n"},{"moduleName":"DaisyUI.Card.Stories","sourcePath":"test/DaisyUI/Card/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Card.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Card (card, cardBody, cardTitle, cardActions)\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, figure, img, p)\nimport YogaStories.Story (story) as S\n\nmkCard :: {} -> JSX\nmkCard = component \"CardStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ div { className: \"w-96\" }\n [ card\n [ figure {}\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp\", alt: \"Shoes\" } ]\n , cardBody\n [ cardTitle \"Shoes!\"\n , p {} \"If a dog chews shoes whose shoes does he choose?\"\n , cardActions\n [ Btn.btn Btn.primary \"\" \"Buy Now\" ]\n ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkCard {}\n","componentSourceCode":"module DaisyUI.Card where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, h2)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ncard :: forall kids. IsJSX kids => kids -> JSX\ncard = div { className: \"card bg-base-100 shadow-sm\" }\n\ncardCompact :: forall kids. IsJSX kids => kids -> JSX\ncardCompact = div { className: \"card card-compact bg-base-100 shadow-sm\" }\n\ncardSide :: forall kids. IsJSX kids => kids -> JSX\ncardSide = div { className: \"card card-side bg-base-100 shadow-sm\" }\n\ncardBordered :: forall kids. IsJSX kids => kids -> JSX\ncardBordered = div { className: \"card card-border bg-base-100 shadow-sm\" }\n\ncardDash :: forall kids. IsJSX kids => kids -> JSX\ncardDash = div { className: \"card card-dash bg-base-100 shadow-sm\" }\n\ncardBody :: forall kids. IsJSX kids => kids -> JSX\ncardBody = div { className: \"card-body\" }\n\ncardTitle :: forall kids. IsJSX kids => kids -> JSX\ncardTitle = h2 { className: \"card-title\" }\n\ncardActions :: forall kids. IsJSX kids => kids -> JSX\ncardActions = div { className: \"card-actions justify-end\" }\n"},{"moduleName":"DaisyUI.Carousel.Stories","sourcePath":"test/DaisyUI/Carousel/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Carousel.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Carousel as C\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, img)\nimport YogaStories.Story (story) as S\n\nmkCarousel :: {} -> JSX\nmkCarousel = component \"CarouselStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ C.carousel C.center\n [ C.carouselItem\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp\", alt: \"Burger\" } ]\n , C.carouselItem\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp\", alt: \"Burger\" } ]\n , C.carouselItem\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp\", alt: \"Burger\" } ]\n , C.carouselItem\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp\", alt: \"Burger\" } ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkCarousel {}\n","componentSourceCode":"module DaisyUI.Carousel where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ncarousel :: String -> forall kids. IsJSX kids => kids -> JSX\ncarousel modifier = div { className: \"carousel\" <> \" \" <> modifier }\n\ncarouselItem :: forall kids. IsJSX kids => kids -> JSX\ncarouselItem = div { className: \"carousel-item\" }\n\n-- Modifiers\ncenter :: String\ncenter = \"carousel-center\"\n\nend :: String\nend = \"carousel-end\"\n\nvertical :: String\nvertical = \"carousel-vertical\"\n"},{"moduleName":"DaisyUI.Chat.Stories","sourcePath":"test/DaisyUI/Chat/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Chat.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Chat as Chat\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, img, span, time)\nimport YogaStories.Story (story) as S\n\nmkChat :: {} -> JSX\nmkChat = component \"ChatStory\" \\_ -> React.do\n let avatarUrl = \"https://img.daisyui.com/images/profile/demo/2@94.webp\"\n pure $ div { className: \"flex flex-col gap-0 w-full max-w-lg\" }\n [ Chat.chatStart\n [ Chat.chatImage\n [ div { className: \"w-10 rounded-full\" }\n [ img { src: avatarUrl, alt: \"Avatar\" } ]\n ]\n , Chat.chatHeader\n [ span {} \"Obi-Wan Kenobi \"\n , time { className: \"text-xs opacity-50\" } \"12:45\"\n ]\n , Chat.chatBubble \"\" \"You were the Chosen One!\"\n , Chat.chatFooter \"Delivered\"\n ]\n , Chat.chatStart\n [ Chat.chatImage\n [ div { className: \"w-10 rounded-full\" }\n [ img { src: avatarUrl, alt: \"Avatar\" } ]\n ]\n , Chat.chatHeader \"Obi-Wan Kenobi\"\n , Chat.chatBubble \"\" \"I loved you.\"\n , Chat.chatFooter \"Seen at 12:46\"\n ]\n , Chat.chatEnd\n [ Chat.chatImage\n [ div { className: \"w-10 rounded-full\" }\n [ img { src: avatarUrl, alt: \"Avatar\" } ]\n ]\n , Chat.chatHeader \"Anakin\"\n , Chat.chatBubble \"\" \"I HATE YOU!\"\n , Chat.chatFooter \"Seen at 12:46\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkChat {}\n","componentSourceCode":"module DaisyUI.Chat where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nchatStart :: forall kids. IsJSX kids => kids -> JSX\nchatStart = div { className: \"chat chat-start\" }\n\nchatEnd :: forall kids. IsJSX kids => kids -> JSX\nchatEnd = div { className: \"chat chat-end\" }\n\nchatImage :: forall kids. IsJSX kids => kids -> JSX\nchatImage = div { className: \"chat-image avatar\" }\n\nchatHeader :: forall kids. IsJSX kids => kids -> JSX\nchatHeader = div { className: \"chat-header\" }\n\nchatBubble :: String -> forall kids. IsJSX kids => kids -> JSX\nchatBubble color = div { className: \"chat-bubble\" <> \" \" <> color }\n\nchatFooter :: forall kids. IsJSX kids => kids -> JSX\nchatFooter = div { className: \"chat-footer opacity-50\" }\n\n-- Colors\nprimary :: String\nprimary = \"chat-bubble-primary\"\n\nsecondary :: String\nsecondary = \"chat-bubble-secondary\"\n\naccent :: String\naccent = \"chat-bubble-accent\"\n\ninfo :: String\ninfo = \"chat-bubble-info\"\n\nsuccess :: String\nsuccess = \"chat-bubble-success\"\n\nwarning :: String\nwarning = \"chat-bubble-warning\"\n\nerror :: String\nerror = \"chat-bubble-error\"\n"},{"moduleName":"DaisyUI.Checkbox.Stories","sourcePath":"test/DaisyUI/Checkbox/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Checkbox.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Checkbox as CB\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input, label)\nimport YogaStories.Story (story) as S\n\nmkCheckbox :: {} -> JSX\nmkCheckbox = component \"CheckboxStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"Login options\"\n , label { className: \"label\" }\n [ input { type: \"checkbox\", className: CB.checkboxCls \"\" \"\", checked: true }\n , span' \"Remember me\"\n ]\n ]\n , div { className: \"flex flex-wrap gap-2\" }\n [ input { type: \"checkbox\", className: CB.checkboxCls CB.primary \"\", checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.secondary \"\", checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.accent \"\", checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.success \"\", checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.warning \"\", checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.error \"\", checked: true }\n ]\n , div { className: \"flex flex-wrap gap-2 items-center\" }\n [ input { type: \"checkbox\", className: CB.checkboxCls CB.primary CB.xs, checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.primary CB.sm, checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.primary CB.md, checked: true }\n , input { type: \"checkbox\", className: CB.checkboxCls CB.primary CB.lg, checked: true }\n ]\n ]\n where\n span' = div { className: \"\" }\n\ndefault :: JSX\ndefault = S.story \"default\" mkCheckbox {}\n","componentSourceCode":"module DaisyUI.Checkbox where\n\nimport Prelude\n\ncheckboxCls :: String -> String -> String\ncheckboxCls color size = \"checkbox\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"checkbox-primary\"\n\nsecondary :: String\nsecondary = \"checkbox-secondary\"\n\naccent :: String\naccent = \"checkbox-accent\"\n\ninfo :: String\ninfo = \"checkbox-info\"\n\nsuccess :: String\nsuccess = \"checkbox-success\"\n\nwarning :: String\nwarning = \"checkbox-warning\"\n\nerror :: String\nerror = \"checkbox-error\"\n\n-- Sizes\nxs :: String\nxs = \"checkbox-xs\"\n\nsm :: String\nsm = \"checkbox-sm\"\n\nmd :: String\nmd = \"checkbox-md\"\n\nlg :: String\nlg = \"checkbox-lg\"\n"},{"moduleName":"DaisyUI.Countdown.Stories","sourcePath":"test/DaisyUI/Countdown/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Countdown.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport Data.Int (floor)\nimport React.Basic (JSX)\nimport DaisyUI.Countdown as CD\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Controls (slider)\nimport YogaStories.Story (story) as S\n\nmkCountdown :: { value :: Number } -> JSX\nmkCountdown = component \"CountdownStory\" \\props -> React.do\n pure $ div { className: \"flex flex-col gap-4 text-4xl\" }\n [ CD.countdown (floor props.value) ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkCountdown\n { value: slider { value: 42.0, min: 0.0, max: 99.0, step: 1.0 } }\n","componentSourceCode":"module DaisyUI.Countdown where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (span)\nimport Yoga.React.DOM.Internal (css)\n\ncountdown :: Int -> JSX\ncountdown value = span { className: \"countdown\" }\n [ span { style: css { \"--value\": value } } ([] :: Array JSX) ]\n"},{"moduleName":"DaisyUI.Diff.Stories","sourcePath":"test/DaisyUI/Diff/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Diff.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Diff as D\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, img)\nimport YogaStories.Story (story) as S\n\nmkDiff :: {} -> JSX\nmkDiff = component \"DiffStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ D.diff\n [ D.diffItem1\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a.webp\", alt: \"Daisy\" } ]\n , D.diffItem2\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a-blur.webp\", alt: \"Daisy\" } ]\n , D.diffResizer\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkDiff {}\n","componentSourceCode":"module DaisyUI.Diff where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ndiff :: forall kids. IsJSX kids => kids -> JSX\ndiff = div { className: \"diff aspect-[16/9]\" }\n\ndiffItem1 :: forall kids. IsJSX kids => kids -> JSX\ndiffItem1 = div { className: \"diff-item-1\" }\n\ndiffItem2 :: forall kids. IsJSX kids => kids -> JSX\ndiffItem2 = div { className: \"diff-item-2\" }\n\ndiffResizer :: JSX\ndiffResizer = div { className: \"diff-resizer\" } ([] :: Array JSX)\n"},{"moduleName":"DaisyUI.Divider.Stories","sourcePath":"test/DaisyUI/Divider/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Divider.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Divider as D\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkDivider :: {} -> JSX\nmkDivider = component \"DividerStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col w-full\" }\n [ div { className: \"card bg-base-300 rounded-box grid h-20 place-items-center\" } \"Content\"\n , D.divider \"OR\"\n , div { className: \"card bg-base-300 rounded-box grid h-20 place-items-center\" } \"Content\"\n , D.dividerPrimary \"Primary\"\n , D.dividerSecondary \"Secondary\"\n , D.dividerAccent \"Accent\"\n , D.dividerNeutral \"Neutral\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkDivider {}\n","componentSourceCode":"module DaisyUI.Divider where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ndivider :: forall kids. IsJSX kids => kids -> JSX\ndivider = div { className: \"divider\" }\n\ndividerHorizontal :: forall kids. IsJSX kids => kids -> JSX\ndividerHorizontal = div { className: \"divider divider-horizontal\" }\n\ndividerPrimary :: forall kids. IsJSX kids => kids -> JSX\ndividerPrimary = div { className: \"divider divider-primary\" }\n\ndividerSecondary :: forall kids. IsJSX kids => kids -> JSX\ndividerSecondary = div { className: \"divider divider-secondary\" }\n\ndividerAccent :: forall kids. IsJSX kids => kids -> JSX\ndividerAccent = div { className: \"divider divider-accent\" }\n\ndividerNeutral :: forall kids. IsJSX kids => kids -> JSX\ndividerNeutral = div { className: \"divider divider-neutral\" }\n\ndividerSuccess :: forall kids. IsJSX kids => kids -> JSX\ndividerSuccess = div { className: \"divider divider-success\" }\n\ndividerWarning :: forall kids. IsJSX kids => kids -> JSX\ndividerWarning = div { className: \"divider divider-warning\" }\n\ndividerError :: forall kids. IsJSX kids => kids -> JSX\ndividerError = div { className: \"divider divider-error\" }\n\ndividerInfo :: forall kids. IsJSX kids => kids -> JSX\ndividerInfo = div { className: \"divider divider-info\" }\n\ndividerStart :: forall kids. IsJSX kids => kids -> JSX\ndividerStart = div { className: \"divider divider-start\" }\n\ndividerEnd :: forall kids. IsJSX kids => kids -> JSX\ndividerEnd = div { className: \"divider divider-end\" }\n"},{"moduleName":"DaisyUI.Dock.Stories","sourcePath":"test/DaisyUI/Dock/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Dock.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Dock as D\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, span)\nimport YogaStories.Story (story) as S\n\nmkDock :: {} -> JSX\nmkDock = component \"DockStory\" \\_ -> React.do\n pure $ div { className: \"relative h-48 w-full [&_.dock]:static [&_.dock]:w-full\" }\n [ D.dock \"\"\n [ D.dockItem [ span {} \"🏠\", D.dockLabel \"Home\" ]\n , D.dockItemActive [ span {} \"📥\", D.dockLabel \"Inbox\" ]\n , D.dockItem [ span {} \"⚙️\", D.dockLabel \"Settings\" ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkDock {}\n","componentSourceCode":"module DaisyUI.Dock where\n\nimport Prelude hiding (div)\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, button, span)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ndock :: String -> forall kids. IsJSX kids => kids -> JSX\ndock size = div { className: \"dock\" <> \" \" <> size }\n\ndockItem :: forall kids. IsJSX kids => kids -> JSX\ndockItem = button {}\n\ndockItemActive :: forall kids. IsJSX kids => kids -> JSX\ndockItemActive = button { className: \"dock-active\" }\n\ndockLabel :: forall kids. IsJSX kids => kids -> JSX\ndockLabel = span { className: \"dock-label\" }\n\n-- Sizes\nxs :: String\nxs = \"dock-xs\"\n\nsm :: String\nsm = \"dock-sm\"\n\nmd :: String\nmd = \"dock-md\"\n\nlg :: String\nlg = \"dock-lg\"\n\nxl :: String\nxl = \"dock-xl\"\n"},{"moduleName":"DaisyUI.Drawer.Stories","sourcePath":"test/DaisyUI/Drawer/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Drawer.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Drawer as D\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input, label, ul, li, a)\nimport YogaStories.Story (story) as S\n\nmkDrawer :: {} -> JSX\nmkDrawer = component \"DrawerStory\" \\_ -> React.do\n pure $ div { className: \"relative h-64 overflow-hidden [&_.drawer-side]:absolute [&_.drawer-side]:h-full\" }\n [ D.drawer\n [ input { type: \"checkbox\", id: \"my-drawer\", className: D.drawerToggle }\n , D.drawerContent\n [ label { htmlFor: \"my-drawer\", className: \"btn btn-primary drawer-button\" } \"Open drawer\" ]\n , D.drawerSide\n [ label { htmlFor: \"my-drawer\", \"aria-label\": \"close sidebar\", className: D.drawerOverlay } ([] :: Array JSX)\n , ul { className: \"menu bg-base-200 text-base-content min-h-full w-80 p-4\" }\n [ li {} [ a {} \"Sidebar Item 1\" ]\n , li {} [ a {} \"Sidebar Item 2\" ]\n ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkDrawer {}\n","componentSourceCode":"module DaisyUI.Drawer where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ndrawer :: forall kids. IsJSX kids => kids -> JSX\ndrawer = div { className: \"drawer\" }\n\ndrawerToggle :: String\ndrawerToggle = \"drawer-toggle\"\n\ndrawerContent :: forall kids. IsJSX kids => kids -> JSX\ndrawerContent = div { className: \"drawer-content\" }\n\ndrawerSide :: forall kids. IsJSX kids => kids -> JSX\ndrawerSide = div { className: \"drawer-side\" }\n\ndrawerOverlay :: String\ndrawerOverlay = \"drawer-overlay\"\n\ndrawerEnd :: forall kids. IsJSX kids => kids -> JSX\ndrawerEnd = div { className: \"drawer drawer-end\" }\n"},{"moduleName":"DaisyUI.Dropdown.Stories","sourcePath":"test/DaisyUI/Dropdown/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Dropdown.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Dropdown as DD\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, li, a)\nimport YogaStories.Story (story) as S\n\nmkDropdown :: {} -> JSX\nmkDropdown = component \"DropdownStory\" \\_ -> React.do\n pure $ div { className: \"flex items-center justify-center p-32\" }\n [ DD.dropdown \"\"\n [ Btn.btn \"\" \"\" \"Click\"\n , DD.dropdownContent\n [ li {} [ a {} \"Item 1\" ]\n , li {} [ a {} \"Item 2\" ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkDropdown {}\n","componentSourceCode":"module DaisyUI.Dropdown where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, ul)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ndropdown :: String -> forall kids. IsJSX kids => kids -> JSX\ndropdown position = div { className: \"dropdown\" <> \" \" <> position }\n\ndropdownContent :: forall kids. IsJSX kids => kids -> JSX\ndropdownContent = ul { className: \"dropdown-content menu bg-base-100 rounded-box z-10 w-52 p-2 shadow-sm\", tabIndex: 0 }\n\n-- Positions\ntop :: String\ntop = \"dropdown-top\"\n\nbottom :: String\nbottom = \"dropdown-bottom\"\n\nleft :: String\nleft = \"dropdown-left\"\n\nright :: String\nright = \"dropdown-right\"\n\nend :: String\nend = \"dropdown-end\"\n\n-- Modifiers\nhover :: String\nhover = \"dropdown-hover\"\n\nopen :: String\nopen = \"dropdown-open\"\n"},{"moduleName":"DaisyUI.Fab.Stories","sourcePath":"test/DaisyUI/Fab/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Fab.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Fab as F\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (button, div)\nimport YogaStories.Story (story) as S\n\nmkFab :: {} -> JSX\nmkFab = component \"FabStory\" \\_ -> React.do\n pure $ div { className: \"relative h-64 w-full [&_.fab]:static\" }\n [ F.fab\n [ div { tabIndex: 0, role: \"button\", className: \"btn btn-lg btn-circle btn-primary\" } \"F\"\n , button { className: \"btn btn-lg btn-circle\" } \"A\"\n , button { className: \"btn btn-lg btn-circle\" } \"B\"\n , button { className: \"btn btn-lg btn-circle\" } \"C\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkFab {}\n","componentSourceCode":"module DaisyUI.Fab where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, button)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nfab :: forall kids. IsJSX kids => kids -> JSX\nfab = div { className: \"fab\" }\n\nfabFlower :: forall kids. IsJSX kids => kids -> JSX\nfabFlower = div { className: \"fab fab-flower\" }\n\nfabMainAction :: forall kids. IsJSX kids => kids -> JSX\nfabMainAction = div { className: \"fab-main-action\", tabIndex: 0, role: \"button\" }\n\nfabClose :: forall kids. IsJSX kids => kids -> JSX\nfabClose = button { className: \"fab-close btn btn-circle\" }\n"},{"moduleName":"DaisyUI.FileInput.Stories","sourcePath":"test/DaisyUI/FileInput/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.FileInput.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.FileInput as FI\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input, label)\nimport YogaStories.Story (story) as S\n\nmkFileInput :: {} -> JSX\nmkFileInput = component \"FileInputStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-xs\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"Pick a file\"\n , input { type: \"file\", className: FI.fileInputCls \"\" \"\" }\n , label { className: \"label\" } \"Max size 2MB\"\n ]\n , input { type: \"file\", className: FI.fileInputCls FI.primary \"\" }\n , input { type: \"file\", className: FI.fileInputCls FI.ghost FI.sm }\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkFileInput {}\n","componentSourceCode":"module DaisyUI.FileInput where\n\nimport Prelude\n\nfileInputCls :: String -> String -> String\nfileInputCls color size = \"file-input\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"file-input-primary\"\n\nsecondary :: String\nsecondary = \"file-input-secondary\"\n\naccent :: String\naccent = \"file-input-accent\"\n\ninfo :: String\ninfo = \"file-input-info\"\n\nsuccess :: String\nsuccess = \"file-input-success\"\n\nwarning :: String\nwarning = \"file-input-warning\"\n\nerror :: String\nerror = \"file-input-error\"\n\n-- Sizes\nxs :: String\nxs = \"file-input-xs\"\n\nsm :: String\nsm = \"file-input-sm\"\n\nmd :: String\nmd = \"file-input-md\"\n\nlg :: String\nlg = \"file-input-lg\"\n\n-- Modifiers\nbordered :: String\nbordered = \"file-input-bordered\"\n\nghost :: String\nghost = \"file-input-ghost\"\n"},{"moduleName":"DaisyUI.Filter.Stories","sourcePath":"test/DaisyUI/Filter/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Filter.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Filter as F\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkFilter :: {} -> JSX\nmkFilter = component \"FilterStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ F.filter\n [ input { type: \"radio\", name: \"metaframeworks\", className: \"btn \" <> F.filterReset, \"aria-label\": \"All\" }\n , input { type: \"radio\", name: \"metaframeworks\", className: \"btn\", \"aria-label\": \"Sveltekit\" }\n , input { type: \"radio\", name: \"metaframeworks\", className: \"btn\", \"aria-label\": \"Nuxt\" }\n , input { type: \"radio\", name: \"metaframeworks\", className: \"btn\", \"aria-label\": \"Next.js\" }\n , input { type: \"radio\", name: \"metaframeworks\", className: \"btn\", \"aria-label\": \"Remix\" }\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkFilter {}\n","componentSourceCode":"module DaisyUI.Filter where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nfilter :: forall kids. IsJSX kids => kids -> JSX\nfilter = div { className: \"filter\" }\n\nfilterReset :: String\nfilterReset = \"filter-reset\"\n"},{"moduleName":"DaisyUI.Footer.Stories","sourcePath":"test/DaisyUI/Footer/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Footer.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Footer as F\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (a, div)\nimport YogaStories.Story (story) as S\n\nmkFooter :: {} -> JSX\nmkFooter = component \"FooterStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ F.footer\n [ F.footerNav\n [ F.footerTitle \"Services\"\n , a { className: \"link link-hover\" } \"Branding\"\n , a { className: \"link link-hover\" } \"Design\"\n , a { className: \"link link-hover\" } \"Marketing\"\n , a { className: \"link link-hover\" } \"Advertisement\"\n ]\n , F.footerNav\n [ F.footerTitle \"Company\"\n , a { className: \"link link-hover\" } \"About us\"\n , a { className: \"link link-hover\" } \"Contact\"\n , a { className: \"link link-hover\" } \"Jobs\"\n , a { className: \"link link-hover\" } \"Press kit\"\n ]\n , F.footerNav\n [ F.footerTitle \"Legal\"\n , a { className: \"link link-hover\" } \"Terms of use\"\n , a { className: \"link link-hover\" } \"Privacy policy\"\n , a { className: \"link link-hover\" } \"Cookie policy\"\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkFooter {}\n","componentSourceCode":"module DaisyUI.Footer where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, nav, span)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nfooter :: forall kids. IsJSX kids => kids -> JSX\nfooter = div { className: \"footer bg-base-200 text-base-content p-10\" }\n\nfooterCenter :: forall kids. IsJSX kids => kids -> JSX\nfooterCenter = div { className: \"footer footer-center bg-base-200 text-base-content p-10\" }\n\nfooterTitle :: forall kids. IsJSX kids => kids -> JSX\nfooterTitle = span { className: \"footer-title\" }\n\nfooterNav :: forall kids. IsJSX kids => kids -> JSX\nfooterNav = nav {}\n"},{"moduleName":"DaisyUI.FormControl.Stories","sourcePath":"test/DaisyUI/FormControl/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.FormControl.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.FormControl as FC\nimport DaisyUI.Input as I\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input, label)\nimport YogaStories.Story (story) as S\n\nmkFormControl :: {} -> JSX\nmkFormControl = component \"FormControlStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-xs\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"User details\"\n , label { className: \"label\" } \"Name\"\n , input { type: \"text\", className: I.inputCls \"\" \"\", placeholder: \"Name\" }\n , label { className: \"label\" } \"Email\"\n , input { type: \"email\", className: I.inputCls \"\" \"\", placeholder: \"Email\" }\n , label { className: \"label\" } \"Optional\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkFormControl {}\n","componentSourceCode":"module DaisyUI.FormControl where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, label, span)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nformControl :: forall kids. IsJSX kids => kids -> JSX\nformControl = div { className: \"form-control w-full\" }\n\nfieldset :: forall kids. IsJSX kids => kids -> JSX\nfieldset = div { className: \"fieldset\" }\n\nfieldsetLegend :: forall kids. IsJSX kids => kids -> JSX\nfieldsetLegend = div { className: \"fieldset-legend\" }\n\nlabelText :: forall kids. IsJSX kids => kids -> JSX\nlabelText kids = label { className: \"label\" }\n [ span { className: \"label-text\" } kids ]\n\nlabelTextAlt :: forall kids. IsJSX kids => kids -> JSX\nlabelTextAlt kids = label { className: \"label\" }\n [ span { className: \"label-text-alt\" } kids ]\n"},{"moduleName":"DaisyUI.Hero.Stories","sourcePath":"test/DaisyUI/Hero/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Hero.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Hero as H\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, h1, p)\nimport YogaStories.Story (story) as S\n\nmkHero :: {} -> JSX\nmkHero = component \"HeroStory\" \\_ -> React.do\n pure $ div { className: \"[&_.hero]:min-h-[24rem]\" }\n [ H.hero\n [ H.heroContent\n [ div { className: \"max-w-md\" }\n [ h1 { className: \"text-5xl font-bold\" } \"Hello there\"\n , p { className: \"py-6\" } \"Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.\"\n , Btn.btn Btn.primary \"\" \"Get Started\"\n ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkHero {}\n","componentSourceCode":"module DaisyUI.Hero where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nhero :: forall kids. IsJSX kids => kids -> JSX\nhero = div { className: \"hero min-h-screen\" }\n\nheroContent :: forall kids. IsJSX kids => kids -> JSX\nheroContent = div { className: \"hero-content text-center\" }\n\nheroOverlay :: forall kids. IsJSX kids => kids -> JSX\nheroOverlay = div { className: \"hero-overlay bg-opacity-60\" }\n"},{"moduleName":"DaisyUI.Indicator.Stories","sourcePath":"test/DaisyUI/Indicator/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Indicator.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Indicator as Ind\nimport DaisyUI.Badge as B\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkIndicator :: {} -> JSX\nmkIndicator = component \"IndicatorStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-8 items-center\" }\n [ Ind.indicator\n [ Ind.indicatorItem \"\" [ B.badge B.secondary \"\" \"99+\" ]\n , Btn.btn \"\" \"\" \"inbox\"\n ]\n , Ind.indicator\n [ Ind.indicatorItem \"\" [ B.badge B.primary \"\" \"new\" ]\n , input { type: \"text\", placeholder: \"Search...\", className: \"input input-bordered\" }\n ]\n , Ind.indicator\n [ Ind.indicatorItem Ind.indicatorBottom\n [ B.badge B.secondary \"\" \"new\" ]\n , div { className: \"bg-base-300 grid h-32 w-32 place-items-center rounded-box\" } \"content\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkIndicator {}\n","componentSourceCode":"module DaisyUI.Indicator where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, span)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nindicator :: forall kids. IsJSX kids => kids -> JSX\nindicator = div { className: \"indicator\" }\n\nindicatorItem :: String -> forall kids. IsJSX kids => kids -> JSX\nindicatorItem position = span { className: \"indicator-item\" <> \" \" <> position }\n\n-- Positions\nindicatorTop :: String\nindicatorTop = \"indicator-top\"\n\nindicatorBottom :: String\nindicatorBottom = \"indicator-bottom\"\n\nindicatorStart :: String\nindicatorStart = \"indicator-start\"\n\nindicatorEnd :: String\nindicatorEnd = \"indicator-end\"\n\nindicatorCenter :: String\nindicatorCenter = \"indicator-center\"\n"},{"moduleName":"DaisyUI.Input.Stories","sourcePath":"test/DaisyUI/Input/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Input.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Input as I\nimport DaisyUI.Label as L\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input, label)\nimport YogaStories.Story (story) as S\n\nmkInput :: {} -> JSX\nmkInput = component \"InputStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-xs\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"What is your name?\"\n , input { type: \"text\", className: I.inputCls \"\" \"\", placeholder: \"Type here\" }\n , label { className: \"label\" } \"Optional\"\n ]\n , L.floatingLabel\n [ input { type: \"email\", className: I.inputCls I.bordered \"\", placeholder: \"alex@example.com\" }\n , L.labelSpan \"Email\"\n ]\n , div { className: \"flex flex-wrap gap-2\" }\n [ input { type: \"text\", className: I.inputCls I.primary \"\", placeholder: \"Primary\" }\n , input { type: \"text\", className: I.inputCls I.secondary \"\", placeholder: \"Secondary\" }\n , input { type: \"text\", className: I.inputCls I.accent \"\", placeholder: \"Accent\" }\n ]\n , div { className: \"flex flex-wrap gap-2 items-center\" }\n [ input { type: \"text\", className: I.inputCls \"\" I.lg, placeholder: \"Large\" }\n , input { type: \"text\", className: I.inputCls \"\" \"\", placeholder: \"Normal\" }\n , input { type: \"text\", className: I.inputCls \"\" I.sm, placeholder: \"Small\" }\n , input { type: \"text\", className: I.inputCls \"\" I.xs, placeholder: \"Tiny\" }\n ]\n , input { type: \"text\", className: I.inputCls \"\" \"\" <> \" w-full\", disabled: true, placeholder: \"Disabled\" }\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkInput {}\n","componentSourceCode":"module DaisyUI.Input where\n\nimport Prelude\n\ninputCls :: String -> String -> String\ninputCls color size = \"input\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"input-primary\"\n\nsecondary :: String\nsecondary = \"input-secondary\"\n\naccent :: String\naccent = \"input-accent\"\n\ninfo :: String\ninfo = \"input-info\"\n\nsuccess :: String\nsuccess = \"input-success\"\n\nwarning :: String\nwarning = \"input-warning\"\n\nerror :: String\nerror = \"input-error\"\n\n-- Sizes\nxs :: String\nxs = \"input-xs\"\n\nsm :: String\nsm = \"input-sm\"\n\nmd :: String\nmd = \"input-md\"\n\nlg :: String\nlg = \"input-lg\"\n\n-- Modifiers\nbordered :: String\nbordered = \"input-bordered\"\n\nghost :: String\nghost = \"input-ghost\"\n"},{"moduleName":"DaisyUI.Kbd.Stories","sourcePath":"test/DaisyUI/Kbd/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Kbd.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Kbd as K\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, span)\nimport YogaStories.Story (story) as S\n\nmkKbd :: {} -> JSX\nmkKbd = component \"KbdStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6 items-center\" }\n [ div { className: \"flex gap-1\" }\n [ K.kbdKey K.lg \"Ctrl\"\n , span {} \"+\"\n , K.kbdKey K.lg \"Shift\"\n , span {} \"+\"\n , K.kbdKey K.lg \"Del\"\n ]\n , div { className: \"flex gap-1\" }\n [ K.kbdKey \"\" \"⌘\"\n , K.kbdKey \"\" \"⌥\"\n , K.kbdKey \"\" \"⇧\"\n , K.kbdKey \"\" \"⌃\"\n ]\n , div { className: \"flex gap-1 items-center\" }\n [ K.kbdKey K.lg \"large\"\n , K.kbdKey \"\" \"normal\"\n , K.kbdKey K.sm \"small\"\n , K.kbdKey K.xs \"tiny\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkKbd {}\n","componentSourceCode":"module DaisyUI.Kbd where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (kbd)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nkbdKey :: String -> forall kids. IsJSX kids => kids -> JSX\nkbdKey size = kbd { className: \"kbd\" <> \" \" <> size }\n\n-- Sizes\nxs :: String\nxs = \"kbd-xs\"\n\nsm :: String\nsm = \"kbd-sm\"\n\nmd :: String\nmd = \"kbd-md\"\n\nlg :: String\nlg = \"kbd-lg\"\n"},{"moduleName":"DaisyUI.Label.Stories","sourcePath":"test/DaisyUI/Label/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Label.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Label as L\nimport DaisyUI.Input as I\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkLabel :: {} -> JSX\nmkLabel = component \"LabelStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-xs\" }\n [ L.floatingLabel\n [ input { type: \"text\", className: I.inputCls \"\" \"\", placeholder: \" \" }\n , L.labelSpan \"Name\"\n ]\n , L.floatingLabel\n [ input { type: \"email\", className: I.inputCls I.bordered \"\", placeholder: \" \" }\n , L.labelSpan \"Email\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkLabel {}\n","componentSourceCode":"module DaisyUI.Label where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (span, label)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nlabelCls :: String\nlabelCls = \"label\"\n\nfloatingLabel :: forall kids. IsJSX kids => kids -> JSX\nfloatingLabel = label { className: \"floating-label\" }\n\nlabelSpan :: forall kids. IsJSX kids => kids -> JSX\nlabelSpan = span { className: \"label\" }\n"},{"moduleName":"DaisyUI.Link.Stories","sourcePath":"test/DaisyUI/Link/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Link.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Link as L\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (a, div)\nimport YogaStories.Story (story) as S\n\nmkLink :: {} -> JSX\nmkLink = component \"LinkStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-2\" }\n [ a { className: L.linkCls \"\" } \"I'm a simple link\"\n , a { className: L.linkCls L.primary } \"I'm a simple link\"\n , a { className: L.linkCls L.secondary } \"I'm a simple link\"\n , a { className: L.linkCls L.accent } \"I'm a simple link\"\n , a { className: L.linkCls L.neutral } \"I'm a simple link\"\n , a { className: L.linkCls L.success } \"I'm a simple link\"\n , a { className: L.linkCls L.info } \"I'm a simple link\"\n , a { className: L.linkCls L.warning } \"I'm a simple link\"\n , a { className: L.linkCls L.error } \"I'm a simple link\"\n , a { className: L.linkCls L.hover } \"I'm a simple link\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkLink {}\n","componentSourceCode":"module DaisyUI.Link where\n\nimport Prelude\n\nlinkCls :: String -> String\nlinkCls color = \"link\" <> \" \" <> color\n\n-- Colors\nprimary :: String\nprimary = \"link-primary\"\n\nsecondary :: String\nsecondary = \"link-secondary\"\n\naccent :: String\naccent = \"link-accent\"\n\nneutral :: String\nneutral = \"link-neutral\"\n\ninfo :: String\ninfo = \"link-info\"\n\nsuccess :: String\nsuccess = \"link-success\"\n\nwarning :: String\nwarning = \"link-warning\"\n\nerror :: String\nerror = \"link-error\"\n\n-- Modifiers\nhover :: String\nhover = \"link-hover\"\n"},{"moduleName":"DaisyUI.List.Stories","sourcePath":"test/DaisyUI/List/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.List.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.List as L\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, img, p)\nimport YogaStories.Story (story) as S\n\nmkList :: {} -> JSX\nmkList = component \"ListStory\" \\_ -> React.do\n pure $ div { className: \"w-full max-w-md\" }\n [ L.list\n [ L.listRow\n [ div { className: \"text-4xl font-thin opacity-30 tabular-nums\" } \"01\"\n , div {}\n [ img { className: \"size-10 rounded-box\", src: \"https://img.daisyui.com/images/profile/demo/1@94.webp\", alt: \"Song\" } ]\n , L.listColGrow\n [ div {} \"Dio\"\n , div { className: \"text-xs uppercase font-semibold opacity-60\" } \"Ronnie James Dio\"\n ]\n , p { className: \"font-mono opacity-60\" } \"3:46\"\n ]\n , L.listRow\n [ div { className: \"text-4xl font-thin opacity-30 tabular-nums\" } \"02\"\n , div {}\n [ img { className: \"size-10 rounded-box\", src: \"https://img.daisyui.com/images/profile/demo/2@94.webp\", alt: \"Song\" } ]\n , L.listColGrow\n [ div {} \"Move to the city\"\n , div { className: \"text-xs uppercase font-semibold opacity-60\" } \"Slightly Stoopid\"\n ]\n , p { className: \"font-mono opacity-60\" } \"4:02\"\n ]\n , L.listRow\n [ div { className: \"text-4xl font-thin opacity-30 tabular-nums\" } \"03\"\n , div {}\n [ img { className: \"size-10 rounded-box\", src: \"https://img.daisyui.com/images/profile/demo/3@94.webp\", alt: \"Song\" } ]\n , L.listColGrow\n [ div {} \"Galvanize\"\n , div { className: \"text-xs uppercase font-semibold opacity-60\" } \"Chemical Brothers\"\n ]\n , p { className: \"font-mono opacity-60\" } \"4:38\"\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkList {}\n","componentSourceCode":"module DaisyUI.List where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (ul, li, div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nlist :: forall kids. IsJSX kids => kids -> JSX\nlist = ul { className: \"list bg-base-100 rounded-box shadow-md\" }\n\nlistRow :: forall kids. IsJSX kids => kids -> JSX\nlistRow = li { className: \"list-row\" }\n\nlistColWrap :: forall kids. IsJSX kids => kids -> JSX\nlistColWrap = div { className: \"list-col-wrap\" }\n\nlistColGrow :: forall kids. IsJSX kids => kids -> JSX\nlistColGrow = div { className: \"list-col-grow\" }\n"},{"moduleName":"DaisyUI.Loading.Stories","sourcePath":"test/DaisyUI/Loading/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Loading.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Loading as L\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkLoading :: {} -> JSX\nmkLoading = component \"LoadingStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6 items-center\" }\n [ div { className: \"flex gap-4\" }\n [ L.loading L.spinner L.lg\n , L.loading L.dots L.lg\n , L.loading L.ring L.lg\n , L.loading L.ball L.lg\n , L.loading L.bars L.lg\n , L.loading L.infinity L.lg\n ]\n , div { className: \"flex gap-4 items-center\" }\n [ L.loading L.spinner L.xs\n , L.loading L.spinner L.sm\n , L.loading L.spinner L.md\n , L.loading L.spinner L.lg\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkLoading {}\n","componentSourceCode":"module DaisyUI.Loading where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (span)\n\nloading :: String -> String -> JSX\nloading variant size = span { className: \"loading\" <> \" \" <> variant <> \" \" <> size } ([] :: Array JSX)\n\n-- Variants\nspinner :: String\nspinner = \"loading-spinner\"\n\ndots :: String\ndots = \"loading-dots\"\n\nring :: String\nring = \"loading-ring\"\n\nball :: String\nball = \"loading-ball\"\n\nbars :: String\nbars = \"loading-bars\"\n\ninfinity :: String\ninfinity = \"loading-infinity\"\n\n-- Sizes\nxs :: String\nxs = \"loading-xs\"\n\nsm :: String\nsm = \"loading-sm\"\n\nmd :: String\nmd = \"loading-md\"\n\nlg :: String\nlg = \"loading-lg\"\n"},{"moduleName":"DaisyUI.Mask.Stories","sourcePath":"test/DaisyUI/Mask/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Mask.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Mask as M\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, img)\nimport YogaStories.Story (story) as S\n\nmkMask :: {} -> JSX\nmkMask = component \"MaskStory\" \\_ -> React.do\n let demoImg = \"https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp\"\n pure $ div { className: \"flex flex-wrap gap-4\" }\n [ img { src: demoImg, className: M.maskCls M.squircle <> \" w-20\", alt: \"Squircle\" }\n , img { src: demoImg, className: M.maskCls M.heart <> \" w-20\", alt: \"Heart\" }\n , img { src: demoImg, className: M.maskCls M.hexagon <> \" w-20\", alt: \"Hexagon\" }\n , img { src: demoImg, className: M.maskCls M.hexagon2 <> \" w-20\", alt: \"Hexagon2\" }\n , img { src: demoImg, className: M.maskCls M.decagon <> \" w-20\", alt: \"Decagon\" }\n , img { src: demoImg, className: M.maskCls M.pentagon <> \" w-20\", alt: \"Pentagon\" }\n , img { src: demoImg, className: M.maskCls M.diamond <> \" w-20\", alt: \"Diamond\" }\n , img { src: demoImg, className: M.maskCls M.circle <> \" w-20\", alt: \"Circle\" }\n , img { src: demoImg, className: M.maskCls M.star <> \" w-20\", alt: \"Star\" }\n , img { src: demoImg, className: M.maskCls M.triangle <> \" w-20\", alt: \"Triangle\" }\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkMask {}\n","componentSourceCode":"module DaisyUI.Mask where\n\nimport Prelude\n\nmaskCls :: String -> String\nmaskCls shape = \"mask\" <> \" \" <> shape\n\n-- Shapes\nsquircle :: String\nsquircle = \"mask-squircle\"\n\nheart :: String\nheart = \"mask-heart\"\n\nhexagon :: String\nhexagon = \"mask-hexagon\"\n\nhexagon2 :: String\nhexagon2 = \"mask-hexagon-2\"\n\ndecagon :: String\ndecagon = \"mask-decagon\"\n\npentagon :: String\npentagon = \"mask-pentagon\"\n\ndiamond :: String\ndiamond = \"mask-diamond\"\n\nsquare :: String\nsquare = \"mask-square\"\n\ncircle :: String\ncircle = \"mask-circle\"\n\nparallelogram :: String\nparallelogram = \"mask-parallelogram\"\n\nparallelogram2 :: String\nparallelogram2 = \"mask-parallelogram-2\"\n\nparallelogram3 :: String\nparallelogram3 = \"mask-parallelogram-3\"\n\nparallelogram4 :: String\nparallelogram4 = \"mask-parallelogram-4\"\n\nstar :: String\nstar = \"mask-star\"\n\nstar2 :: String\nstar2 = \"mask-star-2\"\n\ntriangle :: String\ntriangle = \"mask-triangle\"\n\ntriangle2 :: String\ntriangle2 = \"mask-triangle-2\"\n\ntriangle3 :: String\ntriangle3 = \"mask-triangle-3\"\n\ntriangle4 :: String\ntriangle4 = \"mask-triangle-4\"\n\nhalf1 :: String\nhalf1 = \"mask-half-1\"\n\nhalf2 :: String\nhalf2 = \"mask-half-2\"\n"},{"moduleName":"DaisyUI.Menu.Stories","sourcePath":"test/DaisyUI/Menu/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Menu.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Menu as Menu\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, a)\nimport YogaStories.Story (story) as S\n\nmkMenu :: {} -> JSX\nmkMenu = component \"MenuStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-wrap gap-4\" }\n [ div { className: \"w-56\" }\n [ Menu.menu \"bg-base-200 rounded-box\"\n [ Menu.menuItem [ a {} \"Item 1\" ]\n , Menu.menuItem [ a {} \"Item 2\" ]\n , Menu.menuSub \"Parent\"\n [ Menu.menuItem [ a {} \"Submenu 1\" ]\n , Menu.menuItem [ a {} \"Submenu 2\" ]\n ]\n , Menu.menuItem [ a {} \"Item 3\" ]\n ]\n ]\n , div { className: \"w-56\" }\n [ Menu.menu \"bg-base-200 rounded-box\"\n [ Menu.menuTitle \"Title\"\n , Menu.menuItem [ a {} \"Item 1\" ]\n , Menu.menuItem [ a { className: \"active\" } \"Item 2\" ]\n , Menu.menuItem [ a {} \"Item 3\" ]\n ]\n ]\n , Menu.menuHorizontal \"bg-base-200 rounded-box\"\n [ Menu.menuItem [ a {} \"Item 1\" ]\n , Menu.menuItem [ a {} \"Item 2\" ]\n , Menu.menuItem [ a {} \"Item 3\" ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkMenu {}\n","componentSourceCode":"module DaisyUI.Menu where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (ul, li, span, details, summary)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nmenu :: String -> forall kids. IsJSX kids => kids -> JSX\nmenu size = ul { className: \"menu\" <> \" \" <> size }\n\nmenuHorizontal :: String -> forall kids. IsJSX kids => kids -> JSX\nmenuHorizontal size = ul { className: \"menu menu-horizontal\" <> \" \" <> size }\n\nmenuItem :: forall kids. IsJSX kids => kids -> JSX\nmenuItem = li {}\n\nmenuTitle :: forall kids. IsJSX kids => kids -> JSX\nmenuTitle = li { className: \"menu-title\" }\n\nmenuDisabled :: forall kids. IsJSX kids => kids -> JSX\nmenuDisabled = li { className: \"disabled\" }\n\nmenuActive :: forall kids. IsJSX kids => kids -> JSX\nmenuActive = li { className: \"active\" } -- Wrapping `<a>` gets the `active` style via DaisyUI\n\nmenuSub :: forall kids. IsJSX kids => String -> kids -> JSX\nmenuSub title kids = li {}\n [ details {}\n [ summary {} (span {} title)\n , ul {} kids\n ]\n ]\n\n-- Sizes\nxs :: String\nxs = \"menu-xs\"\n\nsm :: String\nsm = \"menu-sm\"\n\nmd :: String\nmd = \"menu-md\"\n\nlg :: String\nlg = \"menu-lg\"\n"},{"moduleName":"DaisyUI.MockupBrowser.Stories","sourcePath":"test/DaisyUI/MockupBrowser/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.MockupBrowser.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.MockupBrowser as MB\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkMockupBrowser :: {} -> JSX\nmkMockupBrowser = component \"MockupBrowserStory\" \\_ -> React.do\n pure $ MB.mockupBrowser\n [ MB.mockupBrowserToolbar\n [ div { className: \"input\" } \"https://daisyui.com\" ]\n , div { className: \"grid place-content-center border-t border-base-300 h-80\" }\n \"Hello!\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkMockupBrowser {}\n","componentSourceCode":"module DaisyUI.MockupBrowser where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nmockupBrowser :: forall kids. IsJSX kids => kids -> JSX\nmockupBrowser = div { className: \"mockup-browser border-base-300 border\" }\n\nmockupBrowserToolbar :: forall kids. IsJSX kids => kids -> JSX\nmockupBrowserToolbar = div { className: \"mockup-browser-toolbar\" }\n"},{"moduleName":"DaisyUI.MockupCode.Stories","sourcePath":"test/DaisyUI/MockupCode/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.MockupCode.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.MockupCode as MC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (code, div, pre)\nimport YogaStories.Story (story) as S\n\nmkMockupCode :: {} -> JSX\nmkMockupCode = component \"MockupCodeStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ MC.mockupCode\n [ MC.codeLine \"$\" \"npm i daisyui\" ]\n , MC.mockupCode\n [ pre {} [ code {} \"npm i daisyui\" ]\n , pre {} [ code {} \"installing...\" ]\n , pre {} [ code {} \"Done!\" ]\n ]\n , MC.mockupCode\n [ MC.codeLine \"~\" \"Downloading...\"\n , MC.codeLine \"\" (div { className: \"text-warning\" } \"Error!\")\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkMockupCode {}\n","componentSourceCode":"module DaisyUI.MockupCode where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, pre, code)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nmockupCode :: forall kids. IsJSX kids => kids -> JSX\nmockupCode = div { className: \"mockup-code\" }\n\ncodeLine :: String -> forall kids. IsJSX kids => kids -> JSX\ncodeLine prefix kids = pre { \"data-prefix\": prefix }\n [ code {} kids ]\n"},{"moduleName":"DaisyUI.MockupPhone.Stories","sourcePath":"test/DaisyUI/MockupPhone/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.MockupPhone.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.MockupPhone as MP\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkMockupPhone :: {} -> JSX\nmkMockupPhone = component \"MockupPhoneStory\" \\_ -> React.do\n pure $ MP.mockupPhone\n [ div { className: \"grid place-content-center bg-neutral-900 text-white h-80\" }\n \"Hi.\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkMockupPhone {}\n","componentSourceCode":"module DaisyUI.MockupPhone where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nmockupPhone :: forall kids. IsJSX kids => kids -> JSX\nmockupPhone kids = div { className: \"mockup-phone\" }\n [ div { className: \"mockup-phone-camera\" } ([] :: Array JSX)\n , div { className: \"mockup-phone-display\" } kids\n ]\n"},{"moduleName":"DaisyUI.MockupWindow.Stories","sourcePath":"test/DaisyUI/MockupWindow/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.MockupWindow.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.MockupWindow as MW\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkMockupWindow :: {} -> JSX\nmkMockupWindow = component \"MockupWindowStory\" \\_ -> React.do\n pure $ MW.mockupWindow\n [ div { className: \"grid place-content-center border-t border-base-300 h-80\" }\n \"Hello!\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkMockupWindow {}\n","componentSourceCode":"module DaisyUI.MockupWindow where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nmockupWindow :: forall kids. IsJSX kids => kids -> JSX\nmockupWindow = div { className: \"mockup-window border-base-300 border\" }\n"},{"moduleName":"DaisyUI.Modal.Stories","sourcePath":"test/DaisyUI/Modal/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Modal.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Modal as M\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, form, h3, p)\nimport YogaStories.Story (story) as S\n\nmkModal :: {} -> JSX\nmkModal = component \"ModalStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ M.modalBox\n [ h3 { className: \"text-lg font-bold\" } \"Hello!\"\n , p { className: \"py-4\" } \"Press ESC key or click the button below to close\"\n , M.modalAction\n [ form { method: \"dialog\" }\n [ Btn.btn \"\" \"\" \"Close\" ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkModal {}\n","componentSourceCode":"module DaisyUI.Modal where\n\nimport Prelude\nimport Effect (Effect)\nimport Effect.Uncurried (EffectFn1, runEffectFn1)\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\nimport Web.HTML.HTMLDialogElement (HTMLDialogElement)\n\nforeign import showModalImpl :: EffectFn1 HTMLDialogElement Unit\nforeign import closeImpl :: EffectFn1 HTMLDialogElement Unit\n\nshowModal :: HTMLDialogElement -> Effect Unit\nshowModal = runEffectFn1 showModalImpl\n\ncloseModal :: HTMLDialogElement -> Effect Unit\ncloseModal = runEffectFn1 closeImpl\n\nmodalBox :: forall kids. IsJSX kids => kids -> JSX\nmodalBox = div { className: \"modal-box\" }\n\nmodalAction :: forall kids. IsJSX kids => kids -> JSX\nmodalAction = div { className: \"modal-action\" }\n\nmodalTop :: forall kids. IsJSX kids => kids -> JSX\nmodalTop = div { className: \"modal-top\" }\n\nmodalMiddle :: forall kids. IsJSX kids => kids -> JSX\nmodalMiddle = div { className: \"modal-middle\" }\n\nmodalBottom :: forall kids. IsJSX kids => kids -> JSX\nmodalBottom = div { className: \"modal-bottom\" }\n\nmodalBackdrop :: String\nmodalBackdrop = \"modal-backdrop\"\n"},{"moduleName":"DaisyUI.Navbar.Stories","sourcePath":"test/DaisyUI/Navbar/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Navbar.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Navbar as Nav\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (a, div)\nimport YogaStories.Story (story) as S\n\nmkNavbar :: {} -> JSX\nmkNavbar = component \"NavbarStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ Nav.navbar\n [ Nav.navbarStart\n [ a { className: \"btn btn-ghost text-xl\" } \"daisyUI\" ]\n , Nav.navbarCenter ([] :: Array JSX)\n , Nav.navbarEnd\n [ Btn.btn Btn.ghost \"\" \"Button\" ]\n ]\n , Nav.navbar\n [ Nav.navbarStart\n [ a { className: \"btn btn-ghost text-xl\" } \"daisyUI\" ]\n , Nav.navbarCenter\n [ a { className: \"btn btn-ghost\" } \"Home\"\n , a { className: \"btn btn-ghost\" } \"About\"\n , a { className: \"btn btn-ghost\" } \"Contact\"\n ]\n , Nav.navbarEnd\n [ Btn.btn Btn.primary \"\" \"Get Started\" ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkNavbar {}\n","componentSourceCode":"module DaisyUI.Navbar where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nnavbar :: forall kids. IsJSX kids => kids -> JSX\nnavbar = div { className: \"navbar bg-base-100\" }\n\nnavbarStart :: forall kids. IsJSX kids => kids -> JSX\nnavbarStart = div { className: \"navbar-start\" }\n\nnavbarCenter :: forall kids. IsJSX kids => kids -> JSX\nnavbarCenter = div { className: \"navbar-center\" }\n\nnavbarEnd :: forall kids. IsJSX kids => kids -> JSX\nnavbarEnd = div { className: \"navbar-end\" }\n"},{"moduleName":"DaisyUI.Pagination.Stories","sourcePath":"test/DaisyUI/Pagination/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Pagination.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Pagination as P\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (button, div)\nimport YogaStories.Story (story) as S\n\nmkPagination :: {} -> JSX\nmkPagination = component \"PaginationStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ P.join\n [ button { className: \"btn \" <> P.joinItem } \"1\"\n , button { className: \"btn btn-active \" <> P.joinItem } \"2\"\n , button { className: \"btn \" <> P.joinItem } \"3\"\n , button { className: \"btn \" <> P.joinItem } \"4\"\n ]\n , P.join\n [ button { className: \"btn \" <> P.joinItem } \"«\"\n , button { className: \"btn \" <> P.joinItem } \"Page 22\"\n , button { className: \"btn \" <> P.joinItem } \"»\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkPagination {}\n","componentSourceCode":"module DaisyUI.Pagination where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\njoin :: forall kids. IsJSX kids => kids -> JSX\njoin = div { className: \"join\" }\n\njoinVertical :: forall kids. IsJSX kids => kids -> JSX\njoinVertical = div { className: \"join join-vertical\" }\n\njoinItem :: String\njoinItem = \"join-item\"\n"},{"moduleName":"DaisyUI.Progress.Stories","sourcePath":"test/DaisyUI/Progress/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Progress.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Progress as P\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, progress)\nimport YogaStories.Story (story) as S\n\nmkProgress :: {} -> JSX\nmkProgress = component \"ProgressStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-56\" }\n [ progress { className: P.progressCls \"\", value: \"0\", max: \"100\" } \"\"\n , progress { className: P.progressCls \"\", value: \"10\", max: \"100\" } \"\"\n , progress { className: P.progressCls \"\", value: \"40\", max: \"100\" } \"\"\n , progress { className: P.progressCls \"\", value: \"70\", max: \"100\" } \"\"\n , progress { className: P.progressCls \"\", value: \"100\", max: \"100\" } \"\"\n , progress { className: P.progressCls P.primary, value: \"56\", max: \"100\" } \"\"\n , progress { className: P.progressCls P.secondary, value: \"56\", max: \"100\" } \"\"\n , progress { className: P.progressCls P.accent, value: \"56\", max: \"100\" } \"\"\n , progress { className: P.progressCls P.info, value: \"56\", max: \"100\" } \"\"\n , progress { className: P.progressCls P.success, value: \"56\", max: \"100\" } \"\"\n , progress { className: P.progressCls P.warning, value: \"56\", max: \"100\" } \"\"\n , progress { className: P.progressCls P.error, value: \"56\", max: \"100\" } \"\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkProgress {}\n","componentSourceCode":"module DaisyUI.Progress where\n\nimport Prelude\n\nprogressCls :: String -> String\nprogressCls color = \"progress\" <> \" \" <> color\n\n-- Colors\nprimary :: String\nprimary = \"progress-primary\"\n\nsecondary :: String\nsecondary = \"progress-secondary\"\n\naccent :: String\naccent = \"progress-accent\"\n\ninfo :: String\ninfo = \"progress-info\"\n\nsuccess :: String\nsuccess = \"progress-success\"\n\nwarning :: String\nwarning = \"progress-warning\"\n\nerror :: String\nerror = \"progress-error\"\n"},{"moduleName":"DaisyUI.RadialProgress.Stories","sourcePath":"test/DaisyUI/RadialProgress/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.RadialProgress.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.RadialProgress as RP\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkRadialProgress :: {} -> JSX\nmkRadialProgress = component \"RadialProgressStory\" \\_ -> React.do\n pure $ div { className: \"flex gap-4\" }\n [ RP.radialProgress 0 \"0%\"\n , RP.radialProgress 25 \"25%\"\n , RP.radialProgress 50 \"50%\"\n , RP.radialProgress 75 \"75%\"\n , RP.radialProgress 100 \"100%\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkRadialProgress {}\n","componentSourceCode":"module DaisyUI.RadialProgress where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX, css)\n\nradialProgress :: Int -> forall kids. IsJSX kids => kids -> JSX\nradialProgress value = div\n { className: \"radial-progress\"\n , style: css { \"--value\": value }\n , role: \"progressbar\"\n }\n"},{"moduleName":"DaisyUI.Radio.Stories","sourcePath":"test/DaisyUI/Radio/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Radio.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Radio as Rad\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkRadio :: {} -> JSX\nmkRadio = component \"RadioStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"Pick a framework\"\n , div { className: \"flex flex-col gap-2\" }\n [ input { type: \"radio\", name: \"radio-1\", className: Rad.radioCls Rad.primary \"\", \"aria-label\": \"Svelte\", checked: true }\n , input { type: \"radio\", name: \"radio-1\", className: Rad.radioCls Rad.primary \"\", \"aria-label\": \"Vue\" }\n , input { type: \"radio\", name: \"radio-1\", className: Rad.radioCls Rad.primary \"\", \"aria-label\": \"React\" }\n ]\n ]\n , div { className: \"flex gap-2\" }\n [ input { type: \"radio\", name: \"radio-colors\", className: Rad.radioCls Rad.primary \"\" }\n , input { type: \"radio\", name: \"radio-colors\", className: Rad.radioCls Rad.secondary \"\", checked: true }\n , input { type: \"radio\", name: \"radio-colors\", className: Rad.radioCls Rad.accent \"\" }\n , input { type: \"radio\", name: \"radio-colors\", className: Rad.radioCls Rad.success \"\" }\n , input { type: \"radio\", name: \"radio-colors\", className: Rad.radioCls Rad.warning \"\" }\n , input { type: \"radio\", name: \"radio-colors\", className: Rad.radioCls Rad.info \"\" }\n , input { type: \"radio\", name: \"radio-colors\", className: Rad.radioCls Rad.error \"\" }\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkRadio {}\n","componentSourceCode":"module DaisyUI.Radio where\n\nimport Prelude\n\nradioCls :: String -> String -> String\nradioCls color size = \"radio\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"radio-primary\"\n\nsecondary :: String\nsecondary = \"radio-secondary\"\n\naccent :: String\naccent = \"radio-accent\"\n\ninfo :: String\ninfo = \"radio-info\"\n\nsuccess :: String\nsuccess = \"radio-success\"\n\nwarning :: String\nwarning = \"radio-warning\"\n\nerror :: String\nerror = \"radio-error\"\n\n-- Sizes\nxs :: String\nxs = \"radio-xs\"\n\nsm :: String\nsm = \"radio-sm\"\n\nmd :: String\nmd = \"radio-md\"\n\nlg :: String\nlg = \"radio-lg\"\n"},{"moduleName":"DaisyUI.Range.Stories","sourcePath":"test/DaisyUI/Range/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Range.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Range as Rng\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkRange :: {} -> JSX\nmkRange = component \"RangeStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-64\" }\n [ input { type: \"range\", className: Rng.rangeCls \"\" \"\" }\n , input { type: \"range\", className: Rng.rangeCls Rng.primary \"\" }\n , input { type: \"range\", className: Rng.rangeCls Rng.secondary \"\" }\n , input { type: \"range\", className: Rng.rangeCls Rng.accent \"\" }\n , div { className: \"flex flex-col gap-2 items-center\" }\n [ input { type: \"range\", className: Rng.rangeCls \"\" Rng.lg }\n , input { type: \"range\", className: Rng.rangeCls \"\" \"\" }\n , input { type: \"range\", className: Rng.rangeCls \"\" Rng.sm }\n , input { type: \"range\", className: Rng.rangeCls \"\" Rng.xs }\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkRange {}\n","componentSourceCode":"module DaisyUI.Range where\n\nimport Prelude\n\nrangeCls :: String -> String -> String\nrangeCls color size = \"range\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"range-primary\"\n\nsecondary :: String\nsecondary = \"range-secondary\"\n\naccent :: String\naccent = \"range-accent\"\n\ninfo :: String\ninfo = \"range-info\"\n\nsuccess :: String\nsuccess = \"range-success\"\n\nwarning :: String\nwarning = \"range-warning\"\n\nerror :: String\nerror = \"range-error\"\n\n-- Sizes\nxs :: String\nxs = \"range-xs\"\n\nsm :: String\nsm = \"range-sm\"\n\nmd :: String\nmd = \"range-md\"\n\nlg :: String\nlg = \"range-lg\"\n"},{"moduleName":"DaisyUI.Rating.Stories","sourcePath":"test/DaisyUI/Rating/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Rating.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Rating as Rt\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkRating :: {} -> JSX\nmkRating = component \"RatingStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ Rt.rating \"\"\n [ input { type: \"radio\", name: \"rating-2\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"1 star\" }\n , input { type: \"radio\", name: \"rating-2\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"2 stars\", checked: true }\n , input { type: \"radio\", name: \"rating-2\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"3 stars\" }\n , input { type: \"radio\", name: \"rating-2\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"4 stars\" }\n , input { type: \"radio\", name: \"rating-2\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"5 stars\" }\n ]\n , div { className: \"flex gap-2 items-center\" }\n [ Rt.rating Rt.xs\n [ input { type: \"radio\", name: \"rating-xs\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"1 star\", checked: true }\n , input { type: \"radio\", name: \"rating-xs\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"2 stars\" }\n , input { type: \"radio\", name: \"rating-xs\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"3 stars\" }\n , input { type: \"radio\", name: \"rating-xs\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"4 stars\" }\n , input { type: \"radio\", name: \"rating-xs\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"5 stars\" }\n ]\n , Rt.rating Rt.lg\n [ input { type: \"radio\", name: \"rating-lg\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"1 star\" }\n , input { type: \"radio\", name: \"rating-lg\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"2 stars\" }\n , input { type: \"radio\", name: \"rating-lg\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"3 stars\", checked: true }\n , input { type: \"radio\", name: \"rating-lg\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"4 stars\" }\n , input { type: \"radio\", name: \"rating-lg\", className: \"mask mask-star-2 bg-orange-400\", \"aria-label\": \"5 stars\" }\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkRating {}\n","componentSourceCode":"module DaisyUI.Rating where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nrating :: String -> forall kids. IsJSX kids => kids -> JSX\nrating size = div { className: \"rating\" <> \" \" <> size }\n\nratingHalf :: String -> forall kids. IsJSX kids => kids -> JSX\nratingHalf size = div { className: \"rating rating-half\" <> \" \" <> size }\n\n-- Sizes\nxs :: String\nxs = \"rating-xs\"\n\nsm :: String\nsm = \"rating-sm\"\n\nmd :: String\nmd = \"rating-md\"\n\nlg :: String\nlg = \"rating-lg\"\n"},{"moduleName":"DaisyUI.Select.Stories","sourcePath":"test/DaisyUI/Select/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Select.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Select as Sel\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, option, select)\nimport YogaStories.Story (story) as S\n\nmkSelect :: {} -> JSX\nmkSelect = component \"SelectStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-xs\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"Framework\"\n , select { className: Sel.selectCls \"\" \"\" }\n [ option {} \"Pick a framework\"\n , option {} \"Svelte\"\n , option {} \"Vue\"\n , option {} \"React\"\n ]\n ]\n , select { className: Sel.selectCls Sel.bordered \"\" }\n [ option {} \"Who shot first?\"\n , option {} \"Han Solo\"\n , option {} \"Greedo\"\n ]\n , div { className: \"flex flex-wrap gap-2\" }\n [ select { className: Sel.selectCls Sel.primary \"\" }\n [ option {} \"Primary\" ]\n , select { className: Sel.selectCls Sel.secondary \"\" }\n [ option {} \"Secondary\" ]\n , select { className: Sel.selectCls Sel.accent \"\" }\n [ option {} \"Accent\" ]\n ]\n , div { className: \"flex flex-wrap gap-2 items-center\" }\n [ select { className: Sel.selectCls \"\" Sel.lg }\n [ option {} \"Large\" ]\n , select { className: Sel.selectCls \"\" \"\" }\n [ option {} \"Normal\" ]\n , select { className: Sel.selectCls \"\" Sel.sm }\n [ option {} \"Small\" ]\n , select { className: Sel.selectCls \"\" Sel.xs }\n [ option {} \"Tiny\" ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkSelect {}\n","componentSourceCode":"module DaisyUI.Select where\n\nimport Prelude\n\nselectCls :: String -> String -> String\nselectCls color size = \"select\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"select-primary\"\n\nsecondary :: String\nsecondary = \"select-secondary\"\n\naccent :: String\naccent = \"select-accent\"\n\ninfo :: String\ninfo = \"select-info\"\n\nsuccess :: String\nsuccess = \"select-success\"\n\nwarning :: String\nwarning = \"select-warning\"\n\nerror :: String\nerror = \"select-error\"\n\n-- Sizes\nxs :: String\nxs = \"select-xs\"\n\nsm :: String\nsm = \"select-sm\"\n\nmd :: String\nmd = \"select-md\"\n\nlg :: String\nlg = \"select-lg\"\n\n-- Modifiers\nbordered :: String\nbordered = \"select-bordered\"\n\nghost :: String\nghost = \"select-ghost\"\n"},{"moduleName":"DaisyUI.Skeleton.Stories","sourcePath":"test/DaisyUI/Skeleton/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Skeleton.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Skeleton as Sk\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkSkeleton :: {} -> JSX\nmkSkeleton = component \"SkeletonStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-64\" }\n [ div { className: \"flex gap-4 items-center\" }\n [ Sk.skeleton \"h-16 w-16 shrink-0 rounded-full\"\n , div { className: \"flex flex-col gap-2 w-full\" }\n [ Sk.skeleton \"h-4 w-28\"\n , Sk.skeleton \"h-4 w-full\"\n ]\n ]\n , Sk.skeleton \"h-32 w-full\"\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkSkeleton {}\n","componentSourceCode":"module DaisyUI.Skeleton where\n\nimport Prelude hiding (div)\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\n\nskeleton :: String -> JSX\nskeleton className = div { className: \"skeleton \" <> className } ([] :: Array JSX)\n"},{"moduleName":"DaisyUI.Stack.Stories","sourcePath":"test/DaisyUI/Stack/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Stack.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Stack as St\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, img)\nimport YogaStories.Story (story) as S\n\nmkStack :: {} -> JSX\nmkStack = component \"StackStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-8 items-center\" }\n [ St.stack\n [ div { className: \"bg-primary text-primary-content grid w-32 h-20 rounded-box place-items-center\" } \"1\"\n , div { className: \"bg-accent text-accent-content grid w-32 h-20 rounded-box place-items-center\" } \"2\"\n , div { className: \"bg-secondary text-secondary-content grid w-32 h-20 rounded-box place-items-center\" } \"3\"\n ]\n , St.stack\n [ img { src: \"https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp\", alt: \"Photo 1\", className: \"rounded-box\" }\n , img { src: \"https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp\", alt: \"Photo 2\", className: \"rounded-box\" }\n , img { src: \"https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp\", alt: \"Photo 3\", className: \"rounded-box\" }\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkStack {}\n","componentSourceCode":"module DaisyUI.Stack where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nstack :: forall kids. IsJSX kids => kids -> JSX\nstack = div { className: \"stack\" }\n"},{"moduleName":"DaisyUI.Stat.Stories","sourcePath":"test/DaisyUI/Stat/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Stat.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Stat as St\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as Story\n\nmkStat :: {} -> JSX\nmkStat = component \"StatStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ St.stats\n [ St.stat\n [ St.statTitle \"Total Page Views\"\n , St.statValue \"89,400\"\n , St.statDesc \"21% more than last month\"\n ]\n , St.stat\n [ St.statTitle \"New Users\"\n , St.statValue \"4,200\"\n , St.statDesc \"↗︎ 400 (22%)\"\n ]\n , St.stat\n [ St.statTitle \"New Registers\"\n , St.statValue \"1,200\"\n , St.statDesc \"↘︎ 90 (14%)\"\n ]\n ]\n , St.stats\n [ St.stat\n [ St.statTitle \"Account balance\"\n , St.statValue \"$89,400\"\n , St.statActions [ Btn.btn (Btn.primary <> \" btn-sm\") \"\" \"Add funds\" ]\n ]\n , St.stat\n [ St.statTitle \"Current balance\"\n , St.statValue \"$89,400\"\n , St.statActions\n [ Btn.btn \"btn-sm\" \"\" \"Withdrawal\"\n , Btn.btn \"btn-sm\" \"\" \"Deposit\"\n ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = Story.story \"default\" mkStat {}\n","componentSourceCode":"module DaisyUI.Stat where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nstats :: forall kids. IsJSX kids => kids -> JSX\nstats = div { className: \"stats shadow-sm\" }\n\nstatsVertical :: forall kids. IsJSX kids => kids -> JSX\nstatsVertical = div { className: \"stats stats-vertical shadow-sm\" }\n\nstat :: forall kids. IsJSX kids => kids -> JSX\nstat = div { className: \"stat\" }\n\nstatTitle :: forall kids. IsJSX kids => kids -> JSX\nstatTitle = div { className: \"stat-title\" }\n\nstatValue :: forall kids. IsJSX kids => kids -> JSX\nstatValue = div { className: \"stat-value\" }\n\nstatDesc :: forall kids. IsJSX kids => kids -> JSX\nstatDesc = div { className: \"stat-desc\" }\n\nstatFigure :: forall kids. IsJSX kids => kids -> JSX\nstatFigure = div { className: \"stat-figure text-primary\" }\n\nstatActions :: forall kids. IsJSX kids => kids -> JSX\nstatActions = div { className: \"stat-actions\" }\n"},{"moduleName":"DaisyUI.Status.Stories","sourcePath":"test/DaisyUI/Status/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Status.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Status as St\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, span)\nimport YogaStories.Story (story) as S\n\nmkStatus :: {} -> JSX\nmkStatus = component \"StatusStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6\" }\n [ div { className: \"flex gap-6\" }\n [ St.status St.primary \"\"\n , St.status St.secondary \"\"\n , St.status St.accent \"\"\n , St.status St.neutral \"\"\n , St.status St.info \"\"\n , St.status St.success \"\"\n , St.status St.warning \"\"\n , St.status St.error \"\"\n ]\n , div { className: \"flex gap-6 items-center\" }\n [ div { className: \"flex items-center gap-2\" } [ St.status St.success \"\", span {} \"Online\" ]\n , div { className: \"flex items-center gap-2\" } [ St.status St.warning \"\", span {} \"Away\" ]\n , div { className: \"flex items-center gap-2\" } [ St.status St.error \"\", span {} \"Offline\" ]\n ]\n , div { className: \"flex gap-4 items-center\" }\n [ St.status \"\" St.xs\n , St.status \"\" St.sm\n , St.status \"\" St.md\n , St.status \"\" St.lg\n , St.status \"\" St.xl\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkStatus {}\n","componentSourceCode":"module DaisyUI.Status where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (span)\n\nstatus :: String -> String -> JSX\nstatus color size = span { className: \"status\" <> \" \" <> color <> \" \" <> size } ([] :: Array JSX)\n\n-- Colors\nneutral :: String\nneutral = \"status-neutral\"\n\nprimary :: String\nprimary = \"status-primary\"\n\nsecondary :: String\nsecondary = \"status-secondary\"\n\naccent :: String\naccent = \"status-accent\"\n\ninfo :: String\ninfo = \"status-info\"\n\nsuccess :: String\nsuccess = \"status-success\"\n\nwarning :: String\nwarning = \"status-warning\"\n\nerror :: String\nerror = \"status-error\"\n\n-- Sizes\nxs :: String\nxs = \"status-xs\"\n\nsm :: String\nsm = \"status-sm\"\n\nmd :: String\nmd = \"status-md\"\n\nlg :: String\nlg = \"status-lg\"\n\nxl :: String\nxl = \"status-xl\"\n"},{"moduleName":"DaisyUI.Steps.Stories","sourcePath":"test/DaisyUI/Steps/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Steps.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, li, span, ul)\nimport YogaStories.Story (story) as S\n\nmkSteps :: {} -> JSX\nmkSteps = component \"StepsStory\" \\_ -> React.do\n pure $ div { className: \"w-full space-y-8\" }\n [ ul { className: \"steps w-full\" }\n [ li { className: \"step step-primary\" } \"Register\"\n , li { className: \"step step-primary\" } \"Choose plan\"\n , li { className: \"step\" } \"Purchase\"\n , li { className: \"step\" } \"Receive product\"\n ]\n , ul { className: \"steps w-full\" }\n [ li { className: \"step step-neutral\" }\n [ span { className: \"step-icon\" } \"😀\", span {} \"Step 1\" ]\n , li { className: \"step step-neutral\" }\n [ span { className: \"step-icon\" } \"😃\", span {} \"Step 2\" ]\n , li { className: \"step\" }\n [ span { className: \"step-icon\" } \"😍\", span {} \"Step 3\" ]\n ]\n , ul { className: \"steps steps-vertical\" }\n [ li { className: \"step step-primary\" } \"Register\"\n , li { className: \"step step-primary\" } \"Choose plan\"\n , li { className: \"step\" } \"Purchase\"\n , li { className: \"step\" } \"Receive product\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkSteps {}\n","componentSourceCode":"module DaisyUI.Steps where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (ul, li)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nsteps :: String -> forall kids. IsJSX kids => kids -> JSX\nsteps direction = ul { className: \"steps\" <> \" \" <> direction }\n\nstep :: String -> forall kids. IsJSX kids => kids -> JSX\nstep color = li { className: \"step\" <> \" \" <> color }\n\n-- Directions\nhorizontal :: String\nhorizontal = \"steps-horizontal\"\n\nvertical :: String\nvertical = \"steps-vertical\"\n\n-- Colors\nprimary :: String\nprimary = \"step-primary\"\n\nsecondary :: String\nsecondary = \"step-secondary\"\n\naccent :: String\naccent = \"step-accent\"\n\ninfo :: String\ninfo = \"step-info\"\n\nsuccess :: String\nsuccess = \"step-success\"\n\nwarning :: String\nwarning = \"step-warning\"\n\nerror :: String\nerror = \"step-error\"\n\nneutral :: String\nneutral = \"step-neutral\"\n"},{"moduleName":"DaisyUI.Swap.Stories","sourcePath":"test/DaisyUI/Swap/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Swap.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Swap as Sw\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkSwap :: {} -> JSX\nmkSwap = component \"SwapStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6 items-center text-6xl\" }\n [ Sw.swap\n [ input { type: \"checkbox\" }\n , Sw.swapOn \"ON\"\n , Sw.swapOff \"OFF\"\n ]\n , Sw.swapRotate\n [ input { type: \"checkbox\" }\n , Sw.swapOn \"🌛\"\n , Sw.swapOff \"🌞\"\n ]\n , Sw.swapFlip\n [ input { type: \"checkbox\" }\n , Sw.swapOn \"😈\"\n , Sw.swapOff \"😇\"\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkSwap {}\n","componentSourceCode":"module DaisyUI.Swap where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, label)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nswap :: forall kids. IsJSX kids => kids -> JSX\nswap = label { className: \"swap\" }\n\nswapRotate :: forall kids. IsJSX kids => kids -> JSX\nswapRotate = label { className: \"swap swap-rotate\" }\n\nswapFlip :: forall kids. IsJSX kids => kids -> JSX\nswapFlip = label { className: \"swap swap-flip\" }\n\nswapOn :: forall kids. IsJSX kids => kids -> JSX\nswapOn = div { className: \"swap-on\" }\n\nswapOff :: forall kids. IsJSX kids => kids -> JSX\nswapOff = div { className: \"swap-off\" }\n"},{"moduleName":"DaisyUI.Table.Stories","sourcePath":"test/DaisyUI/Table/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Table.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Table as T\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkTable :: {} -> JSX\nmkTable = component \"TableStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ T.daisyTable \"\"\n [ T.tableHeader\n [ T.tableRow\n [ T.tableHead \"\"\n , T.tableHead \"Name\"\n , T.tableHead \"Job\"\n , T.tableHead \"Favorite Color\"\n ]\n ]\n , T.tableBody\n [ T.tableRow\n [ T.tableHead \"1\"\n , T.tableCell \"Cy Ganderton\"\n , T.tableCell \"Quality Control Specialist\"\n , T.tableCell \"Blue\"\n ]\n , T.tableRowHover\n [ T.tableHead \"2\"\n , T.tableCell \"Hart Hagerty\"\n , T.tableCell \"Desktop Support Technician\"\n , T.tableCell \"Purple\"\n ]\n , T.tableRow\n [ T.tableHead \"3\"\n , T.tableCell \"Brice Swyre\"\n , T.tableCell \"Tax Accountant\"\n , T.tableCell \"Red\"\n ]\n ]\n ]\n , T.daisyTable T.zebra\n [ T.tableHeader\n [ T.tableRow\n [ T.tableHead \"\"\n , T.tableHead \"Name\"\n , T.tableHead \"Job\"\n , T.tableHead \"Favorite Color\"\n ]\n ]\n , T.tableBody\n [ T.tableRow\n [ T.tableHead \"1\"\n , T.tableCell \"Cy Ganderton\"\n , T.tableCell \"Quality Control Specialist\"\n , T.tableCell \"Blue\"\n ]\n , T.tableRow\n [ T.tableHead \"2\"\n , T.tableCell \"Hart Hagerty\"\n , T.tableCell \"Desktop Support Technician\"\n , T.tableCell \"Purple\"\n ]\n , T.tableRow\n [ T.tableHead \"3\"\n , T.tableCell \"Brice Swyre\"\n , T.tableCell \"Tax Accountant\"\n , T.tableCell \"Red\"\n ]\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkTable {}\n","componentSourceCode":"module DaisyUI.Table where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div, table, thead, tbody, tfoot, tr, th, td)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ndaisyTable :: String -> forall kids. IsJSX kids => kids -> JSX\ndaisyTable size kids = div { className: \"overflow-x-auto\" }\n [ table { className: \"table\" <> \" \" <> size } kids ]\n\ntableHeader :: forall kids. IsJSX kids => kids -> JSX\ntableHeader = thead {}\n\ntableBody :: forall kids. IsJSX kids => kids -> JSX\ntableBody = tbody {}\n\ntableFooter :: forall kids. IsJSX kids => kids -> JSX\ntableFooter = tfoot {}\n\ntableRow :: forall kids. IsJSX kids => kids -> JSX\ntableRow = tr {}\n\ntableRowHover :: forall kids. IsJSX kids => kids -> JSX\ntableRowHover = tr { className: \"hover\" }\n\ntableRowActive :: forall kids. IsJSX kids => kids -> JSX\ntableRowActive = tr { className: \"active\" }\n\ntableHead :: forall kids. IsJSX kids => kids -> JSX\ntableHead = th {}\n\ntableCell :: forall kids. IsJSX kids => kids -> JSX\ntableCell = td {}\n\n-- Modifiers\nzebra :: String\nzebra = \"table-zebra\"\n\npinRows :: String\npinRows = \"table-pin-rows\"\n\npinCols :: String\npinCols = \"table-pin-cols\"\n\n-- Sizes\nxs :: String\nxs = \"table-xs\"\n\nsm :: String\nsm = \"table-sm\"\n\nmd :: String\nmd = \"table-md\"\n\nlg :: String\nlg = \"table-lg\"\n"},{"moduleName":"DaisyUI.Tabs.Stories","sourcePath":"test/DaisyUI/Tabs/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Tabs.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Tabs as Tabs\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkTabs :: {} -> JSX\nmkTabs = component \"TabsStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6\" }\n [ Tabs.tabs Tabs.bordered\n [ Tabs.tab \"Tab 1\"\n , Tabs.tabActive \"Tab 2\"\n , Tabs.tab \"Tab 3\"\n ]\n , Tabs.tabs Tabs.lifted\n [ Tabs.tab \"Tab 1\"\n , Tabs.tabActive \"Tab 2\"\n , Tabs.tab \"Tab 3\"\n ]\n , Tabs.tabs Tabs.boxed\n [ Tabs.tab \"Tab 1\"\n , Tabs.tabActive \"Tab 2\"\n , Tabs.tab \"Tab 3\"\n ]\n , div { className: \"flex gap-2 items-center\" }\n [ Tabs.tabs (Tabs.bordered <> \" \" <> Tabs.xs)\n [ Tabs.tab \"Tiny\"\n , Tabs.tabActive \"Tiny\"\n , Tabs.tab \"Tiny\"\n ]\n , Tabs.tabs (Tabs.bordered <> \" \" <> Tabs.lg)\n [ Tabs.tab \"Large\"\n , Tabs.tabActive \"Large\"\n , Tabs.tab \"Large\"\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkTabs {}\n","componentSourceCode":"module DaisyUI.Tabs where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ntabs :: String -> forall kids. IsJSX kids => kids -> JSX\ntabs variant = div { className: \"tabs\" <> \" \" <> variant, role: \"tablist\" }\n\ntab :: forall kids. IsJSX kids => kids -> JSX\ntab = div { className: \"tab\", role: \"tab\" }\n\ntabActive :: forall kids. IsJSX kids => kids -> JSX\ntabActive = div { className: \"tab tab-active\", role: \"tab\" }\n\ntabContent :: forall kids. IsJSX kids => kids -> JSX\ntabContent = div { className: \"tab-content p-4\", role: \"tabpanel\" }\n\n-- Variants\nboxed :: String\nboxed = \"tabs-box\"\n\nbordered :: String\nbordered = \"tabs-border\"\n\nlifted :: String\nlifted = \"tabs-lift\"\n\n-- Sizes\nxs :: String\nxs = \"tabs-xs\"\n\nsm :: String\nsm = \"tabs-sm\"\n\nmd :: String\nmd = \"tabs-md\"\n\nlg :: String\nlg = \"tabs-lg\"\n"},{"moduleName":"DaisyUI.TextRotate.Stories","sourcePath":"test/DaisyUI/TextRotate/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.TextRotate.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.TextRotate as TR\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, span)\nimport YogaStories.Story (story) as S\n\nmkTextRotate :: {} -> JSX\nmkTextRotate = component \"TextRotateStory\" \\_ -> React.do\n pure $ div { className: \"text-4xl\" }\n [ span {} \"I love \"\n , TR.textRotate\n [ span {}\n [ TR.textRotateItem \"PureScript\"\n , TR.textRotateItem \"DaisyUI\"\n , TR.textRotateItem \"Tailwind\"\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkTextRotate {}\n","componentSourceCode":"module DaisyUI.TextRotate where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (span)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ntextRotate :: forall kids. IsJSX kids => kids -> JSX\ntextRotate = span { className: \"text-rotate\" }\n\ntextRotateItem :: forall kids. IsJSX kids => kids -> JSX\ntextRotateItem = span {}\n"},{"moduleName":"DaisyUI.Textarea.Stories","sourcePath":"test/DaisyUI/Textarea/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Textarea.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Textarea as TA\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, textarea)\nimport YogaStories.Story (story) as S\n\nmkTextarea :: {} -> JSX\nmkTextarea = component \"TextareaStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-xs\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"Your bio\"\n , textarea { className: TA.textareaCls \"\" \"\", placeholder: \"Bio\" }\n , div { className: \"label\" } \"Optional\"\n ]\n , textarea { className: TA.textareaCls TA.bordered \"\", placeholder: \"Bordered textarea\" }\n , textarea { className: TA.textareaCls TA.ghost \"\", placeholder: \"Ghost textarea\" }\n , div { className: \"flex flex-wrap gap-2\" }\n [ textarea { className: TA.textareaCls TA.primary \"\", placeholder: \"Primary\" }\n , textarea { className: TA.textareaCls TA.secondary \"\", placeholder: \"Secondary\" }\n , textarea { className: TA.textareaCls TA.accent \"\", placeholder: \"Accent\" }\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkTextarea {}\n","componentSourceCode":"module DaisyUI.Textarea where\n\nimport Prelude\n\ntextareaCls :: String -> String -> String\ntextareaCls color size = \"textarea\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"textarea-primary\"\n\nsecondary :: String\nsecondary = \"textarea-secondary\"\n\naccent :: String\naccent = \"textarea-accent\"\n\ninfo :: String\ninfo = \"textarea-info\"\n\nsuccess :: String\nsuccess = \"textarea-success\"\n\nwarning :: String\nwarning = \"textarea-warning\"\n\nerror :: String\nerror = \"textarea-error\"\n\n-- Sizes\nxs :: String\nxs = \"textarea-xs\"\n\nsm :: String\nsm = \"textarea-sm\"\n\nmd :: String\nmd = \"textarea-md\"\n\nlg :: String\nlg = \"textarea-lg\"\n\n-- Modifiers\nbordered :: String\nbordered = \"textarea-bordered\"\n\nghost :: String\nghost = \"textarea-ghost\"\n"},{"moduleName":"DaisyUI.ThemeController.Stories","sourcePath":"test/DaisyUI/ThemeController/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.ThemeController.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.ThemeController as TC\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input, label)\nimport YogaStories.Story (story) as S\n\nmkThemeController :: {} -> JSX\nmkThemeController = component \"ThemeControllerStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-6\" }\n [ input { type: \"checkbox\", value: \"synthwave\", className: \"toggle \" <> TC.themeControllerCls }\n , FC.fieldset\n [ FC.fieldsetLegend \"Theme\"\n , label { className: \"flex gap-2 cursor-pointer items-center\" }\n [ input { type: \"radio\", name: \"theme-radios\", className: \"radio radio-sm \" <> TC.themeControllerCls, value: \"default\" }\n , div {} \"Default\"\n ]\n , label { className: \"flex gap-2 cursor-pointer items-center\" }\n [ input { type: \"radio\", name: \"theme-radios\", className: \"radio radio-sm \" <> TC.themeControllerCls, value: \"retro\" }\n , div {} \"Retro\"\n ]\n , label { className: \"flex gap-2 cursor-pointer items-center\" }\n [ input { type: \"radio\", name: \"theme-radios\", className: \"radio radio-sm \" <> TC.themeControllerCls, value: \"cyberpunk\" }\n , div {} \"Cyberpunk\"\n ]\n , label { className: \"flex gap-2 cursor-pointer items-center\" }\n [ input { type: \"radio\", name: \"theme-radios\", className: \"radio radio-sm \" <> TC.themeControllerCls, value: \"valentine\" }\n , div {} \"Valentine\"\n ]\n , label { className: \"flex gap-2 cursor-pointer items-center\" }\n [ input { type: \"radio\", name: \"theme-radios\", className: \"radio radio-sm \" <> TC.themeControllerCls, value: \"aqua\" }\n , div {} \"Aqua\"\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkThemeController {}\n","componentSourceCode":"module DaisyUI.ThemeController where\n\nthemeControllerCls :: String\nthemeControllerCls = \"theme-controller\"\n"},{"moduleName":"DaisyUI.Timeline.Stories","sourcePath":"test/DaisyUI/Timeline/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Timeline.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Timeline as TL\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkTimeline :: {} -> JSX\nmkTimeline = component \"TimelineStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ TL.timeline\n [ TL.timelineItem\n [ TL.timelineStart \"1984\"\n , TL.timelineMiddle ([] :: Array JSX)\n , TL.timelineEnd \"First Macintosh computer\"\n , TL.timelineLine\n ]\n , TL.timelineItem\n [ TL.timelineLine\n , TL.timelineStart \"1998\"\n , TL.timelineMiddle ([] :: Array JSX)\n , TL.timelineEnd \"iMac\"\n , TL.timelineLine\n ]\n , TL.timelineItem\n [ TL.timelineLine\n , TL.timelineStart \"2001\"\n , TL.timelineMiddle ([] :: Array JSX)\n , TL.timelineEnd \"iPod\"\n , TL.timelineLine\n ]\n , TL.timelineItem\n [ TL.timelineLine\n , TL.timelineStart \"2007\"\n , TL.timelineMiddle ([] :: Array JSX)\n , TL.timelineEnd \"iPhone\"\n , TL.timelineLine\n ]\n , TL.timelineItem\n [ TL.timelineLine\n , TL.timelineStart \"2015\"\n , TL.timelineMiddle ([] :: Array JSX)\n , TL.timelineEnd \"Apple Watch\"\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkTimeline {}\n","componentSourceCode":"module DaisyUI.Timeline where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (ul, li, div, hr)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ntimeline :: forall kids. IsJSX kids => kids -> JSX\ntimeline = ul { className: \"timeline\" }\n\ntimelineVertical :: forall kids. IsJSX kids => kids -> JSX\ntimelineVertical = ul { className: \"timeline timeline-vertical\" }\n\ntimelineItem :: forall kids. IsJSX kids => kids -> JSX\ntimelineItem = li {}\n\ntimelineStart :: forall kids. IsJSX kids => kids -> JSX\ntimelineStart = div { className: \"timeline-start\" }\n\ntimelineMiddle :: forall kids. IsJSX kids => kids -> JSX\ntimelineMiddle = div { className: \"timeline-middle\" }\n\ntimelineEnd :: forall kids. IsJSX kids => kids -> JSX\ntimelineEnd = div { className: \"timeline-end\" }\n\ntimelineLine :: JSX\ntimelineLine = hr {}\n"},{"moduleName":"DaisyUI.Toast.Stories","sourcePath":"test/DaisyUI/Toast/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Toast.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Toast as T\nimport DaisyUI.Alert as A\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, span)\nimport YogaStories.Story (story) as S\n\nmkToast :: {} -> JSX\nmkToast = component \"ToastStory\" \\_ -> React.do\n pure $ div { className: \"relative h-64 w-full [&_.toast]:static\" }\n [ T.toast T.toastEnd\n [ A.alert A.info [ span {} \"New mail arrived.\" ]\n , A.alert A.success [ span {} \"Message sent successfully.\" ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkToast {}\n","componentSourceCode":"module DaisyUI.Toast where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ntoast :: String -> forall kids. IsJSX kids => kids -> JSX\ntoast position = div { className: \"toast\" <> \" \" <> position }\n\n-- Positions\ntoastStart :: String\ntoastStart = \"toast-start\"\n\ntoastCenter :: String\ntoastCenter = \"toast-center\"\n\ntoastEnd :: String\ntoastEnd = \"toast-end\"\n\ntoastTop :: String\ntoastTop = \"toast-top\"\n\ntoastMiddle :: String\ntoastMiddle = \"toast-middle\"\n\ntoastBottom :: String\ntoastBottom = \"toast-bottom\"\n"},{"moduleName":"DaisyUI.Toggle.Stories","sourcePath":"test/DaisyUI/Toggle/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Toggle.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Toggle as T\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input, label, span)\nimport YogaStories.Story (story) as S\n\nmkToggle :: {} -> JSX\nmkToggle = component \"ToggleStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"Notifications\"\n , label { className: \"flex items-center gap-2 cursor-pointer\" }\n [ input { type: \"checkbox\", className: T.toggleCls \"\" \"\", checked: true }\n , span {} \"Email\"\n ]\n , label { className: \"flex items-center gap-2 cursor-pointer\" }\n [ input { type: \"checkbox\", className: T.toggleCls \"\" \"\" }\n , span {} \"Push\"\n ]\n ]\n , div { className: \"flex gap-2\" }\n [ input { type: \"checkbox\", className: T.toggleCls T.primary \"\", checked: true }\n , input { type: \"checkbox\", className: T.toggleCls T.secondary \"\", checked: true }\n , input { type: \"checkbox\", className: T.toggleCls T.accent \"\", checked: true }\n , input { type: \"checkbox\", className: T.toggleCls T.success \"\", checked: true }\n , input { type: \"checkbox\", className: T.toggleCls T.warning \"\", checked: true }\n , input { type: \"checkbox\", className: T.toggleCls T.info \"\", checked: true }\n , input { type: \"checkbox\", className: T.toggleCls T.error \"\", checked: true }\n ]\n , div { className: \"flex gap-2 items-center\" }\n [ input { type: \"checkbox\", className: T.toggleCls \"\" T.lg, checked: true }\n , input { type: \"checkbox\", className: T.toggleCls \"\" \"\", checked: true }\n , input { type: \"checkbox\", className: T.toggleCls \"\" T.sm, checked: true }\n , input { type: \"checkbox\", className: T.toggleCls \"\" T.xs, checked: true }\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkToggle {}\n","componentSourceCode":"module DaisyUI.Toggle where\n\nimport Prelude\n\ntoggleCls :: String -> String -> String\ntoggleCls color size = \"toggle\" <> \" \" <> color <> \" \" <> size\n\n-- Colors\nprimary :: String\nprimary = \"toggle-primary\"\n\nsecondary :: String\nsecondary = \"toggle-secondary\"\n\naccent :: String\naccent = \"toggle-accent\"\n\ninfo :: String\ninfo = \"toggle-info\"\n\nsuccess :: String\nsuccess = \"toggle-success\"\n\nwarning :: String\nwarning = \"toggle-warning\"\n\nerror :: String\nerror = \"toggle-error\"\n\n-- Sizes\nxs :: String\nxs = \"toggle-xs\"\n\nsm :: String\nsm = \"toggle-sm\"\n\nmd :: String\nmd = \"toggle-md\"\n\nlg :: String\nlg = \"toggle-lg\"\n"},{"moduleName":"DaisyUI.Tooltip.Stories","sourcePath":"test/DaisyUI/Tooltip/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Tooltip.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Tooltip as Tip\nimport DaisyUI.Button as Btn\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div)\nimport YogaStories.Story (story) as S\n\nmkTooltip :: {} -> JSX\nmkTooltip = component \"TooltipStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-8 items-center p-16\" }\n [ Tip.tooltip \"hello\" \"\"\n [ Btn.btn \"\" \"\" \"Hover me\" ]\n , div { className: \"flex gap-4\" }\n [ Tip.tooltip \"top\" Tip.top [ Btn.btn \"\" \"\" \"top\" ]\n , Tip.tooltip \"bottom\" Tip.bottom [ Btn.btn \"\" \"\" \"bottom\" ]\n , Tip.tooltip \"left\" Tip.left [ Btn.btn \"\" \"\" \"left\" ]\n , Tip.tooltip \"right\" Tip.right [ Btn.btn \"\" \"\" \"right\" ]\n ]\n , div { className: \"flex gap-4\" }\n [ Tip.tooltip \"primary\" Tip.primary [ Btn.btn Btn.primary \"\" \"primary\" ]\n , Tip.tooltip \"secondary\" Tip.secondary [ Btn.btn Btn.secondary \"\" \"secondary\" ]\n , Tip.tooltip \"accent\" Tip.accent [ Btn.btn Btn.accent \"\" \"accent\" ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkTooltip {}\n","componentSourceCode":"module DaisyUI.Tooltip where\n\nimport Prelude\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\ntooltip :: String -> String -> forall kids. IsJSX kids => kids -> JSX\ntooltip tip position = div { className: \"tooltip\" <> \" \" <> position, \"data-tip\": tip }\n\n-- Positions\ntop :: String\ntop = \"tooltip-top\"\n\nbottom :: String\nbottom = \"tooltip-bottom\"\n\nleft :: String\nleft = \"tooltip-left\"\n\nright :: String\nright = \"tooltip-right\"\n\n-- Colors\nprimary :: String\nprimary = \"tooltip-primary\"\n\nsecondary :: String\nsecondary = \"tooltip-secondary\"\n\naccent :: String\naccent = \"tooltip-accent\"\n\ninfo :: String\ninfo = \"tooltip-info\"\n\nsuccess :: String\nsuccess = \"tooltip-success\"\n\nwarning :: String\nwarning = \"tooltip-warning\"\n\nerror :: String\nerror = \"tooltip-error\"\n"},{"moduleName":"DaisyUI.Validator.Stories","sourcePath":"test/DaisyUI/Validator/Stories.purs","exports":["default"],"sourceCode":"module DaisyUI.Validator.Stories (default) where\n\nimport Prelude hiding (div)\n\nimport React.Basic (JSX)\nimport DaisyUI.Validator as V\nimport DaisyUI.Input as I\nimport DaisyUI.FormControl as FC\nimport Yoga.React (component)\nimport Yoga.React.DOM.HTML (div, input)\nimport YogaStories.Story (story) as S\n\nmkValidator :: {} -> JSX\nmkValidator = component \"ValidatorStory\" \\_ -> React.do\n pure $ div { className: \"flex flex-col gap-4 w-full max-w-xs\" }\n [ FC.fieldset\n [ FC.fieldsetLegend \"Email\"\n , div { className: V.validatorCls }\n [ input { type: \"email\", className: I.inputCls \"\" \"\", required: true, placeholder: \"mail@site.com\" }\n , V.validatorHint \"Enter valid email address\"\n ]\n ]\n , FC.fieldset\n [ FC.fieldsetLegend \"Username\"\n , div { className: V.validatorCls }\n [ input { type: \"text\", className: I.inputCls \"\" \"\", required: true, placeholder: \"Username\" }\n , V.validatorHint \"Required\"\n ]\n ]\n ]\n\ndefault :: JSX\ndefault = S.story \"default\" mkValidator {}\n","componentSourceCode":"module DaisyUI.Validator where\n\nimport React.Basic (JSX)\nimport Yoga.React.DOM.HTML (div)\nimport Yoga.React.DOM.Internal (class IsJSX)\n\nvalidatorCls :: String\nvalidatorCls = \"validator\"\n\nvalidatorHint :: forall kids. IsJSX kids => kids -> JSX\nvalidatorHint = div { className: \"validator-hint\" }\n"}]
output-es/Control.Alt/index.jsnew file+5
@@ -0,0 +1,5 @@
1+import * as Data$dFunctor from "../Data.Functor/index.js";
2+import * as Data$dSemigroup from "../Data.Semigroup/index.js";
3+const altArray = {alt: Data$dSemigroup.concatArray, Functor0: () => Data$dFunctor.functorArray};
4+const alt = dict => dict.alt;
5+export {alt, altArray};
output-es/Control.Alternative/index.jsnew file+11
@@ -0,0 +1,11 @@
1+import * as Control$dApplicative from "../Control.Applicative/index.js";
2+import * as Control$dPlus from "../Control.Plus/index.js";
3+const guard = dictAlternative => {
4+ const empty = dictAlternative.Plus1().empty;
5+ return v => {
6+ if (v) { return dictAlternative.Applicative0().pure(); }
7+ return empty;
8+ };
9+};
10+const alternativeArray = {Applicative0: () => Control$dApplicative.applicativeArray, Plus1: () => Control$dPlus.plusArray};
11+export {alternativeArray, guard};
output-es/Control.Applicative.Indexed/index.jsnew file+12
@@ -0,0 +1,12 @@
1+import * as $runtime from "../runtime.js";
2+const ipure = dict => dict.ipure;
3+const iunless = dictIxApplicative => v => v1 => {
4+ if (!v) { return v1; }
5+ if (v) { return dictIxApplicative.ipure(); }
6+ $runtime.fail();
7+};
8+const iwhen = dictIxApplicative => v => v1 => {
9+ if (v) { return v1; }
10+ return dictIxApplicative.ipure();
11+};
12+export {ipure, iunless, iwhen};
output-es/Control.Applicative/index.jsnew file+18
@@ -0,0 +1,18 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dApply from "../Control.Apply/index.js";
3+import * as Type$dProxy from "../Type.Proxy/index.js";
4+const pure = dict => dict.pure;
5+const unless = dictApplicative => v => v1 => {
6+ if (!v) { return v1; }
7+ if (v) { return dictApplicative.pure(); }
8+ $runtime.fail();
9+};
10+const when = dictApplicative => v => v1 => {
11+ if (v) { return v1; }
12+ return dictApplicative.pure();
13+};
14+const liftA1 = dictApplicative => f => a => dictApplicative.Apply0().apply(dictApplicative.pure(f))(a);
15+const applicativeProxy = {pure: v => Type$dProxy.Proxy, Apply0: () => Control$dApply.applyProxy};
16+const applicativeFn = {pure: x => v => x, Apply0: () => Control$dApply.applyFn};
17+const applicativeArray = {pure: x => [x], Apply0: () => Control$dApply.applyArray};
18+export {applicativeArray, applicativeFn, applicativeProxy, liftA1, pure, unless, when};
output-es/Control.Apply.Indexed/index.jsnew file+6
@@ -0,0 +1,6 @@
1+import * as Data$dFunction from "../Data.Function/index.js";
2+const identity = x => x;
3+const iapply = dict => dict.iapply;
4+const iapplyFirst = dictIxApply => a => b => dictIxApply.iapply(dictIxApply.IxFunctor0().imap(Data$dFunction.const)(a))(b);
5+const iapplySecond = dictIxApply => a => b => dictIxApply.iapply(dictIxApply.IxFunctor0().imap(v => identity)(a))(b);
6+export {iapply, iapplyFirst, iapplySecond, identity};
output-es/Control.Apply/foreign.jsnew file+15
@@ -0,0 +1,15 @@
1+export const arrayApply = function (fs) {
2+ return function (xs) {
3+ var l = fs.length;
4+ var k = xs.length;
5+ var result = new Array(l*k);
6+ var n = 0;
7+ for (var i = 0; i < l; i++) {
8+ var f = fs[i];
9+ for (var j = 0; j < k; j++) {
10+ result[n++] = f(xs[j]);
11+ }
12+ }
13+ return result;
14+ };
15+};
output-es/Control.Apply/index.jsnew file+17
@@ -0,0 +1,17 @@
1+import * as Data$dFunction from "../Data.Function/index.js";
2+import * as Data$dFunctor from "../Data.Functor/index.js";
3+import * as Type$dProxy from "../Type.Proxy/index.js";
4+import {arrayApply} from "./foreign.js";
5+const identity = x => x;
6+const applyProxy = {apply: v => v1 => Type$dProxy.Proxy, Functor0: () => Data$dFunctor.functorProxy};
7+const applyFn = {apply: f => g => x => f(x)(g(x)), Functor0: () => Data$dFunctor.functorFn};
8+const applyArray = {apply: arrayApply, Functor0: () => Data$dFunctor.functorArray};
9+const apply = dict => dict.apply;
10+const applyFirst = dictApply => a => b => dictApply.apply(dictApply.Functor0().map(Data$dFunction.const)(a))(b);
11+const applySecond = dictApply => a => b => dictApply.apply(dictApply.Functor0().map(v => identity)(a))(b);
12+const lift2 = dictApply => f => a => b => dictApply.apply(dictApply.Functor0().map(f)(a))(b);
13+const lift3 = dictApply => f => a => b => c => dictApply.apply(dictApply.apply(dictApply.Functor0().map(f)(a))(b))(c);
14+const lift4 = dictApply => f => a => b => c => d => dictApply.apply(dictApply.apply(dictApply.apply(dictApply.Functor0().map(f)(a))(b))(c))(d);
15+const lift5 = dictApply => f => a => b => c => d => e => dictApply.apply(dictApply.apply(dictApply.apply(dictApply.apply(dictApply.Functor0().map(f)(a))(b))(c))(d))(e);
16+export {apply, applyArray, applyFirst, applyFn, applyProxy, applySecond, identity, lift2, lift3, lift4, lift5};
17+export * from "./foreign.js";
output-es/Control.Biapplicative/index.jsnew file+5
@@ -0,0 +1,5 @@
1+import * as Control$dBiapply from "../Control.Biapply/index.js";
2+import * as Data$dTuple from "../Data.Tuple/index.js";
3+const bipure = dict => dict.bipure;
4+const biapplicativeTuple = {bipure: Data$dTuple.Tuple, Biapply0: () => Control$dBiapply.biapplyTuple};
5+export {biapplicativeTuple, bipure};
output-es/Control.Biapply/index.jsnew file+11
@@ -0,0 +1,11 @@
1+import * as Data$dBifunctor from "../Data.Bifunctor/index.js";
2+import * as Data$dFunction from "../Data.Function/index.js";
3+import * as Data$dTuple from "../Data.Tuple/index.js";
4+const identity = x => x;
5+const biapplyTuple = {biapply: v => v1 => Data$dTuple.$Tuple(v._1(v1._1), v._2(v1._2)), Bifunctor0: () => Data$dBifunctor.bifunctorTuple};
6+const biapply = dict => dict.biapply;
7+const biapplyFirst = dictBiapply => a => b => dictBiapply.biapply(dictBiapply.Bifunctor0().bimap(v => identity)(v => identity)(a))(b);
8+const biapplySecond = dictBiapply => a => b => dictBiapply.biapply(dictBiapply.Bifunctor0().bimap(Data$dFunction.const)(Data$dFunction.const)(a))(b);
9+const bilift2 = dictBiapply => f => g => a => b => dictBiapply.biapply(dictBiapply.Bifunctor0().bimap(f)(g)(a))(b);
10+const bilift3 = dictBiapply => f => g => a => b => c => dictBiapply.biapply(dictBiapply.biapply(dictBiapply.Bifunctor0().bimap(f)(g)(a))(b))(c);
11+export {biapply, biapplyFirst, biapplySecond, biapplyTuple, bilift2, bilift3, identity};
output-es/Control.Bind.Indexed/index.jsnew file+9
@@ -0,0 +1,9 @@
1+const identity = x => x;
2+const idiscard = dict => dict.idiscard;
3+const ibind = dict => dict.ibind;
4+const ibindFlipped = dictIxBind => b => a => dictIxBind.ibind(a)(b);
5+const ijoin = dictIxBind => m => dictIxBind.ibind(m)(identity);
6+const ixDiscardUnit = {idiscard: dictIxBind => dictIxBind.ibind};
7+const composeiKleisliFlipped = dictIxBind => f => g => a => dictIxBind.ibind(g(a))(f);
8+const composeiKleisli = dictIxBind => f => g => a => dictIxBind.ibind(f(a))(g);
9+export {composeiKleisli, composeiKleisliFlipped, ibind, ibindFlipped, identity, idiscard, ijoin, ixDiscardUnit};
output-es/Control.Bind/foreign.jsnew file+21
@@ -0,0 +1,21 @@
1+export const arrayBind =
2+ typeof Array.prototype.flatMap === "function"
3+ ? function (arr) {
4+ return function (f) {
5+ return arr.flatMap(f);
6+ };
7+ }
8+ : function (arr) {
9+ return function (f) {
10+ var result = [];
11+ var l = arr.length;
12+ for (var i = 0; i < l; i++) {
13+ var xs = f(arr[i]);
14+ var k = xs.length;
15+ for (var j = 0; j < k; j++) {
16+ result.push(xs[j]);
17+ }
18+ }
19+ return result;
20+ };
21+ };
output-es/Control.Bind/index.jsnew file+21
@@ -0,0 +1,21 @@
1+import * as Control$dApply from "../Control.Apply/index.js";
2+import * as Type$dProxy from "../Type.Proxy/index.js";
3+import {arrayBind} from "./foreign.js";
4+const identity = x => x;
5+const discard = dict => dict.discard;
6+const bindProxy = {bind: v => v1 => Type$dProxy.Proxy, Apply0: () => Control$dApply.applyProxy};
7+const bindFn = {bind: m => f => x => f(m(x))(x), Apply0: () => Control$dApply.applyFn};
8+const bindArray = {bind: arrayBind, Apply0: () => Control$dApply.applyArray};
9+const bind = dict => dict.bind;
10+const bindFlipped = dictBind => b => a => dictBind.bind(a)(b);
11+const composeKleisliFlipped = dictBind => f => g => a => dictBind.bind(g(a))(f);
12+const composeKleisli = dictBind => f => g => a => dictBind.bind(f(a))(g);
13+const discardProxy = {discard: dictBind => dictBind.bind};
14+const discardUnit = {discard: dictBind => dictBind.bind};
15+const ifM = dictBind => cond => t => f => dictBind.bind(cond)(cond$p => {
16+ if (cond$p) { return t; }
17+ return f;
18+});
19+const join = dictBind => m => dictBind.bind(m)(identity);
20+export {bind, bindArray, bindFlipped, bindFn, bindProxy, composeKleisli, composeKleisliFlipped, discard, discardProxy, discardUnit, identity, ifM, join};
21+export * from "./foreign.js";
output-es/Control.Category/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Control$dSemigroupoid from "../Control.Semigroupoid/index.js";
2+const identity = dict => dict.identity;
3+const categoryFn = {identity: x => x, Semigroupoid0: () => Control$dSemigroupoid.semigroupoidFn};
4+export {categoryFn, identity};
output-es/Control.Comonad.Cofree.Class/index.jsnew file+43
@@ -0,0 +1,43 @@
1+import * as Control$dComonad$dCofree from "../Control.Comonad.Cofree/index.js";
2+import * as Control$dComonad$dEnv$dTrans from "../Control.Comonad.Env.Trans/index.js";
3+import * as Control$dComonad$dStore$dTrans from "../Control.Comonad.Store.Trans/index.js";
4+import * as Control$dComonad$dTraced$dTrans from "../Control.Comonad.Traced.Trans/index.js";
5+import * as Data$dTuple from "../Data.Tuple/index.js";
6+const unwrapCofree = dict => dict.unwrapCofree;
7+const comonadCofreeTracedT = dictFunctor => dictComonadCofree => {
8+ const Functor0 = dictComonadCofree.Functor0();
9+ const comonadTracedT = Control$dComonad$dTraced$dTrans.comonadTracedT(dictComonadCofree.Comonad1());
10+ return dictMonoid => {
11+ const comonadTracedT1 = comonadTracedT(dictMonoid);
12+ return {unwrapCofree: v => Functor0.map(Control$dComonad$dTraced$dTrans.TracedT)(dictComonadCofree.unwrapCofree(v)), Functor0: () => Functor0, Comonad1: () => comonadTracedT1};
13+ };
14+};
15+const comonadCofreeStoreT = dictFunctor => dictComonadCofree => {
16+ const Functor0 = dictComonadCofree.Functor0();
17+ const comonadStoreT = Control$dComonad$dStore$dTrans.comonadStoreT(dictComonadCofree.Comonad1());
18+ return {
19+ unwrapCofree: v => {
20+ const $0 = v._2;
21+ return Functor0.map(x => Data$dTuple.$Tuple(x, $0))(dictComonadCofree.unwrapCofree(v._1));
22+ },
23+ Functor0: () => Functor0,
24+ Comonad1: () => comonadStoreT
25+ };
26+};
27+const comonadCofreeEnvT = dictFunctor => dictComonadCofree => {
28+ const Functor0 = dictComonadCofree.Functor0();
29+ const comonadEnvT = Control$dComonad$dEnv$dTrans.comonadEnvT(dictComonadCofree.Comonad1());
30+ return {
31+ unwrapCofree: v => {
32+ const $0 = v._1;
33+ return Functor0.map(x => Data$dTuple.$Tuple($0, x))(dictComonadCofree.unwrapCofree(v._2));
34+ },
35+ Functor0: () => Functor0,
36+ Comonad1: () => comonadEnvT
37+ };
38+};
39+const comonadCofreeCofree = dictFunctor => {
40+ const extendCofree1 = Control$dComonad$dCofree.extendCofree(dictFunctor);
41+ return {unwrapCofree: Control$dComonad$dCofree.tail, Functor0: () => dictFunctor, Comonad1: () => ({extract: Control$dComonad$dCofree.head, Extend0: () => extendCofree1})};
42+};
43+export {comonadCofreeCofree, comonadCofreeEnvT, comonadCofreeStoreT, comonadCofreeTracedT, unwrapCofree};
output-es/Control.Comonad.Cofree/index.jsnew file+255
@@ -0,0 +1,255 @@
1+// | The _cofree comonad_ for a `Functor`.
2+import * as Control$dMonad$dFree from "../Control.Monad.Free/index.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Control$dMonad$dState$dTrans from "../Control.Monad.State.Trans/index.js";
5+import * as Data$dIdentity from "../Data.Identity/index.js";
6+import * as Data$dLazy from "../Data.Lazy/index.js";
7+import * as Data$dTuple from "../Data.Tuple/index.js";
8+const identity = x => x;
9+const state = /* #__PURE__ */ (() => Control$dMonad$dState$dTrans.monadStateStateT(Data$dIdentity.monadIdentity).state)();
10+const monadRecStateT = /* #__PURE__ */ Control$dMonad$dState$dTrans.monadRecStateT(Control$dMonad$dRec$dClass.monadRecIdentity);
11+const tail = v => Data$dLazy.force(v)._2;
12+const mkCofree = a => t => Data$dLazy.defer(v => Data$dTuple.$Tuple(a, t));
13+const lazyCofree = {defer: k => Data$dLazy.defer(v => Data$dLazy.force(k()))};
14+const hoistCofree = dictFunctor => nat => v => {
15+ const $0 = dictFunctor.map(hoistCofree(dictFunctor)(nat));
16+ return Data$dLazy.defer(v$1 => {
17+ const $1 = Data$dLazy.force(v);
18+ return Data$dTuple.$Tuple($1._1, nat($0($1._2)));
19+ });
20+};
21+const head = v => Data$dLazy.force(v)._1;
22+const functorCofree = dictFunctor => (
23+ {
24+ map: f => {
25+ const loop = v => Data$dLazy.defer(v$1 => {
26+ const $0 = Data$dLazy.force(v);
27+ return Data$dTuple.$Tuple(f($0._1), dictFunctor.map(loop)($0._2));
28+ });
29+ return loop;
30+ }
31+ }
32+);
33+const functorWithIndexCofree = dictFunctor => {
34+ const functorCofree1 = functorCofree(dictFunctor);
35+ return {
36+ mapWithIndex: f => {
37+ const loop = n => v => Data$dLazy.defer(v$1 => {
38+ const $0 = Data$dLazy.force(v);
39+ return Data$dTuple.$Tuple(f(n)($0._1), dictFunctor.map(loop(n + 1 | 0))($0._2));
40+ });
41+ return loop(0);
42+ },
43+ Functor0: () => functorCofree1
44+ };
45+};
46+const foldableCofree = dictFoldable => (
47+ {
48+ foldr: f => {
49+ const go = fa => b => f(Data$dLazy.force(fa)._1)(dictFoldable.foldr(go)(b)(Data$dLazy.force(fa)._2));
50+ return b => a => go(a)(b);
51+ },
52+ foldl: f => {
53+ const go = b => fa => dictFoldable.foldl(go)(f(b)(Data$dLazy.force(fa)._1))(Data$dLazy.force(fa)._2);
54+ return go;
55+ },
56+ foldMap: dictMonoid => {
57+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
58+ return f => {
59+ const go = fa => dictMonoid.Semigroup0().append(f(Data$dLazy.force(fa)._1))(foldMap1(go)(Data$dLazy.force(fa)._2));
60+ return go;
61+ };
62+ }
63+ }
64+);
65+const foldableWithIndexCofree = dictFoldable => {
66+ const foldableCofree1 = foldableCofree(dictFoldable);
67+ return {
68+ foldrWithIndex: f => {
69+ const go = ix => b => fa => f(ix)(Data$dLazy.force(fa)._1)(dictFoldable.foldr((() => {
70+ const $0 = go(ix + 1 | 0);
71+ return b$1 => a => $0(a)(b$1);
72+ })())(b)(Data$dLazy.force(fa)._2));
73+ return go(0);
74+ },
75+ foldlWithIndex: f => {
76+ const go = ix => b => fa => dictFoldable.foldl(go(ix + 1 | 0))(f(ix)(b)(Data$dLazy.force(fa)._1))(Data$dLazy.force(fa)._2);
77+ return go(0);
78+ },
79+ foldMapWithIndex: dictMonoid => {
80+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
81+ return f => {
82+ const go = ix => fa => dictMonoid.Semigroup0().append(f(ix)(Data$dLazy.force(fa)._1))(foldMap1(go(ix + 1 | 0))(Data$dLazy.force(fa)._2));
83+ return go(0);
84+ };
85+ },
86+ Foldable0: () => foldableCofree1
87+ };
88+};
89+const traversableCofree = dictTraversable => {
90+ const functorCofree1 = functorCofree(dictTraversable.Functor0());
91+ const foldableCofree1 = foldableCofree(dictTraversable.Foldable1());
92+ return {
93+ sequence: dictApplicative => traversableCofree(dictTraversable).traverse(dictApplicative)(identity),
94+ traverse: dictApplicative => {
95+ const Apply0 = dictApplicative.Apply0();
96+ const traverse1 = dictTraversable.traverse(dictApplicative);
97+ return f => {
98+ const loop = ta => Apply0.apply(Apply0.Functor0().map(mkCofree)(f(Data$dLazy.force(ta)._1)))(traverse1(loop)(Data$dLazy.force(ta)._2));
99+ return loop;
100+ };
101+ },
102+ Functor0: () => functorCofree1,
103+ Foldable1: () => foldableCofree1
104+ };
105+};
106+const traversableWithIndexCofree = dictTraversable => {
107+ const functorWithIndexCofree1 = functorWithIndexCofree(dictTraversable.Functor0());
108+ const foldableWithIndexCofree1 = foldableWithIndexCofree(dictTraversable.Foldable1());
109+ const traversableCofree1 = traversableCofree(dictTraversable);
110+ return {
111+ traverseWithIndex: dictApplicative => {
112+ const Apply0 = dictApplicative.Apply0();
113+ const traverse1 = dictTraversable.traverse(dictApplicative);
114+ return f => {
115+ const loop = ix => ta => Apply0.apply(Apply0.Functor0().map(mkCofree)(f(ix)(Data$dLazy.force(ta)._1)))(traverse1(loop(ix + 1 | 0))(Data$dLazy.force(ta)._2));
116+ return loop(0);
117+ };
118+ },
119+ FunctorWithIndex0: () => functorWithIndexCofree1,
120+ FoldableWithIndex1: () => foldableWithIndexCofree1,
121+ Traversable2: () => traversableCofree1
122+ };
123+};
124+const extendCofree = dictFunctor => {
125+ const functorCofree1 = functorCofree(dictFunctor);
126+ return {
127+ extend: f => {
128+ const loop = v => Data$dLazy.defer(v$1 => Data$dTuple.$Tuple(f(v), dictFunctor.map(loop)(Data$dLazy.force(v)._2)));
129+ return loop;
130+ },
131+ Functor0: () => functorCofree1
132+ };
133+};
134+const eqCofree = dictEq1 => dictEq => (
135+ {eq: x => y => dictEq.eq(Data$dLazy.force(x)._1)(Data$dLazy.force(y)._1) && dictEq1.eq1(eqCofree(dictEq1)(dictEq))(Data$dLazy.force(x)._2)(Data$dLazy.force(y)._2)}
136+);
137+const ordCofree = dictOrd1 => {
138+ const eqCofree1 = eqCofree(dictOrd1.Eq10());
139+ return dictOrd => {
140+ const eqCofree2 = eqCofree1(dictOrd.Eq0());
141+ return {
142+ compare: x => y => {
143+ const v = dictOrd.compare(Data$dLazy.force(x)._1)(Data$dLazy.force(y)._1);
144+ if (v === "EQ") { return dictOrd1.compare1(ordCofree(dictOrd1)(dictOrd))(Data$dLazy.force(x)._2)(Data$dLazy.force(y)._2); }
145+ return v;
146+ },
147+ Eq0: () => eqCofree2
148+ };
149+ };
150+};
151+const eq1Cofree = dictEq1 => ({eq1: dictEq => eqCofree(dictEq1)(dictEq).eq});
152+const ord1Cofree = dictOrd1 => {
153+ const ordCofree1 = ordCofree(dictOrd1);
154+ const $0 = dictOrd1.Eq10();
155+ const eq1Cofree1 = {eq1: dictEq => eqCofree($0)(dictEq).eq};
156+ return {compare1: dictOrd => ordCofree1(dictOrd).compare, Eq10: () => eq1Cofree1};
157+};
158+const deferCofree = x => Data$dLazy.defer(x);
159+const semigroupCofree = dictApply => dictSemigroup => (
160+ {
161+ append: x => y => Data$dLazy.defer(v => Data$dTuple.$Tuple(
162+ dictSemigroup.append(Data$dLazy.force(x)._1)(Data$dLazy.force(y)._1),
163+ dictApply.apply(dictApply.Functor0().map(semigroupCofree(dictApply)(dictSemigroup).append)(Data$dLazy.force(x)._2))(Data$dLazy.force(y)._2)
164+ ))
165+ }
166+);
167+const monoidCofree = dictApplicative => {
168+ const semigroupCofree1 = semigroupCofree(dictApplicative.Apply0());
169+ return dictMonoid => {
170+ const mempty = dictMonoid.mempty;
171+ const semigroupCofree2 = semigroupCofree1(dictMonoid.Semigroup0());
172+ return {mempty: Data$dLazy.defer(v => Data$dTuple.$Tuple(mempty, dictApplicative.pure(monoidCofree(dictApplicative)(dictMonoid).mempty))), Semigroup0: () => semigroupCofree2};
173+ };
174+};
175+const comonadCofree = dictFunctor => {
176+ const extendCofree1 = extendCofree(dictFunctor);
177+ return {extract: head, Extend0: () => extendCofree1};
178+};
179+const explore = dictFunctor => {
180+ const runFreeM = Control$dMonad$dFree.runFreeM(dictFunctor)(monadRecStateT);
181+ return dictFunctor1 => pair => m => w => {
182+ const v = runFreeM(ff => state(cof => pair(dictFunctor.map(Data$dTuple.Tuple)(ff))(Data$dLazy.force(cof)._2)))(m)(w);
183+ return v._1(Data$dLazy.force(v._2)._1);
184+ };
185+};
186+const exploreM = dictFunctor => dictFunctor1 => dictMonadRec => {
187+ const runFreeM1 = Control$dMonad$dFree.runFreeM(dictFunctor)(Control$dMonad$dState$dTrans.monadRecStateT(dictMonadRec));
188+ return pair => m => w => dictMonadRec.Monad0().Bind1().Apply0().Functor0().map(v => v._1(Data$dLazy.force(v._2)._1))(runFreeM1(ff => cof => pair(dictFunctor.map(Data$dTuple.Tuple)(ff))(Data$dLazy.force(cof)._2))(m)(w));
189+};
190+const buildCofree = dictFunctor => k => s => Data$dLazy.defer(v => {
191+ const $0 = k(s);
192+ return Data$dTuple.$Tuple($0._1, dictFunctor.map(buildCofree(dictFunctor)(k))($0._2));
193+});
194+const monadCofree = dictAlternative => ({Applicative0: () => applicativeCofree(dictAlternative), Bind1: () => bindCofree(dictAlternative)});
195+const bindCofree = dictAlternative => {
196+ const Alt0 = dictAlternative.Plus1().Alt0();
197+ return {
198+ bind: fa => f => {
199+ const loop = fa$p => {
200+ const fh = f(Data$dLazy.force(fa$p)._1);
201+ const $0 = Data$dLazy.force(fh)._1;
202+ const $1 = Alt0.alt(Data$dLazy.force(fh)._2)(Alt0.Functor0().map(loop)(Data$dLazy.force(fa$p)._2));
203+ return Data$dLazy.defer(v => Data$dTuple.$Tuple($0, $1));
204+ };
205+ return loop(fa);
206+ },
207+ Apply0: () => applyCofree(dictAlternative)
208+ };
209+};
210+const applyCofree = dictAlternative => {
211+ const functorCofree1 = functorCofree(dictAlternative.Plus1().Alt0().Functor0());
212+ return {
213+ apply: (() => {
214+ const $0 = bindCofree(dictAlternative);
215+ return f => a => $0.bind(f)(f$p => $0.bind(a)(a$p => applicativeCofree(dictAlternative).pure(f$p(a$p))));
216+ })(),
217+ Functor0: () => functorCofree1
218+ };
219+};
220+const applicativeCofree = dictAlternative => {
221+ const empty = dictAlternative.Plus1().empty;
222+ return {pure: a => Data$dLazy.defer(v => Data$dTuple.$Tuple(a, empty)), Apply0: () => applyCofree(dictAlternative)};
223+};
224+export {
225+ applicativeCofree,
226+ applyCofree,
227+ bindCofree,
228+ buildCofree,
229+ comonadCofree,
230+ deferCofree,
231+ eq1Cofree,
232+ eqCofree,
233+ explore,
234+ exploreM,
235+ extendCofree,
236+ foldableCofree,
237+ foldableWithIndexCofree,
238+ functorCofree,
239+ functorWithIndexCofree,
240+ head,
241+ hoistCofree,
242+ identity,
243+ lazyCofree,
244+ mkCofree,
245+ monadCofree,
246+ monadRecStateT,
247+ monoidCofree,
248+ ord1Cofree,
249+ ordCofree,
250+ semigroupCofree,
251+ state,
252+ tail,
253+ traversableCofree,
254+ traversableWithIndexCofree
255+};
output-es/Control.Comonad.Env.Class/index.jsnew file+55
@@ -0,0 +1,55 @@
1+// | This module defines the `ComonadEnv` type class and its instances.
2+import * as Control$dComonad$dEnv$dTrans from "../Control.Comonad.Env.Trans/index.js";
3+import * as Control$dComonad$dStore$dTrans from "../Control.Comonad.Store.Trans/index.js";
4+import * as Control$dComonad$dTraced$dTrans from "../Control.Comonad.Traced.Trans/index.js";
5+import * as Data$dTuple from "../Data.Tuple/index.js";
6+const local = dict => dict.local;
7+const comonadAskTuple = {ask: Data$dTuple.fst, Comonad0: () => Data$dTuple.comonadTuple};
8+const comonadEnvTuple = {local: f => v => Data$dTuple.$Tuple(f(v._1), v._2), ComonadAsk0: () => comonadAskTuple};
9+const comonadAskEnvT = dictComonad => {
10+ const comonadEnvT = Control$dComonad$dEnv$dTrans.comonadEnvT(dictComonad);
11+ return {ask: v => v._1, Comonad0: () => comonadEnvT};
12+};
13+const comonadEnvEnvT = dictComonad => {
14+ const comonadEnvT = Control$dComonad$dEnv$dTrans.comonadEnvT(dictComonad);
15+ return {local: f => v => Data$dTuple.$Tuple(f(v._1), v._2), ComonadAsk0: () => ({ask: v => v._1, Comonad0: () => comonadEnvT})};
16+};
17+const ask = dict => dict.ask;
18+const asks = dictComonadAsk => f => x => f(dictComonadAsk.ask(x));
19+const comonadAskStoreT = dictComonadAsk => {
20+ const Comonad0 = dictComonadAsk.Comonad0();
21+ const comonadStoreT = Control$dComonad$dStore$dTrans.comonadStoreT(Comonad0);
22+ return {
23+ ask: x => dictComonadAsk.ask((() => {
24+ const $0 = x._2;
25+ return Comonad0.Extend0().Functor0().map(v1 => v1($0))(x._1);
26+ })()),
27+ Comonad0: () => comonadStoreT
28+ };
29+};
30+const comonadEnvStoreT = dictComonadEnv => {
31+ const comonadAskStoreT1 = comonadAskStoreT(dictComonadEnv.ComonadAsk0());
32+ return {local: f => v => Data$dTuple.$Tuple(dictComonadEnv.local(f)(v._1), v._2), ComonadAsk0: () => comonadAskStoreT1};
33+};
34+const comonadAskTracedT = dictComonadAsk => {
35+ const Comonad0 = dictComonadAsk.Comonad0();
36+ const comonadTracedT = Control$dComonad$dTraced$dTrans.comonadTracedT(Comonad0);
37+ return dictMonoid => {
38+ const comonadTracedT1 = comonadTracedT(dictMonoid);
39+ return {
40+ ask: (() => {
41+ const mempty = dictMonoid.mempty;
42+ return x => dictComonadAsk.ask(Comonad0.Extend0().Functor0().map(f => f(mempty))(x));
43+ })(),
44+ Comonad0: () => comonadTracedT1
45+ };
46+ };
47+};
48+const comonadEnvTracedT = dictComonadEnv => {
49+ const comonadAskTracedT1 = comonadAskTracedT(dictComonadEnv.ComonadAsk0());
50+ return dictMonoid => {
51+ const comonadAskTracedT2 = comonadAskTracedT1(dictMonoid);
52+ return {local: f => v => dictComonadEnv.local(f)(v), ComonadAsk0: () => comonadAskTracedT2};
53+ };
54+};
55+export {ask, asks, comonadAskEnvT, comonadAskStoreT, comonadAskTracedT, comonadAskTuple, comonadEnvEnvT, comonadEnvStoreT, comonadEnvTracedT, comonadEnvTuple, local};
output-es/Control.Comonad.Env.Trans/index.jsnew file+113
@@ -0,0 +1,113 @@
1+// | This module defines the environment comonad transformer, `EnvT`.
2+import * as Data$dTuple from "../Data.Tuple/index.js";
3+const EnvT = x => x;
4+const withEnvT = f => v => Data$dTuple.$Tuple(f(v._1), v._2);
5+const runEnvT = v => v;
6+const newtypeEnvT = {Coercible0: () => {}};
7+const mapEnvT = f => v => Data$dTuple.$Tuple(v._1, f(v._2));
8+const functorEnvT = dictFunctor => ({map: f => v => Data$dTuple.$Tuple(v._1, dictFunctor.map(f)(v._2))});
9+const functorWithIndexEnvT = dictFunctorWithIndex => {
10+ const $0 = dictFunctorWithIndex.Functor0();
11+ const functorEnvT1 = {map: f => v => Data$dTuple.$Tuple(v._1, $0.map(f)(v._2))};
12+ return {mapWithIndex: f => v => Data$dTuple.$Tuple(v._1, dictFunctorWithIndex.mapWithIndex(f)(v._2)), Functor0: () => functorEnvT1};
13+};
14+const foldableEnvT = dictFoldable => (
15+ {
16+ foldl: fn => a => v => dictFoldable.foldl(fn)(a)(v._2),
17+ foldr: fn => a => v => dictFoldable.foldr(fn)(a)(v._2),
18+ foldMap: dictMonoid => {
19+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
20+ return fn => v => foldMap1(fn)(v._2);
21+ }
22+ }
23+);
24+const foldableWithIndexEnvT = dictFoldableWithIndex => {
25+ const $0 = dictFoldableWithIndex.Foldable0();
26+ const foldableEnvT1 = {
27+ foldl: fn => a => v => $0.foldl(fn)(a)(v._2),
28+ foldr: fn => a => v => $0.foldr(fn)(a)(v._2),
29+ foldMap: dictMonoid => {
30+ const foldMap1 = $0.foldMap(dictMonoid);
31+ return fn => v => foldMap1(fn)(v._2);
32+ }
33+ };
34+ return {
35+ foldlWithIndex: f => a => v => dictFoldableWithIndex.foldlWithIndex(f)(a)(v._2),
36+ foldrWithIndex: f => a => v => dictFoldableWithIndex.foldrWithIndex(f)(a)(v._2),
37+ foldMapWithIndex: dictMonoid => {
38+ const foldMapWithIndex1 = dictFoldableWithIndex.foldMapWithIndex(dictMonoid);
39+ return f => v => foldMapWithIndex1(f)(v._2);
40+ },
41+ Foldable0: () => foldableEnvT1
42+ };
43+};
44+const traversableEnvT = dictTraversable => {
45+ const $0 = dictTraversable.Functor0();
46+ const functorEnvT1 = {map: f => v => Data$dTuple.$Tuple(v._1, $0.map(f)(v._2))};
47+ const $1 = dictTraversable.Foldable1();
48+ const foldableEnvT1 = {
49+ foldl: fn => a => v => $1.foldl(fn)(a)(v._2),
50+ foldr: fn => a => v => $1.foldr(fn)(a)(v._2),
51+ foldMap: dictMonoid => {
52+ const foldMap1 = $1.foldMap(dictMonoid);
53+ return fn => v => foldMap1(fn)(v._2);
54+ }
55+ };
56+ return {
57+ sequence: dictApplicative => {
58+ const sequence1 = dictTraversable.sequence(dictApplicative);
59+ return v => dictApplicative.Apply0().Functor0().map(Data$dTuple.Tuple(v._1))(sequence1(v._2));
60+ },
61+ traverse: dictApplicative => {
62+ const traverse1 = dictTraversable.traverse(dictApplicative);
63+ return f => v => dictApplicative.Apply0().Functor0().map(Data$dTuple.Tuple(v._1))(traverse1(f)(v._2));
64+ },
65+ Functor0: () => functorEnvT1,
66+ Foldable1: () => foldableEnvT1
67+ };
68+};
69+const traversableWithIndexEnvT = dictTraversableWithIndex => {
70+ const $0 = dictTraversableWithIndex.FunctorWithIndex0();
71+ const $1 = $0.Functor0();
72+ const functorWithIndexEnvT1 = (() => {
73+ const functorEnvT1 = {map: f => v => Data$dTuple.$Tuple(v._1, $1.map(f)(v._2))};
74+ return {mapWithIndex: f => v => Data$dTuple.$Tuple(v._1, $0.mapWithIndex(f)(v._2)), Functor0: () => functorEnvT1};
75+ })();
76+ const foldableWithIndexEnvT1 = foldableWithIndexEnvT(dictTraversableWithIndex.FoldableWithIndex1());
77+ const traversableEnvT1 = traversableEnvT(dictTraversableWithIndex.Traversable2());
78+ return {
79+ traverseWithIndex: dictApplicative => {
80+ const traverseWithIndex1 = dictTraversableWithIndex.traverseWithIndex(dictApplicative);
81+ return f => v => dictApplicative.Apply0().Functor0().map(Data$dTuple.Tuple(v._1))(traverseWithIndex1(f)(v._2));
82+ },
83+ FunctorWithIndex0: () => functorWithIndexEnvT1,
84+ FoldableWithIndex1: () => foldableWithIndexEnvT1,
85+ Traversable2: () => traversableEnvT1
86+ };
87+};
88+const extendEnvT = dictExtend => {
89+ const Functor0 = dictExtend.Functor0();
90+ const functorEnvT1 = {map: f => v => Data$dTuple.$Tuple(v._1, Functor0.map(f)(v._2))};
91+ return {extend: f => v => Data$dTuple.$Tuple(v._1, Functor0.map(f)(dictExtend.extend(Data$dTuple.Tuple(v._1))(v._2))), Functor0: () => functorEnvT1};
92+};
93+const comonadTransEnvT = {lower: dictComonad => v => v._2};
94+const comonadEnvT = dictComonad => {
95+ const extendEnvT1 = extendEnvT(dictComonad.Extend0());
96+ return {extract: v => dictComonad.extract(v._2), Extend0: () => extendEnvT1};
97+};
98+export {
99+ EnvT,
100+ comonadEnvT,
101+ comonadTransEnvT,
102+ extendEnvT,
103+ foldableEnvT,
104+ foldableWithIndexEnvT,
105+ functorEnvT,
106+ functorWithIndexEnvT,
107+ mapEnvT,
108+ newtypeEnvT,
109+ runEnvT,
110+ traversableEnvT,
111+ traversableWithIndexEnvT,
112+ withEnvT
113+};
output-es/Control.Comonad.Env/index.jsnew file+8
@@ -0,0 +1,8 @@
1+// | This module defines the `Env` comonad.
2+import * as Control$dComonad$dEnv$dTrans from "../Control.Comonad.Env.Trans/index.js";
3+import * as Data$dTuple from "../Data.Tuple/index.js";
4+const withEnv = Control$dComonad$dEnv$dTrans.withEnvT;
5+const runEnv = v => Data$dTuple.$Tuple(v._1, v._2);
6+const mapEnv = f => v => Data$dTuple.$Tuple(v._1, f(v._2));
7+const env = e => a => Data$dTuple.$Tuple(e, a);
8+export {env, mapEnv, runEnv, withEnv};
output-es/Control.Comonad.Store.Class/index.jsnew file+56
@@ -0,0 +1,56 @@
1+// | This module defines the `ComonadStore` type class and its instances.
2+import * as Control$dComonad$dEnv$dTrans from "../Control.Comonad.Env.Trans/index.js";
3+import * as Control$dComonad$dStore$dTrans from "../Control.Comonad.Store.Trans/index.js";
4+import * as Control$dComonad$dTraced$dTrans from "../Control.Comonad.Traced.Trans/index.js";
5+import * as Control$dExtend from "../Control.Extend/index.js";
6+const pos = dict => dict.pos;
7+const peek = dict => dict.peek;
8+const peeks = dictComonadStore => f => x => dictComonadStore.peek(f(dictComonadStore.pos(x)))(x);
9+const seeks = dictComonadStore => {
10+ const duplicate = dictComonadStore.Comonad0().Extend0().extend(Control$dExtend.identity);
11+ return f => x => {
12+ const $0 = duplicate(x);
13+ return dictComonadStore.peek(f(dictComonadStore.pos($0)))($0);
14+ };
15+};
16+const seek = dictComonadStore => {
17+ const duplicate = dictComonadStore.Comonad0().Extend0().extend(Control$dExtend.identity);
18+ return s => {
19+ const $0 = dictComonadStore.peek(s);
20+ return x => $0(duplicate(x));
21+ };
22+};
23+const experiment = dictComonadStore => dictFunctor => f => x => dictFunctor.map(a => dictComonadStore.peek(a)(x))(f(dictComonadStore.pos(x)));
24+const comonadStoreTracedT = dictComonadStore => {
25+ const Comonad0 = dictComonadStore.Comonad0();
26+ const comonadTracedT = Control$dComonad$dTraced$dTrans.comonadTracedT(Comonad0);
27+ return dictMonoid => {
28+ const mempty = dictMonoid.mempty;
29+ const lower1 = v => Comonad0.Extend0().Functor0().map(f => f(mempty))(v);
30+ const comonadTracedT1 = comonadTracedT(dictMonoid);
31+ return {
32+ pos: x => dictComonadStore.pos(lower1(x)),
33+ peek: s => {
34+ const $0 = dictComonadStore.peek(s);
35+ return x => $0(lower1(x));
36+ },
37+ Comonad0: () => comonadTracedT1
38+ };
39+ };
40+};
41+const comonadStoreStoreT = dictComonad => {
42+ const comonadStoreT = Control$dComonad$dStore$dTrans.comonadStoreT(dictComonad);
43+ return {pos: v => v._2, peek: s => v => dictComonad.extract(v._1)(s), Comonad0: () => comonadStoreT};
44+};
45+const comonadStoreEnvT = dictComonadStore => {
46+ const comonadEnvT = Control$dComonad$dEnv$dTrans.comonadEnvT(dictComonadStore.Comonad0());
47+ return {
48+ pos: x => dictComonadStore.pos(x._2),
49+ peek: s => {
50+ const $0 = dictComonadStore.peek(s);
51+ return x => $0(x._2);
52+ },
53+ Comonad0: () => comonadEnvT
54+ };
55+};
56+export {comonadStoreEnvT, comonadStoreStoreT, comonadStoreTracedT, experiment, peek, peeks, pos, seek, seeks};
output-es/Control.Comonad.Store.Trans/index.jsnew file+27
@@ -0,0 +1,27 @@
1+// | This module defines the store comonad transformer, `StoreT`.
2+import * as Data$dTuple from "../Data.Tuple/index.js";
3+const StoreT = x => x;
4+const runStoreT = v => v;
5+const newtypeStoreT = {Coercible0: () => {}};
6+const functorStoreT = dictFunctor => ({map: f => v => Data$dTuple.$Tuple(dictFunctor.map(h => x => f(h(x)))(v._1), v._2)});
7+const extendStoreT = dictExtend => {
8+ const $0 = dictExtend.Functor0();
9+ const functorStoreT1 = {map: f => v => Data$dTuple.$Tuple($0.map(h => x => f(h(x)))(v._1), v._2)};
10+ return {extend: f => v => Data$dTuple.$Tuple(dictExtend.extend(w$p => s$p => f(Data$dTuple.$Tuple(w$p, s$p)))(v._1), v._2), Functor0: () => functorStoreT1};
11+};
12+const comonadTransStoreT = {
13+ lower: dictComonad => v => {
14+ const $0 = v._2;
15+ return dictComonad.Extend0().Functor0().map(v1 => v1($0))(v._1);
16+ }
17+};
18+const comonadStoreT = dictComonad => {
19+ const $0 = dictComonad.Extend0();
20+ const $1 = $0.Functor0();
21+ const extendStoreT1 = (() => {
22+ const functorStoreT1 = {map: f => v => Data$dTuple.$Tuple($1.map(h => x => f(h(x)))(v._1), v._2)};
23+ return {extend: f => v => Data$dTuple.$Tuple($0.extend(w$p => s$p => f(Data$dTuple.$Tuple(w$p, s$p)))(v._1), v._2), Functor0: () => functorStoreT1};
24+ })();
25+ return {extract: v => dictComonad.extract(v._1)(v._2), Extend0: () => extendStoreT1};
26+};
27+export {StoreT, comonadStoreT, comonadTransStoreT, extendStoreT, functorStoreT, newtypeStoreT, runStoreT};
output-es/Control.Comonad.Store/index.jsnew file+5
@@ -0,0 +1,5 @@
1+// | This module defines the `Store` comonad.
2+import * as Data$dTuple from "../Data.Tuple/index.js";
3+const store = f => x => Data$dTuple.$Tuple(f, x);
4+const runStore = v => Data$dTuple.$Tuple(v._1, v._2);
5+export {runStore, store};
output-es/Control.Comonad.Traced.Class/index.jsnew file+62
@@ -0,0 +1,62 @@
1+// | This module defines the `ComonadTraced` type class and its instances.
2+import * as Control$dComonad$dEnv$dTrans from "../Control.Comonad.Env.Trans/index.js";
3+import * as Control$dComonad$dStore$dTrans from "../Control.Comonad.Store.Trans/index.js";
4+import * as Control$dComonad$dTraced$dTrans from "../Control.Comonad.Traced.Trans/index.js";
5+import * as Control$dComonad$dTrans$dClass from "../Control.Comonad.Trans.Class/index.js";
6+import * as Data$dTuple from "../Data.Tuple/index.js";
7+const track = dict => dict.track;
8+const tracks = dictComonadTraced => f => w => dictComonadTraced.track(f(dictComonadTraced.Comonad0().extract(w)))(w);
9+const lowerTrack2 = dictComonadTraced => {
10+ const lower1 = Control$dComonad$dTrans$dClass.comonadTransIdentityT.lower(dictComonadTraced.Comonad0());
11+ return m => {
12+ const $0 = dictComonadTraced.track(m);
13+ return x => $0(lower1(x));
14+ };
15+};
16+const listens = dictFunctor => f => v => dictFunctor.map(g => t => Data$dTuple.$Tuple(g(t), f(t)))(v);
17+const listen = dictFunctor => v => dictFunctor.map(f => t => Data$dTuple.$Tuple(f(t), t))(v);
18+const comonadTracedTracedT = dictComonad => {
19+ const comonadTracedT = Control$dComonad$dTraced$dTrans.comonadTracedT(dictComonad);
20+ return dictMonoid => {
21+ const comonadTracedT1 = comonadTracedT(dictMonoid);
22+ return {track: t => v => dictComonad.extract(v)(t), Comonad0: () => comonadTracedT1};
23+ };
24+};
25+const comonadTracedStoreT = dictComonadTraced => {
26+ const comonadStoreT = Control$dComonad$dStore$dTrans.comonadStoreT(dictComonadTraced.Comonad0());
27+ return {
28+ track: (() => {
29+ const $0 = dictComonadTraced.Comonad0();
30+ return m => {
31+ const $1 = dictComonadTraced.track(m);
32+ return x => $1((() => {
33+ const $2 = x._2;
34+ return $0.Extend0().Functor0().map(v1 => v1($2))(x._1);
35+ })());
36+ };
37+ })(),
38+ Comonad0: () => comonadStoreT
39+ };
40+};
41+const comonadTracedIdentityT = dictComonadTraced => {
42+ const $0 = dictComonadTraced.Comonad0();
43+ const $1 = $0.Extend0();
44+ const comonadIdentityT = (() => {
45+ const $2 = $1.Functor0();
46+ const extendIdentityI1 = {extend: f => v => $1.extend(x => f(x))(v), Functor0: () => $2};
47+ return {extract: x => $0.extract(x), Extend0: () => extendIdentityI1};
48+ })();
49+ return {track: lowerTrack2(dictComonadTraced), Comonad0: () => comonadIdentityT};
50+};
51+const comonadTracedEnvT = dictComonadTraced => {
52+ const comonadEnvT = Control$dComonad$dEnv$dTrans.comonadEnvT(dictComonadTraced.Comonad0());
53+ return {
54+ track: m => {
55+ const $0 = dictComonadTraced.track(m);
56+ return x => $0(x._2);
57+ },
58+ Comonad0: () => comonadEnvT
59+ };
60+};
61+const censor = dictFunctor => f => v => dictFunctor.map(v1 => x => v1(f(x)))(v);
62+export {censor, comonadTracedEnvT, comonadTracedIdentityT, comonadTracedStoreT, comonadTracedTracedT, listen, listens, lowerTrack2, track, tracks};
output-es/Control.Comonad.Traced.Trans/index.jsnew file+28
@@ -0,0 +1,28 @@
1+// | This module defines the cowriter comonad transformer, `TracedT`.
2+const TracedT = x => x;
3+const runTracedT = v => v;
4+const newtypeTracedT = {Coercible0: () => {}};
5+const functorTracedT = dictFunctor => ({map: f => v => dictFunctor.map(g => t => f(g(t)))(v)});
6+const extendTracedT = dictExtend => {
7+ const Functor0 = dictExtend.Functor0();
8+ const functorTracedT1 = {map: f => v => Functor0.map(g => t => f(g(t)))(v)};
9+ return dictSemigroup => ({extend: f => v => dictExtend.extend(w$p => t => f(Functor0.map(h => t$p => h(dictSemigroup.append(t)(t$p)))(w$p)))(v), Functor0: () => functorTracedT1});
10+};
11+const comonadTransTracedT = dictMonoid => {
12+ const mempty = dictMonoid.mempty;
13+ return {lower: dictComonad => v => dictComonad.Extend0().Functor0().map(f => f(mempty))(v)};
14+};
15+const comonadTracedT = dictComonad => {
16+ const $0 = dictComonad.Extend0();
17+ const Functor0 = $0.Functor0();
18+ const extendTracedT1 = (() => {
19+ const functorTracedT1 = {map: f => v => Functor0.map(g => t => f(g(t)))(v)};
20+ return dictSemigroup => ({extend: f => v => $0.extend(w$p => t => f(Functor0.map(h => t$p => h(dictSemigroup.append(t)(t$p)))(w$p)))(v), Functor0: () => functorTracedT1});
21+ })();
22+ return dictMonoid => {
23+ const mempty = dictMonoid.mempty;
24+ const extendTracedT2 = extendTracedT1(dictMonoid.Semigroup0());
25+ return {extract: v => dictComonad.extract(v)(mempty), Extend0: () => extendTracedT2};
26+ };
27+};
28+export {TracedT, comonadTracedT, comonadTransTracedT, extendTracedT, functorTracedT, newtypeTracedT, runTracedT};
output-es/Control.Comonad.Traced/index.jsnew file+4
@@ -0,0 +1,4 @@
1+// | This module defines the `Traced` comonad.
2+const traced = x => x;
3+const runTraced = v => v;
4+export {runTraced, traced};
output-es/Control.Comonad.Trans.Class/index.jsnew file+5
@@ -0,0 +1,5 @@
1+// | This module defines the `ComonadTrans` type class of _comonad transformers_.
2+import * as Control$dMonad$dIdentity$dTrans from "../Control.Monad.Identity.Trans/index.js";
3+const lower = dict => dict.lower;
4+const comonadTransIdentityT = {lower: dictComonad => Control$dMonad$dIdentity$dTrans.runIdentityT};
5+export {comonadTransIdentityT, lower};
output-es/Control.Comonad/index.jsnew file+2
@@ -0,0 +1,2 @@
1+const extract = dict => dict.extract;
2+export {extract};
output-es/Control.Extend/foreign.jsnew file+7
@@ -0,0 +1,7 @@
1+export const arrayExtend = function(f) {
2+ return function(xs) {
3+ return xs.map(function (_, i, xs) {
4+ return f(xs.slice(i));
5+ });
6+ };
7+};
output-es/Control.Extend/index.jsnew file+12
@@ -0,0 +1,12 @@
1+import * as Data$dFunctor from "../Data.Functor/index.js";
2+import {arrayExtend} from "./foreign.js";
3+const identity = x => x;
4+const extendFn = dictSemigroup => ({extend: f => g => w => f(w$p => g(dictSemigroup.append(w)(w$p))), Functor0: () => Data$dFunctor.functorFn});
5+const extendArray = {extend: arrayExtend, Functor0: () => Data$dFunctor.functorArray};
6+const extend = dict => dict.extend;
7+const extendFlipped = dictExtend => w => f => dictExtend.extend(f)(w);
8+const duplicate = dictExtend => dictExtend.extend(identity);
9+const composeCoKleisliFlipped = dictExtend => f => g => w => f(dictExtend.extend(g)(w));
10+const composeCoKleisli = dictExtend => f => g => w => g(dictExtend.extend(f)(w));
11+export {composeCoKleisli, composeCoKleisliFlipped, duplicate, extend, extendArray, extendFlipped, extendFn, identity};
12+export * from "./foreign.js";
output-es/Control.Lazy/index.jsnew file+10
@@ -0,0 +1,10 @@
1+import * as $runtime from "../runtime.js";
2+const lazyUnit = {defer: v => {}};
3+const lazyFn = {defer: f => x => f()(x)};
4+const defer = dict => dict.defer;
5+const fix = dictLazy => f => {
6+ const go$lazy = $runtime.binding(() => dictLazy.defer(v => f(go$lazy())));
7+ const go = go$lazy();
8+ return go;
9+};
10+export {defer, fix, lazyFn, lazyUnit};
output-es/Control.Monad.Cont.Class/index.jsnew file+3
@@ -0,0 +1,3 @@
1+// | This module defines the `MonadCont` type class and its instances.
2+const callCC = dict => dict.callCC;
3+export {callCC};
output-es/Control.Monad.Cont.Trans/index.jsnew file+134
@@ -0,0 +1,134 @@
1+// | This module defines the CPS monad transformer.
2+const ContT = x => x;
3+const withContT = f => v => k => v(f(k));
4+const runContT = v => k => v(k);
5+const newtypeContT = {Coercible0: () => {}};
6+const monadTransContT = {lift: dictMonad => dictMonad.Bind1().bind};
7+const mapContT = f => v => k => f(v(k));
8+const functorContT = dictFunctor => ({map: f => v => k => v(a => k(f(a)))});
9+const applyContT = dictApply => {
10+ const functorContT1 = {map: f => v => k => v(a => k(f(a)))};
11+ return {apply: v => v1 => k => v(g => v1(a => k(g(a)))), Functor0: () => functorContT1};
12+};
13+const bindContT = dictBind => {
14+ const functorContT1 = {map: f => v => k => v(a => k(f(a)))};
15+ const applyContT1 = {apply: v => v1 => k => v(g => v1(a => k(g(a)))), Functor0: () => functorContT1};
16+ return {bind: v => k => k$p => v(a => k(a)(k$p)), Apply0: () => applyContT1};
17+};
18+const semigroupContT = dictApply => dictSemigroup => (
19+ {
20+ append: a => b => k => a(a$1 => {
21+ const $0 = dictSemigroup.append(a$1);
22+ return b(a$2 => k($0(a$2)));
23+ })
24+ }
25+);
26+const applicativeContT = dictApplicative => {
27+ const functorContT1 = {map: f => v => k => v(a => k(f(a)))};
28+ const applyContT1 = {apply: v => v1 => k => v(g => v1(a => k(g(a)))), Functor0: () => functorContT1};
29+ return {pure: a => k => k(a), Apply0: () => applyContT1};
30+};
31+const monadContT = dictMonad => {
32+ const functorContT1 = {map: f => v => k => v(a => k(f(a)))};
33+ const applicativeContT1 = (() => {
34+ const applyContT1 = {apply: v => v1 => k => v(g => v1(a => k(g(a)))), Functor0: () => functorContT1};
35+ return {pure: a => k => k(a), Apply0: () => applyContT1};
36+ })();
37+ const functorContT1$1 = {map: f => v => k => v(a => k(f(a)))};
38+ const bindContT1 = (() => {
39+ const applyContT1 = {apply: v => v1 => k => v(g => v1(a => k(g(a)))), Functor0: () => functorContT1$1};
40+ return {bind: v => k => k$p => v(a => k(a)(k$p)), Apply0: () => applyContT1};
41+ })();
42+ return {Applicative0: () => applicativeContT1, Bind1: () => bindContT1};
43+};
44+const monadAskContT = dictMonadAsk => {
45+ const Monad0 = dictMonadAsk.Monad0();
46+ const monadContT1 = monadContT(Monad0);
47+ return {ask: Monad0.Bind1().bind(dictMonadAsk.ask), Monad0: () => monadContT1};
48+};
49+const monadReaderContT = dictMonadReader => {
50+ const MonadAsk0 = dictMonadReader.MonadAsk0();
51+ const ask = MonadAsk0.ask;
52+ const monadAskContT1 = monadAskContT(MonadAsk0);
53+ return {
54+ local: f => v => k => MonadAsk0.Monad0().Bind1().bind(ask)(r => dictMonadReader.local(f)(v((() => {
55+ const $0 = dictMonadReader.local(v$1 => r);
56+ return x => $0(k(x));
57+ })()))),
58+ MonadAsk0: () => monadAskContT1
59+ };
60+};
61+const monadContContT = dictMonad => {
62+ const monadContT1 = monadContT(dictMonad);
63+ return {callCC: f => k => f(a => v1 => k(a))(k), Monad0: () => monadContT1};
64+};
65+const monadEffectContT = dictMonadEffect => {
66+ const Monad0 = dictMonadEffect.Monad0();
67+ const monadContT1 = monadContT(Monad0);
68+ return {
69+ liftEffect: (() => {
70+ const $0 = Monad0.Bind1().bind;
71+ return x => $0(dictMonadEffect.liftEffect(x));
72+ })(),
73+ Monad0: () => monadContT1
74+ };
75+};
76+const monadStateContT = dictMonadState => {
77+ const Monad0 = dictMonadState.Monad0();
78+ const monadContT1 = monadContT(Monad0);
79+ return {
80+ state: (() => {
81+ const $0 = Monad0.Bind1().bind;
82+ return x => $0(dictMonadState.state(x));
83+ })(),
84+ Monad0: () => monadContT1
85+ };
86+};
87+const monadSTContT = dictMonadST => {
88+ const Monad0 = dictMonadST.Monad0();
89+ const monadContT1 = monadContT(Monad0);
90+ return {
91+ liftST: (() => {
92+ const $0 = Monad0.Bind1().bind;
93+ return x => $0(dictMonadST.liftST(x));
94+ })(),
95+ Monad0: () => monadContT1
96+ };
97+};
98+const monoidContT = dictApplicative => dictMonoid => {
99+ const $0 = dictMonoid.Semigroup0();
100+ const semigroupContT2 = {
101+ append: a => b => k => a(a$1 => {
102+ const $1 = $0.append(a$1);
103+ return b(a$2 => k($1(a$2)));
104+ })
105+ };
106+ return {
107+ mempty: (() => {
108+ const $1 = dictMonoid.mempty;
109+ return k => k($1);
110+ })(),
111+ Semigroup0: () => semigroupContT2
112+ };
113+};
114+export {
115+ ContT,
116+ applicativeContT,
117+ applyContT,
118+ bindContT,
119+ functorContT,
120+ mapContT,
121+ monadAskContT,
122+ monadContContT,
123+ monadContT,
124+ monadEffectContT,
125+ monadReaderContT,
126+ monadSTContT,
127+ monadStateContT,
128+ monadTransContT,
129+ monoidContT,
130+ newtypeContT,
131+ runContT,
132+ semigroupContT,
133+ withContT
134+};
output-es/Control.Monad.Cont/index.jsnew file+6
@@ -0,0 +1,6 @@
1+// | This module defines the `Cont`inuation monad.
2+const withCont = f => v => k => v(f(x => k(x)));
3+const runCont = cc => k => cc(x => k(x));
4+const mapCont = f => v => k => f(v(k));
5+const cont = f => c => f(x => c(x));
6+export {cont, mapCont, runCont, withCont};
output-es/Control.Monad.Error.Class/index.jsnew file+83
@@ -0,0 +1,83 @@
1+// | This module defines the `MonadError` type class and its instances.
2+import * as $runtime from "../runtime.js";
3+import * as Data$dEither from "../Data.Either/index.js";
4+import * as Data$dMaybe from "../Data.Maybe/index.js";
5+import * as Effect from "../Effect/index.js";
6+import * as Effect$dException from "../Effect.Exception/index.js";
7+const throwError = dict => dict.throwError;
8+const monadThrowMaybe = {throwError: v => Data$dMaybe.Nothing, Monad0: () => Data$dMaybe.monadMaybe};
9+const monadThrowEither = {throwError: Data$dEither.Left, Monad0: () => Data$dEither.monadEither};
10+const monadThrowEffect = {throwError: Effect$dException.throwException, Monad0: () => Effect.monadEffect};
11+const monadErrorMaybe = {
12+ catchError: v => v1 => {
13+ if (v.tag === "Nothing") { return v1(); }
14+ if (v.tag === "Just") { return Data$dMaybe.$Maybe("Just", v._1); }
15+ $runtime.fail();
16+ },
17+ MonadThrow0: () => monadThrowMaybe
18+};
19+const monadErrorEither = {
20+ catchError: v => v1 => {
21+ if (v.tag === "Left") { return v1(v._1); }
22+ if (v.tag === "Right") { return Data$dEither.$Either("Right", v._1); }
23+ $runtime.fail();
24+ },
25+ MonadThrow0: () => monadThrowEither
26+};
27+const monadErrorEffect = {catchError: b => a => Effect$dException.catchException(a)(b), MonadThrow0: () => monadThrowEffect};
28+const liftMaybe = dictMonadThrow => {
29+ const pure = dictMonadThrow.Monad0().Applicative0().pure;
30+ return error => {
31+ const $0 = dictMonadThrow.throwError(error);
32+ return v2 => {
33+ if (v2.tag === "Nothing") { return $0; }
34+ if (v2.tag === "Just") { return pure(v2._1); }
35+ $runtime.fail();
36+ };
37+ };
38+};
39+const liftEither = dictMonadThrow => {
40+ const $0 = dictMonadThrow.Monad0().Applicative0().pure;
41+ return v2 => {
42+ if (v2.tag === "Left") { return dictMonadThrow.throwError(v2._1); }
43+ if (v2.tag === "Right") { return $0(v2._1); }
44+ $runtime.fail();
45+ };
46+};
47+const catchError = dict => dict.catchError;
48+const catchJust = dictMonadError => p => act => handler => dictMonadError.catchError(act)(e => {
49+ const v = p(e);
50+ if (v.tag === "Nothing") { return dictMonadError.MonadThrow0().throwError(e); }
51+ if (v.tag === "Just") { return handler(v._1); }
52+ $runtime.fail();
53+});
54+const $$try = dictMonadError => {
55+ const Monad0 = dictMonadError.MonadThrow0().Monad0();
56+ return a => dictMonadError.catchError(Monad0.Bind1().Apply0().Functor0().map(Data$dEither.Right)(a))(x => Monad0.Applicative0().pure(Data$dEither.$Either("Left", x)));
57+};
58+const withResource = dictMonadError => {
59+ const MonadThrow0 = dictMonadError.MonadThrow0();
60+ const Monad0 = MonadThrow0.Monad0();
61+ const Bind1 = Monad0.Bind1();
62+ const try1 = $$try(dictMonadError);
63+ return acquire => release => kleisli => Bind1.bind(acquire)(resource => Bind1.bind(try1(kleisli(resource)))(result => Bind1.bind(release(resource))(() => {
64+ if (result.tag === "Left") { return MonadThrow0.throwError(result._1); }
65+ if (result.tag === "Right") { return Monad0.Applicative0().pure(result._1); }
66+ $runtime.fail();
67+ })));
68+};
69+export {
70+ catchError,
71+ catchJust,
72+ liftEither,
73+ liftMaybe,
74+ monadErrorEffect,
75+ monadErrorEither,
76+ monadErrorMaybe,
77+ monadThrowEffect,
78+ monadThrowEither,
79+ monadThrowMaybe,
80+ throwError,
81+ $$try as try,
82+ withResource
83+};
output-es/Control.Monad.Except.Trans/index.jsnew file+247
@@ -0,0 +1,247 @@
1+// | This module defines the _exception monad transformer_ `ExceptT`.
2+import * as $runtime from "../runtime.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dEither from "../Data.Either/index.js";
5+import * as Data$dTuple from "../Data.Tuple/index.js";
6+const identity = x => x;
7+const ExceptT = x => x;
8+const withExceptT = dictFunctor => f => v => dictFunctor.map(v2 => {
9+ if (v2.tag === "Right") { return Data$dEither.$Either("Right", v2._1); }
10+ if (v2.tag === "Left") { return Data$dEither.$Either("Left", f(v2._1)); }
11+ $runtime.fail();
12+})(v);
13+const runExceptT = v => v;
14+const newtypeExceptT = {Coercible0: () => {}};
15+const monadTransExceptT = {lift: dictMonad => m => dictMonad.Bind1().bind(m)(a => dictMonad.Applicative0().pure(Data$dEither.$Either("Right", a)))};
16+const mapExceptT = f => v => f(v);
17+const functorExceptT = dictFunctor => (
18+ {
19+ map: f => dictFunctor.map(m => {
20+ if (m.tag === "Left") { return Data$dEither.$Either("Left", m._1); }
21+ if (m.tag === "Right") { return Data$dEither.$Either("Right", f(m._1)); }
22+ $runtime.fail();
23+ })
24+ }
25+);
26+const except = dictApplicative => x => dictApplicative.pure(x);
27+const monadExceptT = dictMonad => ({Applicative0: () => applicativeExceptT(dictMonad), Bind1: () => bindExceptT(dictMonad)});
28+const bindExceptT = dictMonad => (
29+ {
30+ bind: v => k => dictMonad.Bind1().bind(v)(v2 => {
31+ if (v2.tag === "Left") { return dictMonad.Applicative0().pure(Data$dEither.$Either("Left", v2._1)); }
32+ if (v2.tag === "Right") { return k(v2._1); }
33+ $runtime.fail();
34+ }),
35+ Apply0: () => applyExceptT(dictMonad)
36+ }
37+);
38+const applyExceptT = dictMonad => {
39+ const $0 = dictMonad.Bind1().Apply0().Functor0();
40+ const functorExceptT1 = {
41+ map: f => $0.map(m => {
42+ if (m.tag === "Left") { return Data$dEither.$Either("Left", m._1); }
43+ if (m.tag === "Right") { return Data$dEither.$Either("Right", f(m._1)); }
44+ $runtime.fail();
45+ })
46+ };
47+ return {
48+ apply: (() => {
49+ const $1 = bindExceptT(dictMonad);
50+ return f => a => $1.bind(f)(f$p => $1.bind(a)(a$p => applicativeExceptT(dictMonad).pure(f$p(a$p))));
51+ })(),
52+ Functor0: () => functorExceptT1
53+ };
54+};
55+const applicativeExceptT = dictMonad => ({pure: x => dictMonad.Applicative0().pure(Data$dEither.$Either("Right", x)), Apply0: () => applyExceptT(dictMonad)});
56+const semigroupExceptT = dictMonad => {
57+ const $0 = applyExceptT(dictMonad);
58+ return dictSemigroup => (
59+ {
60+ append: (() => {
61+ const $1 = dictSemigroup.append;
62+ return a => b => $0.apply($0.Functor0().map($1)(a))(b);
63+ })()
64+ }
65+ );
66+};
67+const monadAskExceptT = dictMonadAsk => {
68+ const Monad0 = dictMonadAsk.Monad0();
69+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(Monad0), Bind1: () => bindExceptT(Monad0)};
70+ return {ask: Monad0.Bind1().bind(dictMonadAsk.ask)(a => Monad0.Applicative0().pure(Data$dEither.$Either("Right", a))), Monad0: () => monadExceptT1};
71+};
72+const monadReaderExceptT = dictMonadReader => {
73+ const monadAskExceptT1 = monadAskExceptT(dictMonadReader.MonadAsk0());
74+ return {local: f => dictMonadReader.local(f), MonadAsk0: () => monadAskExceptT1};
75+};
76+const monadContExceptT = dictMonadCont => {
77+ const $0 = dictMonadCont.Monad0();
78+ const monadExceptT1 = {Applicative0: () => applicativeExceptT($0), Bind1: () => bindExceptT($0)};
79+ return {callCC: f => dictMonadCont.callCC(c => f(a => c(Data$dEither.$Either("Right", a)))), Monad0: () => monadExceptT1};
80+};
81+const monadEffectExceptT = dictMonadEffect => {
82+ const Monad0 = dictMonadEffect.Monad0();
83+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(Monad0), Bind1: () => bindExceptT(Monad0)};
84+ return {liftEffect: x => Monad0.Bind1().bind(dictMonadEffect.liftEffect(x))(a => Monad0.Applicative0().pure(Data$dEither.$Either("Right", a))), Monad0: () => monadExceptT1};
85+};
86+const monadRecExceptT = dictMonadRec => {
87+ const Monad0 = dictMonadRec.Monad0();
88+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(Monad0), Bind1: () => bindExceptT(Monad0)};
89+ return {
90+ tailRecM: f => dictMonadRec.tailRecM(a => Monad0.Bind1().bind(f(a))(m$p => Monad0.Applicative0().pure((() => {
91+ if (m$p.tag === "Left") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dEither.$Either("Left", m$p._1)); }
92+ if (m$p.tag === "Right") {
93+ if (m$p._1.tag === "Loop") { return Control$dMonad$dRec$dClass.$Step("Loop", m$p._1._1); }
94+ if (m$p._1.tag === "Done") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dEither.$Either("Right", m$p._1._1)); }
95+ }
96+ $runtime.fail();
97+ })()))),
98+ Monad0: () => monadExceptT1
99+ };
100+};
101+const monadStateExceptT = dictMonadState => {
102+ const Monad0 = dictMonadState.Monad0();
103+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(Monad0), Bind1: () => bindExceptT(Monad0)};
104+ return {state: f => Monad0.Bind1().bind(dictMonadState.state(f))(a => Monad0.Applicative0().pure(Data$dEither.$Either("Right", a))), Monad0: () => monadExceptT1};
105+};
106+const monadTellExceptT = dictMonadTell => {
107+ const Monad1 = dictMonadTell.Monad1();
108+ const Semigroup0 = dictMonadTell.Semigroup0();
109+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(Monad1), Bind1: () => bindExceptT(Monad1)};
110+ return {
111+ tell: x => Monad1.Bind1().bind(dictMonadTell.tell(x))(a => Monad1.Applicative0().pure(Data$dEither.$Either("Right", a))),
112+ Semigroup0: () => Semigroup0,
113+ Monad1: () => monadExceptT1
114+ };
115+};
116+const monadWriterExceptT = dictMonadWriter => {
117+ const MonadTell1 = dictMonadWriter.MonadTell1();
118+ const Monad1 = MonadTell1.Monad1();
119+ const $0 = Monad1.Bind1();
120+ const $1 = Monad1.Applicative0();
121+ const Monoid0 = dictMonadWriter.Monoid0();
122+ const monadTellExceptT1 = monadTellExceptT(MonadTell1);
123+ return {
124+ listen: v => $0.bind(dictMonadWriter.listen(v))(v$1 => $1.pure((() => {
125+ if (v$1._1.tag === "Left") { return Data$dEither.$Either("Left", v$1._1._1); }
126+ if (v$1._1.tag === "Right") { return Data$dEither.$Either("Right", Data$dTuple.$Tuple(v$1._1._1, v$1._2)); }
127+ $runtime.fail();
128+ })())),
129+ pass: v => dictMonadWriter.pass($0.bind(v)(a => $1.pure((() => {
130+ if (a.tag === "Left") { return Data$dTuple.$Tuple(Data$dEither.$Either("Left", a._1), identity); }
131+ if (a.tag === "Right") { return Data$dTuple.$Tuple(Data$dEither.$Either("Right", a._1._1), a._1._2); }
132+ $runtime.fail();
133+ })()))),
134+ Monoid0: () => Monoid0,
135+ MonadTell1: () => monadTellExceptT1
136+ };
137+};
138+const monadThrowExceptT = dictMonad => {
139+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(dictMonad), Bind1: () => bindExceptT(dictMonad)};
140+ return {throwError: x => dictMonad.Applicative0().pure(Data$dEither.$Either("Left", x)), Monad0: () => monadExceptT1};
141+};
142+const monadErrorExceptT = dictMonad => {
143+ const monadThrowExceptT1 = monadThrowExceptT(dictMonad);
144+ return {
145+ catchError: v => k => dictMonad.Bind1().bind(v)(v2 => {
146+ if (v2.tag === "Left") { return k(v2._1); }
147+ if (v2.tag === "Right") { return dictMonad.Applicative0().pure(Data$dEither.$Either("Right", v2._1)); }
148+ $runtime.fail();
149+ }),
150+ MonadThrow0: () => monadThrowExceptT1
151+ };
152+};
153+const monadSTExceptT = dictMonadST => {
154+ const Monad0 = dictMonadST.Monad0();
155+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(Monad0), Bind1: () => bindExceptT(Monad0)};
156+ return {liftST: x => Monad0.Bind1().bind(dictMonadST.liftST(x))(a => Monad0.Applicative0().pure(Data$dEither.$Either("Right", a))), Monad0: () => monadExceptT1};
157+};
158+const monoidExceptT = dictMonad => {
159+ const semigroupExceptT1 = semigroupExceptT(dictMonad);
160+ return dictMonoid => {
161+ const semigroupExceptT2 = semigroupExceptT1(dictMonoid.Semigroup0());
162+ return {mempty: applicativeExceptT(dictMonad).pure(dictMonoid.mempty), Semigroup0: () => semigroupExceptT2};
163+ };
164+};
165+const altExceptT = dictSemigroup => dictMonad => {
166+ const Bind1 = dictMonad.Bind1();
167+ const $0 = dictMonad.Applicative0();
168+ const $1 = Bind1.Apply0().Functor0();
169+ const functorExceptT1 = {
170+ map: f => $1.map(m => {
171+ if (m.tag === "Left") { return Data$dEither.$Either("Left", m._1); }
172+ if (m.tag === "Right") { return Data$dEither.$Either("Right", f(m._1)); }
173+ $runtime.fail();
174+ })
175+ };
176+ return {
177+ alt: v => v1 => Bind1.bind(v)(rm => {
178+ if (rm.tag === "Right") { return $0.pure(Data$dEither.$Either("Right", rm._1)); }
179+ if (rm.tag === "Left") {
180+ const $2 = rm._1;
181+ return Bind1.bind(v1)(rn => {
182+ if (rn.tag === "Right") { return $0.pure(Data$dEither.$Either("Right", rn._1)); }
183+ if (rn.tag === "Left") { return $0.pure(Data$dEither.$Either("Left", dictSemigroup.append($2)(rn._1))); }
184+ $runtime.fail();
185+ });
186+ }
187+ $runtime.fail();
188+ }),
189+ Functor0: () => functorExceptT1
190+ };
191+};
192+const plusExceptT = dictMonoid => {
193+ const mempty = dictMonoid.mempty;
194+ const altExceptT1 = altExceptT(dictMonoid.Semigroup0());
195+ return dictMonad => {
196+ const altExceptT2 = altExceptT1(dictMonad);
197+ return {empty: monadThrowExceptT(dictMonad).throwError(mempty), Alt0: () => altExceptT2};
198+ };
199+};
200+const alternativeExceptT = dictMonoid => {
201+ const plusExceptT1 = plusExceptT(dictMonoid);
202+ return dictMonad => {
203+ const applicativeExceptT1 = applicativeExceptT(dictMonad);
204+ const plusExceptT2 = plusExceptT1(dictMonad);
205+ return {Applicative0: () => applicativeExceptT1, Plus1: () => plusExceptT2};
206+ };
207+};
208+const monadPlusExceptT = dictMonoid => {
209+ const alternativeExceptT1 = alternativeExceptT(dictMonoid);
210+ return dictMonad => {
211+ const monadExceptT1 = {Applicative0: () => applicativeExceptT(dictMonad), Bind1: () => bindExceptT(dictMonad)};
212+ const alternativeExceptT2 = alternativeExceptT1(dictMonad);
213+ return {Monad0: () => monadExceptT1, Alternative1: () => alternativeExceptT2};
214+ };
215+};
216+export {
217+ ExceptT,
218+ altExceptT,
219+ alternativeExceptT,
220+ applicativeExceptT,
221+ applyExceptT,
222+ bindExceptT,
223+ except,
224+ functorExceptT,
225+ identity,
226+ mapExceptT,
227+ monadAskExceptT,
228+ monadContExceptT,
229+ monadEffectExceptT,
230+ monadErrorExceptT,
231+ monadExceptT,
232+ monadPlusExceptT,
233+ monadReaderExceptT,
234+ monadRecExceptT,
235+ monadSTExceptT,
236+ monadStateExceptT,
237+ monadTellExceptT,
238+ monadThrowExceptT,
239+ monadTransExceptT,
240+ monadWriterExceptT,
241+ monoidExceptT,
242+ newtypeExceptT,
243+ plusExceptT,
244+ runExceptT,
245+ semigroupExceptT,
246+ withExceptT
247+};
output-es/Control.Monad.Except/index.jsnew file+10
@@ -0,0 +1,10 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEither from "../Data.Either/index.js";
3+const withExcept = f => v => {
4+ if (v.tag === "Right") { return Data$dEither.$Either("Right", v._1); }
5+ if (v.tag === "Left") { return Data$dEither.$Either("Left", f(v._1)); }
6+ $runtime.fail();
7+};
8+const runExcept = x => x;
9+const mapExcept = f => v => f(v);
10+export {mapExcept, runExcept, withExcept};
output-es/Control.Monad.Free.Class/index.jsnew file+45
@@ -0,0 +1,45 @@
1+import * as Control$dBind from "../Control.Bind/index.js";
2+import * as Control$dMonad$dExcept$dTrans from "../Control.Monad.Except.Trans/index.js";
3+import * as Control$dMonad$dFree from "../Control.Monad.Free/index.js";
4+import * as Control$dMonad$dMaybe$dTrans from "../Control.Monad.Maybe.Trans/index.js";
5+import * as Control$dMonad$dReader$dTrans from "../Control.Monad.Reader.Trans/index.js";
6+import * as Control$dMonad$dState$dTrans from "../Control.Monad.State.Trans/index.js";
7+import * as Control$dMonad$dWriter$dTrans from "../Control.Monad.Writer.Trans/index.js";
8+import * as Data$dCatList from "../Data.CatList/index.js";
9+import * as Data$dCatQueue from "../Data.CatQueue/index.js";
10+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
11+const wrapFree = dict => dict.wrapFree;
12+const monadFreeWriterT = dictFunctor => dictMonadFree => {
13+ const Monad0 = dictMonadFree.Monad0();
14+ return dictMonoid => {
15+ const monadWriterT = Control$dMonad$dWriter$dTrans.monadWriterT(dictMonoid)(Monad0);
16+ return {wrapFree: f => dictMonadFree.wrapFree(dictFunctor.map(Control$dMonad$dWriter$dTrans.runWriterT)(f)), Monad0: () => monadWriterT};
17+ };
18+};
19+const monadFreeStateT = dictFunctor => dictMonadFree => {
20+ const $0 = dictMonadFree.Monad0();
21+ const monadStateT = {Applicative0: () => Control$dMonad$dState$dTrans.applicativeStateT($0), Bind1: () => Control$dMonad$dState$dTrans.bindStateT($0)};
22+ return {wrapFree: f => s => dictMonadFree.wrapFree(dictFunctor.map(st => st(s))(f)), Monad0: () => monadStateT};
23+};
24+const monadFreeReaderT = dictFunctor => dictMonadFree => {
25+ const monadReaderT = Control$dMonad$dReader$dTrans.monadReaderT(dictMonadFree.Monad0());
26+ return {wrapFree: f => r => dictMonadFree.wrapFree(dictFunctor.map(rt => rt(r))(f)), Monad0: () => monadReaderT};
27+};
28+const monadFreeMaybeT = dictFunctor => dictMonadFree => {
29+ const $0 = dictMonadFree.Monad0();
30+ const monadMaybeT = {Applicative0: () => Control$dMonad$dMaybe$dTrans.applicativeMaybeT($0), Bind1: () => Control$dMonad$dMaybe$dTrans.bindMaybeT($0)};
31+ return {wrapFree: f => dictMonadFree.wrapFree(dictFunctor.map(Control$dMonad$dMaybe$dTrans.runMaybeT)(f)), Monad0: () => monadMaybeT};
32+};
33+const monadFreeFree = {
34+ wrapFree: x => Control$dMonad$dFree.$Free(
35+ Control$dMonad$dFree.$FreeView("Bind", x, x$1 => Control$dMonad$dFree.$Free(Control$dMonad$dFree.$FreeView("Return", x$1), Data$dCatList.CatNil)),
36+ Data$dCatList.$CatList("CatCons", Control$dBind.identity, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil))
37+ ),
38+ Monad0: () => Control$dMonad$dFree.freeMonad
39+};
40+const monadFreeExceptT = dictFunctor => dictMonadFree => {
41+ const $0 = dictMonadFree.Monad0();
42+ const monadExceptT = {Applicative0: () => Control$dMonad$dExcept$dTrans.applicativeExceptT($0), Bind1: () => Control$dMonad$dExcept$dTrans.bindExceptT($0)};
43+ return {wrapFree: f => dictMonadFree.wrapFree(dictFunctor.map(Control$dMonad$dExcept$dTrans.runExceptT)(f)), Monad0: () => monadExceptT};
44+};
45+export {monadFreeExceptT, monadFreeFree, monadFreeMaybeT, monadFreeReaderT, monadFreeStateT, monadFreeWriterT, wrapFree};
output-es/Control.Monad.Free/index.jsnew file+423
@@ -0,0 +1,423 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dBind from "../Control.Bind/index.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dCatList from "../Data.CatList/index.js";
5+import * as Data$dCatQueue from "../Data.CatQueue/index.js";
6+import * as Data$dEither from "../Data.Either/index.js";
7+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
8+import * as Data$dOrdering from "../Data.Ordering/index.js";
9+import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
10+const $Free = (_1, _2) => ({tag: "Free", _1, _2});
11+const $FreeView = (tag, _1, _2) => ({tag, _1, _2});
12+const identity = x => x;
13+const Free = value0 => value1 => $Free(value0, value1);
14+const Return = value0 => $FreeView("Return", value0);
15+const Bind = value0 => value1 => $FreeView("Bind", value0, value1);
16+const toView = toView$a0$copy => {
17+ let toView$a0 = toView$a0$copy, toView$c = true, toView$r;
18+ while (toView$c) {
19+ const v = toView$a0;
20+ if (v._1.tag === "Return") {
21+ const v2 = Data$dCatList.uncons(v._2);
22+ if (v2.tag === "Nothing") {
23+ toView$c = false;
24+ toView$r = $FreeView("Return", v._1._1);
25+ continue;
26+ }
27+ if (v2.tag === "Just") {
28+ toView$a0 = (() => {
29+ const $0 = v2._1._1(v._1._1);
30+ return $Free(
31+ $0._1,
32+ (() => {
33+ if ($0._2.tag === "CatNil") { return v2._1._2; }
34+ if (v2._1._2.tag === "CatNil") { return $0._2; }
35+ if ($0._2.tag === "CatCons") {
36+ return Data$dCatList.$CatList("CatCons", $0._2._1, Data$dCatQueue.$CatQueue($0._2._2._1, Data$dList$dTypes.$List("Cons", v2._1._2, $0._2._2._2)));
37+ }
38+ $runtime.fail();
39+ })()
40+ );
41+ })();
42+ continue;
43+ }
44+ $runtime.fail();
45+ }
46+ if (v._1.tag === "Bind") {
47+ toView$c = false;
48+ toView$r = $FreeView(
49+ "Bind",
50+ v._1._1,
51+ a => {
52+ const $0 = v._1._2(a);
53+ return $Free(
54+ $0._1,
55+ (() => {
56+ if ($0._2.tag === "CatNil") { return v._2; }
57+ if (v._2.tag === "CatNil") { return $0._2; }
58+ if ($0._2.tag === "CatCons") {
59+ return Data$dCatList.$CatList("CatCons", $0._2._1, Data$dCatQueue.$CatQueue($0._2._2._1, Data$dList$dTypes.$List("Cons", v._2, $0._2._2._2)));
60+ }
61+ $runtime.fail();
62+ })()
63+ );
64+ }
65+ );
66+ continue;
67+ }
68+ $runtime.fail();
69+ }
70+ return toView$r;
71+};
72+const runFreeM = dictFunctor => dictMonadRec => {
73+ const Monad0 = dictMonadRec.Monad0();
74+ const $0 = Monad0.Bind1().Apply0().Functor0();
75+ return k => dictMonadRec.tailRecM(f => {
76+ const v = toView(f);
77+ if (v.tag === "Return") { return $0.map(Control$dMonad$dRec$dClass.Done)(Monad0.Applicative0().pure(v._1)); }
78+ if (v.tag === "Bind") { return $0.map(Control$dMonad$dRec$dClass.Loop)(k(dictFunctor.map(v._2)(v._1))); }
79+ $runtime.fail();
80+ });
81+};
82+const runFree = dictFunctor => k => {
83+ const go = go$a0$copy => {
84+ let go$a0 = go$a0$copy, go$c = true, go$r;
85+ while (go$c) {
86+ const f = go$a0;
87+ const v = toView(f);
88+ if (v.tag === "Return") {
89+ go$c = false;
90+ go$r = v._1;
91+ continue;
92+ }
93+ if (v.tag === "Bind") {
94+ go$a0 = k(dictFunctor.map(v._2)(v._1));
95+ continue;
96+ }
97+ $runtime.fail();
98+ }
99+ return go$r;
100+ };
101+ return go;
102+};
103+const resume$p = k => j => f => {
104+ const v = toView(f);
105+ if (v.tag === "Return") { return j(v._1); }
106+ if (v.tag === "Bind") { return k(v._1)(v._2); }
107+ $runtime.fail();
108+};
109+const resume = dictFunctor => resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right);
110+const wrap = f => $Free($FreeView("Bind", f, Unsafe$dCoerce.unsafeCoerce), Data$dCatList.CatNil);
111+const suspendF = dictApplicative => f => $Free($FreeView("Bind", dictApplicative.pure(f), Unsafe$dCoerce.unsafeCoerce), Data$dCatList.CatNil);
112+const freeMonad = {Applicative0: () => freeApplicative, Bind1: () => freeBind};
113+const freeFunctor = {map: k => f => freeBind.bind(f)(x => freeApplicative.pure(k(x)))};
114+const freeBind = {
115+ bind: v => k => $Free(
116+ v._1,
117+ (() => {
118+ if (v._2.tag === "CatNil") { return Data$dCatList.$CatList("CatCons", k, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
119+ if (v._2.tag === "CatCons") {
120+ return Data$dCatList.$CatList(
121+ "CatCons",
122+ v._2._1,
123+ Data$dCatQueue.$CatQueue(
124+ v._2._2._1,
125+ Data$dList$dTypes.$List("Cons", Data$dCatList.$CatList("CatCons", k, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)), v._2._2._2)
126+ )
127+ );
128+ }
129+ $runtime.fail();
130+ })()
131+ ),
132+ Apply0: () => freeApply
133+};
134+const freeApply = {
135+ apply: f => a => {
136+ const $0 = f$p => $Free(
137+ a._1,
138+ (() => {
139+ if (a._2.tag === "CatNil") {
140+ return Data$dCatList.$CatList("CatCons", a$p => freeApplicative.pure(f$p(a$p)), Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil));
141+ }
142+ if (a._2.tag === "CatCons") {
143+ return Data$dCatList.$CatList(
144+ "CatCons",
145+ a._2._1,
146+ Data$dCatQueue.$CatQueue(
147+ a._2._2._1,
148+ Data$dList$dTypes.$List(
149+ "Cons",
150+ Data$dCatList.$CatList("CatCons", a$p => freeApplicative.pure(f$p(a$p)), Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)),
151+ a._2._2._2
152+ )
153+ )
154+ );
155+ }
156+ $runtime.fail();
157+ })()
158+ );
159+ return $Free(
160+ f._1,
161+ (() => {
162+ if (f._2.tag === "CatNil") { return Data$dCatList.$CatList("CatCons", $0, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
163+ if (f._2.tag === "CatCons") {
164+ return Data$dCatList.$CatList(
165+ "CatCons",
166+ f._2._1,
167+ Data$dCatQueue.$CatQueue(
168+ f._2._2._1,
169+ Data$dList$dTypes.$List("Cons", Data$dCatList.$CatList("CatCons", $0, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)), f._2._2._2)
170+ )
171+ );
172+ }
173+ $runtime.fail();
174+ })()
175+ );
176+ },
177+ Functor0: () => freeFunctor
178+};
179+const freeApplicative = {pure: x => $Free($FreeView("Return", x), Data$dCatList.CatNil), Apply0: () => freeApply};
180+const semigroupFree = dictSemigroup => (
181+ {
182+ append: a => b => freeApply.apply($Free(
183+ a._1,
184+ (() => {
185+ if (a._2.tag === "CatNil") {
186+ return Data$dCatList.$CatList(
187+ "CatCons",
188+ x => $Free($FreeView("Return", dictSemigroup.append(x)), Data$dCatList.CatNil),
189+ Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)
190+ );
191+ }
192+ if (a._2.tag === "CatCons") {
193+ return Data$dCatList.$CatList(
194+ "CatCons",
195+ a._2._1,
196+ Data$dCatQueue.$CatQueue(
197+ a._2._2._1,
198+ Data$dList$dTypes.$List(
199+ "Cons",
200+ Data$dCatList.$CatList(
201+ "CatCons",
202+ x => $Free($FreeView("Return", dictSemigroup.append(x)), Data$dCatList.CatNil),
203+ Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)
204+ ),
205+ a._2._2._2
206+ )
207+ )
208+ );
209+ }
210+ $runtime.fail();
211+ })()
212+ ))(b)
213+ }
214+);
215+const freeMonadRec = {
216+ tailRecM: k => a => {
217+ const $0 = k(a);
218+ const $1 = v => {
219+ if (v.tag === "Loop") { return freeMonadRec.tailRecM(k)(v._1); }
220+ if (v.tag === "Done") { return $Free($FreeView("Return", v._1), Data$dCatList.CatNil); }
221+ $runtime.fail();
222+ };
223+ return $Free(
224+ $0._1,
225+ (() => {
226+ if ($0._2.tag === "CatNil") { return Data$dCatList.$CatList("CatCons", $1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
227+ if ($0._2.tag === "CatCons") {
228+ return Data$dCatList.$CatList(
229+ "CatCons",
230+ $0._2._1,
231+ Data$dCatQueue.$CatQueue(
232+ $0._2._2._1,
233+ Data$dList$dTypes.$List("Cons", Data$dCatList.$CatList("CatCons", $1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)), $0._2._2._2)
234+ )
235+ );
236+ }
237+ $runtime.fail();
238+ })()
239+ );
240+ },
241+ Monad0: () => freeMonad
242+};
243+const liftF = f => $Free($FreeView("Bind", f, x => $Free($FreeView("Return", x), Data$dCatList.CatNil)), Data$dCatList.CatNil);
244+const freeMonadTrans = {lift: dictMonad => liftF};
245+const monoidFree = dictMonoid => {
246+ const semigroupFree1 = semigroupFree(dictMonoid.Semigroup0());
247+ return {mempty: $Free($FreeView("Return", dictMonoid.mempty), Data$dCatList.CatNil), Semigroup0: () => semigroupFree1};
248+};
249+const substFree = k => {
250+ const go = f => {
251+ const v = toView(f);
252+ if (v.tag === "Return") { return $Free($FreeView("Return", v._1), Data$dCatList.CatNil); }
253+ if (v.tag === "Bind") {
254+ const $0 = k(v._1);
255+ return $Free(
256+ $0._1,
257+ (() => {
258+ if ($0._2.tag === "CatNil") { return Data$dCatList.$CatList("CatCons", x => go(v._2(x)), Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
259+ if ($0._2.tag === "CatCons") {
260+ return Data$dCatList.$CatList(
261+ "CatCons",
262+ $0._2._1,
263+ Data$dCatQueue.$CatQueue(
264+ $0._2._2._1,
265+ Data$dList$dTypes.$List(
266+ "Cons",
267+ Data$dCatList.$CatList("CatCons", x => go(v._2(x)), Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)),
268+ $0._2._2._2
269+ )
270+ )
271+ );
272+ }
273+ $runtime.fail();
274+ })()
275+ );
276+ }
277+ $runtime.fail();
278+ };
279+ return go;
280+};
281+const hoistFree = k => substFree(x => $Free($FreeView("Bind", k(x), x$1 => $Free($FreeView("Return", x$1), Data$dCatList.CatNil)), Data$dCatList.CatNil));
282+const foldableFree = dictFunctor => dictFoldable => (
283+ {
284+ foldMap: dictMonoid => {
285+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
286+ return f => {
287+ const go = x => {
288+ const $0 = resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right)(x);
289+ if ($0.tag === "Left") { return foldMap1(go)($0._1); }
290+ if ($0.tag === "Right") { return f($0._1); }
291+ $runtime.fail();
292+ };
293+ return go;
294+ };
295+ },
296+ foldl: f => {
297+ const go = r => x => {
298+ const $0 = resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right)(x);
299+ if ($0.tag === "Left") { return dictFoldable.foldl(go)(r)($0._1); }
300+ if ($0.tag === "Right") { return f(r)($0._1); }
301+ $runtime.fail();
302+ };
303+ return go;
304+ },
305+ foldr: f => {
306+ const go = r => x => {
307+ const $0 = resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right)(x);
308+ if ($0.tag === "Left") { return dictFoldable.foldr(b => a => go(a)(b))(r)($0._1); }
309+ if ($0.tag === "Right") { return f($0._1)(r); }
310+ $runtime.fail();
311+ };
312+ return go;
313+ }
314+ }
315+);
316+const traversableFree = dictTraversable => {
317+ const Functor0 = dictTraversable.Functor0();
318+ const foldableFree1 = foldableFree(Functor0)(dictTraversable.Foldable1());
319+ return {
320+ traverse: dictApplicative => {
321+ const $0 = dictApplicative.Apply0().Functor0();
322+ const traverse1 = dictTraversable.traverse(dictApplicative);
323+ return f => {
324+ const go = x => {
325+ const $1 = resume$p(g => i => Data$dEither.$Either("Left", Functor0.map(i)(g)))(Data$dEither.Right)(x);
326+ if ($1.tag === "Left") {
327+ return $0.map(x$1 => $Free(
328+ $FreeView("Bind", x$1, x$2 => $Free($FreeView("Return", x$2), Data$dCatList.CatNil)),
329+ Data$dCatList.$CatList("CatCons", Control$dBind.identity, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil))
330+ ))(traverse1(go)($1._1));
331+ }
332+ if ($1.tag === "Right") { return $0.map(freeApplicative.pure)(f($1._1)); }
333+ $runtime.fail();
334+ };
335+ return go;
336+ };
337+ },
338+ sequence: dictApplicative => tma => traversableFree(dictTraversable).traverse(dictApplicative)(identity)(tma),
339+ Functor0: () => freeFunctor,
340+ Foldable1: () => foldableFree1
341+ };
342+};
343+const foldFree = dictMonadRec => {
344+ const Monad0 = dictMonadRec.Monad0();
345+ const $0 = Monad0.Bind1().Apply0().Functor0();
346+ return k => dictMonadRec.tailRecM(f => {
347+ const v = toView(f);
348+ if (v.tag === "Return") { return $0.map(Control$dMonad$dRec$dClass.Done)(Monad0.Applicative0().pure(v._1)); }
349+ if (v.tag === "Bind") { return $0.map(x => Control$dMonad$dRec$dClass.$Step("Loop", v._2(x)))(k(v._1)); }
350+ $runtime.fail();
351+ });
352+};
353+const eqFree = dictFunctor => dictEq1 => dictEq => (
354+ {
355+ eq: x => y => {
356+ const v = resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right)(y);
357+ const v1 = resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right)(x);
358+ if (v1.tag === "Left") { return v.tag === "Left" && dictEq1.eq1(eqFree(dictFunctor)(dictEq1)(dictEq))(v1._1)(v._1); }
359+ return v1.tag === "Right" && v.tag === "Right" && dictEq.eq(v1._1)(v._1);
360+ }
361+ }
362+);
363+const ordFree = dictFunctor => dictOrd1 => {
364+ const eqFree2 = eqFree(dictFunctor)(dictOrd1.Eq10());
365+ return dictOrd => {
366+ const eqFree3 = eqFree2(dictOrd.Eq0());
367+ return {
368+ compare: x => y => {
369+ const v = resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right)(y);
370+ const v1 = resume$p(g => i => Data$dEither.$Either("Left", dictFunctor.map(i)(g)))(Data$dEither.Right)(x);
371+ if (v1.tag === "Left") {
372+ if (v.tag === "Left") { return dictOrd1.compare1(ordFree(dictFunctor)(dictOrd1)(dictOrd))(v1._1)(v._1); }
373+ return Data$dOrdering.LT;
374+ }
375+ if (v.tag === "Left") { return Data$dOrdering.GT; }
376+ if (v1.tag === "Right" && v.tag === "Right") { return dictOrd.compare(v1._1)(v._1); }
377+ $runtime.fail();
378+ },
379+ Eq0: () => eqFree3
380+ };
381+ };
382+};
383+const eq1Free = dictFunctor => dictEq1 => ({eq1: dictEq => eqFree(dictFunctor)(dictEq1)(dictEq).eq});
384+const ord1Free = dictFunctor => dictOrd1 => {
385+ const ordFree2 = ordFree(dictFunctor)(dictOrd1);
386+ const $0 = dictOrd1.Eq10();
387+ const eq1Free2 = {eq1: dictEq => eqFree(dictFunctor)($0)(dictEq).eq};
388+ return {compare1: dictOrd => ordFree2(dictOrd).compare, Eq10: () => eq1Free2};
389+};
390+export {
391+ $Free,
392+ $FreeView,
393+ Bind,
394+ Free,
395+ Return,
396+ eq1Free,
397+ eqFree,
398+ foldFree,
399+ foldableFree,
400+ freeApplicative,
401+ freeApply,
402+ freeBind,
403+ freeFunctor,
404+ freeMonad,
405+ freeMonadRec,
406+ freeMonadTrans,
407+ hoistFree,
408+ identity,
409+ liftF,
410+ monoidFree,
411+ ord1Free,
412+ ordFree,
413+ resume,
414+ resume$p,
415+ runFree,
416+ runFreeM,
417+ semigroupFree,
418+ substFree,
419+ suspendF,
420+ toView,
421+ traversableFree,
422+ wrap
423+};
output-es/Control.Monad.Gen.Class/index.jsnew file+6
@@ -0,0 +1,6 @@
1+const sized = dict => dict.sized;
2+const resize = dict => dict.resize;
3+const chooseInt = dict => dict.chooseInt;
4+const chooseFloat = dict => dict.chooseFloat;
5+const chooseBool = dict => dict.chooseBool;
6+export {chooseBool, chooseFloat, chooseInt, resize, sized};
output-es/Control.Monad.Gen.Common/index.jsnew file+44
@@ -0,0 +1,44 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dMonad$dGen from "../Control.Monad.Gen/index.js";
3+import * as Data$dEither from "../Data.Either/index.js";
4+import * as Data$dIdentity from "../Data.Identity/index.js";
5+import * as Data$dMaybe from "../Data.Maybe/index.js";
6+import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
7+import * as Data$dOrd from "../Data.Ord/index.js";
8+import * as Data$dTuple from "../Data.Tuple/index.js";
9+const max = x => y => {
10+ const v = Data$dOrd.ordInt.compare(x)(y);
11+ if (v === "LT") { return y; }
12+ if (v === "EQ") { return x; }
13+ if (v === "GT") { return x; }
14+ $runtime.fail();
15+};
16+const genTuple = dictApply => a => b => dictApply.apply(dictApply.Functor0().map(Data$dTuple.Tuple)(a))(b);
17+const genNonEmpty = dictMonadRec => dictMonadGen => {
18+ const Apply0 = dictMonadGen.Monad0().Bind1().Apply0();
19+ const unfoldable1 = Control$dMonad$dGen.unfoldable(dictMonadRec)(dictMonadGen);
20+ return dictUnfoldable => {
21+ const unfoldable2 = unfoldable1(dictUnfoldable);
22+ return gen => Apply0.apply(Apply0.Functor0().map(Data$dNonEmpty.NonEmpty)(gen))(dictMonadGen.resize(x => max(0)(x - 1 | 0))(unfoldable2(gen)));
23+ };
24+};
25+const genMaybe$p = dictMonadGen => {
26+ const Monad0 = dictMonadGen.Monad0();
27+ const Bind1 = Monad0.Bind1();
28+ return bias => gen => Bind1.bind(dictMonadGen.chooseFloat(0.0)(1.0))(n => {
29+ if (n < bias) { return Bind1.Apply0().Functor0().map(Data$dMaybe.Just)(gen); }
30+ return Monad0.Applicative0().pure(Data$dMaybe.Nothing);
31+ });
32+};
33+const genMaybe = dictMonadGen => genMaybe$p(dictMonadGen)(0.75);
34+const genIdentity = dictFunctor => dictFunctor.map(Data$dIdentity.Identity);
35+const genEither$p = dictMonadGen => {
36+ const Bind1 = dictMonadGen.Monad0().Bind1();
37+ const $0 = Bind1.Apply0().Functor0();
38+ return bias => genA => genB => Bind1.bind(dictMonadGen.chooseFloat(0.0)(1.0))(n => {
39+ if (n < bias) { return $0.map(Data$dEither.Left)(genA); }
40+ return $0.map(Data$dEither.Right)(genB);
41+ });
42+};
43+const genEither = dictMonadGen => genEither$p(dictMonadGen)(0.5);
44+export {genEither, genEither$p, genIdentity, genMaybe, genMaybe$p, genNonEmpty, genTuple, max};
output-es/Control.Monad.Gen/index.jsnew file+132
@@ -0,0 +1,132 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
3+import * as Data$dMaybe from "../Data.Maybe/index.js";
4+import * as Data$dSemigroup$dLast from "../Data.Semigroup.Last/index.js";
5+import * as Data$dTuple from "../Data.Tuple/index.js";
6+const $LL = (tag, _1, _2) => ({tag, _1, _2});
7+const monoidAdditive = /* #__PURE__ */ (() => {
8+ const semigroupAdditive1 = {append: v => v1 => v + v1};
9+ return {mempty: 0.0, Semigroup0: () => semigroupAdditive1};
10+})();
11+const Cons = value0 => value1 => $LL("Cons", value0, value1);
12+const Nil = /* #__PURE__ */ $LL("Nil");
13+const unfoldable = dictMonadRec => dictMonadGen => {
14+ const Monad0 = dictMonadGen.Monad0();
15+ const $0 = Monad0.Applicative0();
16+ const Bind1 = Monad0.Bind1();
17+ return dictUnfoldable => gen => Bind1.Apply0().Functor0().map(dictUnfoldable.unfoldr(v => {
18+ if (v.tag === "Nil") { return Data$dMaybe.Nothing; }
19+ if (v.tag === "Cons") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(v._1, v._2)); }
20+ $runtime.fail();
21+ }))(dictMonadGen.sized((() => {
22+ const $1 = dictMonadRec.tailRecM(v => {
23+ if (v._2 <= 0) { return $0.pure(Control$dMonad$dRec$dClass.$Step("Done", v._1)); }
24+ const $1 = v._1;
25+ const $2 = v._2;
26+ return Bind1.bind(gen)(x => $0.pure(Control$dMonad$dRec$dClass.$Step("Loop", Data$dTuple.$Tuple($LL("Cons", x, $1), $2 - 1 | 0))));
27+ });
28+ const $2 = Data$dTuple.Tuple(Nil);
29+ return x => $1($2(x));
30+ })()));
31+};
32+const semigroupFreqSemigroup = {
33+ append: v => v1 => pos => {
34+ const v2 = v(pos);
35+ if (v2._1.tag === "Just") { return v1(v2._1._1); }
36+ return v2;
37+ }
38+};
39+const fromIndex = dictFoldable1 => {
40+ const foldMap1 = dictFoldable1.foldMap1(Data$dSemigroup$dLast.semigroupLast);
41+ return i => xs => {
42+ const go = go$a0$copy => go$a1$copy => {
43+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
44+ while (go$c) {
45+ const v = go$a0, v1 = go$a1;
46+ if (v1.tag === "Cons") {
47+ if (v1._2.tag === "Nil") {
48+ go$c = false;
49+ go$r = v1._1;
50+ continue;
51+ }
52+ if (v <= 0) {
53+ go$c = false;
54+ go$r = v1._1;
55+ continue;
56+ }
57+ go$a0 = v - 1 | 0;
58+ go$a1 = v1._2;
59+ continue;
60+ }
61+ if (v1.tag === "Nil") {
62+ go$c = false;
63+ go$r = foldMap1(Data$dSemigroup$dLast.Last)(xs);
64+ continue;
65+ }
66+ $runtime.fail();
67+ }
68+ return go$r;
69+ };
70+ return go(i)(dictFoldable1.Foldable0().foldr(Cons)(Nil)(xs));
71+ };
72+};
73+const oneOf = dictMonadGen => dictFoldable1 => {
74+ const length = dictFoldable1.Foldable0().foldl(c => v => 1 + c | 0)(0);
75+ const fromIndex1 = fromIndex(dictFoldable1);
76+ return xs => dictMonadGen.Monad0().Bind1().bind(dictMonadGen.chooseInt(0)(length(xs) - 1 | 0))(n => fromIndex1(n)(xs));
77+};
78+const freqSemigroup = v => {
79+ const $0 = v._1;
80+ const $1 = v._2;
81+ return pos => {
82+ if (pos >= $0) { return Data$dTuple.$Tuple(Data$dMaybe.$Maybe("Just", pos - $0), $1); }
83+ return Data$dTuple.$Tuple(Data$dMaybe.Nothing, $1);
84+ };
85+};
86+const frequency = dictMonadGen => dictFoldable1 => {
87+ const foldMap = dictFoldable1.Foldable0().foldMap(monoidAdditive);
88+ const foldMap1 = dictFoldable1.foldMap1(semigroupFreqSemigroup);
89+ return xs => dictMonadGen.Monad0().Bind1().bind(dictMonadGen.chooseFloat(0.0)(foldMap(Data$dTuple.fst)(xs)))((() => {
90+ const $0 = foldMap1(freqSemigroup)(xs);
91+ return x => $0(x)._2;
92+ })());
93+};
94+const filtered = dictMonadRec => dictMonadGen => {
95+ const $0 = dictMonadGen.Monad0().Bind1().Apply0().Functor0();
96+ return gen => dictMonadRec.tailRecM(v => $0.map(a => {
97+ if (a.tag === "Nothing") { return Control$dMonad$dRec$dClass.$Step("Loop", undefined); }
98+ if (a.tag === "Just") { return Control$dMonad$dRec$dClass.$Step("Done", a._1); }
99+ $runtime.fail();
100+ })(gen))();
101+};
102+const suchThat = dictMonadRec => dictMonadGen => {
103+ const $0 = dictMonadGen.Monad0().Bind1().Apply0().Functor0();
104+ const $1 = dictMonadGen.Monad0().Bind1().Apply0().Functor0();
105+ return gen => pred => {
106+ const $2 = $1.map(a => {
107+ if (pred(a)) { return Data$dMaybe.$Maybe("Just", a); }
108+ return Data$dMaybe.Nothing;
109+ })(gen);
110+ return dictMonadRec.tailRecM(v => $0.map(a => {
111+ if (a.tag === "Nothing") { return Control$dMonad$dRec$dClass.$Step("Loop", undefined); }
112+ if (a.tag === "Just") { return Control$dMonad$dRec$dClass.$Step("Done", a._1); }
113+ $runtime.fail();
114+ })($2))();
115+ };
116+};
117+const elements = dictMonadGen => {
118+ const Monad0 = dictMonadGen.Monad0();
119+ return dictFoldable1 => {
120+ const length = dictFoldable1.Foldable0().foldl(c => v => 1 + c | 0)(0);
121+ const fromIndex1 = fromIndex(dictFoldable1);
122+ return xs => Monad0.Bind1().bind(dictMonadGen.chooseInt(0)(length(xs) - 1 | 0))(n => Monad0.Applicative0().pure(fromIndex1(n)(xs)));
123+ };
124+};
125+const choose = dictMonadGen => {
126+ const chooseBool = dictMonadGen.chooseBool;
127+ return genA => genB => dictMonadGen.Monad0().Bind1().bind(chooseBool)(v => {
128+ if (v) { return genA; }
129+ return genB;
130+ });
131+};
132+export {$LL, Cons, Nil, choose, elements, filtered, freqSemigroup, frequency, fromIndex, monoidAdditive, oneOf, semigroupFreqSemigroup, suchThat, unfoldable};
output-es/Control.Monad.Identity.Trans/index.jsnew file+102
@@ -0,0 +1,102 @@
1+const IdentityT = x => x;
2+const monadSTIdentityT = dictMonadST => dictMonadST;
3+const traversableIdentityT = dictTraversable => dictTraversable;
4+const runIdentityT = v => v;
5+const plusIdentityT = dictPlus => dictPlus;
6+const newtypeIdentityT = {Coercible0: () => {}};
7+const monadWriterIdentityT = dictMonadWriter => dictMonadWriter;
8+const monadTransIdentityT = {lift: dictMonad => IdentityT};
9+const monadThrowIdentityT = dictMonadThrow => dictMonadThrow;
10+const monadTellIdentityT = dictMonadTell => dictMonadTell;
11+const monadStateIdentityT = dictMonadState => dictMonadState;
12+const monadRecIdentityT = dictMonadRec => dictMonadRec;
13+const monadReaderIdentityT = dictMonadReader => dictMonadReader;
14+const monadPlusIdentityT = dictMonadPlus => dictMonadPlus;
15+const monadIdentityT = dictMonad => dictMonad;
16+const monadErrorIdentityT = dictMonadError => dictMonadError;
17+const monadEffectIdentityT = dictMonadEffect => dictMonadEffect;
18+const monadContIdentityT = dictMonadCont => dictMonadCont;
19+const monadAskIdentityT = dictMonadAsk => dictMonadAsk;
20+const mapIdentityT = f => v => f(v);
21+const functorIdentityT = dictFunctor => dictFunctor;
22+const foldableIdentityT = dictFoldable => dictFoldable;
23+const extendIdentityI = dictExtend => {
24+ const $0 = dictExtend.Functor0();
25+ return {extend: f => v => dictExtend.extend(x => f(x))(v), Functor0: () => $0};
26+};
27+const eqIdentityT = dictEq1 => dictEq => {
28+ const eq11 = dictEq1.eq1(dictEq);
29+ return {eq: x => y => eq11(x)(y)};
30+};
31+const ordIdentityT = dictOrd1 => {
32+ const $0 = dictOrd1.Eq10();
33+ return dictOrd => {
34+ const compare11 = dictOrd1.compare1(dictOrd);
35+ const eq11 = $0.eq1(dictOrd.Eq0());
36+ const eqIdentityT2 = {eq: x => y => eq11(x)(y)};
37+ return {compare: x => y => compare11(x)(y), Eq0: () => eqIdentityT2};
38+ };
39+};
40+const eq1IdentityT = dictEq1 => ({eq1: dictEq => dictEq1.eq1(dictEq)});
41+const ord1IdentityT = dictOrd1 => {
42+ const $0 = dictOrd1.Eq10();
43+ const $1 = dictOrd1.Eq10();
44+ const eq1IdentityT1 = {eq1: dictEq => $1.eq1(dictEq)};
45+ return {
46+ compare1: dictOrd => {
47+ const compare11 = dictOrd1.compare1(dictOrd);
48+ const eq11 = $0.eq1(dictOrd.Eq0());
49+ return (() => {
50+ const eqIdentityT2 = {eq: x => y => eq11(x)(y)};
51+ return {compare: x => y => compare11(x)(y), Eq0: () => eqIdentityT2};
52+ })().compare;
53+ },
54+ Eq10: () => eq1IdentityT1
55+ };
56+};
57+const comonadIdentityT = dictComonad => {
58+ const $0 = dictComonad.Extend0();
59+ const $1 = $0.Functor0();
60+ const extendIdentityI1 = {extend: f => v => $0.extend(x => f(x))(v), Functor0: () => $1};
61+ return {extract: x => dictComonad.extract(x), Extend0: () => extendIdentityI1};
62+};
63+const bindIdentityT = dictBind => dictBind;
64+const applyIdentityT = dictApply => dictApply;
65+const applicativeIdentityT = dictApplicative => dictApplicative;
66+const alternativeIdentityT = dictAlternative => dictAlternative;
67+const altIdentityT = dictAlt => dictAlt;
68+export {
69+ IdentityT,
70+ altIdentityT,
71+ alternativeIdentityT,
72+ applicativeIdentityT,
73+ applyIdentityT,
74+ bindIdentityT,
75+ comonadIdentityT,
76+ eq1IdentityT,
77+ eqIdentityT,
78+ extendIdentityI,
79+ foldableIdentityT,
80+ functorIdentityT,
81+ mapIdentityT,
82+ monadAskIdentityT,
83+ monadContIdentityT,
84+ monadEffectIdentityT,
85+ monadErrorIdentityT,
86+ monadIdentityT,
87+ monadPlusIdentityT,
88+ monadReaderIdentityT,
89+ monadRecIdentityT,
90+ monadSTIdentityT,
91+ monadStateIdentityT,
92+ monadTellIdentityT,
93+ monadThrowIdentityT,
94+ monadTransIdentityT,
95+ monadWriterIdentityT,
96+ newtypeIdentityT,
97+ ord1IdentityT,
98+ ordIdentityT,
99+ plusIdentityT,
100+ runIdentityT,
101+ traversableIdentityT
102+};
output-es/Control.Monad.Indexed.Qualified/index.jsnew file+27
@@ -0,0 +1,27 @@
1+// | Use this module to rebind `do`/`ado` notation via Qualified Do/Ado.
2+// |
3+// | For example, here's how one would rebind do notation.
4+// | ```purescript
5+// | import Control.Monad.Indexed.Qualified as Ix
6+// |
7+// | f = Ix.do -- remaps do notation to use `ibind` and `idiscard`
8+// | x <- foo
9+// | bar
10+// | I.pure y
11+// | ```
12+// |
13+// | For example, here's how one would rebind ado notation.
14+// | ```purescript
15+// | import Control.Monad.Indexed.Qualified as Ix
16+// |
17+// | g = Ix.ado -- remaps do notation to use `iapply` and `imap`
18+// | x <- foo
19+// | y <- bar
20+// | in x + y
21+// | ```
22+const pure = dictIxApplicative => dictIxApplicative.ipure;
23+const map = dictIxFunctor => dictIxFunctor.imap;
24+const discard = dictIxBind => dictIxDiscard => dictIxDiscard.idiscard(dictIxBind);
25+const bind = dictIxMonad => dictIxMonad.IxBind1().ibind;
26+const apply = dictIxApply => dictIxApply.iapply;
27+export {apply, bind, discard, map, pure};
output-es/Control.Monad.Indexed/index.jsnew file+21
@@ -0,0 +1,21 @@
1+import * as $runtime from "../runtime.js";
2+const iwhenM = dictIxMonad => {
3+ const $0 = dictIxMonad.IxApplicative0();
4+ return mb => m => dictIxMonad.IxBind1().ibind(mb)(b => {
5+ if (b) { return m; }
6+ return $0.ipure();
7+ });
8+};
9+const iunlessM = dictIxMonad => {
10+ const $0 = dictIxMonad.IxApplicative0();
11+ return mb => m => dictIxMonad.IxBind1().ibind(mb)(b => {
12+ if (!b) { return m; }
13+ if (b) { return $0.ipure(); }
14+ $runtime.fail();
15+ });
16+};
17+const iap = dictIxMonad => {
18+ const IxBind1 = dictIxMonad.IxBind1();
19+ return f => a => IxBind1.ibind(f)(f$p => IxBind1.ibind(a)(a$p => dictIxMonad.IxApplicative0().ipure(f$p(a$p))));
20+};
21+export {iap, iunlessM, iwhenM};
output-es/Control.Monad.List.Trans/index.jsnew file+548
@@ -0,0 +1,548 @@
1+// | This module defines the list monad transformer, `ListT`.
2+import * as $runtime from "../runtime.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dLazy from "../Data.Lazy/index.js";
5+import * as Data$dMaybe from "../Data.Maybe/index.js";
6+import * as Data$dTuple from "../Data.Tuple/index.js";
7+const $Step = (tag, _1, _2) => ({tag, _1, _2});
8+const identity = x => x;
9+const Yield = value0 => value1 => $Step("Yield", value0, value1);
10+const Skip = value0 => $Step("Skip", value0);
11+const Done = /* #__PURE__ */ $Step("Done");
12+const ListT = x => x;
13+const wrapLazy = dictApplicative => v => dictApplicative.pure($Step("Skip", v));
14+const wrapEffect = dictFunctor => v => dictFunctor.map(x => $Step("Skip", Data$dLazy.defer(v$1 => x)))(v);
15+const unfold = dictMonad => f => z => dictMonad.Bind1().Apply0().Functor0().map(v => {
16+ if (v.tag === "Just") {
17+ const $0 = v._1._1;
18+ return $Step("Yield", v._1._2, Data$dLazy.defer(v1 => unfold(dictMonad)(f)($0)));
19+ }
20+ if (v.tag === "Nothing") { return Done; }
21+ $runtime.fail();
22+})(f(z));
23+const uncons = dictMonad => {
24+ const $0 = dictMonad.Applicative0();
25+ return v => dictMonad.Bind1().bind(v)(v1 => {
26+ if (v1.tag === "Yield") { return $0.pure(Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(v1._1, Data$dLazy.force(v1._2)))); }
27+ if (v1.tag === "Skip") { return uncons(dictMonad)(Data$dLazy.force(v1._1)); }
28+ if (v1.tag === "Done") { return $0.pure(Data$dMaybe.Nothing); }
29+ $runtime.fail();
30+ });
31+};
32+const tail = dictMonad => {
33+ const uncons1 = uncons(dictMonad);
34+ return l => dictMonad.Bind1().Apply0().Functor0().map(v1 => {
35+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", v1._1._2); }
36+ return Data$dMaybe.Nothing;
37+ })(uncons1(l));
38+};
39+const takeWhile = dictApplicative => {
40+ const $0 = dictApplicative.Apply0().Functor0();
41+ return f => v => $0.map(v$1 => {
42+ if (v$1.tag === "Yield") {
43+ if (f(v$1._1)) {
44+ return $Step(
45+ "Yield",
46+ v$1._1,
47+ (() => {
48+ const $1 = takeWhile(dictApplicative)(f);
49+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force(v$1._2)));
50+ })()
51+ );
52+ }
53+ return Done;
54+ }
55+ if (v$1.tag === "Skip") {
56+ const $1 = v$1._1;
57+ return $Step(
58+ "Skip",
59+ (() => {
60+ const $2 = takeWhile(dictApplicative)(f);
61+ return Data$dLazy.defer(v$2 => $2(Data$dLazy.force($1)));
62+ })()
63+ );
64+ }
65+ if (v$1.tag === "Done") { return Done; }
66+ $runtime.fail();
67+ })(v);
68+};
69+const scanl = dictMonad => f => b => l => unfold(dictMonad)(v => {
70+ const $0 = v._1;
71+ return dictMonad.Bind1().Apply0().Functor0().map(v1 => {
72+ if (v1.tag === "Yield") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(Data$dTuple.$Tuple(f($0)(v1._1), Data$dLazy.force(v1._2)), $0)); }
73+ if (v1.tag === "Skip") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(Data$dTuple.$Tuple($0, Data$dLazy.force(v1._1)), $0)); }
74+ if (v1.tag === "Done") { return Data$dMaybe.Nothing; }
75+ $runtime.fail();
76+ })(v._2);
77+})(Data$dTuple.$Tuple(b, l));
78+const prepend$p = dictApplicative => h => t => dictApplicative.pure($Step("Yield", h, t));
79+const prepend = dictApplicative => h => t => dictApplicative.pure($Step("Yield", h, Data$dLazy.defer(v => t)));
80+const nil = dictApplicative => dictApplicative.pure(Done);
81+const singleton = dictApplicative => {
82+ const nil1 = dictApplicative.pure(Done);
83+ return a => dictApplicative.pure($Step("Yield", a, Data$dLazy.defer(v => nil1)));
84+};
85+const take = dictApplicative => {
86+ const nil1 = dictApplicative.pure(Done);
87+ const $0 = dictApplicative.Apply0().Functor0();
88+ return v => v1 => {
89+ if (v === 0) { return nil1; }
90+ return $0.map(v2 => {
91+ if (v2.tag === "Yield") {
92+ const $1 = v2._2;
93+ return $Step(
94+ "Yield",
95+ v2._1,
96+ (() => {
97+ const $2 = take(dictApplicative)(v - 1 | 0);
98+ return Data$dLazy.defer(v$1 => $2(Data$dLazy.force($1)));
99+ })()
100+ );
101+ }
102+ if (v2.tag === "Skip") {
103+ const $1 = v2._1;
104+ return $Step(
105+ "Skip",
106+ (() => {
107+ const $2 = take(dictApplicative)(v);
108+ return Data$dLazy.defer(v$1 => $2(Data$dLazy.force($1)));
109+ })()
110+ );
111+ }
112+ if (v2.tag === "Done") { return Done; }
113+ $runtime.fail();
114+ })(v1);
115+ };
116+};
117+const zipWith$p = dictMonad => {
118+ const Applicative0 = dictMonad.Applicative0();
119+ const nil1 = Applicative0.pure(Done);
120+ const Bind1 = dictMonad.Bind1();
121+ const Functor0 = Bind1.Apply0().Functor0();
122+ const uncons1 = uncons(dictMonad);
123+ return f => fa => fb => Functor0.map(x => $Step("Skip", Data$dLazy.defer(v => x)))(Bind1.bind(uncons1(fa))(ua => Bind1.bind(uncons1(fb))(ub => {
124+ if (ub.tag === "Nothing") { return Applicative0.pure(nil1); }
125+ if (ua.tag === "Nothing") { return Applicative0.pure(nil1); }
126+ if (ua.tag === "Just" && ub.tag === "Just") {
127+ const $0 = ua._1._2;
128+ const $1 = ub._1._2;
129+ return Functor0.map((() => {
130+ const $2 = Data$dLazy.defer(v2 => zipWith$p(dictMonad)(f)($0)($1));
131+ return a => Applicative0.pure($Step("Yield", a, $2));
132+ })())(f(ua._1._1)(ub._1._1));
133+ }
134+ $runtime.fail();
135+ })));
136+};
137+const zipWith = dictMonad => {
138+ const zipWith$p1 = zipWith$p(dictMonad);
139+ return f => zipWith$p1(a => b => dictMonad.Applicative0().pure(f(a)(b)));
140+};
141+const newtypeListT = {Coercible0: () => {}};
142+const mapMaybe = dictFunctor => f => v => dictFunctor.map(v$1 => {
143+ if (v$1.tag === "Yield") {
144+ const $0 = f(v$1._1);
145+ if ($0.tag === "Just") {
146+ return $Step(
147+ "Yield",
148+ $0._1,
149+ (() => {
150+ const $1 = mapMaybe(dictFunctor)(f);
151+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force(v$1._2)));
152+ })()
153+ );
154+ }
155+ return $Step(
156+ "Skip",
157+ (() => {
158+ const $1 = mapMaybe(dictFunctor)(f);
159+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force(v$1._2)));
160+ })()
161+ );
162+ }
163+ if (v$1.tag === "Skip") {
164+ const $0 = v$1._1;
165+ return $Step(
166+ "Skip",
167+ (() => {
168+ const $1 = mapMaybe(dictFunctor)(f);
169+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force($0)));
170+ })()
171+ );
172+ }
173+ if (v$1.tag === "Done") { return Done; }
174+ $runtime.fail();
175+})(v);
176+const iterate = dictMonad => f => a => unfold(dictMonad)(x => dictMonad.Applicative0().pure(Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(f(x), x))))(a);
177+const repeat = dictMonad => iterate(dictMonad)(identity);
178+const head = dictMonad => {
179+ const uncons1 = uncons(dictMonad);
180+ return l => dictMonad.Bind1().Apply0().Functor0().map(v1 => {
181+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", v1._1._1); }
182+ return Data$dMaybe.Nothing;
183+ })(uncons1(l));
184+};
185+const functorListT = dictFunctor => (
186+ {
187+ map: f => v => dictFunctor.map(v$1 => {
188+ if (v$1.tag === "Yield") {
189+ const $0 = v$1._2;
190+ return $Step(
191+ "Yield",
192+ f(v$1._1),
193+ (() => {
194+ const $1 = functorListT(dictFunctor).map(f);
195+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force($0)));
196+ })()
197+ );
198+ }
199+ if (v$1.tag === "Skip") {
200+ const $0 = v$1._1;
201+ return $Step(
202+ "Skip",
203+ (() => {
204+ const $1 = functorListT(dictFunctor).map(f);
205+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force($0)));
206+ })()
207+ );
208+ }
209+ if (v$1.tag === "Done") { return Done; }
210+ $runtime.fail();
211+ })(v)
212+ }
213+);
214+const fromEffect = dictApplicative => {
215+ const nil1 = dictApplicative.pure(Done);
216+ return fa => dictApplicative.Apply0().Functor0().map((() => {
217+ const $0 = Data$dLazy.defer(v => nil1);
218+ return a => $Step("Yield", a, $0);
219+ })())(fa);
220+};
221+const monadTransListT = {lift: dictMonad => fromEffect(dictMonad.Applicative0())};
222+const foldlRec$p = dictMonadRec => {
223+ const Monad0 = dictMonadRec.Monad0();
224+ const $0 = Monad0.Applicative0();
225+ const $1 = Monad0.Bind1();
226+ const uncons1 = uncons(Monad0);
227+ return f => a => b => dictMonadRec.tailRecM(o => {
228+ const $2 = o.a;
229+ return $1.bind(uncons1(o.b))(v => {
230+ if (v.tag === "Nothing") { return $0.pure(Control$dMonad$dRec$dClass.$Step("Done", $2)); }
231+ if (v.tag === "Just") {
232+ const $3 = v._1._2;
233+ return $1.bind(f($2)(v._1._1))(b$p => $0.pure(Control$dMonad$dRec$dClass.$Step("Loop", {a: b$p, b: $3})));
234+ }
235+ $runtime.fail();
236+ });
237+ })({a, b});
238+};
239+const runListTRec = dictMonadRec => foldlRec$p(dictMonadRec)(v => v1 => dictMonadRec.Monad0().Applicative0().pure())();
240+const foldlRec = dictMonadRec => {
241+ const Monad0 = dictMonadRec.Monad0();
242+ const $0 = Monad0.Applicative0();
243+ const uncons1 = uncons(Monad0);
244+ return f => a => b => dictMonadRec.tailRecM(o => {
245+ const $1 = o.a;
246+ return Monad0.Bind1().bind(uncons1(o.b))(v => {
247+ if (v.tag === "Nothing") { return $0.pure(Control$dMonad$dRec$dClass.$Step("Done", $1)); }
248+ if (v.tag === "Just") { return $0.pure(Control$dMonad$dRec$dClass.$Step("Loop", {a: f($1)(v._1._1), b: v._1._2})); }
249+ $runtime.fail();
250+ });
251+ })({a, b});
252+};
253+const foldl$p = dictMonad => {
254+ const $0 = dictMonad.Bind1();
255+ const uncons1 = uncons(dictMonad);
256+ return f => {
257+ const loop = b => l => $0.bind(uncons1(l))(v => {
258+ if (v.tag === "Nothing") { return dictMonad.Applicative0().pure(b); }
259+ if (v.tag === "Just") {
260+ const $1 = v._1._2;
261+ return $0.bind(f(b)(v._1._1))(a => loop(a)($1));
262+ }
263+ $runtime.fail();
264+ });
265+ return loop;
266+ };
267+};
268+const runListT = dictMonad => foldl$p(dictMonad)(v => v1 => dictMonad.Applicative0().pure())();
269+const foldl = dictMonad => {
270+ const uncons1 = uncons(dictMonad);
271+ return f => {
272+ const loop = b => l => dictMonad.Bind1().bind(uncons1(l))(v => {
273+ if (v.tag === "Nothing") { return dictMonad.Applicative0().pure(b); }
274+ if (v.tag === "Just") { return loop(f(b)(v._1._1))(v._1._2); }
275+ $runtime.fail();
276+ });
277+ return loop;
278+ };
279+};
280+const filter = dictFunctor => f => v => dictFunctor.map(v$1 => {
281+ if (v$1.tag === "Yield") {
282+ const $0 = v$1._2;
283+ const $1 = filter(dictFunctor)(f);
284+ const s$p = Data$dLazy.defer(v$2 => $1(Data$dLazy.force($0)));
285+ if (f(v$1._1)) { return $Step("Yield", v$1._1, s$p); }
286+ return $Step("Skip", s$p);
287+ }
288+ if (v$1.tag === "Skip") {
289+ const $0 = v$1._1;
290+ return $Step(
291+ "Skip",
292+ (() => {
293+ const $1 = filter(dictFunctor)(f);
294+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force($0)));
295+ })()
296+ );
297+ }
298+ if (v$1.tag === "Done") { return Done; }
299+ $runtime.fail();
300+})(v);
301+const dropWhile = dictApplicative => {
302+ const $0 = dictApplicative.Apply0().Functor0();
303+ return f => v => $0.map(v$1 => {
304+ if (v$1.tag === "Yield") {
305+ if (f(v$1._1)) {
306+ return $Step(
307+ "Skip",
308+ (() => {
309+ const $1 = dropWhile(dictApplicative)(f);
310+ return Data$dLazy.defer(v$2 => $1(Data$dLazy.force(v$1._2)));
311+ })()
312+ );
313+ }
314+ return $Step("Yield", v$1._1, v$1._2);
315+ }
316+ if (v$1.tag === "Skip") {
317+ const $1 = v$1._1;
318+ return $Step(
319+ "Skip",
320+ (() => {
321+ const $2 = dropWhile(dictApplicative)(f);
322+ return Data$dLazy.defer(v$2 => $2(Data$dLazy.force($1)));
323+ })()
324+ );
325+ }
326+ if (v$1.tag === "Done") { return Done; }
327+ $runtime.fail();
328+ })(v);
329+};
330+const drop = dictApplicative => {
331+ const $0 = dictApplicative.Apply0().Functor0();
332+ return v => v1 => {
333+ if (v === 0) { return v1; }
334+ return $0.map(v2 => {
335+ if (v2.tag === "Yield") {
336+ const $1 = v2._2;
337+ return $Step(
338+ "Skip",
339+ (() => {
340+ const $2 = drop(dictApplicative)(v - 1 | 0);
341+ return Data$dLazy.defer(v$1 => $2(Data$dLazy.force($1)));
342+ })()
343+ );
344+ }
345+ if (v2.tag === "Skip") {
346+ const $1 = v2._1;
347+ return $Step(
348+ "Skip",
349+ (() => {
350+ const $2 = drop(dictApplicative)(v);
351+ return Data$dLazy.defer(v$1 => $2(Data$dLazy.force($1)));
352+ })()
353+ );
354+ }
355+ if (v2.tag === "Done") { return Done; }
356+ $runtime.fail();
357+ })(v1);
358+ };
359+};
360+const cons = dictApplicative => lh => t => dictApplicative.pure($Step("Yield", Data$dLazy.force(lh), t));
361+const unfoldable1ListT = dictMonad => {
362+ const Applicative0 = dictMonad.Applicative0();
363+ const singleton1 = singleton(Applicative0);
364+ return {
365+ unfoldr1: f => b => {
366+ const go = v => {
367+ if (v._2.tag === "Nothing") { return singleton1(v._1); }
368+ if (v._2.tag === "Just") {
369+ const $0 = v._1;
370+ const $1 = v._2._1;
371+ return Applicative0.pure($Step("Yield", Data$dLazy.force(Data$dLazy.defer(v$1 => $0)), Data$dLazy.defer(v1 => go(f($1)))));
372+ }
373+ $runtime.fail();
374+ };
375+ return go(f(b));
376+ }
377+ };
378+};
379+const unfoldableListT = dictMonad => {
380+ const Applicative0 = dictMonad.Applicative0();
381+ const nil1 = Applicative0.pure(Done);
382+ const unfoldable1ListT1 = unfoldable1ListT(dictMonad);
383+ return {
384+ unfoldr: f => b => {
385+ const go = v => {
386+ if (v.tag === "Nothing") { return nil1; }
387+ if (v.tag === "Just") {
388+ const $0 = v._1._1;
389+ const $1 = v._1._2;
390+ return Applicative0.pure($Step("Yield", Data$dLazy.force(Data$dLazy.defer(v$1 => $0)), Data$dLazy.defer(v1 => go(f($1)))));
391+ }
392+ $runtime.fail();
393+ };
394+ return go(f(b));
395+ },
396+ Unfoldable10: () => unfoldable1ListT1
397+ };
398+};
399+const semigroupListT = dictApplicative => ({append: concat(dictApplicative)});
400+const concat = dictApplicative => {
401+ const $0 = dictApplicative.Apply0().Functor0();
402+ return x => y => $0.map(v => {
403+ if (v.tag === "Yield") {
404+ const $1 = v._2;
405+ return $Step("Yield", v._1, Data$dLazy.defer(v$1 => concat(dictApplicative)(Data$dLazy.force($1))(y)));
406+ }
407+ if (v.tag === "Skip") {
408+ const $1 = v._1;
409+ return $Step("Skip", Data$dLazy.defer(v$1 => concat(dictApplicative)(Data$dLazy.force($1))(y)));
410+ }
411+ if (v.tag === "Done") { return $Step("Skip", Data$dLazy.defer(v$1 => y)); }
412+ $runtime.fail();
413+ })(x);
414+};
415+const monoidListT = dictApplicative => {
416+ const semigroupListT1 = {append: concat(dictApplicative)};
417+ return {mempty: dictApplicative.pure(Done), Semigroup0: () => semigroupListT1};
418+};
419+const catMaybes = dictFunctor => mapMaybe(dictFunctor)(identity);
420+const monadListT = dictMonad => ({Applicative0: () => applicativeListT(dictMonad), Bind1: () => bindListT(dictMonad)});
421+const bindListT = dictMonad => {
422+ const append = concat(dictMonad.Applicative0());
423+ const $0 = dictMonad.Bind1().Apply0().Functor0();
424+ return {
425+ bind: fa => f => $0.map(v => {
426+ if (v.tag === "Yield") {
427+ const $1 = v._1;
428+ const $2 = v._2;
429+ return $Step("Skip", Data$dLazy.defer(v$1 => append(f($1))(bindListT(dictMonad).bind(Data$dLazy.force($2))(f))));
430+ }
431+ if (v.tag === "Skip") {
432+ const $1 = v._1;
433+ return $Step("Skip", Data$dLazy.defer(v$1 => bindListT(dictMonad).bind(Data$dLazy.force($1))(f)));
434+ }
435+ if (v.tag === "Done") { return Done; }
436+ $runtime.fail();
437+ })(fa),
438+ Apply0: () => applyListT(dictMonad)
439+ };
440+};
441+const applyListT = dictMonad => {
442+ const functorListT1 = functorListT(dictMonad.Bind1().Apply0().Functor0());
443+ return {
444+ apply: (() => {
445+ const $0 = bindListT(dictMonad);
446+ return f => a => $0.bind(f)(f$p => $0.bind(a)(a$p => applicativeListT(dictMonad).pure(f$p(a$p))));
447+ })(),
448+ Functor0: () => functorListT1
449+ };
450+};
451+const applicativeListT = dictMonad => ({pure: singleton(dictMonad.Applicative0()), Apply0: () => applyListT(dictMonad)});
452+const monadEffectListT = dictMonadEffect => {
453+ const Monad0 = dictMonadEffect.Monad0();
454+ const monadListT1 = {Applicative0: () => ({pure: singleton(Monad0.Applicative0()), Apply0: () => applyListT(Monad0)}), Bind1: () => bindListT(Monad0)};
455+ return {
456+ liftEffect: (() => {
457+ const $0 = fromEffect(Monad0.Applicative0());
458+ return x => $0(dictMonadEffect.liftEffect(x));
459+ })(),
460+ Monad0: () => monadListT1
461+ };
462+};
463+const monadSTListT = dictMonadST => {
464+ const Monad0 = dictMonadST.Monad0();
465+ const monadListT1 = {Applicative0: () => ({pure: singleton(Monad0.Applicative0()), Apply0: () => applyListT(Monad0)}), Bind1: () => bindListT(Monad0)};
466+ return {
467+ liftST: (() => {
468+ const $0 = fromEffect(Monad0.Applicative0());
469+ return x => $0(dictMonadST.liftST(x));
470+ })(),
471+ Monad0: () => monadListT1
472+ };
473+};
474+const altListT = dictApplicative => {
475+ const functorListT1 = functorListT(dictApplicative.Apply0().Functor0());
476+ return {alt: concat(dictApplicative), Functor0: () => functorListT1};
477+};
478+const plusListT = dictMonad => {
479+ const Applicative0 = dictMonad.Applicative0();
480+ const altListT1 = altListT(Applicative0);
481+ return {empty: Applicative0.pure(Done), Alt0: () => altListT1};
482+};
483+const alternativeListT = dictMonad => {
484+ const applicativeListT1 = {pure: singleton(dictMonad.Applicative0()), Apply0: () => applyListT(dictMonad)};
485+ const plusListT1 = plusListT(dictMonad);
486+ return {Applicative0: () => applicativeListT1, Plus1: () => plusListT1};
487+};
488+const monadPlusListT = dictMonad => {
489+ const monadListT1 = {Applicative0: () => ({pure: singleton(dictMonad.Applicative0()), Apply0: () => applyListT(dictMonad)}), Bind1: () => bindListT(dictMonad)};
490+ const alternativeListT1 = alternativeListT(dictMonad);
491+ return {Monad0: () => monadListT1, Alternative1: () => alternativeListT1};
492+};
493+export {
494+ $Step,
495+ Done,
496+ ListT,
497+ Skip,
498+ Yield,
499+ altListT,
500+ alternativeListT,
501+ applicativeListT,
502+ applyListT,
503+ bindListT,
504+ catMaybes,
505+ concat,
506+ cons,
507+ drop,
508+ dropWhile,
509+ filter,
510+ foldl,
511+ foldl$p,
512+ foldlRec,
513+ foldlRec$p,
514+ fromEffect,
515+ functorListT,
516+ head,
517+ identity,
518+ iterate,
519+ mapMaybe,
520+ monadEffectListT,
521+ monadListT,
522+ monadPlusListT,
523+ monadSTListT,
524+ monadTransListT,
525+ monoidListT,
526+ newtypeListT,
527+ nil,
528+ plusListT,
529+ prepend,
530+ prepend$p,
531+ repeat,
532+ runListT,
533+ runListTRec,
534+ scanl,
535+ semigroupListT,
536+ singleton,
537+ tail,
538+ take,
539+ takeWhile,
540+ uncons,
541+ unfold,
542+ unfoldable1ListT,
543+ unfoldableListT,
544+ wrapEffect,
545+ wrapLazy,
546+ zipWith,
547+ zipWith$p
548+};
output-es/Control.Monad.Maybe.Trans/index.jsnew file+223
@@ -0,0 +1,223 @@
1+// | This module defines the `MaybeT` monad transformer.
2+import * as $runtime from "../runtime.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dMaybe from "../Data.Maybe/index.js";
5+import * as Data$dTuple from "../Data.Tuple/index.js";
6+const identity = x => x;
7+const MaybeT = x => x;
8+const runMaybeT = v => v;
9+const newtypeMaybeT = {Coercible0: () => {}};
10+const monadTransMaybeT = {lift: dictMonad => x => dictMonad.Bind1().bind(x)(a$p => dictMonad.Applicative0().pure(Data$dMaybe.$Maybe("Just", a$p)))};
11+const mapMaybeT = f => v => f(v);
12+const functorMaybeT = dictFunctor => (
13+ {
14+ map: f => v => dictFunctor.map(v1 => {
15+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", f(v1._1)); }
16+ return Data$dMaybe.Nothing;
17+ })(v)
18+ }
19+);
20+const monadMaybeT = dictMonad => ({Applicative0: () => applicativeMaybeT(dictMonad), Bind1: () => bindMaybeT(dictMonad)});
21+const bindMaybeT = dictMonad => (
22+ {
23+ bind: v => f => dictMonad.Bind1().bind(v)(v1 => {
24+ if (v1.tag === "Nothing") { return dictMonad.Applicative0().pure(Data$dMaybe.Nothing); }
25+ if (v1.tag === "Just") { return f(v1._1); }
26+ $runtime.fail();
27+ }),
28+ Apply0: () => applyMaybeT(dictMonad)
29+ }
30+);
31+const applyMaybeT = dictMonad => {
32+ const $0 = dictMonad.Bind1().Apply0().Functor0();
33+ const functorMaybeT1 = {
34+ map: f => v => $0.map(v1 => {
35+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", f(v1._1)); }
36+ return Data$dMaybe.Nothing;
37+ })(v)
38+ };
39+ return {
40+ apply: (() => {
41+ const $1 = bindMaybeT(dictMonad);
42+ return f => a => $1.bind(f)(f$p => $1.bind(a)(a$p => applicativeMaybeT(dictMonad).pure(f$p(a$p))));
43+ })(),
44+ Functor0: () => functorMaybeT1
45+ };
46+};
47+const applicativeMaybeT = dictMonad => ({pure: x => dictMonad.Applicative0().pure(Data$dMaybe.$Maybe("Just", x)), Apply0: () => applyMaybeT(dictMonad)});
48+const semigroupMaybeT = dictMonad => {
49+ const $0 = applyMaybeT(dictMonad);
50+ return dictSemigroup => (
51+ {
52+ append: (() => {
53+ const $1 = dictSemigroup.append;
54+ return a => b => $0.apply($0.Functor0().map($1)(a))(b);
55+ })()
56+ }
57+ );
58+};
59+const monadAskMaybeT = dictMonadAsk => {
60+ const Monad0 = dictMonadAsk.Monad0();
61+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(Monad0), Bind1: () => bindMaybeT(Monad0)};
62+ return {ask: Monad0.Bind1().bind(dictMonadAsk.ask)(a$p => Monad0.Applicative0().pure(Data$dMaybe.$Maybe("Just", a$p))), Monad0: () => monadMaybeT1};
63+};
64+const monadReaderMaybeT = dictMonadReader => {
65+ const monadAskMaybeT1 = monadAskMaybeT(dictMonadReader.MonadAsk0());
66+ return {local: f => dictMonadReader.local(f), MonadAsk0: () => monadAskMaybeT1};
67+};
68+const monadContMaybeT = dictMonadCont => {
69+ const $0 = dictMonadCont.Monad0();
70+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT($0), Bind1: () => bindMaybeT($0)};
71+ return {callCC: f => dictMonadCont.callCC(c => f(a => c(Data$dMaybe.$Maybe("Just", a)))), Monad0: () => monadMaybeT1};
72+};
73+const monadEffectMaybe = dictMonadEffect => {
74+ const Monad0 = dictMonadEffect.Monad0();
75+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(Monad0), Bind1: () => bindMaybeT(Monad0)};
76+ return {liftEffect: x => Monad0.Bind1().bind(dictMonadEffect.liftEffect(x))(a$p => Monad0.Applicative0().pure(Data$dMaybe.$Maybe("Just", a$p))), Monad0: () => monadMaybeT1};
77+};
78+const monadRecMaybeT = dictMonadRec => {
79+ const Monad0 = dictMonadRec.Monad0();
80+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(Monad0), Bind1: () => bindMaybeT(Monad0)};
81+ return {
82+ tailRecM: f => dictMonadRec.tailRecM(a => Monad0.Bind1().bind(f(a))(m$p => Monad0.Applicative0().pure((() => {
83+ if (m$p.tag === "Nothing") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dMaybe.Nothing); }
84+ if (m$p.tag === "Just") {
85+ if (m$p._1.tag === "Loop") { return Control$dMonad$dRec$dClass.$Step("Loop", m$p._1._1); }
86+ if (m$p._1.tag === "Done") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dMaybe.$Maybe("Just", m$p._1._1)); }
87+ }
88+ $runtime.fail();
89+ })()))),
90+ Monad0: () => monadMaybeT1
91+ };
92+};
93+const monadStateMaybeT = dictMonadState => {
94+ const Monad0 = dictMonadState.Monad0();
95+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(Monad0), Bind1: () => bindMaybeT(Monad0)};
96+ return {state: f => Monad0.Bind1().bind(dictMonadState.state(f))(a$p => Monad0.Applicative0().pure(Data$dMaybe.$Maybe("Just", a$p))), Monad0: () => monadMaybeT1};
97+};
98+const monadTellMaybeT = dictMonadTell => {
99+ const Monad1 = dictMonadTell.Monad1();
100+ const Semigroup0 = dictMonadTell.Semigroup0();
101+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(Monad1), Bind1: () => bindMaybeT(Monad1)};
102+ return {
103+ tell: x => Monad1.Bind1().bind(dictMonadTell.tell(x))(a$p => Monad1.Applicative0().pure(Data$dMaybe.$Maybe("Just", a$p))),
104+ Semigroup0: () => Semigroup0,
105+ Monad1: () => monadMaybeT1
106+ };
107+};
108+const monadWriterMaybeT = dictMonadWriter => {
109+ const MonadTell1 = dictMonadWriter.MonadTell1();
110+ const Monad1 = MonadTell1.Monad1();
111+ const $0 = Monad1.Bind1();
112+ const $1 = Monad1.Applicative0();
113+ const Monoid0 = dictMonadWriter.Monoid0();
114+ const monadTellMaybeT1 = monadTellMaybeT(MonadTell1);
115+ return {
116+ listen: v => $0.bind(dictMonadWriter.listen(v))(v$1 => $1.pure(v$1._1.tag === "Just" ? Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(v$1._1._1, v$1._2)) : Data$dMaybe.Nothing)),
117+ pass: v => dictMonadWriter.pass($0.bind(v)(a => $1.pure((() => {
118+ if (a.tag === "Nothing") { return Data$dTuple.$Tuple(Data$dMaybe.Nothing, identity); }
119+ if (a.tag === "Just") { return Data$dTuple.$Tuple(Data$dMaybe.$Maybe("Just", a._1._1), a._1._2); }
120+ $runtime.fail();
121+ })()))),
122+ Monoid0: () => Monoid0,
123+ MonadTell1: () => monadTellMaybeT1
124+ };
125+};
126+const monadThrowMaybeT = dictMonadThrow => {
127+ const Monad0 = dictMonadThrow.Monad0();
128+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(Monad0), Bind1: () => bindMaybeT(Monad0)};
129+ return {throwError: e => Monad0.Bind1().bind(dictMonadThrow.throwError(e))(a$p => Monad0.Applicative0().pure(Data$dMaybe.$Maybe("Just", a$p))), Monad0: () => monadMaybeT1};
130+};
131+const monadErrorMaybeT = dictMonadError => {
132+ const monadThrowMaybeT1 = monadThrowMaybeT(dictMonadError.MonadThrow0());
133+ return {catchError: v => h => dictMonadError.catchError(v)(a => h(a)), MonadThrow0: () => monadThrowMaybeT1};
134+};
135+const monadSTMaybeT = dictMonadST => {
136+ const Monad0 = dictMonadST.Monad0();
137+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(Monad0), Bind1: () => bindMaybeT(Monad0)};
138+ return {liftST: x => Monad0.Bind1().bind(dictMonadST.liftST(x))(a$p => Monad0.Applicative0().pure(Data$dMaybe.$Maybe("Just", a$p))), Monad0: () => monadMaybeT1};
139+};
140+const monoidMaybeT = dictMonad => {
141+ const semigroupMaybeT1 = semigroupMaybeT(dictMonad);
142+ return dictMonoid => {
143+ const semigroupMaybeT2 = semigroupMaybeT1(dictMonoid.Semigroup0());
144+ return {mempty: applicativeMaybeT(dictMonad).pure(dictMonoid.mempty), Semigroup0: () => semigroupMaybeT2};
145+ };
146+};
147+const altMaybeT = dictMonad => {
148+ const Bind1 = dictMonad.Bind1();
149+ const $0 = Bind1.Apply0().Functor0();
150+ const functorMaybeT1 = {
151+ map: f => v => $0.map(v1 => {
152+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", f(v1._1)); }
153+ return Data$dMaybe.Nothing;
154+ })(v)
155+ };
156+ return {
157+ alt: v => v1 => Bind1.bind(v)(m => {
158+ if (m.tag === "Nothing") { return v1; }
159+ return dictMonad.Applicative0().pure(m);
160+ }),
161+ Functor0: () => functorMaybeT1
162+ };
163+};
164+const plusMaybeT = dictMonad => {
165+ const Bind1 = dictMonad.Bind1();
166+ const $0 = Bind1.Apply0().Functor0();
167+ const altMaybeT1 = (() => {
168+ const functorMaybeT1 = {
169+ map: f => v => $0.map(v1 => {
170+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", f(v1._1)); }
171+ return Data$dMaybe.Nothing;
172+ })(v)
173+ };
174+ return {
175+ alt: v => v1 => Bind1.bind(v)(m => {
176+ if (m.tag === "Nothing") { return v1; }
177+ return dictMonad.Applicative0().pure(m);
178+ }),
179+ Functor0: () => functorMaybeT1
180+ };
181+ })();
182+ return {empty: dictMonad.Applicative0().pure(Data$dMaybe.Nothing), Alt0: () => altMaybeT1};
183+};
184+const alternativeMaybeT = dictMonad => {
185+ const applicativeMaybeT1 = applicativeMaybeT(dictMonad);
186+ const plusMaybeT1 = plusMaybeT(dictMonad);
187+ return {Applicative0: () => applicativeMaybeT1, Plus1: () => plusMaybeT1};
188+};
189+const monadPlusMaybeT = dictMonad => {
190+ const monadMaybeT1 = {Applicative0: () => applicativeMaybeT(dictMonad), Bind1: () => bindMaybeT(dictMonad)};
191+ const alternativeMaybeT1 = alternativeMaybeT(dictMonad);
192+ return {Monad0: () => monadMaybeT1, Alternative1: () => alternativeMaybeT1};
193+};
194+export {
195+ MaybeT,
196+ altMaybeT,
197+ alternativeMaybeT,
198+ applicativeMaybeT,
199+ applyMaybeT,
200+ bindMaybeT,
201+ functorMaybeT,
202+ identity,
203+ mapMaybeT,
204+ monadAskMaybeT,
205+ monadContMaybeT,
206+ monadEffectMaybe,
207+ monadErrorMaybeT,
208+ monadMaybeT,
209+ monadPlusMaybeT,
210+ monadReaderMaybeT,
211+ monadRecMaybeT,
212+ monadSTMaybeT,
213+ monadStateMaybeT,
214+ monadTellMaybeT,
215+ monadThrowMaybeT,
216+ monadTransMaybeT,
217+ monadWriterMaybeT,
218+ monoidMaybeT,
219+ newtypeMaybeT,
220+ plusMaybeT,
221+ runMaybeT,
222+ semigroupMaybeT
223+};
output-es/Control.Monad.RWS.Trans/index.jsnew file+275
@@ -0,0 +1,275 @@
1+// | This module defines the reader-writer-state monad transformer, `RWST`.
2+import * as $runtime from "../runtime.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dTuple from "../Data.Tuple/index.js";
5+const $RWSResult = (_1, _2, _3) => ({tag: "RWSResult", _1, _2, _3});
6+const RWSResult = value0 => value1 => value2 => $RWSResult(value0, value1, value2);
7+const RWST = x => x;
8+const withRWST = f => m => r => s => {
9+ const $0 = f(r)(s);
10+ return m($0._1)($0._2);
11+};
12+const runRWST = v => v;
13+const newtypeRWST = {Coercible0: () => {}};
14+const monadTransRWST = dictMonoid => {
15+ const mempty = dictMonoid.mempty;
16+ return {lift: dictMonad => m => v => s => dictMonad.Bind1().bind(m)(a => dictMonad.Applicative0().pure($RWSResult(s, a, mempty)))};
17+};
18+const mapRWST = f => v => r => s => f(v(r)(s));
19+const lazyRWST = {defer: f => r => s => f()(r)(s)};
20+const functorRWST = dictFunctor => ({map: f => v => r => s => dictFunctor.map(v1 => $RWSResult(v1._1, f(v1._2), v1._3))(v(r)(s))});
21+const execRWST = dictMonad => v => r => s => dictMonad.Bind1().bind(v(r)(s))(v1 => dictMonad.Applicative0().pure(Data$dTuple.$Tuple(v1._1, v1._3)));
22+const evalRWST = dictMonad => v => r => s => dictMonad.Bind1().bind(v(r)(s))(v1 => dictMonad.Applicative0().pure(Data$dTuple.$Tuple(v1._2, v1._3)));
23+const applyRWST = dictBind => {
24+ const Functor0 = dictBind.Apply0().Functor0();
25+ const functorRWST1 = {map: f => v => r => s => Functor0.map(v1 => $RWSResult(v1._1, f(v1._2), v1._3))(v(r)(s))};
26+ return dictMonoid => (
27+ {
28+ apply: v => v1 => r => s => dictBind.bind(v(r)(s))(v2 => {
29+ const $0 = v2._3;
30+ return Functor0.map(v3 => $RWSResult(v3._1, v2._2(v3._2), dictMonoid.Semigroup0().append($0)(v3._3)))(v1(r)(v2._1));
31+ }),
32+ Functor0: () => functorRWST1
33+ }
34+ );
35+};
36+const bindRWST = dictBind => {
37+ const $0 = dictBind.Apply0().Functor0();
38+ const applyRWST1 = applyRWST(dictBind);
39+ return dictMonoid => {
40+ const applyRWST2 = applyRWST1(dictMonoid);
41+ return {
42+ bind: v => f => r => s => dictBind.bind(v(r)(s))(v1 => {
43+ const $1 = v1._3;
44+ return $0.map(v3 => $RWSResult(v3._1, v3._2, dictMonoid.Semigroup0().append($1)(v3._3)))(f(v1._2)(r)(v1._1));
45+ }),
46+ Apply0: () => applyRWST2
47+ };
48+ };
49+};
50+const semigroupRWST = dictBind => {
51+ const applyRWST1 = applyRWST(dictBind);
52+ return dictMonoid => {
53+ const $0 = applyRWST1(dictMonoid);
54+ return dictSemigroup => (
55+ {
56+ append: (() => {
57+ const $1 = dictSemigroup.append;
58+ return a => b => $0.apply($0.Functor0().map($1)(a))(b);
59+ })()
60+ }
61+ );
62+ };
63+};
64+const applicativeRWST = dictMonad => {
65+ const applyRWST1 = applyRWST(dictMonad.Bind1());
66+ return dictMonoid => {
67+ const mempty = dictMonoid.mempty;
68+ const applyRWST2 = applyRWST1(dictMonoid);
69+ return {pure: a => v => s => dictMonad.Applicative0().pure($RWSResult(s, a, mempty)), Apply0: () => applyRWST2};
70+ };
71+};
72+const monadRWST = dictMonad => {
73+ const applicativeRWST1 = applicativeRWST(dictMonad);
74+ const bindRWST1 = bindRWST(dictMonad.Bind1());
75+ return dictMonoid => {
76+ const applicativeRWST2 = applicativeRWST1(dictMonoid);
77+ const bindRWST2 = bindRWST1(dictMonoid);
78+ return {Applicative0: () => applicativeRWST2, Bind1: () => bindRWST2};
79+ };
80+};
81+const monadAskRWST = dictMonad => {
82+ const monadRWST1 = monadRWST(dictMonad);
83+ return dictMonoid => {
84+ const mempty = dictMonoid.mempty;
85+ const monadRWST2 = monadRWST1(dictMonoid);
86+ return {ask: r => s => dictMonad.Applicative0().pure($RWSResult(s, r, mempty)), Monad0: () => monadRWST2};
87+ };
88+};
89+const monadReaderRWST = dictMonad => {
90+ const monadAskRWST1 = monadAskRWST(dictMonad);
91+ return dictMonoid => {
92+ const monadAskRWST2 = monadAskRWST1(dictMonoid);
93+ return {local: f => m => r => s => m(f(r))(s), MonadAsk0: () => monadAskRWST2};
94+ };
95+};
96+const monadEffectRWS = dictMonoid => {
97+ const mempty = dictMonoid.mempty;
98+ return dictMonadEffect => {
99+ const Monad0 = dictMonadEffect.Monad0();
100+ const monadRWST1 = monadRWST(Monad0)(dictMonoid);
101+ return {
102+ liftEffect: x => {
103+ const $0 = dictMonadEffect.liftEffect(x);
104+ return v => s => Monad0.Bind1().bind($0)(a => Monad0.Applicative0().pure($RWSResult(s, a, mempty)));
105+ },
106+ Monad0: () => monadRWST1
107+ };
108+ };
109+};
110+const monadRecRWST = dictMonadRec => {
111+ const Monad0 = dictMonadRec.Monad0();
112+ const monadRWST1 = monadRWST(Monad0);
113+ return dictMonoid => {
114+ const $0 = dictMonoid.Semigroup0();
115+ const mempty = dictMonoid.mempty;
116+ const monadRWST2 = monadRWST1(dictMonoid);
117+ return {
118+ tailRecM: k => a => r => s => dictMonadRec.tailRecM(v => {
119+ const $1 = v._3;
120+ return Monad0.Bind1().bind(k(v._2)(r)(v._1))(v2 => Monad0.Applicative0().pure((() => {
121+ if (v2._2.tag === "Loop") { return Control$dMonad$dRec$dClass.$Step("Loop", $RWSResult(v2._1, v2._2._1, $0.append($1)(v2._3))); }
122+ if (v2._2.tag === "Done") { return Control$dMonad$dRec$dClass.$Step("Done", $RWSResult(v2._1, v2._2._1, $0.append($1)(v2._3))); }
123+ $runtime.fail();
124+ })()));
125+ })($RWSResult(s, a, mempty)),
126+ Monad0: () => monadRWST2
127+ };
128+ };
129+};
130+const monadStateRWST = dictMonad => {
131+ const monadRWST1 = monadRWST(dictMonad);
132+ return dictMonoid => {
133+ const mempty = dictMonoid.mempty;
134+ const monadRWST2 = monadRWST1(dictMonoid);
135+ return {
136+ state: f => v => s => {
137+ const v1 = f(s);
138+ return dictMonad.Applicative0().pure($RWSResult(v1._2, v1._1, mempty));
139+ },
140+ Monad0: () => monadRWST2
141+ };
142+ };
143+};
144+const monadTellRWST = dictMonad => {
145+ const monadRWST1 = monadRWST(dictMonad);
146+ return dictMonoid => {
147+ const Semigroup0 = dictMonoid.Semigroup0();
148+ const monadRWST2 = monadRWST1(dictMonoid);
149+ return {tell: w => v => s => dictMonad.Applicative0().pure($RWSResult(s, undefined, w)), Semigroup0: () => Semigroup0, Monad1: () => monadRWST2};
150+ };
151+};
152+const monadWriterRWST = dictMonad => {
153+ const $0 = dictMonad.Bind1();
154+ const $1 = dictMonad.Applicative0();
155+ const monadTellRWST1 = monadTellRWST(dictMonad);
156+ return dictMonoid => {
157+ const monadTellRWST2 = monadTellRWST1(dictMonoid);
158+ return {
159+ listen: m => r => s => $0.bind(m(r)(s))(v => $1.pure($RWSResult(v._1, Data$dTuple.$Tuple(v._2, v._3), v._3))),
160+ pass: m => r => s => $0.bind(m(r)(s))(v => $1.pure($RWSResult(v._1, v._2._1, v._2._2(v._3)))),
161+ Monoid0: () => dictMonoid,
162+ MonadTell1: () => monadTellRWST2
163+ };
164+ };
165+};
166+const monadThrowRWST = dictMonadThrow => {
167+ const Monad0 = dictMonadThrow.Monad0();
168+ const monadRWST1 = monadRWST(Monad0);
169+ return dictMonoid => {
170+ const mempty = dictMonoid.mempty;
171+ const monadRWST2 = monadRWST1(dictMonoid);
172+ return {
173+ throwError: e => {
174+ const $0 = dictMonadThrow.throwError(e);
175+ return v => s => Monad0.Bind1().bind($0)(a => Monad0.Applicative0().pure($RWSResult(s, a, mempty)));
176+ },
177+ Monad0: () => monadRWST2
178+ };
179+ };
180+};
181+const monadErrorRWST = dictMonadError => {
182+ const monadThrowRWST1 = monadThrowRWST(dictMonadError.MonadThrow0());
183+ return dictMonoid => {
184+ const monadThrowRWST2 = monadThrowRWST1(dictMonoid);
185+ return {catchError: m => h => r => s => dictMonadError.catchError(m(r)(s))(e => h(e)(r)(s)), MonadThrow0: () => monadThrowRWST2};
186+ };
187+};
188+const monadSTRWST = dictMonoid => {
189+ const mempty = dictMonoid.mempty;
190+ return dictMonadST => {
191+ const Monad0 = dictMonadST.Monad0();
192+ const monadRWST1 = monadRWST(Monad0)(dictMonoid);
193+ return {
194+ liftST: x => {
195+ const $0 = dictMonadST.liftST(x);
196+ return v => s => Monad0.Bind1().bind($0)(a => Monad0.Applicative0().pure($RWSResult(s, a, mempty)));
197+ },
198+ Monad0: () => monadRWST1
199+ };
200+ };
201+};
202+const monoidRWST = dictMonad => {
203+ const applicativeRWST1 = applicativeRWST(dictMonad);
204+ const semigroupRWST1 = semigroupRWST(dictMonad.Bind1());
205+ return dictMonoid => {
206+ const semigroupRWST2 = semigroupRWST1(dictMonoid);
207+ return dictMonoid1 => {
208+ const semigroupRWST3 = semigroupRWST2(dictMonoid1.Semigroup0());
209+ return {mempty: applicativeRWST1(dictMonoid).pure(dictMonoid1.mempty), Semigroup0: () => semigroupRWST3};
210+ };
211+ };
212+};
213+const altRWST = dictAlt => {
214+ const $0 = dictAlt.Functor0();
215+ const functorRWST1 = {map: f => v => r => s => $0.map(v1 => $RWSResult(v1._1, f(v1._2), v1._3))(v(r)(s))};
216+ return {alt: v => v1 => r => s => dictAlt.alt(v(r)(s))(v1(r)(s)), Functor0: () => functorRWST1};
217+};
218+const plusRWST = dictPlus => {
219+ const empty = dictPlus.empty;
220+ const $0 = dictPlus.Alt0();
221+ const $1 = $0.Functor0();
222+ const altRWST1 = (() => {
223+ const functorRWST1 = {map: f => v => r => s => $1.map(v1 => $RWSResult(v1._1, f(v1._2), v1._3))(v(r)(s))};
224+ return {alt: v => v1 => r => s => $0.alt(v(r)(s))(v1(r)(s)), Functor0: () => functorRWST1};
225+ })();
226+ return {empty: v => v1 => empty, Alt0: () => altRWST1};
227+};
228+const alternativeRWST = dictMonoid => dictAlternative => {
229+ const $0 = dictAlternative.Plus1();
230+ const empty = $0.empty;
231+ const plusRWST1 = (() => {
232+ const $1 = $0.Alt0();
233+ const $2 = $1.Functor0();
234+ const functorRWST1 = {map: f => v => r => s => $2.map(v1 => $RWSResult(v1._1, f(v1._2), v1._3))(v(r)(s))};
235+ const altRWST1 = {alt: v => v1 => r => s => $1.alt(v(r)(s))(v1(r)(s)), Functor0: () => functorRWST1};
236+ return {empty: v => v1 => empty, Alt0: () => altRWST1};
237+ })();
238+ return dictMonad => {
239+ const applicativeRWST1 = applicativeRWST(dictMonad)(dictMonoid);
240+ return {Applicative0: () => applicativeRWST1, Plus1: () => plusRWST1};
241+ };
242+};
243+export {
244+ $RWSResult,
245+ RWSResult,
246+ RWST,
247+ altRWST,
248+ alternativeRWST,
249+ applicativeRWST,
250+ applyRWST,
251+ bindRWST,
252+ evalRWST,
253+ execRWST,
254+ functorRWST,
255+ lazyRWST,
256+ mapRWST,
257+ monadAskRWST,
258+ monadEffectRWS,
259+ monadErrorRWST,
260+ monadRWST,
261+ monadReaderRWST,
262+ monadRecRWST,
263+ monadSTRWST,
264+ monadStateRWST,
265+ monadTellRWST,
266+ monadThrowRWST,
267+ monadTransRWST,
268+ monadWriterRWST,
269+ monoidRWST,
270+ newtypeRWST,
271+ plusRWST,
272+ runRWST,
273+ semigroupRWST,
274+ withRWST
275+};
output-es/Control.Monad.RWS/index.jsnew file+16
@@ -0,0 +1,16 @@
1+// | This module defines the `RWS` monad.
2+import * as Control$dMonad$dRWS$dTrans from "../Control.Monad.RWS.Trans/index.js";
3+import * as Data$dTuple from "../Data.Tuple/index.js";
4+const withRWS = Control$dMonad$dRWS$dTrans.withRWST;
5+const rws = f => r => s => f(r)(s);
6+const runRWS = m => r => s => m(r)(s);
7+const mapRWS = f => v => r => s => f(v(r)(s));
8+const execRWS = m => r => s => {
9+ const $0 = m(r)(s);
10+ return Data$dTuple.$Tuple($0._1, $0._3);
11+};
12+const evalRWS = m => r => s => {
13+ const $0 = m(r)(s);
14+ return Data$dTuple.$Tuple($0._2, $0._3);
15+};
16+export {evalRWS, execRWS, mapRWS, runRWS, rws, withRWS};
output-es/Control.Monad.Reader.Class/index.jsnew file+11
@@ -0,0 +1,11 @@
1+// | This module defines the `MonadReader` type class and its instances.
2+import * as Control$dMonad from "../Control.Monad/index.js";
3+const monadAskFun = {ask: x => x, Monad0: () => Control$dMonad.monadFn};
4+const monadReaderFun = {local: f => g => x => g(f(x)), MonadAsk0: () => monadAskFun};
5+const local = dict => dict.local;
6+const ask = dict => dict.ask;
7+const asks = dictMonadAsk => {
8+ const ask1 = dictMonadAsk.ask;
9+ return f => dictMonadAsk.Monad0().Bind1().Apply0().Functor0().map(f)(ask1);
10+};
11+export {ask, asks, local, monadAskFun, monadReaderFun};
output-es/Control.Monad.Reader.Trans/index.jsnew file+331
@@ -0,0 +1,331 @@
1+// | This module defines the reader monad transformer, `ReaderT`.
2+const ReaderT = x => x;
3+const withReaderT = f => v => x => v(f(x));
4+const runReaderT = v => v;
5+const newtypeReaderT = {Coercible0: () => {}};
6+const monadTransReaderT = {lift: dictMonad => x => v => x};
7+const mapReaderT = f => v => x => f(v(x));
8+const functorReaderT = dictFunctor => (
9+ {
10+ map: x => {
11+ const $0 = dictFunctor.map(x);
12+ return v => x$1 => $0(v(x$1));
13+ }
14+ }
15+);
16+const distributiveReaderT = dictDistributive => {
17+ const $0 = dictDistributive.Functor0();
18+ const functorReaderT1 = {
19+ map: x => {
20+ const $1 = $0.map(x);
21+ return v => x$1 => $1(v(x$1));
22+ }
23+ };
24+ return {
25+ distribute: dictFunctor => {
26+ const collect1 = dictDistributive.collect(dictFunctor);
27+ return a => e => collect1(r => r(e))(a);
28+ },
29+ collect: dictFunctor => f => {
30+ const $1 = distributiveReaderT(dictDistributive).distribute(dictFunctor);
31+ const $2 = dictFunctor.map(f);
32+ return x => $1($2(x));
33+ },
34+ Functor0: () => functorReaderT1
35+ };
36+};
37+const applyReaderT = dictApply => {
38+ const $0 = dictApply.Functor0();
39+ const functorReaderT1 = {
40+ map: x => {
41+ const $1 = $0.map(x);
42+ return v => x$1 => $1(v(x$1));
43+ }
44+ };
45+ return {apply: v => v1 => r => dictApply.apply(v(r))(v1(r)), Functor0: () => functorReaderT1};
46+};
47+const bindReaderT = dictBind => {
48+ const $0 = dictBind.Apply0();
49+ const $1 = $0.Functor0();
50+ const applyReaderT1 = (() => {
51+ const functorReaderT1 = {
52+ map: x => {
53+ const $2 = $1.map(x);
54+ return v => x$1 => $2(v(x$1));
55+ }
56+ };
57+ return {apply: v => v1 => r => $0.apply(v(r))(v1(r)), Functor0: () => functorReaderT1};
58+ })();
59+ return {bind: v => k => r => dictBind.bind(v(r))(a => k(a)(r)), Apply0: () => applyReaderT1};
60+};
61+const semigroupReaderT = dictApply => {
62+ const $0 = dictApply.Functor0();
63+ return dictSemigroup => (
64+ {
65+ append: (() => {
66+ const $1 = dictSemigroup.append;
67+ return a => b => {
68+ const $2 = $0.map($1);
69+ return r => dictApply.apply($2(a(r)))(b(r));
70+ };
71+ })()
72+ }
73+ );
74+};
75+const applicativeReaderT = dictApplicative => {
76+ const $0 = dictApplicative.Apply0();
77+ const $1 = $0.Functor0();
78+ const functorReaderT1 = {
79+ map: x => {
80+ const $2 = $1.map(x);
81+ return v => x$1 => $2(v(x$1));
82+ }
83+ };
84+ const applyReaderT1 = {apply: v => v1 => r => $0.apply(v(r))(v1(r)), Functor0: () => functorReaderT1};
85+ return {
86+ pure: x => {
87+ const $2 = dictApplicative.pure(x);
88+ return v => $2;
89+ },
90+ Apply0: () => applyReaderT1
91+ };
92+};
93+const monadReaderT = dictMonad => {
94+ const $0 = dictMonad.Applicative0();
95+ const $1 = $0.Apply0();
96+ const applicativeReaderT1 = (() => {
97+ const $2 = $1.Functor0();
98+ const functorReaderT1 = {
99+ map: x => {
100+ const $3 = $2.map(x);
101+ return v => x$1 => $3(v(x$1));
102+ }
103+ };
104+ const applyReaderT1 = {apply: v => v1 => r => $1.apply(v(r))(v1(r)), Functor0: () => functorReaderT1};
105+ return {
106+ pure: x => {
107+ const $3 = $0.pure(x);
108+ return v => $3;
109+ },
110+ Apply0: () => applyReaderT1
111+ };
112+ })();
113+ const bindReaderT1 = bindReaderT(dictMonad.Bind1());
114+ return {Applicative0: () => applicativeReaderT1, Bind1: () => bindReaderT1};
115+};
116+const monadAskReaderT = dictMonad => {
117+ const monadReaderT1 = monadReaderT(dictMonad);
118+ return {ask: dictMonad.Applicative0().pure, Monad0: () => monadReaderT1};
119+};
120+const monadReaderReaderT = dictMonad => {
121+ const monadReaderT1 = monadReaderT(dictMonad);
122+ const monadAskReaderT1 = {ask: dictMonad.Applicative0().pure, Monad0: () => monadReaderT1};
123+ return {local: withReaderT, MonadAsk0: () => monadAskReaderT1};
124+};
125+const monadContReaderT = dictMonadCont => {
126+ const monadReaderT1 = monadReaderT(dictMonadCont.Monad0());
127+ return {
128+ callCC: f => r => dictMonadCont.callCC(c => f(x => {
129+ const $0 = c(x);
130+ return v => $0;
131+ })(r)),
132+ Monad0: () => monadReaderT1
133+ };
134+};
135+const monadEffectReader = dictMonadEffect => {
136+ const monadReaderT1 = monadReaderT(dictMonadEffect.Monad0());
137+ return {
138+ liftEffect: x => {
139+ const $0 = dictMonadEffect.liftEffect(x);
140+ return v => $0;
141+ },
142+ Monad0: () => monadReaderT1
143+ };
144+};
145+const monadRecReaderT = dictMonadRec => {
146+ const Monad0 = dictMonadRec.Monad0();
147+ const $0 = Monad0.Bind1();
148+ const pure = Monad0.Applicative0().pure;
149+ const monadReaderT1 = monadReaderT(Monad0);
150+ return {tailRecM: k => a => r => dictMonadRec.tailRecM(a$p => $0.bind(k(a$p)(r))(pure))(a), Monad0: () => monadReaderT1};
151+};
152+const monadStateReaderT = dictMonadState => {
153+ const monadReaderT1 = monadReaderT(dictMonadState.Monad0());
154+ return {
155+ state: x => {
156+ const $0 = dictMonadState.state(x);
157+ return v => $0;
158+ },
159+ Monad0: () => monadReaderT1
160+ };
161+};
162+const monadTellReaderT = dictMonadTell => {
163+ const Semigroup0 = dictMonadTell.Semigroup0();
164+ const monadReaderT1 = monadReaderT(dictMonadTell.Monad1());
165+ return {
166+ tell: x => {
167+ const $0 = dictMonadTell.tell(x);
168+ return v => $0;
169+ },
170+ Semigroup0: () => Semigroup0,
171+ Monad1: () => monadReaderT1
172+ };
173+};
174+const monadWriterReaderT = dictMonadWriter => {
175+ const Monoid0 = dictMonadWriter.Monoid0();
176+ const monadTellReaderT1 = monadTellReaderT(dictMonadWriter.MonadTell1());
177+ return {listen: v => x => dictMonadWriter.listen(v(x)), pass: v => x => dictMonadWriter.pass(v(x)), Monoid0: () => Monoid0, MonadTell1: () => monadTellReaderT1};
178+};
179+const monadThrowReaderT = dictMonadThrow => {
180+ const monadReaderT1 = monadReaderT(dictMonadThrow.Monad0());
181+ return {
182+ throwError: x => {
183+ const $0 = dictMonadThrow.throwError(x);
184+ return v => $0;
185+ },
186+ Monad0: () => monadReaderT1
187+ };
188+};
189+const monadErrorReaderT = dictMonadError => {
190+ const monadThrowReaderT1 = monadThrowReaderT(dictMonadError.MonadThrow0());
191+ return {catchError: v => h => r => dictMonadError.catchError(v(r))(e => h(e)(r)), MonadThrow0: () => monadThrowReaderT1};
192+};
193+const monadSTReaderT = dictMonadST => {
194+ const monadReaderT1 = monadReaderT(dictMonadST.Monad0());
195+ return {
196+ liftST: x => {
197+ const $0 = dictMonadST.liftST(x);
198+ return v => $0;
199+ },
200+ Monad0: () => monadReaderT1
201+ };
202+};
203+const monoidReaderT = dictApplicative => {
204+ const $0 = dictApplicative.Apply0();
205+ const $1 = $0.Functor0();
206+ return dictMonoid => {
207+ const semigroupReaderT2 = {
208+ append: (() => {
209+ const $2 = dictMonoid.Semigroup0().append;
210+ return a => b => {
211+ const $3 = $1.map($2);
212+ return r => $0.apply($3(a(r)))(b(r));
213+ };
214+ })()
215+ };
216+ return {
217+ mempty: (() => {
218+ const $2 = dictApplicative.pure(dictMonoid.mempty);
219+ return v => $2;
220+ })(),
221+ Semigroup0: () => semigroupReaderT2
222+ };
223+ };
224+};
225+const altReaderT = dictAlt => {
226+ const $0 = dictAlt.Functor0();
227+ const functorReaderT1 = {
228+ map: x => {
229+ const $1 = $0.map(x);
230+ return v => x$1 => $1(v(x$1));
231+ }
232+ };
233+ return {alt: v => v1 => r => dictAlt.alt(v(r))(v1(r)), Functor0: () => functorReaderT1};
234+};
235+const plusReaderT = dictPlus => {
236+ const $0 = dictPlus.Alt0();
237+ const $1 = $0.Functor0();
238+ const altReaderT1 = (() => {
239+ const functorReaderT1 = {
240+ map: x => {
241+ const $2 = $1.map(x);
242+ return v => x$1 => $2(v(x$1));
243+ }
244+ };
245+ return {alt: v => v1 => r => $0.alt(v(r))(v1(r)), Functor0: () => functorReaderT1};
246+ })();
247+ return {
248+ empty: (() => {
249+ const $2 = dictPlus.empty;
250+ return v => $2;
251+ })(),
252+ Alt0: () => altReaderT1
253+ };
254+};
255+const alternativeReaderT = dictAlternative => {
256+ const $0 = dictAlternative.Applicative0();
257+ const $1 = $0.Apply0();
258+ const applicativeReaderT1 = (() => {
259+ const $2 = $1.Functor0();
260+ const functorReaderT1 = {
261+ map: x => {
262+ const $3 = $2.map(x);
263+ return v => x$1 => $3(v(x$1));
264+ }
265+ };
266+ const applyReaderT1 = {apply: v => v1 => r => $1.apply(v(r))(v1(r)), Functor0: () => functorReaderT1};
267+ return {
268+ pure: x => {
269+ const $3 = $0.pure(x);
270+ return v => $3;
271+ },
272+ Apply0: () => applyReaderT1
273+ };
274+ })();
275+ const $2 = dictAlternative.Plus1();
276+ const $3 = $2.Alt0();
277+ const plusReaderT1 = (() => {
278+ const $4 = $3.Functor0();
279+ const functorReaderT1 = {
280+ map: x => {
281+ const $5 = $4.map(x);
282+ return v => x$1 => $5(v(x$1));
283+ }
284+ };
285+ const altReaderT1 = {alt: v => v1 => r => $3.alt(v(r))(v1(r)), Functor0: () => functorReaderT1};
286+ return {
287+ empty: (() => {
288+ const $5 = $2.empty;
289+ return v => $5;
290+ })(),
291+ Alt0: () => altReaderT1
292+ };
293+ })();
294+ return {Applicative0: () => applicativeReaderT1, Plus1: () => plusReaderT1};
295+};
296+const monadPlusReaderT = dictMonadPlus => {
297+ const monadReaderT1 = monadReaderT(dictMonadPlus.Monad0());
298+ const alternativeReaderT1 = alternativeReaderT(dictMonadPlus.Alternative1());
299+ return {Monad0: () => monadReaderT1, Alternative1: () => alternativeReaderT1};
300+};
301+export {
302+ ReaderT,
303+ altReaderT,
304+ alternativeReaderT,
305+ applicativeReaderT,
306+ applyReaderT,
307+ bindReaderT,
308+ distributiveReaderT,
309+ functorReaderT,
310+ mapReaderT,
311+ monadAskReaderT,
312+ monadContReaderT,
313+ monadEffectReader,
314+ monadErrorReaderT,
315+ monadPlusReaderT,
316+ monadReaderReaderT,
317+ monadReaderT,
318+ monadRecReaderT,
319+ monadSTReaderT,
320+ monadStateReaderT,
321+ monadTellReaderT,
322+ monadThrowReaderT,
323+ monadTransReaderT,
324+ monadWriterReaderT,
325+ monoidReaderT,
326+ newtypeReaderT,
327+ plusReaderT,
328+ runReaderT,
329+ semigroupReaderT,
330+ withReaderT
331+};
output-es/Control.Monad.Reader/index.jsnew file+6
@@ -0,0 +1,6 @@
1+// | This module defines the `Reader` monad.
2+import * as Control$dMonad$dReader$dTrans from "../Control.Monad.Reader.Trans/index.js";
3+const withReader = Control$dMonad$dReader$dTrans.withReaderT;
4+const runReader = v => x => v(x);
5+const mapReader = f => v => x => f(v(x));
6+export {mapReader, runReader, withReader};
output-es/Control.Monad.Rec.Class/index.jsnew file+265
@@ -0,0 +1,265 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dMonad from "../Control.Monad/index.js";
3+import * as Data$dEither from "../Data.Either/index.js";
4+import * as Data$dIdentity from "../Data.Identity/index.js";
5+import * as Data$dMaybe from "../Data.Maybe/index.js";
6+import * as Effect from "../Effect/index.js";
7+const $Step = (tag, _1) => ({tag, _1});
8+const Loop = value0 => $Step("Loop", value0);
9+const Done = value0 => $Step("Done", value0);
10+const tailRecM = dict => dict.tailRecM;
11+const tailRecM2 = dictMonadRec => f => a => b => dictMonadRec.tailRecM(o => f(o.a)(o.b))({a, b});
12+const tailRecM3 = dictMonadRec => f => a => b => c => dictMonadRec.tailRecM(o => f(o.a)(o.b)(o.c))({a, b, c});
13+const untilJust = dictMonadRec => {
14+ const $0 = dictMonadRec.Monad0().Bind1().Apply0().Functor0();
15+ return m => dictMonadRec.tailRecM(v => $0.map(v1 => {
16+ if (v1.tag === "Nothing") { return $Step("Loop", undefined); }
17+ if (v1.tag === "Just") { return $Step("Done", v1._1); }
18+ $runtime.fail();
19+ })(m))();
20+};
21+const whileJust = dictMonoid => {
22+ const mempty = dictMonoid.mempty;
23+ return dictMonadRec => {
24+ const $0 = dictMonadRec.Monad0().Bind1().Apply0().Functor0();
25+ return m => dictMonadRec.tailRecM(v => $0.map(v1 => {
26+ if (v1.tag === "Nothing") { return $Step("Done", v); }
27+ if (v1.tag === "Just") { return $Step("Loop", dictMonoid.Semigroup0().append(v)(v1._1)); }
28+ $runtime.fail();
29+ })(m))(mempty);
30+ };
31+};
32+const tailRec = f => {
33+ const go = go$a0$copy => {
34+ let go$a0 = go$a0$copy, go$c = true, go$r;
35+ while (go$c) {
36+ const v = go$a0;
37+ if (v.tag === "Loop") {
38+ go$a0 = f(v._1);
39+ continue;
40+ }
41+ if (v.tag === "Done") {
42+ go$c = false;
43+ go$r = v._1;
44+ continue;
45+ }
46+ $runtime.fail();
47+ }
48+ return go$r;
49+ };
50+ return x => go(f(x));
51+};
52+const tailRec2 = f => a => b => {
53+ const go = go$a0$copy => {
54+ let go$a0 = go$a0$copy, go$c = true, go$r;
55+ while (go$c) {
56+ const v = go$a0;
57+ if (v.tag === "Loop") {
58+ go$a0 = f(v._1.a)(v._1.b);
59+ continue;
60+ }
61+ if (v.tag === "Done") {
62+ go$c = false;
63+ go$r = v._1;
64+ continue;
65+ }
66+ $runtime.fail();
67+ }
68+ return go$r;
69+ };
70+ return go(f(a)(b));
71+};
72+const tailRec3 = f => a => b => c => {
73+ const go = go$a0$copy => {
74+ let go$a0 = go$a0$copy, go$c = true, go$r;
75+ while (go$c) {
76+ const v = go$a0;
77+ if (v.tag === "Loop") {
78+ go$a0 = f(v._1.a)(v._1.b)(v._1.c);
79+ continue;
80+ }
81+ if (v.tag === "Done") {
82+ go$c = false;
83+ go$r = v._1;
84+ continue;
85+ }
86+ $runtime.fail();
87+ }
88+ return go$r;
89+ };
90+ return go(f(a)(b)(c));
91+};
92+const monadRecMaybe = {
93+ tailRecM: f => a0 => {
94+ const $0 = v => {
95+ if (v.tag === "Nothing") { return $Step("Done", Data$dMaybe.Nothing); }
96+ if (v.tag === "Just") {
97+ if (v._1.tag === "Loop") { return $Step("Loop", f(v._1._1)); }
98+ if (v._1.tag === "Done") { return $Step("Done", Data$dMaybe.$Maybe("Just", v._1._1)); }
99+ }
100+ $runtime.fail();
101+ };
102+ const go = go$a0$copy => {
103+ let go$a0 = go$a0$copy, go$c = true, go$r;
104+ while (go$c) {
105+ const v = go$a0;
106+ if (v.tag === "Loop") {
107+ go$a0 = $0(v._1);
108+ continue;
109+ }
110+ if (v.tag === "Done") {
111+ go$c = false;
112+ go$r = v._1;
113+ continue;
114+ }
115+ $runtime.fail();
116+ }
117+ return go$r;
118+ };
119+ return go($0(f(a0)));
120+ },
121+ Monad0: () => Data$dMaybe.monadMaybe
122+};
123+const monadRecIdentity = {
124+ tailRecM: f => {
125+ const go = go$a0$copy => {
126+ let go$a0 = go$a0$copy, go$c = true, go$r;
127+ while (go$c) {
128+ const v = go$a0;
129+ if (v.tag === "Loop") {
130+ go$a0 = f(v._1);
131+ continue;
132+ }
133+ if (v.tag === "Done") {
134+ go$c = false;
135+ go$r = v._1;
136+ continue;
137+ }
138+ $runtime.fail();
139+ }
140+ return go$r;
141+ };
142+ return x => go(f(x));
143+ },
144+ Monad0: () => Data$dIdentity.monadIdentity
145+};
146+const monadRecFunction = {
147+ tailRecM: f => a0 => e => {
148+ const go = go$a0$copy => {
149+ let go$a0 = go$a0$copy, go$c = true, go$r;
150+ while (go$c) {
151+ const v = go$a0;
152+ if (v.tag === "Loop") {
153+ go$a0 = f(v._1)(e);
154+ continue;
155+ }
156+ if (v.tag === "Done") {
157+ go$c = false;
158+ go$r = v._1;
159+ continue;
160+ }
161+ $runtime.fail();
162+ }
163+ return go$r;
164+ };
165+ return go(f(a0)(e));
166+ },
167+ Monad0: () => Control$dMonad.monadFn
168+};
169+const monadRecEither = {
170+ tailRecM: f => a0 => {
171+ const $0 = v => {
172+ if (v.tag === "Left") { return $Step("Done", Data$dEither.$Either("Left", v._1)); }
173+ if (v.tag === "Right") {
174+ if (v._1.tag === "Loop") { return $Step("Loop", f(v._1._1)); }
175+ if (v._1.tag === "Done") { return $Step("Done", Data$dEither.$Either("Right", v._1._1)); }
176+ }
177+ $runtime.fail();
178+ };
179+ const go = go$a0$copy => {
180+ let go$a0 = go$a0$copy, go$c = true, go$r;
181+ while (go$c) {
182+ const v = go$a0;
183+ if (v.tag === "Loop") {
184+ go$a0 = $0(v._1);
185+ continue;
186+ }
187+ if (v.tag === "Done") {
188+ go$c = false;
189+ go$r = v._1;
190+ continue;
191+ }
192+ $runtime.fail();
193+ }
194+ return go$r;
195+ };
196+ return go($0(f(a0)));
197+ },
198+ Monad0: () => Data$dEither.monadEither
199+};
200+const monadRecEffect = {
201+ tailRecM: f => a => {
202+ const $0 = f(a);
203+ return () => {
204+ const $1 = $0();
205+ let r = $1;
206+ Effect.untilE(() => {
207+ const v = r;
208+ if (v.tag === "Loop") {
209+ const e = f(v._1)();
210+ r = e;
211+ return false;
212+ }
213+ if (v.tag === "Done") { return true; }
214+ $runtime.fail();
215+ })();
216+ const a$p = r;
217+ if (a$p.tag === "Done") { return a$p._1; }
218+ $runtime.fail();
219+ };
220+ },
221+ Monad0: () => Effect.monadEffect
222+};
223+const loop3 = a => b => c => $Step("Loop", {a, b, c});
224+const loop2 = a => b => $Step("Loop", {a, b});
225+const functorStep = {
226+ map: f => m => {
227+ if (m.tag === "Loop") { return $Step("Loop", m._1); }
228+ if (m.tag === "Done") { return $Step("Done", f(m._1)); }
229+ $runtime.fail();
230+ }
231+};
232+const forever = dictMonadRec => {
233+ const $0 = dictMonadRec.Monad0().Bind1().Apply0().Functor0();
234+ return ma => dictMonadRec.tailRecM(u => $0.map(v => $Step("Loop", u))(ma))();
235+};
236+const bifunctorStep = {
237+ bimap: v => v1 => v2 => {
238+ if (v2.tag === "Loop") { return $Step("Loop", v(v2._1)); }
239+ if (v2.tag === "Done") { return $Step("Done", v1(v2._1)); }
240+ $runtime.fail();
241+ }
242+};
243+export {
244+ $Step,
245+ Done,
246+ Loop,
247+ bifunctorStep,
248+ forever,
249+ functorStep,
250+ loop2,
251+ loop3,
252+ monadRecEffect,
253+ monadRecEither,
254+ monadRecFunction,
255+ monadRecIdentity,
256+ monadRecMaybe,
257+ tailRec,
258+ tailRec2,
259+ tailRec3,
260+ tailRecM,
261+ tailRecM2,
262+ tailRecM3,
263+ untilJust,
264+ whileJust
265+};
output-es/Control.Monad.ST.Class/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Control$dMonad$dST$dInternal from "../Control.Monad.ST.Internal/index.js";
2+import * as Effect from "../Effect/index.js";
3+import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
4+const monadSTST = {liftST: x => x, Monad0: () => Control$dMonad$dST$dInternal.monadST};
5+const monadSTEffect = {liftST: Unsafe$dCoerce.unsafeCoerce, Monad0: () => Effect.monadEffect};
6+const liftST = dict => dict.liftST;
7+export {liftST, monadSTEffect, monadSTST};
output-es/Control.Monad.ST.Global/index.jsnew file+3
@@ -0,0 +1,3 @@
1+import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
2+const toEffect = Unsafe$dCoerce.unsafeCoerce;
3+export {toEffect};
output-es/Control.Monad.ST.Internal/foreign.jsnew file+90
@@ -0,0 +1,90 @@
1+export const map_ = function (f) {
2+ return function (a) {
3+ return function () {
4+ return f(a());
5+ };
6+ };
7+};
8+
9+export const pure_ = function (a) {
10+ return function () {
11+ return a;
12+ };
13+};
14+
15+export const bind_ = function (a) {
16+ return function (f) {
17+ return function () {
18+ return f(a())();
19+ };
20+ };
21+};
22+
23+export const run = function (f) {
24+ return f();
25+};
26+
27+function whileST(f) {
28+ return function (a) {
29+ return function () {
30+ while (f()) {
31+ a();
32+ }
33+ };
34+ };
35+}
36+export { whileST as while };
37+
38+function forST(lo) {
39+ return function (hi) {
40+ return function (f) {
41+ return function () {
42+ for (var i = lo; i < hi; i++) {
43+ f(i)();
44+ }
45+ };
46+ };
47+ };
48+}
49+export { forST as for };
50+
51+export const foreach = function (as) {
52+ return function (f) {
53+ return function () {
54+ for (var i = 0, l = as.length; i < l; i++) {
55+ f(as[i])();
56+ }
57+ };
58+ };
59+};
60+
61+function newSTRef(val) {
62+ return function () {
63+ return { value: val };
64+ };
65+}
66+export { newSTRef as new };
67+
68+export const read = function (ref) {
69+ return function () {
70+ return ref.value;
71+ };
72+};
73+
74+export const modifyImpl = function (f) {
75+ return function (ref) {
76+ return function () {
77+ var t = f(ref.value);
78+ ref.value = t.state;
79+ return t.value;
80+ };
81+ };
82+};
83+
84+export const write = function (a) {
85+ return function (ref) {
86+ return function () {
87+ return ref.value = a; // eslint-disable-line no-return-assign
88+ };
89+ };
90+};
output-es/Control.Monad.ST.Internal/index.jsnew file+75
@@ -0,0 +1,75 @@
1+import * as $runtime from "../runtime.js";
2+import {for as $$for, new as $$new, while as $$while, bind_, foreach, map_, modifyImpl, pure_, read, run, write} from "./foreign.js";
3+const modify$p = modifyImpl;
4+const modify = f => modifyImpl(s => {
5+ const s$p = f(s);
6+ return {state: s$p, value: s$p};
7+});
8+const functorST = {map: map_};
9+const monadST = {Applicative0: () => applicativeST, Bind1: () => bindST};
10+const bindST = {bind: bind_, Apply0: () => applyST};
11+const applyST = {
12+ apply: f => a => () => {
13+ const f$p = f();
14+ const a$p = a();
15+ return applicativeST.pure(f$p(a$p))();
16+ },
17+ Functor0: () => functorST
18+};
19+const applicativeST = {pure: pure_, Apply0: () => applyST};
20+const semigroupST = dictSemigroup => (
21+ {
22+ append: a => b => () => {
23+ const $0 = a();
24+ const a$p = b();
25+ return dictSemigroup.append($0)(a$p);
26+ }
27+ }
28+);
29+const monadRecST = {
30+ tailRecM: f => a => {
31+ const $0 = f(a);
32+ return () => {
33+ const $1 = $0();
34+ let r = $1;
35+ while (
36+ (() => {
37+ const $2 = r;
38+ return $2.tag === "Loop";
39+ })()
40+ ) {
41+ const v = r;
42+ if (v.tag === "Loop") {
43+ const e = f(v._1)();
44+ r = e;
45+ continue;
46+ }
47+ if (v.tag === "Done") { continue; }
48+ $runtime.fail();
49+ }
50+ const $2 = r;
51+ if ($2.tag === "Done") { return $2._1; }
52+ $runtime.fail();
53+ };
54+ },
55+ Monad0: () => monadST
56+};
57+const monoidST = dictMonoid => {
58+ const $0 = dictMonoid.Semigroup0();
59+ const semigroupST1 = {
60+ append: a => b => () => {
61+ const $1 = a();
62+ const a$p = b();
63+ return $0.append($1)(a$p);
64+ }
65+ };
66+ return {
67+ mempty: (() => {
68+ const $1 = dictMonoid.mempty;
69+ return () => $1;
70+ })(),
71+ Semigroup0: () => semigroupST1
72+ };
73+};
74+export {applicativeST, applyST, bindST, functorST, modify, modify$p, monadRecST, monadST, monoidST, semigroupST};
75+export * from "./foreign.js";
output-es/Control.Monad.ST.Ref/index.jsnew file+1
@@ -0,0 +1 @@
1+export {};
output-es/Control.Monad.ST.Uncurried/foreign.jsnew file+229
@@ -0,0 +1,229 @@
1+export const mkSTFn1 = function mkSTFn1(fn) {
2+ return function(x) {
3+ return fn(x)();
4+ };
5+};
6+
7+export const mkSTFn2 = function mkSTFn2(fn) {
8+ return function(a, b) {
9+ return fn(a)(b)();
10+ };
11+};
12+
13+export const mkSTFn3 = function mkSTFn3(fn) {
14+ return function(a, b, c) {
15+ return fn(a)(b)(c)();
16+ };
17+};
18+
19+export const mkSTFn4 = function mkSTFn4(fn) {
20+ return function(a, b, c, d) {
21+ return fn(a)(b)(c)(d)();
22+ };
23+};
24+
25+export const mkSTFn5 = function mkSTFn5(fn) {
26+ return function(a, b, c, d, e) {
27+ return fn(a)(b)(c)(d)(e)();
28+ };
29+};
30+
31+export const mkSTFn6 = function mkSTFn6(fn) {
32+ return function(a, b, c, d, e, f) {
33+ return fn(a)(b)(c)(d)(e)(f)();
34+ };
35+};
36+
37+export const mkSTFn7 = function mkSTFn7(fn) {
38+ return function(a, b, c, d, e, f, g) {
39+ return fn(a)(b)(c)(d)(e)(f)(g)();
40+ };
41+};
42+
43+export const mkSTFn8 = function mkSTFn8(fn) {
44+ return function(a, b, c, d, e, f, g, h) {
45+ return fn(a)(b)(c)(d)(e)(f)(g)(h)();
46+ };
47+};
48+
49+export const mkSTFn9 = function mkSTFn9(fn) {
50+ return function(a, b, c, d, e, f, g, h, i) {
51+ return fn(a)(b)(c)(d)(e)(f)(g)(h)(i)();
52+ };
53+};
54+
55+export const mkSTFn10 = function mkSTFn10(fn) {
56+ return function(a, b, c, d, e, f, g, h, i, j) {
57+ return fn(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)();
58+ };
59+};
60+
61+export const runSTFn1 = function runSTFn1(fn) {
62+ return function(a) {
63+ return function() {
64+ return fn(a);
65+ };
66+ };
67+};
68+
69+export const runSTFn2 = function runSTFn2(fn) {
70+ return function(a) {
71+ return function(b) {
72+ return function() {
73+ return fn(a, b);
74+ };
75+ };
76+ };
77+};
78+
79+export const runSTFn3 = function runSTFn3(fn) {
80+ return function(a) {
81+ return function(b) {
82+ return function(c) {
83+ return function() {
84+ return fn(a, b, c);
85+ };
86+ };
87+ };
88+ };
89+};
90+
91+export const runSTFn4 = function runSTFn4(fn) {
92+ return function(a) {
93+ return function(b) {
94+ return function(c) {
95+ return function(d) {
96+ return function() {
97+ return fn(a, b, c, d);
98+ };
99+ };
100+ };
101+ };
102+ };
103+};
104+
105+export const runSTFn5 = function runSTFn5(fn) {
106+ return function(a) {
107+ return function(b) {
108+ return function(c) {
109+ return function(d) {
110+ return function(e) {
111+ return function() {
112+ return fn(a, b, c, d, e);
113+ };
114+ };
115+ };
116+ };
117+ };
118+ };
119+};
120+
121+export const runSTFn6 = function runSTFn6(fn) {
122+ return function(a) {
123+ return function(b) {
124+ return function(c) {
125+ return function(d) {
126+ return function(e) {
127+ return function(f) {
128+ return function() {
129+ return fn(a, b, c, d, e, f);
130+ };
131+ };
132+ };
133+ };
134+ };
135+ };
136+ };
137+};
138+
139+export const runSTFn7 = function runSTFn7(fn) {
140+ return function(a) {
141+ return function(b) {
142+ return function(c) {
143+ return function(d) {
144+ return function(e) {
145+ return function(f) {
146+ return function(g) {
147+ return function() {
148+ return fn(a, b, c, d, e, f, g);
149+ };
150+ };
151+ };
152+ };
153+ };
154+ };
155+ };
156+ };
157+};
158+
159+export const runSTFn8 = function runSTFn8(fn) {
160+ return function(a) {
161+ return function(b) {
162+ return function(c) {
163+ return function(d) {
164+ return function(e) {
165+ return function(f) {
166+ return function(g) {
167+ return function(h) {
168+ return function() {
169+ return fn(a, b, c, d, e, f, g, h);
170+ };
171+ };
172+ };
173+ };
174+ };
175+ };
176+ };
177+ };
178+ };
179+};
180+
181+export const runSTFn9 = function runSTFn9(fn) {
182+ return function(a) {
183+ return function(b) {
184+ return function(c) {
185+ return function(d) {
186+ return function(e) {
187+ return function(f) {
188+ return function(g) {
189+ return function(h) {
190+ return function(i) {
191+ return function() {
192+ return fn(a, b, c, d, e, f, g, h, i);
193+ };
194+ };
195+ };
196+ };
197+ };
198+ };
199+ };
200+ };
201+ };
202+ };
203+};
204+
205+export const runSTFn10 = function runSTFn10(fn) {
206+ return function(a) {
207+ return function(b) {
208+ return function(c) {
209+ return function(d) {
210+ return function(e) {
211+ return function(f) {
212+ return function(g) {
213+ return function(h) {
214+ return function(i) {
215+ return function(j) {
216+ return function() {
217+ return fn(a, b, c, d, e, f, g, h, i, j);
218+ };
219+ };
220+ };
221+ };
222+ };
223+ };
224+ };
225+ };
226+ };
227+ };
228+ };
229+};
output-es/Control.Monad.ST.Uncurried/index.jsnew file+39
@@ -0,0 +1,39 @@
1+// | This module defines types for STf uncurried functions, as well as
2+// | functions for converting back and forth between them.
3+// |
4+// | The general naming scheme for functions and types in this module is as
5+// | follows:
6+// |
7+// | * `STFn{N}` means, an uncurried function which accepts N arguments and
8+// | performs some STs. The first N arguments are the actual function's
9+// | argument. The last type argument is the return type.
10+// | * `runSTFn{N}` takes an `STFn` of N arguments, and converts it into
11+// | the normal PureScript form: a curried function which returns an ST
12+// | action.
13+// | * `mkSTFn{N}` is the inverse of `runSTFn{N}`. It can be useful for
14+// | callbacks.
15+// |
16+import {
17+ mkSTFn1,
18+ mkSTFn10,
19+ mkSTFn2,
20+ mkSTFn3,
21+ mkSTFn4,
22+ mkSTFn5,
23+ mkSTFn6,
24+ mkSTFn7,
25+ mkSTFn8,
26+ mkSTFn9,
27+ runSTFn1,
28+ runSTFn10,
29+ runSTFn2,
30+ runSTFn3,
31+ runSTFn4,
32+ runSTFn5,
33+ runSTFn6,
34+ runSTFn7,
35+ runSTFn8,
36+ runSTFn9
37+} from "./foreign.js";
38+export {};
39+export * from "./foreign.js";
output-es/Control.Monad.ST/index.jsnew file+1
@@ -0,0 +1 @@
1+export {};
output-es/Control.Monad.State.Class/index.jsnew file+12
@@ -0,0 +1,12 @@
1+// | This module defines the `MonadState` type class and its instances.
2+import * as Data$dTuple from "../Data.Tuple/index.js";
3+const state = dict => dict.state;
4+const put = dictMonadState => s => dictMonadState.state(v => Data$dTuple.$Tuple(undefined, s));
5+const modify_ = dictMonadState => f => dictMonadState.state(s => Data$dTuple.$Tuple(undefined, f(s)));
6+const modify = dictMonadState => f => dictMonadState.state(s => {
7+ const s$p = f(s);
8+ return Data$dTuple.$Tuple(s$p, s$p);
9+});
10+const gets = dictMonadState => f => dictMonadState.state(s => Data$dTuple.$Tuple(f(s), s));
11+const $$get = dictMonadState => dictMonadState.state(s => Data$dTuple.$Tuple(s, s));
12+export {$$get as get, gets, modify, modify_, put, state};
output-es/Control.Monad.State.Trans/index.jsnew file+221
@@ -0,0 +1,221 @@
1+// | This module defines the state monad transformer, `StateT`.
2+import * as $runtime from "../runtime.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dTuple from "../Data.Tuple/index.js";
5+const StateT = x => x;
6+const withStateT = f => v => x => v(f(x));
7+const runStateT = v => v;
8+const newtypeStateT = {Coercible0: () => {}};
9+const monadTransStateT = {lift: dictMonad => m => s => dictMonad.Bind1().bind(m)(x => dictMonad.Applicative0().pure(Data$dTuple.$Tuple(x, s)))};
10+const mapStateT = f => v => x => f(v(x));
11+const lazyStateT = {defer: f => s => f()(s)};
12+const functorStateT = dictFunctor => ({map: f => v => s => dictFunctor.map(v1 => Data$dTuple.$Tuple(f(v1._1), v1._2))(v(s))});
13+const execStateT = dictFunctor => v => s => dictFunctor.map(Data$dTuple.snd)(v(s));
14+const evalStateT = dictFunctor => v => s => dictFunctor.map(Data$dTuple.fst)(v(s));
15+const monadStateT = dictMonad => ({Applicative0: () => applicativeStateT(dictMonad), Bind1: () => bindStateT(dictMonad)});
16+const bindStateT = dictMonad => ({bind: v => f => s => dictMonad.Bind1().bind(v(s))(v1 => f(v1._1)(v1._2)), Apply0: () => applyStateT(dictMonad)});
17+const applyStateT = dictMonad => {
18+ const $0 = dictMonad.Bind1().Apply0().Functor0();
19+ const functorStateT1 = {map: f => v => s => $0.map(v1 => Data$dTuple.$Tuple(f(v1._1), v1._2))(v(s))};
20+ return {
21+ apply: (() => {
22+ const $1 = bindStateT(dictMonad);
23+ return f => a => $1.bind(f)(f$p => $1.bind(a)(a$p => applicativeStateT(dictMonad).pure(f$p(a$p))));
24+ })(),
25+ Functor0: () => functorStateT1
26+ };
27+};
28+const applicativeStateT = dictMonad => ({pure: a => s => dictMonad.Applicative0().pure(Data$dTuple.$Tuple(a, s)), Apply0: () => applyStateT(dictMonad)});
29+const semigroupStateT = dictMonad => {
30+ const $0 = applyStateT(dictMonad);
31+ return dictSemigroup => (
32+ {
33+ append: (() => {
34+ const $1 = dictSemigroup.append;
35+ return a => b => $0.apply($0.Functor0().map($1)(a))(b);
36+ })()
37+ }
38+ );
39+};
40+const monadAskStateT = dictMonadAsk => {
41+ const Monad0 = dictMonadAsk.Monad0();
42+ const monadStateT1 = {Applicative0: () => applicativeStateT(Monad0), Bind1: () => bindStateT(Monad0)};
43+ return {
44+ ask: (() => {
45+ const $0 = dictMonadAsk.ask;
46+ return s => Monad0.Bind1().bind($0)(x => Monad0.Applicative0().pure(Data$dTuple.$Tuple(x, s)));
47+ })(),
48+ Monad0: () => monadStateT1
49+ };
50+};
51+const monadReaderStateT = dictMonadReader => {
52+ const monadAskStateT1 = monadAskStateT(dictMonadReader.MonadAsk0());
53+ return {
54+ local: x => {
55+ const $0 = dictMonadReader.local(x);
56+ return v => x$1 => $0(v(x$1));
57+ },
58+ MonadAsk0: () => monadAskStateT1
59+ };
60+};
61+const monadContStateT = dictMonadCont => {
62+ const $0 = dictMonadCont.Monad0();
63+ const monadStateT1 = {Applicative0: () => applicativeStateT($0), Bind1: () => bindStateT($0)};
64+ return {callCC: f => s => dictMonadCont.callCC(c => f(a => s$p => c(Data$dTuple.$Tuple(a, s$p)))(s)), Monad0: () => monadStateT1};
65+};
66+const monadEffectState = dictMonadEffect => {
67+ const Monad0 = dictMonadEffect.Monad0();
68+ const monadStateT1 = {Applicative0: () => applicativeStateT(Monad0), Bind1: () => bindStateT(Monad0)};
69+ return {
70+ liftEffect: x => {
71+ const $0 = dictMonadEffect.liftEffect(x);
72+ return s => Monad0.Bind1().bind($0)(x$1 => Monad0.Applicative0().pure(Data$dTuple.$Tuple(x$1, s)));
73+ },
74+ Monad0: () => monadStateT1
75+ };
76+};
77+const monadRecStateT = dictMonadRec => {
78+ const Monad0 = dictMonadRec.Monad0();
79+ const monadStateT1 = {Applicative0: () => applicativeStateT(Monad0), Bind1: () => bindStateT(Monad0)};
80+ return {
81+ tailRecM: f => a => s => dictMonadRec.tailRecM(v => Monad0.Bind1().bind(f(v._1)(v._2))(v2 => Monad0.Applicative0().pure((() => {
82+ if (v2._1.tag === "Loop") { return Control$dMonad$dRec$dClass.$Step("Loop", Data$dTuple.$Tuple(v2._1._1, v2._2)); }
83+ if (v2._1.tag === "Done") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dTuple.$Tuple(v2._1._1, v2._2)); }
84+ $runtime.fail();
85+ })())))(Data$dTuple.$Tuple(a, s)),
86+ Monad0: () => monadStateT1
87+ };
88+};
89+const monadStateStateT = dictMonad => {
90+ const monadStateT1 = {Applicative0: () => applicativeStateT(dictMonad), Bind1: () => bindStateT(dictMonad)};
91+ return {state: f => x => dictMonad.Applicative0().pure(f(x)), Monad0: () => monadStateT1};
92+};
93+const monadTellStateT = dictMonadTell => {
94+ const Monad1 = dictMonadTell.Monad1();
95+ const Semigroup0 = dictMonadTell.Semigroup0();
96+ const monadStateT1 = {Applicative0: () => applicativeStateT(Monad1), Bind1: () => bindStateT(Monad1)};
97+ return {
98+ tell: x => {
99+ const $0 = dictMonadTell.tell(x);
100+ return s => Monad1.Bind1().bind($0)(x$1 => Monad1.Applicative0().pure(Data$dTuple.$Tuple(x$1, s)));
101+ },
102+ Semigroup0: () => Semigroup0,
103+ Monad1: () => monadStateT1
104+ };
105+};
106+const monadWriterStateT = dictMonadWriter => {
107+ const MonadTell1 = dictMonadWriter.MonadTell1();
108+ const Monad1 = MonadTell1.Monad1();
109+ const $0 = Monad1.Bind1();
110+ const $1 = Monad1.Applicative0();
111+ const Monoid0 = dictMonadWriter.Monoid0();
112+ const monadTellStateT1 = monadTellStateT(MonadTell1);
113+ return {
114+ listen: m => s => $0.bind(dictMonadWriter.listen(m(s)))(v => $1.pure(Data$dTuple.$Tuple(Data$dTuple.$Tuple(v._1._1, v._2), v._1._2))),
115+ pass: m => s => dictMonadWriter.pass($0.bind(m(s))(v => $1.pure(Data$dTuple.$Tuple(Data$dTuple.$Tuple(v._1._1, v._2), v._1._2)))),
116+ Monoid0: () => Monoid0,
117+ MonadTell1: () => monadTellStateT1
118+ };
119+};
120+const monadThrowStateT = dictMonadThrow => {
121+ const Monad0 = dictMonadThrow.Monad0();
122+ const monadStateT1 = {Applicative0: () => applicativeStateT(Monad0), Bind1: () => bindStateT(Monad0)};
123+ return {
124+ throwError: e => {
125+ const $0 = dictMonadThrow.throwError(e);
126+ return s => Monad0.Bind1().bind($0)(x => Monad0.Applicative0().pure(Data$dTuple.$Tuple(x, s)));
127+ },
128+ Monad0: () => monadStateT1
129+ };
130+};
131+const monadErrorStateT = dictMonadError => {
132+ const monadThrowStateT1 = monadThrowStateT(dictMonadError.MonadThrow0());
133+ return {catchError: v => h => s => dictMonadError.catchError(v(s))(e => h(e)(s)), MonadThrow0: () => monadThrowStateT1};
134+};
135+const monadSTStateT = dictMonadST => {
136+ const Monad0 = dictMonadST.Monad0();
137+ const monadStateT1 = {Applicative0: () => applicativeStateT(Monad0), Bind1: () => bindStateT(Monad0)};
138+ return {
139+ liftST: x => {
140+ const $0 = dictMonadST.liftST(x);
141+ return s => Monad0.Bind1().bind($0)(x$1 => Monad0.Applicative0().pure(Data$dTuple.$Tuple(x$1, s)));
142+ },
143+ Monad0: () => monadStateT1
144+ };
145+};
146+const monoidStateT = dictMonad => {
147+ const semigroupStateT1 = semigroupStateT(dictMonad);
148+ return dictMonoid => {
149+ const semigroupStateT2 = semigroupStateT1(dictMonoid.Semigroup0());
150+ return {mempty: applicativeStateT(dictMonad).pure(dictMonoid.mempty), Semigroup0: () => semigroupStateT2};
151+ };
152+};
153+const altStateT = dictMonad => dictAlt => {
154+ const $0 = dictAlt.Functor0();
155+ const functorStateT1 = {map: f => v => s => $0.map(v1 => Data$dTuple.$Tuple(f(v1._1), v1._2))(v(s))};
156+ return {alt: v => v1 => s => dictAlt.alt(v(s))(v1(s)), Functor0: () => functorStateT1};
157+};
158+const plusStateT = dictMonad => dictPlus => {
159+ const empty = dictPlus.empty;
160+ const $0 = dictPlus.Alt0();
161+ const $1 = $0.Functor0();
162+ const altStateT2 = (() => {
163+ const functorStateT1 = {map: f => v => s => $1.map(v1 => Data$dTuple.$Tuple(f(v1._1), v1._2))(v(s))};
164+ return {alt: v => v1 => s => $0.alt(v(s))(v1(s)), Functor0: () => functorStateT1};
165+ })();
166+ return {empty: v => empty, Alt0: () => altStateT2};
167+};
168+const alternativeStateT = dictMonad => {
169+ const applicativeStateT1 = applicativeStateT(dictMonad);
170+ return dictAlternative => {
171+ const $0 = dictAlternative.Plus1();
172+ const empty = $0.empty;
173+ const plusStateT2 = (() => {
174+ const $1 = $0.Alt0();
175+ const $2 = $1.Functor0();
176+ const functorStateT1 = {map: f => v => s => $2.map(v1 => Data$dTuple.$Tuple(f(v1._1), v1._2))(v(s))};
177+ const altStateT2 = {alt: v => v1 => s => $1.alt(v(s))(v1(s)), Functor0: () => functorStateT1};
178+ return {empty: v => empty, Alt0: () => altStateT2};
179+ })();
180+ return {Applicative0: () => applicativeStateT1, Plus1: () => plusStateT2};
181+ };
182+};
183+const monadPlusStateT = dictMonadPlus => {
184+ const Monad0 = dictMonadPlus.Monad0();
185+ const monadStateT1 = {Applicative0: () => applicativeStateT(Monad0), Bind1: () => bindStateT(Monad0)};
186+ const alternativeStateT1 = alternativeStateT(Monad0)(dictMonadPlus.Alternative1());
187+ return {Monad0: () => monadStateT1, Alternative1: () => alternativeStateT1};
188+};
189+export {
190+ StateT,
191+ altStateT,
192+ alternativeStateT,
193+ applicativeStateT,
194+ applyStateT,
195+ bindStateT,
196+ evalStateT,
197+ execStateT,
198+ functorStateT,
199+ lazyStateT,
200+ mapStateT,
201+ monadAskStateT,
202+ monadContStateT,
203+ monadEffectState,
204+ monadErrorStateT,
205+ monadPlusStateT,
206+ monadReaderStateT,
207+ monadRecStateT,
208+ monadSTStateT,
209+ monadStateStateT,
210+ monadStateT,
211+ monadTellStateT,
212+ monadThrowStateT,
213+ monadTransStateT,
214+ monadWriterStateT,
215+ monoidStateT,
216+ newtypeStateT,
217+ plusStateT,
218+ runStateT,
219+ semigroupStateT,
220+ withStateT
221+};
output-es/Control.Monad.State/index.jsnew file+8
@@ -0,0 +1,8 @@
1+// | This module defines the `State` monad.
2+import * as Control$dMonad$dState$dTrans from "../Control.Monad.State.Trans/index.js";
3+const withState = Control$dMonad$dState$dTrans.withStateT;
4+const runState = v => x => v(x);
5+const mapState = f => v => x => f(v(x));
6+const execState = v => s => v(s)._2;
7+const evalState = v => s => v(s)._1;
8+export {evalState, execState, mapState, runState, withState};
output-es/Control.Monad.Trampoline/index.jsnew file+9
@@ -0,0 +1,9 @@
1+// | A _trampoline_ monad, which can be used at the bottom of
2+// | a monad transformer stack to avoid stack overflows in large
3+// | monadic computations.
4+import * as Control$dMonad$dFree from "../Control.Monad.Free/index.js";
5+import * as Data$dFunctor from "../Data.Functor/index.js";
6+const runTrampoline = /* #__PURE__ */ Control$dMonad$dFree.runFree(Data$dFunctor.functorFn)(v => v());
7+const done = /* #__PURE__ */ (() => Control$dMonad$dFree.freeApplicative.pure)();
8+const delay = Control$dMonad$dFree.liftF;
9+export {delay, done, runTrampoline};
output-es/Control.Monad.Trans.Class/index.jsnew file+3
@@ -0,0 +1,3 @@
1+// | This module defines the `MonadTrans` type class of _monad transformers_.
2+const lift = dict => dict.lift;
3+export {lift};
output-es/Control.Monad.Writer.Class/index.jsnew file+14
@@ -0,0 +1,14 @@
1+// | This module defines the `MonadWriter` type class and its instances.
2+import * as Data$dTuple from "../Data.Tuple/index.js";
3+const tell = dict => dict.tell;
4+const pass = dict => dict.pass;
5+const listen = dict => dict.listen;
6+const listens = dictMonadWriter => {
7+ const Monad1 = dictMonadWriter.MonadTell1().Monad1();
8+ return f => m => Monad1.Bind1().bind(dictMonadWriter.listen(m))(v => Monad1.Applicative0().pure(Data$dTuple.$Tuple(v._1, f(v._2))));
9+};
10+const censor = dictMonadWriter => {
11+ const Monad1 = dictMonadWriter.MonadTell1().Monad1();
12+ return f => m => dictMonadWriter.pass(Monad1.Bind1().bind(m)(a => Monad1.Applicative0().pure(Data$dTuple.$Tuple(a, f))));
13+};
14+export {censor, listen, listens, pass, tell};
output-es/Control.Monad.Writer.Trans/index.jsnew file+266
@@ -0,0 +1,266 @@
1+// | This module defines the writer monad transformer, `WriterT`.
2+import * as $runtime from "../runtime.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dTuple from "../Data.Tuple/index.js";
5+const WriterT = x => x;
6+const runWriterT = v => v;
7+const newtypeWriterT = {Coercible0: () => {}};
8+const monadTransWriterT = dictMonoid => {
9+ const mempty = dictMonoid.mempty;
10+ return {lift: dictMonad => m => dictMonad.Bind1().bind(m)(a => dictMonad.Applicative0().pure(Data$dTuple.$Tuple(a, mempty)))};
11+};
12+const mapWriterT = f => v => f(v);
13+const functorWriterT = dictFunctor => ({map: f => dictFunctor.map(v => Data$dTuple.$Tuple(f(v._1), v._2))});
14+const execWriterT = dictFunctor => v => dictFunctor.map(Data$dTuple.snd)(v);
15+const applyWriterT = dictSemigroup => dictApply => {
16+ const Functor0 = dictApply.Functor0();
17+ const functorWriterT1 = {map: f => Functor0.map(v => Data$dTuple.$Tuple(f(v._1), v._2))};
18+ return {apply: v => v1 => dictApply.apply(Functor0.map(v3 => v4 => Data$dTuple.$Tuple(v3._1(v4._1), dictSemigroup.append(v3._2)(v4._2)))(v))(v1), Functor0: () => functorWriterT1};
19+};
20+const bindWriterT = dictSemigroup => dictBind => {
21+ const Apply0 = dictBind.Apply0();
22+ const Functor0 = Apply0.Functor0();
23+ const functorWriterT1 = {map: f => Functor0.map(v => Data$dTuple.$Tuple(f(v._1), v._2))};
24+ const applyWriterT2 = {
25+ apply: v => v1 => Apply0.apply(Functor0.map(v3 => v4 => Data$dTuple.$Tuple(v3._1(v4._1), dictSemigroup.append(v3._2)(v4._2)))(v))(v1),
26+ Functor0: () => functorWriterT1
27+ };
28+ return {
29+ bind: v => k => dictBind.bind(v)(v1 => {
30+ const $0 = v1._2;
31+ return Apply0.Functor0().map(v3 => Data$dTuple.$Tuple(v3._1, dictSemigroup.append($0)(v3._2)))(k(v1._1));
32+ }),
33+ Apply0: () => applyWriterT2
34+ };
35+};
36+const semigroupWriterT = dictApply => dictSemigroup => {
37+ const Functor0 = dictApply.Functor0();
38+ return dictSemigroup1 => (
39+ {
40+ append: a => b => dictApply.apply(Functor0.map(v3 => v4 => Data$dTuple.$Tuple(v3._1(v4._1), dictSemigroup.append(v3._2)(v4._2)))(Functor0.map(v => Data$dTuple.$Tuple(
41+ dictSemigroup1.append(v._1),
42+ v._2
43+ ))(a)))(b)
44+ }
45+ );
46+};
47+const applicativeWriterT = dictMonoid => {
48+ const mempty = dictMonoid.mempty;
49+ const $0 = dictMonoid.Semigroup0();
50+ return dictApplicative => {
51+ const $1 = dictApplicative.Apply0();
52+ const Functor0 = $1.Functor0();
53+ const applyWriterT2 = (() => {
54+ const functorWriterT1 = {map: f => Functor0.map(v => Data$dTuple.$Tuple(f(v._1), v._2))};
55+ return {apply: v => v1 => $1.apply(Functor0.map(v3 => v4 => Data$dTuple.$Tuple(v3._1(v4._1), $0.append(v3._2)(v4._2)))(v))(v1), Functor0: () => functorWriterT1};
56+ })();
57+ return {pure: a => dictApplicative.pure(Data$dTuple.$Tuple(a, mempty)), Apply0: () => applyWriterT2};
58+ };
59+};
60+const monadWriterT = dictMonoid => {
61+ const applicativeWriterT1 = applicativeWriterT(dictMonoid);
62+ const bindWriterT1 = bindWriterT(dictMonoid.Semigroup0());
63+ return dictMonad => {
64+ const applicativeWriterT2 = applicativeWriterT1(dictMonad.Applicative0());
65+ const bindWriterT2 = bindWriterT1(dictMonad.Bind1());
66+ return {Applicative0: () => applicativeWriterT2, Bind1: () => bindWriterT2};
67+ };
68+};
69+const monadAskWriterT = dictMonoid => {
70+ const mempty = dictMonoid.mempty;
71+ const monadWriterT1 = monadWriterT(dictMonoid);
72+ return dictMonadAsk => {
73+ const Monad0 = dictMonadAsk.Monad0();
74+ const monadWriterT2 = monadWriterT1(Monad0);
75+ return {ask: Monad0.Bind1().bind(dictMonadAsk.ask)(a => Monad0.Applicative0().pure(Data$dTuple.$Tuple(a, mempty))), Monad0: () => monadWriterT2};
76+ };
77+};
78+const monadReaderWriterT = dictMonoid => {
79+ const monadAskWriterT1 = monadAskWriterT(dictMonoid);
80+ return dictMonadReader => {
81+ const monadAskWriterT2 = monadAskWriterT1(dictMonadReader.MonadAsk0());
82+ return {local: f => dictMonadReader.local(f), MonadAsk0: () => monadAskWriterT2};
83+ };
84+};
85+const monadContWriterT = dictMonoid => {
86+ const mempty = dictMonoid.mempty;
87+ const monadWriterT1 = monadWriterT(dictMonoid);
88+ return dictMonadCont => {
89+ const monadWriterT2 = monadWriterT1(dictMonadCont.Monad0());
90+ return {callCC: f => dictMonadCont.callCC(c => f(a => c(Data$dTuple.$Tuple(a, mempty)))), Monad0: () => monadWriterT2};
91+ };
92+};
93+const monadEffectWriter = dictMonoid => {
94+ const mempty = dictMonoid.mempty;
95+ const monadWriterT1 = monadWriterT(dictMonoid);
96+ return dictMonadEffect => {
97+ const Monad0 = dictMonadEffect.Monad0();
98+ const monadWriterT2 = monadWriterT1(Monad0);
99+ return {liftEffect: x => Monad0.Bind1().bind(dictMonadEffect.liftEffect(x))(a => Monad0.Applicative0().pure(Data$dTuple.$Tuple(a, mempty))), Monad0: () => monadWriterT2};
100+ };
101+};
102+const monadRecWriterT = dictMonoid => {
103+ const $0 = dictMonoid.Semigroup0();
104+ const mempty = dictMonoid.mempty;
105+ const monadWriterT1 = monadWriterT(dictMonoid);
106+ return dictMonadRec => {
107+ const Monad0 = dictMonadRec.Monad0();
108+ const monadWriterT2 = monadWriterT1(Monad0);
109+ return {
110+ tailRecM: f => a => dictMonadRec.tailRecM(v => {
111+ const $1 = v._2;
112+ return Monad0.Bind1().bind(f(v._1))(v2 => Monad0.Applicative0().pure((() => {
113+ if (v2._1.tag === "Loop") { return Control$dMonad$dRec$dClass.$Step("Loop", Data$dTuple.$Tuple(v2._1._1, $0.append($1)(v2._2))); }
114+ if (v2._1.tag === "Done") { return Control$dMonad$dRec$dClass.$Step("Done", Data$dTuple.$Tuple(v2._1._1, $0.append($1)(v2._2))); }
115+ $runtime.fail();
116+ })()));
117+ })(Data$dTuple.$Tuple(a, mempty)),
118+ Monad0: () => monadWriterT2
119+ };
120+ };
121+};
122+const monadStateWriterT = dictMonoid => {
123+ const mempty = dictMonoid.mempty;
124+ const monadWriterT1 = monadWriterT(dictMonoid);
125+ return dictMonadState => {
126+ const Monad0 = dictMonadState.Monad0();
127+ const monadWriterT2 = monadWriterT1(Monad0);
128+ return {state: f => Monad0.Bind1().bind(dictMonadState.state(f))(a => Monad0.Applicative0().pure(Data$dTuple.$Tuple(a, mempty))), Monad0: () => monadWriterT2};
129+ };
130+};
131+const monadTellWriterT = dictMonoid => {
132+ const Semigroup0 = dictMonoid.Semigroup0();
133+ const monadWriterT1 = monadWriterT(dictMonoid);
134+ return dictMonad => {
135+ const monadWriterT2 = monadWriterT1(dictMonad);
136+ return {
137+ tell: (() => {
138+ const $0 = Data$dTuple.Tuple();
139+ return x => dictMonad.Applicative0().pure($0(x));
140+ })(),
141+ Semigroup0: () => Semigroup0,
142+ Monad1: () => monadWriterT2
143+ };
144+ };
145+};
146+const monadWriterWriterT = dictMonoid => {
147+ const monadTellWriterT1 = monadTellWriterT(dictMonoid);
148+ return dictMonad => {
149+ const $0 = dictMonad.Bind1();
150+ const $1 = dictMonad.Applicative0();
151+ const monadTellWriterT2 = monadTellWriterT1(dictMonad);
152+ return {
153+ listen: v => $0.bind(v)(v1 => $1.pure(Data$dTuple.$Tuple(Data$dTuple.$Tuple(v1._1, v1._2), v1._2))),
154+ pass: v => $0.bind(v)(v1 => $1.pure(Data$dTuple.$Tuple(v1._1._1, v1._1._2(v1._2)))),
155+ Monoid0: () => dictMonoid,
156+ MonadTell1: () => monadTellWriterT2
157+ };
158+ };
159+};
160+const monadThrowWriterT = dictMonoid => {
161+ const mempty = dictMonoid.mempty;
162+ const monadWriterT1 = monadWriterT(dictMonoid);
163+ return dictMonadThrow => {
164+ const Monad0 = dictMonadThrow.Monad0();
165+ const monadWriterT2 = monadWriterT1(Monad0);
166+ return {throwError: e => Monad0.Bind1().bind(dictMonadThrow.throwError(e))(a => Monad0.Applicative0().pure(Data$dTuple.$Tuple(a, mempty))), Monad0: () => monadWriterT2};
167+ };
168+};
169+const monadErrorWriterT = dictMonoid => {
170+ const monadThrowWriterT1 = monadThrowWriterT(dictMonoid);
171+ return dictMonadError => {
172+ const monadThrowWriterT2 = monadThrowWriterT1(dictMonadError.MonadThrow0());
173+ return {catchError: v => h => dictMonadError.catchError(v)(e => h(e)), MonadThrow0: () => monadThrowWriterT2};
174+ };
175+};
176+const monadSTWriterT = dictMonoid => {
177+ const mempty = dictMonoid.mempty;
178+ const monadWriterT1 = monadWriterT(dictMonoid);
179+ return dictMonadST => {
180+ const Monad0 = dictMonadST.Monad0();
181+ const monadWriterT2 = monadWriterT1(Monad0);
182+ return {liftST: x => Monad0.Bind1().bind(dictMonadST.liftST(x))(a => Monad0.Applicative0().pure(Data$dTuple.$Tuple(a, mempty))), Monad0: () => monadWriterT2};
183+ };
184+};
185+const monoidWriterT = dictApplicative => {
186+ const $0 = dictApplicative.Apply0();
187+ return dictMonoid => {
188+ const $1 = dictMonoid.Semigroup0();
189+ const Functor0 = $0.Functor0();
190+ return dictMonoid1 => {
191+ const $2 = dictMonoid1.Semigroup0();
192+ const semigroupWriterT3 = {
193+ append: a => b => $0.apply(Functor0.map(v3 => v4 => Data$dTuple.$Tuple(v3._1(v4._1), $1.append(v3._2)(v4._2)))(Functor0.map(v => Data$dTuple.$Tuple($2.append(v._1), v._2))(a)))(b)
194+ };
195+ return {mempty: applicativeWriterT(dictMonoid)(dictApplicative).pure(dictMonoid1.mempty), Semigroup0: () => semigroupWriterT3};
196+ };
197+ };
198+};
199+const altWriterT = dictAlt => {
200+ const $0 = dictAlt.Functor0();
201+ const functorWriterT1 = {map: f => $0.map(v => Data$dTuple.$Tuple(f(v._1), v._2))};
202+ return {alt: v => v1 => dictAlt.alt(v)(v1), Functor0: () => functorWriterT1};
203+};
204+const plusWriterT = dictPlus => {
205+ const $0 = dictPlus.Alt0();
206+ const $1 = $0.Functor0();
207+ const altWriterT1 = (() => {
208+ const functorWriterT1 = {map: f => $1.map(v => Data$dTuple.$Tuple(f(v._1), v._2))};
209+ return {alt: v => v1 => $0.alt(v)(v1), Functor0: () => functorWriterT1};
210+ })();
211+ return {empty: dictPlus.empty, Alt0: () => altWriterT1};
212+};
213+const alternativeWriterT = dictMonoid => {
214+ const applicativeWriterT1 = applicativeWriterT(dictMonoid);
215+ return dictAlternative => {
216+ const applicativeWriterT2 = applicativeWriterT1(dictAlternative.Applicative0());
217+ const $0 = dictAlternative.Plus1();
218+ const $1 = $0.Alt0();
219+ const plusWriterT1 = (() => {
220+ const $2 = $1.Functor0();
221+ const functorWriterT1 = {map: f => $2.map(v => Data$dTuple.$Tuple(f(v._1), v._2))};
222+ const altWriterT1 = {alt: v => v1 => $1.alt(v)(v1), Functor0: () => functorWriterT1};
223+ return {empty: $0.empty, Alt0: () => altWriterT1};
224+ })();
225+ return {Applicative0: () => applicativeWriterT2, Plus1: () => plusWriterT1};
226+ };
227+};
228+const monadPlusWriterT = dictMonoid => {
229+ const monadWriterT1 = monadWriterT(dictMonoid);
230+ const alternativeWriterT1 = alternativeWriterT(dictMonoid);
231+ return dictMonadPlus => {
232+ const monadWriterT2 = monadWriterT1(dictMonadPlus.Monad0());
233+ const alternativeWriterT2 = alternativeWriterT1(dictMonadPlus.Alternative1());
234+ return {Monad0: () => monadWriterT2, Alternative1: () => alternativeWriterT2};
235+ };
236+};
237+export {
238+ WriterT,
239+ altWriterT,
240+ alternativeWriterT,
241+ applicativeWriterT,
242+ applyWriterT,
243+ bindWriterT,
244+ execWriterT,
245+ functorWriterT,
246+ mapWriterT,
247+ monadAskWriterT,
248+ monadContWriterT,
249+ monadEffectWriter,
250+ monadErrorWriterT,
251+ monadPlusWriterT,
252+ monadReaderWriterT,
253+ monadRecWriterT,
254+ monadSTWriterT,
255+ monadStateWriterT,
256+ monadTellWriterT,
257+ monadThrowWriterT,
258+ monadTransWriterT,
259+ monadWriterT,
260+ monadWriterWriterT,
261+ monoidWriterT,
262+ newtypeWriterT,
263+ plusWriterT,
264+ runWriterT,
265+ semigroupWriterT
266+};
output-es/Control.Monad.Writer/index.jsnew file+6
@@ -0,0 +1,6 @@
1+// | This module defines the `Writer` monad.
2+const writer = x => x;
3+const runWriter = x => x;
4+const mapWriter = f => v => f(v);
5+const execWriter = m => m._2;
6+export {execWriter, mapWriter, runWriter, writer};
output-es/Control.Monad/index.jsnew file+27
@@ -0,0 +1,27 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dApplicative from "../Control.Applicative/index.js";
3+import * as Control$dBind from "../Control.Bind/index.js";
4+const whenM = dictMonad => {
5+ const $0 = dictMonad.Applicative0();
6+ return mb => m => dictMonad.Bind1().bind(mb)(b => {
7+ if (b) { return m; }
8+ return $0.pure();
9+ });
10+};
11+const unlessM = dictMonad => {
12+ const $0 = dictMonad.Applicative0();
13+ return mb => m => dictMonad.Bind1().bind(mb)(b => {
14+ if (!b) { return m; }
15+ if (b) { return $0.pure(); }
16+ $runtime.fail();
17+ });
18+};
19+const monadProxy = {Applicative0: () => Control$dApplicative.applicativeProxy, Bind1: () => Control$dBind.bindProxy};
20+const monadFn = {Applicative0: () => Control$dApplicative.applicativeFn, Bind1: () => Control$dBind.bindFn};
21+const monadArray = {Applicative0: () => Control$dApplicative.applicativeArray, Bind1: () => Control$dBind.bindArray};
22+const liftM1 = dictMonad => f => a => dictMonad.Bind1().bind(a)(a$p => dictMonad.Applicative0().pure(f(a$p)));
23+const ap = dictMonad => {
24+ const $0 = dictMonad.Bind1();
25+ return f => a => $0.bind(f)(f$p => $0.bind(a)(a$p => dictMonad.Applicative0().pure(f$p(a$p))));
26+};
27+export {ap, liftM1, monadArray, monadFn, monadProxy, unlessM, whenM};
output-es/Control.MonadPlus/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Control$dAlternative from "../Control.Alternative/index.js";
2+import * as Control$dMonad from "../Control.Monad/index.js";
3+const monadPlusArray = {Monad0: () => Control$dMonad.monadArray, Alternative1: () => Control$dAlternative.alternativeArray};
4+export {monadPlusArray};
output-es/Control.Parallel.Class/index.jsnew file+191
@@ -0,0 +1,191 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dMonad$dExcept$dTrans from "../Control.Monad.Except.Trans/index.js";
3+import * as Control$dMonad$dMaybe$dTrans from "../Control.Monad.Maybe.Trans/index.js";
4+import * as Data$dEither from "../Data.Either/index.js";
5+import * as Data$dFunctor$dCostar from "../Data.Functor.Costar/index.js";
6+import * as Data$dMaybe from "../Data.Maybe/index.js";
7+import * as Data$dTuple from "../Data.Tuple/index.js";
8+const ParCont = x => x;
9+const sequential = dict => dict.sequential;
10+const parallel = dict => dict.parallel;
11+const newtypeParCont = {Coercible0: () => {}};
12+const monadParWriterT = dictMonoid => {
13+ const $0 = dictMonoid.Semigroup0();
14+ const applyWriterT = dictApply => {
15+ const Functor0 = dictApply.Functor0();
16+ const functorWriterT1 = {map: f => Functor0.map(v => Data$dTuple.$Tuple(f(v._1), v._2))};
17+ return {apply: v => v1 => dictApply.apply(Functor0.map(v3 => v4 => Data$dTuple.$Tuple(v3._1(v4._1), $0.append(v3._2)(v4._2)))(v))(v1), Functor0: () => functorWriterT1};
18+ };
19+ return dictParallel => {
20+ const applyWriterT1 = applyWriterT(dictParallel.Apply0());
21+ const applyWriterT2 = applyWriterT(dictParallel.Apply1());
22+ return {parallel: v => dictParallel.parallel(v), sequential: v => dictParallel.sequential(v), Apply0: () => applyWriterT1, Apply1: () => applyWriterT2};
23+ };
24+};
25+const monadParStar = dictParallel => {
26+ const $0 = dictParallel.Apply0();
27+ const $1 = $0.Functor0();
28+ const applyStar = (() => {
29+ const functorStar1 = {
30+ map: f => v => {
31+ const $2 = $1.map(f);
32+ return x => $2(v(x));
33+ }
34+ };
35+ return {apply: v => v1 => a => $0.apply(v(a))(v1(a)), Functor0: () => functorStar1};
36+ })();
37+ const $2 = dictParallel.Apply1();
38+ const $3 = $2.Functor0();
39+ const applyStar1 = (() => {
40+ const functorStar1 = {
41+ map: f => v => {
42+ const $4 = $3.map(f);
43+ return x => $4(v(x));
44+ }
45+ };
46+ return {apply: v => v1 => a => $2.apply(v(a))(v1(a)), Functor0: () => functorStar1};
47+ })();
48+ return {parallel: v => x => dictParallel.parallel(v(x)), sequential: v => x => dictParallel.sequential(v(x)), Apply0: () => applyStar, Apply1: () => applyStar1};
49+};
50+const monadParReaderT = dictParallel => {
51+ const $0 = dictParallel.Apply0();
52+ const $1 = $0.Functor0();
53+ const applyReaderT = (() => {
54+ const functorReaderT1 = {
55+ map: x => {
56+ const $2 = $1.map(x);
57+ return v => x$1 => $2(v(x$1));
58+ }
59+ };
60+ return {apply: v => v1 => r => $0.apply(v(r))(v1(r)), Functor0: () => functorReaderT1};
61+ })();
62+ const $2 = dictParallel.Apply1();
63+ const $3 = $2.Functor0();
64+ const applyReaderT1 = (() => {
65+ const functorReaderT1 = {
66+ map: x => {
67+ const $4 = $3.map(x);
68+ return v => x$1 => $4(v(x$1));
69+ }
70+ };
71+ return {apply: v => v1 => r => $2.apply(v(r))(v1(r)), Functor0: () => functorReaderT1};
72+ })();
73+ return {parallel: v => x => dictParallel.parallel(v(x)), sequential: v => x => dictParallel.sequential(v(x)), Apply0: () => applyReaderT, Apply1: () => applyReaderT1};
74+};
75+const monadParMaybeT = dictParallel => {
76+ const $0 = dictParallel.Apply1();
77+ const Functor0 = $0.Functor0();
78+ const functorCompose2 = {
79+ map: f => v => Functor0.map(v1 => {
80+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", f(v1._1)); }
81+ return Data$dMaybe.Nothing;
82+ })(v)
83+ };
84+ const applyCompose = {apply: v => v1 => $0.apply(Functor0.map(Data$dMaybe.applyMaybe.apply)(v))(v1), Functor0: () => functorCompose2};
85+ return dictMonad => {
86+ const applyMaybeT = Control$dMonad$dMaybe$dTrans.applyMaybeT(dictMonad);
87+ return {parallel: v => dictParallel.parallel(v), sequential: v => dictParallel.sequential(v), Apply0: () => applyMaybeT, Apply1: () => applyCompose};
88+ };
89+};
90+const monadParExceptT = dictParallel => {
91+ const $0 = dictParallel.Apply1();
92+ const Functor0 = $0.Functor0();
93+ const functorCompose2 = {
94+ map: f => v => Functor0.map(m => {
95+ if (m.tag === "Left") { return Data$dEither.$Either("Left", m._1); }
96+ if (m.tag === "Right") { return Data$dEither.$Either("Right", f(m._1)); }
97+ $runtime.fail();
98+ })(v)
99+ };
100+ const applyCompose = {apply: v => v1 => $0.apply(Functor0.map(Data$dEither.applyEither.apply)(v))(v1), Functor0: () => functorCompose2};
101+ return dictMonad => {
102+ const applyExceptT = Control$dMonad$dExcept$dTrans.applyExceptT(dictMonad);
103+ return {parallel: v => dictParallel.parallel(v), sequential: v => dictParallel.sequential(v), Apply0: () => applyExceptT, Apply1: () => applyCompose};
104+ };
105+};
106+const monadParCostar = dictParallel => (
107+ {
108+ parallel: v => x => v(dictParallel.sequential(x)),
109+ sequential: v => x => v(dictParallel.parallel(x)),
110+ Apply0: () => Data$dFunctor$dCostar.applyCostar,
111+ Apply1: () => Data$dFunctor$dCostar.applyCostar
112+ }
113+);
114+const monadParParCont = dictMonadEffect => {
115+ const functorContT1 = {map: f => v => k => v(a => k(f(a)))};
116+ const applyContT = {apply: v => v1 => k => v(g => v1(a => k(g(a)))), Functor0: () => functorContT1};
117+ return {parallel: ParCont, sequential: v => v, Apply0: () => applyContT, Apply1: () => applyParCont(dictMonadEffect)};
118+};
119+const functorParCont = dictMonadEffect => (
120+ {
121+ map: f => x => monadParParCont(dictMonadEffect).parallel((() => {
122+ const $0 = monadParParCont(dictMonadEffect).sequential(x);
123+ return k => $0(a => k(f(a)));
124+ })())
125+ }
126+);
127+const applyParCont = dictMonadEffect => {
128+ const Bind1 = dictMonadEffect.Monad0().Bind1();
129+ return {
130+ apply: v => v1 => k => Bind1.bind(dictMonadEffect.liftEffect(() => ({value: Data$dMaybe.Nothing})))(ra => Bind1.bind(dictMonadEffect.liftEffect(() => (
131+ {value: Data$dMaybe.Nothing}
132+ )))(rb => Bind1.bind(v(a => Bind1.bind(dictMonadEffect.liftEffect(() => rb.value))(mb => {
133+ if (mb.tag === "Nothing") { return dictMonadEffect.liftEffect(() => ra.value = Data$dMaybe.$Maybe("Just", a)); }
134+ if (mb.tag === "Just") { return k(a(mb._1)); }
135+ $runtime.fail();
136+ })))(() => v1(b => Bind1.bind(dictMonadEffect.liftEffect(() => ra.value))(ma => {
137+ if (ma.tag === "Nothing") { return dictMonadEffect.liftEffect(() => rb.value = Data$dMaybe.$Maybe("Just", b)); }
138+ if (ma.tag === "Just") { return k(ma._1(b)); }
139+ $runtime.fail();
140+ }))))),
141+ Functor0: () => functorParCont(dictMonadEffect)
142+ };
143+};
144+const applicativeParCont = dictMonadEffect => {
145+ const applyParCont1 = applyParCont(dictMonadEffect);
146+ return {pure: x => monadParParCont(dictMonadEffect).parallel(k => k(x)), Apply0: () => applyParCont1};
147+};
148+const altParCont = dictMonadEffect => {
149+ const Monad0 = dictMonadEffect.Monad0();
150+ const Bind1 = Monad0.Bind1();
151+ const $0 = Monad0.Applicative0();
152+ const functorParCont1 = functorParCont(dictMonadEffect);
153+ return {
154+ alt: v => v1 => k => Bind1.bind(dictMonadEffect.liftEffect(() => ({value: false})))(done => Bind1.bind(v(a => Bind1.bind(dictMonadEffect.liftEffect(() => done.value))(b => {
155+ if (b) { return $0.pure(); }
156+ return Bind1.bind(dictMonadEffect.liftEffect(() => done.value = true))(() => k(a));
157+ })))(() => v1(a => Bind1.bind(dictMonadEffect.liftEffect(() => done.value))(b => {
158+ if (b) { return $0.pure(); }
159+ return Bind1.bind(dictMonadEffect.liftEffect(() => done.value = true))(() => k(a));
160+ })))),
161+ Functor0: () => functorParCont1
162+ };
163+};
164+const plusParCont = dictMonadEffect => {
165+ const altParCont1 = altParCont(dictMonadEffect);
166+ return {empty: v => dictMonadEffect.Monad0().Applicative0().pure(), Alt0: () => altParCont1};
167+};
168+const alternativeParCont = dictMonadEffect => {
169+ const applicativeParCont1 = applicativeParCont(dictMonadEffect);
170+ const plusParCont1 = plusParCont(dictMonadEffect);
171+ return {Applicative0: () => applicativeParCont1, Plus1: () => plusParCont1};
172+};
173+export {
174+ ParCont,
175+ altParCont,
176+ alternativeParCont,
177+ applicativeParCont,
178+ applyParCont,
179+ functorParCont,
180+ monadParCostar,
181+ monadParExceptT,
182+ monadParMaybeT,
183+ monadParParCont,
184+ monadParReaderT,
185+ monadParStar,
186+ monadParWriterT,
187+ newtypeParCont,
188+ parallel,
189+ plusParCont,
190+ sequential
191+};
output-es/Control.Parallel/index.jsnew file+49
@@ -0,0 +1,49 @@
1+import * as Data$dFoldable from "../Data.Foldable/index.js";
2+const identity = x => x;
3+const parTraverse_ = dictParallel => dictApplicative => {
4+ const traverse_ = Data$dFoldable.traverse_(dictApplicative);
5+ return dictFoldable => {
6+ const traverse_1 = traverse_(dictFoldable);
7+ return f => {
8+ const $0 = traverse_1(x => dictParallel.parallel(f(x)));
9+ return x => dictParallel.sequential($0(x));
10+ };
11+ };
12+};
13+const parTraverse = dictParallel => dictApplicative => dictTraversable => {
14+ const traverse = dictTraversable.traverse(dictApplicative);
15+ return f => {
16+ const $0 = traverse(x => dictParallel.parallel(f(x)));
17+ return x => dictParallel.sequential($0(x));
18+ };
19+};
20+const parSequence_ = dictParallel => dictApplicative => {
21+ const parTraverse_2 = parTraverse_(dictParallel)(dictApplicative);
22+ return dictFoldable => parTraverse_2(dictFoldable)(identity);
23+};
24+const parSequence = dictParallel => dictApplicative => dictTraversable => {
25+ const $0 = dictTraversable.traverse(dictApplicative)(x => dictParallel.parallel(x));
26+ return x => dictParallel.sequential($0(x));
27+};
28+const parOneOfMap = dictParallel => dictAlternative => {
29+ const Plus1 = dictAlternative.Plus1();
30+ return dictFoldable => {
31+ const empty = Plus1.empty;
32+ return dictFunctor => f => {
33+ const $0 = dictFoldable.foldr(x => Plus1.Alt0().alt(dictParallel.parallel(f(x))))(empty);
34+ return x => dictParallel.sequential($0(x));
35+ };
36+ };
37+};
38+const parOneOf = dictParallel => dictAlternative => {
39+ const Plus1 = dictAlternative.Plus1();
40+ return dictFoldable => {
41+ const empty = Plus1.empty;
42+ return dictFunctor => {
43+ const $0 = dictFoldable.foldr(x => Plus1.Alt0().alt(dictParallel.parallel(x)))(empty);
44+ return x => dictParallel.sequential($0(x));
45+ };
46+ };
47+};
48+const parApply = dictParallel => mf => ma => dictParallel.sequential(dictParallel.Apply1().apply(dictParallel.parallel(mf))(dictParallel.parallel(ma)));
49+export {identity, parApply, parOneOf, parOneOfMap, parSequence, parSequence_, parTraverse, parTraverse_};
output-es/Control.Plus/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Control$dAlt from "../Control.Alt/index.js";
2+const plusArray = {empty: [], Alt0: () => Control$dAlt.altArray};
3+const empty = dict => dict.empty;
4+export {empty, plusArray};
output-es/Control.Promise/foreign.jsnew file+24
@@ -0,0 +1,24 @@
1+export function promise(f) {
2+ return function () {
3+ return new Promise(function (success, error) {
4+ var succF = function (s) { return function() { return success(s); } };
5+ var failF = function (s) { return function() { return error(s); } };
6+
7+ // This indicates the aff was wrong?
8+ try { f(succF)(failF)(); }
9+ catch (e) {
10+ error(e);
11+ }
12+ });
13+ };
14+}
15+
16+export function thenImpl(promise) {
17+ return function(errCB) {
18+ return function(succCB) {
19+ return function() {
20+ promise.then(succCB, errCB);
21+ };
22+ };
23+ };
24+}
output-es/Control.Promise/index.jsnew file+40
@@ -0,0 +1,40 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dMonad$dExcept$dTrans from "../Control.Monad.Except.Trans/index.js";
3+import * as Data$dEither from "../Data.Either/index.js";
4+import * as Data$dIdentity from "../Data.Identity/index.js";
5+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
6+import * as Effect$dAff from "../Effect.Aff/index.js";
7+import * as Effect$dException from "../Effect.Exception/index.js";
8+import * as Foreign from "../Foreign/index.js";
9+import {promise, thenImpl} from "./foreign.js";
10+const alt = /* #__PURE__ */ (() => Control$dMonad$dExcept$dTrans.altExceptT(Data$dList$dTypes.semigroupNonEmptyList)(Data$dIdentity.monadIdentity).alt)();
11+const toAff$p = customCoerce => p => Effect$dAff.makeAff(cb => {
12+ const $0 = thenImpl(p)($0 => cb(Data$dEither.$Either("Left", customCoerce($0)))())(x => cb(Data$dEither.$Either("Right", x))());
13+ return () => {
14+ $0();
15+ return Effect$dAff.nonCanceler;
16+ };
17+});
18+const fromAff = aff => promise(succ => err => {
19+ const $0 = Effect$dAff.runAff(v2 => {
20+ if (v2.tag === "Left") { return err(v2._1); }
21+ if (v2.tag === "Right") { return succ(v2._1); }
22+ $runtime.fail();
23+ })(aff);
24+ return () => {$0();};
25+});
26+const coerce = fn => {
27+ const $0 = alt(Foreign.unsafeReadTagged(Data$dIdentity.monadIdentity)("Error")(fn))((() => {
28+ const $0 = Foreign.unsafeReadTagged(Data$dIdentity.monadIdentity)("String")(fn);
29+ if ($0.tag === "Left") { return Data$dEither.$Either("Left", $0._1); }
30+ if ($0.tag === "Right") { return Data$dEither.$Either("Right", Effect$dException.error($0._1)); }
31+ $runtime.fail();
32+ })());
33+ if ($0.tag === "Left") { return Effect$dException.error("Promise failed, couldn't extract JS Error or String"); }
34+ if ($0.tag === "Right") { return $0._1; }
35+ $runtime.fail();
36+};
37+const toAff = /* #__PURE__ */ toAff$p(coerce);
38+const toAffE = f => Effect$dAff._bind(Effect$dAff._liftEffect(f))(toAff$p(coerce));
39+export {alt, coerce, fromAff, toAff, toAff$p, toAffE};
40+export * from "./foreign.js";
output-es/Control.Semigroupoid/index.jsnew file+4
@@ -0,0 +1,4 @@
1+const semigroupoidFn = {compose: f => g => x => f(g(x))};
2+const compose = dict => dict.compose;
3+const composeFlipped = dictSemigroupoid => f => g => dictSemigroupoid.compose(g)(f);
4+export {compose, composeFlipped, semigroupoidFn};
output-es/DaisyUI.Accordion.Stories/index.jsnew file+54
@@ -0,0 +1,54 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkAccordion = /* #__PURE__ */ React$dBasic$dHooks.component("AccordionStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-0 w-full max-w-lg"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "collapse collapse-arrow bg-base-100 border border-base-300", tabIndex: 0},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "my-accordion-1", checked: true}),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "collapse-title font-semibold"}, "How do I create an account?"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl(
19+ "div",
20+ {className: "collapse-content"},
21+ "Click the Sign Up button in the top right corner and follow the registration process."
22+ )
23+ ]
24+ ),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl(
26+ "div",
27+ {className: "collapse collapse-arrow bg-base-100 border border-base-300", tabIndex: 0},
28+ [
29+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "my-accordion-1"}),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "collapse-title font-semibold"}, "I forgot my password. What should I do?"),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "div",
33+ {className: "collapse-content"},
34+ "Click on Forgot Password on the login page and follow the instructions sent to your email."
35+ )
36+ ]
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl(
39+ "div",
40+ {className: "collapse collapse-arrow bg-base-100 border border-base-300", tabIndex: 0},
41+ [
42+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "my-accordion-1"}),
43+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "collapse-title font-semibold"}, "How can I contact support?"),
44+ Yoga$dReact$dDOM$dInternal.createElementImpl(
45+ "div",
46+ {className: "collapse-content"},
47+ "You can reach our support team through the Contact Us page or by emailing support@example.com."
48+ )
49+ ]
50+ )
51+ ]
52+)))();
53+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkAccordion)({});
54+export {$$default as default, mkAccordion, pure};
output-es/DaisyUI.Accordion/index.jsnew file+9
@@ -0,0 +1,9 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const plus = "collapse-plus";
3+const open = "collapse-open";
4+const collapseTitle = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "collapse-title font-semibold"});
5+const collapseContent = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "collapse-content"});
6+const collapse = variant => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "collapse " + variant, tabIndex: 0});
7+const close = "collapse-close";
8+const arrow = "collapse-arrow";
9+export {arrow, close, collapse, collapseContent, collapseTitle, open, plus};
output-es/DaisyUI.Alert.Stories/index.jsnew file+35
@@ -0,0 +1,35 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkAlert = /* #__PURE__ */ React$dBasic$dHooks.component("AlertStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-lg"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "alert alert-info alert-soft", role: "alert"},
15+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "12 unread messages. Tap to see.")]
16+ ),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "alert alert-success alert-soft", role: "alert"},
20+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Your purchase has been confirmed!")]
21+ ),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl(
23+ "div",
24+ {className: "alert alert-warning alert-soft", role: "alert"},
25+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Warning: Invalid email address!")]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "div",
29+ {className: "alert alert-error alert-soft", role: "alert"},
30+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Error! Task failed successfully.")]
31+ )
32+ ]
33+)))();
34+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkAlert)({});
35+export {$$default as default, mkAlert, pure};
output-es/DaisyUI.Alert/index.jsnew file+11
@@ -0,0 +1,11 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const warning = "alert-warning";
3+const vertical = "alert-vertical";
4+const success = "alert-success";
5+const soft = "alert-soft";
6+const outline = "alert-outline";
7+const info = "alert-info";
8+const error = "alert-error";
9+const dash = "alert-dash";
10+const alert = color => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "alert " + color, role: "alert"});
11+export {alert, dash, error, info, outline, soft, success, vertical, warning};
output-es/DaisyUI.Avatar.Stories/index.jsnew file+138
@@ -0,0 +1,138 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkAvatar = /* #__PURE__ */ React$dBasic$dHooks.component("AvatarStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-8"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "flex gap-4 items-end"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "avatar"},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl(
21+ "div",
22+ {className: "w-24 rounded"},
23+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
24+ )
25+ ]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "div",
29+ {className: "avatar"},
30+ [
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "div",
33+ {className: "w-16 rounded"},
34+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
35+ )
36+ ]
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl(
39+ "div",
40+ {className: "avatar"},
41+ [
42+ Yoga$dReact$dDOM$dInternal.createElementImpl(
43+ "div",
44+ {className: "w-12 rounded"},
45+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
46+ )
47+ ]
48+ )
49+ ]
50+ ),
51+ Yoga$dReact$dDOM$dInternal.createElementImpl(
52+ "div",
53+ {className: "flex gap-4 items-end"},
54+ [
55+ Yoga$dReact$dDOM$dInternal.createElementImpl(
56+ "div",
57+ {className: "avatar"},
58+ [
59+ Yoga$dReact$dDOM$dInternal.createElementImpl(
60+ "div",
61+ {className: "w-24 rounded-full"},
62+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
63+ )
64+ ]
65+ ),
66+ Yoga$dReact$dDOM$dInternal.createElementImpl(
67+ "div",
68+ {className: "avatar"},
69+ [
70+ Yoga$dReact$dDOM$dInternal.createElementImpl(
71+ "div",
72+ {className: "ring-primary ring-offset-base-100 w-24 rounded-full ring ring-offset-2"},
73+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
74+ )
75+ ]
76+ )
77+ ]
78+ ),
79+ Yoga$dReact$dDOM$dInternal.createElementImpl(
80+ "div",
81+ {className: "flex gap-4 items-center"},
82+ [
83+ Yoga$dReact$dDOM$dInternal.createElementImpl(
84+ "div",
85+ {className: "avatar online"},
86+ [
87+ Yoga$dReact$dDOM$dInternal.createElementImpl(
88+ "div",
89+ {className: "w-12 rounded-full"},
90+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
91+ )
92+ ]
93+ ),
94+ Yoga$dReact$dDOM$dInternal.createElementImpl(
95+ "div",
96+ {className: "avatar offline"},
97+ [
98+ Yoga$dReact$dDOM$dInternal.createElementImpl(
99+ "div",
100+ {className: "w-12 rounded-full"},
101+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
102+ )
103+ ]
104+ )
105+ ]
106+ ),
107+ Yoga$dReact$dDOM$dInternal.createElementImpl(
108+ "div",
109+ {className: "flex gap-4 items-center"},
110+ [
111+ Yoga$dReact$dDOM$dInternal.createElementImpl(
112+ "div",
113+ {className: "avatar placeholder"},
114+ [
115+ Yoga$dReact$dDOM$dInternal.createElementImpl(
116+ "div",
117+ {className: "bg-neutral text-neutral-content w-24 rounded-full"},
118+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "text-3xl"}, "D")]
119+ )
120+ ]
121+ ),
122+ Yoga$dReact$dDOM$dInternal.createElementImpl(
123+ "div",
124+ {className: "avatar placeholder"},
125+ [
126+ Yoga$dReact$dDOM$dInternal.createElementImpl(
127+ "div",
128+ {className: "bg-neutral text-neutral-content w-12 rounded-full"},
129+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "D")]
130+ )
131+ ]
132+ )
133+ ]
134+ )
135+ ]
136+)))();
137+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkAvatar)({});
138+export {$$default as default, mkAvatar, pure};
output-es/DaisyUI.Avatar/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const avatarPlaceholder = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "avatar placeholder"});
3+const avatarOnline = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "avatar online"});
4+const avatarOffline = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "avatar offline"});
5+const avatarGroup = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "avatar-group -space-x-6"});
6+const avatar = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "avatar"});
7+export {avatar, avatarGroup, avatarOffline, avatarOnline, avatarPlaceholder};
output-es/DaisyUI.Badge.Stories/index.jsnew file+59
@@ -0,0 +1,59 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkBadge = /* #__PURE__ */ React$dBasic$dHooks.component("BadgeStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "flex flex-wrap gap-2"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-neutral "}, "neutral"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary "}, "primary"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-secondary "}, "secondary"),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-accent "}, "accent"),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-ghost "}, "ghost")
21+ ]
22+ ),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl(
24+ "div",
25+ {className: "flex flex-wrap gap-2"},
26+ [
27+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary badge-outline "}, "outline"),
28+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary badge-soft "}, "soft"),
29+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary badge-dash "}, "dash")
30+ ]
31+ ),
32+ Yoga$dReact$dDOM$dInternal.createElementImpl(
33+ "div",
34+ {className: "flex flex-wrap gap-2"},
35+ [
36+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary badge-lg"}, "large"),
37+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary badge-md"}, "medium"),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary badge-sm"}, "small"),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary badge-xs"}, "tiny")
40+ ]
41+ ),
42+ Yoga$dReact$dDOM$dInternal.createElementImpl(
43+ "div",
44+ {className: "flex gap-2"},
45+ [
46+ Yoga$dReact$dDOM$dInternal.createElementImpl(
47+ "button",
48+ {className: "btn "},
49+ [
50+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Inbox "),
51+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-secondary badge-sm"}, "+99")
52+ ]
53+ )
54+ ]
55+ )
56+ ]
57+)))();
58+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkBadge)({});
59+export {$$default as default, mkBadge, pure};
output-es/DaisyUI.Badge/index.jsnew file+19
@@ -0,0 +1,19 @@
1+import * as Yoga$dReact$dDOM$dHTML$dSpan from "../Yoga.React.DOM.HTML.Span/index.js";
2+const xs = "badge-xs";
3+const warning = "badge-warning";
4+const success = "badge-success";
5+const soft = "badge-soft";
6+const sm = "badge-sm";
7+const secondary = "badge-secondary";
8+const primary = "badge-primary";
9+const outline = "badge-outline";
10+const neutral = "badge-neutral";
11+const md = "badge-md";
12+const lg = "badge-lg";
13+const info = "badge-info";
14+const ghost = "badge-ghost";
15+const error = "badge-error";
16+const dash = "badge-dash";
17+const badge = color => size => () => Yoga$dReact$dDOM$dHTML$dSpan.span()()({className: "badge " + color + " " + size});
18+const accent = "badge-accent";
19+export {accent, badge, dash, error, ghost, info, lg, md, neutral, outline, primary, secondary, sm, soft, success, warning, xs};
output-es/DaisyUI.Breadcrumbs.Stories/index.jsnew file+30
@@ -0,0 +1,30 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkBreadcrumbs = /* #__PURE__ */ React$dBasic$dHooks.component("BreadcrumbsStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "breadcrumbs text-sm"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "ul",
18+ {},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Home")]),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Documents")]),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, "Add Document")
23+ ]
24+ )
25+ ]
26+ )
27+ ]
28+)))();
29+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkBreadcrumbs)({});
30+export {$$default as default, mkBreadcrumbs, pure};
output-es/DaisyUI.Breadcrumbs/index.jsnew file+9
@@ -0,0 +1,9 @@
1+import * as Yoga$dReact$dDOM$dHTML$dLi from "../Yoga.React.DOM.HTML.Li/index.js";
2+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
3+const breadcrumbs = () => kids => Yoga$dReact$dDOM$dInternal.createElementImpl(
4+ "div",
5+ {className: "breadcrumbs text-sm"},
6+ [Yoga$dReact$dDOM$dInternal.createElementImpl("ul", {}, kids)]
7+);
8+const breadcrumbItem = () => Yoga$dReact$dDOM$dHTML$dLi.li()()({});
9+export {breadcrumbItem, breadcrumbs};
output-es/DaisyUI.Button.Stories/index.jsnew file+52
@@ -0,0 +1,52 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkButton = /* #__PURE__ */ React$dBasic$dHooks.component("ButtonStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "flex flex-wrap gap-2"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "Default"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-neutral "}, "Neutral"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-primary "}, "Primary"),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-secondary "}, "Secondary"),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-accent "}, "Accent"),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-ghost "}, "Ghost"),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-link "}, "Link")
23+ ]
24+ ),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl(
26+ "div",
27+ {className: "flex flex-wrap gap-2"},
28+ [
29+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-outline "}, "Outline"),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-soft "}, "Soft"),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-dash "}, "Dash")
32+ ]
33+ ),
34+ Yoga$dReact$dDOM$dInternal.createElementImpl(
35+ "div",
36+ {className: "flex flex-wrap gap-2 items-center"},
37+ [
38+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-lg"}, "Large"),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "Normal"),
40+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-sm"}, "Small"),
41+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-xs"}, "Tiny")
42+ ]
43+ ),
44+ Yoga$dReact$dDOM$dInternal.createElementImpl(
45+ "div",
46+ {className: "flex flex-wrap gap-2"},
47+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-primary btn-wide "}, "Wide")]
48+ )
49+ ]
50+)))();
51+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkButton)({});
52+export {$$default as default, mkButton, pure};
output-es/DaisyUI.Button/index.jsnew file+55
@@ -0,0 +1,55 @@
1+import * as Yoga$dReact$dDOM$dHTML$dButton from "../Yoga.React.DOM.HTML.Button/index.js";
2+const xs = "btn-xs";
3+const wide = "btn-wide";
4+const warning = "btn-warning";
5+const success = "btn-success";
6+const square = "btn-square";
7+const soft = "btn-soft";
8+const sm = "btn-sm";
9+const secondary = "btn-secondary";
10+const primary = "btn-primary";
11+const outline = "btn-outline";
12+const noAnimation = "no-animation";
13+const neutral = "btn-neutral";
14+const md = "";
15+const link = "btn-link";
16+const lg = "btn-lg";
17+const info = "btn-info";
18+const glass = "glass";
19+const ghost = "btn-ghost";
20+const error = "btn-error";
21+const disabled = "btn-disabled";
22+const dash = "btn-dash";
23+const circle = "btn-circle";
24+const btn = color => size => () => Yoga$dReact$dDOM$dHTML$dButton.button()()({className: "btn " + color + " " + size});
25+const block = "btn-block";
26+const active = "btn-active";
27+const accent = "btn-accent";
28+export {
29+ accent,
30+ active,
31+ block,
32+ btn,
33+ circle,
34+ dash,
35+ disabled,
36+ error,
37+ ghost,
38+ glass,
39+ info,
40+ lg,
41+ link,
42+ md,
43+ neutral,
44+ noAnimation,
45+ outline,
46+ primary,
47+ secondary,
48+ sm,
49+ soft,
50+ square,
51+ success,
52+ warning,
53+ wide,
54+ xs
55+};
output-es/DaisyUI.Card.Stories/index.jsnew file+45
@@ -0,0 +1,45 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkCard = /* #__PURE__ */ React$dBasic$dHooks.component("CardStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "w-96"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "card bg-base-100 shadow-sm"},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl(
21+ "figure",
22+ {},
23+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp", alt: "Shoes"})]
24+ ),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl(
26+ "div",
27+ {className: "card-body"},
28+ [
29+ Yoga$dReact$dDOM$dInternal.createElementImpl("h2", {className: "card-title"}, "Shoes!"),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("p", {}, "If a dog chews shoes whose shoes does he choose?"),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "div",
33+ {className: "card-actions justify-end"},
34+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-primary "}, "Buy Now")]
35+ )
36+ ]
37+ )
38+ ]
39+ )
40+ ]
41+ )
42+ ]
43+)))();
44+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkCard)({});
45+export {$$default as default, mkCard, pure};
output-es/DaisyUI.Card/index.jsnew file+11
@@ -0,0 +1,11 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dH from "../Yoga.React.DOM.HTML.H/index.js";
3+const cardTitle = () => Yoga$dReact$dDOM$dHTML$dH.h2()()({className: "card-title"});
4+const cardSide = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "card card-side bg-base-100 shadow-sm"});
5+const cardDash = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "card card-dash bg-base-100 shadow-sm"});
6+const cardCompact = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "card card-compact bg-base-100 shadow-sm"});
7+const cardBordered = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "card card-border bg-base-100 shadow-sm"});
8+const cardBody = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "card-body"});
9+const cardActions = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "card-actions justify-end"});
10+const card = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "card bg-base-100 shadow-sm"});
11+export {card, cardActions, cardBody, cardBordered, cardCompact, cardDash, cardSide, cardTitle};
output-es/DaisyUI.Carousel.Stories/index.jsnew file+41
@@ -0,0 +1,41 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkCarousel = /* #__PURE__ */ React$dBasic$dHooks.component("CarouselStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "carousel carousel-center"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "carousel-item"},
19+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp", alt: "Burger"})]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "div",
23+ {className: "carousel-item"},
24+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp", alt: "Burger"})]
25+ ),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "div",
28+ {className: "carousel-item"},
29+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp", alt: "Burger"})]
30+ ),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "div",
33+ {className: "carousel-item"},
34+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/stock/photo-1494253109108-2e30c049369b.webp", alt: "Burger"})]
35+ )
36+ ]
37+ )
38+ ]
39+)))();
40+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkCarousel)({});
41+export {$$default as default, mkCarousel, pure};
output-es/DaisyUI.Carousel/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const vertical = "carousel-vertical";
3+const end = "carousel-end";
4+const center = "carousel-center";
5+const carouselItem = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "carousel-item"});
6+const carousel = modifier => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "carousel " + modifier});
7+export {carousel, carouselItem, center, end, vertical};
output-es/DaisyUI.Chat.Stories/index.jsnew file+82
@@ -0,0 +1,82 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkChat = /* #__PURE__ */ React$dBasic$dHooks.component("ChatStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-0 w-full max-w-lg"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "chat chat-start"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "chat-image avatar"},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl(
21+ "div",
22+ {className: "w-10 rounded-full"},
23+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
24+ )
25+ ]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "div",
29+ {className: "chat-header"},
30+ [
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Obi-Wan Kenobi "),
32+ Yoga$dReact$dDOM$dInternal.createElementImpl("time", {className: "text-xs opacity-50"}, "12:45")
33+ ]
34+ ),
35+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-bubble "}, "You were the Chosen One!"),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-footer opacity-50"}, "Delivered")
37+ ]
38+ ),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl(
40+ "div",
41+ {className: "chat chat-start"},
42+ [
43+ Yoga$dReact$dDOM$dInternal.createElementImpl(
44+ "div",
45+ {className: "chat-image avatar"},
46+ [
47+ Yoga$dReact$dDOM$dInternal.createElementImpl(
48+ "div",
49+ {className: "w-10 rounded-full"},
50+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
51+ )
52+ ]
53+ ),
54+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-header"}, "Obi-Wan Kenobi"),
55+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-bubble "}, "I loved you."),
56+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-footer opacity-50"}, "Seen at 12:46")
57+ ]
58+ ),
59+ Yoga$dReact$dDOM$dInternal.createElementImpl(
60+ "div",
61+ {className: "chat chat-end"},
62+ [
63+ Yoga$dReact$dDOM$dInternal.createElementImpl(
64+ "div",
65+ {className: "chat-image avatar"},
66+ [
67+ Yoga$dReact$dDOM$dInternal.createElementImpl(
68+ "div",
69+ {className: "w-10 rounded-full"},
70+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Avatar"})]
71+ )
72+ ]
73+ ),
74+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-header"}, "Anakin"),
75+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-bubble "}, "I HATE YOU!"),
76+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "chat-footer opacity-50"}, "Seen at 12:46")
77+ ]
78+ )
79+ ]
80+)))();
81+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkChat)({});
82+export {$$default as default, mkChat, pure};
output-es/DaisyUI.Chat/index.jsnew file+15
@@ -0,0 +1,15 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const warning = "chat-bubble-warning";
3+const success = "chat-bubble-success";
4+const secondary = "chat-bubble-secondary";
5+const primary = "chat-bubble-primary";
6+const info = "chat-bubble-info";
7+const error = "chat-bubble-error";
8+const chatStart = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "chat chat-start"});
9+const chatImage = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "chat-image avatar"});
10+const chatHeader = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "chat-header"});
11+const chatFooter = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "chat-footer opacity-50"});
12+const chatEnd = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "chat chat-end"});
13+const chatBubble = color => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "chat-bubble " + color});
14+const accent = "chat-bubble-accent";
15+export {accent, chatBubble, chatEnd, chatFooter, chatHeader, chatImage, chatStart, error, info, primary, secondary, success, warning};
output-es/DaisyUI.Checkbox.Stories/index.jsnew file+52
@@ -0,0 +1,52 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkCheckbox = /* #__PURE__ */ React$dBasic$dHooks.component("CheckboxStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Login options"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "label",
19+ {className: "label"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox ", checked: true}),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: ""}, "Remember me")
23+ ]
24+ )
25+ ]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "div",
29+ {className: "flex flex-wrap gap-2"},
30+ [
31+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-primary ", checked: true}),
32+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-secondary ", checked: true}),
33+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-accent ", checked: true}),
34+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-success ", checked: true}),
35+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-warning ", checked: true}),
36+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-error ", checked: true})
37+ ]
38+ ),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl(
40+ "div",
41+ {className: "flex flex-wrap gap-2 items-center"},
42+ [
43+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-primary checkbox-xs", checked: true}),
44+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-primary checkbox-sm", checked: true}),
45+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-primary checkbox-md", checked: true}),
46+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "checkbox checkbox-primary checkbox-lg", checked: true})
47+ ]
48+ )
49+ ]
50+)))();
51+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkCheckbox)({});
52+export {$$default as default, mkCheckbox, pure};
output-es/DaisyUI.Checkbox/index.jsnew file+13
@@ -0,0 +1,13 @@
1+const xs = "checkbox-xs";
2+const warning = "checkbox-warning";
3+const success = "checkbox-success";
4+const sm = "checkbox-sm";
5+const secondary = "checkbox-secondary";
6+const primary = "checkbox-primary";
7+const md = "checkbox-md";
8+const lg = "checkbox-lg";
9+const info = "checkbox-info";
10+const error = "checkbox-error";
11+const checkboxCls = color => size => "checkbox " + color + " " + size;
12+const accent = "checkbox-accent";
13+export {accent, checkboxCls, error, info, lg, md, primary, secondary, sm, success, warning, xs};
output-es/DaisyUI.Countdown.Stories/index.jsnew file+25
@@ -0,0 +1,25 @@
1+import * as Data$dInt from "../Data.Int/index.js";
2+import * as Data$dNumber from "../Data.Number/index.js";
3+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
4+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
5+import * as Type$dEquality from "../Type.Equality/index.js";
6+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
7+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
8+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
9+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
10+const valueIsSymbol = {reflectSymbol: () => "value"};
11+const mkCountdown = /* #__PURE__ */ React$dBasic$dHooks.component("CountdownStory")(props => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
12+ "div",
13+ {className: "flex flex-col gap-4 text-4xl"},
14+ [
15+ Yoga$dReact$dDOM$dInternal.createElementImpl(
16+ "span",
17+ {className: "countdown"},
18+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {style: {"--value": Data$dInt.unsafeClamp(Data$dNumber.floor(props.value))}}, [])]
19+ )
20+ ]
21+)))();
22+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(/* #__PURE__ */ YogaStories$dControls.initialValuesCons(valueIsSymbol)(YogaStories$dControls.initialValueSliderNumber)(YogaStories$dControls.initialValuesNilRowRow)()()())(/* #__PURE__ */ YogaStories$dControls.renderControlsCons(valueIsSymbol)(YogaStories$dControls.renderControlSliderNumber)(YogaStories$dControls.renderControlsNil)()())(/* #__PURE__ */ YogaStories$dControls.toParamsCons(valueIsSymbol)(YogaStories$dControls.toParamSliderNumber)(YogaStories$dControls.toParamsNil)()())(/* #__PURE__ */ YogaStories$dControls.fromParamsCons(valueIsSymbol)(YogaStories$dControls.fromParamSliderNumber)(YogaStories$dControls.fromParamsNil)()())("default")(mkCountdown)({
23+ value: {value: 42.0, min: 0.0, max: 99.0, step: 1.0}
24+});
25+export {$$default as default, mkCountdown, pure, valueIsSymbol};
output-es/DaisyUI.Countdown/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
2+const countdown = value => Yoga$dReact$dDOM$dInternal.createElementImpl(
3+ "span",
4+ {className: "countdown"},
5+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {style: {"--value": value}}, [])]
6+);
7+export {countdown};
output-es/DaisyUI.Diff.Stories/index.jsnew file+33
@@ -0,0 +1,33 @@
1+import * as DaisyUI$dDiff from "../DaisyUI.Diff/index.js";
2+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
3+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
4+import * as Type$dEquality from "../Type.Equality/index.js";
5+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
6+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
7+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
8+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
9+const mkDiff = /* #__PURE__ */ React$dBasic$dHooks.component("DiffStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
10+ "div",
11+ {className: "flex flex-col gap-4"},
12+ [
13+ Yoga$dReact$dDOM$dInternal.createElementImpl(
14+ "div",
15+ {className: "diff aspect-[16/9]"},
16+ [
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "diff-item-1"},
20+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a.webp", alt: "Daisy"})]
21+ ),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl(
23+ "div",
24+ {className: "diff-item-2"},
25+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("img", {src: "https://img.daisyui.com/images/stock/photo-1560717789-0ac7c58ac90a-blur.webp", alt: "Daisy"})]
26+ ),
27+ DaisyUI$dDiff.diffResizer
28+ ]
29+ )
30+ ]
31+)))();
32+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkDiff)({});
33+export {$$default as default, mkDiff, pure};
output-es/DaisyUI.Diff/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
3+const diffResizer = /* #__PURE__ */ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "diff-resizer"}, []);
4+const diffItem2 = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "diff-item-2"});
5+const diffItem1 = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "diff-item-1"});
6+const diff = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "diff aspect-[16/9]"});
7+export {diff, diffItem1, diffItem2, diffResizer};
output-es/DaisyUI.Divider.Stories/index.jsnew file+22
@@ -0,0 +1,22 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkDivider = /* #__PURE__ */ React$dBasic$dHooks.component("DividerStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col w-full"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "card bg-base-300 rounded-box grid h-20 place-items-center"}, "Content"),
13+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "divider"}, "OR"),
14+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "card bg-base-300 rounded-box grid h-20 place-items-center"}, "Content"),
15+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "divider divider-primary"}, "Primary"),
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "divider divider-secondary"}, "Secondary"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "divider divider-accent"}, "Accent"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "divider divider-neutral"}, "Neutral")
19+ ]
20+)))();
21+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkDivider)({});
22+export {$$default as default, mkDivider, pure};
output-es/DaisyUI.Divider/index.jsnew file+27
@@ -0,0 +1,27 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const dividerWarning = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-warning"});
3+const dividerSuccess = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-success"});
4+const dividerStart = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-start"});
5+const dividerSecondary = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-secondary"});
6+const dividerPrimary = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-primary"});
7+const dividerNeutral = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-neutral"});
8+const dividerInfo = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-info"});
9+const dividerHorizontal = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-horizontal"});
10+const dividerError = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-error"});
11+const dividerEnd = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-end"});
12+const dividerAccent = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider divider-accent"});
13+const divider = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "divider"});
14+export {
15+ divider,
16+ dividerAccent,
17+ dividerEnd,
18+ dividerError,
19+ dividerHorizontal,
20+ dividerInfo,
21+ dividerNeutral,
22+ dividerPrimary,
23+ dividerSecondary,
24+ dividerStart,
25+ dividerSuccess,
26+ dividerWarning
27+};
output-es/DaisyUI.Dock.Stories/index.jsnew file+36
@@ -0,0 +1,36 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkDock = /* #__PURE__ */ React$dBasic$dHooks.component("DockStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "relative h-48 w-full [&_.dock]:static [&_.dock]:w-full"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "dock "},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "button",
18+ {},
19+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "🏠"), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "dock-label"}, "Home")]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "button",
23+ {className: "dock-active"},
24+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "📥"), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "dock-label"}, "Inbox")]
25+ ),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "button",
28+ {},
29+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "⚙️"), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "dock-label"}, "Settings")]
30+ )
31+ ]
32+ )
33+ ]
34+)))();
35+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkDock)({});
36+export {$$default as default, mkDock, pure};
output-es/DaisyUI.Dock/index.jsnew file+13
@@ -0,0 +1,13 @@
1+import * as Yoga$dReact$dDOM$dHTML$dButton from "../Yoga.React.DOM.HTML.Button/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
3+import * as Yoga$dReact$dDOM$dHTML$dSpan from "../Yoga.React.DOM.HTML.Span/index.js";
4+const xs = "dock-xs";
5+const xl = "dock-xl";
6+const sm = "dock-sm";
7+const md = "dock-md";
8+const lg = "dock-lg";
9+const dockLabel = () => Yoga$dReact$dDOM$dHTML$dSpan.span()()({className: "dock-label"});
10+const dockItemActive = () => Yoga$dReact$dDOM$dHTML$dButton.button()()({className: "dock-active"});
11+const dockItem = () => Yoga$dReact$dDOM$dHTML$dButton.button()()({});
12+const dock = size => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "dock " + size});
13+export {dock, dockItem, dockItemActive, dockLabel, lg, md, sm, xl, xs};
output-es/DaisyUI.Drawer.Stories/index.jsnew file+42
@@ -0,0 +1,42 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkDrawer = /* #__PURE__ */ React$dBasic$dHooks.component("DrawerStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "relative h-64 overflow-hidden [&_.drawer-side]:absolute [&_.drawer-side]:h-full"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "drawer"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", id: "my-drawer", className: "drawer-toggle"}),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "drawer-content"},
20+ [Yoga$dReact$dDOM$dInternal.createElementImpl("label", {htmlFor: "my-drawer", className: "btn btn-primary drawer-button"}, "Open drawer")]
21+ ),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl(
23+ "div",
24+ {className: "drawer-side"},
25+ [
26+ Yoga$dReact$dDOM$dInternal.createElementImpl("label", {htmlFor: "my-drawer", "aria-label": "close sidebar", className: "drawer-overlay"}, []),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "ul",
29+ {className: "menu bg-base-200 text-base-content min-h-full w-80 p-4"},
30+ [
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Sidebar Item 1")]),
32+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Sidebar Item 2")])
33+ ]
34+ )
35+ ]
36+ )
37+ ]
38+ )
39+ ]
40+)))();
41+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkDrawer)({});
42+export {$$default as default, mkDrawer, pure};
output-es/DaisyUI.Drawer/index.jsnew file+8
@@ -0,0 +1,8 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const drawerToggle = "drawer-toggle";
3+const drawerSide = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "drawer-side"});
4+const drawerOverlay = "drawer-overlay";
5+const drawerEnd = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "drawer drawer-end"});
6+const drawerContent = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "drawer-content"});
7+const drawer = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "drawer"});
8+export {drawer, drawerContent, drawerEnd, drawerOverlay, drawerSide, drawerToggle};
output-es/DaisyUI.Dropdown.Stories/index.jsnew file+30
@@ -0,0 +1,30 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkDropdown = /* #__PURE__ */ React$dBasic$dHooks.component("DropdownStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex items-center justify-center p-32"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "dropdown "},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "Click"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "ul",
19+ {className: "dropdown-content menu bg-base-100 rounded-box z-10 w-52 p-2 shadow-sm", tabIndex: 0},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 1")]),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 2")])
23+ ]
24+ )
25+ ]
26+ )
27+ ]
28+)))();
29+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkDropdown)({});
30+export {$$default as default, mkDropdown, pure};
output-es/DaisyUI.Dropdown/index.jsnew file+12
@@ -0,0 +1,12 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dUl from "../Yoga.React.DOM.HTML.Ul/index.js";
3+const top = "dropdown-top";
4+const right = "dropdown-right";
5+const open = "dropdown-open";
6+const left = "dropdown-left";
7+const hover = "dropdown-hover";
8+const end = "dropdown-end";
9+const dropdownContent = () => Yoga$dReact$dDOM$dHTML$dUl.ul()()({className: "dropdown-content menu bg-base-100 rounded-box z-10 w-52 p-2 shadow-sm", tabIndex: 0});
10+const dropdown = position => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "dropdown " + position});
11+const bottom = "dropdown-bottom";
12+export {bottom, dropdown, dropdownContent, end, hover, left, open, right, top};
output-es/DaisyUI.Fab.Stories/index.jsnew file+25
@@ -0,0 +1,25 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkFab = /* #__PURE__ */ React$dBasic$dHooks.component("FabStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "relative h-64 w-full [&_.fab]:static"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fab"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {tabIndex: 0, role: "button", className: "btn btn-lg btn-circle btn-primary"}, "F"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-lg btn-circle"}, "A"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-lg btn-circle"}, "B"),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-lg btn-circle"}, "C")
20+ ]
21+ )
22+ ]
23+)))();
24+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkFab)({});
25+export {$$default as default, mkFab, pure};
output-es/DaisyUI.Fab/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Yoga$dReact$dDOM$dHTML$dButton from "../Yoga.React.DOM.HTML.Button/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
3+const fabMainAction = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "fab-main-action", tabIndex: 0, role: "button"});
4+const fabFlower = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "fab fab-flower"});
5+const fabClose = () => Yoga$dReact$dDOM$dHTML$dButton.button()()({className: "fab-close btn btn-circle"});
6+const fab = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "fab"});
7+export {fab, fabClose, fabFlower, fabMainAction};
output-es/DaisyUI.FileInput.Stories/index.jsnew file+26
@@ -0,0 +1,26 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkFileInput = /* #__PURE__ */ React$dBasic$dHooks.component("FileInputStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-xs"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Pick a file"),
17+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "file", className: "file-input "}),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("label", {className: "label"}, "Max size 2MB")
19+ ]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "file", className: "file-input file-input-primary "}),
22+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "file", className: "file-input file-input-ghost file-input-sm"})
23+ ]
24+)))();
25+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkFileInput)({});
26+export {$$default as default, mkFileInput, pure};
output-es/DaisyUI.FileInput/index.jsnew file+15
@@ -0,0 +1,15 @@
1+const xs = "file-input-xs";
2+const warning = "file-input-warning";
3+const success = "file-input-success";
4+const sm = "file-input-sm";
5+const secondary = "file-input-secondary";
6+const primary = "file-input-primary";
7+const md = "file-input-md";
8+const lg = "file-input-lg";
9+const info = "file-input-info";
10+const ghost = "file-input-ghost";
11+const fileInputCls = color => size => "file-input " + color + " " + size;
12+const error = "file-input-error";
13+const bordered = "file-input-bordered";
14+const accent = "file-input-accent";
15+export {accent, bordered, error, fileInputCls, ghost, info, lg, md, primary, secondary, sm, success, warning, xs};
output-es/DaisyUI.Filter.Stories/index.jsnew file+26
@@ -0,0 +1,26 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkFilter = /* #__PURE__ */ React$dBasic$dHooks.component("FilterStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "filter"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "metaframeworks", className: "btn filter-reset", "aria-label": "All"}),
17+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "metaframeworks", className: "btn", "aria-label": "Sveltekit"}),
18+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "metaframeworks", className: "btn", "aria-label": "Nuxt"}),
19+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "metaframeworks", className: "btn", "aria-label": "Next.js"}),
20+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "metaframeworks", className: "btn", "aria-label": "Remix"})
21+ ]
22+ )
23+ ]
24+)))();
25+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkFilter)({});
26+export {$$default as default, mkFilter, pure};
output-es/DaisyUI.Filter/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const filterReset = "filter-reset";
3+const filter = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "filter"});
4+export {filter, filterReset};
output-es/DaisyUI.Footer.Stories/index.jsnew file+53
@@ -0,0 +1,53 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkFooter = /* #__PURE__ */ React$dBasic$dHooks.component("FooterStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "footer bg-base-200 text-base-content p-10"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "nav",
18+ {},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "footer-title"}, "Services"),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Branding"),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Design"),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Marketing"),
24+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Advertisement")
25+ ]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "nav",
29+ {},
30+ [
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "footer-title"}, "Company"),
32+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "About us"),
33+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Contact"),
34+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Jobs"),
35+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Press kit")
36+ ]
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl(
39+ "nav",
40+ {},
41+ [
42+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "footer-title"}, "Legal"),
43+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Terms of use"),
44+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Privacy policy"),
45+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "Cookie policy")
46+ ]
47+ )
48+ ]
49+ )
50+ ]
51+)))();
52+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkFooter)({});
53+export {$$default as default, mkFooter, pure};
output-es/DaisyUI.Footer/index.jsnew file+8
@@ -0,0 +1,8 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dNav from "../Yoga.React.DOM.HTML.Nav/index.js";
3+import * as Yoga$dReact$dDOM$dHTML$dSpan from "../Yoga.React.DOM.HTML.Span/index.js";
4+const footerTitle = () => Yoga$dReact$dDOM$dHTML$dSpan.span()()({className: "footer-title"});
5+const footerNav = () => Yoga$dReact$dDOM$dHTML$dNav.nav()()({});
6+const footerCenter = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "footer footer-center bg-base-200 text-base-content p-10"});
7+const footer = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "footer bg-base-200 text-base-content p-10"});
8+export {footer, footerCenter, footerNav, footerTitle};
output-es/DaisyUI.FormControl.Stories/index.jsnew file+27
@@ -0,0 +1,27 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkFormControl = /* #__PURE__ */ React$dBasic$dHooks.component("FormControlStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-xs"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "User details"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("label", {className: "label"}, "Name"),
18+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input ", placeholder: "Name"}),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("label", {className: "label"}, "Email"),
20+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "email", className: "input ", placeholder: "Email"}),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("label", {className: "label"}, "Optional")
22+ ]
23+ )
24+ ]
25+)))();
26+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkFormControl)({});
27+export {$$default as default, mkFormControl, pure};
output-es/DaisyUI.FormControl/index.jsnew file+16
@@ -0,0 +1,16 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
3+const labelTextAlt = () => kids => Yoga$dReact$dDOM$dInternal.createElementImpl(
4+ "label",
5+ {className: "label"},
6+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "label-text-alt"}, kids)]
7+);
8+const labelText = () => kids => Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "label",
10+ {className: "label"},
11+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "label-text"}, kids)]
12+);
13+const formControl = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "form-control w-full"});
14+const fieldsetLegend = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "fieldset-legend"});
15+const fieldset = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "fieldset"});
16+export {fieldset, fieldsetLegend, formControl, labelText, labelTextAlt};
output-es/DaisyUI.Hero.Stories/index.jsnew file+40
@@ -0,0 +1,40 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkHero = /* #__PURE__ */ React$dBasic$dHooks.component("HeroStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "[&_.hero]:min-h-[24rem]"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "hero min-h-screen"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "hero-content text-center"},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl(
21+ "div",
22+ {className: "max-w-md"},
23+ [
24+ Yoga$dReact$dDOM$dInternal.createElementImpl("h1", {className: "text-5xl font-bold"}, "Hello there"),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl(
26+ "p",
27+ {className: "py-6"},
28+ "Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi."
29+ ),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-primary "}, "Get Started")
31+ ]
32+ )
33+ ]
34+ )
35+ ]
36+ )
37+ ]
38+)))();
39+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkHero)({});
40+export {$$default as default, mkHero, pure};
output-es/DaisyUI.Hero/index.jsnew file+5
@@ -0,0 +1,5 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const heroOverlay = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "hero-overlay bg-opacity-60"});
3+const heroContent = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "hero-content text-center"});
4+const hero = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "hero min-h-screen"});
5+export {hero, heroContent, heroOverlay};
output-es/DaisyUI.Indicator.Stories/index.jsnew file+51
@@ -0,0 +1,51 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkIndicator = /* #__PURE__ */ React$dBasic$dHooks.component("IndicatorStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-8 items-center"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "indicator"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "span",
18+ {className: "indicator-item "},
19+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-secondary "}, "99+")]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "inbox")
22+ ]
23+ ),
24+ Yoga$dReact$dDOM$dInternal.createElementImpl(
25+ "div",
26+ {className: "indicator"},
27+ [
28+ Yoga$dReact$dDOM$dInternal.createElementImpl(
29+ "span",
30+ {className: "indicator-item "},
31+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-primary "}, "new")]
32+ ),
33+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", placeholder: "Search...", className: "input input-bordered"})
34+ ]
35+ ),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl(
37+ "div",
38+ {className: "indicator"},
39+ [
40+ Yoga$dReact$dDOM$dInternal.createElementImpl(
41+ "span",
42+ {className: "indicator-item indicator-bottom"},
43+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "badge badge-secondary "}, "new")]
44+ ),
45+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "bg-base-300 grid h-32 w-32 place-items-center rounded-box"}, "content")
46+ ]
47+ )
48+ ]
49+)))();
50+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkIndicator)({});
51+export {$$default as default, mkIndicator, pure};
output-es/DaisyUI.Indicator/index.jsnew file+10
@@ -0,0 +1,10 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dSpan from "../Yoga.React.DOM.HTML.Span/index.js";
3+const indicatorTop = "indicator-top";
4+const indicatorStart = "indicator-start";
5+const indicatorItem = position => () => Yoga$dReact$dDOM$dHTML$dSpan.span()()({className: "indicator-item " + position});
6+const indicatorEnd = "indicator-end";
7+const indicatorCenter = "indicator-center";
8+const indicatorBottom = "indicator-bottom";
9+const indicator = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "indicator"});
10+export {indicator, indicatorBottom, indicatorCenter, indicatorEnd, indicatorItem, indicatorStart, indicatorTop};
output-es/DaisyUI.Input.Stories/index.jsnew file+52
@@ -0,0 +1,52 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkInput = /* #__PURE__ */ React$dBasic$dHooks.component("InputStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-xs"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "What is your name?"),
17+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input ", placeholder: "Type here"}),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("label", {className: "label"}, "Optional")
19+ ]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "label",
23+ {className: "floating-label"},
24+ [
25+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "email", className: "input input-bordered ", placeholder: "alex@example.com"}),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "label"}, "Email")
27+ ]
28+ ),
29+ Yoga$dReact$dDOM$dInternal.createElementImpl(
30+ "div",
31+ {className: "flex flex-wrap gap-2"},
32+ [
33+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input input-primary ", placeholder: "Primary"}),
34+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input input-secondary ", placeholder: "Secondary"}),
35+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input input-accent ", placeholder: "Accent"})
36+ ]
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl(
39+ "div",
40+ {className: "flex flex-wrap gap-2 items-center"},
41+ [
42+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input input-lg", placeholder: "Large"}),
43+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input ", placeholder: "Normal"}),
44+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input input-sm", placeholder: "Small"}),
45+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input input-xs", placeholder: "Tiny"})
46+ ]
47+ ),
48+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input w-full", disabled: true, placeholder: "Disabled"})
49+ ]
50+)))();
51+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkInput)({});
52+export {$$default as default, mkInput, pure};
output-es/DaisyUI.Input/index.jsnew file+15
@@ -0,0 +1,15 @@
1+const xs = "input-xs";
2+const warning = "input-warning";
3+const success = "input-success";
4+const sm = "input-sm";
5+const secondary = "input-secondary";
6+const primary = "input-primary";
7+const md = "input-md";
8+const lg = "input-lg";
9+const inputCls = color => size => "input " + color + " " + size;
10+const info = "input-info";
11+const ghost = "input-ghost";
12+const error = "input-error";
13+const bordered = "input-bordered";
14+const accent = "input-accent";
15+export {accent, bordered, error, ghost, info, inputCls, lg, md, primary, secondary, sm, success, warning, xs};
output-es/DaisyUI.Kbd.Stories/index.jsnew file+46
@@ -0,0 +1,46 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkKbd = /* #__PURE__ */ React$dBasic$dHooks.component("KbdStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6 items-center"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "flex gap-1"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd kbd-lg"}, "Ctrl"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "+"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd kbd-lg"}, "Shift"),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "+"),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd kbd-lg"}, "Del")
21+ ]
22+ ),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl(
24+ "div",
25+ {className: "flex gap-1"},
26+ [
27+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd "}, "⌘"),
28+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd "}, "⌥"),
29+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd "}, "⇧"),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd "}, "⌃")
31+ ]
32+ ),
33+ Yoga$dReact$dDOM$dInternal.createElementImpl(
34+ "div",
35+ {className: "flex gap-1 items-center"},
36+ [
37+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd kbd-lg"}, "large"),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd "}, "normal"),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd kbd-sm"}, "small"),
40+ Yoga$dReact$dDOM$dInternal.createElementImpl("kbd", {className: "kbd kbd-xs"}, "tiny")
41+ ]
42+ )
43+ ]
44+)))();
45+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkKbd)({});
46+export {$$default as default, mkKbd, pure};
output-es/DaisyUI.Kbd/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Yoga$dReact$dDOM$dHTML$dKbd from "../Yoga.React.DOM.HTML.Kbd/index.js";
2+const xs = "kbd-xs";
3+const sm = "kbd-sm";
4+const md = "kbd-md";
5+const lg = "kbd-lg";
6+const kbdKey = size => () => Yoga$dReact$dDOM$dHTML$dKbd.kbd()()({className: "kbd " + size});
7+export {kbdKey, lg, md, sm, xs};
output-es/DaisyUI.Label.Stories/index.jsnew file+31
@@ -0,0 +1,31 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkLabel = /* #__PURE__ */ React$dBasic$dHooks.component("LabelStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-xs"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "label",
14+ {className: "floating-label"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input ", placeholder: " "}),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "label"}, "Name")
18+ ]
19+ ),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl(
21+ "label",
22+ {className: "floating-label"},
23+ [
24+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "email", className: "input input-bordered ", placeholder: " "}),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "label"}, "Email")
26+ ]
27+ )
28+ ]
29+)))();
30+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkLabel)({});
31+export {$$default as default, mkLabel, pure};
output-es/DaisyUI.Label/index.jsnew file+6
@@ -0,0 +1,6 @@
1+import * as Yoga$dReact$dDOM$dHTML$dLabel from "../Yoga.React.DOM.HTML.Label/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dSpan from "../Yoga.React.DOM.HTML.Span/index.js";
3+const labelSpan = () => Yoga$dReact$dDOM$dHTML$dSpan.span()()({className: "label"});
4+const labelCls = "label";
5+const floatingLabel = () => Yoga$dReact$dDOM$dHTML$dLabel.label()()({className: "floating-label"});
6+export {floatingLabel, labelCls, labelSpan};
output-es/DaisyUI.Link.Stories/index.jsnew file+25
@@ -0,0 +1,25 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkLink = /* #__PURE__ */ React$dBasic$dHooks.component("LinkStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-2"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link "}, "I'm a simple link"),
13+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-primary"}, "I'm a simple link"),
14+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-secondary"}, "I'm a simple link"),
15+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-accent"}, "I'm a simple link"),
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-neutral"}, "I'm a simple link"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-success"}, "I'm a simple link"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-info"}, "I'm a simple link"),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-warning"}, "I'm a simple link"),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-error"}, "I'm a simple link"),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "link link-hover"}, "I'm a simple link")
22+ ]
23+)))();
24+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkLink)({});
25+export {$$default as default, mkLink, pure};
output-es/DaisyUI.Link/index.jsnew file+11
@@ -0,0 +1,11 @@
1+const warning = "link-warning";
2+const success = "link-success";
3+const secondary = "link-secondary";
4+const primary = "link-primary";
5+const neutral = "link-neutral";
6+const linkCls = color => "link " + color;
7+const info = "link-info";
8+const hover = "link-hover";
9+const error = "link-error";
10+const accent = "link-accent";
11+export {accent, error, hover, info, linkCls, neutral, primary, secondary, success, warning};
output-es/DaisyUI.List.Stories/index.jsnew file+99
@@ -0,0 +1,99 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkList = /* #__PURE__ */ React$dBasic$dHooks.component("ListStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "w-full max-w-md"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "ul",
14+ {className: "list bg-base-100 rounded-box shadow-md"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "li",
18+ {className: "list-row"},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "text-4xl font-thin opacity-30 tabular-nums"}, "01"),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "div",
23+ {},
24+ [
25+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
26+ "img",
27+ {className: "size-10 rounded-box", src: "https://img.daisyui.com/images/profile/demo/1@94.webp", alt: "Song"}
28+ )
29+ ]
30+ ),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "div",
33+ {className: "list-col-grow"},
34+ [
35+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Dio"),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "text-xs uppercase font-semibold opacity-60"}, "Ronnie James Dio")
37+ ]
38+ ),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl("p", {className: "font-mono opacity-60"}, "3:46")
40+ ]
41+ ),
42+ Yoga$dReact$dDOM$dInternal.createElementImpl(
43+ "li",
44+ {className: "list-row"},
45+ [
46+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "text-4xl font-thin opacity-30 tabular-nums"}, "02"),
47+ Yoga$dReact$dDOM$dInternal.createElementImpl(
48+ "div",
49+ {},
50+ [
51+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
52+ "img",
53+ {className: "size-10 rounded-box", src: "https://img.daisyui.com/images/profile/demo/2@94.webp", alt: "Song"}
54+ )
55+ ]
56+ ),
57+ Yoga$dReact$dDOM$dInternal.createElementImpl(
58+ "div",
59+ {className: "list-col-grow"},
60+ [
61+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Move to the city"),
62+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "text-xs uppercase font-semibold opacity-60"}, "Slightly Stoopid")
63+ ]
64+ ),
65+ Yoga$dReact$dDOM$dInternal.createElementImpl("p", {className: "font-mono opacity-60"}, "4:02")
66+ ]
67+ ),
68+ Yoga$dReact$dDOM$dInternal.createElementImpl(
69+ "li",
70+ {className: "list-row"},
71+ [
72+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "text-4xl font-thin opacity-30 tabular-nums"}, "03"),
73+ Yoga$dReact$dDOM$dInternal.createElementImpl(
74+ "div",
75+ {},
76+ [
77+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
78+ "img",
79+ {className: "size-10 rounded-box", src: "https://img.daisyui.com/images/profile/demo/3@94.webp", alt: "Song"}
80+ )
81+ ]
82+ ),
83+ Yoga$dReact$dDOM$dInternal.createElementImpl(
84+ "div",
85+ {className: "list-col-grow"},
86+ [
87+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Galvanize"),
88+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "text-xs uppercase font-semibold opacity-60"}, "Chemical Brothers")
89+ ]
90+ ),
91+ Yoga$dReact$dDOM$dInternal.createElementImpl("p", {className: "font-mono opacity-60"}, "4:38")
92+ ]
93+ )
94+ ]
95+ )
96+ ]
97+)))();
98+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkList)({});
99+export {$$default as default, mkList, pure};
output-es/DaisyUI.List/index.jsnew file+8
@@ -0,0 +1,8 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dLi from "../Yoga.React.DOM.HTML.Li/index.js";
3+import * as Yoga$dReact$dDOM$dHTML$dUl from "../Yoga.React.DOM.HTML.Ul/index.js";
4+const listRow = () => Yoga$dReact$dDOM$dHTML$dLi.li()()({className: "list-row"});
5+const listColWrap = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "list-col-wrap"});
6+const listColGrow = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "list-col-grow"});
7+const list = () => Yoga$dReact$dDOM$dHTML$dUl.ul()()({className: "list bg-base-100 rounded-box shadow-md"});
8+export {list, listColGrow, listColWrap, listRow};
output-es/DaisyUI.Loading.Stories/index.jsnew file+37
@@ -0,0 +1,37 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkLoading = /* #__PURE__ */ React$dBasic$dHooks.component("LoadingStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6 items-center"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "flex gap-4"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-spinner loading-lg"}, []),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-dots loading-lg"}, []),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-ring loading-lg"}, []),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-ball loading-lg"}, []),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-bars loading-lg"}, []),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-infinity loading-lg"}, [])
22+ ]
23+ ),
24+ Yoga$dReact$dDOM$dInternal.createElementImpl(
25+ "div",
26+ {className: "flex gap-4 items-center"},
27+ [
28+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-spinner loading-xs"}, []),
29+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-spinner loading-sm"}, []),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-spinner loading-md"}, []),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading loading-spinner loading-lg"}, [])
32+ ]
33+ )
34+ ]
35+)))();
36+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkLoading)({});
37+export {$$default as default, mkLoading, pure};
output-es/DaisyUI.Loading/index.jsnew file+13
@@ -0,0 +1,13 @@
1+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
2+const xs = "loading-xs";
3+const spinner = "loading-spinner";
4+const sm = "loading-sm";
5+const ring = "loading-ring";
6+const md = "loading-md";
7+const loading = variant => size => Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "loading " + variant + " " + size}, []);
8+const lg = "loading-lg";
9+const infinity = "loading-infinity";
10+const dots = "loading-dots";
11+const bars = "loading-bars";
12+const ball = "loading-ball";
13+export {ball, bars, dots, infinity, lg, loading, md, ring, sm, spinner, xs};
output-es/DaisyUI.Mask.Stories/index.jsnew file+55
@@ -0,0 +1,55 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkMask = /* #__PURE__ */ React$dBasic$dHooks.component("MaskStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-wrap gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
13+ "img",
14+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-squircle w-20", alt: "Squircle"}
15+ ),
16+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
17+ "img",
18+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-heart w-20", alt: "Heart"}
19+ ),
20+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
21+ "img",
22+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-hexagon w-20", alt: "Hexagon"}
23+ ),
24+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
25+ "img",
26+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-hexagon-2 w-20", alt: "Hexagon2"}
27+ ),
28+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
29+ "img",
30+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-decagon w-20", alt: "Decagon"}
31+ ),
32+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
33+ "img",
34+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-pentagon w-20", alt: "Pentagon"}
35+ ),
36+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
37+ "img",
38+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-diamond w-20", alt: "Diamond"}
39+ ),
40+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
41+ "img",
42+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-circle w-20", alt: "Circle"}
43+ ),
44+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
45+ "img",
46+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-star w-20", alt: "Star"}
47+ ),
48+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
49+ "img",
50+ {src: "https://img.daisyui.com/images/stock/photo-1567653418876-5bb0e566e1c2.webp", className: "mask mask-triangle w-20", alt: "Triangle"}
51+ )
52+ ]
53+)))();
54+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkMask)({});
55+export {$$default as default, mkMask, pure};
output-es/DaisyUI.Mask/index.jsnew file+46
@@ -0,0 +1,46 @@
1+const triangle4 = "mask-triangle-4";
2+const triangle3 = "mask-triangle-3";
3+const triangle2 = "mask-triangle-2";
4+const triangle = "mask-triangle";
5+const star2 = "mask-star-2";
6+const star = "mask-star";
7+const squircle = "mask-squircle";
8+const square = "mask-square";
9+const pentagon = "mask-pentagon";
10+const parallelogram4 = "mask-parallelogram-4";
11+const parallelogram3 = "mask-parallelogram-3";
12+const parallelogram2 = "mask-parallelogram-2";
13+const parallelogram = "mask-parallelogram";
14+const maskCls = shape => "mask " + shape;
15+const hexagon2 = "mask-hexagon-2";
16+const hexagon = "mask-hexagon";
17+const heart = "mask-heart";
18+const half2 = "mask-half-2";
19+const half1 = "mask-half-1";
20+const diamond = "mask-diamond";
21+const decagon = "mask-decagon";
22+const circle = "mask-circle";
23+export {
24+ circle,
25+ decagon,
26+ diamond,
27+ half1,
28+ half2,
29+ heart,
30+ hexagon,
31+ hexagon2,
32+ maskCls,
33+ parallelogram,
34+ parallelogram2,
35+ parallelogram3,
36+ parallelogram4,
37+ pentagon,
38+ square,
39+ squircle,
40+ star,
41+ star2,
42+ triangle,
43+ triangle2,
44+ triangle3,
45+ triangle4
46+};
output-es/DaisyUI.Menu.Stories/index.jsnew file+60
@@ -0,0 +1,60 @@
1+import * as DaisyUI$dMenu from "../DaisyUI.Menu/index.js";
2+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
3+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
4+import * as Type$dEquality from "../Type.Equality/index.js";
5+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
6+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
7+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
8+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
9+const mkMenu = /* #__PURE__ */ React$dBasic$dHooks.component("MenuStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
10+ "div",
11+ {className: "flex flex-wrap gap-4"},
12+ [
13+ Yoga$dReact$dDOM$dInternal.createElementImpl(
14+ "div",
15+ {className: "w-56"},
16+ [
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "ul",
19+ {className: "menu bg-base-200 rounded-box"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 1")]),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 2")]),
23+ DaisyUI$dMenu.menuSub()("Parent")([
24+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Submenu 1")]),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Submenu 2")])
26+ ]),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 3")])
28+ ]
29+ )
30+ ]
31+ ),
32+ Yoga$dReact$dDOM$dInternal.createElementImpl(
33+ "div",
34+ {className: "w-56"},
35+ [
36+ Yoga$dReact$dDOM$dInternal.createElementImpl(
37+ "ul",
38+ {className: "menu bg-base-200 rounded-box"},
39+ [
40+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "menu-title"}, "Title"),
41+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 1")]),
42+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "active"}, "Item 2")]),
43+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 3")])
44+ ]
45+ )
46+ ]
47+ ),
48+ Yoga$dReact$dDOM$dInternal.createElementImpl(
49+ "ul",
50+ {className: "menu menu-horizontal bg-base-200 rounded-box"},
51+ [
52+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 1")]),
53+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 2")]),
54+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {}, "Item 3")])
55+ ]
56+ )
57+ ]
58+)))();
59+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkMenu)({});
60+export {$$default as default, mkMenu, pure};
output-es/DaisyUI.Menu/index.jsnew file+28
@@ -0,0 +1,28 @@
1+import * as Yoga$dReact$dDOM$dHTML$dLi from "../Yoga.React.DOM.HTML.Li/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dUl from "../Yoga.React.DOM.HTML.Ul/index.js";
3+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
4+const xs = "menu-xs";
5+const sm = "menu-sm";
6+const menuTitle = () => Yoga$dReact$dDOM$dHTML$dLi.li()()({className: "menu-title"});
7+const menuSub = () => title => kids => Yoga$dReact$dDOM$dInternal.createElementImpl(
8+ "li",
9+ {},
10+ [
11+ Yoga$dReact$dDOM$dInternal.createElementImpl(
12+ "details",
13+ {},
14+ [
15+ Yoga$dReact$dDOM$dInternal.createElementImpl("summary", {}, Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, title)),
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("ul", {}, kids)
17+ ]
18+ )
19+ ]
20+);
21+const menuItem = () => Yoga$dReact$dDOM$dHTML$dLi.li()()({});
22+const menuHorizontal = size => () => Yoga$dReact$dDOM$dHTML$dUl.ul()()({className: "menu menu-horizontal " + size});
23+const menuDisabled = () => Yoga$dReact$dDOM$dHTML$dLi.li()()({className: "disabled"});
24+const menuActive = () => Yoga$dReact$dDOM$dHTML$dLi.li()()({className: "active"});
25+const menu = size => () => Yoga$dReact$dDOM$dHTML$dUl.ul()()({className: "menu " + size});
26+const md = "menu-md";
27+const lg = "menu-lg";
28+export {lg, md, menu, menuActive, menuDisabled, menuHorizontal, menuItem, menuSub, menuTitle, sm, xs};
output-es/DaisyUI.MockupBrowser.Stories/index.jsnew file+21
@@ -0,0 +1,21 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkMockupBrowser = /* #__PURE__ */ React$dBasic$dHooks.component("MockupBrowserStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "mockup-browser border-base-300 border"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "mockup-browser-toolbar"},
15+ [Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "input"}, "https://daisyui.com")]
16+ ),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "grid place-content-center border-t border-base-300 h-80"}, "Hello!")
18+ ]
19+)))();
20+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkMockupBrowser)({});
21+export {$$default as default, mkMockupBrowser, pure};
output-es/DaisyUI.MockupBrowser/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const mockupBrowserToolbar = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "mockup-browser-toolbar"});
3+const mockupBrowser = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "mockup-browser border-base-300 border"});
4+export {mockupBrowser, mockupBrowserToolbar};
output-es/DaisyUI.MockupCode.Stories/index.jsnew file+41
@@ -0,0 +1,41 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkMockupCode = /* #__PURE__ */ React$dBasic$dHooks.component("MockupCodeStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "mockup-code"},
15+ [Yoga$dReact$dDOM$dInternal.createElementImpl("pre", {"data-prefix": "$"}, [Yoga$dReact$dDOM$dInternal.createElementImpl("code", {}, "npm i daisyui")])]
16+ ),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "mockup-code"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("pre", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("code", {}, "npm i daisyui")]),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("pre", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("code", {}, "installing...")]),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("pre", {}, [Yoga$dReact$dDOM$dInternal.createElementImpl("code", {}, "Done!")])
24+ ]
25+ ),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "div",
28+ {className: "mockup-code"},
29+ [
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("pre", {"data-prefix": "~"}, [Yoga$dReact$dDOM$dInternal.createElementImpl("code", {}, "Downloading...")]),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "pre",
33+ {"data-prefix": ""},
34+ [Yoga$dReact$dDOM$dInternal.createElementImpl("code", {}, Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "text-warning"}, "Error!"))]
35+ )
36+ ]
37+ )
38+ ]
39+)))();
40+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkMockupCode)({});
41+export {$$default as default, mkMockupCode, pure};
output-es/DaisyUI.MockupCode/index.jsnew file+9
@@ -0,0 +1,9 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
3+const mockupCode = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "mockup-code"});
4+const codeLine = prefix => () => kids => Yoga$dReact$dDOM$dInternal.createElementImpl(
5+ "pre",
6+ {"data-prefix": prefix},
7+ [Yoga$dReact$dDOM$dInternal.createElementImpl("code", {}, kids)]
8+);
9+export {codeLine, mockupCode};
output-es/DaisyUI.MockupPhone.Stories/index.jsnew file+13
@@ -0,0 +1,13 @@
1+import * as DaisyUI$dMockupPhone from "../DaisyUI.MockupPhone/index.js";
2+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
3+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
4+import * as Type$dEquality from "../Type.Equality/index.js";
5+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
6+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
7+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
8+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
9+const mkMockupPhone = /* #__PURE__ */ React$dBasic$dHooks.component("MockupPhoneStory")(v => pure(DaisyUI$dMockupPhone.mockupPhone()([
10+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "grid place-content-center bg-neutral-900 text-white h-80"}, "Hi.")
11+])))();
12+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkMockupPhone)({});
13+export {$$default as default, mkMockupPhone, pure};
output-es/DaisyUI.MockupPhone/index.jsnew file+10
@@ -0,0 +1,10 @@
1+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
2+const mockupPhone = () => kids => Yoga$dReact$dDOM$dInternal.createElementImpl(
3+ "div",
4+ {className: "mockup-phone"},
5+ [
6+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "mockup-phone-camera"}, []),
7+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "mockup-phone-display"}, kids)
8+ ]
9+);
10+export {mockupPhone};
output-es/DaisyUI.MockupWindow.Stories/index.jsnew file+14
@@ -0,0 +1,14 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkMockupWindow = /* #__PURE__ */ React$dBasic$dHooks.component("MockupWindowStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "mockup-window border-base-300 border"},
11+ [Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "grid place-content-center border-t border-base-300 h-80"}, "Hello!")]
12+)))();
13+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkMockupWindow)({});
14+export {$$default as default, mkMockupWindow, pure};
output-es/DaisyUI.MockupWindow/index.jsnew file+3
@@ -0,0 +1,3 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const mockupWindow = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "mockup-window border-base-300 border"});
3+export {mockupWindow};
output-es/DaisyUI.Modal.Stories/index.jsnew file+28
@@ -0,0 +1,28 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkModal = /* #__PURE__ */ React$dBasic$dHooks.component("ModalStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "modal-box"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("h3", {className: "text-lg font-bold"}, "Hello!"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("p", {className: "py-4"}, "Press ESC key or click the button below to close"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl(
19+ "div",
20+ {className: "modal-action"},
21+ [Yoga$dReact$dDOM$dInternal.createElementImpl("form", {method: "dialog"}, [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "Close")])]
22+ )
23+ ]
24+ )
25+ ]
26+)))();
27+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkModal)({});
28+export {$$default as default, mkModal, pure};
output-es/DaisyUI.Modal/foreign.jsnew file+7
@@ -0,0 +1,7 @@
1+export const showModalImpl = (dialog) => () => {
2+ dialog.showModal();
3+};
4+
5+export const closeImpl = (dialog) => () => {
6+ dialog.close();
7+};
output-es/DaisyUI.Modal/index.jsnew file+13
@@ -0,0 +1,13 @@
1+import * as Effect$dUncurried from "../Effect.Uncurried/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
3+import {closeImpl, showModalImpl} from "./foreign.js";
4+const showModal = /* #__PURE__ */ Effect$dUncurried.runEffectFn1(showModalImpl);
5+const modalTop = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "modal-top"});
6+const modalMiddle = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "modal-middle"});
7+const modalBox = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "modal-box"});
8+const modalBottom = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "modal-bottom"});
9+const modalBackdrop = "modal-backdrop";
10+const modalAction = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "modal-action"});
11+const closeModal = /* #__PURE__ */ Effect$dUncurried.runEffectFn1(closeImpl);
12+export {closeModal, modalAction, modalBackdrop, modalBottom, modalBox, modalMiddle, modalTop, showModal};
13+export * from "./foreign.js";
output-es/DaisyUI.Navbar.Stories/index.jsnew file+57
@@ -0,0 +1,57 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkNavbar = /* #__PURE__ */ React$dBasic$dHooks.component("NavbarStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "navbar bg-base-100"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "navbar-start"},
19+ [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "btn btn-ghost text-xl"}, "daisyUI")]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "navbar-center"}, []),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl(
23+ "div",
24+ {className: "navbar-end"},
25+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-ghost "}, "Button")]
26+ )
27+ ]
28+ ),
29+ Yoga$dReact$dDOM$dInternal.createElementImpl(
30+ "div",
31+ {className: "navbar bg-base-100"},
32+ [
33+ Yoga$dReact$dDOM$dInternal.createElementImpl(
34+ "div",
35+ {className: "navbar-start"},
36+ [Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "btn btn-ghost text-xl"}, "daisyUI")]
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl(
39+ "div",
40+ {className: "navbar-center"},
41+ [
42+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "btn btn-ghost"}, "Home"),
43+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "btn btn-ghost"}, "About"),
44+ Yoga$dReact$dDOM$dInternal.createElementImpl("a", {className: "btn btn-ghost"}, "Contact")
45+ ]
46+ ),
47+ Yoga$dReact$dDOM$dInternal.createElementImpl(
48+ "div",
49+ {className: "navbar-end"},
50+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-primary "}, "Get Started")]
51+ )
52+ ]
53+ )
54+ ]
55+)))();
56+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkNavbar)({});
57+export {$$default as default, mkNavbar, pure};
output-es/DaisyUI.Navbar/index.jsnew file+6
@@ -0,0 +1,6 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const navbarStart = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "navbar-start"});
3+const navbarEnd = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "navbar-end"});
4+const navbarCenter = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "navbar-center"});
5+const navbar = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "navbar bg-base-100"});
6+export {navbar, navbarCenter, navbarEnd, navbarStart};
output-es/DaisyUI.Pagination.Stories/index.jsnew file+34
@@ -0,0 +1,34 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkPagination = /* #__PURE__ */ React$dBasic$dHooks.component("PaginationStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "join"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn join-item"}, "1"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-active join-item"}, "2"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn join-item"}, "3"),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn join-item"}, "4")
20+ ]
21+ ),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl(
23+ "div",
24+ {className: "join"},
25+ [
26+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn join-item"}, "«"),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn join-item"}, "Page 22"),
28+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn join-item"}, "»")
29+ ]
30+ )
31+ ]
32+)))();
33+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkPagination)({});
34+export {$$default as default, mkPagination, pure};
output-es/DaisyUI.Pagination/index.jsnew file+5
@@ -0,0 +1,5 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const joinVertical = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "join join-vertical"});
3+const joinItem = "join-item";
4+const join = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "join"});
5+export {join, joinItem, joinVertical};
output-es/DaisyUI.Progress.Stories/index.jsnew file+27
@@ -0,0 +1,27 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkProgress = /* #__PURE__ */ React$dBasic$dHooks.component("ProgressStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-56"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress ", value: "0", max: "100"}, ""),
13+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress ", value: "10", max: "100"}, ""),
14+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress ", value: "40", max: "100"}, ""),
15+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress ", value: "70", max: "100"}, ""),
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress ", value: "100", max: "100"}, ""),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress progress-primary", value: "56", max: "100"}, ""),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress progress-secondary", value: "56", max: "100"}, ""),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress progress-accent", value: "56", max: "100"}, ""),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress progress-info", value: "56", max: "100"}, ""),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress progress-success", value: "56", max: "100"}, ""),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress progress-warning", value: "56", max: "100"}, ""),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("progress", {className: "progress progress-error", value: "56", max: "100"}, "")
24+ ]
25+)))();
26+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkProgress)({});
27+export {$$default as default, mkProgress, pure};
output-es/DaisyUI.Progress/index.jsnew file+9
@@ -0,0 +1,9 @@
1+const warning = "progress-warning";
2+const success = "progress-success";
3+const secondary = "progress-secondary";
4+const progressCls = color => "progress " + color;
5+const primary = "progress-primary";
6+const info = "progress-info";
7+const error = "progress-error";
8+const accent = "progress-accent";
9+export {accent, error, info, primary, progressCls, secondary, success, warning};
output-es/DaisyUI.RadialProgress.Stories/index.jsnew file+20
@@ -0,0 +1,20 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkRadialProgress = /* #__PURE__ */ React$dBasic$dHooks.component("RadialProgressStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "radial-progress", style: {"--value": 0}, role: "progressbar"}, "0%"),
13+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "radial-progress", style: {"--value": 25}, role: "progressbar"}, "25%"),
14+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "radial-progress", style: {"--value": 50}, role: "progressbar"}, "50%"),
15+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "radial-progress", style: {"--value": 75}, role: "progressbar"}, "75%"),
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "radial-progress", style: {"--value": 100}, role: "progressbar"}, "100%")
17+ ]
18+)))();
19+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkRadialProgress)({});
20+export {$$default as default, mkRadialProgress, pure};
output-es/DaisyUI.RadialProgress/index.jsnew file+3
@@ -0,0 +1,3 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const radialProgress = value => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "radial-progress", style: {"--value": value}, role: "progressbar"});
3+export {radialProgress};
output-es/DaisyUI.Radio.Stories/index.jsnew file+44
@@ -0,0 +1,44 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkRadio = /* #__PURE__ */ React$dBasic$dHooks.component("RadioStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Pick a framework"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "flex flex-col gap-2"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-1", className: "radio radio-primary ", "aria-label": "Svelte", checked: true}),
22+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-1", className: "radio radio-primary ", "aria-label": "Vue"}),
23+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-1", className: "radio radio-primary ", "aria-label": "React"})
24+ ]
25+ )
26+ ]
27+ ),
28+ Yoga$dReact$dDOM$dInternal.createElementImpl(
29+ "div",
30+ {className: "flex gap-2"},
31+ [
32+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-colors", className: "radio radio-primary "}),
33+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-colors", className: "radio radio-secondary ", checked: true}),
34+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-colors", className: "radio radio-accent "}),
35+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-colors", className: "radio radio-success "}),
36+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-colors", className: "radio radio-warning "}),
37+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-colors", className: "radio radio-info "}),
38+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "radio-colors", className: "radio radio-error "})
39+ ]
40+ )
41+ ]
42+)))();
43+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkRadio)({});
44+export {$$default as default, mkRadio, pure};
output-es/DaisyUI.Radio/index.jsnew file+13
@@ -0,0 +1,13 @@
1+const xs = "radio-xs";
2+const warning = "radio-warning";
3+const success = "radio-success";
4+const sm = "radio-sm";
5+const secondary = "radio-secondary";
6+const radioCls = color => size => "radio " + color + " " + size;
7+const primary = "radio-primary";
8+const md = "radio-md";
9+const lg = "radio-lg";
10+const info = "radio-info";
11+const error = "radio-error";
12+const accent = "radio-accent";
13+export {accent, error, info, lg, md, primary, radioCls, secondary, sm, success, warning, xs};
output-es/DaisyUI.Range.Stories/index.jsnew file+29
@@ -0,0 +1,29 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkRange = /* #__PURE__ */ React$dBasic$dHooks.component("RangeStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-64"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range "}),
13+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range range-primary "}),
14+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range range-secondary "}),
15+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range range-accent "}),
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "flex flex-col gap-2 items-center"},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range range-lg"}),
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range "}),
22+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range range-sm"}),
23+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "range", className: "range range-xs"})
24+ ]
25+ )
26+ ]
27+)))();
28+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkRange)({});
29+export {$$default as default, mkRange, pure};
output-es/DaisyUI.Range/index.jsnew file+13
@@ -0,0 +1,13 @@
1+const xs = "range-xs";
2+const warning = "range-warning";
3+const success = "range-success";
4+const sm = "range-sm";
5+const secondary = "range-secondary";
6+const rangeCls = color => size => "range " + color + " " + size;
7+const primary = "range-primary";
8+const md = "range-md";
9+const lg = "range-lg";
10+const info = "range-info";
11+const error = "range-error";
12+const accent = "range-accent";
13+export {accent, error, info, lg, md, primary, rangeCls, secondary, sm, success, warning, xs};
output-es/DaisyUI.Rating.Stories/index.jsnew file+63
@@ -0,0 +1,63 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkRating = /* #__PURE__ */ React$dBasic$dHooks.component("RatingStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "rating "},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-2", className: "mask mask-star-2 bg-orange-400", "aria-label": "1 star"}),
17+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
18+ "input",
19+ {type: "radio", name: "rating-2", className: "mask mask-star-2 bg-orange-400", "aria-label": "2 stars", checked: true}
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-2", className: "mask mask-star-2 bg-orange-400", "aria-label": "3 stars"}),
22+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-2", className: "mask mask-star-2 bg-orange-400", "aria-label": "4 stars"}),
23+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-2", className: "mask mask-star-2 bg-orange-400", "aria-label": "5 stars"})
24+ ]
25+ ),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "div",
28+ {className: "flex gap-2 items-center"},
29+ [
30+ Yoga$dReact$dDOM$dInternal.createElementImpl(
31+ "div",
32+ {className: "rating rating-xs"},
33+ [
34+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
35+ "input",
36+ {type: "radio", name: "rating-xs", className: "mask mask-star-2 bg-orange-400", "aria-label": "1 star", checked: true}
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-xs", className: "mask mask-star-2 bg-orange-400", "aria-label": "2 stars"}),
39+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-xs", className: "mask mask-star-2 bg-orange-400", "aria-label": "3 stars"}),
40+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-xs", className: "mask mask-star-2 bg-orange-400", "aria-label": "4 stars"}),
41+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-xs", className: "mask mask-star-2 bg-orange-400", "aria-label": "5 stars"})
42+ ]
43+ ),
44+ Yoga$dReact$dDOM$dInternal.createElementImpl(
45+ "div",
46+ {className: "rating rating-lg"},
47+ [
48+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-lg", className: "mask mask-star-2 bg-orange-400", "aria-label": "1 star"}),
49+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-lg", className: "mask mask-star-2 bg-orange-400", "aria-label": "2 stars"}),
50+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
51+ "input",
52+ {type: "radio", name: "rating-lg", className: "mask mask-star-2 bg-orange-400", "aria-label": "3 stars", checked: true}
53+ ),
54+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-lg", className: "mask mask-star-2 bg-orange-400", "aria-label": "4 stars"}),
55+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "rating-lg", className: "mask mask-star-2 bg-orange-400", "aria-label": "5 stars"})
56+ ]
57+ )
58+ ]
59+ )
60+ ]
61+)))();
62+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkRating)({});
63+export {$$default as default, mkRating, pure};
output-es/DaisyUI.Rating/index.jsnew file+8
@@ -0,0 +1,8 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const xs = "rating-xs";
3+const sm = "rating-sm";
4+const ratingHalf = size => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "rating rating-half " + size});
5+const rating = size => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "rating " + size});
6+const md = "rating-md";
7+const lg = "rating-lg";
8+export {lg, md, rating, ratingHalf, sm, xs};
output-es/DaisyUI.Select.Stories/index.jsnew file+60
@@ -0,0 +1,60 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkSelect = /* #__PURE__ */ React$dBasic$dHooks.component("SelectStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-xs"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Framework"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "select",
19+ {className: "select "},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Pick a framework"),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Svelte"),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Vue"),
24+ Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "React")
25+ ]
26+ )
27+ ]
28+ ),
29+ Yoga$dReact$dDOM$dInternal.createElementImpl(
30+ "select",
31+ {className: "select select-bordered "},
32+ [
33+ Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Who shot first?"),
34+ Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Han Solo"),
35+ Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Greedo")
36+ ]
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl(
39+ "div",
40+ {className: "flex flex-wrap gap-2"},
41+ [
42+ Yoga$dReact$dDOM$dInternal.createElementImpl("select", {className: "select select-primary "}, [Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Primary")]),
43+ Yoga$dReact$dDOM$dInternal.createElementImpl("select", {className: "select select-secondary "}, [Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Secondary")]),
44+ Yoga$dReact$dDOM$dInternal.createElementImpl("select", {className: "select select-accent "}, [Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Accent")])
45+ ]
46+ ),
47+ Yoga$dReact$dDOM$dInternal.createElementImpl(
48+ "div",
49+ {className: "flex flex-wrap gap-2 items-center"},
50+ [
51+ Yoga$dReact$dDOM$dInternal.createElementImpl("select", {className: "select select-lg"}, [Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Large")]),
52+ Yoga$dReact$dDOM$dInternal.createElementImpl("select", {className: "select "}, [Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Normal")]),
53+ Yoga$dReact$dDOM$dInternal.createElementImpl("select", {className: "select select-sm"}, [Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Small")]),
54+ Yoga$dReact$dDOM$dInternal.createElementImpl("select", {className: "select select-xs"}, [Yoga$dReact$dDOM$dInternal.createElementImpl("option", {}, "Tiny")])
55+ ]
56+ )
57+ ]
58+)))();
59+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkSelect)({});
60+export {$$default as default, mkSelect, pure};
output-es/DaisyUI.Select/index.jsnew file+15
@@ -0,0 +1,15 @@
1+const xs = "select-xs";
2+const warning = "select-warning";
3+const success = "select-success";
4+const sm = "select-sm";
5+const selectCls = color => size => "select " + color + " " + size;
6+const secondary = "select-secondary";
7+const primary = "select-primary";
8+const md = "select-md";
9+const lg = "select-lg";
10+const info = "select-info";
11+const ghost = "select-ghost";
12+const error = "select-error";
13+const bordered = "select-bordered";
14+const accent = "select-accent";
15+export {accent, bordered, error, ghost, info, lg, md, primary, secondary, selectCls, sm, success, warning, xs};
output-es/DaisyUI.Skeleton.Stories/index.jsnew file+31
@@ -0,0 +1,31 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkSkeleton = /* #__PURE__ */ React$dBasic$dHooks.component("SkeletonStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-64"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "flex gap-4 items-center"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "skeleton h-16 w-16 shrink-0 rounded-full"}, []),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "flex flex-col gap-2 w-full"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "skeleton h-4 w-28"}, []),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "skeleton h-4 w-full"}, [])
23+ ]
24+ )
25+ ]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "skeleton h-32 w-full"}, [])
28+ ]
29+)))();
30+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkSkeleton)({});
31+export {$$default as default, mkSkeleton, pure};
output-es/DaisyUI.Skeleton/index.jsnew file+3
@@ -0,0 +1,3 @@
1+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
2+const skeleton = className => Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "skeleton " + className}, []);
3+export {skeleton};
output-es/DaisyUI.Stack.Stories/index.jsnew file+42
@@ -0,0 +1,42 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkStack = /* #__PURE__ */ React$dBasic$dHooks.component("StackStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-8 items-center"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "stack"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "bg-primary text-primary-content grid w-32 h-20 rounded-box place-items-center"}, "1"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "bg-accent text-accent-content grid w-32 h-20 rounded-box place-items-center"}, "2"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "bg-secondary text-secondary-content grid w-32 h-20 rounded-box place-items-center"}, "3")
19+ ]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "div",
23+ {className: "stack"},
24+ [
25+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
26+ "img",
27+ {src: "https://img.daisyui.com/images/stock/photo-1559703248-dcaaec9fab78.webp", alt: "Photo 1", className: "rounded-box"}
28+ ),
29+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
30+ "img",
31+ {src: "https://img.daisyui.com/images/stock/photo-1565098772267-60af42b81ef2.webp", alt: "Photo 2", className: "rounded-box"}
32+ ),
33+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl(
34+ "img",
35+ {src: "https://img.daisyui.com/images/stock/photo-1572635148818-ef6fd45eb394.webp", alt: "Photo 3", className: "rounded-box"}
36+ )
37+ ]
38+ )
39+ ]
40+)))();
41+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkStack)({});
42+export {$$default as default, mkStack, pure};
output-es/DaisyUI.Stack/index.jsnew file+3
@@ -0,0 +1,3 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const stack = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stack"});
3+export {stack};
output-es/DaisyUI.Stat.Stories/index.jsnew file+83
@@ -0,0 +1,83 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkStat = /* #__PURE__ */ React$dBasic$dHooks.component("StatStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "stats shadow-sm"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "stat"},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-title"}, "Total Page Views"),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-value"}, "89,400"),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-desc"}, "21% more than last month")
23+ ]
24+ ),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl(
26+ "div",
27+ {className: "stat"},
28+ [
29+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-title"}, "New Users"),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-value"}, "4,200"),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-desc"}, "↗︎ 400 (22%)")
32+ ]
33+ ),
34+ Yoga$dReact$dDOM$dInternal.createElementImpl(
35+ "div",
36+ {className: "stat"},
37+ [
38+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-title"}, "New Registers"),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-value"}, "1,200"),
40+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-desc"}, "↘︎ 90 (14%)")
41+ ]
42+ )
43+ ]
44+ ),
45+ Yoga$dReact$dDOM$dInternal.createElementImpl(
46+ "div",
47+ {className: "stats shadow-sm"},
48+ [
49+ Yoga$dReact$dDOM$dInternal.createElementImpl(
50+ "div",
51+ {className: "stat"},
52+ [
53+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-title"}, "Account balance"),
54+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-value"}, "$89,400"),
55+ Yoga$dReact$dDOM$dInternal.createElementImpl(
56+ "div",
57+ {className: "stat-actions"},
58+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-primary btn-sm "}, "Add funds")]
59+ )
60+ ]
61+ ),
62+ Yoga$dReact$dDOM$dInternal.createElementImpl(
63+ "div",
64+ {className: "stat"},
65+ [
66+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-title"}, "Current balance"),
67+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "stat-value"}, "$89,400"),
68+ Yoga$dReact$dDOM$dInternal.createElementImpl(
69+ "div",
70+ {className: "stat-actions"},
71+ [
72+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-sm "}, "Withdrawal"),
73+ Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-sm "}, "Deposit")
74+ ]
75+ )
76+ ]
77+ )
78+ ]
79+ )
80+ ]
81+)))();
82+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkStat)({});
83+export {$$default as default, mkStat, pure};
output-es/DaisyUI.Stat/index.jsnew file+10
@@ -0,0 +1,10 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const statsVertical = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stats stats-vertical shadow-sm"});
3+const stats = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stats shadow-sm"});
4+const statValue = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stat-value"});
5+const statTitle = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stat-title"});
6+const statFigure = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stat-figure text-primary"});
7+const statDesc = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stat-desc"});
8+const statActions = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stat-actions"});
9+const stat = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "stat"});
10+export {stat, statActions, statDesc, statFigure, statTitle, statValue, stats, statsVertical};
output-es/DaisyUI.Status.Stories/index.jsnew file+61
@@ -0,0 +1,61 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkStatus = /* #__PURE__ */ React$dBasic$dHooks.component("StatusStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "flex gap-6"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-primary "}, []),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-secondary "}, []),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-accent "}, []),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-neutral "}, []),
20+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-info "}, []),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-success "}, []),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-warning "}, []),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-error "}, [])
24+ ]
25+ ),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "div",
28+ {className: "flex gap-6 items-center"},
29+ [
30+ Yoga$dReact$dDOM$dInternal.createElementImpl(
31+ "div",
32+ {className: "flex items-center gap-2"},
33+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-success "}, []), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Online")]
34+ ),
35+ Yoga$dReact$dDOM$dInternal.createElementImpl(
36+ "div",
37+ {className: "flex items-center gap-2"},
38+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-warning "}, []), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Away")]
39+ ),
40+ Yoga$dReact$dDOM$dInternal.createElementImpl(
41+ "div",
42+ {className: "flex items-center gap-2"},
43+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-error "}, []), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Offline")]
44+ )
45+ ]
46+ ),
47+ Yoga$dReact$dDOM$dInternal.createElementImpl(
48+ "div",
49+ {className: "flex gap-4 items-center"},
50+ [
51+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-xs"}, []),
52+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-sm"}, []),
53+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-md"}, []),
54+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-lg"}, []),
55+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status status-xl"}, [])
56+ ]
57+ )
58+ ]
59+)))();
60+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkStatus)({});
61+export {$$default as default, mkStatus, pure};
output-es/DaisyUI.Status/index.jsnew file+16
@@ -0,0 +1,16 @@
1+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
2+const xs = "status-xs";
3+const xl = "status-xl";
4+const warning = "status-warning";
5+const success = "status-success";
6+const status = color => size => Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "status " + color + " " + size}, []);
7+const sm = "status-sm";
8+const secondary = "status-secondary";
9+const primary = "status-primary";
10+const neutral = "status-neutral";
11+const md = "status-md";
12+const lg = "status-lg";
13+const info = "status-info";
14+const error = "status-error";
15+const accent = "status-accent";
16+export {accent, error, info, lg, md, neutral, primary, secondary, sm, status, success, warning, xl, xs};
output-es/DaisyUI.Steps.Stories/index.jsnew file+56
@@ -0,0 +1,56 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkSteps = /* #__PURE__ */ React$dBasic$dHooks.component("StepsStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "w-full space-y-8"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "ul",
14+ {className: "steps w-full"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step step-primary"}, "Register"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step step-primary"}, "Choose plan"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step"}, "Purchase"),
19+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step"}, "Receive product")
20+ ]
21+ ),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl(
23+ "ul",
24+ {className: "steps w-full"},
25+ [
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "li",
28+ {className: "step step-neutral"},
29+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "step-icon"}, "😀"), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Step 1")]
30+ ),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "li",
33+ {className: "step step-neutral"},
34+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "step-icon"}, "😃"), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Step 2")]
35+ ),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl(
37+ "li",
38+ {className: "step"},
39+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {className: "step-icon"}, "😍"), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Step 3")]
40+ )
41+ ]
42+ ),
43+ Yoga$dReact$dDOM$dInternal.createElementImpl(
44+ "ul",
45+ {className: "steps steps-vertical"},
46+ [
47+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step step-primary"}, "Register"),
48+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step step-primary"}, "Choose plan"),
49+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step"}, "Purchase"),
50+ Yoga$dReact$dDOM$dInternal.createElementImpl("li", {className: "step"}, "Receive product")
51+ ]
52+ )
53+ ]
54+)))();
55+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkSteps)({});
56+export {$$default as default, mkSteps, pure};
output-es/DaisyUI.Steps/index.jsnew file+15
@@ -0,0 +1,15 @@
1+import * as Yoga$dReact$dDOM$dHTML$dLi from "../Yoga.React.DOM.HTML.Li/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dUl from "../Yoga.React.DOM.HTML.Ul/index.js";
3+const warning = "step-warning";
4+const vertical = "steps-vertical";
5+const success = "step-success";
6+const steps = direction => () => Yoga$dReact$dDOM$dHTML$dUl.ul()()({className: "steps " + direction});
7+const step = color => () => Yoga$dReact$dDOM$dHTML$dLi.li()()({className: "step " + color});
8+const secondary = "step-secondary";
9+const primary = "step-primary";
10+const neutral = "step-neutral";
11+const info = "step-info";
12+const horizontal = "steps-horizontal";
13+const error = "step-error";
14+const accent = "step-accent";
15+export {accent, error, horizontal, info, neutral, primary, secondary, step, steps, success, vertical, warning};
output-es/DaisyUI.Swap.Stories/index.jsnew file+42
@@ -0,0 +1,42 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkSwap = /* #__PURE__ */ React$dBasic$dHooks.component("SwapStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6 items-center text-6xl"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "label",
14+ {className: "swap"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox"}),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "swap-on"}, "ON"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "swap-off"}, "OFF")
19+ ]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "label",
23+ {className: "swap swap-rotate"},
24+ [
25+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox"}),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "swap-on"}, "🌛"),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "swap-off"}, "🌞")
28+ ]
29+ ),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl(
31+ "label",
32+ {className: "swap swap-flip"},
33+ [
34+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox"}),
35+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "swap-on"}, "😈"),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "swap-off"}, "😇")
37+ ]
38+ )
39+ ]
40+)))();
41+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkSwap)({});
42+export {$$default as default, mkSwap, pure};
output-es/DaisyUI.Swap/index.jsnew file+8
@@ -0,0 +1,8 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dLabel from "../Yoga.React.DOM.HTML.Label/index.js";
3+const swapRotate = () => Yoga$dReact$dDOM$dHTML$dLabel.label()()({className: "swap swap-rotate"});
4+const swapOn = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "swap-on"});
5+const swapOff = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "swap-off"});
6+const swapFlip = () => Yoga$dReact$dDOM$dHTML$dLabel.label()()({className: "swap swap-flip"});
7+const swap = () => Yoga$dReact$dDOM$dHTML$dLabel.label()()({className: "swap"});
8+export {swap, swapFlip, swapOff, swapOn, swapRotate};
output-es/DaisyUI.Table.Stories/index.jsnew file+143
@@ -0,0 +1,143 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkTable = /* #__PURE__ */ React$dBasic$dHooks.component("TableStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "overflow-x-auto"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "table",
18+ {className: "table "},
19+ [
20+ Yoga$dReact$dDOM$dInternal.createElementImpl(
21+ "thead",
22+ {},
23+ [
24+ Yoga$dReact$dDOM$dInternal.createElementImpl(
25+ "tr",
26+ {},
27+ [
28+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, ""),
29+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "Name"),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "Job"),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "Favorite Color")
32+ ]
33+ )
34+ ]
35+ ),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl(
37+ "tbody",
38+ {},
39+ [
40+ Yoga$dReact$dDOM$dInternal.createElementImpl(
41+ "tr",
42+ {},
43+ [
44+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "1"),
45+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Cy Ganderton"),
46+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Quality Control Specialist"),
47+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Blue")
48+ ]
49+ ),
50+ Yoga$dReact$dDOM$dInternal.createElementImpl(
51+ "tr",
52+ {className: "hover"},
53+ [
54+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "2"),
55+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Hart Hagerty"),
56+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Desktop Support Technician"),
57+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Purple")
58+ ]
59+ ),
60+ Yoga$dReact$dDOM$dInternal.createElementImpl(
61+ "tr",
62+ {},
63+ [
64+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "3"),
65+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Brice Swyre"),
66+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Tax Accountant"),
67+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Red")
68+ ]
69+ )
70+ ]
71+ )
72+ ]
73+ )
74+ ]
75+ ),
76+ Yoga$dReact$dDOM$dInternal.createElementImpl(
77+ "div",
78+ {className: "overflow-x-auto"},
79+ [
80+ Yoga$dReact$dDOM$dInternal.createElementImpl(
81+ "table",
82+ {className: "table table-zebra"},
83+ [
84+ Yoga$dReact$dDOM$dInternal.createElementImpl(
85+ "thead",
86+ {},
87+ [
88+ Yoga$dReact$dDOM$dInternal.createElementImpl(
89+ "tr",
90+ {},
91+ [
92+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, ""),
93+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "Name"),
94+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "Job"),
95+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "Favorite Color")
96+ ]
97+ )
98+ ]
99+ ),
100+ Yoga$dReact$dDOM$dInternal.createElementImpl(
101+ "tbody",
102+ {},
103+ [
104+ Yoga$dReact$dDOM$dInternal.createElementImpl(
105+ "tr",
106+ {},
107+ [
108+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "1"),
109+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Cy Ganderton"),
110+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Quality Control Specialist"),
111+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Blue")
112+ ]
113+ ),
114+ Yoga$dReact$dDOM$dInternal.createElementImpl(
115+ "tr",
116+ {},
117+ [
118+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "2"),
119+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Hart Hagerty"),
120+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Desktop Support Technician"),
121+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Purple")
122+ ]
123+ ),
124+ Yoga$dReact$dDOM$dInternal.createElementImpl(
125+ "tr",
126+ {},
127+ [
128+ Yoga$dReact$dDOM$dInternal.createElementImpl("th", {}, "3"),
129+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Brice Swyre"),
130+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Tax Accountant"),
131+ Yoga$dReact$dDOM$dInternal.createElementImpl("td", {}, "Red")
132+ ]
133+ )
134+ ]
135+ )
136+ ]
137+ )
138+ ]
139+ )
140+ ]
141+)))();
142+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkTable)({});
143+export {$$default as default, mkTable, pure};
output-es/DaisyUI.Table/index.jsnew file+28
@@ -0,0 +1,28 @@
1+import * as Yoga$dReact$dDOM$dHTML$dTbody from "../Yoga.React.DOM.HTML.Tbody/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dTd from "../Yoga.React.DOM.HTML.Td/index.js";
3+import * as Yoga$dReact$dDOM$dHTML$dTfoot from "../Yoga.React.DOM.HTML.Tfoot/index.js";
4+import * as Yoga$dReact$dDOM$dHTML$dTh from "../Yoga.React.DOM.HTML.Th/index.js";
5+import * as Yoga$dReact$dDOM$dHTML$dThead from "../Yoga.React.DOM.HTML.Thead/index.js";
6+import * as Yoga$dReact$dDOM$dHTML$dTr from "../Yoga.React.DOM.HTML.Tr/index.js";
7+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
8+const zebra = "table-zebra";
9+const xs = "table-xs";
10+const tableRowHover = () => Yoga$dReact$dDOM$dHTML$dTr.tr()()({className: "hover"});
11+const tableRowActive = () => Yoga$dReact$dDOM$dHTML$dTr.tr()()({className: "active"});
12+const tableRow = () => Yoga$dReact$dDOM$dHTML$dTr.tr()()({});
13+const tableHeader = () => Yoga$dReact$dDOM$dHTML$dThead.thead()()({});
14+const tableHead = () => Yoga$dReact$dDOM$dHTML$dTh.th()()({});
15+const tableFooter = () => Yoga$dReact$dDOM$dHTML$dTfoot.tfoot()()({});
16+const tableCell = () => Yoga$dReact$dDOM$dHTML$dTd.td()()({});
17+const tableBody = () => Yoga$dReact$dDOM$dHTML$dTbody.tbody()()({});
18+const sm = "table-sm";
19+const pinRows = "table-pin-rows";
20+const pinCols = "table-pin-cols";
21+const md = "table-md";
22+const lg = "table-lg";
23+const daisyTable = size => () => kids => Yoga$dReact$dDOM$dInternal.createElementImpl(
24+ "div",
25+ {className: "overflow-x-auto"},
26+ [Yoga$dReact$dDOM$dInternal.createElementImpl("table", {className: "table " + size}, kids)]
27+);
28+export {daisyTable, lg, md, pinCols, pinRows, sm, tableBody, tableCell, tableFooter, tableHead, tableHeader, tableRow, tableRowActive, tableRowHover, xs, zebra};
output-es/DaisyUI.Tabs.Stories/index.jsnew file+66
@@ -0,0 +1,66 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkTabs = /* #__PURE__ */ React$dBasic$dHooks.component("TabsStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "tabs tabs-border", role: "tablist"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tab 1"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab tab-active", role: "tab"}, "Tab 2"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tab 3")
19+ ]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "div",
23+ {className: "tabs tabs-lift", role: "tablist"},
24+ [
25+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tab 1"),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab tab-active", role: "tab"}, "Tab 2"),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tab 3")
28+ ]
29+ ),
30+ Yoga$dReact$dDOM$dInternal.createElementImpl(
31+ "div",
32+ {className: "tabs tabs-box", role: "tablist"},
33+ [
34+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tab 1"),
35+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab tab-active", role: "tab"}, "Tab 2"),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tab 3")
37+ ]
38+ ),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl(
40+ "div",
41+ {className: "flex gap-2 items-center"},
42+ [
43+ Yoga$dReact$dDOM$dInternal.createElementImpl(
44+ "div",
45+ {className: "tabs tabs-border tabs-xs", role: "tablist"},
46+ [
47+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tiny"),
48+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab tab-active", role: "tab"}, "Tiny"),
49+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Tiny")
50+ ]
51+ ),
52+ Yoga$dReact$dDOM$dInternal.createElementImpl(
53+ "div",
54+ {className: "tabs tabs-border tabs-lg", role: "tablist"},
55+ [
56+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Large"),
57+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab tab-active", role: "tab"}, "Large"),
58+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "tab", role: "tab"}, "Large")
59+ ]
60+ )
61+ ]
62+ )
63+ ]
64+)))();
65+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkTabs)({});
66+export {$$default as default, mkTabs, pure};
output-es/DaisyUI.Tabs/index.jsnew file+13
@@ -0,0 +1,13 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const xs = "tabs-xs";
3+const tabs = variant => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "tabs " + variant, role: "tablist"});
4+const tabContent = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "tab-content p-4", role: "tabpanel"});
5+const tabActive = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "tab tab-active", role: "tab"});
6+const tab = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "tab", role: "tab"});
7+const sm = "tabs-sm";
8+const md = "tabs-md";
9+const lifted = "tabs-lift";
10+const lg = "tabs-lg";
11+const boxed = "tabs-box";
12+const bordered = "tabs-border";
13+export {bordered, boxed, lg, lifted, md, sm, tab, tabActive, tabContent, tabs, xs};
output-es/DaisyUI.TextRotate.Stories/index.jsnew file+31
@@ -0,0 +1,31 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkTextRotate = /* #__PURE__ */ React$dBasic$dHooks.component("TextRotateStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "text-4xl"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "I love "),
13+ Yoga$dReact$dDOM$dInternal.createElementImpl(
14+ "span",
15+ {className: "text-rotate"},
16+ [
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "span",
19+ {},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "PureScript"),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "DaisyUI"),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Tailwind")
24+ ]
25+ )
26+ ]
27+ )
28+ ]
29+)))();
30+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkTextRotate)({});
31+export {$$default as default, mkTextRotate, pure};
output-es/DaisyUI.TextRotate/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Yoga$dReact$dDOM$dHTML$dSpan from "../Yoga.React.DOM.HTML.Span/index.js";
2+const textRotateItem = () => Yoga$dReact$dDOM$dHTML$dSpan.span()()({});
3+const textRotate = () => Yoga$dReact$dDOM$dHTML$dSpan.span()()({className: "text-rotate"});
4+export {textRotate, textRotateItem};
output-es/DaisyUI.Textarea.Stories/index.jsnew file+35
@@ -0,0 +1,35 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkTextarea = /* #__PURE__ */ React$dBasic$dHooks.component("TextareaStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-xs"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Your bio"),
17+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("textarea", {className: "textarea ", placeholder: "Bio"}),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "label"}, "Optional")
19+ ]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("textarea", {className: "textarea textarea-bordered ", placeholder: "Bordered textarea"}),
22+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("textarea", {className: "textarea textarea-ghost ", placeholder: "Ghost textarea"}),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl(
24+ "div",
25+ {className: "flex flex-wrap gap-2"},
26+ [
27+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("textarea", {className: "textarea textarea-primary ", placeholder: "Primary"}),
28+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("textarea", {className: "textarea textarea-secondary ", placeholder: "Secondary"}),
29+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("textarea", {className: "textarea textarea-accent ", placeholder: "Accent"})
30+ ]
31+ )
32+ ]
33+)))();
34+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkTextarea)({});
35+export {$$default as default, mkTextarea, pure};
output-es/DaisyUI.Textarea/index.jsnew file+15
@@ -0,0 +1,15 @@
1+const xs = "textarea-xs";
2+const warning = "textarea-warning";
3+const textareaCls = color => size => "textarea " + color + " " + size;
4+const success = "textarea-success";
5+const sm = "textarea-sm";
6+const secondary = "textarea-secondary";
7+const primary = "textarea-primary";
8+const md = "textarea-md";
9+const lg = "textarea-lg";
10+const info = "textarea-info";
11+const ghost = "textarea-ghost";
12+const error = "textarea-error";
13+const bordered = "textarea-bordered";
14+const accent = "textarea-accent";
15+export {accent, bordered, error, ghost, info, lg, md, primary, secondary, sm, success, textareaCls, warning, xs};
output-es/DaisyUI.ThemeController.Stories/index.jsnew file+63
@@ -0,0 +1,63 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkThemeController = /* #__PURE__ */ React$dBasic$dHooks.component("ThemeControllerStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-6"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", value: "synthwave", className: "toggle theme-controller"}),
13+ Yoga$dReact$dDOM$dInternal.createElementImpl(
14+ "div",
15+ {className: "fieldset"},
16+ [
17+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Theme"),
18+ Yoga$dReact$dDOM$dInternal.createElementImpl(
19+ "label",
20+ {className: "flex gap-2 cursor-pointer items-center"},
21+ [
22+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "theme-radios", className: "radio radio-sm theme-controller", value: "default"}),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Default")
24+ ]
25+ ),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "label",
28+ {className: "flex gap-2 cursor-pointer items-center"},
29+ [
30+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "theme-radios", className: "radio radio-sm theme-controller", value: "retro"}),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Retro")
32+ ]
33+ ),
34+ Yoga$dReact$dDOM$dInternal.createElementImpl(
35+ "label",
36+ {className: "flex gap-2 cursor-pointer items-center"},
37+ [
38+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "theme-radios", className: "radio radio-sm theme-controller", value: "cyberpunk"}),
39+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Cyberpunk")
40+ ]
41+ ),
42+ Yoga$dReact$dDOM$dInternal.createElementImpl(
43+ "label",
44+ {className: "flex gap-2 cursor-pointer items-center"},
45+ [
46+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "theme-radios", className: "radio radio-sm theme-controller", value: "valentine"}),
47+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Valentine")
48+ ]
49+ ),
50+ Yoga$dReact$dDOM$dInternal.createElementImpl(
51+ "label",
52+ {className: "flex gap-2 cursor-pointer items-center"},
53+ [
54+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "radio", name: "theme-radios", className: "radio radio-sm theme-controller", value: "aqua"}),
55+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {}, "Aqua")
56+ ]
57+ )
58+ ]
59+ )
60+ ]
61+)))();
62+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkThemeController)({});
63+export {$$default as default, mkThemeController, pure};
output-es/DaisyUI.ThemeController/index.jsnew file+2
@@ -0,0 +1,2 @@
1+const themeControllerCls = "theme-controller";
2+export {themeControllerCls};
output-es/DaisyUI.Timeline.Stories/index.jsnew file+75
@@ -0,0 +1,75 @@
1+import * as DaisyUI$dTimeline from "../DaisyUI.Timeline/index.js";
2+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
3+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
4+import * as Type$dEquality from "../Type.Equality/index.js";
5+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
6+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
7+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
8+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
9+const mkTimeline = /* #__PURE__ */ React$dBasic$dHooks.component("TimelineStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
10+ "div",
11+ {className: "flex flex-col gap-4"},
12+ [
13+ Yoga$dReact$dDOM$dInternal.createElementImpl(
14+ "ul",
15+ {className: "timeline"},
16+ [
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "li",
19+ {},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-start"}, "1984"),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-middle"}, []),
23+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-end"}, "First Macintosh computer"),
24+ DaisyUI$dTimeline.timelineLine
25+ ]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "li",
29+ {},
30+ [
31+ DaisyUI$dTimeline.timelineLine,
32+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-start"}, "1998"),
33+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-middle"}, []),
34+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-end"}, "iMac"),
35+ DaisyUI$dTimeline.timelineLine
36+ ]
37+ ),
38+ Yoga$dReact$dDOM$dInternal.createElementImpl(
39+ "li",
40+ {},
41+ [
42+ DaisyUI$dTimeline.timelineLine,
43+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-start"}, "2001"),
44+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-middle"}, []),
45+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-end"}, "iPod"),
46+ DaisyUI$dTimeline.timelineLine
47+ ]
48+ ),
49+ Yoga$dReact$dDOM$dInternal.createElementImpl(
50+ "li",
51+ {},
52+ [
53+ DaisyUI$dTimeline.timelineLine,
54+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-start"}, "2007"),
55+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-middle"}, []),
56+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-end"}, "iPhone"),
57+ DaisyUI$dTimeline.timelineLine
58+ ]
59+ ),
60+ Yoga$dReact$dDOM$dInternal.createElementImpl(
61+ "li",
62+ {},
63+ [
64+ DaisyUI$dTimeline.timelineLine,
65+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-start"}, "2015"),
66+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-middle"}, []),
67+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "timeline-end"}, "Apple Watch")
68+ ]
69+ )
70+ ]
71+ )
72+ ]
73+)))();
74+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkTimeline)({});
75+export {$$default as default, mkTimeline, pure};
output-es/DaisyUI.Timeline/index.jsnew file+12
@@ -0,0 +1,12 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+import * as Yoga$dReact$dDOM$dHTML$dLi from "../Yoga.React.DOM.HTML.Li/index.js";
3+import * as Yoga$dReact$dDOM$dHTML$dUl from "../Yoga.React.DOM.HTML.Ul/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+const timelineVertical = () => Yoga$dReact$dDOM$dHTML$dUl.ul()()({className: "timeline timeline-vertical"});
6+const timelineStart = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "timeline-start"});
7+const timelineMiddle = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "timeline-middle"});
8+const timelineLine = /* #__PURE__ */ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("hr", {});
9+const timelineItem = () => Yoga$dReact$dDOM$dHTML$dLi.li()()({});
10+const timelineEnd = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "timeline-end"});
11+const timeline = () => Yoga$dReact$dDOM$dHTML$dUl.ul()()({className: "timeline"});
12+export {timeline, timelineEnd, timelineItem, timelineLine, timelineMiddle, timelineStart, timelineVertical};
output-es/DaisyUI.Toast.Stories/index.jsnew file+31
@@ -0,0 +1,31 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkToast = /* #__PURE__ */ React$dBasic$dHooks.component("ToastStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "relative h-64 w-full [&_.toast]:static"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "toast toast-end"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl(
17+ "div",
18+ {className: "alert alert-info", role: "alert"},
19+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "New mail arrived.")]
20+ ),
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "div",
23+ {className: "alert alert-success", role: "alert"},
24+ [Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Message sent successfully.")]
25+ )
26+ ]
27+ )
28+ ]
29+)))();
30+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkToast)({});
31+export {$$default as default, mkToast, pure};
output-es/DaisyUI.Toast/index.jsnew file+9
@@ -0,0 +1,9 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const toastTop = "toast-top";
3+const toastStart = "toast-start";
4+const toastMiddle = "toast-middle";
5+const toastEnd = "toast-end";
6+const toastCenter = "toast-center";
7+const toastBottom = "toast-bottom";
8+const toast = position => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "toast " + position});
9+export {toast, toastBottom, toastCenter, toastEnd, toastMiddle, toastStart, toastTop};
output-es/DaisyUI.Toggle.Stories/index.jsnew file+58
@@ -0,0 +1,58 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkToggle = /* #__PURE__ */ React$dBasic$dHooks.component("ToggleStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Notifications"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "label",
19+ {className: "flex items-center gap-2 cursor-pointer"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle ", checked: true}),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Email")
23+ ]
24+ ),
25+ Yoga$dReact$dDOM$dInternal.createElementImpl(
26+ "label",
27+ {className: "flex items-center gap-2 cursor-pointer"},
28+ [Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle "}), Yoga$dReact$dDOM$dInternal.createElementImpl("span", {}, "Push")]
29+ )
30+ ]
31+ ),
32+ Yoga$dReact$dDOM$dInternal.createElementImpl(
33+ "div",
34+ {className: "flex gap-2"},
35+ [
36+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-primary ", checked: true}),
37+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-secondary ", checked: true}),
38+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-accent ", checked: true}),
39+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-success ", checked: true}),
40+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-warning ", checked: true}),
41+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-info ", checked: true}),
42+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-error ", checked: true})
43+ ]
44+ ),
45+ Yoga$dReact$dDOM$dInternal.createElementImpl(
46+ "div",
47+ {className: "flex gap-2 items-center"},
48+ [
49+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-lg", checked: true}),
50+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle ", checked: true}),
51+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-sm", checked: true}),
52+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "checkbox", className: "toggle toggle-xs", checked: true})
53+ ]
54+ )
55+ ]
56+)))();
57+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkToggle)({});
58+export {$$default as default, mkToggle, pure};
output-es/DaisyUI.Toggle/index.jsnew file+13
@@ -0,0 +1,13 @@
1+const xs = "toggle-xs";
2+const warning = "toggle-warning";
3+const toggleCls = color => size => "toggle " + color + " " + size;
4+const success = "toggle-success";
5+const sm = "toggle-sm";
6+const secondary = "toggle-secondary";
7+const primary = "toggle-primary";
8+const md = "toggle-md";
9+const lg = "toggle-lg";
10+const info = "toggle-info";
11+const error = "toggle-error";
12+const accent = "toggle-accent";
13+export {accent, error, info, lg, md, primary, secondary, sm, success, toggleCls, warning, xs};
output-es/DaisyUI.Tooltip.Stories/index.jsnew file+67
@@ -0,0 +1,67 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkTooltip = /* #__PURE__ */ React$dBasic$dHooks.component("TooltipStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-8 items-center p-16"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "tooltip ", "data-tip": "hello"},
15+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "Hover me")]
16+ ),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "flex gap-4"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementImpl(
22+ "div",
23+ {className: "tooltip tooltip-top", "data-tip": "top"},
24+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "top")]
25+ ),
26+ Yoga$dReact$dDOM$dInternal.createElementImpl(
27+ "div",
28+ {className: "tooltip tooltip-bottom", "data-tip": "bottom"},
29+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "bottom")]
30+ ),
31+ Yoga$dReact$dDOM$dInternal.createElementImpl(
32+ "div",
33+ {className: "tooltip tooltip-left", "data-tip": "left"},
34+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "left")]
35+ ),
36+ Yoga$dReact$dDOM$dInternal.createElementImpl(
37+ "div",
38+ {className: "tooltip tooltip-right", "data-tip": "right"},
39+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn "}, "right")]
40+ )
41+ ]
42+ ),
43+ Yoga$dReact$dDOM$dInternal.createElementImpl(
44+ "div",
45+ {className: "flex gap-4"},
46+ [
47+ Yoga$dReact$dDOM$dInternal.createElementImpl(
48+ "div",
49+ {className: "tooltip tooltip-primary", "data-tip": "primary"},
50+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-primary "}, "primary")]
51+ ),
52+ Yoga$dReact$dDOM$dInternal.createElementImpl(
53+ "div",
54+ {className: "tooltip tooltip-secondary", "data-tip": "secondary"},
55+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-secondary "}, "secondary")]
56+ ),
57+ Yoga$dReact$dDOM$dInternal.createElementImpl(
58+ "div",
59+ {className: "tooltip tooltip-accent", "data-tip": "accent"},
60+ [Yoga$dReact$dDOM$dInternal.createElementImpl("button", {className: "btn btn-accent "}, "accent")]
61+ )
62+ ]
63+ )
64+ ]
65+)))();
66+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkTooltip)({});
67+export {$$default as default, mkTooltip, pure};
output-es/DaisyUI.Tooltip/index.jsnew file+14
@@ -0,0 +1,14 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const warning = "tooltip-warning";
3+const top = "tooltip-top";
4+const tooltip = tip => position => () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "tooltip " + position, "data-tip": tip});
5+const success = "tooltip-success";
6+const secondary = "tooltip-secondary";
7+const right = "tooltip-right";
8+const primary = "tooltip-primary";
9+const left = "tooltip-left";
10+const info = "tooltip-info";
11+const error = "tooltip-error";
12+const bottom = "tooltip-bottom";
13+const accent = "tooltip-accent";
14+export {accent, bottom, error, info, left, primary, right, secondary, success, tooltip, top, warning};
output-es/DaisyUI.Validator.Stories/index.jsnew file+45
@@ -0,0 +1,45 @@
1+import * as React$dBasic$dHooks from "../React.Basic.Hooks/index.js";
2+import * as React$dBasic$dHooks$dInternal from "../React.Basic.Hooks.Internal/index.js";
3+import * as Type$dEquality from "../Type.Equality/index.js";
4+import * as Yoga$dReact$dDOM$dInternal from "../Yoga.React.DOM.Internal/index.js";
5+import * as YogaStories$dControls from "../YogaStories.Controls/index.js";
6+import * as YogaStories$dStory from "../YogaStories.Story/index.js";
7+const pure = /* #__PURE__ */ (() => React$dBasic$dHooks$dInternal.applicativeRender(Type$dEquality.refl).pure)();
8+const mkValidator = /* #__PURE__ */ React$dBasic$dHooks.component("ValidatorStory")(v => pure(Yoga$dReact$dDOM$dInternal.createElementImpl(
9+ "div",
10+ {className: "flex flex-col gap-4 w-full max-w-xs"},
11+ [
12+ Yoga$dReact$dDOM$dInternal.createElementImpl(
13+ "div",
14+ {className: "fieldset"},
15+ [
16+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Email"),
17+ Yoga$dReact$dDOM$dInternal.createElementImpl(
18+ "div",
19+ {className: "validator"},
20+ [
21+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "email", className: "input ", required: true, placeholder: "mail@site.com"}),
22+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "validator-hint"}, "Enter valid email address")
23+ ]
24+ )
25+ ]
26+ ),
27+ Yoga$dReact$dDOM$dInternal.createElementImpl(
28+ "div",
29+ {className: "fieldset"},
30+ [
31+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "fieldset-legend"}, "Username"),
32+ Yoga$dReact$dDOM$dInternal.createElementImpl(
33+ "div",
34+ {className: "validator"},
35+ [
36+ Yoga$dReact$dDOM$dInternal.createElementNoKidsImpl("input", {type: "text", className: "input ", required: true, placeholder: "Username"}),
37+ Yoga$dReact$dDOM$dInternal.createElementImpl("div", {className: "validator-hint"}, "Required")
38+ ]
39+ )
40+ ]
41+ )
42+ ]
43+)))();
44+const $$default = /* #__PURE__ */ YogaStories$dStory.story()(YogaStories$dControls.initialValuesNilRowRow)(YogaStories$dControls.renderControlsNil)(YogaStories$dControls.toParamsNil)(YogaStories$dControls.fromParamsNil)("default")(mkValidator)({});
45+export {$$default as default, mkValidator, pure};
output-es/DaisyUI.Validator/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Yoga$dReact$dDOM$dHTML$dDiv from "../Yoga.React.DOM.HTML.Div/index.js";
2+const validatorHint = () => Yoga$dReact$dDOM$dHTML$dDiv.div()()({className: "validator-hint"});
3+const validatorCls = "validator";
4+export {validatorCls, validatorHint};
output-es/DaisyUI/index.jsnew file+1
@@ -0,0 +1 @@
1+export {};
output-es/Data.Array.NonEmpty.Internal/foreign.jsnew file+77
@@ -0,0 +1,77 @@
1+export const foldr1Impl = function (f, xs) {
2+ var acc = xs[xs.length - 1];
3+ for (var i = xs.length - 2; i >= 0; i--) {
4+ acc = f(xs[i])(acc);
5+ }
6+ return acc;
7+};
8+
9+export const foldl1Impl = function (f, xs) {
10+ var acc = xs[0];
11+ var len = xs.length;
12+ for (var i = 1; i < len; i++) {
13+ acc = f(acc)(xs[i]);
14+ }
15+ return acc;
16+};
17+
18+export const traverse1Impl = function () {
19+ function Cont(fn) {
20+ this.fn = fn;
21+ }
22+
23+ var emptyList = {};
24+
25+ var ConsCell = function (head, tail) {
26+ this.head = head;
27+ this.tail = tail;
28+ };
29+
30+ function finalCell(head) {
31+ return new ConsCell(head, emptyList);
32+ }
33+
34+ function consList(x) {
35+ return function (xs) {
36+ return new ConsCell(x, xs);
37+ };
38+ }
39+
40+ function listToArray(list) {
41+ var arr = [];
42+ var xs = list;
43+ while (xs !== emptyList) {
44+ arr.push(xs.head);
45+ xs = xs.tail;
46+ }
47+ return arr;
48+ }
49+
50+ return function (apply, map, f) {
51+ var buildFrom = function (x, ys) {
52+ return apply(map(consList)(f(x)))(ys);
53+ };
54+
55+ var go = function (acc, currentLen, xs) {
56+ if (currentLen === 0) {
57+ return acc;
58+ } else {
59+ var last = xs[currentLen - 1];
60+ return new Cont(function () {
61+ var built = go(buildFrom(last, acc), currentLen - 1, xs);
62+ return built;
63+ });
64+ }
65+ };
66+
67+ return function (array) {
68+ var acc = map(finalCell)(f(array[array.length - 1]));
69+ var result = go(acc, array.length - 1, array);
70+ while (result instanceof Cont) {
71+ result = result.fn();
72+ }
73+
74+ return map(listToArray)(result);
75+ };
76+ };
77+}();
output-es/Data.Array.NonEmpty.Internal/index.jsnew file+90
@@ -0,0 +1,90 @@
1+// | This module exports the `NonEmptyArray` constructor.
2+// |
3+// | It is **NOT** intended for public use and is **NOT** versioned.
4+// |
5+// | Its content may change **in any way**, **at any time** and
6+// | **without notice**.
7+import * as Control$dAlt from "../Control.Alt/index.js";
8+import * as Control$dApplicative from "../Control.Applicative/index.js";
9+import * as Control$dApply from "../Control.Apply/index.js";
10+import * as Control$dBind from "../Control.Bind/index.js";
11+import * as Control$dMonad from "../Control.Monad/index.js";
12+import * as Data$dEq from "../Data.Eq/index.js";
13+import * as Data$dFoldable from "../Data.Foldable/index.js";
14+import * as Data$dFoldableWithIndex from "../Data.FoldableWithIndex/index.js";
15+import * as Data$dFunctor from "../Data.Functor/index.js";
16+import * as Data$dFunctorWithIndex from "../Data.FunctorWithIndex/index.js";
17+import * as Data$dOrd from "../Data.Ord/index.js";
18+import * as Data$dSemigroup from "../Data.Semigroup/index.js";
19+import * as Data$dSemigroup$dTraversable from "../Data.Semigroup.Traversable/index.js";
20+import * as Data$dShow from "../Data.Show/index.js";
21+import * as Data$dTraversable from "../Data.Traversable/index.js";
22+import * as Data$dTraversableWithIndex from "../Data.TraversableWithIndex/index.js";
23+import * as Data$dUnfoldable1 from "../Data.Unfoldable1/index.js";
24+import {foldl1Impl, foldr1Impl, traverse1Impl} from "./foreign.js";
25+const NonEmptyArray = x => x;
26+const unfoldable1NonEmptyArray = Data$dUnfoldable1.unfoldable1Array;
27+const traversableWithIndexNonEmptyArray = Data$dTraversableWithIndex.traversableWithIndexArray;
28+const traversableNonEmptyArray = Data$dTraversable.traversableArray;
29+const showNonEmptyArray = dictShow => ({show: v => "(NonEmptyArray " + Data$dShow.showArrayImpl(dictShow.show)(v) + ")"});
30+const semigroupNonEmptyArray = Data$dSemigroup.semigroupArray;
31+const ordNonEmptyArray = dictOrd => Data$dOrd.ordArray(dictOrd);
32+const ord1NonEmptyArray = Data$dOrd.ord1Array;
33+const monadNonEmptyArray = Control$dMonad.monadArray;
34+const functorWithIndexNonEmptyArray = Data$dFunctorWithIndex.functorWithIndexArray;
35+const functorNonEmptyArray = Data$dFunctor.functorArray;
36+const foldableWithIndexNonEmptyArray = Data$dFoldableWithIndex.foldableWithIndexArray;
37+const foldableNonEmptyArray = Data$dFoldable.foldableArray;
38+const foldable1NonEmptyArray = {
39+ foldMap1: dictSemigroup => {
40+ const append = dictSemigroup.append;
41+ return f => {
42+ const $0 = Data$dFunctor.arrayMap(f);
43+ const $1 = foldable1NonEmptyArray.foldl1(append);
44+ return x => $1($0(x));
45+ };
46+ },
47+ foldr1: $0 => $1 => foldr1Impl($0, $1),
48+ foldl1: $0 => $1 => foldl1Impl($0, $1),
49+ Foldable0: () => Data$dFoldable.foldableArray
50+};
51+const traversable1NonEmptyArray = {
52+ traverse1: dictApply => {
53+ const apply = dictApply.apply;
54+ const map = dictApply.Functor0().map;
55+ return f => traverse1Impl(apply, map, f);
56+ },
57+ sequence1: dictApply => traversable1NonEmptyArray.traverse1(dictApply)(Data$dSemigroup$dTraversable.identity),
58+ Foldable10: () => foldable1NonEmptyArray,
59+ Traversable1: () => Data$dTraversable.traversableArray
60+};
61+const eqNonEmptyArray = dictEq => ({eq: Data$dEq.eqArrayImpl(dictEq.eq)});
62+const eq1NonEmptyArray = Data$dEq.eq1Array;
63+const bindNonEmptyArray = Control$dBind.bindArray;
64+const applyNonEmptyArray = Control$dApply.applyArray;
65+const applicativeNonEmptyArray = Control$dApplicative.applicativeArray;
66+const altNonEmptyArray = Control$dAlt.altArray;
67+export {
68+ NonEmptyArray,
69+ altNonEmptyArray,
70+ applicativeNonEmptyArray,
71+ applyNonEmptyArray,
72+ bindNonEmptyArray,
73+ eq1NonEmptyArray,
74+ eqNonEmptyArray,
75+ foldable1NonEmptyArray,
76+ foldableNonEmptyArray,
77+ foldableWithIndexNonEmptyArray,
78+ functorNonEmptyArray,
79+ functorWithIndexNonEmptyArray,
80+ monadNonEmptyArray,
81+ ord1NonEmptyArray,
82+ ordNonEmptyArray,
83+ semigroupNonEmptyArray,
84+ showNonEmptyArray,
85+ traversable1NonEmptyArray,
86+ traversableNonEmptyArray,
87+ traversableWithIndexNonEmptyArray,
88+ unfoldable1NonEmptyArray
89+};
90+export * from "./foreign.js";
output-es/Data.Array.NonEmpty/index.jsnew file+317
@@ -0,0 +1,317 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dBind from "../Control.Bind/index.js";
3+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
4+import * as Data$dArray from "../Data.Array/index.js";
5+import * as Data$dArray$dNonEmpty$dInternal from "../Data.Array.NonEmpty.Internal/index.js";
6+import * as Data$dFoldable from "../Data.Foldable/index.js";
7+import * as Data$dFunctor from "../Data.Functor/index.js";
8+import * as Data$dFunctorWithIndex from "../Data.FunctorWithIndex/index.js";
9+import * as Data$dMaybe from "../Data.Maybe/index.js";
10+import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
11+import * as Data$dOrd from "../Data.Ord/index.js";
12+import * as Data$dSemigroup$dFoldable from "../Data.Semigroup.Foldable/index.js";
13+import * as Data$dTuple from "../Data.Tuple/index.js";
14+const max = x => y => {
15+ const v = Data$dOrd.ordInt.compare(x)(y);
16+ if (v === "LT") { return y; }
17+ if (v === "EQ") { return x; }
18+ if (v === "GT") { return x; }
19+ $runtime.fail();
20+};
21+const intercalate1 = dictSemigroup => {
22+ const foldMap12 = Data$dArray$dNonEmpty$dInternal.foldable1NonEmptyArray.foldMap1({append: v => v1 => j => dictSemigroup.append(v(j))(dictSemigroup.append(j)(v1(j)))});
23+ return a => foldable => foldMap12(x => v => x)(foldable)(a);
24+};
25+const transpose = x => Data$dArray.transpose(x);
26+const toArray = v => v;
27+const unionBy$p = eq => xs => x => Data$dArray.unionBy(eq)(xs)(x);
28+const union$p = dictEq => unionBy$p(dictEq.eq);
29+const unionBy = eq => xs => x => Data$dArray.unionBy(eq)(xs)(x);
30+const union = dictEq => unionBy(dictEq.eq);
31+const unzip = x => {
32+ const $0 = Data$dArray.unzip(x);
33+ return Data$dTuple.$Tuple($0._1, $0._2);
34+};
35+const updateAt = i => x => x$1 => Data$dArray._updateAt(Data$dMaybe.Just, Data$dMaybe.Nothing, i, x, x$1);
36+const zip = xs => ys => Data$dArray.zipWithImpl(Data$dTuple.Tuple, xs, ys);
37+const zipWith = f => xs => ys => Data$dArray.zipWithImpl(f, xs, ys);
38+const zipWithA = dictApplicative => Data$dArray.zipWithA(dictApplicative);
39+const splitAt = i => xs => Data$dArray.splitAt(i)(xs);
40+const some = dictAlternative => dictLazy => x => Data$dArray.some(dictAlternative)(dictLazy)(x);
41+const snoc$p = xs => x => Data$dArray.snoc(xs)(x);
42+const snoc = xs => x => Data$dArray.snoc(xs)(x);
43+const singleton = x => [x];
44+const replicate = i => x => Data$dArray.replicateImpl(max(1)(i), x);
45+const range = x => y => Data$dArray.rangeImpl(x, y);
46+const prependArray = xs => ys => [...xs, ...ys];
47+const modifyAt = i => f => x => Data$dArray.modifyAt(i)(f)(x);
48+const intersectBy$p = eq => xs => Data$dArray.intersectBy(eq)(xs);
49+const intersectBy = eq => xs => x => Data$dArray.intersectBy(eq)(xs)(x);
50+const intersect$p = dictEq => intersectBy$p(dictEq.eq);
51+const intersect = dictEq => intersectBy(dictEq.eq);
52+const intercalate = dictSemigroup => intercalate1(dictSemigroup);
53+const insertAt = i => x => x$1 => Data$dArray._insertAt(Data$dMaybe.Just, Data$dMaybe.Nothing, i, x, x$1);
54+const fromFoldable1 = dictFoldable1 => {
55+ const $0 = dictFoldable1.Foldable0().foldr;
56+ return x => Data$dArray.fromFoldableImpl($0, x);
57+};
58+const fromArray = xs => {
59+ if (xs.length > 0) { return Data$dMaybe.$Maybe("Just", xs); }
60+ return Data$dMaybe.Nothing;
61+};
62+const fromFoldable = dictFoldable => {
63+ const $0 = dictFoldable.foldr;
64+ return x => {
65+ const $1 = Data$dArray.fromFoldableImpl($0, x);
66+ if ($1.length > 0) { return Data$dMaybe.$Maybe("Just", $1); }
67+ return Data$dMaybe.Nothing;
68+ };
69+};
70+const transpose$p = x => {
71+ const $0 = Data$dArray.transpose(x);
72+ if ($0.length > 0) { return Data$dMaybe.$Maybe("Just", $0); }
73+ return Data$dMaybe.Nothing;
74+};
75+const foldr1 = /* #__PURE__ */ (() => Data$dArray$dNonEmpty$dInternal.foldable1NonEmptyArray.foldr1)();
76+const foldl1 = /* #__PURE__ */ (() => Data$dArray$dNonEmpty$dInternal.foldable1NonEmptyArray.foldl1)();
77+const foldMap1 = dictSemigroup => Data$dArray$dNonEmpty$dInternal.foldable1NonEmptyArray.foldMap1(dictSemigroup);
78+const fold1 = dictSemigroup => Data$dArray$dNonEmpty$dInternal.foldable1NonEmptyArray.foldMap1(dictSemigroup)(Data$dSemigroup$dFoldable.identity);
79+const difference$p = dictEq => Data$dFoldable.foldrArray(Data$dArray.delete(dictEq));
80+const cons$p = x => xs => [x, ...xs];
81+const fromNonEmpty = v => [v._1, ...v._2];
82+const concatMap = b => a => Control$dBind.arrayBind(a)(b);
83+const concat = /* #__PURE__ */ (() => {
84+ const $0 = Data$dFunctor.arrayMap(toArray);
85+ return x => Data$dArray.concat($0(x));
86+})();
87+const appendArray = xs => ys => [...xs, ...ys];
88+const alterAt = i => f => x => Data$dArray.alterAt(i)(f)(x);
89+const head = x => {
90+ if (0 < x.length) { return x[0]; }
91+ $runtime.fail();
92+};
93+const init = x => {
94+ if (x.length === 0) { $runtime.fail(); }
95+ return Data$dArray.sliceImpl(0, x.length - 1 | 0, x);
96+};
97+const last = x => {
98+ const $0 = x.length - 1 | 0;
99+ if ($0 >= 0 && $0 < x.length) { return x[$0]; }
100+ $runtime.fail();
101+};
102+const tail = x => {
103+ const $0 = Data$dArray.unconsImpl(v => Data$dMaybe.Nothing, v => xs => Data$dMaybe.$Maybe("Just", xs), x);
104+ if ($0.tag === "Just") { return $0._1; }
105+ $runtime.fail();
106+};
107+const uncons = x => {
108+ const $0 = Data$dArray.unconsImpl(v => Data$dMaybe.Nothing, x$1 => xs => Data$dMaybe.$Maybe("Just", {head: x$1, tail: xs}), x);
109+ if ($0.tag === "Just") { return $0._1; }
110+ $runtime.fail();
111+};
112+const toNonEmpty = x => {
113+ const $0 = uncons(x);
114+ return Data$dNonEmpty.$NonEmpty($0.head, $0.tail);
115+};
116+const unsnoc = x => {
117+ const $0 = Data$dArray.unsnoc(x);
118+ if ($0.tag === "Just") { return $0._1; }
119+ $runtime.fail();
120+};
121+const all = p => x => Data$dArray.allImpl(p, x);
122+const any = p => x => Data$dArray.anyImpl(p, x);
123+const catMaybes = x => Data$dArray.mapMaybe(x$1 => x$1)(x);
124+const $$delete = dictEq => x => x$1 => Data$dArray.deleteBy(dictEq.eq)(x)(x$1);
125+const deleteAt = i => x => Data$dArray._deleteAt(Data$dMaybe.Just, Data$dMaybe.Nothing, i, x);
126+const deleteBy = f => x => x$1 => Data$dArray.deleteBy(f)(x)(x$1);
127+const difference = dictEq => Data$dFoldable.foldrArray(Data$dArray.delete(dictEq));
128+const drop = i => x => {
129+ if (i < 1) { return x; }
130+ return Data$dArray.sliceImpl(i, x.length, x);
131+};
132+const dropEnd = i => x => {
133+ const $0 = x.length - i | 0;
134+ if ($0 < 1) { return []; }
135+ return Data$dArray.sliceImpl(0, $0, x);
136+};
137+const dropWhile = f => x => Data$dArray.span(f)(x).rest;
138+const elem = dictEq => x => x$1 => Data$dArray.elem(dictEq)(x)(x$1);
139+const elemIndex = dictEq => x => x$1 => Data$dArray.findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, v => dictEq.eq(v)(x), x$1);
140+const elemLastIndex = dictEq => x => x$1 => Data$dArray.findLastIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, v => dictEq.eq(v)(x), x$1);
141+const filter = f => x => Data$dArray.filterImpl(f, x);
142+const filterA = dictApplicative => Data$dArray.filterA(dictApplicative);
143+const find = p => x => Data$dArray.find(p)(x);
144+const findIndex = p => x => Data$dArray.findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, p, x);
145+const findLastIndex = x => x$1 => Data$dArray.findLastIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, x, x$1);
146+const findMap = p => x => Data$dArray.findMapImpl(Data$dMaybe.Nothing, Data$dMaybe.isJust, p, x);
147+const foldM = dictMonad => f => acc => x => Data$dArray.foldM(dictMonad)(f)(acc)(x);
148+const foldRecM = dictMonadRec => {
149+ const Monad0 = dictMonadRec.Monad0();
150+ const $0 = Monad0.Applicative0();
151+ return f => acc => array => dictMonadRec.tailRecM(o => {
152+ if (o.b >= array.length) { return $0.pure(Control$dMonad$dRec$dClass.$Step("Done", o.a)); }
153+ return Monad0.Bind1().bind(f(o.a)(array[o.b]))(res$p => $0.pure(Control$dMonad$dRec$dClass.$Step("Loop", {a: res$p, b: o.b + 1 | 0})));
154+ })({a: acc, b: 0});
155+};
156+const index = x => $0 => {
157+ if ($0 >= 0 && $0 < x.length) { return Data$dMaybe.$Maybe("Just", x[$0]); }
158+ return Data$dMaybe.Nothing;
159+};
160+const length = x => x.length;
161+const mapMaybe = f => x => Data$dArray.mapMaybe(f)(x);
162+const notElem = dictEq => x => x$1 => Data$dArray.notElem(dictEq)(x)(x$1);
163+const partition = f => x => Data$dArray.partitionImpl(f, x);
164+const slice = start => end => x => Data$dArray.sliceImpl(start, end, x);
165+const span = f => x => Data$dArray.span(f)(x);
166+const take = i => x => {
167+ if (i < 1) { return []; }
168+ return Data$dArray.sliceImpl(0, i, x);
169+};
170+const takeEnd = i => x => Data$dArray.takeEnd(i)(x);
171+const takeWhile = f => x => Data$dArray.span(f)(x).init;
172+const toUnfoldable = dictUnfoldable => x => {
173+ const len = x.length;
174+ return dictUnfoldable.unfoldr(i => {
175+ if (i < len) { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(x[i], i + 1 | 0)); }
176+ return Data$dMaybe.Nothing;
177+ })(0);
178+};
179+const cons = x => x$1 => [x, ...x$1];
180+const group = dictEq => {
181+ const eq2 = dictEq.eq;
182+ return x => Data$dArray.groupBy(eq2)(x);
183+};
184+const groupAllBy = op => Data$dArray.groupAllBy(op);
185+const groupAll = dictOrd => Data$dArray.groupAllBy(dictOrd.compare);
186+const groupBy = op => x => Data$dArray.groupBy(op)(x);
187+const insert = dictOrd => x => x$1 => Data$dArray.insertBy(dictOrd.compare)(x)(x$1);
188+const insertBy = f => x => x$1 => Data$dArray.insertBy(f)(x)(x$1);
189+const intersperse = x => x$1 => Data$dArray.intersperse(x)(x$1);
190+const mapWithIndex = f => Data$dFunctorWithIndex.mapWithIndexArray(f);
191+const modifyAtIndices = dictFoldable => Data$dArray.modifyAtIndices(dictFoldable);
192+const nub = dictOrd => x => Data$dArray.nubBy(dictOrd.compare)(x);
193+const nubBy = f => x => Data$dArray.nubBy(f)(x);
194+const nubByEq = f => x => Data$dArray.nubByEq(f)(x);
195+const nubEq = dictEq => x => Data$dArray.nubByEq(dictEq.eq)(x);
196+const reverse = x => Data$dArray.reverse(x);
197+const scanl = f => x => x$1 => Data$dArray.scanlImpl(f, x, x$1);
198+const scanr = f => x => x$1 => Data$dArray.scanrImpl(f, x, x$1);
199+const sort = dictOrd => {
200+ const compare = dictOrd.compare;
201+ return x => Data$dArray.sortBy(compare)(x);
202+};
203+const sortBy = f => x => Data$dArray.sortBy(f)(x);
204+const sortWith = dictOrd => f => x => Data$dArray.sortWith(dictOrd)(f)(x);
205+const updateAtIndices = dictFoldable => Data$dArray.updateAtIndices(dictFoldable);
206+const unsafeIndex = () => x => $0 => x[$0];
207+const toUnfoldable1 = dictUnfoldable1 => xs => {
208+ const len = xs.length;
209+ return dictUnfoldable1.unfoldr1(i => Data$dTuple.$Tuple(xs[i], i < (len - 1 | 0) ? Data$dMaybe.$Maybe("Just", i + 1 | 0) : Data$dMaybe.Nothing))(0);
210+};
211+export {
212+ all,
213+ alterAt,
214+ any,
215+ appendArray,
216+ catMaybes,
217+ concat,
218+ concatMap,
219+ cons,
220+ cons$p,
221+ $$delete as delete,
222+ deleteAt,
223+ deleteBy,
224+ difference,
225+ difference$p,
226+ drop,
227+ dropEnd,
228+ dropWhile,
229+ elem,
230+ elemIndex,
231+ elemLastIndex,
232+ filter,
233+ filterA,
234+ find,
235+ findIndex,
236+ findLastIndex,
237+ findMap,
238+ fold1,
239+ foldM,
240+ foldMap1,
241+ foldRecM,
242+ foldl1,
243+ foldr1,
244+ fromArray,
245+ fromFoldable,
246+ fromFoldable1,
247+ fromNonEmpty,
248+ group,
249+ groupAll,
250+ groupAllBy,
251+ groupBy,
252+ head,
253+ index,
254+ init,
255+ insert,
256+ insertAt,
257+ insertBy,
258+ intercalate,
259+ intercalate1,
260+ intersect,
261+ intersect$p,
262+ intersectBy,
263+ intersectBy$p,
264+ intersperse,
265+ last,
266+ length,
267+ mapMaybe,
268+ mapWithIndex,
269+ max,
270+ modifyAt,
271+ modifyAtIndices,
272+ notElem,
273+ nub,
274+ nubBy,
275+ nubByEq,
276+ nubEq,
277+ partition,
278+ prependArray,
279+ range,
280+ replicate,
281+ reverse,
282+ scanl,
283+ scanr,
284+ singleton,
285+ slice,
286+ snoc,
287+ snoc$p,
288+ some,
289+ sort,
290+ sortBy,
291+ sortWith,
292+ span,
293+ splitAt,
294+ tail,
295+ take,
296+ takeEnd,
297+ takeWhile,
298+ toArray,
299+ toNonEmpty,
300+ toUnfoldable,
301+ toUnfoldable1,
302+ transpose,
303+ transpose$p,
304+ uncons,
305+ union,
306+ union$p,
307+ unionBy,
308+ unionBy$p,
309+ unsafeIndex,
310+ unsnoc,
311+ unzip,
312+ updateAt,
313+ updateAtIndices,
314+ zip,
315+ zipWith,
316+ zipWithA
317+};
output-es/Data.Array.Partial/index.jsnew file+7
@@ -0,0 +1,7 @@
1+// | Partial helper functions for working with immutable arrays.
2+import * as Data$dArray from "../Data.Array/index.js";
3+const tail = () => xs => Data$dArray.sliceImpl(1, xs.length, xs);
4+const last = () => xs => xs[xs.length - 1 | 0];
5+const init = () => xs => Data$dArray.sliceImpl(0, xs.length - 1 | 0, xs);
6+const head = () => xs => xs[0];
7+export {head, init, last, tail};
output-es/Data.Array.ST.Iterator/index.jsnew file+83
@@ -0,0 +1,83 @@
1+import * as $runtime from "../runtime.js";
2+const $Iterator = (_1, _2) => ({tag: "Iterator", _1, _2});
3+const Iterator = value0 => value1 => $Iterator(value0, value1);
4+const peek = v => {
5+ const $0 = v._2;
6+ return () => {
7+ const i = $0.value;
8+ return v._1(i);
9+ };
10+};
11+const next = v => {
12+ const $0 = v._2;
13+ return () => {
14+ const i = $0.value;
15+ const $1 = $0.value;
16+ $0.value = $1 + 1 | 0;
17+ return v._1(i);
18+ };
19+};
20+const pushWhile = p => iter => array => () => {
21+ let $$break = false;
22+ const $0 = iter._2;
23+ while (
24+ (() => {
25+ const $1 = $$break;
26+ return !$1;
27+ })()
28+ ) {
29+ const i = $0.value;
30+ const mx = iter._1(i);
31+ if (mx.tag === "Just" && p(mx._1)) {
32+ array.push(mx._1);
33+ iter._2.value;
34+ const $1 = iter._2.value;
35+ iter._2.value = $1 + 1 | 0;
36+ continue;
37+ }
38+ $$break = true;
39+ }
40+};
41+const pushAll = /* #__PURE__ */ pushWhile(v => true);
42+const iterator = f => {
43+ const $0 = Iterator(f);
44+ return () => {
45+ const $1 = {value: 0};
46+ return $0($1);
47+ };
48+};
49+const iterate = iter => f => () => {
50+ let $$break = false;
51+ const $0 = iter._2;
52+ while (
53+ (() => {
54+ const $1 = $$break;
55+ return !$1;
56+ })()
57+ ) {
58+ const i = $0.value;
59+ const $1 = $0.value;
60+ $0.value = $1 + 1 | 0;
61+ const mx = iter._1(i);
62+ if (mx.tag === "Just") {
63+ f(mx._1)();
64+ continue;
65+ }
66+ if (mx.tag === "Nothing") {
67+ $$break = true;
68+ continue;
69+ }
70+ $runtime.fail();
71+ }
72+};
73+const exhausted = x => {
74+ const $0 = x._2;
75+ return () => {
76+ const i = $0.value;
77+ const $1 = x._1(i);
78+ if ($1.tag === "Nothing") { return true; }
79+ if ($1.tag === "Just") { return false; }
80+ $runtime.fail();
81+ };
82+};
83+export {$Iterator, Iterator, exhausted, iterate, iterator, next, peek, pushAll, pushWhile};
output-es/Data.Array.ST.Partial/foreign.jsnew file+7
@@ -0,0 +1,7 @@
1+export const peekImpl = function (i, xs) {
2+ return xs[i];
3+};
4+
5+export const pokeImpl = function (i, a, xs) {
6+ xs[i] = a;
7+};
output-es/Data.Array.ST.Partial/index.jsnew file+9
@@ -0,0 +1,9 @@
1+// | Partial functions for working with mutable arrays using the `ST` effect.
2+// |
3+// | This module is particularly helpful when performance is very important.
4+import * as Control$dMonad$dST$dUncurried from "../Control.Monad.ST.Uncurried/index.js";
5+import {peekImpl, pokeImpl} from "./foreign.js";
6+const poke = () => Control$dMonad$dST$dUncurried.runSTFn3(pokeImpl);
7+const peek = () => Control$dMonad$dST$dUncurried.runSTFn2(peekImpl);
8+export {peek, poke};
9+export * from "./foreign.js";
output-es/Data.Array.ST/foreign.jsnew file+113
@@ -0,0 +1,113 @@
1+function newSTArray() {
2+ return [];
3+}
4+export { newSTArray as new };
5+
6+export const peekImpl = function (just, nothing, i, xs) {
7+ return i >= 0 && i < xs.length ? just(xs[i]) : nothing;
8+};
9+
10+export const pokeImpl = function (i, a, xs) {
11+ var ret = i >= 0 && i < xs.length;
12+ if (ret) xs[i] = a;
13+ return ret;
14+};
15+
16+export const lengthImpl = function (xs) {
17+ return xs.length;
18+};
19+
20+export const popImpl = function (just, nothing, xs) {
21+ return xs.length > 0 ? just(xs.pop()) : nothing;
22+};
23+
24+export const pushAllImpl = function (as, xs) {
25+ return xs.push.apply(xs, as);
26+};
27+
28+export const shiftImpl = function (just, nothing, xs) {
29+ return xs.length > 0 ? just(xs.shift()) : nothing;
30+};
31+
32+export const unshiftAllImpl = function (as, xs) {
33+ return xs.unshift.apply(xs, as);
34+};
35+
36+export const spliceImpl = function (i, howMany, bs, xs) {
37+ return xs.splice.apply(xs, [i, howMany].concat(bs));
38+};
39+
40+function unsafeFreezeThawImpl(xs) {
41+ return xs;
42+}
43+
44+export const unsafeFreezeImpl = unsafeFreezeThawImpl;
45+
46+export const unsafeThawImpl = unsafeFreezeThawImpl;
47+
48+function copyImpl(xs) {
49+ return xs.slice();
50+}
51+
52+export const freezeImpl = copyImpl;
53+
54+export const thawImpl = copyImpl;
55+
56+export const cloneImpl = copyImpl;
57+
58+export const sortByImpl = (function () {
59+ function mergeFromTo(compare, fromOrdering, xs1, xs2, from, to) {
60+ var mid;
61+ var i;
62+ var j;
63+ var k;
64+ var x;
65+ var y;
66+ var c;
67+
68+ mid = from + ((to - from) >> 1);
69+ if (mid - from > 1) mergeFromTo(compare, fromOrdering, xs2, xs1, from, mid);
70+ if (to - mid > 1) mergeFromTo(compare, fromOrdering, xs2, xs1, mid, to);
71+
72+ i = from;
73+ j = mid;
74+ k = from;
75+ while (i < mid && j < to) {
76+ x = xs2[i];
77+ y = xs2[j];
78+ c = fromOrdering(compare(x)(y));
79+ if (c > 0) {
80+ xs1[k++] = y;
81+ ++j;
82+ } else {
83+ xs1[k++] = x;
84+ ++i;
85+ }
86+ }
87+ while (i < mid) {
88+ xs1[k++] = xs2[i++];
89+ }
90+ while (j < to) {
91+ xs1[k++] = xs2[j++];
92+ }
93+ }
94+
95+ return function (compare, fromOrdering, xs) {
96+ if (xs.length < 2) return xs;
97+
98+ mergeFromTo(compare, fromOrdering, xs, xs.slice(0), 0, xs.length);
99+
100+ return xs;
101+ };
102+})();
103+
104+export const toAssocArrayImpl = function (xs) {
105+ var n = xs.length;
106+ var as = new Array(n);
107+ for (var i = 0; i < n; i++) as[i] = { value: xs[i], index: i };
108+ return as;
109+};
110+
111+export const pushImpl = function (a, xs) {
112+ return xs.push(a);
113+};
output-es/Data.Array.ST/index.jsnew file+86
@@ -0,0 +1,86 @@
1+// | Helper functions for working with mutable arrays using the `ST` effect.
2+// |
3+// | This module can be used when performance is important and mutation is a local effect.
4+import * as $runtime from "../runtime.js";
5+import * as Control$dMonad$dST$dUncurried from "../Control.Monad.ST.Uncurried/index.js";
6+import * as Data$dMaybe from "../Data.Maybe/index.js";
7+import {
8+ new as $$new,
9+ cloneImpl,
10+ freezeImpl,
11+ lengthImpl,
12+ peekImpl,
13+ pokeImpl,
14+ popImpl,
15+ pushAllImpl,
16+ pushImpl,
17+ shiftImpl,
18+ sortByImpl,
19+ spliceImpl,
20+ thawImpl,
21+ toAssocArrayImpl,
22+ unsafeFreezeImpl,
23+ unsafeThawImpl,
24+ unshiftAllImpl
25+} from "./foreign.js";
26+const unshiftAll = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn2(unshiftAllImpl);
27+const unshift = a => Control$dMonad$dST$dUncurried.runSTFn2(unshiftAllImpl)([a]);
28+const unsafeThaw = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn1(unsafeThawImpl);
29+const unsafeFreeze = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn1(unsafeFreezeImpl);
30+const toAssocArray = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn1(toAssocArrayImpl);
31+const thaw = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn1(thawImpl);
32+const withArray = f => xs => () => {
33+ const result = [...xs];
34+ f(result)();
35+ return result;
36+};
37+const splice = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn4(spliceImpl);
38+const sortBy = comp => Control$dMonad$dST$dUncurried.runSTFn3(sortByImpl)(comp)(v => {
39+ if (v === "GT") { return 1; }
40+ if (v === "EQ") { return 0; }
41+ if (v === "LT") { return -1; }
42+ $runtime.fail();
43+});
44+const sortWith = dictOrd => f => sortBy(x => y => dictOrd.compare(f(x))(f(y)));
45+const sort = dictOrd => sortBy(dictOrd.compare);
46+const shift = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn3(shiftImpl)(Data$dMaybe.Just)(Data$dMaybe.Nothing);
47+const run = st => st();
48+const pushAll = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn2(pushAllImpl);
49+const push = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn2(pushImpl);
50+const pop = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn3(popImpl)(Data$dMaybe.Just)(Data$dMaybe.Nothing);
51+const poke = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn3(pokeImpl);
52+const peek = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn4(peekImpl)(Data$dMaybe.Just)(Data$dMaybe.Nothing);
53+const modify = i => f => xs => () => {
54+ const entry = peekImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, i, xs);
55+ if (entry.tag === "Just") { return pokeImpl(i, f(entry._1), xs); }
56+ if (entry.tag === "Nothing") { return false; }
57+ $runtime.fail();
58+};
59+const length = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn1(lengthImpl);
60+const freeze = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn1(freezeImpl);
61+const clone = /* #__PURE__ */ Control$dMonad$dST$dUncurried.runSTFn1(cloneImpl);
62+export {
63+ clone,
64+ freeze,
65+ length,
66+ modify,
67+ peek,
68+ poke,
69+ pop,
70+ push,
71+ pushAll,
72+ run,
73+ shift,
74+ sort,
75+ sortBy,
76+ sortWith,
77+ splice,
78+ thaw,
79+ toAssocArray,
80+ unsafeFreeze,
81+ unsafeThaw,
82+ unshift,
83+ unshiftAll,
84+ withArray
85+};
86+export * from "./foreign.js";
output-es/Data.Array/foreign.jsnew file+298
@@ -0,0 +1,298 @@
1+//------------------------------------------------------------------------------
2+// Array creation --------------------------------------------------------------
3+//------------------------------------------------------------------------------
4+
5+export const rangeImpl = function (start, end) {
6+ var step = start > end ? -1 : 1;
7+ var result = new Array(step * (end - start) + 1);
8+ var i = start, n = 0;
9+ while (i !== end) {
10+ result[n++] = i;
11+ i += step;
12+ }
13+ result[n] = i;
14+ return result;
15+};
16+
17+var replicateFill = function (count, value) {
18+ if (count < 1) {
19+ return [];
20+ }
21+ var result = new Array(count);
22+ return result.fill(value);
23+};
24+
25+var replicatePolyfill = function (count, value) {
26+ var result = [];
27+ var n = 0;
28+ for (var i = 0; i < count; i++) {
29+ result[n++] = value;
30+ }
31+ return result;
32+};
33+
34+// In browsers that have Array.prototype.fill we use it, as it's faster.
35+export const replicateImpl = typeof Array.prototype.fill === "function" ? replicateFill : replicatePolyfill;
36+
37+export const fromFoldableImpl = (function () {
38+ function Cons(head, tail) {
39+ this.head = head;
40+ this.tail = tail;
41+ }
42+ var emptyList = {};
43+
44+ function curryCons(head) {
45+ return function (tail) {
46+ return new Cons(head, tail);
47+ };
48+ }
49+
50+ function listToArray(list) {
51+ var result = [];
52+ var count = 0;
53+ var xs = list;
54+ while (xs !== emptyList) {
55+ result[count++] = xs.head;
56+ xs = xs.tail;
57+ }
58+ return result;
59+ }
60+
61+ return function (foldr, xs) {
62+ return listToArray(foldr(curryCons)(emptyList)(xs));
63+ };
64+})();
65+
66+//------------------------------------------------------------------------------
67+// Array size ------------------------------------------------------------------
68+//------------------------------------------------------------------------------
69+
70+export const length = function (xs) {
71+ return xs.length;
72+};
73+
74+//------------------------------------------------------------------------------
75+// Non-indexed reads -----------------------------------------------------------
76+//------------------------------------------------------------------------------
77+
78+export const unconsImpl = function (empty, next, xs) {
79+ return xs.length === 0 ? empty({}) : next(xs[0])(xs.slice(1));
80+};
81+
82+//------------------------------------------------------------------------------
83+// Indexed operations ----------------------------------------------------------
84+//------------------------------------------------------------------------------
85+
86+export const indexImpl = function (just, nothing, xs, i) {
87+ return i < 0 || i >= xs.length ? nothing : just(xs[i]);
88+};
89+
90+export const findMapImpl = function (nothing, isJust, f, xs) {
91+ for (var i = 0; i < xs.length; i++) {
92+ var result = f(xs[i]);
93+ if (isJust(result)) return result;
94+ }
95+ return nothing;
96+};
97+
98+export const findIndexImpl = function (just, nothing, f, xs) {
99+ for (var i = 0, l = xs.length; i < l; i++) {
100+ if (f(xs[i])) return just(i);
101+ }
102+ return nothing;
103+};
104+
105+export const findLastIndexImpl = function (just, nothing, f, xs) {
106+ for (var i = xs.length - 1; i >= 0; i--) {
107+ if (f(xs[i])) return just(i);
108+ }
109+ return nothing;
110+};
111+
112+export const _insertAt = function (just, nothing, i, a, l) {
113+ if (i < 0 || i > l.length) return nothing;
114+ var l1 = l.slice();
115+ l1.splice(i, 0, a);
116+ return just(l1);
117+};
118+
119+export const _deleteAt = function (just, nothing, i, l) {
120+ if (i < 0 || i >= l.length) return nothing;
121+ var l1 = l.slice();
122+ l1.splice(i, 1);
123+ return just(l1);
124+};
125+
126+export const _updateAt = function (just, nothing, i, a, l) {
127+ if (i < 0 || i >= l.length) return nothing;
128+ var l1 = l.slice();
129+ l1[i] = a;
130+ return just(l1);
131+};
132+
133+//------------------------------------------------------------------------------
134+// Transformations -------------------------------------------------------------
135+//------------------------------------------------------------------------------
136+
137+export const reverse = function (l) {
138+ return l.slice().reverse();
139+};
140+
141+export const concat = function (xss) {
142+ if (xss.length <= 10000) {
143+ // This method is faster, but it crashes on big arrays.
144+ // So we use it when can and fallback to simple variant otherwise.
145+ return Array.prototype.concat.apply([], xss);
146+ }
147+
148+ var result = [];
149+ for (var i = 0, l = xss.length; i < l; i++) {
150+ var xs = xss[i];
151+ for (var j = 0, m = xs.length; j < m; j++) {
152+ result.push(xs[j]);
153+ }
154+ }
155+ return result;
156+};
157+
158+export const filterImpl = function (f, xs) {
159+ return xs.filter(f);
160+};
161+
162+export const partitionImpl = function (f, xs) {
163+ var yes = [];
164+ var no = [];
165+ for (var i = 0; i < xs.length; i++) {
166+ var x = xs[i];
167+ if (f(x))
168+ yes.push(x);
169+ else
170+ no.push(x);
171+ }
172+ return { yes: yes, no: no };
173+};
174+
175+export const scanlImpl = function (f, b, xs) {
176+ var len = xs.length;
177+ var acc = b;
178+ var out = new Array(len);
179+ for (var i = 0; i < len; i++) {
180+ acc = f(acc)(xs[i]);
181+ out[i] = acc;
182+ }
183+ return out;
184+};
185+
186+export const scanrImpl = function (f, b, xs) {
187+ var len = xs.length;
188+ var acc = b;
189+ var out = new Array(len);
190+ for (var i = len - 1; i >= 0; i--) {
191+ acc = f(xs[i])(acc);
192+ out[i] = acc;
193+ }
194+ return out;
195+};
196+
197+//------------------------------------------------------------------------------
198+// Sorting ---------------------------------------------------------------------
199+//------------------------------------------------------------------------------
200+
201+export const sortByImpl = (function () {
202+ function mergeFromTo(compare, fromOrdering, xs1, xs2, from, to) {
203+ var mid;
204+ var i;
205+ var j;
206+ var k;
207+ var x;
208+ var y;
209+ var c;
210+
211+ mid = from + ((to - from) >> 1);
212+ if (mid - from > 1) mergeFromTo(compare, fromOrdering, xs2, xs1, from, mid);
213+ if (to - mid > 1) mergeFromTo(compare, fromOrdering, xs2, xs1, mid, to);
214+
215+ i = from;
216+ j = mid;
217+ k = from;
218+ while (i < mid && j < to) {
219+ x = xs2[i];
220+ y = xs2[j];
221+ c = fromOrdering(compare(x)(y));
222+ if (c > 0) {
223+ xs1[k++] = y;
224+ ++j;
225+ }
226+ else {
227+ xs1[k++] = x;
228+ ++i;
229+ }
230+ }
231+ while (i < mid) {
232+ xs1[k++] = xs2[i++];
233+ }
234+ while (j < to) {
235+ xs1[k++] = xs2[j++];
236+ }
237+ }
238+
239+ return function (compare, fromOrdering, xs) {
240+ var out;
241+
242+ if (xs.length < 2) return xs;
243+
244+ out = xs.slice(0);
245+ mergeFromTo(compare, fromOrdering, out, xs.slice(0), 0, xs.length);
246+
247+ return out;
248+ };
249+})();
250+
251+//------------------------------------------------------------------------------
252+// Subarrays -------------------------------------------------------------------
253+//------------------------------------------------------------------------------
254+
255+export const sliceImpl = function (s, e, l) {
256+ return l.slice(s, e);
257+};
258+
259+//------------------------------------------------------------------------------
260+// Zipping ---------------------------------------------------------------------
261+//------------------------------------------------------------------------------
262+
263+export const zipWithImpl = function (f, xs, ys) {
264+ var l = xs.length < ys.length ? xs.length : ys.length;
265+ var result = new Array(l);
266+ for (var i = 0; i < l; i++) {
267+ result[i] = f(xs[i])(ys[i]);
268+ }
269+ return result;
270+};
271+
272+//------------------------------------------------------------------------------
273+// Folding ---------------------------------------------------------------------
274+//------------------------------------------------------------------------------
275+
276+export const anyImpl = function (p, xs) {
277+ var len = xs.length;
278+ for (var i = 0; i < len; i++) {
279+ if (p(xs[i])) return true;
280+ }
281+ return false;
282+};
283+
284+export const allImpl = function (p, xs) {
285+ var len = xs.length;
286+ for (var i = 0; i < len; i++) {
287+ if (!p(xs[i])) return false;
288+ }
289+ return true;
290+};
291+
292+//------------------------------------------------------------------------------
293+// Partial ---------------------------------------------------------------------
294+//------------------------------------------------------------------------------
295+
296+export const unsafeIndexImpl = function (xs, n) {
297+ return xs[n];
298+};
output-es/Data.Array/index.jsnew file+556
@@ -0,0 +1,556 @@
1+// | Helper functions for working with immutable Javascript arrays.
2+// |
3+// | _Note_: Depending on your use-case, you may prefer to use `Data.List` or
4+// | `Data.Sequence` instead, which might give better performance for certain
5+// | use cases. This module is useful when integrating with JavaScript libraries
6+// | which use arrays, but immutable arrays are not a practical data structure
7+// | for many use cases due to their poor asymptotics.
8+// |
9+// | In addition to the functions in this module, Arrays have a number of
10+// | useful instances:
11+// |
12+// | * `Functor`, which provides `map :: forall a b. (a -> b) -> Array a ->
13+// | Array b`
14+// | * `Apply`, which provides `(<*>) :: forall a b. Array (a -> b) -> Array a
15+// | -> Array b`. This function works a bit like a Cartesian product; the
16+// | result array is constructed by applying each function in the first
17+// | array to each value in the second, so that the result array ends up with
18+// | a length equal to the product of the two arguments' lengths.
19+// | * `Bind`, which provides `(>>=) :: forall a b. (a -> Array b) -> Array a
20+// | -> Array b` (this is the same as `concatMap`).
21+// | * `Semigroup`, which provides `(<>) :: forall a. Array a -> Array a ->
22+// | Array a`, for concatenating arrays.
23+// | * `Foldable`, which provides a slew of functions for *folding* (also known
24+// | as *reducing*) arrays down to one value. For example,
25+// | `Data.Foldable.or` tests whether an array of `Boolean` values contains
26+// | at least one `true` value.
27+// | * `Traversable`, which provides the PureScript version of a for-loop,
28+// | allowing you to STAI.iterate over an array and accumulate effects.
29+// |
30+import * as $runtime from "../runtime.js";
31+import * as Control$dBind from "../Control.Bind/index.js";
32+import * as Control$dMonad$dRec$dClass from "../Control.Monad.Rec.Class/index.js";
33+import * as Control$dMonad$dST$dInternal from "../Control.Monad.ST.Internal/index.js";
34+import * as Data$dArray$dST from "../Data.Array.ST/index.js";
35+import * as Data$dArray$dST$dIterator from "../Data.Array.ST.Iterator/index.js";
36+import * as Data$dFoldable from "../Data.Foldable/index.js";
37+import * as Data$dFunctor from "../Data.Functor/index.js";
38+import * as Data$dFunctorWithIndex from "../Data.FunctorWithIndex/index.js";
39+import * as Data$dMaybe from "../Data.Maybe/index.js";
40+import * as Data$dOrd from "../Data.Ord/index.js";
41+import * as Data$dTraversable from "../Data.Traversable/index.js";
42+import * as Data$dTuple from "../Data.Tuple/index.js";
43+import {
44+ _deleteAt,
45+ _insertAt,
46+ _updateAt,
47+ allImpl,
48+ anyImpl,
49+ concat,
50+ filterImpl,
51+ findIndexImpl,
52+ findLastIndexImpl,
53+ findMapImpl,
54+ fromFoldableImpl,
55+ indexImpl,
56+ length,
57+ partitionImpl,
58+ rangeImpl,
59+ replicateImpl,
60+ reverse,
61+ scanlImpl,
62+ scanrImpl,
63+ sliceImpl,
64+ sortByImpl,
65+ unconsImpl,
66+ unsafeIndexImpl,
67+ zipWithImpl
68+} from "./foreign.js";
69+const traverse_ = /* #__PURE__ */ Data$dFoldable.traverse_(Control$dMonad$dST$dInternal.applicativeST);
70+const intercalate1 = dictMonoid => {
71+ const $0 = dictMonoid.Semigroup0();
72+ const mempty = dictMonoid.mempty;
73+ return sep => xs => Data$dFoldable.foldlArray(v => v1 => {
74+ if (v.init) { return {init: false, acc: v1}; }
75+ return {init: false, acc: $0.append(v.acc)($0.append(sep)(v1))};
76+ })({init: true, acc: mempty})(xs).acc;
77+};
78+const zipWith = $0 => $1 => $2 => zipWithImpl($0, $1, $2);
79+const zipWithA = dictApplicative => {
80+ const sequence1 = Data$dTraversable.traversableArray.traverse(dictApplicative)(Data$dTraversable.identity);
81+ return f => xs => ys => sequence1(zipWithImpl(f, xs, ys));
82+};
83+const zip = /* #__PURE__ */ zipWith(Data$dTuple.Tuple);
84+const updateAtIndices = dictFoldable => {
85+ const traverse_1 = traverse_(dictFoldable);
86+ return us => xs => {
87+ const result = [...xs];
88+ traverse_1(v => {
89+ const $0 = v._2;
90+ const $1 = v._1;
91+ return () => Data$dArray$dST.pokeImpl($1, $0, result);
92+ })(us)();
93+ return result;
94+ };
95+};
96+const updateAt = $0 => $1 => $2 => _updateAt(Data$dMaybe.Just, Data$dMaybe.Nothing, $0, $1, $2);
97+const unsafeIndex = () => $0 => $1 => $0[$1];
98+const uncons = $0 => unconsImpl(v => Data$dMaybe.Nothing, x => xs => Data$dMaybe.$Maybe("Just", {head: x, tail: xs}), $0);
99+const toUnfoldable = dictUnfoldable => xs => {
100+ const len = xs.length;
101+ return dictUnfoldable.unfoldr(i => {
102+ if (i < len) { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(xs[i], i + 1 | 0)); }
103+ return Data$dMaybe.Nothing;
104+ })(0);
105+};
106+const tail = $0 => unconsImpl(v => Data$dMaybe.Nothing, v => xs => Data$dMaybe.$Maybe("Just", xs), $0);
107+const sortBy = comp => $0 => sortByImpl(
108+ comp,
109+ v => {
110+ if (v === "GT") { return 1; }
111+ if (v === "EQ") { return 0; }
112+ if (v === "LT") { return -1; }
113+ $runtime.fail();
114+ },
115+ $0
116+);
117+const sortWith = dictOrd => f => sortBy(x => y => dictOrd.compare(f(x))(f(y)));
118+const sort = dictOrd => {
119+ const compare = dictOrd.compare;
120+ return xs => sortBy(compare)(xs);
121+};
122+const snoc = xs => x => (() => {
123+ const $0 = Data$dArray$dST.push(x);
124+ return () => {
125+ const result = [...xs];
126+ $0(result)();
127+ return result;
128+ };
129+})()();
130+const slice = $0 => $1 => $2 => sliceImpl($0, $1, $2);
131+const splitAt = v => v1 => {
132+ if (v <= 0) { return {before: [], after: v1}; }
133+ return {before: sliceImpl(0, v, v1), after: sliceImpl(v, v1.length, v1)};
134+};
135+const take = n => xs => {
136+ if (n < 1) { return []; }
137+ return sliceImpl(0, n, xs);
138+};
139+const singleton = a => [a];
140+const scanr = $0 => $1 => $2 => scanrImpl($0, $1, $2);
141+const scanl = $0 => $1 => $2 => scanlImpl($0, $1, $2);
142+const replicate = $0 => $1 => replicateImpl($0, $1);
143+const range = $0 => $1 => rangeImpl($0, $1);
144+const partition = $0 => $1 => partitionImpl($0, $1);
145+const $$null = xs => xs.length === 0;
146+const modifyAtIndices = dictFoldable => {
147+ const traverse_1 = traverse_(dictFoldable);
148+ return is => f => xs => {
149+ const result = [...xs];
150+ traverse_1(i => Data$dArray$dST.modify(i)(f)(result))(is)();
151+ return result;
152+ };
153+};
154+const mapWithIndex = Data$dFunctorWithIndex.mapWithIndexArray;
155+const intersperse = a => arr => {
156+ const v = arr.length;
157+ if (v < 2) { return arr; }
158+ const out = [];
159+ out.push(arr[0]);
160+ for (const idx of $runtime.range(1, v)) {
161+ out.push(a);
162+ out.push(arr[idx]);
163+ }
164+ return out;
165+};
166+const intercalate = dictMonoid => intercalate1(dictMonoid);
167+const insertAt = $0 => $1 => $2 => _insertAt(Data$dMaybe.Just, Data$dMaybe.Nothing, $0, $1, $2);
168+const init = xs => {
169+ if (xs.length === 0) { return Data$dMaybe.Nothing; }
170+ return Data$dMaybe.$Maybe("Just", sliceImpl(0, xs.length - 1 | 0, xs));
171+};
172+const index = $0 => $1 => {
173+ if ($1 >= 0 && $1 < $0.length) { return Data$dMaybe.$Maybe("Just", $0[$1]); }
174+ return Data$dMaybe.Nothing;
175+};
176+const last = xs => {
177+ const $0 = xs.length - 1 | 0;
178+ if ($0 >= 0 && $0 < xs.length) { return Data$dMaybe.$Maybe("Just", xs[$0]); }
179+ return Data$dMaybe.Nothing;
180+};
181+const unsnoc = xs => {
182+ if (xs.length === 0) {
183+ const $0 = xs.length - 1 | 0;
184+ return Data$dMaybe.Nothing;
185+ }
186+ const $0 = xs.length - 1 | 0;
187+ if ($0 >= 0 && $0 < xs.length) { return Data$dMaybe.$Maybe("Just", {init: sliceImpl(0, xs.length - 1 | 0, xs), last: xs[$0]}); }
188+ return Data$dMaybe.Nothing;
189+};
190+const modifyAt = i => f => xs => {
191+ if (i >= 0 && i < xs.length) { return _updateAt(Data$dMaybe.Just, Data$dMaybe.Nothing, i, f(xs[i]), xs); }
192+ return Data$dMaybe.Nothing;
193+};
194+const span = p => arr => {
195+ const go = go$a0$copy => {
196+ let go$a0 = go$a0$copy, go$c = true, go$r;
197+ while (go$c) {
198+ const i = go$a0;
199+ if (i >= 0 && i < arr.length) {
200+ if (p(arr[i])) {
201+ go$a0 = i + 1 | 0;
202+ continue;
203+ }
204+ go$c = false;
205+ go$r = Data$dMaybe.$Maybe("Just", i);
206+ continue;
207+ }
208+ go$c = false;
209+ go$r = Data$dMaybe.Nothing;
210+ }
211+ return go$r;
212+ };
213+ const breakIndex = go(0);
214+ if (breakIndex.tag === "Just") {
215+ if (breakIndex._1 === 0) { return {init: [], rest: arr}; }
216+ return {init: sliceImpl(0, breakIndex._1, arr), rest: sliceImpl(breakIndex._1, arr.length, arr)};
217+ }
218+ if (breakIndex.tag === "Nothing") { return {init: arr, rest: []}; }
219+ $runtime.fail();
220+};
221+const takeWhile = p => xs => span(p)(xs).init;
222+const unzip = xs => {
223+ const fsts = [];
224+ const snds = [];
225+ const $0 = {value: 0};
226+ Data$dArray$dST$dIterator.iterate(Data$dArray$dST$dIterator.$Iterator(
227+ v => {
228+ if (v >= 0 && v < xs.length) { return Data$dMaybe.$Maybe("Just", xs[v]); }
229+ return Data$dMaybe.Nothing;
230+ },
231+ $0
232+ ))(v => {
233+ const $1 = v._1;
234+ const $2 = v._2;
235+ return () => {
236+ fsts.push($1);
237+ snds.push($2);
238+ };
239+ })();
240+ return Data$dTuple.$Tuple(fsts, snds);
241+};
242+const head = xs => {
243+ if (0 < xs.length) { return Data$dMaybe.$Maybe("Just", xs[0]); }
244+ return Data$dMaybe.Nothing;
245+};
246+const nubBy = comp => xs => {
247+ const indexedAndSorted = sortBy(x => y => comp(x._2)(y._2))(Data$dFunctorWithIndex.mapWithIndexArray(Data$dTuple.Tuple)(xs));
248+ if (0 < indexedAndSorted.length) {
249+ return Data$dFunctor.arrayMap(Data$dTuple.snd)(sortWith(Data$dOrd.ordInt)(Data$dTuple.fst)((() => {
250+ const result = [indexedAndSorted[0]];
251+ for (const v1 of indexedAndSorted) {
252+ const $0 = comp((() => {
253+ const $0 = result.length - 1 | 0;
254+ if ($0 >= 0 && $0 < result.length) { return result[$0]._2; }
255+ $runtime.fail();
256+ })())(v1._2);
257+ if ($0 === "LT" || $0 === "GT" || $0 !== "EQ") { result.push(v1); }
258+ }
259+ return result;
260+ })()));
261+ }
262+ return [];
263+};
264+const nub = dictOrd => nubBy(dictOrd.compare);
265+const groupBy = op => xs => {
266+ const result = [];
267+ const $0 = {value: 0};
268+ const iter = Data$dArray$dST$dIterator.$Iterator(
269+ v => {
270+ if (v >= 0 && v < xs.length) { return Data$dMaybe.$Maybe("Just", xs[v]); }
271+ return Data$dMaybe.Nothing;
272+ },
273+ $0
274+ );
275+ Data$dArray$dST$dIterator.iterate(iter)(x => () => {
276+ const sub1 = [];
277+ sub1.push(x);
278+ Data$dArray$dST$dIterator.pushWhile(op(x))(iter)(sub1)();
279+ result.push(sub1);
280+ })();
281+ return result;
282+};
283+const groupAllBy = cmp => {
284+ const $0 = groupBy(x => y => cmp(x)(y) === "EQ");
285+ return x => $0(sortBy(cmp)(x));
286+};
287+const groupAll = dictOrd => groupAllBy(dictOrd.compare);
288+const group = dictEq => {
289+ const eq2 = dictEq.eq;
290+ return xs => groupBy(eq2)(xs);
291+};
292+const fromFoldable = dictFoldable => {
293+ const $0 = dictFoldable.foldr;
294+ return $1 => fromFoldableImpl($0, $1);
295+};
296+const foldr = Data$dFoldable.foldrArray;
297+const foldl = Data$dFoldable.foldlArray;
298+const transpose = xs => {
299+ const go = go$a0$copy => go$a1$copy => {
300+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
301+ while (go$c) {
302+ const idx = go$a0, allArrays = go$a1;
303+ const v = Data$dFoldable.foldlArray(acc => nextArr => {
304+ if (idx >= 0 && idx < nextArr.length) {
305+ const $0 = nextArr[idx];
306+ return Data$dMaybe.$Maybe(
307+ "Just",
308+ (() => {
309+ if (acc.tag === "Nothing") { return [$0]; }
310+ if (acc.tag === "Just") { return snoc(acc._1)($0); }
311+ $runtime.fail();
312+ })()
313+ );
314+ }
315+ return acc;
316+ })(Data$dMaybe.Nothing)(xs);
317+ if (v.tag === "Nothing") {
318+ go$c = false;
319+ go$r = allArrays;
320+ continue;
321+ }
322+ if (v.tag === "Just") {
323+ go$a0 = idx + 1 | 0;
324+ go$a1 = snoc(allArrays)(v._1);
325+ continue;
326+ }
327+ $runtime.fail();
328+ }
329+ return go$r;
330+ };
331+ return go(0)([]);
332+};
333+const foldRecM = dictMonadRec => {
334+ const Monad0 = dictMonadRec.Monad0();
335+ const $0 = Monad0.Applicative0();
336+ return f => b => array => dictMonadRec.tailRecM(o => {
337+ if (o.b >= array.length) { return $0.pure(Control$dMonad$dRec$dClass.$Step("Done", o.a)); }
338+ return Monad0.Bind1().bind(f(o.a)(array[o.b]))(res$p => $0.pure(Control$dMonad$dRec$dClass.$Step("Loop", {a: res$p, b: o.b + 1 | 0})));
339+ })({a: b, b: 0});
340+};
341+const foldMap = dictMonoid => Data$dFoldable.foldableArray.foldMap(dictMonoid);
342+const foldM = dictMonad => f => b => $0 => unconsImpl(v => dictMonad.Applicative0().pure(b), a => as => dictMonad.Bind1().bind(f(b)(a))(b$p => foldM(dictMonad)(f)(b$p)(as)), $0);
343+const fold = dictMonoid => Data$dFoldable.foldableArray.foldMap(dictMonoid)(Data$dFoldable.identity);
344+const findMap = $0 => $1 => findMapImpl(Data$dMaybe.Nothing, Data$dMaybe.isJust, $0, $1);
345+const findLastIndex = $0 => $1 => findLastIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, $0, $1);
346+const insertBy = cmp => x => ys => {
347+ const $0 = _insertAt(
348+ Data$dMaybe.Just,
349+ Data$dMaybe.Nothing,
350+ (() => {
351+ const $0 = findLastIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, y => cmp(x)(y) === "GT", ys);
352+ if ($0.tag === "Nothing") { return 0; }
353+ if ($0.tag === "Just") { return $0._1 + 1 | 0; }
354+ $runtime.fail();
355+ })(),
356+ x,
357+ ys
358+ );
359+ if ($0.tag === "Just") { return $0._1; }
360+ $runtime.fail();
361+};
362+const insert = dictOrd => insertBy(dictOrd.compare);
363+const findIndex = $0 => $1 => findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, $0, $1);
364+const find = f => xs => {
365+ const $0 = findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, f, xs);
366+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", xs[$0._1]); }
367+ return Data$dMaybe.Nothing;
368+};
369+const filter = $0 => $1 => filterImpl($0, $1);
370+const intersectBy = eq2 => xs => ys => filterImpl(
371+ x => {
372+ const $0 = findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, eq2(x), ys);
373+ if ($0.tag === "Nothing") { return false; }
374+ if ($0.tag === "Just") { return true; }
375+ $runtime.fail();
376+ },
377+ xs
378+);
379+const intersect = dictEq => intersectBy(dictEq.eq);
380+const elemLastIndex = dictEq => x => findLastIndex(v => dictEq.eq(v)(x));
381+const elemIndex = dictEq => x => findIndex(v => dictEq.eq(v)(x));
382+const notElem = dictEq => a => arr => {
383+ const $0 = findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, v => dictEq.eq(v)(a), arr);
384+ if ($0.tag === "Nothing") { return true; }
385+ if ($0.tag === "Just") { return false; }
386+ $runtime.fail();
387+};
388+const elem = dictEq => a => arr => {
389+ const $0 = findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, v => dictEq.eq(v)(a), arr);
390+ if ($0.tag === "Nothing") { return false; }
391+ if ($0.tag === "Just") { return true; }
392+ $runtime.fail();
393+};
394+const dropWhile = p => xs => span(p)(xs).rest;
395+const dropEnd = n => xs => {
396+ const $0 = xs.length - n | 0;
397+ if ($0 < 1) { return []; }
398+ return sliceImpl(0, $0, xs);
399+};
400+const drop = n => xs => {
401+ if (n < 1) { return xs; }
402+ return sliceImpl(n, xs.length, xs);
403+};
404+const takeEnd = n => xs => {
405+ const $0 = xs.length - n | 0;
406+ if ($0 < 1) { return xs; }
407+ return sliceImpl($0, xs.length, xs);
408+};
409+const deleteAt = $0 => $1 => _deleteAt(Data$dMaybe.Just, Data$dMaybe.Nothing, $0, $1);
410+const deleteBy = v => v1 => v2 => {
411+ if (v2.length === 0) { return []; }
412+ const $0 = findIndexImpl(Data$dMaybe.Just, Data$dMaybe.Nothing, v(v1), v2);
413+ if ($0.tag === "Nothing") { return v2; }
414+ if ($0.tag === "Just") {
415+ const $1 = _deleteAt(Data$dMaybe.Just, Data$dMaybe.Nothing, $0._1, v2);
416+ if ($1.tag === "Just") { return $1._1; }
417+ }
418+ $runtime.fail();
419+};
420+const $$delete = dictEq => deleteBy(dictEq.eq);
421+const difference = dictEq => Data$dFoldable.foldrArray($$delete(dictEq));
422+const cons = x => xs => [x, ...xs];
423+const some = dictAlternative => dictLazy => v => dictAlternative.Applicative0().Apply0().apply(dictAlternative.Plus1().Alt0().Functor0().map(cons)(v))(dictLazy.defer(v1 => many(dictAlternative)(dictLazy)(v)));
424+const many = dictAlternative => dictLazy => v => dictAlternative.Plus1().Alt0().alt(some(dictAlternative)(dictLazy)(v))(dictAlternative.Applicative0().pure([]));
425+const concatMap = b => a => Control$dBind.arrayBind(a)(b);
426+const mapMaybe = f => concatMap(x => {
427+ const $0 = f(x);
428+ if ($0.tag === "Nothing") { return []; }
429+ if ($0.tag === "Just") { return [$0._1]; }
430+ $runtime.fail();
431+});
432+const filterA = dictApplicative => {
433+ const traverse1 = Data$dTraversable.traversableArray.traverse(dictApplicative);
434+ const $0 = dictApplicative.Apply0().Functor0();
435+ return p => {
436+ const $1 = traverse1(x => $0.map(Data$dTuple.Tuple(x))(p(x)));
437+ const $2 = $0.map(mapMaybe(v => {
438+ if (v._2) { return Data$dMaybe.$Maybe("Just", v._1); }
439+ return Data$dMaybe.Nothing;
440+ }));
441+ return x => $2($1(x));
442+ };
443+};
444+const catMaybes = /* #__PURE__ */ mapMaybe(x => x);
445+const any = $0 => $1 => anyImpl($0, $1);
446+const nubByEq = eq2 => xs => {
447+ const arr = [];
448+ for (const x of xs) {
449+ if (!anyImpl(v => eq2(v)(x), arr)) { arr.push(x); }
450+ }
451+ return arr;
452+};
453+const nubEq = dictEq => nubByEq(dictEq.eq);
454+const unionBy = eq2 => xs => ys => [...xs, ...Data$dFoldable.foldlArray(b => a => deleteBy(eq2)(a)(b))(nubByEq(eq2)(ys))(xs)];
455+const union = dictEq => unionBy(dictEq.eq);
456+const alterAt = i => f => xs => {
457+ if (i >= 0 && i < xs.length) {
458+ const v = f(xs[i]);
459+ if (v.tag === "Nothing") { return _deleteAt(Data$dMaybe.Just, Data$dMaybe.Nothing, i, xs); }
460+ if (v.tag === "Just") { return _updateAt(Data$dMaybe.Just, Data$dMaybe.Nothing, i, v._1, xs); }
461+ $runtime.fail();
462+ }
463+ return Data$dMaybe.Nothing;
464+};
465+const all = $0 => $1 => allImpl($0, $1);
466+export {
467+ all,
468+ alterAt,
469+ any,
470+ catMaybes,
471+ concatMap,
472+ cons,
473+ $$delete as delete,
474+ deleteAt,
475+ deleteBy,
476+ difference,
477+ drop,
478+ dropEnd,
479+ dropWhile,
480+ elem,
481+ elemIndex,
482+ elemLastIndex,
483+ filter,
484+ filterA,
485+ find,
486+ findIndex,
487+ findLastIndex,
488+ findMap,
489+ fold,
490+ foldM,
491+ foldMap,
492+ foldRecM,
493+ foldl,
494+ foldr,
495+ fromFoldable,
496+ group,
497+ groupAll,
498+ groupAllBy,
499+ groupBy,
500+ head,
501+ index,
502+ init,
503+ insert,
504+ insertAt,
505+ insertBy,
506+ intercalate,
507+ intercalate1,
508+ intersect,
509+ intersectBy,
510+ intersperse,
511+ last,
512+ many,
513+ mapMaybe,
514+ mapWithIndex,
515+ modifyAt,
516+ modifyAtIndices,
517+ notElem,
518+ nub,
519+ nubBy,
520+ nubByEq,
521+ nubEq,
522+ $$null as null,
523+ partition,
524+ range,
525+ replicate,
526+ scanl,
527+ scanr,
528+ singleton,
529+ slice,
530+ snoc,
531+ some,
532+ sort,
533+ sortBy,
534+ sortWith,
535+ span,
536+ splitAt,
537+ tail,
538+ take,
539+ takeEnd,
540+ takeWhile,
541+ toUnfoldable,
542+ transpose,
543+ traverse_,
544+ uncons,
545+ union,
546+ unionBy,
547+ unsafeIndex,
548+ unsnoc,
549+ unzip,
550+ updateAt,
551+ updateAtIndices,
552+ zip,
553+ zipWith,
554+ zipWithA
555+};
556+export * from "./foreign.js";
output-es/Data.ArrayBuffer.Types/index.jsnew file+1
@@ -0,0 +1 @@
1+export {};
output-es/Data.Bifoldable/index.jsnew file+149
@@ -0,0 +1,149 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dApply from "../Control.Apply/index.js";
3+const identity = x => x;
4+const monoidEndo = /* #__PURE__ */ (() => {
5+ const semigroupEndo1 = {append: v => v1 => x => v(v1(x))};
6+ return {mempty: x => x, Semigroup0: () => semigroupEndo1};
7+})();
8+const monoidDual = /* #__PURE__ */ (() => {
9+ const $0 = monoidEndo.Semigroup0();
10+ const semigroupDual1 = {append: v => v1 => $0.append(v1)(v)};
11+ return {mempty: monoidEndo.mempty, Semigroup0: () => semigroupDual1};
12+})();
13+const bifoldr = dict => dict.bifoldr;
14+const bitraverse_ = dictBifoldable => dictApplicative => {
15+ const $0 = dictApplicative.Apply0();
16+ const applySecond = a => b => $0.apply($0.Functor0().map(v => Control$dApply.identity)(a))(b);
17+ return f => g => dictBifoldable.bifoldr(x => applySecond(f(x)))(x => applySecond(g(x)))(dictApplicative.pure());
18+};
19+const bifor_ = dictBifoldable => dictApplicative => {
20+ const bitraverse_2 = bitraverse_(dictBifoldable)(dictApplicative);
21+ return t => f => g => bitraverse_2(f)(g)(t);
22+};
23+const bisequence_ = dictBifoldable => dictApplicative => bitraverse_(dictBifoldable)(dictApplicative)(identity)(identity);
24+const bifoldl = dict => dict.bifoldl;
25+const bifoldableTuple = {
26+ bifoldMap: dictMonoid => f => g => v => dictMonoid.Semigroup0().append(f(v._1))(g(v._2)),
27+ bifoldr: f => g => z => v => f(v._1)(g(v._2)(z)),
28+ bifoldl: f => g => z => v => g(f(z)(v._1))(v._2)
29+};
30+const bifoldableJoker = dictFoldable => (
31+ {
32+ bifoldr: v => r => u => v1 => dictFoldable.foldr(r)(u)(v1),
33+ bifoldl: v => r => u => v1 => dictFoldable.foldl(r)(u)(v1),
34+ bifoldMap: dictMonoid => {
35+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
36+ return v => r => v1 => foldMap1(r)(v1);
37+ }
38+ }
39+);
40+const bifoldableEither = {
41+ bifoldr: v => v1 => v2 => v3 => {
42+ if (v3.tag === "Left") { return v(v3._1)(v2); }
43+ if (v3.tag === "Right") { return v1(v3._1)(v2); }
44+ $runtime.fail();
45+ },
46+ bifoldl: v => v1 => v2 => v3 => {
47+ if (v3.tag === "Left") { return v(v2)(v3._1); }
48+ if (v3.tag === "Right") { return v1(v2)(v3._1); }
49+ $runtime.fail();
50+ },
51+ bifoldMap: dictMonoid => v => v1 => v2 => {
52+ if (v2.tag === "Left") { return v(v2._1); }
53+ if (v2.tag === "Right") { return v1(v2._1); }
54+ $runtime.fail();
55+ }
56+};
57+const bifoldableConst = {bifoldr: f => v => z => v1 => f(v1)(z), bifoldl: f => v => z => v1 => f(z)(v1), bifoldMap: dictMonoid => f => v => v1 => f(v1)};
58+const bifoldableClown = dictFoldable => (
59+ {
60+ bifoldr: l => v => u => v1 => dictFoldable.foldr(l)(u)(v1),
61+ bifoldl: l => v => u => v1 => dictFoldable.foldl(l)(u)(v1),
62+ bifoldMap: dictMonoid => {
63+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
64+ return l => v => v1 => foldMap1(l)(v1);
65+ }
66+ }
67+);
68+const bifoldMapDefaultR = dictBifoldable => dictMonoid => {
69+ const $0 = dictMonoid.Semigroup0();
70+ const mempty = dictMonoid.mempty;
71+ return f => g => dictBifoldable.bifoldr(x => $0.append(f(x)))(x => $0.append(g(x)))(mempty);
72+};
73+const bifoldMapDefaultL = dictBifoldable => dictMonoid => {
74+ const $0 = dictMonoid.Semigroup0();
75+ const mempty = dictMonoid.mempty;
76+ return f => g => dictBifoldable.bifoldl(m => a => $0.append(m)(f(a)))(m => b => $0.append(m)(g(b)))(mempty);
77+};
78+const bifoldMap = dict => dict.bifoldMap;
79+const bifoldableFlip = dictBifoldable => (
80+ {
81+ bifoldr: r => l => u => v => dictBifoldable.bifoldr(l)(r)(u)(v),
82+ bifoldl: r => l => u => v => dictBifoldable.bifoldl(l)(r)(u)(v),
83+ bifoldMap: dictMonoid => {
84+ const bifoldMap2 = dictBifoldable.bifoldMap(dictMonoid);
85+ return r => l => v => bifoldMap2(l)(r)(v);
86+ }
87+ }
88+);
89+const bifoldlDefault = dictBifoldable => {
90+ const bifoldMap1 = dictBifoldable.bifoldMap(monoidDual);
91+ return f => g => z => p => bifoldMap1(x => a => f(a)(x))(x => a => g(a)(x))(p)(z);
92+};
93+const bifoldrDefault = dictBifoldable => {
94+ const bifoldMap1 = dictBifoldable.bifoldMap(monoidEndo);
95+ return f => g => z => p => bifoldMap1(x => f(x))(x => g(x))(p)(z);
96+};
97+const bifoldableProduct2 = dictBifoldable => dictBifoldable1 => (
98+ {
99+ bifoldr: l => r => u => m => bifoldrDefault(bifoldableProduct2(dictBifoldable)(dictBifoldable1))(l)(r)(u)(m),
100+ bifoldl: l => r => u => m => bifoldlDefault(bifoldableProduct2(dictBifoldable)(dictBifoldable1))(l)(r)(u)(m),
101+ bifoldMap: dictMonoid => {
102+ const bifoldMap3 = dictBifoldable.bifoldMap(dictMonoid);
103+ const bifoldMap4 = dictBifoldable1.bifoldMap(dictMonoid);
104+ return l => r => v => dictMonoid.Semigroup0().append(bifoldMap3(l)(r)(v._1))(bifoldMap4(l)(r)(v._2));
105+ }
106+ }
107+);
108+const bifold = dictBifoldable => dictMonoid => dictBifoldable.bifoldMap(dictMonoid)(identity)(identity);
109+const biany = dictBifoldable => dictBooleanAlgebra => {
110+ const bifoldMap2 = dictBifoldable.bifoldMap((() => {
111+ const $0 = dictBooleanAlgebra.HeytingAlgebra0();
112+ const semigroupDisj1 = {append: v => v1 => $0.disj(v)(v1)};
113+ return {mempty: $0.ff, Semigroup0: () => semigroupDisj1};
114+ })());
115+ return p => q => bifoldMap2(x => p(x))(x => q(x));
116+};
117+const biall = dictBifoldable => dictBooleanAlgebra => {
118+ const bifoldMap2 = dictBifoldable.bifoldMap((() => {
119+ const $0 = dictBooleanAlgebra.HeytingAlgebra0();
120+ const semigroupConj1 = {append: v => v1 => $0.conj(v)(v1)};
121+ return {mempty: $0.tt, Semigroup0: () => semigroupConj1};
122+ })());
123+ return p => q => bifoldMap2(x => p(x))(x => q(x));
124+};
125+export {
126+ biall,
127+ biany,
128+ bifold,
129+ bifoldMap,
130+ bifoldMapDefaultL,
131+ bifoldMapDefaultR,
132+ bifoldableClown,
133+ bifoldableConst,
134+ bifoldableEither,
135+ bifoldableFlip,
136+ bifoldableJoker,
137+ bifoldableProduct2,
138+ bifoldableTuple,
139+ bifoldl,
140+ bifoldlDefault,
141+ bifoldr,
142+ bifoldrDefault,
143+ bifor_,
144+ bisequence_,
145+ bitraverse_,
146+ identity,
147+ monoidDual,
148+ monoidEndo
149+};
output-es/Data.Bifunctor.Join/index.jsnew file+21
@@ -0,0 +1,21 @@
1+const Join = x => x;
2+const showJoin = dictShow => ({show: v => "(Join " + dictShow.show(v) + ")"});
3+const ordJoin = dictOrd => dictOrd;
4+const newtypeJoin = {Coercible0: () => {}};
5+const eqJoin = dictEq => dictEq;
6+const bifunctorJoin = dictBifunctor => ({map: f => v => dictBifunctor.bimap(f)(f)(v)});
7+const biapplyJoin = dictBiapply => {
8+ const $0 = dictBiapply.Bifunctor0();
9+ const bifunctorJoin1 = {map: f => v => $0.bimap(f)(f)(v)};
10+ return {apply: v => v1 => dictBiapply.biapply(v)(v1), Functor0: () => bifunctorJoin1};
11+};
12+const biapplicativeJoin = dictBiapplicative => {
13+ const $0 = dictBiapplicative.Biapply0();
14+ const $1 = $0.Bifunctor0();
15+ const biapplyJoin1 = (() => {
16+ const bifunctorJoin1 = {map: f => v => $1.bimap(f)(f)(v)};
17+ return {apply: v => v1 => $0.biapply(v)(v1), Functor0: () => bifunctorJoin1};
18+ })();
19+ return {pure: a => dictBiapplicative.bipure(a)(a), Apply0: () => biapplyJoin1};
20+};
21+export {Join, biapplicativeJoin, biapplyJoin, bifunctorJoin, eqJoin, newtypeJoin, ordJoin, showJoin};
output-es/Data.Bifunctor/index.jsnew file+18
@@ -0,0 +1,18 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEither from "../Data.Either/index.js";
3+import * as Data$dTuple from "../Data.Tuple/index.js";
4+const identity = x => x;
5+const bimap = dict => dict.bimap;
6+const bivoid = dictBifunctor => dictBifunctor.bimap(v => {})(v => {});
7+const lmap = dictBifunctor => f => dictBifunctor.bimap(f)(identity);
8+const rmap = dictBifunctor => dictBifunctor.bimap(identity);
9+const bifunctorTuple = {bimap: f => g => v => Data$dTuple.$Tuple(f(v._1), g(v._2))};
10+const bifunctorEither = {
11+ bimap: v => v1 => v2 => {
12+ if (v2.tag === "Left") { return Data$dEither.$Either("Left", v(v2._1)); }
13+ if (v2.tag === "Right") { return Data$dEither.$Either("Right", v1(v2._1)); }
14+ $runtime.fail();
15+ }
16+};
17+const bifunctorConst = {bimap: f => v => v1 => f(v1)};
18+export {bifunctorConst, bifunctorEither, bifunctorTuple, bimap, bivoid, identity, lmap, rmap};
output-es/Data.Bitraversable/index.jsnew file+195
@@ -0,0 +1,195 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dBifoldable from "../Data.Bifoldable/index.js";
3+import * as Data$dBifunctor from "../Data.Bifunctor/index.js";
4+import * as Data$dConst from "../Data.Const/index.js";
5+import * as Data$dEither from "../Data.Either/index.js";
6+import * as Data$dFunctor$dClown from "../Data.Functor.Clown/index.js";
7+import * as Data$dFunctor$dFlip from "../Data.Functor.Flip/index.js";
8+import * as Data$dFunctor$dJoker from "../Data.Functor.Joker/index.js";
9+import * as Data$dFunctor$dProduct2 from "../Data.Functor.Product2/index.js";
10+import * as Data$dTuple from "../Data.Tuple/index.js";
11+const identity = x => x;
12+const bitraverse = dict => dict.bitraverse;
13+const lfor = dictBitraversable => dictApplicative => {
14+ const bitraverse2 = dictBitraversable.bitraverse(dictApplicative);
15+ const pure = dictApplicative.pure;
16+ return t => f => bitraverse2(f)(pure)(t);
17+};
18+const ltraverse = dictBitraversable => dictApplicative => {
19+ const bitraverse2 = dictBitraversable.bitraverse(dictApplicative);
20+ const pure = dictApplicative.pure;
21+ return f => bitraverse2(f)(pure);
22+};
23+const rfor = dictBitraversable => dictApplicative => {
24+ const bitraverse2 = dictBitraversable.bitraverse(dictApplicative);
25+ const pure = dictApplicative.pure;
26+ return t => f => bitraverse2(pure)(f)(t);
27+};
28+const rtraverse = dictBitraversable => dictApplicative => dictBitraversable.bitraverse(dictApplicative)(dictApplicative.pure);
29+const bitraversableTuple = {
30+ bitraverse: dictApplicative => {
31+ const Apply0 = dictApplicative.Apply0();
32+ return f => g => v => Apply0.apply(Apply0.Functor0().map(Data$dTuple.Tuple)(f(v._1)))(g(v._2));
33+ },
34+ bisequence: dictApplicative => {
35+ const Apply0 = dictApplicative.Apply0();
36+ return v => Apply0.apply(Apply0.Functor0().map(Data$dTuple.Tuple)(v._1))(v._2);
37+ },
38+ Bifunctor0: () => Data$dBifunctor.bifunctorTuple,
39+ Bifoldable1: () => Data$dBifoldable.bifoldableTuple
40+};
41+const bitraversableJoker = dictTraversable => {
42+ const $0 = dictTraversable.Functor0();
43+ const bifunctorJoker = {bimap: v => g => v1 => $0.map(g)(v1)};
44+ const $1 = dictTraversable.Foldable1();
45+ const bifoldableJoker = {
46+ bifoldr: v => r => u => v1 => $1.foldr(r)(u)(v1),
47+ bifoldl: v => r => u => v1 => $1.foldl(r)(u)(v1),
48+ bifoldMap: dictMonoid => {
49+ const foldMap1 = $1.foldMap(dictMonoid);
50+ return v => r => v1 => foldMap1(r)(v1);
51+ }
52+ };
53+ return {
54+ bitraverse: dictApplicative => {
55+ const traverse1 = dictTraversable.traverse(dictApplicative);
56+ return v => r => v1 => dictApplicative.Apply0().Functor0().map(Data$dFunctor$dJoker.Joker)(traverse1(r)(v1));
57+ },
58+ bisequence: dictApplicative => {
59+ const sequence1 = dictTraversable.sequence(dictApplicative);
60+ return v => dictApplicative.Apply0().Functor0().map(Data$dFunctor$dJoker.Joker)(sequence1(v));
61+ },
62+ Bifunctor0: () => bifunctorJoker,
63+ Bifoldable1: () => bifoldableJoker
64+ };
65+};
66+const bitraversableEither = {
67+ bitraverse: dictApplicative => {
68+ const $0 = dictApplicative.Apply0().Functor0();
69+ return v => v1 => v2 => {
70+ if (v2.tag === "Left") { return $0.map(Data$dEither.Left)(v(v2._1)); }
71+ if (v2.tag === "Right") { return $0.map(Data$dEither.Right)(v1(v2._1)); }
72+ $runtime.fail();
73+ };
74+ },
75+ bisequence: dictApplicative => {
76+ const $0 = dictApplicative.Apply0().Functor0();
77+ return v => {
78+ if (v.tag === "Left") { return $0.map(Data$dEither.Left)(v._1); }
79+ if (v.tag === "Right") { return $0.map(Data$dEither.Right)(v._1); }
80+ $runtime.fail();
81+ };
82+ },
83+ Bifunctor0: () => Data$dBifunctor.bifunctorEither,
84+ Bifoldable1: () => Data$dBifoldable.bifoldableEither
85+};
86+const bitraversableConst = {
87+ bitraverse: dictApplicative => f => v => v1 => dictApplicative.Apply0().Functor0().map(Data$dConst.Const)(f(v1)),
88+ bisequence: dictApplicative => v => dictApplicative.Apply0().Functor0().map(Data$dConst.Const)(v),
89+ Bifunctor0: () => Data$dBifunctor.bifunctorConst,
90+ Bifoldable1: () => Data$dBifoldable.bifoldableConst
91+};
92+const bitraversableClown = dictTraversable => {
93+ const $0 = dictTraversable.Functor0();
94+ const bifunctorClown = {bimap: f => v => v1 => $0.map(f)(v1)};
95+ const $1 = dictTraversable.Foldable1();
96+ const bifoldableClown = {
97+ bifoldr: l => v => u => v1 => $1.foldr(l)(u)(v1),
98+ bifoldl: l => v => u => v1 => $1.foldl(l)(u)(v1),
99+ bifoldMap: dictMonoid => {
100+ const foldMap1 = $1.foldMap(dictMonoid);
101+ return l => v => v1 => foldMap1(l)(v1);
102+ }
103+ };
104+ return {
105+ bitraverse: dictApplicative => {
106+ const traverse1 = dictTraversable.traverse(dictApplicative);
107+ return l => v => v1 => dictApplicative.Apply0().Functor0().map(Data$dFunctor$dClown.Clown)(traverse1(l)(v1));
108+ },
109+ bisequence: dictApplicative => {
110+ const sequence1 = dictTraversable.sequence(dictApplicative);
111+ return v => dictApplicative.Apply0().Functor0().map(Data$dFunctor$dClown.Clown)(sequence1(v));
112+ },
113+ Bifunctor0: () => bifunctorClown,
114+ Bifoldable1: () => bifoldableClown
115+ };
116+};
117+const bisequenceDefault = dictBitraversable => dictApplicative => dictBitraversable.bitraverse(dictApplicative)(identity)(identity);
118+const bisequence = dict => dict.bisequence;
119+const bitraversableFlip = dictBitraversable => {
120+ const $0 = dictBitraversable.Bifunctor0();
121+ const bifunctorFlip = {bimap: f => g => v => $0.bimap(g)(f)(v)};
122+ const $1 = dictBitraversable.Bifoldable1();
123+ const bifoldableFlip = {
124+ bifoldr: r => l => u => v => $1.bifoldr(l)(r)(u)(v),
125+ bifoldl: r => l => u => v => $1.bifoldl(l)(r)(u)(v),
126+ bifoldMap: dictMonoid => {
127+ const bifoldMap2 = $1.bifoldMap(dictMonoid);
128+ return r => l => v => bifoldMap2(l)(r)(v);
129+ }
130+ };
131+ return {
132+ bitraverse: dictApplicative => {
133+ const bitraverse2 = dictBitraversable.bitraverse(dictApplicative);
134+ return r => l => v => dictApplicative.Apply0().Functor0().map(Data$dFunctor$dFlip.Flip)(bitraverse2(l)(r)(v));
135+ },
136+ bisequence: dictApplicative => {
137+ const bisequence2 = dictBitraversable.bisequence(dictApplicative);
138+ return v => dictApplicative.Apply0().Functor0().map(Data$dFunctor$dFlip.Flip)(bisequence2(v));
139+ },
140+ Bifunctor0: () => bifunctorFlip,
141+ Bifoldable1: () => bifoldableFlip
142+ };
143+};
144+const bitraversableProduct2 = dictBitraversable => {
145+ const $0 = dictBitraversable.Bifunctor0();
146+ const bifoldableProduct2 = Data$dBifoldable.bifoldableProduct2(dictBitraversable.Bifoldable1());
147+ return dictBitraversable1 => {
148+ const $1 = dictBitraversable1.Bifunctor0();
149+ const bifunctorProduct21 = {bimap: f => g => v => Data$dFunctor$dProduct2.$Product2($0.bimap(f)(g)(v._1), $1.bimap(f)(g)(v._2))};
150+ const bifoldableProduct21 = bifoldableProduct2(dictBitraversable1.Bifoldable1());
151+ return {
152+ bitraverse: dictApplicative => {
153+ const Apply0 = dictApplicative.Apply0();
154+ const bitraverse3 = dictBitraversable.bitraverse(dictApplicative);
155+ const bitraverse4 = dictBitraversable1.bitraverse(dictApplicative);
156+ return l => r => v => Apply0.apply(Apply0.Functor0().map(Data$dFunctor$dProduct2.Product2)(bitraverse3(l)(r)(v._1)))(bitraverse4(l)(r)(v._2));
157+ },
158+ bisequence: dictApplicative => {
159+ const Apply0 = dictApplicative.Apply0();
160+ const bisequence3 = dictBitraversable.bisequence(dictApplicative);
161+ const bisequence4 = dictBitraversable1.bisequence(dictApplicative);
162+ return v => Apply0.apply(Apply0.Functor0().map(Data$dFunctor$dProduct2.Product2)(bisequence3(v._1)))(bisequence4(v._2));
163+ },
164+ Bifunctor0: () => bifunctorProduct21,
165+ Bifoldable1: () => bifoldableProduct21
166+ };
167+ };
168+};
169+const bitraverseDefault = dictBitraversable => dictApplicative => {
170+ const bisequence2 = dictBitraversable.bisequence(dictApplicative);
171+ return f => g => t => bisequence2(dictBitraversable.Bifunctor0().bimap(f)(g)(t));
172+};
173+const bifor = dictBitraversable => dictApplicative => {
174+ const bitraverse2 = dictBitraversable.bitraverse(dictApplicative);
175+ return t => f => g => bitraverse2(f)(g)(t);
176+};
177+export {
178+ bifor,
179+ bisequence,
180+ bisequenceDefault,
181+ bitraversableClown,
182+ bitraversableConst,
183+ bitraversableEither,
184+ bitraversableFlip,
185+ bitraversableJoker,
186+ bitraversableProduct2,
187+ bitraversableTuple,
188+ bitraverse,
189+ bitraverseDefault,
190+ identity,
191+ lfor,
192+ ltraverse,
193+ rfor,
194+ rtraverse
195+};
output-es/Data.Boolean/index.jsnew file+2
@@ -0,0 +1,2 @@
1+const otherwise = true;
2+export {otherwise};
output-es/Data.BooleanAlgebra/index.jsnew file+42
@@ -0,0 +1,42 @@
1+import * as Data$dHeytingAlgebra from "../Data.HeytingAlgebra/index.js";
2+import * as Type$dProxy from "../Type.Proxy/index.js";
3+const booleanAlgebraUnit = {HeytingAlgebra0: () => Data$dHeytingAlgebra.heytingAlgebraUnit};
4+const booleanAlgebraRecordNil = {HeytingAlgebraRecord0: () => Data$dHeytingAlgebra.heytingAlgebraRecordNil};
5+const booleanAlgebraRecordCons = dictIsSymbol => () => dictBooleanAlgebraRecord => {
6+ const heytingAlgebraRecordCons1 = Data$dHeytingAlgebra.heytingAlgebraRecordCons(dictIsSymbol)()(dictBooleanAlgebraRecord.HeytingAlgebraRecord0());
7+ return dictBooleanAlgebra => {
8+ const heytingAlgebraRecordCons2 = heytingAlgebraRecordCons1(dictBooleanAlgebra.HeytingAlgebra0());
9+ return {HeytingAlgebraRecord0: () => heytingAlgebraRecordCons2};
10+ };
11+};
12+const booleanAlgebraRecord = () => dictBooleanAlgebraRecord => {
13+ const $0 = dictBooleanAlgebraRecord.HeytingAlgebraRecord0();
14+ const heytingAlgebraRecord1 = {
15+ ff: $0.ffRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy),
16+ tt: $0.ttRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy),
17+ conj: $0.conjRecord(Type$dProxy.Proxy),
18+ disj: $0.disjRecord(Type$dProxy.Proxy),
19+ implies: $0.impliesRecord(Type$dProxy.Proxy),
20+ not: $0.notRecord(Type$dProxy.Proxy)
21+ };
22+ return {HeytingAlgebra0: () => heytingAlgebraRecord1};
23+};
24+const booleanAlgebraProxy = {HeytingAlgebra0: () => Data$dHeytingAlgebra.heytingAlgebraProxy};
25+const booleanAlgebraFn = dictBooleanAlgebra => {
26+ const $0 = dictBooleanAlgebra.HeytingAlgebra0();
27+ const ff1 = $0.ff;
28+ const heytingAlgebraFunction = (() => {
29+ const tt1 = $0.tt;
30+ return {
31+ ff: v => ff1,
32+ tt: v => tt1,
33+ implies: f => g => a => $0.implies(f(a))(g(a)),
34+ conj: f => g => a => $0.conj(f(a))(g(a)),
35+ disj: f => g => a => $0.disj(f(a))(g(a)),
36+ not: f => a => $0.not(f(a))
37+ };
38+ })();
39+ return {HeytingAlgebra0: () => heytingAlgebraFunction};
40+};
41+const booleanAlgebraBoolean = {HeytingAlgebra0: () => Data$dHeytingAlgebra.heytingAlgebraBoolean};
42+export {booleanAlgebraBoolean, booleanAlgebraFn, booleanAlgebraProxy, booleanAlgebraRecord, booleanAlgebraRecordCons, booleanAlgebraRecordNil, booleanAlgebraUnit};
output-es/Data.Bounded.Generic/index.jsnew file+37
@@ -0,0 +1,37 @@
1+import * as Data$dGeneric$dRep from "../Data.Generic.Rep/index.js";
2+const genericTopNoArguments = {"genericTop'": Data$dGeneric$dRep.NoArguments};
3+const genericTopArgument = dictBounded => ({"genericTop'": dictBounded.top});
4+const genericTop$p = dict => dict["genericTop'"];
5+const genericTopConstructor = dictGenericTop => ({"genericTop'": dictGenericTop["genericTop'"]});
6+const genericTopProduct = dictGenericTop => {
7+ const genericTop$p1 = dictGenericTop["genericTop'"];
8+ return dictGenericTop1 => ({"genericTop'": Data$dGeneric$dRep.$Product(genericTop$p1, dictGenericTop1["genericTop'"])});
9+};
10+const genericTopSum = dictGenericTop => ({"genericTop'": Data$dGeneric$dRep.$Sum("Inr", dictGenericTop["genericTop'"])});
11+const genericTop = dictGeneric => dictGenericTop => dictGeneric.to(dictGenericTop["genericTop'"]);
12+const genericBottomNoArguments = {"genericBottom'": Data$dGeneric$dRep.NoArguments};
13+const genericBottomArgument = dictBounded => ({"genericBottom'": dictBounded.bottom});
14+const genericBottom$p = dict => dict["genericBottom'"];
15+const genericBottomConstructor = dictGenericBottom => ({"genericBottom'": dictGenericBottom["genericBottom'"]});
16+const genericBottomProduct = dictGenericBottom => {
17+ const genericBottom$p1 = dictGenericBottom["genericBottom'"];
18+ return dictGenericBottom1 => ({"genericBottom'": Data$dGeneric$dRep.$Product(genericBottom$p1, dictGenericBottom1["genericBottom'"])});
19+};
20+const genericBottomSum = dictGenericBottom => ({"genericBottom'": Data$dGeneric$dRep.$Sum("Inl", dictGenericBottom["genericBottom'"])});
21+const genericBottom = dictGeneric => dictGenericBottom => dictGeneric.to(dictGenericBottom["genericBottom'"]);
22+export {
23+ genericBottom,
24+ genericBottom$p,
25+ genericBottomArgument,
26+ genericBottomConstructor,
27+ genericBottomNoArguments,
28+ genericBottomProduct,
29+ genericBottomSum,
30+ genericTop,
31+ genericTop$p,
32+ genericTopArgument,
33+ genericTopConstructor,
34+ genericTopNoArguments,
35+ genericTopProduct,
36+ genericTopSum
37+};
output-es/Data.Bounded/foreign.jsnew file+8
@@ -0,0 +1,8 @@
1+export const topInt = 2147483647;
2+export const bottomInt = -2147483648;
3+
4+export const topChar = String.fromCharCode(65535);
5+export const bottomChar = String.fromCharCode(0);
6+
7+export const topNumber = Number.POSITIVE_INFINITY;
8+export const bottomNumber = Number.NEGATIVE_INFINITY;
output-es/Data.Bounded/index.jsnew file+76
@@ -0,0 +1,76 @@
1+import * as Data$dOrd from "../Data.Ord/index.js";
2+import * as Data$dOrdering from "../Data.Ordering/index.js";
3+import * as Record$dUnsafe from "../Record.Unsafe/index.js";
4+import * as Type$dProxy from "../Type.Proxy/index.js";
5+import {bottomChar, bottomInt, bottomNumber, topChar, topInt, topNumber} from "./foreign.js";
6+const topRecord = dict => dict.topRecord;
7+const top = dict => dict.top;
8+const boundedUnit = {top: undefined, bottom: undefined, Ord0: () => Data$dOrd.ordUnit};
9+const boundedRecordNil = {topRecord: v => v1 => ({}), bottomRecord: v => v1 => ({}), OrdRecord0: () => Data$dOrd.ordRecordNil};
10+const boundedProxy = {bottom: Type$dProxy.Proxy, top: Type$dProxy.Proxy, Ord0: () => Data$dOrd.ordProxy};
11+const boundedOrdering = {top: Data$dOrdering.GT, bottom: Data$dOrdering.LT, Ord0: () => Data$dOrd.ordOrdering};
12+const boundedNumber = {top: Infinity, bottom: -Infinity, Ord0: () => Data$dOrd.ordNumber};
13+const boundedInt = {top: 2147483647, bottom: -2147483648, Ord0: () => Data$dOrd.ordInt};
14+const boundedChar = {top: "￿", bottom: "\u0000", Ord0: () => Data$dOrd.ordChar};
15+const boundedBoolean = {top: true, bottom: false, Ord0: () => Data$dOrd.ordBoolean};
16+const bottomRecord = dict => dict.bottomRecord;
17+const boundedRecord = () => dictBoundedRecord => {
18+ const $0 = dictBoundedRecord.OrdRecord0();
19+ const eqRec1 = {eq: $0.EqRecord0().eqRecord(Type$dProxy.Proxy)};
20+ const ordRecord1 = {compare: $0.compareRecord(Type$dProxy.Proxy), Eq0: () => eqRec1};
21+ return {
22+ top: dictBoundedRecord.topRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy),
23+ bottom: dictBoundedRecord.bottomRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy),
24+ Ord0: () => ordRecord1
25+ };
26+};
27+const bottom = dict => dict.bottom;
28+const boundedRecordCons = dictIsSymbol => dictBounded => {
29+ const top1 = dictBounded.top;
30+ const bottom1 = dictBounded.bottom;
31+ const Ord0 = dictBounded.Ord0();
32+ return () => () => dictBoundedRecord => {
33+ const $0 = dictBoundedRecord.OrdRecord0();
34+ const $1 = $0.EqRecord0();
35+ const $2 = Ord0.Eq0();
36+ const ordRecordCons = (() => {
37+ const eqRowCons2 = {
38+ eqRecord: v => ra => rb => {
39+ const $$get = Record$dUnsafe.unsafeGet(dictIsSymbol.reflectSymbol(Type$dProxy.Proxy));
40+ return $2.eq($$get(ra))($$get(rb)) && $1.eqRecord(Type$dProxy.Proxy)(ra)(rb);
41+ }
42+ };
43+ return {
44+ compareRecord: v => ra => rb => {
45+ const key = dictIsSymbol.reflectSymbol(Type$dProxy.Proxy);
46+ const left = Ord0.compare(Record$dUnsafe.unsafeGet(key)(ra))(Record$dUnsafe.unsafeGet(key)(rb));
47+ if (left === "LT" || left === "GT" || left !== "EQ") { return left; }
48+ return $0.compareRecord(Type$dProxy.Proxy)(ra)(rb);
49+ },
50+ EqRecord0: () => eqRowCons2
51+ };
52+ })();
53+ return {
54+ topRecord: v => rowProxy => Record$dUnsafe.unsafeSet(dictIsSymbol.reflectSymbol(Type$dProxy.Proxy))(top1)(dictBoundedRecord.topRecord(Type$dProxy.Proxy)(rowProxy)),
55+ bottomRecord: v => rowProxy => Record$dUnsafe.unsafeSet(dictIsSymbol.reflectSymbol(Type$dProxy.Proxy))(bottom1)(dictBoundedRecord.bottomRecord(Type$dProxy.Proxy)(rowProxy)),
56+ OrdRecord0: () => ordRecordCons
57+ };
58+ };
59+};
60+export {
61+ bottom,
62+ bottomRecord,
63+ boundedBoolean,
64+ boundedChar,
65+ boundedInt,
66+ boundedNumber,
67+ boundedOrdering,
68+ boundedProxy,
69+ boundedRecord,
70+ boundedRecordCons,
71+ boundedRecordNil,
72+ boundedUnit,
73+ top,
74+ topRecord
75+};
76+export * from "./foreign.js";
output-es/Data.CatList/index.jsnew file+326
@@ -0,0 +1,326 @@
1+// | This module defines a strict catenable list.
2+// |
3+// | The implementation is based on a queue where all operations require
4+// | `O(1)` amortized time.
5+// |
6+// | However, any single `uncons` operation may run in `O(n)` time.
7+// |
8+// | See [Purely Functional Data Structures](http://www.cs.cmu.edu/~rwh/theses/okasaki.pdf) (Okasaki 1996)
9+import * as $runtime from "../runtime.js";
10+import * as Data$dCatQueue from "../Data.CatQueue/index.js";
11+import * as Data$dFoldable from "../Data.Foldable/index.js";
12+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
13+import * as Data$dMaybe from "../Data.Maybe/index.js";
14+import * as Data$dTuple from "../Data.Tuple/index.js";
15+const $CatList = (tag, _1, _2) => ({tag, _1, _2});
16+const CatNil = /* #__PURE__ */ $CatList("CatNil");
17+const CatCons = value0 => value1 => $CatList("CatCons", value0, value1);
18+const showCatList = dictShow => (
19+ {
20+ show: v => {
21+ if (v.tag === "CatNil") { return "CatNil"; }
22+ if (v.tag === "CatCons") { return "(CatList " + dictShow.show(v._1) + " " + Data$dCatQueue.showCatQueue(showCatList(dictShow)).show(v._2) + ")"; }
23+ $runtime.fail();
24+ }
25+ }
26+);
27+const $$null = v => v.tag === "CatNil";
28+const link = v => v1 => {
29+ if (v.tag === "CatNil") { return v1; }
30+ if (v1.tag === "CatNil") { return v; }
31+ if (v.tag === "CatCons") { return $CatList("CatCons", v._1, Data$dCatQueue.$CatQueue(v._2._1, Data$dList$dTypes.$List("Cons", v1, v._2._2))); }
32+ $runtime.fail();
33+};
34+const foldr = k => b => q => {
35+ const foldl = foldl$a0$copy => foldl$a1$copy => foldl$a2$copy => {
36+ let foldl$a0 = foldl$a0$copy, foldl$a1 = foldl$a1$copy, foldl$a2 = foldl$a2$copy, foldl$c = true, foldl$r;
37+ while (foldl$c) {
38+ const v = foldl$a0, v1 = foldl$a1, v2 = foldl$a2;
39+ if (v2.tag === "Nil") {
40+ foldl$c = false;
41+ foldl$r = v1;
42+ continue;
43+ }
44+ if (v2.tag === "Cons") {
45+ foldl$a0 = v;
46+ foldl$a1 = v(v1)(v2._1);
47+ foldl$a2 = v2._2;
48+ continue;
49+ }
50+ $runtime.fail();
51+ }
52+ return foldl$r;
53+ };
54+ const go = go$a0$copy => go$a1$copy => {
55+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
56+ while (go$c) {
57+ const xs = go$a0, ys = go$a1;
58+ const v = Data$dCatQueue.uncons(xs);
59+ if (v.tag === "Nothing") {
60+ go$c = false;
61+ go$r = foldl(x => i => i(x))(b)(ys);
62+ continue;
63+ }
64+ if (v.tag === "Just") {
65+ go$a0 = v._1._2;
66+ go$a1 = Data$dList$dTypes.$List("Cons", k(v._1._1), ys);
67+ continue;
68+ }
69+ $runtime.fail();
70+ }
71+ return go$r;
72+ };
73+ return go(q)(Data$dList$dTypes.Nil);
74+};
75+const uncons = v => {
76+ if (v.tag === "CatNil") { return Data$dMaybe.Nothing; }
77+ if (v.tag === "CatCons") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(v._1, v._2._1.tag === "Nil" && v._2._2.tag === "Nil" ? CatNil : foldr(link)(CatNil)(v._2))); }
78+ $runtime.fail();
79+};
80+const foldableCatList = {
81+ foldMap: dictMonoid => {
82+ const mempty = dictMonoid.mempty;
83+ return f => foldableCatList.foldl(acc => x => dictMonoid.Semigroup0().append(acc)(f(x)))(mempty);
84+ },
85+ foldr: f => s => l => Data$dFoldable.foldrDefault(foldableCatList)(f)(s)(l),
86+ foldl: f => {
87+ const go = go$a0$copy => go$a1$copy => {
88+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
89+ while (go$c) {
90+ const acc = go$a0, q = go$a1;
91+ const v = uncons(q);
92+ if (v.tag === "Just") {
93+ go$a0 = f(acc)(v._1._1);
94+ go$a1 = v._1._2;
95+ continue;
96+ }
97+ if (v.tag === "Nothing") {
98+ go$c = false;
99+ go$r = acc;
100+ continue;
101+ }
102+ $runtime.fail();
103+ }
104+ return go$r;
105+ };
106+ return go;
107+ }
108+};
109+const length = /* #__PURE__ */ (() => foldableCatList.foldl(c => v => 1 + c | 0)(0))();
110+const foldMap = dictMonoid => {
111+ const mempty = dictMonoid.mempty;
112+ return v => v1 => {
113+ if (v1.tag === "CatNil") { return mempty; }
114+ if (v1.tag === "CatCons") {
115+ return dictMonoid.Semigroup0().append(v(v1._1))(foldMap(dictMonoid)(v)(v1._2._1.tag === "Nil" && v1._2._2.tag === "Nil" ? CatNil : foldr(link)(CatNil)(v1._2)));
116+ }
117+ $runtime.fail();
118+ };
119+};
120+const empty = CatNil;
121+const append = link;
122+const cons = a => cat => {
123+ if (cat.tag === "CatNil") { return $CatList("CatCons", a, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
124+ return $CatList("CatCons", a, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.$List("Cons", cat, Data$dList$dTypes.Nil)));
125+};
126+const functorCatList = {
127+ map: v => v1 => {
128+ if (v1.tag === "CatNil") { return CatNil; }
129+ if (v1.tag === "CatCons") {
130+ const $0 = v(v1._1);
131+ const $1 = functorCatList.map(v)(v1._2._1.tag === "Nil" && v1._2._2.tag === "Nil" ? CatNil : foldr(link)(CatNil)(v1._2));
132+ if ($1.tag === "CatNil") { return $CatList("CatCons", $0, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
133+ return $CatList("CatCons", $0, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.$List("Cons", $1, Data$dList$dTypes.Nil)));
134+ }
135+ $runtime.fail();
136+ }
137+};
138+const singleton = a => $CatList("CatCons", a, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil));
139+const traversableCatList = {
140+ traverse: dictApplicative => {
141+ const Apply0 = dictApplicative.Apply0();
142+ return v => v1 => {
143+ if (v1.tag === "CatNil") { return dictApplicative.pure(CatNil); }
144+ if (v1.tag === "CatCons") {
145+ return Apply0.apply(Apply0.Functor0().map(cons)(v(v1._1)))(traversableCatList.traverse(dictApplicative)(v)(v1._2._1.tag === "Nil" && v1._2._2.tag === "Nil"
146+ ? CatNil
147+ : foldr(link)(CatNil)(v1._2)));
148+ }
149+ $runtime.fail();
150+ };
151+ },
152+ sequence: dictApplicative => {
153+ const Apply0 = dictApplicative.Apply0();
154+ return v => {
155+ if (v.tag === "CatNil") { return dictApplicative.pure(CatNil); }
156+ if (v.tag === "CatCons") {
157+ return Apply0.apply(Apply0.Functor0().map(cons)(v._1))(traversableCatList.sequence(dictApplicative)(v._2._1.tag === "Nil" && v._2._2.tag === "Nil"
158+ ? CatNil
159+ : foldr(link)(CatNil)(v._2)));
160+ }
161+ $runtime.fail();
162+ };
163+ },
164+ Functor0: () => functorCatList,
165+ Foldable1: () => foldableCatList
166+};
167+const semigroupCatList = {append: link};
168+const monoidCatList = {mempty: CatNil, Semigroup0: () => semigroupCatList};
169+const monadCatList = {Applicative0: () => applicativeCatList, Bind1: () => bindCatList$lazy()};
170+const applyCatList = {apply: f => a => bindCatList$lazy().bind(f)(f$p => bindCatList$lazy().bind(a)(a$p => applicativeCatList.pure(f$p(a$p)))), Functor0: () => functorCatList};
171+const applicativeCatList = {pure: singleton, Apply0: () => applyCatList};
172+const bindCatList$lazy = /* #__PURE__ */ $runtime.binding(() => (
173+ {
174+ bind: (() => {
175+ const $0 = foldMap(monoidCatList);
176+ return b => a => $0(a)(b);
177+ })(),
178+ Apply0: () => applyCatList
179+ }
180+));
181+const bindCatList = /* #__PURE__ */ bindCatList$lazy();
182+const fromFoldable = dictFoldable => {
183+ const foldMap1 = dictFoldable.foldMap(monoidCatList);
184+ return f => foldMap1(singleton)(f);
185+};
186+const snoc = cat => a => {
187+ if (cat.tag === "CatNil") { return $CatList("CatCons", a, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
188+ if (cat.tag === "CatCons") {
189+ return $CatList(
190+ "CatCons",
191+ cat._1,
192+ Data$dCatQueue.$CatQueue(
193+ cat._2._1,
194+ Data$dList$dTypes.$List("Cons", $CatList("CatCons", a, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)), cat._2._2)
195+ )
196+ );
197+ }
198+ $runtime.fail();
199+};
200+const unfoldable1CatList = {
201+ unfoldr1: f => b => {
202+ const go = go$a0$copy => go$a1$copy => {
203+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
204+ while (go$c) {
205+ const source = go$a0, memo = go$a1;
206+ const v = f(source);
207+ if (v._2.tag === "Nothing") {
208+ if (memo.tag === "CatNil") {
209+ go$c = false;
210+ go$r = $CatList("CatCons", v._1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil));
211+ continue;
212+ }
213+ if (memo.tag === "CatCons") {
214+ go$c = false;
215+ go$r = $CatList(
216+ "CatCons",
217+ memo._1,
218+ Data$dCatQueue.$CatQueue(
219+ memo._2._1,
220+ Data$dList$dTypes.$List("Cons", $CatList("CatCons", v._1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)), memo._2._2)
221+ )
222+ );
223+ continue;
224+ }
225+ $runtime.fail();
226+ }
227+ if (v._2.tag === "Just") {
228+ go$a0 = v._2._1;
229+ go$a1 = (() => {
230+ if (memo.tag === "CatNil") { return $CatList("CatCons", v._1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
231+ if (memo.tag === "CatCons") {
232+ return $CatList(
233+ "CatCons",
234+ memo._1,
235+ Data$dCatQueue.$CatQueue(
236+ memo._2._1,
237+ Data$dList$dTypes.$List("Cons", $CatList("CatCons", v._1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)), memo._2._2)
238+ )
239+ );
240+ }
241+ $runtime.fail();
242+ })();
243+ continue;
244+ }
245+ $runtime.fail();
246+ }
247+ return go$r;
248+ };
249+ return go(b)(CatNil);
250+ }
251+};
252+const unfoldableCatList = {
253+ unfoldr: f => b => {
254+ const go = go$a0$copy => go$a1$copy => {
255+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
256+ while (go$c) {
257+ const source = go$a0, memo = go$a1;
258+ const v = f(source);
259+ if (v.tag === "Nothing") {
260+ go$c = false;
261+ go$r = memo;
262+ continue;
263+ }
264+ if (v.tag === "Just") {
265+ go$a0 = v._1._2;
266+ go$a1 = (() => {
267+ if (memo.tag === "CatNil") { return $CatList("CatCons", v._1._1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)); }
268+ if (memo.tag === "CatCons") {
269+ return $CatList(
270+ "CatCons",
271+ memo._1,
272+ Data$dCatQueue.$CatQueue(
273+ memo._2._1,
274+ Data$dList$dTypes.$List("Cons", $CatList("CatCons", v._1._1, Data$dCatQueue.$CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)), memo._2._2)
275+ )
276+ );
277+ }
278+ $runtime.fail();
279+ })();
280+ continue;
281+ }
282+ $runtime.fail();
283+ }
284+ return go$r;
285+ };
286+ return go(b)(CatNil);
287+ },
288+ Unfoldable10: () => unfoldable1CatList
289+};
290+const altCatList = {alt: link, Functor0: () => functorCatList};
291+const plusCatList = {empty: CatNil, Alt0: () => altCatList};
292+const alternativeCatList = {Applicative0: () => applicativeCatList, Plus1: () => plusCatList};
293+const monadPlusCatList = {Monad0: () => monadCatList, Alternative1: () => alternativeCatList};
294+export {
295+ $CatList,
296+ CatCons,
297+ CatNil,
298+ altCatList,
299+ alternativeCatList,
300+ append,
301+ applicativeCatList,
302+ applyCatList,
303+ bindCatList,
304+ cons,
305+ empty,
306+ foldMap,
307+ foldableCatList,
308+ foldr,
309+ fromFoldable,
310+ functorCatList,
311+ length,
312+ link,
313+ monadCatList,
314+ monadPlusCatList,
315+ monoidCatList,
316+ $$null as null,
317+ plusCatList,
318+ semigroupCatList,
319+ showCatList,
320+ singleton,
321+ snoc,
322+ traversableCatList,
323+ uncons,
324+ unfoldable1CatList,
325+ unfoldableCatList
326+};
output-es/Data.CatQueue/index.jsnew file+364
@@ -0,0 +1,364 @@
1+// | This module defines a strict double-ended queue.
2+// |
3+// | The queue implementation is based on a pair of lists where all
4+// | operations require `O(1)` amortized time.
5+// |
6+// | However, any single `uncons` operation may run in `O(n)` time.
7+// |
8+// | See [Simple and Efficient Purely Functional Queues and Dequeues](http://www.westpoint.edu/eecs/SiteAssets/SitePages/Faculty%20Publication%20Documents/Okasaki/jfp95queue.pdf) (Okasaki 1995)
9+import * as $runtime from "../runtime.js";
10+import * as Data$dFoldable from "../Data.Foldable/index.js";
11+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
12+import * as Data$dMaybe from "../Data.Maybe/index.js";
13+import * as Data$dOrdering from "../Data.Ordering/index.js";
14+import * as Data$dTraversable from "../Data.Traversable/index.js";
15+import * as Data$dTuple from "../Data.Tuple/index.js";
16+const $CatQueue = (_1, _2) => ({tag: "CatQueue", _1, _2});
17+const CatQueue = value0 => value1 => $CatQueue(value0, value1);
18+const unsnoc = unsnoc$a0$copy => {
19+ let unsnoc$a0 = unsnoc$a0$copy, unsnoc$c = true, unsnoc$r;
20+ while (unsnoc$c) {
21+ const v = unsnoc$a0;
22+ if (v._2.tag === "Cons") {
23+ unsnoc$c = false;
24+ unsnoc$r = Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(v._2._1, $CatQueue(v._1, v._2._2)));
25+ continue;
26+ }
27+ if (v._2.tag === "Nil") {
28+ if (v._1.tag === "Nil") {
29+ unsnoc$c = false;
30+ unsnoc$r = Data$dMaybe.Nothing;
31+ continue;
32+ }
33+ unsnoc$a0 = $CatQueue(
34+ Data$dList$dTypes.Nil,
35+ (() => {
36+ const go = go$a0$copy => go$a1$copy => {
37+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38+ while (go$c) {
39+ const v$1 = go$a0, v1 = go$a1;
40+ if (v1.tag === "Nil") {
41+ go$c = false;
42+ go$r = v$1;
43+ continue;
44+ }
45+ if (v1.tag === "Cons") {
46+ go$a0 = Data$dList$dTypes.$List("Cons", v1._1, v$1);
47+ go$a1 = v1._2;
48+ continue;
49+ }
50+ $runtime.fail();
51+ }
52+ return go$r;
53+ };
54+ return go(Data$dList$dTypes.Nil)(v._1);
55+ })()
56+ );
57+ continue;
58+ }
59+ $runtime.fail();
60+ }
61+ return unsnoc$r;
62+};
63+const uncons = uncons$a0$copy => {
64+ let uncons$a0 = uncons$a0$copy, uncons$c = true, uncons$r;
65+ while (uncons$c) {
66+ const v = uncons$a0;
67+ if (v._1.tag === "Nil") {
68+ if (v._2.tag === "Nil") {
69+ uncons$c = false;
70+ uncons$r = Data$dMaybe.Nothing;
71+ continue;
72+ }
73+ uncons$a0 = $CatQueue(
74+ (() => {
75+ const go = go$a0$copy => go$a1$copy => {
76+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
77+ while (go$c) {
78+ const v$1 = go$a0, v1 = go$a1;
79+ if (v1.tag === "Nil") {
80+ go$c = false;
81+ go$r = v$1;
82+ continue;
83+ }
84+ if (v1.tag === "Cons") {
85+ go$a0 = Data$dList$dTypes.$List("Cons", v1._1, v$1);
86+ go$a1 = v1._2;
87+ continue;
88+ }
89+ $runtime.fail();
90+ }
91+ return go$r;
92+ };
93+ return go(Data$dList$dTypes.Nil)(v._2);
94+ })(),
95+ Data$dList$dTypes.Nil
96+ );
97+ continue;
98+ }
99+ if (v._1.tag === "Cons") {
100+ uncons$c = false;
101+ uncons$r = Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(v._1._1, $CatQueue(v._1._2, v._2)));
102+ continue;
103+ }
104+ $runtime.fail();
105+ }
106+ return uncons$r;
107+};
108+const snoc = v => a => $CatQueue(v._1, Data$dList$dTypes.$List("Cons", a, v._2));
109+const showCatQueue = dictShow => {
110+ const $0 = Data$dList$dTypes.showList(dictShow);
111+ return {show: v => "(CatQueue " + $0.show(v._1) + " " + $0.show(v._2) + ")"};
112+};
113+const $$null = v => v._1.tag === "Nil" && v._2.tag === "Nil";
114+const length = v => {
115+ const go = go$a0$copy => go$a1$copy => {
116+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
117+ while (go$c) {
118+ const b = go$a0, v$1 = go$a1;
119+ if (v$1.tag === "Nil") {
120+ go$c = false;
121+ go$r = b;
122+ continue;
123+ }
124+ if (v$1.tag === "Cons") {
125+ go$a0 = b + 1 | 0;
126+ go$a1 = v$1._2;
127+ continue;
128+ }
129+ $runtime.fail();
130+ }
131+ return go$r;
132+ };
133+ const go$1 = go$1$a0$copy => go$1$a1$copy => {
134+ let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
135+ while (go$1$c) {
136+ const b = go$1$a0, v$1 = go$1$a1;
137+ if (v$1.tag === "Nil") {
138+ go$1$c = false;
139+ go$1$r = b;
140+ continue;
141+ }
142+ if (v$1.tag === "Cons") {
143+ go$1$a0 = b + 1 | 0;
144+ go$1$a1 = v$1._2;
145+ continue;
146+ }
147+ $runtime.fail();
148+ }
149+ return go$1$r;
150+ };
151+ return go(0)(v._1) + go$1(0)(v._2) | 0;
152+};
153+const functorCatQueue = {map: f => v => $CatQueue(Data$dList$dTypes.listMap(f)(v._1), Data$dList$dTypes.listMap(f)(v._2))};
154+const foldableCatQueue = {
155+ foldMap: dictMonoid => {
156+ const mempty = dictMonoid.mempty;
157+ return f => foldableCatQueue.foldl(acc => x => dictMonoid.Semigroup0().append(acc)(f(x)))(mempty);
158+ },
159+ foldr: f => Data$dFoldable.foldrDefault(foldableCatQueue)(f),
160+ foldl: f => {
161+ const go = go$a0$copy => go$a1$copy => {
162+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
163+ while (go$c) {
164+ const acc = go$a0, q = go$a1;
165+ const v = uncons(q);
166+ if (v.tag === "Just") {
167+ go$a0 = f(acc)(v._1._1);
168+ go$a1 = v._1._2;
169+ continue;
170+ }
171+ if (v.tag === "Nothing") {
172+ go$c = false;
173+ go$r = acc;
174+ continue;
175+ }
176+ $runtime.fail();
177+ }
178+ return go$r;
179+ };
180+ return go;
181+ }
182+};
183+const semigroupCatQueue = /* #__PURE__ */ (() => ({append: foldableCatQueue.foldl(snoc)}))();
184+const empty = /* #__PURE__ */ $CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil);
185+const monoidCatQueue = {mempty: /* #__PURE__ */ $CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil), Semigroup0: () => semigroupCatQueue};
186+const singleton = a => $CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.$List("Cons", a, Data$dList$dTypes.Nil));
187+const fromFoldable = dictFoldable => {
188+ const foldMap = dictFoldable.foldMap(monoidCatQueue);
189+ return f => foldMap(singleton)(f);
190+};
191+const traversableCatQueue = {
192+ traverse: dictApplicative => {
193+ const Apply0 = dictApplicative.Apply0();
194+ return f => {
195+ const $0 = Apply0.Functor0().map(foldableCatQueue.foldl(snoc)($CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil)));
196+ const $1 = foldableCatQueue.foldl(acc => x => Apply0.apply(Apply0.Functor0().map(snoc)(acc))(f(x)))(dictApplicative.pure($CatQueue(
197+ Data$dList$dTypes.Nil,
198+ Data$dList$dTypes.Nil
199+ )));
200+ return x => $0($1(x));
201+ };
202+ },
203+ sequence: dictApplicative => traversableCatQueue.traverse(dictApplicative)(Data$dTraversable.identity),
204+ Functor0: () => functorCatQueue,
205+ Foldable1: () => foldableCatQueue
206+};
207+const unfoldable1CatQueue = {
208+ unfoldr1: f => b => {
209+ const go = go$a0$copy => go$a1$copy => {
210+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
211+ while (go$c) {
212+ const source = go$a0, memo = go$a1;
213+ const v = f(source);
214+ if (v._2.tag === "Nothing") {
215+ go$c = false;
216+ go$r = $CatQueue(memo._1, Data$dList$dTypes.$List("Cons", v._1, memo._2));
217+ continue;
218+ }
219+ if (v._2.tag === "Just") {
220+ go$a0 = v._2._1;
221+ go$a1 = $CatQueue(memo._1, Data$dList$dTypes.$List("Cons", v._1, memo._2));
222+ continue;
223+ }
224+ $runtime.fail();
225+ }
226+ return go$r;
227+ };
228+ return go(b)($CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil));
229+ }
230+};
231+const unfoldableCatQueue = {
232+ unfoldr: f => b => {
233+ const go = go$a0$copy => go$a1$copy => {
234+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
235+ while (go$c) {
236+ const source = go$a0, memo = go$a1;
237+ const v = f(source);
238+ if (v.tag === "Nothing") {
239+ go$c = false;
240+ go$r = memo;
241+ continue;
242+ }
243+ if (v.tag === "Just") {
244+ go$a0 = v._1._2;
245+ go$a1 = $CatQueue(memo._1, Data$dList$dTypes.$List("Cons", v._1._1, memo._2));
246+ continue;
247+ }
248+ $runtime.fail();
249+ }
250+ return go$r;
251+ };
252+ return go(b)($CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil));
253+ },
254+ Unfoldable10: () => unfoldable1CatQueue
255+};
256+const cqEq = dictEq => {
257+ const go = xs => ys => {
258+ const v = uncons(ys);
259+ const v1 = uncons(xs);
260+ if (v1.tag === "Just") { return v.tag === "Just" && dictEq.eq(v1._1._1)(v._1._1) && go(v1._1._2)(v._1._2); }
261+ return v1.tag === "Nothing" && v.tag === "Nothing";
262+ };
263+ return go;
264+};
265+const eqCatQueue = dictEq => ({eq: cqEq(dictEq)});
266+const cqCompare = dictOrd => {
267+ const go = go$a0$copy => go$a1$copy => {
268+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
269+ while (go$c) {
270+ const xs = go$a0, ys = go$a1;
271+ const v = uncons(ys);
272+ const v1 = uncons(xs);
273+ if (v1.tag === "Just") {
274+ if (v.tag === "Just") {
275+ const v2 = dictOrd.compare(v1._1._1)(v._1._1);
276+ if (v2 === "EQ") {
277+ go$a0 = v1._1._2;
278+ go$a1 = v._1._2;
279+ continue;
280+ }
281+ go$c = false;
282+ go$r = v2;
283+ continue;
284+ }
285+ if (v.tag === "Nothing") {
286+ go$c = false;
287+ go$r = Data$dOrdering.GT;
288+ continue;
289+ }
290+ $runtime.fail();
291+ }
292+ if (v1.tag === "Nothing") {
293+ if (v.tag === "Just") {
294+ go$c = false;
295+ go$r = Data$dOrdering.LT;
296+ continue;
297+ }
298+ if (v.tag === "Nothing") {
299+ go$c = false;
300+ go$r = Data$dOrdering.EQ;
301+ continue;
302+ }
303+ }
304+ $runtime.fail();
305+ }
306+ return go$r;
307+ };
308+ return go;
309+};
310+const ordCatQueue = dictOrd => {
311+ const eqCatQueue1 = {eq: cqEq(dictOrd.Eq0())};
312+ return {compare: cqCompare(dictOrd), Eq0: () => eqCatQueue1};
313+};
314+const cons = a => v => $CatQueue(Data$dList$dTypes.$List("Cons", a, v._1), v._2);
315+const monadCatQueue = {Applicative0: () => applicativeCatQueue, Bind1: () => bindCatQueue$lazy()};
316+const applyCatQueue = {apply: f => a => bindCatQueue$lazy().bind(f)(f$p => bindCatQueue$lazy().bind(a)(a$p => applicativeCatQueue.pure(f$p(a$p)))), Functor0: () => functorCatQueue};
317+const applicativeCatQueue = {pure: singleton, Apply0: () => applyCatQueue};
318+const bindCatQueue$lazy = /* #__PURE__ */ $runtime.binding(() => (
319+ {
320+ bind: (() => {
321+ const $0 = foldableCatQueue.foldMap(monoidCatQueue);
322+ return b => a => $0(a)(b);
323+ })(),
324+ Apply0: () => applyCatQueue
325+ }
326+));
327+const bindCatQueue = /* #__PURE__ */ bindCatQueue$lazy();
328+const altCatQueue = /* #__PURE__ */ (() => ({alt: semigroupCatQueue.append, Functor0: () => functorCatQueue}))();
329+const plusCatQueue = {empty: /* #__PURE__ */ $CatQueue(Data$dList$dTypes.Nil, Data$dList$dTypes.Nil), Alt0: () => altCatQueue};
330+const alternativeCatQueue = {Applicative0: () => applicativeCatQueue, Plus1: () => plusCatQueue};
331+const monadPlusCatQueue = {Monad0: () => monadCatQueue, Alternative1: () => alternativeCatQueue};
332+export {
333+ $CatQueue,
334+ CatQueue,
335+ altCatQueue,
336+ alternativeCatQueue,
337+ applicativeCatQueue,
338+ applyCatQueue,
339+ bindCatQueue,
340+ cons,
341+ cqCompare,
342+ cqEq,
343+ empty,
344+ eqCatQueue,
345+ foldableCatQueue,
346+ fromFoldable,
347+ functorCatQueue,
348+ length,
349+ monadCatQueue,
350+ monadPlusCatQueue,
351+ monoidCatQueue,
352+ $$null as null,
353+ ordCatQueue,
354+ plusCatQueue,
355+ semigroupCatQueue,
356+ showCatQueue,
357+ singleton,
358+ snoc,
359+ traversableCatQueue,
360+ uncons,
361+ unfoldable1CatQueue,
362+ unfoldableCatQueue,
363+ unsnoc
364+};
output-es/Data.Char.Gen/index.jsnew file+21
@@ -0,0 +1,21 @@
1+import * as Control$dMonad$dGen from "../Control.Monad.Gen/index.js";
2+import * as Data$dEnum from "../Data.Enum/index.js";
3+import * as Data$dFoldable from "../Data.Foldable/index.js";
4+import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
5+const toEnumWithDefaults = low => high => x => {
6+ if (x >= 0 && x <= 65535) { return Data$dEnum.fromCharCode(x); }
7+ if (x < 0) { return low; }
8+ return high;
9+};
10+const foldable1NonEmpty = /* #__PURE__ */ Data$dNonEmpty.foldable1NonEmpty(Data$dFoldable.foldableArray);
11+const genUnicodeChar = dictMonadGen => dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(toEnumWithDefaults("\u0000")("￿"))(dictMonadGen.chooseInt(0)(65536));
12+const genDigitChar = dictMonadGen => dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(toEnumWithDefaults("\u0000")("￿"))(dictMonadGen.chooseInt(48)(57));
13+const genAsciiChar$p = dictMonadGen => dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(toEnumWithDefaults("\u0000")("￿"))(dictMonadGen.chooseInt(0)(127));
14+const genAsciiChar = dictMonadGen => dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(toEnumWithDefaults("\u0000")("￿"))(dictMonadGen.chooseInt(32)(127));
15+const genAlphaUppercase = dictMonadGen => dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(toEnumWithDefaults("\u0000")("￿"))(dictMonadGen.chooseInt(65)(90));
16+const genAlphaLowercase = dictMonadGen => dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(toEnumWithDefaults("\u0000")("￿"))(dictMonadGen.chooseInt(97)(122));
17+const genAlpha = dictMonadGen => Control$dMonad$dGen.oneOf(dictMonadGen)(foldable1NonEmpty)(Data$dNonEmpty.$NonEmpty(
18+ genAlphaLowercase(dictMonadGen),
19+ [genAlphaUppercase(dictMonadGen)]
20+));
21+export {foldable1NonEmpty, genAlpha, genAlphaLowercase, genAlphaUppercase, genAsciiChar, genAsciiChar$p, genDigitChar, genUnicodeChar, toEnumWithDefaults};
output-es/Data.Char/index.jsnew file+5
@@ -0,0 +1,5 @@
1+// | A type and functions for single characters.
2+import * as Data$dEnum from "../Data.Enum/index.js";
3+const toCharCode = Data$dEnum.toCharCode;
4+const fromCharCode = Data$dEnum.charToEnum;
5+export {fromCharCode, toCharCode};
output-es/Data.CommutativeRing/index.jsnew file+49
@@ -0,0 +1,49 @@
1+import * as Data$dRing from "../Data.Ring/index.js";
2+import * as Type$dProxy from "../Type.Proxy/index.js";
3+const commutativeRingUnit = {Ring0: () => Data$dRing.ringUnit};
4+const commutativeRingRecordNil = {RingRecord0: () => Data$dRing.ringRecordNil};
5+const commutativeRingRecordCons = dictIsSymbol => () => dictCommutativeRingRecord => {
6+ const ringRecordCons1 = Data$dRing.ringRecordCons(dictIsSymbol)()(dictCommutativeRingRecord.RingRecord0());
7+ return dictCommutativeRing => {
8+ const ringRecordCons2 = ringRecordCons1(dictCommutativeRing.Ring0());
9+ return {RingRecord0: () => ringRecordCons2};
10+ };
11+};
12+const commutativeRingRecord = () => dictCommutativeRingRecord => {
13+ const $0 = dictCommutativeRingRecord.RingRecord0();
14+ const $1 = $0.SemiringRecord0();
15+ const ringRecord1 = (() => {
16+ const semiringRecord1 = {
17+ add: $1.addRecord(Type$dProxy.Proxy),
18+ mul: $1.mulRecord(Type$dProxy.Proxy),
19+ one: $1.oneRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy),
20+ zero: $1.zeroRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy)
21+ };
22+ return {sub: $0.subRecord(Type$dProxy.Proxy), Semiring0: () => semiringRecord1};
23+ })();
24+ return {Ring0: () => ringRecord1};
25+};
26+const commutativeRingProxy = {Ring0: () => Data$dRing.ringProxy};
27+const commutativeRingNumber = {Ring0: () => Data$dRing.ringNumber};
28+const commutativeRingInt = {Ring0: () => Data$dRing.ringInt};
29+const commutativeRingFn = dictCommutativeRing => {
30+ const $0 = dictCommutativeRing.Ring0();
31+ const $1 = $0.Semiring0();
32+ const ringFn = (() => {
33+ const zero1 = $1.zero;
34+ const one1 = $1.one;
35+ const semiringFn = {add: f => g => x => $1.add(f(x))(g(x)), zero: v => zero1, mul: f => g => x => $1.mul(f(x))(g(x)), one: v => one1};
36+ return {sub: f => g => x => $0.sub(f(x))(g(x)), Semiring0: () => semiringFn};
37+ })();
38+ return {Ring0: () => ringFn};
39+};
40+export {
41+ commutativeRingFn,
42+ commutativeRingInt,
43+ commutativeRingNumber,
44+ commutativeRingProxy,
45+ commutativeRingRecord,
46+ commutativeRingRecordCons,
47+ commutativeRingRecordNil,
48+ commutativeRingUnit
49+};
output-es/Data.Comparison/index.jsnew file+22
@@ -0,0 +1,22 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dOrdering from "../Data.Ordering/index.js";
3+const Comparison = x => x;
4+const semigroupComparison = {
5+ append: v => v1 => x => {
6+ const $0 = v(x);
7+ const $1 = v1(x);
8+ return x$1 => {
9+ const $2 = $0(x$1);
10+ const $3 = $1(x$1);
11+ if ($2 === "LT") { return Data$dOrdering.LT; }
12+ if ($2 === "GT") { return Data$dOrdering.GT; }
13+ if ($2 === "EQ") { return $3; }
14+ $runtime.fail();
15+ };
16+ }
17+};
18+const newtypeComparison = {Coercible0: () => {}};
19+const monoidComparison = {mempty: v => v1 => Data$dOrdering.EQ, Semigroup0: () => semigroupComparison};
20+const defaultComparison = dictOrd => dictOrd.compare;
21+const contravariantComparison = {cmap: f => v => x => y => v(f(x))(f(y))};
22+export {Comparison, contravariantComparison, defaultComparison, monoidComparison, newtypeComparison, semigroupComparison};
output-es/Data.Const/index.jsnew file+56
@@ -0,0 +1,56 @@
1+const Const = x => x;
2+const showConst = dictShow => ({show: v => "(Const " + dictShow.show(v) + ")"});
3+const semiringConst = dictSemiring => dictSemiring;
4+const semigroupoidConst = {compose: v => v1 => v1};
5+const semigroupConst = dictSemigroup => dictSemigroup;
6+const ringConst = dictRing => dictRing;
7+const ordConst = dictOrd => dictOrd;
8+const newtypeConst = {Coercible0: () => {}};
9+const monoidConst = dictMonoid => dictMonoid;
10+const heytingAlgebraConst = dictHeytingAlgebra => dictHeytingAlgebra;
11+const functorConst = {map: f => m => m};
12+const invariantConst = {imap: f => v => m => m};
13+const euclideanRingConst = dictEuclideanRing => dictEuclideanRing;
14+const eqConst = dictEq => dictEq;
15+const eq1Const = dictEq => {
16+ const eq = dictEq.eq;
17+ return {eq1: dictEq1 => eq};
18+};
19+const ord1Const = dictOrd => {
20+ const compare = dictOrd.compare;
21+ const eq = dictOrd.Eq0().eq;
22+ return {compare1: dictOrd1 => compare, Eq10: () => ({eq1: dictEq1 => eq})};
23+};
24+const commutativeRingConst = dictCommutativeRing => dictCommutativeRing;
25+const boundedConst = dictBounded => dictBounded;
26+const booleanAlgebraConst = dictBooleanAlgebra => dictBooleanAlgebra;
27+const applyConst = dictSemigroup => ({apply: v => v1 => dictSemigroup.append(v)(v1), Functor0: () => functorConst});
28+const applicativeConst = dictMonoid => {
29+ const mempty = dictMonoid.mempty;
30+ const $0 = dictMonoid.Semigroup0();
31+ const applyConst1 = {apply: v => v1 => $0.append(v)(v1), Functor0: () => functorConst};
32+ return {pure: v => mempty, Apply0: () => applyConst1};
33+};
34+export {
35+ Const,
36+ applicativeConst,
37+ applyConst,
38+ booleanAlgebraConst,
39+ boundedConst,
40+ commutativeRingConst,
41+ eq1Const,
42+ eqConst,
43+ euclideanRingConst,
44+ functorConst,
45+ heytingAlgebraConst,
46+ invariantConst,
47+ monoidConst,
48+ newtypeConst,
49+ ord1Const,
50+ ordConst,
51+ ringConst,
52+ semigroupConst,
53+ semigroupoidConst,
54+ semiringConst,
55+ showConst
56+};
output-es/Data.Coyoneda/index.jsnew file+212
@@ -0,0 +1,212 @@
1+import * as Data$dSemigroup$dFoldable from "../Data.Semigroup.Foldable/index.js";
2+const $CoyonedaF = (_1, _2) => ({tag: "CoyonedaF", _1, _2});
3+const CoyonedaF = value0 => value1 => $CoyonedaF(value0, value1);
4+const Coyoneda = x => x;
5+const unCoyoneda = f => v => f(v._1)(v._2);
6+const lowerCoyoneda = dictFunctor => v => dictFunctor.map(v._1)(v._2);
7+const foldableCoyoneda = dictFoldable => (
8+ {
9+ foldr: f => z => v => dictFoldable.foldr(x => f(v._1(x)))(z)(v._2),
10+ foldl: f => z => v => dictFoldable.foldl(x => {
11+ const $0 = f(x);
12+ return x$1 => $0(v._1(x$1));
13+ })(z)(v._2),
14+ foldMap: dictMonoid => {
15+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
16+ return f => v => foldMap1(x => f(v._1(x)))(v._2);
17+ }
18+ }
19+);
20+const foldable1Coyoneda = dictFoldable1 => {
21+ const foldableCoyoneda1 = foldableCoyoneda(dictFoldable1.Foldable0());
22+ return {
23+ foldMap1: dictSemigroup => {
24+ const foldMap11 = dictFoldable1.foldMap1(dictSemigroup);
25+ return f => v => foldMap11(x => f(v._1(x)))(v._2);
26+ },
27+ foldr1: Data$dSemigroup$dFoldable.foldr1Default(foldable1Coyoneda(dictFoldable1)),
28+ foldl1: Data$dSemigroup$dFoldable.foldl1Default(foldable1Coyoneda(dictFoldable1)),
29+ Foldable0: () => foldableCoyoneda1
30+ };
31+};
32+const eqCoyoneda = dictFunctor => dictEq1 => dictEq => {
33+ const eq11 = dictEq1.eq1(dictEq);
34+ return {eq: x => y => eq11(dictFunctor.map(x._1)(x._2))(dictFunctor.map(y._1)(y._2))};
35+};
36+const ordCoyoneda = dictFunctor => dictOrd1 => {
37+ const $0 = dictOrd1.Eq10();
38+ return dictOrd => {
39+ const compare11 = dictOrd1.compare1(dictOrd);
40+ const eq11 = $0.eq1(dictOrd.Eq0());
41+ const eqCoyoneda3 = {eq: x => y => eq11(dictFunctor.map(x._1)(x._2))(dictFunctor.map(y._1)(y._2))};
42+ return {compare: x => y => compare11(dictFunctor.map(x._1)(x._2))(dictFunctor.map(y._1)(y._2)), Eq0: () => eqCoyoneda3};
43+ };
44+};
45+const eq1Coyoneda = dictFunctor => dictEq1 => (
46+ {
47+ eq1: dictEq => {
48+ const eq11 = dictEq1.eq1(dictEq);
49+ return x => y => eq11(dictFunctor.map(x._1)(x._2))(dictFunctor.map(y._1)(y._2));
50+ }
51+ }
52+);
53+const ord1Coyoneda = dictFunctor => dictOrd1 => {
54+ const ordCoyoneda2 = ordCoyoneda(dictFunctor)(dictOrd1);
55+ const $0 = dictOrd1.Eq10();
56+ const eq1Coyoneda2 = {
57+ eq1: dictEq => {
58+ const eq11 = $0.eq1(dictEq);
59+ return x => y => eq11(dictFunctor.map(x._1)(x._2))(dictFunctor.map(y._1)(y._2));
60+ }
61+ };
62+ return {compare1: dictOrd => ordCoyoneda2(dictOrd).compare, Eq10: () => eq1Coyoneda2};
63+};
64+const coyoneda = k => fi => $CoyonedaF(k, fi);
65+const functorCoyoneda = {map: f => v => $CoyonedaF(x => f(v._1(x)), v._2)};
66+const invatiantCoyoneda = {imap: f => v => v$1 => $CoyonedaF(x => f(v$1._1(x)), v$1._2)};
67+const hoistCoyoneda = nat => v => $CoyonedaF(v._1, nat(v._2));
68+const liftCoyoneda = fi => $CoyonedaF(x => x, fi);
69+const distributiveCoyoneda = dictDistributive => {
70+ const $0 = dictDistributive.Functor0();
71+ return {
72+ collect: dictFunctor => {
73+ const collect1 = dictDistributive.collect(dictFunctor);
74+ return f => {
75+ const $1 = collect1(x => {
76+ const $1 = f(x);
77+ return $0.map($1._1)($1._2);
78+ });
79+ return x => $CoyonedaF(x$1 => x$1, $1(x));
80+ };
81+ },
82+ distribute: dictFunctor => {
83+ const $1 = dictDistributive.collect(dictFunctor)(v => $0.map(v._1)(v._2));
84+ return x => $CoyonedaF(x$1 => x$1, $1(x));
85+ },
86+ Functor0: () => functorCoyoneda
87+ };
88+};
89+const extendCoyoneda = dictExtend => (
90+ {
91+ extend: f => v => {
92+ const $0 = v._1;
93+ return $CoyonedaF(x => x, dictExtend.extend(x => f($CoyonedaF($0, x)))(v._2));
94+ },
95+ Functor0: () => functorCoyoneda
96+ }
97+);
98+const monadTransCoyoneda = {lift: dictMonad => liftCoyoneda};
99+const traversableCoyoneda = dictTraversable => {
100+ const foldableCoyoneda1 = foldableCoyoneda(dictTraversable.Foldable1());
101+ return {
102+ traverse: dictApplicative => {
103+ const traverse1 = dictTraversable.traverse(dictApplicative);
104+ return f => v => dictApplicative.Apply0().Functor0().map(liftCoyoneda)(traverse1(x => f(v._1(x)))(v._2));
105+ },
106+ sequence: dictApplicative => {
107+ const traverse1 = dictTraversable.traverse(dictApplicative);
108+ return v => dictApplicative.Apply0().Functor0().map(liftCoyoneda)(traverse1(v._1)(v._2));
109+ },
110+ Functor0: () => functorCoyoneda,
111+ Foldable1: () => foldableCoyoneda1
112+ };
113+};
114+const traversable1Coyoneda = dictTraversable1 => {
115+ const Traversable1 = dictTraversable1.Traversable1();
116+ const foldable1Coyoneda1 = foldable1Coyoneda(dictTraversable1.Foldable10());
117+ const traversableCoyoneda1 = traversableCoyoneda(Traversable1);
118+ return {
119+ traverse1: dictApply => {
120+ const traverse11 = dictTraversable1.traverse1(dictApply);
121+ return f => v => dictApply.Functor0().map(liftCoyoneda)(traverse11(x => f(v._1(x)))(v._2));
122+ },
123+ sequence1: dictApply => {
124+ const sequence11 = dictTraversable1.sequence1(dictApply);
125+ return v => dictApply.Functor0().map(liftCoyoneda)(sequence11(Traversable1.Functor0().map(v._1)(v._2)));
126+ },
127+ Foldable10: () => foldable1Coyoneda1,
128+ Traversable1: () => traversableCoyoneda1
129+ };
130+};
131+const comonadCoyoneda = dictComonad => {
132+ const extendCoyoneda1 = extendCoyoneda(dictComonad.Extend0());
133+ return {extract: v => v._1(dictComonad.extract(v._2)), Extend0: () => extendCoyoneda1};
134+};
135+const applyCoyoneda = dictApply => {
136+ const $0 = dictApply.Functor0();
137+ return {apply: f => g => $CoyonedaF(x => x, dictApply.apply($0.map(f._1)(f._2))($0.map(g._1)(g._2))), Functor0: () => functorCoyoneda};
138+};
139+const bindCoyoneda = dictBind => {
140+ const Apply0 = dictBind.Apply0();
141+ const $0 = Apply0.Functor0();
142+ const applyCoyoneda1 = applyCoyoneda(Apply0);
143+ return {
144+ bind: v => f => $CoyonedaF(
145+ x => x,
146+ dictBind.bind(v._2)(x => {
147+ const $1 = f(v._1(x));
148+ return $0.map($1._1)($1._2);
149+ })
150+ ),
151+ Apply0: () => applyCoyoneda1
152+ };
153+};
154+const applicativeCoyoneda = dictApplicative => {
155+ const applyCoyoneda1 = applyCoyoneda(dictApplicative.Apply0());
156+ return {pure: x => $CoyonedaF(x$1 => x$1, dictApplicative.pure(x)), Apply0: () => applyCoyoneda1};
157+};
158+const monadCoyoneda = dictMonad => {
159+ const applicativeCoyoneda1 = applicativeCoyoneda(dictMonad.Applicative0());
160+ const bindCoyoneda1 = bindCoyoneda(dictMonad.Bind1());
161+ return {Applicative0: () => applicativeCoyoneda1, Bind1: () => bindCoyoneda1};
162+};
163+const altCoyoneda = dictAlt => {
164+ const $0 = dictAlt.Functor0();
165+ return {alt: x => y => $CoyonedaF(x$1 => x$1, dictAlt.alt($0.map(x._1)(x._2))($0.map(y._1)(y._2))), Functor0: () => functorCoyoneda};
166+};
167+const plusCoyoneda = dictPlus => {
168+ const altCoyoneda1 = altCoyoneda(dictPlus.Alt0());
169+ return {empty: $CoyonedaF(x => x, dictPlus.empty), Alt0: () => altCoyoneda1};
170+};
171+const alternativeCoyoneda = dictAlternative => {
172+ const applicativeCoyoneda1 = applicativeCoyoneda(dictAlternative.Applicative0());
173+ const plusCoyoneda1 = plusCoyoneda(dictAlternative.Plus1());
174+ return {Applicative0: () => applicativeCoyoneda1, Plus1: () => plusCoyoneda1};
175+};
176+const monadPlusCoyoneda = dictMonadPlus => {
177+ const monadCoyoneda1 = monadCoyoneda(dictMonadPlus.Monad0());
178+ const alternativeCoyoneda1 = alternativeCoyoneda(dictMonadPlus.Alternative1());
179+ return {Monad0: () => monadCoyoneda1, Alternative1: () => alternativeCoyoneda1};
180+};
181+export {
182+ $CoyonedaF,
183+ Coyoneda,
184+ CoyonedaF,
185+ altCoyoneda,
186+ alternativeCoyoneda,
187+ applicativeCoyoneda,
188+ applyCoyoneda,
189+ bindCoyoneda,
190+ comonadCoyoneda,
191+ coyoneda,
192+ distributiveCoyoneda,
193+ eq1Coyoneda,
194+ eqCoyoneda,
195+ extendCoyoneda,
196+ foldable1Coyoneda,
197+ foldableCoyoneda,
198+ functorCoyoneda,
199+ hoistCoyoneda,
200+ invatiantCoyoneda,
201+ liftCoyoneda,
202+ lowerCoyoneda,
203+ monadCoyoneda,
204+ monadPlusCoyoneda,
205+ monadTransCoyoneda,
206+ ord1Coyoneda,
207+ ordCoyoneda,
208+ plusCoyoneda,
209+ traversable1Coyoneda,
210+ traversableCoyoneda,
211+ unCoyoneda
212+};
output-es/Data.Date.Component.Gen/index.jsnew file+11
@@ -0,0 +1,11 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dDate$dComponent from "../Data.Date.Component/index.js";
3+import * as Data$dEnum$dGen from "../Data.Enum.Gen/index.js";
4+const genYear = dictMonadGen => dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(x => {
5+ if (x >= -271820 && x <= 275759) { return x; }
6+ $runtime.fail();
7+})(dictMonadGen.chooseInt(1900)(2100));
8+const genWeekday = dictMonadGen => Data$dEnum$dGen.genBoundedEnum(dictMonadGen)(Data$dDate$dComponent.boundedEnumWeekday);
9+const genMonth = dictMonadGen => Data$dEnum$dGen.genBoundedEnum(dictMonadGen)(Data$dDate$dComponent.boundedEnumMonth);
10+const genDay = dictMonadGen => Data$dEnum$dGen.genBoundedEnum(dictMonadGen)(Data$dDate$dComponent.boundedEnumDay);
11+export {genDay, genMonth, genWeekday, genYear};
output-es/Data.Date.Component/index.jsnew file+451
@@ -0,0 +1,451 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEq from "../Data.Eq/index.js";
3+import * as Data$dMaybe from "../Data.Maybe/index.js";
4+import * as Data$dOrd from "../Data.Ord/index.js";
5+import * as Data$dOrdering from "../Data.Ordering/index.js";
6+import * as Data$dShow from "../Data.Show/index.js";
7+const $Month = tag => tag;
8+const $Weekday = tag => tag;
9+const Monday = /* #__PURE__ */ $Weekday("Monday");
10+const Tuesday = /* #__PURE__ */ $Weekday("Tuesday");
11+const Wednesday = /* #__PURE__ */ $Weekday("Wednesday");
12+const Thursday = /* #__PURE__ */ $Weekday("Thursday");
13+const Friday = /* #__PURE__ */ $Weekday("Friday");
14+const Saturday = /* #__PURE__ */ $Weekday("Saturday");
15+const Sunday = /* #__PURE__ */ $Weekday("Sunday");
16+const January = /* #__PURE__ */ $Month("January");
17+const February = /* #__PURE__ */ $Month("February");
18+const March = /* #__PURE__ */ $Month("March");
19+const April = /* #__PURE__ */ $Month("April");
20+const May = /* #__PURE__ */ $Month("May");
21+const June = /* #__PURE__ */ $Month("June");
22+const July = /* #__PURE__ */ $Month("July");
23+const August = /* #__PURE__ */ $Month("August");
24+const September = /* #__PURE__ */ $Month("September");
25+const October = /* #__PURE__ */ $Month("October");
26+const November = /* #__PURE__ */ $Month("November");
27+const December = /* #__PURE__ */ $Month("December");
28+const showYear = {show: v => "(Year " + Data$dShow.showIntImpl(v) + ")"};
29+const showWeekday = {
30+ show: v => {
31+ if (v === "Monday") { return "Monday"; }
32+ if (v === "Tuesday") { return "Tuesday"; }
33+ if (v === "Wednesday") { return "Wednesday"; }
34+ if (v === "Thursday") { return "Thursday"; }
35+ if (v === "Friday") { return "Friday"; }
36+ if (v === "Saturday") { return "Saturday"; }
37+ if (v === "Sunday") { return "Sunday"; }
38+ $runtime.fail();
39+ }
40+};
41+const showMonth = {
42+ show: v => {
43+ if (v === "January") { return "January"; }
44+ if (v === "February") { return "February"; }
45+ if (v === "March") { return "March"; }
46+ if (v === "April") { return "April"; }
47+ if (v === "May") { return "May"; }
48+ if (v === "June") { return "June"; }
49+ if (v === "July") { return "July"; }
50+ if (v === "August") { return "August"; }
51+ if (v === "September") { return "September"; }
52+ if (v === "October") { return "October"; }
53+ if (v === "November") { return "November"; }
54+ if (v === "December") { return "December"; }
55+ $runtime.fail();
56+ }
57+};
58+const showDay = {show: v => "(Day " + Data$dShow.showIntImpl(v) + ")"};
59+const ordYear = Data$dOrd.ordInt;
60+const ordDay = Data$dOrd.ordInt;
61+const eqYear = Data$dEq.eqInt;
62+const eqWeekday = {
63+ eq: x => y => {
64+ if (x === "Monday") { return y === "Monday"; }
65+ if (x === "Tuesday") { return y === "Tuesday"; }
66+ if (x === "Wednesday") { return y === "Wednesday"; }
67+ if (x === "Thursday") { return y === "Thursday"; }
68+ if (x === "Friday") { return y === "Friday"; }
69+ if (x === "Saturday") { return y === "Saturday"; }
70+ return x === "Sunday" && y === "Sunday";
71+ }
72+};
73+const ordWeekday = {
74+ compare: x => y => {
75+ if (x === "Monday") {
76+ if (y === "Monday") { return Data$dOrdering.EQ; }
77+ return Data$dOrdering.LT;
78+ }
79+ if (y === "Monday") { return Data$dOrdering.GT; }
80+ if (x === "Tuesday") {
81+ if (y === "Tuesday") { return Data$dOrdering.EQ; }
82+ return Data$dOrdering.LT;
83+ }
84+ if (y === "Tuesday") { return Data$dOrdering.GT; }
85+ if (x === "Wednesday") {
86+ if (y === "Wednesday") { return Data$dOrdering.EQ; }
87+ return Data$dOrdering.LT;
88+ }
89+ if (y === "Wednesday") { return Data$dOrdering.GT; }
90+ if (x === "Thursday") {
91+ if (y === "Thursday") { return Data$dOrdering.EQ; }
92+ return Data$dOrdering.LT;
93+ }
94+ if (y === "Thursday") { return Data$dOrdering.GT; }
95+ if (x === "Friday") {
96+ if (y === "Friday") { return Data$dOrdering.EQ; }
97+ return Data$dOrdering.LT;
98+ }
99+ if (y === "Friday") { return Data$dOrdering.GT; }
100+ if (x === "Saturday") {
101+ if (y === "Saturday") { return Data$dOrdering.EQ; }
102+ return Data$dOrdering.LT;
103+ }
104+ if (y === "Saturday") { return Data$dOrdering.GT; }
105+ if (x === "Sunday" && y === "Sunday") { return Data$dOrdering.EQ; }
106+ $runtime.fail();
107+ },
108+ Eq0: () => eqWeekday
109+};
110+const eqMonth = {
111+ eq: x => y => {
112+ if (x === "January") { return y === "January"; }
113+ if (x === "February") { return y === "February"; }
114+ if (x === "March") { return y === "March"; }
115+ if (x === "April") { return y === "April"; }
116+ if (x === "May") { return y === "May"; }
117+ if (x === "June") { return y === "June"; }
118+ if (x === "July") { return y === "July"; }
119+ if (x === "August") { return y === "August"; }
120+ if (x === "September") { return y === "September"; }
121+ if (x === "October") { return y === "October"; }
122+ if (x === "November") { return y === "November"; }
123+ return x === "December" && y === "December";
124+ }
125+};
126+const ordMonth = {
127+ compare: x => y => {
128+ if (x === "January") {
129+ if (y === "January") { return Data$dOrdering.EQ; }
130+ return Data$dOrdering.LT;
131+ }
132+ if (y === "January") { return Data$dOrdering.GT; }
133+ if (x === "February") {
134+ if (y === "February") { return Data$dOrdering.EQ; }
135+ return Data$dOrdering.LT;
136+ }
137+ if (y === "February") { return Data$dOrdering.GT; }
138+ if (x === "March") {
139+ if (y === "March") { return Data$dOrdering.EQ; }
140+ return Data$dOrdering.LT;
141+ }
142+ if (y === "March") { return Data$dOrdering.GT; }
143+ if (x === "April") {
144+ if (y === "April") { return Data$dOrdering.EQ; }
145+ return Data$dOrdering.LT;
146+ }
147+ if (y === "April") { return Data$dOrdering.GT; }
148+ if (x === "May") {
149+ if (y === "May") { return Data$dOrdering.EQ; }
150+ return Data$dOrdering.LT;
151+ }
152+ if (y === "May") { return Data$dOrdering.GT; }
153+ if (x === "June") {
154+ if (y === "June") { return Data$dOrdering.EQ; }
155+ return Data$dOrdering.LT;
156+ }
157+ if (y === "June") { return Data$dOrdering.GT; }
158+ if (x === "July") {
159+ if (y === "July") { return Data$dOrdering.EQ; }
160+ return Data$dOrdering.LT;
161+ }
162+ if (y === "July") { return Data$dOrdering.GT; }
163+ if (x === "August") {
164+ if (y === "August") { return Data$dOrdering.EQ; }
165+ return Data$dOrdering.LT;
166+ }
167+ if (y === "August") { return Data$dOrdering.GT; }
168+ if (x === "September") {
169+ if (y === "September") { return Data$dOrdering.EQ; }
170+ return Data$dOrdering.LT;
171+ }
172+ if (y === "September") { return Data$dOrdering.GT; }
173+ if (x === "October") {
174+ if (y === "October") { return Data$dOrdering.EQ; }
175+ return Data$dOrdering.LT;
176+ }
177+ if (y === "October") { return Data$dOrdering.GT; }
178+ if (x === "November") {
179+ if (y === "November") { return Data$dOrdering.EQ; }
180+ return Data$dOrdering.LT;
181+ }
182+ if (y === "November") { return Data$dOrdering.GT; }
183+ if (x === "December" && y === "December") { return Data$dOrdering.EQ; }
184+ $runtime.fail();
185+ },
186+ Eq0: () => eqMonth
187+};
188+const eqDay = Data$dEq.eqInt;
189+const boundedYear = {bottom: -271820, top: 275759, Ord0: () => Data$dOrd.ordInt};
190+const boundedWeekday = {bottom: Monday, top: Sunday, Ord0: () => ordWeekday};
191+const boundedMonth = {bottom: January, top: December, Ord0: () => ordMonth};
192+const boundedEnumYear = {
193+ cardinality: 547580,
194+ toEnum: n => {
195+ if (n >= -271820 && n <= 275759) { return Data$dMaybe.$Maybe("Just", n); }
196+ return Data$dMaybe.Nothing;
197+ },
198+ fromEnum: v => v,
199+ Bounded0: () => boundedYear,
200+ Enum1: () => enumYear
201+};
202+const enumYear = {
203+ succ: x => {
204+ const $0 = x + 1 | 0;
205+ if ($0 >= -271820 && $0 <= 275759) { return Data$dMaybe.$Maybe("Just", $0); }
206+ return Data$dMaybe.Nothing;
207+ },
208+ pred: x => {
209+ const $0 = x - 1 | 0;
210+ if ($0 >= -271820 && $0 <= 275759) { return Data$dMaybe.$Maybe("Just", $0); }
211+ return Data$dMaybe.Nothing;
212+ },
213+ Ord0: () => Data$dOrd.ordInt
214+};
215+const boundedEnumWeekday = {
216+ cardinality: 7,
217+ toEnum: v => {
218+ if (v === 1) { return Data$dMaybe.$Maybe("Just", Monday); }
219+ if (v === 2) { return Data$dMaybe.$Maybe("Just", Tuesday); }
220+ if (v === 3) { return Data$dMaybe.$Maybe("Just", Wednesday); }
221+ if (v === 4) { return Data$dMaybe.$Maybe("Just", Thursday); }
222+ if (v === 5) { return Data$dMaybe.$Maybe("Just", Friday); }
223+ if (v === 6) { return Data$dMaybe.$Maybe("Just", Saturday); }
224+ if (v === 7) { return Data$dMaybe.$Maybe("Just", Sunday); }
225+ return Data$dMaybe.Nothing;
226+ },
227+ fromEnum: v => {
228+ if (v === "Monday") { return 1; }
229+ if (v === "Tuesday") { return 2; }
230+ if (v === "Wednesday") { return 3; }
231+ if (v === "Thursday") { return 4; }
232+ if (v === "Friday") { return 5; }
233+ if (v === "Saturday") { return 6; }
234+ if (v === "Sunday") { return 7; }
235+ $runtime.fail();
236+ },
237+ Bounded0: () => boundedWeekday,
238+ Enum1: () => enumWeekday
239+};
240+const enumWeekday = {
241+ succ: x => {
242+ const $0 = (() => {
243+ if (x === "Monday") { return 2; }
244+ if (x === "Tuesday") { return 3; }
245+ if (x === "Wednesday") { return 4; }
246+ if (x === "Thursday") { return 5; }
247+ if (x === "Friday") { return 6; }
248+ if (x === "Saturday") { return 7; }
249+ if (x === "Sunday") { return 8; }
250+ $runtime.fail();
251+ })();
252+ if ($0 === 1) { return Data$dMaybe.$Maybe("Just", Monday); }
253+ if ($0 === 2) { return Data$dMaybe.$Maybe("Just", Tuesday); }
254+ if ($0 === 3) { return Data$dMaybe.$Maybe("Just", Wednesday); }
255+ if ($0 === 4) { return Data$dMaybe.$Maybe("Just", Thursday); }
256+ if ($0 === 5) { return Data$dMaybe.$Maybe("Just", Friday); }
257+ if ($0 === 6) { return Data$dMaybe.$Maybe("Just", Saturday); }
258+ if ($0 === 7) { return Data$dMaybe.$Maybe("Just", Sunday); }
259+ return Data$dMaybe.Nothing;
260+ },
261+ pred: x => {
262+ const $0 = (() => {
263+ if (x === "Monday") { return 0; }
264+ if (x === "Tuesday") { return 1; }
265+ if (x === "Wednesday") { return 2; }
266+ if (x === "Thursday") { return 3; }
267+ if (x === "Friday") { return 4; }
268+ if (x === "Saturday") { return 5; }
269+ if (x === "Sunday") { return 6; }
270+ $runtime.fail();
271+ })();
272+ if ($0 === 1) { return Data$dMaybe.$Maybe("Just", Monday); }
273+ if ($0 === 2) { return Data$dMaybe.$Maybe("Just", Tuesday); }
274+ if ($0 === 3) { return Data$dMaybe.$Maybe("Just", Wednesday); }
275+ if ($0 === 4) { return Data$dMaybe.$Maybe("Just", Thursday); }
276+ if ($0 === 5) { return Data$dMaybe.$Maybe("Just", Friday); }
277+ if ($0 === 6) { return Data$dMaybe.$Maybe("Just", Saturday); }
278+ if ($0 === 7) { return Data$dMaybe.$Maybe("Just", Sunday); }
279+ return Data$dMaybe.Nothing;
280+ },
281+ Ord0: () => ordWeekday
282+};
283+const boundedEnumMonth = {
284+ cardinality: 12,
285+ toEnum: v => {
286+ if (v === 1) { return Data$dMaybe.$Maybe("Just", January); }
287+ if (v === 2) { return Data$dMaybe.$Maybe("Just", February); }
288+ if (v === 3) { return Data$dMaybe.$Maybe("Just", March); }
289+ if (v === 4) { return Data$dMaybe.$Maybe("Just", April); }
290+ if (v === 5) { return Data$dMaybe.$Maybe("Just", May); }
291+ if (v === 6) { return Data$dMaybe.$Maybe("Just", June); }
292+ if (v === 7) { return Data$dMaybe.$Maybe("Just", July); }
293+ if (v === 8) { return Data$dMaybe.$Maybe("Just", August); }
294+ if (v === 9) { return Data$dMaybe.$Maybe("Just", September); }
295+ if (v === 10) { return Data$dMaybe.$Maybe("Just", October); }
296+ if (v === 11) { return Data$dMaybe.$Maybe("Just", November); }
297+ if (v === 12) { return Data$dMaybe.$Maybe("Just", December); }
298+ return Data$dMaybe.Nothing;
299+ },
300+ fromEnum: v => {
301+ if (v === "January") { return 1; }
302+ if (v === "February") { return 2; }
303+ if (v === "March") { return 3; }
304+ if (v === "April") { return 4; }
305+ if (v === "May") { return 5; }
306+ if (v === "June") { return 6; }
307+ if (v === "July") { return 7; }
308+ if (v === "August") { return 8; }
309+ if (v === "September") { return 9; }
310+ if (v === "October") { return 10; }
311+ if (v === "November") { return 11; }
312+ if (v === "December") { return 12; }
313+ $runtime.fail();
314+ },
315+ Bounded0: () => boundedMonth,
316+ Enum1: () => enumMonth
317+};
318+const enumMonth = {
319+ succ: x => {
320+ const $0 = (() => {
321+ if (x === "January") { return 2; }
322+ if (x === "February") { return 3; }
323+ if (x === "March") { return 4; }
324+ if (x === "April") { return 5; }
325+ if (x === "May") { return 6; }
326+ if (x === "June") { return 7; }
327+ if (x === "July") { return 8; }
328+ if (x === "August") { return 9; }
329+ if (x === "September") { return 10; }
330+ if (x === "October") { return 11; }
331+ if (x === "November") { return 12; }
332+ if (x === "December") { return 13; }
333+ $runtime.fail();
334+ })();
335+ if ($0 === 1) { return Data$dMaybe.$Maybe("Just", January); }
336+ if ($0 === 2) { return Data$dMaybe.$Maybe("Just", February); }
337+ if ($0 === 3) { return Data$dMaybe.$Maybe("Just", March); }
338+ if ($0 === 4) { return Data$dMaybe.$Maybe("Just", April); }
339+ if ($0 === 5) { return Data$dMaybe.$Maybe("Just", May); }
340+ if ($0 === 6) { return Data$dMaybe.$Maybe("Just", June); }
341+ if ($0 === 7) { return Data$dMaybe.$Maybe("Just", July); }
342+ if ($0 === 8) { return Data$dMaybe.$Maybe("Just", August); }
343+ if ($0 === 9) { return Data$dMaybe.$Maybe("Just", September); }
344+ if ($0 === 10) { return Data$dMaybe.$Maybe("Just", October); }
345+ if ($0 === 11) { return Data$dMaybe.$Maybe("Just", November); }
346+ if ($0 === 12) { return Data$dMaybe.$Maybe("Just", December); }
347+ return Data$dMaybe.Nothing;
348+ },
349+ pred: x => {
350+ const $0 = (() => {
351+ if (x === "January") { return 0; }
352+ if (x === "February") { return 1; }
353+ if (x === "March") { return 2; }
354+ if (x === "April") { return 3; }
355+ if (x === "May") { return 4; }
356+ if (x === "June") { return 5; }
357+ if (x === "July") { return 6; }
358+ if (x === "August") { return 7; }
359+ if (x === "September") { return 8; }
360+ if (x === "October") { return 9; }
361+ if (x === "November") { return 10; }
362+ if (x === "December") { return 11; }
363+ $runtime.fail();
364+ })();
365+ if ($0 === 1) { return Data$dMaybe.$Maybe("Just", January); }
366+ if ($0 === 2) { return Data$dMaybe.$Maybe("Just", February); }
367+ if ($0 === 3) { return Data$dMaybe.$Maybe("Just", March); }
368+ if ($0 === 4) { return Data$dMaybe.$Maybe("Just", April); }
369+ if ($0 === 5) { return Data$dMaybe.$Maybe("Just", May); }
370+ if ($0 === 6) { return Data$dMaybe.$Maybe("Just", June); }
371+ if ($0 === 7) { return Data$dMaybe.$Maybe("Just", July); }
372+ if ($0 === 8) { return Data$dMaybe.$Maybe("Just", August); }
373+ if ($0 === 9) { return Data$dMaybe.$Maybe("Just", September); }
374+ if ($0 === 10) { return Data$dMaybe.$Maybe("Just", October); }
375+ if ($0 === 11) { return Data$dMaybe.$Maybe("Just", November); }
376+ if ($0 === 12) { return Data$dMaybe.$Maybe("Just", December); }
377+ return Data$dMaybe.Nothing;
378+ },
379+ Ord0: () => ordMonth
380+};
381+const boundedDay = {bottom: 1, top: 31, Ord0: () => Data$dOrd.ordInt};
382+const boundedEnumDay = {
383+ cardinality: 31,
384+ toEnum: n => {
385+ if (n >= 1 && n <= 31) { return Data$dMaybe.$Maybe("Just", n); }
386+ return Data$dMaybe.Nothing;
387+ },
388+ fromEnum: v => v,
389+ Bounded0: () => boundedDay,
390+ Enum1: () => enumDay
391+};
392+const enumDay = {
393+ succ: x => {
394+ const $0 = x + 1 | 0;
395+ if ($0 >= 1 && $0 <= 31) { return Data$dMaybe.$Maybe("Just", $0); }
396+ return Data$dMaybe.Nothing;
397+ },
398+ pred: x => {
399+ const $0 = x - 1 | 0;
400+ if ($0 >= 1 && $0 <= 31) { return Data$dMaybe.$Maybe("Just", $0); }
401+ return Data$dMaybe.Nothing;
402+ },
403+ Ord0: () => Data$dOrd.ordInt
404+};
405+export {
406+ $Month,
407+ $Weekday,
408+ April,
409+ August,
410+ December,
411+ February,
412+ Friday,
413+ January,
414+ July,
415+ June,
416+ March,
417+ May,
418+ Monday,
419+ November,
420+ October,
421+ Saturday,
422+ September,
423+ Sunday,
424+ Thursday,
425+ Tuesday,
426+ Wednesday,
427+ boundedDay,
428+ boundedEnumDay,
429+ boundedEnumMonth,
430+ boundedEnumWeekday,
431+ boundedEnumYear,
432+ boundedMonth,
433+ boundedWeekday,
434+ boundedYear,
435+ enumDay,
436+ enumMonth,
437+ enumWeekday,
438+ enumYear,
439+ eqDay,
440+ eqMonth,
441+ eqWeekday,
442+ eqYear,
443+ ordDay,
444+ ordMonth,
445+ ordWeekday,
446+ ordYear,
447+ showDay,
448+ showMonth,
449+ showWeekday,
450+ showYear
451+};
output-es/Data.Date.Gen/index.jsnew file+25
@@ -0,0 +1,25 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dDate from "../Data.Date/index.js";
3+import * as Data$dDate$dComponent from "../Data.Date.Component/index.js";
4+import * as Data$dInt from "../Data.Int/index.js";
5+import * as Data$dMaybe from "../Data.Maybe/index.js";
6+const genDate = dictMonadGen => {
7+ const Monad0 = dictMonadGen.Monad0();
8+ const Bind1 = Monad0.Bind1();
9+ return Bind1.bind(dictMonadGen.Monad0().Bind1().Apply0().Functor0().map(x => {
10+ if (x >= -271820 && x <= 275759) { return x; }
11+ $runtime.fail();
12+ })(dictMonadGen.chooseInt(1900)(2100)))(year => Bind1.bind(Bind1.Apply0().Functor0().map(x => Data$dInt.toNumber(x))(dictMonadGen.chooseInt(0)(Data$dDate.isLeapYear(year)
13+ ? 365
14+ : 364)))(days => Monad0.Applicative0().pure((() => {
15+ const $0 = Data$dDate.exactDate(year)(Data$dDate$dComponent.January)(1);
16+ const $1 = (() => {
17+ if ($0.tag === "Just") { return Data$dDate.adjust(days)($0._1); }
18+ if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
19+ $runtime.fail();
20+ })();
21+ if ($1.tag === "Just") { return $1._1; }
22+ $runtime.fail();
23+ })())));
24+};
25+export {genDate};
output-es/Data.Date/foreign.jsnew file+22
@@ -0,0 +1,22 @@
1+var createDate = function (y, m, d) {
2+ var date = new Date(Date.UTC(y, m, d));
3+ if (y >= 0 && y < 100) {
4+ date.setUTCFullYear(y);
5+ }
6+ return date;
7+};
8+
9+export function canonicalDateImpl(ctor, y, m, d) {
10+ var date = createDate(y, m - 1, d);
11+ return ctor(date.getUTCFullYear())(date.getUTCMonth() + 1)(date.getUTCDate());
12+}
13+
14+export function calcWeekday(y, m, d) {
15+ return createDate(y, m - 1, d).getUTCDay();
16+}
17+
18+export function calcDiff(y1, m1, d1, y2, m2, d2) {
19+ var dt1 = createDate(y1, m1 - 1, d1);
20+ var dt2 = createDate(y2, m2 - 1, d2);
21+ return dt1.getTime() - dt2.getTime();
22+}
output-es/Data.Date/index.jsnew file+370
@@ -0,0 +1,370 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dDate$dComponent from "../Data.Date.Component/index.js";
3+import * as Data$dEuclideanRing from "../Data.EuclideanRing/index.js";
4+import * as Data$dInt from "../Data.Int/index.js";
5+import * as Data$dMaybe from "../Data.Maybe/index.js";
6+import * as Data$dOrd from "../Data.Ord/index.js";
7+import * as Data$dOrdering from "../Data.Ordering/index.js";
8+import * as Data$dShow from "../Data.Show/index.js";
9+import {calcDiff, calcWeekday, canonicalDateImpl} from "./foreign.js";
10+const $$$Date = (_1, _2, _3) => ({tag: "Date", _1, _2, _3});
11+const $$Date = value0 => value1 => value2 => $$$Date(value0, value1, value2);
12+const year = v => v._1;
13+const weekday = v => {
14+ const n = calcWeekday(
15+ v._1,
16+ (() => {
17+ if (v._2 === "January") { return 1; }
18+ if (v._2 === "February") { return 2; }
19+ if (v._2 === "March") { return 3; }
20+ if (v._2 === "April") { return 4; }
21+ if (v._2 === "May") { return 5; }
22+ if (v._2 === "June") { return 6; }
23+ if (v._2 === "July") { return 7; }
24+ if (v._2 === "August") { return 8; }
25+ if (v._2 === "September") { return 9; }
26+ if (v._2 === "October") { return 10; }
27+ if (v._2 === "November") { return 11; }
28+ if (v._2 === "December") { return 12; }
29+ $runtime.fail();
30+ })(),
31+ v._3
32+ );
33+ if (n === 0) { return Data$dDate$dComponent.Sunday; }
34+ if (n === 1) { return Data$dDate$dComponent.Monday; }
35+ if (n === 2) { return Data$dDate$dComponent.Tuesday; }
36+ if (n === 3) { return Data$dDate$dComponent.Wednesday; }
37+ if (n === 4) { return Data$dDate$dComponent.Thursday; }
38+ if (n === 5) { return Data$dDate$dComponent.Friday; }
39+ if (n === 6) { return Data$dDate$dComponent.Saturday; }
40+ if (n === 7) { return Data$dDate$dComponent.Sunday; }
41+ $runtime.fail();
42+};
43+const showDate = {
44+ show: v => "(Date (Year " + Data$dShow.showIntImpl(v._1) + ") " + (() => {
45+ if (v._2 === "January") { return "January"; }
46+ if (v._2 === "February") { return "February"; }
47+ if (v._2 === "March") { return "March"; }
48+ if (v._2 === "April") { return "April"; }
49+ if (v._2 === "May") { return "May"; }
50+ if (v._2 === "June") { return "June"; }
51+ if (v._2 === "July") { return "July"; }
52+ if (v._2 === "August") { return "August"; }
53+ if (v._2 === "September") { return "September"; }
54+ if (v._2 === "October") { return "October"; }
55+ if (v._2 === "November") { return "November"; }
56+ if (v._2 === "December") { return "December"; }
57+ $runtime.fail();
58+ })() + " (Day " + Data$dShow.showIntImpl(v._3) + "))"
59+};
60+const month = v => v._2;
61+const isLeapYear = y => Data$dEuclideanRing.intMod(y)(4) === 0 && (Data$dEuclideanRing.intMod(y)(400) === 0 || Data$dEuclideanRing.intMod(y)(100) !== 0);
62+const lastDayOfMonth = y => m => {
63+ if (m === "January") { return 31; }
64+ if (m === "February") {
65+ if (isLeapYear(y)) { return 29; }
66+ return 28;
67+ }
68+ if (m === "March") { return 31; }
69+ if (m === "April") { return 30; }
70+ if (m === "May") { return 31; }
71+ if (m === "June") { return 30; }
72+ if (m === "July") { return 31; }
73+ if (m === "August") { return 31; }
74+ if (m === "September") { return 30; }
75+ if (m === "October") { return 31; }
76+ if (m === "November") { return 30; }
77+ if (m === "December") { return 31; }
78+ $runtime.fail();
79+};
80+const eqDate = {
81+ eq: x => y => x._1 === y._1 && (() => {
82+ if (x._2 === "January") { return y._2 === "January"; }
83+ if (x._2 === "February") { return y._2 === "February"; }
84+ if (x._2 === "March") { return y._2 === "March"; }
85+ if (x._2 === "April") { return y._2 === "April"; }
86+ if (x._2 === "May") { return y._2 === "May"; }
87+ if (x._2 === "June") { return y._2 === "June"; }
88+ if (x._2 === "July") { return y._2 === "July"; }
89+ if (x._2 === "August") { return y._2 === "August"; }
90+ if (x._2 === "September") { return y._2 === "September"; }
91+ if (x._2 === "October") { return y._2 === "October"; }
92+ if (x._2 === "November") { return y._2 === "November"; }
93+ return x._2 === "December" && y._2 === "December";
94+ })() && x._3 === y._3
95+};
96+const ordDate = {
97+ compare: x => y => {
98+ const v = Data$dOrd.ordInt.compare(x._1)(y._1);
99+ if (v === "LT") { return Data$dOrdering.LT; }
100+ if (v === "GT") { return Data$dOrdering.GT; }
101+ const v1 = Data$dDate$dComponent.ordMonth.compare(x._2)(y._2);
102+ if (v1 === "LT") { return Data$dOrdering.LT; }
103+ if (v1 === "GT") { return Data$dOrdering.GT; }
104+ return Data$dOrd.ordInt.compare(x._3)(y._3);
105+ },
106+ Eq0: () => eqDate
107+};
108+const enumDate = {
109+ succ: v => {
110+ const sm = Data$dDate$dComponent.enumMonth.succ(v._2);
111+ const $0 = v._3 + 1 | 0;
112+ const v1 = $0 >= 1 && $0 <= 31 ? Data$dMaybe.$Maybe("Just", $0) : Data$dMaybe.Nothing;
113+ if (
114+ (() => {
115+ const $1 = lastDayOfMonth(v._1)(v._2);
116+ if (v1.tag === "Nothing") { return false; }
117+ if (v1.tag === "Just") { return v1._1 > $1; }
118+ $runtime.fail();
119+ })()
120+ ) {
121+ if (
122+ (() => {
123+ if (sm.tag === "Nothing") { return true; }
124+ if (sm.tag === "Just") { return false; }
125+ $runtime.fail();
126+ })()
127+ ) {
128+ const $1 = v._1 + 1 | 0;
129+ if ($1 >= -271820 && $1 <= 275759) {
130+ return Data$dMaybe.$Maybe(
131+ "Just",
132+ $$$Date(
133+ $1,
134+ (() => {
135+ if (sm.tag === "Nothing") { return Data$dDate$dComponent.January; }
136+ if (sm.tag === "Just") { return sm._1; }
137+ $runtime.fail();
138+ })(),
139+ 1
140+ )
141+ );
142+ }
143+ return Data$dMaybe.Nothing;
144+ }
145+ return Data$dMaybe.$Maybe(
146+ "Just",
147+ $$$Date(
148+ v._1,
149+ (() => {
150+ if (sm.tag === "Nothing") { return Data$dDate$dComponent.January; }
151+ if (sm.tag === "Just") { return sm._1; }
152+ $runtime.fail();
153+ })(),
154+ 1
155+ )
156+ );
157+ }
158+ if (
159+ (() => {
160+ if (v1.tag === "Nothing") { return true; }
161+ if (v1.tag === "Just") { return false; }
162+ $runtime.fail();
163+ })() && (() => {
164+ if (sm.tag === "Nothing") { return true; }
165+ if (sm.tag === "Just") { return false; }
166+ $runtime.fail();
167+ })()
168+ ) {
169+ const $1 = v._1 + 1 | 0;
170+ if ($1 >= -271820 && $1 <= 275759) {
171+ const $2 = $$Date($1)((() => {
172+ if (
173+ (() => {
174+ if (v1.tag === "Nothing") { return true; }
175+ if (v1.tag === "Just") { return false; }
176+ $runtime.fail();
177+ })()
178+ ) {
179+ if (sm.tag === "Nothing") { return Data$dDate$dComponent.January; }
180+ if (sm.tag === "Just") { return sm._1; }
181+ $runtime.fail();
182+ }
183+ return v._2;
184+ })());
185+ if (
186+ (() => {
187+ if (v1.tag === "Nothing") { return true; }
188+ if (v1.tag === "Just") { return false; }
189+ $runtime.fail();
190+ })()
191+ ) {
192+ return Data$dMaybe.$Maybe("Just", $2(1));
193+ }
194+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", $2(v1._1)); }
195+ }
196+ return Data$dMaybe.Nothing;
197+ }
198+ const $1 = $$Date(v._1)((() => {
199+ if (
200+ (() => {
201+ if (v1.tag === "Nothing") { return true; }
202+ if (v1.tag === "Just") { return false; }
203+ $runtime.fail();
204+ })()
205+ ) {
206+ if (sm.tag === "Nothing") { return Data$dDate$dComponent.January; }
207+ if (sm.tag === "Just") { return sm._1; }
208+ $runtime.fail();
209+ }
210+ return v._2;
211+ })());
212+ if (
213+ (() => {
214+ if (v1.tag === "Nothing") { return true; }
215+ if (v1.tag === "Just") { return false; }
216+ $runtime.fail();
217+ })()
218+ ) {
219+ return Data$dMaybe.$Maybe("Just", $1(1));
220+ }
221+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", $1(v1._1)); }
222+ return Data$dMaybe.Nothing;
223+ },
224+ pred: v => {
225+ const pm = Data$dDate$dComponent.enumMonth.pred(v._2);
226+ const $0 = v._3 - 1 | 0;
227+ if ($0 >= 1 && $0 <= 31) { return Data$dMaybe.$Maybe("Just", $$$Date(v._1, v._2, $0)); }
228+ const m$p = (() => {
229+ if (pm.tag === "Nothing") { return Data$dDate$dComponent.December; }
230+ if (pm.tag === "Just") { return pm._1; }
231+ $runtime.fail();
232+ })();
233+ const l = lastDayOfMonth(v._1)(m$p);
234+ if (
235+ (() => {
236+ if (pm.tag === "Nothing") { return true; }
237+ if (pm.tag === "Just") { return false; }
238+ $runtime.fail();
239+ })()
240+ ) {
241+ const $1 = v._1 - 1 | 0;
242+ if ($1 >= -271820 && $1 <= 275759) { return Data$dMaybe.$Maybe("Just", $$$Date($1, m$p, l)); }
243+ return Data$dMaybe.Nothing;
244+ }
245+ return Data$dMaybe.$Maybe("Just", $$$Date(v._1, m$p, l));
246+ },
247+ Ord0: () => ordDate
248+};
249+const diff = dictDuration => v => v1 => dictDuration.toDuration(calcDiff(
250+ v._1,
251+ (() => {
252+ if (v._2 === "January") { return 1; }
253+ if (v._2 === "February") { return 2; }
254+ if (v._2 === "March") { return 3; }
255+ if (v._2 === "April") { return 4; }
256+ if (v._2 === "May") { return 5; }
257+ if (v._2 === "June") { return 6; }
258+ if (v._2 === "July") { return 7; }
259+ if (v._2 === "August") { return 8; }
260+ if (v._2 === "September") { return 9; }
261+ if (v._2 === "October") { return 10; }
262+ if (v._2 === "November") { return 11; }
263+ if (v._2 === "December") { return 12; }
264+ $runtime.fail();
265+ })(),
266+ v._3,
267+ v1._1,
268+ (() => {
269+ if (v1._2 === "January") { return 1; }
270+ if (v1._2 === "February") { return 2; }
271+ if (v1._2 === "March") { return 3; }
272+ if (v1._2 === "April") { return 4; }
273+ if (v1._2 === "May") { return 5; }
274+ if (v1._2 === "June") { return 6; }
275+ if (v1._2 === "July") { return 7; }
276+ if (v1._2 === "August") { return 8; }
277+ if (v1._2 === "September") { return 9; }
278+ if (v1._2 === "October") { return 10; }
279+ if (v1._2 === "November") { return 11; }
280+ if (v1._2 === "December") { return 12; }
281+ $runtime.fail();
282+ })(),
283+ v1._3
284+));
285+const day = v => v._3;
286+const canonicalDate = y => m => d => canonicalDateImpl(
287+ y$p => m$p => d$p => $$$Date(
288+ y$p,
289+ (() => {
290+ if (m$p === 1) { return Data$dDate$dComponent.January; }
291+ if (m$p === 2) { return Data$dDate$dComponent.February; }
292+ if (m$p === 3) { return Data$dDate$dComponent.March; }
293+ if (m$p === 4) { return Data$dDate$dComponent.April; }
294+ if (m$p === 5) { return Data$dDate$dComponent.May; }
295+ if (m$p === 6) { return Data$dDate$dComponent.June; }
296+ if (m$p === 7) { return Data$dDate$dComponent.July; }
297+ if (m$p === 8) { return Data$dDate$dComponent.August; }
298+ if (m$p === 9) { return Data$dDate$dComponent.September; }
299+ if (m$p === 10) { return Data$dDate$dComponent.October; }
300+ if (m$p === 11) { return Data$dDate$dComponent.November; }
301+ if (m$p === 12) { return Data$dDate$dComponent.December; }
302+ $runtime.fail();
303+ })(),
304+ d$p
305+ ),
306+ y,
307+ (() => {
308+ if (m === "January") { return 1; }
309+ if (m === "February") { return 2; }
310+ if (m === "March") { return 3; }
311+ if (m === "April") { return 4; }
312+ if (m === "May") { return 5; }
313+ if (m === "June") { return 6; }
314+ if (m === "July") { return 7; }
315+ if (m === "August") { return 8; }
316+ if (m === "September") { return 9; }
317+ if (m === "October") { return 10; }
318+ if (m === "November") { return 11; }
319+ if (m === "December") { return 12; }
320+ $runtime.fail();
321+ })(),
322+ d
323+);
324+const exactDate = y => m => d => {
325+ if (eqDate.eq(canonicalDate(y)(m)(d))($$$Date(y, m, d))) { return Data$dMaybe.$Maybe("Just", $$$Date(y, m, d)); }
326+ return Data$dMaybe.Nothing;
327+};
328+const boundedDate = {
329+ bottom: /* #__PURE__ */ $$$Date(-271820, Data$dDate$dComponent.January, 1),
330+ top: /* #__PURE__ */ $$$Date(275759, Data$dDate$dComponent.December, 31),
331+ Ord0: () => ordDate
332+};
333+const adjust = v => date => {
334+ const adj = v1 => v2 => {
335+ if (v1 === 0) { return Data$dMaybe.$Maybe("Just", v2); }
336+ const j = v1 + v2._3 | 0;
337+ const low = j < 1;
338+ const l = lastDayOfMonth(v2._1)((() => {
339+ if (low) {
340+ const $0 = Data$dDate$dComponent.enumMonth.pred(v2._2);
341+ if ($0.tag === "Nothing") { return Data$dDate$dComponent.December; }
342+ if ($0.tag === "Just") { return $0._1; }
343+ $runtime.fail();
344+ }
345+ return v2._2;
346+ })());
347+ const hi = j > l;
348+ const $0 = adj((() => {
349+ if (low) { return j; }
350+ if (hi) { return (j - l | 0) - 1 | 0; }
351+ return 0;
352+ })());
353+ const $1 = (() => {
354+ if (low) { return enumDate.pred($$$Date(v2._1, v2._2, 1)); }
355+ if (hi) { return enumDate.succ($$$Date(v2._1, v2._2, l)); }
356+ const $1 = $$Date(v2._1)(v2._2);
357+ if (j >= 1 && j <= 31) { return Data$dMaybe.$Maybe("Just", $1(j)); }
358+ return Data$dMaybe.Nothing;
359+ })();
360+ if ($1.tag === "Just") { return $0($1._1); }
361+ if ($1.tag === "Nothing") { return Data$dMaybe.Nothing; }
362+ $runtime.fail();
363+ };
364+ const $0 = Data$dInt.fromNumber(v);
365+ if ($0.tag === "Just") { return adj($0._1)(date); }
366+ if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
367+ $runtime.fail();
368+};
369+export {$$$Date, $$Date as Date, adjust, boundedDate, canonicalDate, day, diff, enumDate, eqDate, exactDate, isLeapYear, lastDayOfMonth, month, ordDate, showDate, weekday, year};
370+export * from "./foreign.js";
output-es/Data.DateTime.Gen/index.jsnew file+8
@@ -0,0 +1,8 @@
1+import * as Data$dDate$dGen from "../Data.Date.Gen/index.js";
2+import * as Data$dDateTime from "../Data.DateTime/index.js";
3+import * as Data$dTime$dGen from "../Data.Time.Gen/index.js";
4+const genDateTime = dictMonadGen => {
5+ const Apply0 = dictMonadGen.Monad0().Bind1().Apply0();
6+ return Apply0.apply(Apply0.Functor0().map(Data$dDateTime.DateTime)(Data$dDate$dGen.genDate(dictMonadGen)))(Data$dTime$dGen.genTime(dictMonadGen));
7+};
8+export {genDateTime};
output-es/Data.DateTime.Instant/foreign.jsnew file+18
@@ -0,0 +1,18 @@
1+var createDateTime = function (y, m, d, h, mi, s, ms) {
2+ var dateTime = new Date(Date.UTC(y, m, d, h, mi, s, ms));
3+ if (y >= 0 && y < 100) {
4+ dateTime.setUTCFullYear(y);
5+ }
6+ return dateTime;
7+};
8+
9+export function fromDateTimeImpl(y, mo, d, h, mi, s, ms) {
10+ return createDateTime(y, mo - 1, d, h, mi, s, ms).getTime();
11+}
12+
13+export function toDateTimeImpl(ctor) {
14+ return function (instant) {
15+ var dt = new Date(instant);
16+ return ctor (dt.getUTCFullYear())(dt.getUTCMonth() + 1)(dt.getUTCDate())(dt.getUTCHours())(dt.getUTCMinutes())(dt.getUTCSeconds())(dt.getUTCMilliseconds());
17+ };
18+}
output-es/Data.DateTime.Instant/index.jsnew file+86
@@ -0,0 +1,86 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dDate from "../Data.Date/index.js";
3+import * as Data$dDate$dComponent from "../Data.Date.Component/index.js";
4+import * as Data$dDateTime from "../Data.DateTime/index.js";
5+import * as Data$dEq from "../Data.Eq/index.js";
6+import * as Data$dMaybe from "../Data.Maybe/index.js";
7+import * as Data$dOrd from "../Data.Ord/index.js";
8+import * as Data$dShow from "../Data.Show/index.js";
9+import * as Data$dTime from "../Data.Time/index.js";
10+import {fromDateTimeImpl, toDateTimeImpl} from "./foreign.js";
11+const unInstant = v => v;
12+const toDateTime = /* #__PURE__ */ toDateTimeImpl(y => mo => d => h => mi => s => ms => Data$dDateTime.$DateTime(
13+ Data$dDate.canonicalDate(y)((() => {
14+ if (mo === 1) { return Data$dDate$dComponent.January; }
15+ if (mo === 2) { return Data$dDate$dComponent.February; }
16+ if (mo === 3) { return Data$dDate$dComponent.March; }
17+ if (mo === 4) { return Data$dDate$dComponent.April; }
18+ if (mo === 5) { return Data$dDate$dComponent.May; }
19+ if (mo === 6) { return Data$dDate$dComponent.June; }
20+ if (mo === 7) { return Data$dDate$dComponent.July; }
21+ if (mo === 8) { return Data$dDate$dComponent.August; }
22+ if (mo === 9) { return Data$dDate$dComponent.September; }
23+ if (mo === 10) { return Data$dDate$dComponent.October; }
24+ if (mo === 11) { return Data$dDate$dComponent.November; }
25+ if (mo === 12) { return Data$dDate$dComponent.December; }
26+ $runtime.fail();
27+ })())(d),
28+ Data$dTime.$Time(h, mi, s, ms)
29+));
30+const showInstant = {show: v => "(Instant (Milliseconds " + Data$dShow.showNumberImpl(v) + "))"};
31+const ordDateTime = Data$dOrd.ordNumber;
32+const instant = v => {
33+ if (v >= -8639977881600000.0 && v <= 8639977881599999.0) { return Data$dMaybe.$Maybe("Just", v); }
34+ return Data$dMaybe.Nothing;
35+};
36+const fromDateTime = v => fromDateTimeImpl(
37+ v._1._1,
38+ (() => {
39+ if (v._1._2 === "January") { return 1; }
40+ if (v._1._2 === "February") { return 2; }
41+ if (v._1._2 === "March") { return 3; }
42+ if (v._1._2 === "April") { return 4; }
43+ if (v._1._2 === "May") { return 5; }
44+ if (v._1._2 === "June") { return 6; }
45+ if (v._1._2 === "July") { return 7; }
46+ if (v._1._2 === "August") { return 8; }
47+ if (v._1._2 === "September") { return 9; }
48+ if (v._1._2 === "October") { return 10; }
49+ if (v._1._2 === "November") { return 11; }
50+ if (v._1._2 === "December") { return 12; }
51+ $runtime.fail();
52+ })(),
53+ v._1._3,
54+ v._2._1,
55+ v._2._2,
56+ v._2._3,
57+ v._2._4
58+);
59+const fromDate = d => fromDateTimeImpl(
60+ d._1,
61+ (() => {
62+ if (d._2 === "January") { return 1; }
63+ if (d._2 === "February") { return 2; }
64+ if (d._2 === "March") { return 3; }
65+ if (d._2 === "April") { return 4; }
66+ if (d._2 === "May") { return 5; }
67+ if (d._2 === "June") { return 6; }
68+ if (d._2 === "July") { return 7; }
69+ if (d._2 === "August") { return 8; }
70+ if (d._2 === "September") { return 9; }
71+ if (d._2 === "October") { return 10; }
72+ if (d._2 === "November") { return 11; }
73+ if (d._2 === "December") { return 12; }
74+ $runtime.fail();
75+ })(),
76+ d._3,
77+ 0,
78+ 0,
79+ 0,
80+ 0
81+);
82+const eqDateTime = Data$dEq.eqNumber;
83+const diff = dictDuration => dt1 => dt2 => dictDuration.toDuration(dt1 + -dt2);
84+const boundedInstant = {bottom: -8639977881600000.0, top: 8639977881599999.0, Ord0: () => Data$dOrd.ordNumber};
85+export {boundedInstant, diff, eqDateTime, fromDate, fromDateTime, instant, ordDateTime, showInstant, toDateTime, unInstant};
86+export * from "./foreign.js";
output-es/Data.DateTime/foreign.jsnew file+33
@@ -0,0 +1,33 @@
1+var createUTC = function (y, mo, d, h, m, s, ms) {
2+ var date = new Date(Date.UTC(y, mo, d, h, m, s, ms));
3+ if (y >= 0 && y < 100) {
4+ date.setUTCFullYear(y);
5+ }
6+ return date.getTime();
7+};
8+
9+export function calcDiff(rec1, rec2) {
10+ var msUTC1 = createUTC(rec1.year, rec1.month - 1, rec1.day, rec1.hour, rec1.minute, rec1.second, rec1.millisecond);
11+ var msUTC2 = createUTC(rec2.year, rec2.month - 1, rec2.day, rec2.hour, rec2.minute, rec2.second, rec2.millisecond);
12+ return msUTC1 - msUTC2;
13+}
14+
15+export function adjustImpl(just) {
16+ return function (nothing) {
17+ return function (offset) {
18+ return function (rec) {
19+ var msUTC = createUTC(rec.year, rec.month - 1, rec.day, rec.hour, rec.minute, rec.second, rec.millisecond);
20+ var dt = new Date(msUTC + offset);
21+ return isNaN(dt.getTime()) ? nothing : just({
22+ year: dt.getUTCFullYear(),
23+ month: dt.getUTCMonth() + 1,
24+ day: dt.getUTCDate(),
25+ hour: dt.getUTCHours(),
26+ minute: dt.getUTCMinutes(),
27+ second: dt.getUTCSeconds(),
28+ millisecond: dt.getUTCMilliseconds()
29+ });
30+ };
31+ };
32+ };
33+}
output-es/Data.DateTime/index.jsnew file+131
@@ -0,0 +1,131 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dDate from "../Data.Date/index.js";
3+import * as Data$dDate$dComponent from "../Data.Date.Component/index.js";
4+import * as Data$dMaybe from "../Data.Maybe/index.js";
5+import * as Data$dOrdering from "../Data.Ordering/index.js";
6+import * as Data$dTime from "../Data.Time/index.js";
7+import {adjustImpl, calcDiff} from "./foreign.js";
8+const $DateTime = (_1, _2) => ({tag: "DateTime", _1, _2});
9+const DateTime = value0 => value1 => $DateTime(value0, value1);
10+const toRecord = v => (
11+ {
12+ year: v._1._1,
13+ month: (() => {
14+ if (v._1._2 === "January") { return 1; }
15+ if (v._1._2 === "February") { return 2; }
16+ if (v._1._2 === "March") { return 3; }
17+ if (v._1._2 === "April") { return 4; }
18+ if (v._1._2 === "May") { return 5; }
19+ if (v._1._2 === "June") { return 6; }
20+ if (v._1._2 === "July") { return 7; }
21+ if (v._1._2 === "August") { return 8; }
22+ if (v._1._2 === "September") { return 9; }
23+ if (v._1._2 === "October") { return 10; }
24+ if (v._1._2 === "November") { return 11; }
25+ if (v._1._2 === "December") { return 12; }
26+ $runtime.fail();
27+ })(),
28+ day: v._1._3,
29+ hour: v._2._1,
30+ minute: v._2._2,
31+ second: v._2._3,
32+ millisecond: v._2._4
33+ }
34+);
35+const time = v => v._2;
36+const showDateTime = {show: v => "(DateTime " + Data$dDate.showDate.show(v._1) + " " + Data$dTime.showTime.show(v._2) + ")"};
37+const modifyTimeF = dictFunctor => f => v => dictFunctor.map(DateTime(v._1))(f(v._2));
38+const modifyTime = f => v => $DateTime(v._1, f(v._2));
39+const modifyDateF = dictFunctor => f => v => {
40+ const $0 = v._2;
41+ return dictFunctor.map(a => $DateTime(a, $0))(f(v._1));
42+};
43+const modifyDate = f => v => $DateTime(f(v._1), v._2);
44+const eqDateTime = {eq: x => y => Data$dDate.eqDate.eq(x._1)(y._1) && x._2._1 === y._2._1 && x._2._2 === y._2._2 && x._2._3 === y._2._3 && x._2._4 === y._2._4};
45+const ordDateTime = {
46+ compare: x => y => {
47+ const v = Data$dDate.ordDate.compare(x._1)(y._1);
48+ if (v === "LT") { return Data$dOrdering.LT; }
49+ if (v === "GT") { return Data$dOrdering.GT; }
50+ return Data$dTime.ordTime.compare(x._2)(y._2);
51+ },
52+ Eq0: () => eqDateTime
53+};
54+const diff = dictDuration => dt1 => dt2 => dictDuration.toDuration(calcDiff(toRecord(dt1), toRecord(dt2)));
55+const date = v => v._1;
56+const boundedDateTime = {
57+ bottom: /* #__PURE__ */ $DateTime(/* #__PURE__ */ Data$dDate.$$$Date(-271820, Data$dDate$dComponent.January, 1), /* #__PURE__ */ Data$dTime.$Time(0, 0, 0, 0)),
58+ top: /* #__PURE__ */ $DateTime(/* #__PURE__ */ Data$dDate.$$$Date(275759, Data$dDate$dComponent.December, 31), /* #__PURE__ */ Data$dTime.$Time(23, 59, 59, 999)),
59+ Ord0: () => ordDateTime
60+};
61+const adjust = dictDuration => d => dt => {
62+ const $0 = adjustImpl(Data$dMaybe.Just)(Data$dMaybe.Nothing)(dictDuration.fromDuration(d))(toRecord(dt));
63+ if ($0.tag === "Just") {
64+ const $1 = $0._1.year >= -271820 && $0._1.year <= 275759 ? Data$dMaybe.$Maybe("Just", $0._1.year) : Data$dMaybe.Nothing;
65+ const $2 = $1.tag === "Just" ? Data$dMaybe.$Maybe("Just", Data$dDate.exactDate($1._1)) : Data$dMaybe.Nothing;
66+ const $3 = (() => {
67+ if ($0._1.month === 1) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.January); }
68+ if ($0._1.month === 2) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.February); }
69+ if ($0._1.month === 3) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.March); }
70+ if ($0._1.month === 4) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.April); }
71+ if ($0._1.month === 5) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.May); }
72+ if ($0._1.month === 6) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.June); }
73+ if ($0._1.month === 7) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.July); }
74+ if ($0._1.month === 8) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.August); }
75+ if ($0._1.month === 9) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.September); }
76+ if ($0._1.month === 10) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.October); }
77+ if ($0._1.month === 11) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.November); }
78+ if ($0._1.month === 12) { return Data$dMaybe.$Maybe("Just", Data$dDate$dComponent.December); }
79+ return Data$dMaybe.Nothing;
80+ })();
81+ const $4 = (() => {
82+ if ($2.tag === "Just") {
83+ if ($3.tag === "Just") {
84+ if ($0._1.day >= 1 && $0._1.day <= 31) { return Data$dMaybe.$Maybe("Just", $2._1($3._1)($0._1.day)); }
85+ return Data$dMaybe.Nothing;
86+ }
87+ return Data$dMaybe.Nothing;
88+ }
89+ if ($2.tag === "Nothing") { return Data$dMaybe.Nothing; }
90+ $runtime.fail();
91+ })();
92+ const $5 = (() => {
93+ if ($4.tag === "Just") { return $4._1; }
94+ if ($4.tag === "Nothing") { return Data$dMaybe.Nothing; }
95+ $runtime.fail();
96+ })();
97+ const $6 = $5.tag === "Just" ? Data$dMaybe.$Maybe("Just", DateTime($5._1)) : Data$dMaybe.Nothing;
98+ if ($0._1.hour >= 0 && $0._1.hour <= 23) {
99+ if ($0._1.minute >= 0 && $0._1.minute <= 59) {
100+ if ($0._1.second >= 0 && $0._1.second <= 59) {
101+ if ($0._1.millisecond >= 0 && $0._1.millisecond <= 999) {
102+ if ($6.tag === "Just") { return Data$dMaybe.$Maybe("Just", $6._1(Data$dTime.$Time($0._1.hour, $0._1.minute, $0._1.second, $0._1.millisecond))); }
103+ if ($6.tag === "Nothing") { return Data$dMaybe.Nothing; }
104+ $runtime.fail();
105+ }
106+ if ($6.tag === "Just") { return Data$dMaybe.Nothing; }
107+ if ($6.tag === "Nothing") { return Data$dMaybe.Nothing; }
108+ $runtime.fail();
109+ }
110+ if ($6.tag === "Just") { return Data$dMaybe.Nothing; }
111+ if ($6.tag === "Nothing") { return Data$dMaybe.Nothing; }
112+ $runtime.fail();
113+ }
114+ if ($0._1.second >= 0 && $0._1.second <= 59) {
115+ if ($6.tag === "Just") { return Data$dMaybe.Nothing; }
116+ if ($6.tag === "Nothing") { return Data$dMaybe.Nothing; }
117+ $runtime.fail();
118+ }
119+ if ($6.tag === "Just") { return Data$dMaybe.Nothing; }
120+ if ($6.tag === "Nothing") { return Data$dMaybe.Nothing; }
121+ $runtime.fail();
122+ }
123+ if ($6.tag === "Just") { return Data$dMaybe.Nothing; }
124+ if ($6.tag === "Nothing") { return Data$dMaybe.Nothing; }
125+ $runtime.fail();
126+ }
127+ if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
128+ $runtime.fail();
129+};
130+export {$DateTime, DateTime, adjust, boundedDateTime, date, diff, eqDateTime, modifyDate, modifyDateF, modifyTime, modifyTimeF, ordDateTime, showDateTime, time, toRecord};
131+export * from "./foreign.js";
output-es/Data.Decidable/index.jsnew file+70
@@ -0,0 +1,70 @@
1+import * as Data$dDecide from "../Data.Decide/index.js";
2+import * as Data$dDivisible from "../Data.Divisible/index.js";
3+const identity = x => x;
4+const lose = dict => dict.lose;
5+const lost = dictDecidable => dictDecidable.lose(identity);
6+const decidablePredicate = {
7+ lose: f => a => {
8+ const spin = spin$a0$copy => {
9+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
10+ while (spin$c) {
11+ const v = spin$a0;
12+ spin$a0 = v;
13+ }
14+ return spin$r;
15+ };
16+ return spin(f(a));
17+ },
18+ Decide0: () => Data$dDecide.choosePredicate,
19+ Divisible1: () => Data$dDivisible.divisiblePredicate
20+};
21+const decidableOp = dictMonoid => {
22+ const chooseOp = Data$dDecide.chooseOp(dictMonoid.Semigroup0());
23+ const divisibleOp = Data$dDivisible.divisibleOp(dictMonoid);
24+ return {
25+ lose: f => a => {
26+ const spin = spin$a0$copy => {
27+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
28+ while (spin$c) {
29+ const v = spin$a0;
30+ spin$a0 = v;
31+ }
32+ return spin$r;
33+ };
34+ return spin(f(a));
35+ },
36+ Decide0: () => chooseOp,
37+ Divisible1: () => divisibleOp
38+ };
39+};
40+const decidableEquivalence = {
41+ lose: f => a => {
42+ const spin = spin$a0$copy => {
43+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
44+ while (spin$c) {
45+ const v = spin$a0;
46+ spin$a0 = v;
47+ }
48+ return spin$r;
49+ };
50+ return spin(f(a));
51+ },
52+ Decide0: () => Data$dDecide.chooseEquivalence,
53+ Divisible1: () => Data$dDivisible.divisibleEquivalence
54+};
55+const decidableComparison = {
56+ lose: f => a => v => {
57+ const spin = spin$a0$copy => {
58+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
59+ while (spin$c) {
60+ const v$1 = spin$a0;
61+ spin$a0 = v$1;
62+ }
63+ return spin$r;
64+ };
65+ return spin(f(a));
66+ },
67+ Decide0: () => Data$dDecide.chooseComparison,
68+ Divisible1: () => Data$dDivisible.divisibleComparison
69+};
70+export {decidableComparison, decidableEquivalence, decidableOp, decidablePredicate, identity, lose, lost};
output-es/Data.Decide/index.jsnew file+64
@@ -0,0 +1,64 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dDivide from "../Data.Divide/index.js";
3+import * as Data$dOrdering from "../Data.Ordering/index.js";
4+const identity = x => x;
5+const choosePredicate = {
6+ choose: f => v => v1 => x => {
7+ const $0 = f(x);
8+ if ($0.tag === "Left") { return v($0._1); }
9+ if ($0.tag === "Right") { return v1($0._1); }
10+ $runtime.fail();
11+ },
12+ Divide0: () => Data$dDivide.dividePredicate
13+};
14+const chooseOp = dictSemigroup => {
15+ const divideOp = Data$dDivide.divideOp(dictSemigroup);
16+ return {
17+ choose: f => v => v1 => x => {
18+ const $0 = f(x);
19+ if ($0.tag === "Left") { return v($0._1); }
20+ if ($0.tag === "Right") { return v1($0._1); }
21+ $runtime.fail();
22+ },
23+ Divide0: () => divideOp
24+ };
25+};
26+const chooseEquivalence = {
27+ choose: f => v => v1 => a => b => {
28+ const v2 = f(a);
29+ if (v2.tag === "Left") {
30+ const v3 = f(b);
31+ if (v3.tag === "Left") { return v(v2._1)(v3._1); }
32+ if (v3.tag === "Right") { return false; }
33+ $runtime.fail();
34+ }
35+ if (v2.tag === "Right") {
36+ const v3 = f(b);
37+ if (v3.tag === "Left") { return false; }
38+ if (v3.tag === "Right") { return v1(v2._1)(v3._1); }
39+ }
40+ $runtime.fail();
41+ },
42+ Divide0: () => Data$dDivide.divideEquivalence
43+};
44+const chooseComparison = {
45+ choose: f => v => v1 => a => b => {
46+ const v2 = f(a);
47+ if (v2.tag === "Left") {
48+ const v3 = f(b);
49+ if (v3.tag === "Left") { return v(v2._1)(v3._1); }
50+ if (v3.tag === "Right") { return Data$dOrdering.LT; }
51+ $runtime.fail();
52+ }
53+ if (v2.tag === "Right") {
54+ const v3 = f(b);
55+ if (v3.tag === "Left") { return Data$dOrdering.GT; }
56+ if (v3.tag === "Right") { return v1(v2._1)(v3._1); }
57+ }
58+ $runtime.fail();
59+ },
60+ Divide0: () => Data$dDivide.divideComparison
61+};
62+const choose = dict => dict.choose;
63+const chosen = dictDecide => dictDecide.choose(identity);
64+export {choose, chooseComparison, chooseEquivalence, chooseOp, choosePredicate, chosen, identity};
output-es/Data.Distributive/index.jsnew file+55
@@ -0,0 +1,55 @@
1+import * as Data$dFunctor from "../Data.Functor/index.js";
2+import * as Data$dIdentity from "../Data.Identity/index.js";
3+import * as Data$dTuple from "../Data.Tuple/index.js";
4+import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
5+const identity = x => x;
6+const distributiveIdentity = {
7+ distribute: dictFunctor => dictFunctor.map(Unsafe$dCoerce.unsafeCoerce),
8+ collect: dictFunctor => f => dictFunctor.map(x => f(x)),
9+ Functor0: () => Data$dIdentity.functorIdentity
10+};
11+const distribute = dict => dict.distribute;
12+const distributiveFunction = {
13+ distribute: dictFunctor => a => e => dictFunctor.map(v => v(e))(a),
14+ collect: dictFunctor => f => {
15+ const $0 = distributiveFunction.distribute(dictFunctor);
16+ const $1 = dictFunctor.map(f);
17+ return x => $0($1(x));
18+ },
19+ Functor0: () => Data$dFunctor.functorFn
20+};
21+const cotraverse = dictDistributive => dictFunctor => {
22+ const distribute2 = dictDistributive.distribute(dictFunctor);
23+ return f => {
24+ const $0 = dictDistributive.Functor0().map(f);
25+ return x => $0(distribute2(x));
26+ };
27+};
28+const collectDefault = dictDistributive => dictFunctor => {
29+ const distribute2 = dictDistributive.distribute(dictFunctor);
30+ return f => {
31+ const $0 = dictFunctor.map(f);
32+ return x => distribute2($0(x));
33+ };
34+};
35+const distributiveTuple = dictTypeEquals => {
36+ const from = dictTypeEquals.proof(a => a);
37+ return {
38+ collect: dictFunctor => {
39+ const distribute2 = distributiveTuple(dictTypeEquals).distribute(dictFunctor);
40+ return f => {
41+ const $0 = dictFunctor.map(f);
42+ return x => distribute2($0(x));
43+ };
44+ },
45+ distribute: dictFunctor => {
46+ const $0 = Data$dTuple.Tuple(from());
47+ const $1 = dictFunctor.map(Data$dTuple.snd);
48+ return x => $0($1(x));
49+ },
50+ Functor0: () => Data$dTuple.functorTuple
51+ };
52+};
53+const collect = dict => dict.collect;
54+const distributeDefault = dictDistributive => dictFunctor => dictDistributive.collect(dictFunctor)(identity);
55+export {collect, collectDefault, cotraverse, distribute, distributeDefault, distributiveFunction, distributiveIdentity, distributiveTuple, identity};
output-es/Data.Divide/index.jsnew file+47
@@ -0,0 +1,47 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dComparison from "../Data.Comparison/index.js";
3+import * as Data$dEquivalence from "../Data.Equivalence/index.js";
4+import * as Data$dOp from "../Data.Op/index.js";
5+import * as Data$dOrdering from "../Data.Ordering/index.js";
6+import * as Data$dPredicate from "../Data.Predicate/index.js";
7+const identity = x => x;
8+const dividePredicate = {
9+ divide: f => v => v1 => a => {
10+ const v2 = f(a);
11+ return v(v2._1) && v1(v2._2);
12+ },
13+ Contravariant0: () => Data$dPredicate.contravariantPredicate
14+};
15+const divideOp = dictSemigroup => (
16+ {
17+ divide: f => v => v1 => a => {
18+ const v2 = f(a);
19+ return dictSemigroup.append(v(v2._1))(v1(v2._2));
20+ },
21+ Contravariant0: () => Data$dOp.contravariantOp
22+ }
23+);
24+const divideEquivalence = {
25+ divide: f => v => v1 => a => b => {
26+ const v2 = f(a);
27+ const v3 = f(b);
28+ return v(v2._1)(v3._1) && v1(v2._2)(v3._2);
29+ },
30+ Contravariant0: () => Data$dEquivalence.contravariantEquivalence
31+};
32+const divideComparison = {
33+ divide: f => v => v1 => a => b => {
34+ const v2 = f(a);
35+ const v3 = f(b);
36+ const $0 = v(v2._1)(v3._1);
37+ const $1 = v1(v2._2)(v3._2);
38+ if ($0 === "LT") { return Data$dOrdering.LT; }
39+ if ($0 === "GT") { return Data$dOrdering.GT; }
40+ if ($0 === "EQ") { return $1; }
41+ $runtime.fail();
42+ },
43+ Contravariant0: () => Data$dComparison.contravariantComparison
44+};
45+const divide = dict => dict.divide;
46+const divided = dictDivide => dictDivide.divide(identity);
47+export {divide, divideComparison, divideEquivalence, divideOp, dividePredicate, divided, identity};
output-es/Data.Divisible/index.jsnew file+17
@@ -0,0 +1,17 @@
1+import * as Data$dDivide from "../Data.Divide/index.js";
2+import * as Data$dOrdering from "../Data.Ordering/index.js";
3+const divisiblePredicate = {conquer: v => true, Divide0: () => Data$dDivide.dividePredicate};
4+const divisibleOp = dictMonoid => {
5+ const divideOp = Data$dDivide.divideOp(dictMonoid.Semigroup0());
6+ return {
7+ conquer: (() => {
8+ const $0 = dictMonoid.mempty;
9+ return v => $0;
10+ })(),
11+ Divide0: () => divideOp
12+ };
13+};
14+const divisibleEquivalence = {conquer: v => v1 => true, Divide0: () => Data$dDivide.divideEquivalence};
15+const divisibleComparison = {conquer: v => v1 => Data$dOrdering.EQ, Divide0: () => Data$dDivide.divideComparison};
16+const conquer = dict => dict.conquer;
17+export {conquer, divisibleComparison, divisibleEquivalence, divisibleOp, divisiblePredicate};
output-es/Data.DivisionRing/index.jsnew file+6
@@ -0,0 +1,6 @@
1+import * as Data$dRing from "../Data.Ring/index.js";
2+const recip = dict => dict.recip;
3+const rightDiv = dictDivisionRing => a => b => dictDivisionRing.Ring0().Semiring0().mul(a)(dictDivisionRing.recip(b));
4+const leftDiv = dictDivisionRing => a => b => dictDivisionRing.Ring0().Semiring0().mul(dictDivisionRing.recip(b))(a);
5+const divisionringNumber = {recip: x => 1.0 / x, Ring0: () => Data$dRing.ringNumber};
6+export {divisionringNumber, leftDiv, recip, rightDiv};
output-es/Data.Either.Inject/index.jsnew file+25
@@ -0,0 +1,25 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEither from "../Data.Either/index.js";
3+import * as Data$dMaybe from "../Data.Maybe/index.js";
4+const prj = dict => dict.prj;
5+const injectReflexive = {inj: x => x, prj: Data$dMaybe.Just};
6+const injectLeft = {
7+ inj: Data$dEither.Left,
8+ prj: v2 => {
9+ if (v2.tag === "Left") { return Data$dMaybe.$Maybe("Just", v2._1); }
10+ if (v2.tag === "Right") { return Data$dMaybe.Nothing; }
11+ $runtime.fail();
12+ }
13+};
14+const inj = dict => dict.inj;
15+const injectRight = dictInject => (
16+ {
17+ inj: x => Data$dEither.$Either("Right", dictInject.inj(x)),
18+ prj: v2 => {
19+ if (v2.tag === "Left") { return Data$dMaybe.Nothing; }
20+ if (v2.tag === "Right") { return dictInject.prj(v2._1); }
21+ $runtime.fail();
22+ }
23+ }
24+);
25+export {inj, injectLeft, injectReflexive, injectRight, prj};
output-es/Data.Either.Nested/index.jsnew file+450
@@ -0,0 +1,450 @@
1+// | Utilities for n-eithers: sums types with more than two terms built from nested eithers.
2+// |
3+// | Nested eithers arise naturally in sum combinators. You shouldn't
4+// | represent sum data using nested eithers, but if combinators you're working with
5+// | create them, utilities in this module will allow to to more easily work
6+// | with them, including translating to and from more traditional sum types.
7+// |
8+// | ```purescript
9+// | data Color = Red Number | Green Number | Blue Number
10+// |
11+// | fromEither3 :: Either3 Number Number Number -> Color
12+// | fromEither3 = either3 Red Green Blue
13+// |
14+// | toEither3 :: Color -> Either3 Number Number Number
15+// | toEither3 (Red v) = in1 v
16+// | toEither3 (Green v) = in2 v
17+// | toEither3 (Blue v) = in3 v
18+// | ```
19+import * as $runtime from "../runtime.js";
20+import * as Data$dEither from "../Data.Either/index.js";
21+const in9 = v => Data$dEither.$Either(
22+ "Right",
23+ Data$dEither.$Either(
24+ "Right",
25+ Data$dEither.$Either(
26+ "Right",
27+ Data$dEither.$Either(
28+ "Right",
29+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
30+ )
31+ )
32+ )
33+);
34+const in8 = v => Data$dEither.$Either(
35+ "Right",
36+ Data$dEither.$Either(
37+ "Right",
38+ Data$dEither.$Either(
39+ "Right",
40+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
41+ )
42+ )
43+);
44+const in7 = v => Data$dEither.$Either(
45+ "Right",
46+ Data$dEither.$Either(
47+ "Right",
48+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
49+ )
50+);
51+const in6 = v => Data$dEither.$Either(
52+ "Right",
53+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
54+);
55+const in5 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))));
56+const in4 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v))));
57+const in3 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)));
58+const in2 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Left", v));
59+const in10 = v => Data$dEither.$Either(
60+ "Right",
61+ Data$dEither.$Either(
62+ "Right",
63+ Data$dEither.$Either(
64+ "Right",
65+ Data$dEither.$Either(
66+ "Right",
67+ Data$dEither.$Either(
68+ "Right",
69+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
70+ )
71+ )
72+ )
73+ )
74+);
75+const in1 = Data$dEither.Left;
76+const either9 = a => b => c => d => e => f => g => h => i => y => {
77+ if (y.tag === "Left") { return a(y._1); }
78+ if (y.tag === "Right") {
79+ if (y._1.tag === "Left") { return b(y._1._1); }
80+ if (y._1.tag === "Right") {
81+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
82+ if (y._1._1.tag === "Right") {
83+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
84+ if (y._1._1._1.tag === "Right") {
85+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
86+ if (y._1._1._1._1.tag === "Right") {
87+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
88+ if (y._1._1._1._1._1.tag === "Right") {
89+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
90+ if (y._1._1._1._1._1._1.tag === "Right") {
91+ if (y._1._1._1._1._1._1._1.tag === "Left") { return h(y._1._1._1._1._1._1._1._1); }
92+ if (y._1._1._1._1._1._1._1.tag === "Right") {
93+ if (y._1._1._1._1._1._1._1._1.tag === "Left") { return i(y._1._1._1._1._1._1._1._1._1); }
94+ if (y._1._1._1._1._1._1._1._1.tag === "Right") {
95+ const spin = spin$a0$copy => {
96+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
97+ while (spin$c) {
98+ const v = spin$a0;
99+ spin$a0 = v;
100+ }
101+ return spin$r;
102+ };
103+ return spin(y._1._1._1._1._1._1._1._1._1);
104+ }
105+ }
106+ }
107+ }
108+ }
109+ }
110+ }
111+ }
112+ }
113+ $runtime.fail();
114+};
115+const either8 = a => b => c => d => e => f => g => h => y => {
116+ if (y.tag === "Left") { return a(y._1); }
117+ if (y.tag === "Right") {
118+ if (y._1.tag === "Left") { return b(y._1._1); }
119+ if (y._1.tag === "Right") {
120+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
121+ if (y._1._1.tag === "Right") {
122+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
123+ if (y._1._1._1.tag === "Right") {
124+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
125+ if (y._1._1._1._1.tag === "Right") {
126+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
127+ if (y._1._1._1._1._1.tag === "Right") {
128+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
129+ if (y._1._1._1._1._1._1.tag === "Right") {
130+ if (y._1._1._1._1._1._1._1.tag === "Left") { return h(y._1._1._1._1._1._1._1._1); }
131+ if (y._1._1._1._1._1._1._1.tag === "Right") {
132+ const spin = spin$a0$copy => {
133+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
134+ while (spin$c) {
135+ const v = spin$a0;
136+ spin$a0 = v;
137+ }
138+ return spin$r;
139+ };
140+ return spin(y._1._1._1._1._1._1._1._1);
141+ }
142+ }
143+ }
144+ }
145+ }
146+ }
147+ }
148+ }
149+ $runtime.fail();
150+};
151+const either7 = a => b => c => d => e => f => g => y => {
152+ if (y.tag === "Left") { return a(y._1); }
153+ if (y.tag === "Right") {
154+ if (y._1.tag === "Left") { return b(y._1._1); }
155+ if (y._1.tag === "Right") {
156+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
157+ if (y._1._1.tag === "Right") {
158+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
159+ if (y._1._1._1.tag === "Right") {
160+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
161+ if (y._1._1._1._1.tag === "Right") {
162+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
163+ if (y._1._1._1._1._1.tag === "Right") {
164+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
165+ if (y._1._1._1._1._1._1.tag === "Right") {
166+ const spin = spin$a0$copy => {
167+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
168+ while (spin$c) {
169+ const v = spin$a0;
170+ spin$a0 = v;
171+ }
172+ return spin$r;
173+ };
174+ return spin(y._1._1._1._1._1._1._1);
175+ }
176+ }
177+ }
178+ }
179+ }
180+ }
181+ }
182+ $runtime.fail();
183+};
184+const either6 = a => b => c => d => e => f => y => {
185+ if (y.tag === "Left") { return a(y._1); }
186+ if (y.tag === "Right") {
187+ if (y._1.tag === "Left") { return b(y._1._1); }
188+ if (y._1.tag === "Right") {
189+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
190+ if (y._1._1.tag === "Right") {
191+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
192+ if (y._1._1._1.tag === "Right") {
193+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
194+ if (y._1._1._1._1.tag === "Right") {
195+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
196+ if (y._1._1._1._1._1.tag === "Right") {
197+ const spin = spin$a0$copy => {
198+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
199+ while (spin$c) {
200+ const v = spin$a0;
201+ spin$a0 = v;
202+ }
203+ return spin$r;
204+ };
205+ return spin(y._1._1._1._1._1._1);
206+ }
207+ }
208+ }
209+ }
210+ }
211+ }
212+ $runtime.fail();
213+};
214+const either5 = a => b => c => d => e => y => {
215+ if (y.tag === "Left") { return a(y._1); }
216+ if (y.tag === "Right") {
217+ if (y._1.tag === "Left") { return b(y._1._1); }
218+ if (y._1.tag === "Right") {
219+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
220+ if (y._1._1.tag === "Right") {
221+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
222+ if (y._1._1._1.tag === "Right") {
223+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
224+ if (y._1._1._1._1.tag === "Right") {
225+ const spin = spin$a0$copy => {
226+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
227+ while (spin$c) {
228+ const v = spin$a0;
229+ spin$a0 = v;
230+ }
231+ return spin$r;
232+ };
233+ return spin(y._1._1._1._1._1);
234+ }
235+ }
236+ }
237+ }
238+ }
239+ $runtime.fail();
240+};
241+const either4 = a => b => c => d => y => {
242+ if (y.tag === "Left") { return a(y._1); }
243+ if (y.tag === "Right") {
244+ if (y._1.tag === "Left") { return b(y._1._1); }
245+ if (y._1.tag === "Right") {
246+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
247+ if (y._1._1.tag === "Right") {
248+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
249+ if (y._1._1._1.tag === "Right") {
250+ const spin = spin$a0$copy => {
251+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
252+ while (spin$c) {
253+ const v = spin$a0;
254+ spin$a0 = v;
255+ }
256+ return spin$r;
257+ };
258+ return spin(y._1._1._1._1);
259+ }
260+ }
261+ }
262+ }
263+ $runtime.fail();
264+};
265+const either3 = a => b => c => y => {
266+ if (y.tag === "Left") { return a(y._1); }
267+ if (y.tag === "Right") {
268+ if (y._1.tag === "Left") { return b(y._1._1); }
269+ if (y._1.tag === "Right") {
270+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
271+ if (y._1._1.tag === "Right") {
272+ const spin = spin$a0$copy => {
273+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
274+ while (spin$c) {
275+ const v = spin$a0;
276+ spin$a0 = v;
277+ }
278+ return spin$r;
279+ };
280+ return spin(y._1._1._1);
281+ }
282+ }
283+ }
284+ $runtime.fail();
285+};
286+const either2 = a => b => y => {
287+ if (y.tag === "Left") { return a(y._1); }
288+ if (y.tag === "Right") {
289+ if (y._1.tag === "Left") { return b(y._1._1); }
290+ if (y._1.tag === "Right") {
291+ const spin = spin$a0$copy => {
292+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
293+ while (spin$c) {
294+ const v = spin$a0;
295+ spin$a0 = v;
296+ }
297+ return spin$r;
298+ };
299+ return spin(y._1._1);
300+ }
301+ }
302+ $runtime.fail();
303+};
304+const either10 = a => b => c => d => e => f => g => h => i => j => y => {
305+ if (y.tag === "Left") { return a(y._1); }
306+ if (y.tag === "Right") {
307+ if (y._1.tag === "Left") { return b(y._1._1); }
308+ if (y._1.tag === "Right") {
309+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
310+ if (y._1._1.tag === "Right") {
311+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
312+ if (y._1._1._1.tag === "Right") {
313+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
314+ if (y._1._1._1._1.tag === "Right") {
315+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
316+ if (y._1._1._1._1._1.tag === "Right") {
317+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
318+ if (y._1._1._1._1._1._1.tag === "Right") {
319+ if (y._1._1._1._1._1._1._1.tag === "Left") { return h(y._1._1._1._1._1._1._1._1); }
320+ if (y._1._1._1._1._1._1._1.tag === "Right") {
321+ if (y._1._1._1._1._1._1._1._1.tag === "Left") { return i(y._1._1._1._1._1._1._1._1._1); }
322+ if (y._1._1._1._1._1._1._1._1.tag === "Right") {
323+ if (y._1._1._1._1._1._1._1._1._1.tag === "Left") { return j(y._1._1._1._1._1._1._1._1._1._1); }
324+ if (y._1._1._1._1._1._1._1._1._1.tag === "Right") {
325+ const spin = spin$a0$copy => {
326+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
327+ while (spin$c) {
328+ const v = spin$a0;
329+ spin$a0 = v;
330+ }
331+ return spin$r;
332+ };
333+ return spin(y._1._1._1._1._1._1._1._1._1._1);
334+ }
335+ }
336+ }
337+ }
338+ }
339+ }
340+ }
341+ }
342+ }
343+ }
344+ $runtime.fail();
345+};
346+const either1 = y => {
347+ if (y.tag === "Left") { return y._1; }
348+ if (y.tag === "Right") {
349+ const spin = spin$a0$copy => {
350+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
351+ while (spin$c) {
352+ const v = spin$a0;
353+ spin$a0 = v;
354+ }
355+ return spin$r;
356+ };
357+ return spin(y._1);
358+ }
359+ $runtime.fail();
360+};
361+const at9 = b => f => y => {
362+ if (
363+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1._1.tag === "Left"
364+ ) {
365+ return f(y._1._1._1._1._1._1._1._1._1);
366+ }
367+ return b;
368+};
369+const at8 = b => f => y => {
370+ if (
371+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1.tag === "Left"
372+ ) {
373+ return f(y._1._1._1._1._1._1._1._1);
374+ }
375+ return b;
376+};
377+const at7 = b => f => y => {
378+ if (
379+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Left"
380+ ) {
381+ return f(y._1._1._1._1._1._1._1);
382+ }
383+ return b;
384+};
385+const at6 = b => f => y => {
386+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Left") {
387+ return f(y._1._1._1._1._1._1);
388+ }
389+ return b;
390+};
391+const at5 = b => f => y => {
392+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1); }
393+ return b;
394+};
395+const at4 = b => f => y => {
396+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Left") { return f(y._1._1._1._1); }
397+ return b;
398+};
399+const at3 = b => f => y => {
400+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Left") { return f(y._1._1._1); }
401+ return b;
402+};
403+const at2 = b => f => y => {
404+ if (y.tag === "Right" && y._1.tag === "Left") { return f(y._1._1); }
405+ return b;
406+};
407+const at10 = b => f => y => {
408+ if (
409+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1._1._1.tag === "Left"
410+ ) {
411+ return f(y._1._1._1._1._1._1._1._1._1._1);
412+ }
413+ return b;
414+};
415+const at1 = b => f => y => {
416+ if (y.tag === "Left") { return f(y._1); }
417+ return b;
418+};
419+export {
420+ at1,
421+ at10,
422+ at2,
423+ at3,
424+ at4,
425+ at5,
426+ at6,
427+ at7,
428+ at8,
429+ at9,
430+ either1,
431+ either10,
432+ either2,
433+ either3,
434+ either4,
435+ either5,
436+ either6,
437+ either7,
438+ either8,
439+ either9,
440+ in1,
441+ in10,
442+ in2,
443+ in3,
444+ in4,
445+ in5,
446+ in6,
447+ in7,
448+ in8,
449+ in9
450+};
output-es/Data.Either/index.jsnew file+242
@@ -0,0 +1,242 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dGeneric$dRep from "../Data.Generic.Rep/index.js";
3+import * as Data$dMaybe from "../Data.Maybe/index.js";
4+import * as Data$dOrdering from "../Data.Ordering/index.js";
5+const $Either = (tag, _1) => ({tag, _1});
6+const Left = value0 => $Either("Left", value0);
7+const Right = value0 => $Either("Right", value0);
8+const showEither = dictShow => dictShow1 => (
9+ {
10+ show: v => {
11+ if (v.tag === "Left") { return "(Left " + dictShow.show(v._1) + ")"; }
12+ if (v.tag === "Right") { return "(Right " + dictShow1.show(v._1) + ")"; }
13+ $runtime.fail();
14+ }
15+ }
16+);
17+const note$p = f => v2 => {
18+ if (v2.tag === "Nothing") { return $Either("Left", f()); }
19+ if (v2.tag === "Just") { return $Either("Right", v2._1); }
20+ $runtime.fail();
21+};
22+const note = a => v2 => {
23+ if (v2.tag === "Nothing") { return $Either("Left", a); }
24+ if (v2.tag === "Just") { return $Either("Right", v2._1); }
25+ $runtime.fail();
26+};
27+const genericEither = {
28+ to: x => {
29+ if (x.tag === "Inl") { return $Either("Left", x._1); }
30+ if (x.tag === "Inr") { return $Either("Right", x._1); }
31+ $runtime.fail();
32+ },
33+ from: x => {
34+ if (x.tag === "Left") { return Data$dGeneric$dRep.$Sum("Inl", x._1); }
35+ if (x.tag === "Right") { return Data$dGeneric$dRep.$Sum("Inr", x._1); }
36+ $runtime.fail();
37+ }
38+};
39+const functorEither = {
40+ map: f => m => {
41+ if (m.tag === "Left") { return $Either("Left", m._1); }
42+ if (m.tag === "Right") { return $Either("Right", f(m._1)); }
43+ $runtime.fail();
44+ }
45+};
46+const invariantEither = {
47+ imap: f => v => m => {
48+ if (m.tag === "Left") { return $Either("Left", m._1); }
49+ if (m.tag === "Right") { return $Either("Right", f(m._1)); }
50+ $runtime.fail();
51+ }
52+};
53+const fromRight$p = v => v1 => {
54+ if (v1.tag === "Right") { return v1._1; }
55+ return v();
56+};
57+const fromRight = v => v1 => {
58+ if (v1.tag === "Right") { return v1._1; }
59+ return v;
60+};
61+const fromLeft$p = v => v1 => {
62+ if (v1.tag === "Left") { return v1._1; }
63+ return v();
64+};
65+const fromLeft = v => v1 => {
66+ if (v1.tag === "Left") { return v1._1; }
67+ return v;
68+};
69+const extendEither = {
70+ extend: v => v1 => {
71+ if (v1.tag === "Left") { return $Either("Left", v1._1); }
72+ return $Either("Right", v(v1));
73+ },
74+ Functor0: () => functorEither
75+};
76+const eqEither = dictEq => dictEq1 => (
77+ {
78+ eq: x => y => {
79+ if (x.tag === "Left") { return y.tag === "Left" && dictEq.eq(x._1)(y._1); }
80+ return x.tag === "Right" && y.tag === "Right" && dictEq1.eq(x._1)(y._1);
81+ }
82+ }
83+);
84+const ordEither = dictOrd => {
85+ const $0 = dictOrd.Eq0();
86+ return dictOrd1 => {
87+ const $1 = dictOrd1.Eq0();
88+ const eqEither2 = {
89+ eq: x => y => {
90+ if (x.tag === "Left") { return y.tag === "Left" && $0.eq(x._1)(y._1); }
91+ return x.tag === "Right" && y.tag === "Right" && $1.eq(x._1)(y._1);
92+ }
93+ };
94+ return {
95+ compare: x => y => {
96+ if (x.tag === "Left") {
97+ if (y.tag === "Left") { return dictOrd.compare(x._1)(y._1); }
98+ return Data$dOrdering.LT;
99+ }
100+ if (y.tag === "Left") { return Data$dOrdering.GT; }
101+ if (x.tag === "Right" && y.tag === "Right") { return dictOrd1.compare(x._1)(y._1); }
102+ $runtime.fail();
103+ },
104+ Eq0: () => eqEither2
105+ };
106+ };
107+};
108+const eq1Either = dictEq => (
109+ {
110+ eq1: dictEq1 => x => y => {
111+ if (x.tag === "Left") { return y.tag === "Left" && dictEq.eq(x._1)(y._1); }
112+ return x.tag === "Right" && y.tag === "Right" && dictEq1.eq(x._1)(y._1);
113+ }
114+ }
115+);
116+const ord1Either = dictOrd => {
117+ const ordEither1 = ordEither(dictOrd);
118+ const $0 = dictOrd.Eq0();
119+ const eq1Either1 = {
120+ eq1: dictEq1 => x => y => {
121+ if (x.tag === "Left") { return y.tag === "Left" && $0.eq(x._1)(y._1); }
122+ return x.tag === "Right" && y.tag === "Right" && dictEq1.eq(x._1)(y._1);
123+ }
124+ };
125+ return {compare1: dictOrd1 => ordEither1(dictOrd1).compare, Eq10: () => eq1Either1};
126+};
127+const either = v => v1 => v2 => {
128+ if (v2.tag === "Left") { return v(v2._1); }
129+ if (v2.tag === "Right") { return v1(v2._1); }
130+ $runtime.fail();
131+};
132+const hush = v2 => {
133+ if (v2.tag === "Left") { return Data$dMaybe.Nothing; }
134+ if (v2.tag === "Right") { return Data$dMaybe.$Maybe("Just", v2._1); }
135+ $runtime.fail();
136+};
137+const isLeft = v2 => {
138+ if (v2.tag === "Left") { return true; }
139+ if (v2.tag === "Right") { return false; }
140+ $runtime.fail();
141+};
142+const isRight = v2 => {
143+ if (v2.tag === "Left") { return false; }
144+ if (v2.tag === "Right") { return true; }
145+ $runtime.fail();
146+};
147+const choose = dictAlt => {
148+ const $0 = dictAlt.Functor0();
149+ return a => b => dictAlt.alt($0.map(Left)(a))($0.map(Right)(b));
150+};
151+const boundedEither = dictBounded => {
152+ const bottom = dictBounded.bottom;
153+ const ordEither1 = ordEither(dictBounded.Ord0());
154+ return dictBounded1 => {
155+ const ordEither2 = ordEither1(dictBounded1.Ord0());
156+ return {top: $Either("Right", dictBounded1.top), bottom: $Either("Left", bottom), Ord0: () => ordEither2};
157+ };
158+};
159+const blush = v2 => {
160+ if (v2.tag === "Left") { return Data$dMaybe.$Maybe("Just", v2._1); }
161+ if (v2.tag === "Right") { return Data$dMaybe.Nothing; }
162+ $runtime.fail();
163+};
164+const applyEither = {
165+ apply: v => v1 => {
166+ if (v.tag === "Left") { return $Either("Left", v._1); }
167+ if (v.tag === "Right") {
168+ if (v1.tag === "Left") { return $Either("Left", v1._1); }
169+ if (v1.tag === "Right") { return $Either("Right", v._1(v1._1)); }
170+ }
171+ $runtime.fail();
172+ },
173+ Functor0: () => functorEither
174+};
175+const bindEither = {
176+ bind: v2 => {
177+ if (v2.tag === "Left") {
178+ const $0 = v2._1;
179+ return v => $Either("Left", $0);
180+ }
181+ if (v2.tag === "Right") {
182+ const $0 = v2._1;
183+ return f => f($0);
184+ }
185+ $runtime.fail();
186+ },
187+ Apply0: () => applyEither
188+};
189+const semigroupEither = dictSemigroup => (
190+ {
191+ append: x => y => {
192+ if (x.tag === "Left") { return $Either("Left", x._1); }
193+ if (x.tag === "Right") {
194+ if (y.tag === "Left") { return $Either("Left", y._1); }
195+ if (y.tag === "Right") { return $Either("Right", dictSemigroup.append(x._1)(y._1)); }
196+ }
197+ $runtime.fail();
198+ }
199+ }
200+);
201+const applicativeEither = {pure: Right, Apply0: () => applyEither};
202+const monadEither = {Applicative0: () => applicativeEither, Bind1: () => bindEither};
203+const altEither = {
204+ alt: v => v1 => {
205+ if (v.tag === "Left") { return v1; }
206+ return v;
207+ },
208+ Functor0: () => functorEither
209+};
210+export {
211+ $Either,
212+ Left,
213+ Right,
214+ altEither,
215+ applicativeEither,
216+ applyEither,
217+ bindEither,
218+ blush,
219+ boundedEither,
220+ choose,
221+ either,
222+ eq1Either,
223+ eqEither,
224+ extendEither,
225+ fromLeft,
226+ fromLeft$p,
227+ fromRight,
228+ fromRight$p,
229+ functorEither,
230+ genericEither,
231+ hush,
232+ invariantEither,
233+ isLeft,
234+ isRight,
235+ monadEither,
236+ note,
237+ note$p,
238+ ord1Either,
239+ ordEither,
240+ semigroupEither,
241+ showEither
242+};
output-es/Data.Enum.Gen/index.jsnew file+19
@@ -0,0 +1,19 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dMonad$dGen from "../Control.Monad.Gen/index.js";
3+import * as Data$dEnum from "../Data.Enum/index.js";
4+import * as Data$dFoldable from "../Data.Foldable/index.js";
5+import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
6+import * as Data$dUnfoldable1 from "../Data.Unfoldable1/index.js";
7+const foldable1NonEmpty = /* #__PURE__ */ Data$dNonEmpty.foldable1NonEmpty(Data$dFoldable.foldableArray);
8+const genBoundedEnum = dictMonadGen => {
9+ const elements = Control$dMonad$dGen.elements(dictMonadGen)(foldable1NonEmpty);
10+ return dictBoundedEnum => {
11+ const Enum1 = dictBoundedEnum.Enum1();
12+ const Bounded0 = dictBoundedEnum.Bounded0();
13+ const v = Enum1.succ(Bounded0.bottom);
14+ if (v.tag === "Just") { return elements(Data$dNonEmpty.$NonEmpty(Bounded0.bottom, Data$dEnum.enumFromTo(Enum1)(Data$dUnfoldable1.unfoldable1Array)(v._1)(Bounded0.top))); }
15+ if (v.tag === "Nothing") { return dictMonadGen.Monad0().Applicative0().pure(Bounded0.bottom); }
16+ $runtime.fail();
17+ };
18+};
19+export {foldable1NonEmpty, genBoundedEnum};
output-es/Data.Enum.Generic/index.jsnew file+211
@@ -0,0 +1,211 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEuclideanRing from "../Data.EuclideanRing/index.js";
3+import * as Data$dGeneric$dRep from "../Data.Generic.Rep/index.js";
4+import * as Data$dMaybe from "../Data.Maybe/index.js";
5+const genericToEnum$p = dict => dict["genericToEnum'"];
6+const genericToEnum = dictGeneric => dictGenericBoundedEnum => x => {
7+ const $0 = dictGenericBoundedEnum["genericToEnum'"](x);
8+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", dictGeneric.to($0._1)); }
9+ return Data$dMaybe.Nothing;
10+};
11+const genericSucc$p = dict => dict["genericSucc'"];
12+const genericSucc = dictGeneric => dictGenericEnum => x => {
13+ const $0 = dictGenericEnum["genericSucc'"](dictGeneric.from(x));
14+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", dictGeneric.to($0._1)); }
15+ return Data$dMaybe.Nothing;
16+};
17+const genericPred$p = dict => dict["genericPred'"];
18+const genericPred = dictGeneric => dictGenericEnum => x => {
19+ const $0 = dictGenericEnum["genericPred'"](dictGeneric.from(x));
20+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", dictGeneric.to($0._1)); }
21+ return Data$dMaybe.Nothing;
22+};
23+const genericFromEnum$p = dict => dict["genericFromEnum'"];
24+const genericFromEnum = dictGeneric => dictGenericBoundedEnum => x => dictGenericBoundedEnum["genericFromEnum'"](dictGeneric.from(x));
25+const genericEnumSum = dictGenericEnum => dictGenericTop => {
26+ const genericTop$p = dictGenericTop["genericTop'"];
27+ return dictGenericEnum1 => dictGenericBottom => {
28+ const genericBottom$p = dictGenericBottom["genericBottom'"];
29+ return {
30+ "genericPred'": v => {
31+ if (v.tag === "Inl") {
32+ const $0 = dictGenericEnum["genericPred'"](v._1);
33+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inl", $0._1)); }
34+ return Data$dMaybe.Nothing;
35+ }
36+ if (v.tag === "Inr") {
37+ const v1 = dictGenericEnum1["genericPred'"](v._1);
38+ if (v1.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inl", genericTop$p)); }
39+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inr", v1._1)); }
40+ }
41+ $runtime.fail();
42+ },
43+ "genericSucc'": v => {
44+ if (v.tag === "Inl") {
45+ const v1 = dictGenericEnum["genericSucc'"](v._1);
46+ if (v1.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inr", genericBottom$p)); }
47+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inl", v1._1)); }
48+ $runtime.fail();
49+ }
50+ if (v.tag === "Inr") {
51+ const $0 = dictGenericEnum1["genericSucc'"](v._1);
52+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inr", $0._1)); }
53+ return Data$dMaybe.Nothing;
54+ }
55+ $runtime.fail();
56+ }
57+ };
58+ };
59+};
60+const genericEnumProduct = dictGenericEnum => dictGenericTop => dictGenericBottom => dictGenericEnum1 => dictGenericTop1 => {
61+ const genericTop$p = dictGenericTop1["genericTop'"];
62+ return dictGenericBottom1 => {
63+ const genericBottom$p = dictGenericBottom1["genericBottom'"];
64+ return {
65+ "genericPred'": v => {
66+ const v1 = dictGenericEnum1["genericPred'"](v._2);
67+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Product(v._1, v1._1)); }
68+ if (v1.tag === "Nothing") {
69+ const $0 = dictGenericEnum["genericPred'"](v._1);
70+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Product($0._1, genericTop$p)); }
71+ return Data$dMaybe.Nothing;
72+ }
73+ $runtime.fail();
74+ },
75+ "genericSucc'": v => {
76+ const v1 = dictGenericEnum1["genericSucc'"](v._2);
77+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Product(v._1, v1._1)); }
78+ if (v1.tag === "Nothing") {
79+ const $0 = dictGenericEnum["genericSucc'"](v._1);
80+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Product($0._1, genericBottom$p)); }
81+ return Data$dMaybe.Nothing;
82+ }
83+ $runtime.fail();
84+ }
85+ };
86+ };
87+};
88+const genericEnumNoArguments = {"genericPred'": v => Data$dMaybe.Nothing, "genericSucc'": v => Data$dMaybe.Nothing};
89+const genericEnumConstructor = dictGenericEnum => (
90+ {
91+ "genericPred'": v => {
92+ const $0 = dictGenericEnum["genericPred'"](v);
93+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0._1); }
94+ return Data$dMaybe.Nothing;
95+ },
96+ "genericSucc'": v => {
97+ const $0 = dictGenericEnum["genericSucc'"](v);
98+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0._1); }
99+ return Data$dMaybe.Nothing;
100+ }
101+ }
102+);
103+const genericEnumArgument = dictEnum => (
104+ {
105+ "genericPred'": v => {
106+ const $0 = dictEnum.pred(v);
107+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0._1); }
108+ return Data$dMaybe.Nothing;
109+ },
110+ "genericSucc'": v => {
111+ const $0 = dictEnum.succ(v);
112+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0._1); }
113+ return Data$dMaybe.Nothing;
114+ }
115+ }
116+);
117+const genericCardinality$p = dict => dict["genericCardinality'"];
118+const genericCardinality = dictGeneric => dictGenericBoundedEnum => dictGenericBoundedEnum["genericCardinality'"];
119+const genericBoundedEnumSum = dictGenericBoundedEnum => {
120+ const genericCardinality$p1 = dictGenericBoundedEnum["genericCardinality'"];
121+ return dictGenericBoundedEnum1 => (
122+ {
123+ "genericCardinality'": genericCardinality$p1 + dictGenericBoundedEnum1["genericCardinality'"] | 0,
124+ "genericToEnum'": n => {
125+ if (n >= 0 && n < genericCardinality$p1) {
126+ const $0 = dictGenericBoundedEnum["genericToEnum'"](n);
127+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inl", $0._1)); }
128+ return Data$dMaybe.Nothing;
129+ }
130+ const $0 = dictGenericBoundedEnum1["genericToEnum'"](n - genericCardinality$p1 | 0);
131+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Sum("Inr", $0._1)); }
132+ return Data$dMaybe.Nothing;
133+ },
134+ "genericFromEnum'": v => {
135+ if (v.tag === "Inl") { return dictGenericBoundedEnum["genericFromEnum'"](v._1); }
136+ if (v.tag === "Inr") { return dictGenericBoundedEnum1["genericFromEnum'"](v._1) + genericCardinality$p1 | 0; }
137+ $runtime.fail();
138+ }
139+ }
140+ );
141+};
142+const genericBoundedEnumProduct = dictGenericBoundedEnum => {
143+ const genericCardinality$p1 = dictGenericBoundedEnum["genericCardinality'"];
144+ return dictGenericBoundedEnum1 => {
145+ const genericCardinality$p2 = dictGenericBoundedEnum1["genericCardinality'"];
146+ return {
147+ "genericCardinality'": genericCardinality$p1 * genericCardinality$p2 | 0,
148+ "genericToEnum'": n => {
149+ const $0 = dictGenericBoundedEnum["genericToEnum'"]($runtime.intDiv(n, genericCardinality$p2));
150+ if ($0.tag === "Just") {
151+ const $1 = dictGenericBoundedEnum1["genericToEnum'"](Data$dEuclideanRing.intMod(n)(genericCardinality$p2));
152+ if ($1.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.$Product($0._1, $1._1)); }
153+ }
154+ return Data$dMaybe.Nothing;
155+ },
156+ "genericFromEnum'": v1 => (dictGenericBoundedEnum["genericFromEnum'"](v1._1) * genericCardinality$p2 | 0) + dictGenericBoundedEnum1["genericFromEnum'"](v1._2) | 0
157+ };
158+ };
159+};
160+const genericBoundedEnumNoArguments = {
161+ "genericCardinality'": 1,
162+ "genericToEnum'": i => {
163+ if (i === 0) { return Data$dMaybe.$Maybe("Just", Data$dGeneric$dRep.NoArguments); }
164+ return Data$dMaybe.Nothing;
165+ },
166+ "genericFromEnum'": v => 0
167+};
168+const genericBoundedEnumConstructor = dictGenericBoundedEnum => (
169+ {
170+ "genericCardinality'": dictGenericBoundedEnum["genericCardinality'"],
171+ "genericToEnum'": i => {
172+ const $0 = dictGenericBoundedEnum["genericToEnum'"](i);
173+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0._1); }
174+ return Data$dMaybe.Nothing;
175+ },
176+ "genericFromEnum'": v => dictGenericBoundedEnum["genericFromEnum'"](v)
177+ }
178+);
179+const genericBoundedEnumArgument = dictBoundedEnum => (
180+ {
181+ "genericCardinality'": dictBoundedEnum.cardinality,
182+ "genericToEnum'": i => {
183+ const $0 = dictBoundedEnum.toEnum(i);
184+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0._1); }
185+ return Data$dMaybe.Nothing;
186+ },
187+ "genericFromEnum'": v => dictBoundedEnum.fromEnum(v)
188+ }
189+);
190+export {
191+ genericBoundedEnumArgument,
192+ genericBoundedEnumConstructor,
193+ genericBoundedEnumNoArguments,
194+ genericBoundedEnumProduct,
195+ genericBoundedEnumSum,
196+ genericCardinality,
197+ genericCardinality$p,
198+ genericEnumArgument,
199+ genericEnumConstructor,
200+ genericEnumNoArguments,
201+ genericEnumProduct,
202+ genericEnumSum,
203+ genericFromEnum,
204+ genericFromEnum$p,
205+ genericPred,
206+ genericPred$p,
207+ genericSucc,
208+ genericSucc$p,
209+ genericToEnum,
210+ genericToEnum$p
211+};
output-es/Data.Enum/foreign.jsnew file+7
@@ -0,0 +1,7 @@
1+export function toCharCode(c) {
2+ return c.charCodeAt(0);
3+}
4+
5+export function fromCharCode(c) {
6+ return String.fromCharCode(c);
7+}
output-es/Data.Enum/index.jsnew file+441
@@ -0,0 +1,441 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dBounded from "../Data.Bounded/index.js";
3+import * as Data$dEither from "../Data.Either/index.js";
4+import * as Data$dEq from "../Data.Eq/index.js";
5+import * as Data$dMaybe from "../Data.Maybe/index.js";
6+import * as Data$dOrd from "../Data.Ord/index.js";
7+import * as Data$dOrdering from "../Data.Ordering/index.js";
8+import * as Data$dShow from "../Data.Show/index.js";
9+import * as Data$dTuple from "../Data.Tuple/index.js";
10+import {fromCharCode, toCharCode} from "./foreign.js";
11+const Cardinality = x => x;
12+const toEnum = dict => dict.toEnum;
13+const succ = dict => dict.succ;
14+const upFromIncluding = dictEnum => dictUnfoldable1 => dictUnfoldable1.unfoldr1(x => Data$dTuple.$Tuple(x, dictEnum.succ(x)));
15+const showCardinality = {show: v => "(Cardinality " + Data$dShow.showIntImpl(v) + ")"};
16+const pred = dict => dict.pred;
17+const ordCardinality = Data$dOrd.ordInt;
18+const newtypeCardinality = {Coercible0: () => {}};
19+const fromEnum = dict => dict.fromEnum;
20+const toEnumWithDefaults = dictBoundedEnum => {
21+ const bottom2 = dictBoundedEnum.Bounded0().bottom;
22+ return low => high => x => {
23+ const v = dictBoundedEnum.toEnum(x);
24+ if (v.tag === "Just") { return v._1; }
25+ if (v.tag === "Nothing") {
26+ if (x < dictBoundedEnum.fromEnum(bottom2)) { return low; }
27+ return high;
28+ }
29+ $runtime.fail();
30+ };
31+};
32+const eqCardinality = Data$dEq.eqInt;
33+const enumUnit = {succ: v => Data$dMaybe.Nothing, pred: v => Data$dMaybe.Nothing, Ord0: () => Data$dOrd.ordUnit};
34+const enumTuple = dictEnum => {
35+ const $0 = dictEnum.Ord0();
36+ const $1 = $0.Eq0();
37+ return dictBoundedEnum => {
38+ const Bounded0 = dictBoundedEnum.Bounded0();
39+ const bottom2 = Bounded0.bottom;
40+ const Enum1 = dictBoundedEnum.Enum1();
41+ const top2 = Bounded0.top;
42+ const $2 = Enum1.Ord0();
43+ const $3 = $2.Eq0();
44+ const ordTuple1 = (() => {
45+ const eqTuple2 = {eq: x => y => $1.eq(x._1)(y._1) && $3.eq(x._2)(y._2)};
46+ return {
47+ compare: x => y => {
48+ const v = $0.compare(x._1)(y._1);
49+ if (v === "LT") { return Data$dOrdering.LT; }
50+ if (v === "GT") { return Data$dOrdering.GT; }
51+ return $2.compare(x._2)(y._2);
52+ },
53+ Eq0: () => eqTuple2
54+ };
55+ })();
56+ return {
57+ succ: v => {
58+ const $4 = dictEnum.succ(v._1);
59+ const $5 = $4.tag === "Just" ? Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple($4._1, bottom2)) : Data$dMaybe.Nothing;
60+ const $6 = Data$dTuple.Tuple(v._1);
61+ const $7 = Enum1.succ(v._2);
62+ if ($7.tag === "Nothing") { return $5; }
63+ if ($7.tag === "Just") { return Data$dMaybe.$Maybe("Just", $6($7._1)); }
64+ $runtime.fail();
65+ },
66+ pred: v => {
67+ const $4 = dictEnum.pred(v._1);
68+ const $5 = $4.tag === "Just" ? Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple($4._1, top2)) : Data$dMaybe.Nothing;
69+ const $6 = Data$dTuple.Tuple(v._1);
70+ const $7 = Enum1.pred(v._2);
71+ if ($7.tag === "Nothing") { return $5; }
72+ if ($7.tag === "Just") { return Data$dMaybe.$Maybe("Just", $6($7._1)); }
73+ $runtime.fail();
74+ },
75+ Ord0: () => ordTuple1
76+ };
77+ };
78+};
79+const enumOrdering = {
80+ succ: v => {
81+ if (v === "LT") { return Data$dMaybe.$Maybe("Just", Data$dOrdering.EQ); }
82+ if (v === "EQ") { return Data$dMaybe.$Maybe("Just", Data$dOrdering.GT); }
83+ if (v === "GT") { return Data$dMaybe.Nothing; }
84+ $runtime.fail();
85+ },
86+ pred: v => {
87+ if (v === "LT") { return Data$dMaybe.Nothing; }
88+ if (v === "EQ") { return Data$dMaybe.$Maybe("Just", Data$dOrdering.LT); }
89+ if (v === "GT") { return Data$dMaybe.$Maybe("Just", Data$dOrdering.EQ); }
90+ $runtime.fail();
91+ },
92+ Ord0: () => Data$dOrd.ordOrdering
93+};
94+const enumMaybe = dictBoundedEnum => {
95+ const bottom2 = dictBoundedEnum.Bounded0().bottom;
96+ const Enum1 = dictBoundedEnum.Enum1();
97+ const $0 = Enum1.Ord0();
98+ const $1 = $0.Eq0();
99+ const ordMaybe = (() => {
100+ const eqMaybe1 = {
101+ eq: x => y => {
102+ if (x.tag === "Nothing") { return y.tag === "Nothing"; }
103+ return x.tag === "Just" && y.tag === "Just" && $1.eq(x._1)(y._1);
104+ }
105+ };
106+ return {
107+ compare: x => y => {
108+ if (x.tag === "Nothing") {
109+ if (y.tag === "Nothing") { return Data$dOrdering.EQ; }
110+ return Data$dOrdering.LT;
111+ }
112+ if (y.tag === "Nothing") { return Data$dOrdering.GT; }
113+ if (x.tag === "Just" && y.tag === "Just") { return $0.compare(x._1)(y._1); }
114+ $runtime.fail();
115+ },
116+ Eq0: () => eqMaybe1
117+ };
118+ })();
119+ return {
120+ succ: v => {
121+ if (v.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", Data$dMaybe.$Maybe("Just", bottom2)); }
122+ if (v.tag === "Just") {
123+ const $2 = Enum1.succ(v._1);
124+ if ($2.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dMaybe.$Maybe("Just", $2._1)); }
125+ return Data$dMaybe.Nothing;
126+ }
127+ $runtime.fail();
128+ },
129+ pred: v => {
130+ if (v.tag === "Nothing") { return Data$dMaybe.Nothing; }
131+ if (v.tag === "Just") { return Data$dMaybe.$Maybe("Just", Enum1.pred(v._1)); }
132+ $runtime.fail();
133+ },
134+ Ord0: () => ordMaybe
135+ };
136+};
137+const enumInt = {
138+ succ: n => {
139+ if (n < 2147483647) { return Data$dMaybe.$Maybe("Just", n + 1 | 0); }
140+ return Data$dMaybe.Nothing;
141+ },
142+ pred: n => {
143+ if (n > -2147483648) { return Data$dMaybe.$Maybe("Just", n - 1 | 0); }
144+ return Data$dMaybe.Nothing;
145+ },
146+ Ord0: () => Data$dOrd.ordInt
147+};
148+const enumFromTo = dictEnum => {
149+ const Ord0 = dictEnum.Ord0();
150+ return dictUnfoldable1 => v => v1 => {
151+ if (Ord0.Eq0().eq(v)(v1)) {
152+ return dictUnfoldable1.unfoldr1(i => {
153+ if (i <= 0) { return Data$dTuple.$Tuple(v, Data$dMaybe.Nothing); }
154+ return Data$dTuple.$Tuple(v, Data$dMaybe.$Maybe("Just", i - 1 | 0));
155+ })(0);
156+ }
157+ if (Ord0.compare(v)(v1) === "LT") {
158+ return dictUnfoldable1.unfoldr1(a => Data$dTuple.$Tuple(
159+ a,
160+ (() => {
161+ const $0 = dictEnum.succ(a);
162+ if ($0.tag === "Just") {
163+ if (Ord0.compare($0._1)(v1) !== "GT") { return Data$dMaybe.$Maybe("Just", $0._1); }
164+ return Data$dMaybe.Nothing;
165+ }
166+ if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
167+ $runtime.fail();
168+ })()
169+ ))(v);
170+ }
171+ return dictUnfoldable1.unfoldr1(a => Data$dTuple.$Tuple(
172+ a,
173+ (() => {
174+ const $0 = dictEnum.pred(a);
175+ if ($0.tag === "Just") {
176+ if (Ord0.compare($0._1)(v1) !== "LT") { return Data$dMaybe.$Maybe("Just", $0._1); }
177+ return Data$dMaybe.Nothing;
178+ }
179+ if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
180+ $runtime.fail();
181+ })()
182+ ))(v);
183+ };
184+};
185+const enumFromThenTo = dictUnfoldable => dictFunctor => dictBoundedEnum => a => b => c => {
186+ const a$p = dictBoundedEnum.fromEnum(a);
187+ return dictFunctor.map(x => {
188+ const $0 = dictBoundedEnum.toEnum(x);
189+ if ($0.tag === "Just") { return $0._1; }
190+ $runtime.fail();
191+ })(dictUnfoldable.unfoldr((() => {
192+ const $0 = dictBoundedEnum.fromEnum(b) - a$p | 0;
193+ const $1 = dictBoundedEnum.fromEnum(c);
194+ return e => {
195+ if (e <= $1) { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(e, e + $0 | 0)); }
196+ return Data$dMaybe.Nothing;
197+ };
198+ })())(a$p));
199+};
200+const enumEither = dictBoundedEnum => {
201+ const Enum1 = dictBoundedEnum.Enum1();
202+ const top2 = dictBoundedEnum.Bounded0().top;
203+ const ordEither = Data$dEither.ordEither(Enum1.Ord0());
204+ return dictBoundedEnum1 => {
205+ const bottom2 = dictBoundedEnum1.Bounded0().bottom;
206+ const Enum11 = dictBoundedEnum1.Enum1();
207+ const ordEither1 = ordEither(Enum11.Ord0());
208+ return {
209+ succ: v => {
210+ if (v.tag === "Left") {
211+ const $0 = Enum1.succ(v._1);
212+ if ($0.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", Data$dEither.$Either("Right", bottom2)); }
213+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dEither.$Either("Left", $0._1)); }
214+ $runtime.fail();
215+ }
216+ if (v.tag === "Right") {
217+ const $0 = Enum11.succ(v._1);
218+ if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
219+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dEither.$Either("Right", $0._1)); }
220+ }
221+ $runtime.fail();
222+ },
223+ pred: v => {
224+ if (v.tag === "Left") {
225+ const $0 = Enum1.pred(v._1);
226+ if ($0.tag === "Nothing") { return Data$dMaybe.Nothing; }
227+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dEither.$Either("Left", $0._1)); }
228+ $runtime.fail();
229+ }
230+ if (v.tag === "Right") {
231+ const $0 = Enum11.pred(v._1);
232+ if ($0.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", Data$dEither.$Either("Left", top2)); }
233+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dEither.$Either("Right", $0._1)); }
234+ }
235+ $runtime.fail();
236+ },
237+ Ord0: () => ordEither1
238+ };
239+ };
240+};
241+const enumBoolean = {
242+ succ: v => {
243+ if (!v) { return Data$dMaybe.$Maybe("Just", true); }
244+ return Data$dMaybe.Nothing;
245+ },
246+ pred: v => {
247+ if (v) { return Data$dMaybe.$Maybe("Just", false); }
248+ return Data$dMaybe.Nothing;
249+ },
250+ Ord0: () => Data$dOrd.ordBoolean
251+};
252+const downFromIncluding = dictEnum => dictUnfoldable1 => dictUnfoldable1.unfoldr1(x => Data$dTuple.$Tuple(x, dictEnum.pred(x)));
253+const downFrom = dictEnum => dictUnfoldable => dictUnfoldable.unfoldr(x => {
254+ const $0 = dictEnum.pred(x);
255+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple($0._1, $0._1)); }
256+ return Data$dMaybe.Nothing;
257+});
258+const upFrom = dictEnum => dictUnfoldable => dictUnfoldable.unfoldr(x => {
259+ const $0 = dictEnum.succ(x);
260+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple($0._1, $0._1)); }
261+ return Data$dMaybe.Nothing;
262+});
263+const defaultToEnum = dictBounded => {
264+ const bottom2 = dictBounded.bottom;
265+ return dictEnum => i$p => {
266+ const go = go$a0$copy => go$a1$copy => {
267+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
268+ while (go$c) {
269+ const i = go$a0, x = go$a1;
270+ if (i === 0) {
271+ go$c = false;
272+ go$r = Data$dMaybe.$Maybe("Just", x);
273+ continue;
274+ }
275+ const v = dictEnum.succ(x);
276+ if (v.tag === "Just") {
277+ go$a0 = i - 1 | 0;
278+ go$a1 = v._1;
279+ continue;
280+ }
281+ if (v.tag === "Nothing") {
282+ go$c = false;
283+ go$r = Data$dMaybe.Nothing;
284+ continue;
285+ }
286+ $runtime.fail();
287+ }
288+ return go$r;
289+ };
290+ if (i$p < 0) { return Data$dMaybe.Nothing; }
291+ return go(i$p)(bottom2);
292+ };
293+};
294+const defaultSucc = toEnum$p => fromEnum$p => a => toEnum$p(fromEnum$p(a) + 1 | 0);
295+const defaultPred = toEnum$p => fromEnum$p => a => toEnum$p(fromEnum$p(a) - 1 | 0);
296+const defaultFromEnum = dictEnum => {
297+ const go = go$a0$copy => go$a1$copy => {
298+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
299+ while (go$c) {
300+ const i = go$a0, x = go$a1;
301+ const v = dictEnum.pred(x);
302+ if (v.tag === "Just") {
303+ go$a0 = i + 1 | 0;
304+ go$a1 = v._1;
305+ continue;
306+ }
307+ if (v.tag === "Nothing") {
308+ go$c = false;
309+ go$r = i;
310+ continue;
311+ }
312+ $runtime.fail();
313+ }
314+ return go$r;
315+ };
316+ return go(0);
317+};
318+const defaultCardinality = dictBounded => {
319+ const bottom2 = dictBounded.bottom;
320+ return dictEnum => {
321+ const go = go$a0$copy => go$a1$copy => {
322+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
323+ while (go$c) {
324+ const i = go$a0, x = go$a1;
325+ const v = dictEnum.succ(x);
326+ if (v.tag === "Just") {
327+ go$a0 = i + 1 | 0;
328+ go$a1 = v._1;
329+ continue;
330+ }
331+ if (v.tag === "Nothing") {
332+ go$c = false;
333+ go$r = i;
334+ continue;
335+ }
336+ $runtime.fail();
337+ }
338+ return go$r;
339+ };
340+ return go(1)(bottom2);
341+ };
342+};
343+const charToEnum = v => {
344+ if (v >= 0 && v <= 65535) { return Data$dMaybe.$Maybe("Just", fromCharCode(v)); }
345+ return Data$dMaybe.Nothing;
346+};
347+const enumChar = {
348+ succ: a => {
349+ const $0 = toCharCode(a) + 1 | 0;
350+ if ($0 >= 0 && $0 <= 65535) { return Data$dMaybe.$Maybe("Just", fromCharCode($0)); }
351+ return Data$dMaybe.Nothing;
352+ },
353+ pred: a => {
354+ const $0 = toCharCode(a) - 1 | 0;
355+ if ($0 >= 0 && $0 <= 65535) { return Data$dMaybe.$Maybe("Just", fromCharCode($0)); }
356+ return Data$dMaybe.Nothing;
357+ },
358+ Ord0: () => Data$dOrd.ordChar
359+};
360+const cardinality = dict => dict.cardinality;
361+const boundedEnumUnit = {
362+ cardinality: 1,
363+ toEnum: v => {
364+ if (v === 0) { return Data$dMaybe.$Maybe("Just", undefined); }
365+ return Data$dMaybe.Nothing;
366+ },
367+ fromEnum: v => 0,
368+ Bounded0: () => Data$dBounded.boundedUnit,
369+ Enum1: () => enumUnit
370+};
371+const boundedEnumOrdering = {
372+ cardinality: 3,
373+ toEnum: v => {
374+ if (v === 0) { return Data$dMaybe.$Maybe("Just", Data$dOrdering.LT); }
375+ if (v === 1) { return Data$dMaybe.$Maybe("Just", Data$dOrdering.EQ); }
376+ if (v === 2) { return Data$dMaybe.$Maybe("Just", Data$dOrdering.GT); }
377+ return Data$dMaybe.Nothing;
378+ },
379+ fromEnum: v => {
380+ if (v === "LT") { return 0; }
381+ if (v === "EQ") { return 1; }
382+ if (v === "GT") { return 2; }
383+ $runtime.fail();
384+ },
385+ Bounded0: () => Data$dBounded.boundedOrdering,
386+ Enum1: () => enumOrdering
387+};
388+const boundedEnumChar = {cardinality: 65535, toEnum: charToEnum, fromEnum: toCharCode, Bounded0: () => Data$dBounded.boundedChar, Enum1: () => enumChar};
389+const boundedEnumBoolean = {
390+ cardinality: 2,
391+ toEnum: v => {
392+ if (v === 0) { return Data$dMaybe.$Maybe("Just", false); }
393+ if (v === 1) { return Data$dMaybe.$Maybe("Just", true); }
394+ return Data$dMaybe.Nothing;
395+ },
396+ fromEnum: v => {
397+ if (!v) { return 0; }
398+ if (v) { return 1; }
399+ $runtime.fail();
400+ },
401+ Bounded0: () => Data$dBounded.boundedBoolean,
402+ Enum1: () => enumBoolean
403+};
404+export {
405+ Cardinality,
406+ boundedEnumBoolean,
407+ boundedEnumChar,
408+ boundedEnumOrdering,
409+ boundedEnumUnit,
410+ cardinality,
411+ charToEnum,
412+ defaultCardinality,
413+ defaultFromEnum,
414+ defaultPred,
415+ defaultSucc,
416+ defaultToEnum,
417+ downFrom,
418+ downFromIncluding,
419+ enumBoolean,
420+ enumChar,
421+ enumEither,
422+ enumFromThenTo,
423+ enumFromTo,
424+ enumInt,
425+ enumMaybe,
426+ enumOrdering,
427+ enumTuple,
428+ enumUnit,
429+ eqCardinality,
430+ fromEnum,
431+ newtypeCardinality,
432+ ordCardinality,
433+ pred,
434+ showCardinality,
435+ succ,
436+ toEnum,
437+ toEnumWithDefaults,
438+ upFrom,
439+ upFromIncluding
440+};
441+export * from "./foreign.js";
output-es/Data.Eq.Generic/index.jsnew file+16
@@ -0,0 +1,16 @@
1+const genericEqNoConstructors = {"genericEq'": v => v1 => true};
2+const genericEqNoArguments = {"genericEq'": v => v1 => true};
3+const genericEqArgument = dictEq => ({"genericEq'": v => v1 => dictEq.eq(v)(v1)});
4+const genericEq$p = dict => dict["genericEq'"];
5+const genericEqConstructor = dictGenericEq => ({"genericEq'": v => v1 => dictGenericEq["genericEq'"](v)(v1)});
6+const genericEqProduct = dictGenericEq => dictGenericEq1 => ({"genericEq'": v => v1 => dictGenericEq["genericEq'"](v._1)(v1._1) && dictGenericEq1["genericEq'"](v._2)(v1._2)});
7+const genericEqSum = dictGenericEq => dictGenericEq1 => (
8+ {
9+ "genericEq'": v => v1 => {
10+ if (v.tag === "Inl") { return v1.tag === "Inl" && dictGenericEq["genericEq'"](v._1)(v1._1); }
11+ return v.tag === "Inr" && v1.tag === "Inr" && dictGenericEq1["genericEq'"](v._1)(v1._1);
12+ }
13+ }
14+);
15+const genericEq = dictGeneric => dictGenericEq => x => y => dictGenericEq["genericEq'"](dictGeneric.from(x))(dictGeneric.from(y));
16+export {genericEq, genericEq$p, genericEqArgument, genericEqConstructor, genericEqNoArguments, genericEqNoConstructors, genericEqProduct, genericEqSum};
output-es/Data.Eq/foreign.jsnew file+23
@@ -0,0 +1,23 @@
1+var refEq = function (r1) {
2+ return function (r2) {
3+ return r1 === r2;
4+ };
5+};
6+
7+export const eqBooleanImpl = refEq;
8+export const eqIntImpl = refEq;
9+export const eqNumberImpl = refEq;
10+export const eqCharImpl = refEq;
11+export const eqStringImpl = refEq;
12+
13+export const eqArrayImpl = function (f) {
14+ return function (xs) {
15+ return function (ys) {
16+ if (xs.length !== ys.length) return false;
17+ for (var i = 0; i < xs.length; i++) {
18+ if (!f(xs[i])(ys[i])) return false;
19+ }
20+ return true;
21+ };
22+ };
23+};
output-es/Data.Eq/index.jsnew file+33
@@ -0,0 +1,33 @@
1+import * as Record$dUnsafe from "../Record.Unsafe/index.js";
2+import * as Type$dProxy from "../Type.Proxy/index.js";
3+import {eqArrayImpl, eqBooleanImpl, eqCharImpl, eqIntImpl, eqNumberImpl, eqStringImpl} from "./foreign.js";
4+const eqVoid = {eq: v => v1 => true};
5+const eqUnit = {eq: v => v1 => true};
6+const eqString = {eq: eqStringImpl};
7+const eqRowNil = {eqRecord: v => v1 => v2 => true};
8+const eqRecord = dict => dict.eqRecord;
9+const eqRec = () => dictEqRecord => ({eq: dictEqRecord.eqRecord(Type$dProxy.Proxy)});
10+const eqProxy = {eq: v => v1 => true};
11+const eqNumber = {eq: eqNumberImpl};
12+const eqInt = {eq: eqIntImpl};
13+const eqChar = {eq: eqCharImpl};
14+const eqBoolean = {eq: eqBooleanImpl};
15+const eq1 = dict => dict.eq1;
16+const eq = dict => dict.eq;
17+const eqArray = dictEq => ({eq: eqArrayImpl(dictEq.eq)});
18+const eq1Array = {eq1: dictEq => eqArrayImpl(dictEq.eq)};
19+const eqRowCons = dictEqRecord => () => dictIsSymbol => dictEq => (
20+ {
21+ eqRecord: v => ra => rb => {
22+ const $$get = Record$dUnsafe.unsafeGet(dictIsSymbol.reflectSymbol(Type$dProxy.Proxy));
23+ return dictEq.eq($$get(ra))($$get(rb)) && dictEqRecord.eqRecord(Type$dProxy.Proxy)(ra)(rb);
24+ }
25+ }
26+);
27+const notEq = dictEq => x => y => !dictEq.eq(x)(y);
28+const notEq1 = dictEq1 => dictEq => {
29+ const eq12 = dictEq1.eq1(dictEq);
30+ return x => y => !eq12(x)(y);
31+};
32+export {eq, eq1, eq1Array, eqArray, eqBoolean, eqChar, eqInt, eqNumber, eqProxy, eqRec, eqRecord, eqRowCons, eqRowNil, eqString, eqUnit, eqVoid, notEq, notEq1};
33+export * from "./foreign.js";
output-es/Data.Equivalence/index.jsnew file+8
@@ -0,0 +1,8 @@
1+const Equivalence = x => x;
2+const semigroupEquivalence = {append: v => v1 => a => b => v(a)(b) && v1(a)(b)};
3+const newtypeEquivalence = {Coercible0: () => {}};
4+const monoidEquivalence = {mempty: v => v1 => true, Semigroup0: () => semigroupEquivalence};
5+const defaultEquivalence = dictEq => dictEq.eq;
6+const contravariantEquivalence = {cmap: f => v => x => y => v(f(x))(f(y))};
7+const comparisonEquivalence = v => a => b => v(a)(b) === "EQ";
8+export {Equivalence, comparisonEquivalence, contravariantEquivalence, defaultEquivalence, monoidEquivalence, newtypeEquivalence, semigroupEquivalence};
output-es/Data.EuclideanRing/foreign.jsnew file+26
@@ -0,0 +1,26 @@
1+export const intDegree = function (x) {
2+ return Math.min(Math.abs(x), 2147483647);
3+};
4+
5+// See the Euclidean definition in
6+// https://en.m.wikipedia.org/wiki/Modulo_operation.
7+export const intDiv = function (x) {
8+ return function (y) {
9+ if (y === 0) return 0;
10+ return y > 0 ? Math.floor(x / y) : -Math.floor(x / -y);
11+ };
12+};
13+
14+export const intMod = function (x) {
15+ return function (y) {
16+ if (y === 0) return 0;
17+ var yy = Math.abs(y);
18+ return ((x % yy) + yy) % yy;
19+ };
20+};
21+
22+export const numDiv = function (n1) {
23+ return function (n2) {
24+ return n1 / n2;
25+ };
26+};
output-es/Data.EuclideanRing/index.jsnew file+25
@@ -0,0 +1,25 @@
1+import * as Data$dCommutativeRing from "../Data.CommutativeRing/index.js";
2+import {intDegree, intDiv, intMod, numDiv} from "./foreign.js";
3+const mod = dict => dict.mod;
4+const gcd = dictEq => dictEuclideanRing => {
5+ const zero = dictEuclideanRing.CommutativeRing0().Ring0().Semiring0().zero;
6+ return a => b => {
7+ if (dictEq.eq(b)(zero)) { return a; }
8+ return gcd(dictEq)(dictEuclideanRing)(b)(dictEuclideanRing.mod(a)(b));
9+ };
10+};
11+const euclideanRingNumber = {degree: v => 1, div: numDiv, mod: v => v1 => 0.0, CommutativeRing0: () => Data$dCommutativeRing.commutativeRingNumber};
12+const euclideanRingInt = {degree: intDegree, div: intDiv, mod: intMod, CommutativeRing0: () => Data$dCommutativeRing.commutativeRingInt};
13+const div = dict => dict.div;
14+const lcm = dictEq => dictEuclideanRing => {
15+ const Semiring0 = dictEuclideanRing.CommutativeRing0().Ring0().Semiring0();
16+ const zero = Semiring0.zero;
17+ const gcd2 = gcd(dictEq)(dictEuclideanRing);
18+ return a => b => {
19+ if (dictEq.eq(a)(zero) || dictEq.eq(b)(zero)) { return zero; }
20+ return dictEuclideanRing.div(Semiring0.mul(a)(b))(gcd2(a)(b));
21+ };
22+};
23+const degree = dict => dict.degree;
24+export {degree, div, euclideanRingInt, euclideanRingNumber, gcd, lcm, mod};
25+export * from "./foreign.js";
output-es/Data.Exists/index.jsnew file+4
@@ -0,0 +1,4 @@
1+import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
2+const runExists = Unsafe$dCoerce.unsafeCoerce;
3+const mkExists = Unsafe$dCoerce.unsafeCoerce;
4+export {mkExists, runExists};
output-es/Data.Field/index.jsnew file+2
@@ -0,0 +1,2 @@
1+const field = dictEuclideanRing => dictDivisionRing => ({EuclideanRing0: () => dictEuclideanRing, DivisionRing1: () => dictDivisionRing});
2+export {field};
output-es/Data.Foldable/foreign.jsnew file+25
@@ -0,0 +1,25 @@
1+export const foldrArray = function (f) {
2+ return function (init) {
3+ return function (xs) {
4+ var acc = init;
5+ var len = xs.length;
6+ for (var i = len - 1; i >= 0; i--) {
7+ acc = f(xs[i])(acc);
8+ }
9+ return acc;
10+ };
11+ };
12+};
13+
14+export const foldlArray = function (f) {
15+ return function (init) {
16+ return function (xs) {
17+ var acc = init;
18+ var len = xs.length;
19+ for (var i = 0; i < len; i++) {
20+ acc = f(acc)(xs[i]);
21+ }
22+ return acc;
23+ };
24+ };
25+};
output-es/Data.Foldable/index.jsnew file+394
@@ -0,0 +1,394 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dApply from "../Control.Apply/index.js";
3+import * as Data$dMaybe from "../Data.Maybe/index.js";
4+import * as Data$dMaybe$dFirst from "../Data.Maybe.First/index.js";
5+import {foldlArray, foldrArray} from "./foreign.js";
6+const identity = x => x;
7+const monoidEndo = /* #__PURE__ */ (() => {
8+ const semigroupEndo1 = {append: v => v1 => x => v(v1(x))};
9+ return {mempty: x => x, Semigroup0: () => semigroupEndo1};
10+})();
11+const monoidDual = /* #__PURE__ */ (() => {
12+ const $0 = monoidEndo.Semigroup0();
13+ const semigroupDual1 = {append: v => v1 => $0.append(v1)(v)};
14+ return {mempty: monoidEndo.mempty, Semigroup0: () => semigroupDual1};
15+})();
16+const foldr = dict => dict.foldr;
17+const indexr = dictFoldable => idx => {
18+ const $0 = dictFoldable.foldr(a => cursor => {
19+ if (cursor.elem.tag === "Just") { return cursor; }
20+ if (cursor.pos === idx) { return {elem: Data$dMaybe.$Maybe("Just", a), pos: cursor.pos}; }
21+ return {pos: cursor.pos + 1 | 0, elem: cursor.elem};
22+ })({elem: Data$dMaybe.Nothing, pos: 0});
23+ return x => $0(x).elem;
24+};
25+const $$null = dictFoldable => dictFoldable.foldr(v => v1 => false)(true);
26+const oneOf = dictFoldable => dictPlus => dictFoldable.foldr(dictPlus.Alt0().alt)(dictPlus.empty);
27+const oneOfMap = dictFoldable => dictPlus => {
28+ const empty = dictPlus.empty;
29+ return f => dictFoldable.foldr(x => dictPlus.Alt0().alt(f(x)))(empty);
30+};
31+const traverse_ = dictApplicative => {
32+ const $0 = dictApplicative.Apply0();
33+ return dictFoldable => f => dictFoldable.foldr(x => {
34+ const $1 = f(x);
35+ return b => $0.apply($0.Functor0().map(v => Control$dApply.identity)($1))(b);
36+ })(dictApplicative.pure());
37+};
38+const for_ = dictApplicative => {
39+ const traverse_1 = traverse_(dictApplicative);
40+ return dictFoldable => {
41+ const $0 = traverse_1(dictFoldable);
42+ return b => a => $0(a)(b);
43+ };
44+};
45+const sequence_ = dictApplicative => {
46+ const traverse_1 = traverse_(dictApplicative);
47+ return dictFoldable => traverse_1(dictFoldable)(identity);
48+};
49+const foldl = dict => dict.foldl;
50+const indexl = dictFoldable => idx => {
51+ const $0 = dictFoldable.foldl(cursor => a => {
52+ if (cursor.elem.tag === "Just") { return cursor; }
53+ if (cursor.pos === idx) { return {elem: Data$dMaybe.$Maybe("Just", a), pos: cursor.pos}; }
54+ return {pos: cursor.pos + 1 | 0, elem: cursor.elem};
55+ })({elem: Data$dMaybe.Nothing, pos: 0});
56+ return x => $0(x).elem;
57+};
58+const intercalate = dictFoldable => dictMonoid => {
59+ const $0 = dictMonoid.Semigroup0();
60+ const mempty = dictMonoid.mempty;
61+ return sep => xs => dictFoldable.foldl(v => v1 => {
62+ if (v.init) { return {init: false, acc: v1}; }
63+ return {init: false, acc: $0.append(v.acc)($0.append(sep)(v1))};
64+ })({init: true, acc: mempty})(xs).acc;
65+};
66+const length = dictFoldable => dictSemiring => {
67+ const one = dictSemiring.one;
68+ return dictFoldable.foldl(c => v => dictSemiring.add(one)(c))(dictSemiring.zero);
69+};
70+const maximumBy = dictFoldable => cmp => dictFoldable.foldl(v => v1 => {
71+ if (v.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", v1); }
72+ if (v.tag === "Just") { return Data$dMaybe.$Maybe("Just", cmp(v._1)(v1) === "GT" ? v._1 : v1); }
73+ $runtime.fail();
74+})(Data$dMaybe.Nothing);
75+const maximum = dictOrd => dictFoldable => dictFoldable.foldl(v => v1 => {
76+ if (v.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", v1); }
77+ if (v.tag === "Just") { return Data$dMaybe.$Maybe("Just", dictOrd.compare(v._1)(v1) === "GT" ? v._1 : v1); }
78+ $runtime.fail();
79+})(Data$dMaybe.Nothing);
80+const minimumBy = dictFoldable => cmp => dictFoldable.foldl(v => v1 => {
81+ if (v.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", v1); }
82+ if (v.tag === "Just") { return Data$dMaybe.$Maybe("Just", cmp(v._1)(v1) === "LT" ? v._1 : v1); }
83+ $runtime.fail();
84+})(Data$dMaybe.Nothing);
85+const minimum = dictOrd => dictFoldable => dictFoldable.foldl(v => v1 => {
86+ if (v.tag === "Nothing") { return Data$dMaybe.$Maybe("Just", v1); }
87+ if (v.tag === "Just") { return Data$dMaybe.$Maybe("Just", dictOrd.compare(v._1)(v1) === "LT" ? v._1 : v1); }
88+ $runtime.fail();
89+})(Data$dMaybe.Nothing);
90+const product = dictFoldable => dictSemiring => dictFoldable.foldl(dictSemiring.mul)(dictSemiring.one);
91+const sum = dictFoldable => dictSemiring => dictFoldable.foldl(dictSemiring.add)(dictSemiring.zero);
92+const foldableTuple = {foldr: f => z => v => f(v._2)(z), foldl: f => z => v => f(z)(v._2), foldMap: dictMonoid => f => v => f(v._2)};
93+const foldableMultiplicative = {foldr: f => z => v => f(v)(z), foldl: f => z => v => f(z)(v), foldMap: dictMonoid => f => v => f(v)};
94+const foldableMaybe = {
95+ foldr: v => v1 => v2 => {
96+ if (v2.tag === "Nothing") { return v1; }
97+ if (v2.tag === "Just") { return v(v2._1)(v1); }
98+ $runtime.fail();
99+ },
100+ foldl: v => v1 => v2 => {
101+ if (v2.tag === "Nothing") { return v1; }
102+ if (v2.tag === "Just") { return v(v1)(v2._1); }
103+ $runtime.fail();
104+ },
105+ foldMap: dictMonoid => {
106+ const mempty = dictMonoid.mempty;
107+ return v => v1 => {
108+ if (v1.tag === "Nothing") { return mempty; }
109+ if (v1.tag === "Just") { return v(v1._1); }
110+ $runtime.fail();
111+ };
112+ }
113+};
114+const foldableIdentity = {foldr: f => z => v => f(v)(z), foldl: f => z => v => f(z)(v), foldMap: dictMonoid => f => v => f(v)};
115+const foldableEither = {
116+ foldr: v => v1 => v2 => {
117+ if (v2.tag === "Left") { return v1; }
118+ if (v2.tag === "Right") { return v(v2._1)(v1); }
119+ $runtime.fail();
120+ },
121+ foldl: v => v1 => v2 => {
122+ if (v2.tag === "Left") { return v1; }
123+ if (v2.tag === "Right") { return v(v1)(v2._1); }
124+ $runtime.fail();
125+ },
126+ foldMap: dictMonoid => {
127+ const mempty = dictMonoid.mempty;
128+ return v => v1 => {
129+ if (v1.tag === "Left") { return mempty; }
130+ if (v1.tag === "Right") { return v(v1._1); }
131+ $runtime.fail();
132+ };
133+ }
134+};
135+const foldableDual = {foldr: f => z => v => f(v)(z), foldl: f => z => v => f(z)(v), foldMap: dictMonoid => f => v => f(v)};
136+const foldableDisj = {foldr: f => z => v => f(v)(z), foldl: f => z => v => f(z)(v), foldMap: dictMonoid => f => v => f(v)};
137+const foldableConst = {
138+ foldr: v => z => v1 => z,
139+ foldl: v => z => v1 => z,
140+ foldMap: dictMonoid => {
141+ const mempty = dictMonoid.mempty;
142+ return v => v1 => mempty;
143+ }
144+};
145+const foldableConj = {foldr: f => z => v => f(v)(z), foldl: f => z => v => f(z)(v), foldMap: dictMonoid => f => v => f(v)};
146+const foldableAdditive = {foldr: f => z => v => f(v)(z), foldl: f => z => v => f(z)(v), foldMap: dictMonoid => f => v => f(v)};
147+const foldMapDefaultR = dictFoldable => dictMonoid => {
148+ const mempty = dictMonoid.mempty;
149+ return f => dictFoldable.foldr(x => acc => dictMonoid.Semigroup0().append(f(x))(acc))(mempty);
150+};
151+const foldableArray = {
152+ foldr: foldrArray,
153+ foldl: foldlArray,
154+ foldMap: dictMonoid => {
155+ const mempty = dictMonoid.mempty;
156+ return f => foldableArray.foldr(x => acc => dictMonoid.Semigroup0().append(f(x))(acc))(mempty);
157+ }
158+};
159+const foldMapDefaultL = dictFoldable => dictMonoid => {
160+ const mempty = dictMonoid.mempty;
161+ return f => dictFoldable.foldl(acc => x => dictMonoid.Semigroup0().append(acc)(f(x)))(mempty);
162+};
163+const foldMap = dict => dict.foldMap;
164+const foldableApp = dictFoldable => (
165+ {foldr: f => i => v => dictFoldable.foldr(f)(i)(v), foldl: f => i => v => dictFoldable.foldl(f)(i)(v), foldMap: dictMonoid => dictFoldable.foldMap(dictMonoid)}
166+);
167+const foldableCompose = dictFoldable => dictFoldable1 => (
168+ {
169+ foldr: f => i => v => dictFoldable.foldr((() => {
170+ const $0 = dictFoldable1.foldr(f);
171+ return b => a => $0(a)(b);
172+ })())(i)(v),
173+ foldl: f => i => v => dictFoldable.foldl(dictFoldable1.foldl(f))(i)(v),
174+ foldMap: dictMonoid => {
175+ const foldMap4 = dictFoldable.foldMap(dictMonoid);
176+ const foldMap5 = dictFoldable1.foldMap(dictMonoid);
177+ return f => v => foldMap4(foldMap5(f))(v);
178+ }
179+ }
180+);
181+const foldableCoproduct = dictFoldable => dictFoldable1 => (
182+ {
183+ foldr: f => z => {
184+ const $0 = dictFoldable.foldr(f)(z);
185+ const $1 = dictFoldable1.foldr(f)(z);
186+ return v2 => {
187+ if (v2.tag === "Left") { return $0(v2._1); }
188+ if (v2.tag === "Right") { return $1(v2._1); }
189+ $runtime.fail();
190+ };
191+ },
192+ foldl: f => z => {
193+ const $0 = dictFoldable.foldl(f)(z);
194+ const $1 = dictFoldable1.foldl(f)(z);
195+ return v2 => {
196+ if (v2.tag === "Left") { return $0(v2._1); }
197+ if (v2.tag === "Right") { return $1(v2._1); }
198+ $runtime.fail();
199+ };
200+ },
201+ foldMap: dictMonoid => {
202+ const foldMap4 = dictFoldable.foldMap(dictMonoid);
203+ const foldMap5 = dictFoldable1.foldMap(dictMonoid);
204+ return f => {
205+ const $0 = foldMap4(f);
206+ const $1 = foldMap5(f);
207+ return v2 => {
208+ if (v2.tag === "Left") { return $0(v2._1); }
209+ if (v2.tag === "Right") { return $1(v2._1); }
210+ $runtime.fail();
211+ };
212+ };
213+ }
214+ }
215+);
216+const foldableFirst = {
217+ foldr: f => z => v => {
218+ if (v.tag === "Nothing") { return z; }
219+ if (v.tag === "Just") { return f(v._1)(z); }
220+ $runtime.fail();
221+ },
222+ foldl: f => z => v => {
223+ if (v.tag === "Nothing") { return z; }
224+ if (v.tag === "Just") { return f(z)(v._1); }
225+ $runtime.fail();
226+ },
227+ foldMap: dictMonoid => {
228+ const mempty = dictMonoid.mempty;
229+ return v => v1 => {
230+ if (v1.tag === "Nothing") { return mempty; }
231+ if (v1.tag === "Just") { return v(v1._1); }
232+ $runtime.fail();
233+ };
234+ }
235+};
236+const foldableLast = {
237+ foldr: f => z => v => {
238+ if (v.tag === "Nothing") { return z; }
239+ if (v.tag === "Just") { return f(v._1)(z); }
240+ $runtime.fail();
241+ },
242+ foldl: f => z => v => {
243+ if (v.tag === "Nothing") { return z; }
244+ if (v.tag === "Just") { return f(z)(v._1); }
245+ $runtime.fail();
246+ },
247+ foldMap: dictMonoid => {
248+ const mempty = dictMonoid.mempty;
249+ return v => v1 => {
250+ if (v1.tag === "Nothing") { return mempty; }
251+ if (v1.tag === "Just") { return v(v1._1); }
252+ $runtime.fail();
253+ };
254+ }
255+};
256+const foldableProduct = dictFoldable => dictFoldable1 => (
257+ {
258+ foldr: f => z => v => dictFoldable.foldr(f)(dictFoldable1.foldr(f)(z)(v._2))(v._1),
259+ foldl: f => z => v => dictFoldable1.foldl(f)(dictFoldable.foldl(f)(z)(v._1))(v._2),
260+ foldMap: dictMonoid => {
261+ const foldMap4 = dictFoldable.foldMap(dictMonoid);
262+ const foldMap5 = dictFoldable1.foldMap(dictMonoid);
263+ return f => v => dictMonoid.Semigroup0().append(foldMap4(f)(v._1))(foldMap5(f)(v._2));
264+ }
265+ }
266+);
267+const foldlDefault = dictFoldable => {
268+ const foldMap2 = dictFoldable.foldMap(monoidDual);
269+ return c => u => xs => foldMap2(x => a => c(a)(x))(xs)(u);
270+};
271+const foldrDefault = dictFoldable => {
272+ const foldMap2 = dictFoldable.foldMap(monoidEndo);
273+ return c => u => xs => foldMap2(x => c(x))(xs)(u);
274+};
275+const lookup = dictFoldable => {
276+ const foldMap2 = dictFoldable.foldMap(Data$dMaybe$dFirst.monoidFirst);
277+ return dictEq => a => foldMap2(v => {
278+ if (dictEq.eq(a)(v._1)) { return Data$dMaybe.$Maybe("Just", v._2); }
279+ return Data$dMaybe.Nothing;
280+ });
281+};
282+const surroundMap = dictFoldable => {
283+ const foldMap2 = dictFoldable.foldMap(monoidEndo);
284+ return dictSemigroup => d => t => f => foldMap2(a => m => dictSemigroup.append(d)(dictSemigroup.append(t(a))(m)))(f)(d);
285+};
286+const surround = dictFoldable => {
287+ const surroundMap1 = surroundMap(dictFoldable);
288+ return dictSemigroup => {
289+ const surroundMap2 = surroundMap1(dictSemigroup);
290+ return d => surroundMap2(d)(identity);
291+ };
292+};
293+const foldM = dictFoldable => dictMonad => f => b0 => dictFoldable.foldl(b => a => dictMonad.Bind1().bind(b)(a$1 => f(a$1)(a)))(dictMonad.Applicative0().pure(b0));
294+const fold = dictFoldable => dictMonoid => dictFoldable.foldMap(dictMonoid)(identity);
295+const findMap = dictFoldable => p => dictFoldable.foldl(v => v1 => {
296+ if (v.tag === "Nothing") { return p(v1); }
297+ return v;
298+})(Data$dMaybe.Nothing);
299+const find = dictFoldable => p => dictFoldable.foldl(v => v1 => {
300+ if (v.tag === "Nothing" && p(v1)) { return Data$dMaybe.$Maybe("Just", v1); }
301+ return v;
302+})(Data$dMaybe.Nothing);
303+const any = dictFoldable => dictHeytingAlgebra => dictFoldable.foldMap((() => {
304+ const semigroupDisj1 = {append: v => v1 => dictHeytingAlgebra.disj(v)(v1)};
305+ return {mempty: dictHeytingAlgebra.ff, Semigroup0: () => semigroupDisj1};
306+})());
307+const elem = dictFoldable => {
308+ const any1 = dictFoldable.foldMap((() => {
309+ const semigroupDisj1 = {append: v => v1 => v || v1};
310+ return {mempty: false, Semigroup0: () => semigroupDisj1};
311+ })());
312+ return dictEq => x => any1(dictEq.eq(x));
313+};
314+const notElem = dictFoldable => {
315+ const any1 = dictFoldable.foldMap((() => {
316+ const semigroupDisj1 = {append: v => v1 => v || v1};
317+ return {mempty: false, Semigroup0: () => semigroupDisj1};
318+ })());
319+ return dictEq => x => {
320+ const $0 = any1(dictEq.eq(x));
321+ return x$1 => !$0(x$1);
322+ };
323+};
324+const or = dictFoldable => dictHeytingAlgebra => dictFoldable.foldMap((() => {
325+ const semigroupDisj1 = {append: v => v1 => dictHeytingAlgebra.disj(v)(v1)};
326+ return {mempty: dictHeytingAlgebra.ff, Semigroup0: () => semigroupDisj1};
327+})())(identity);
328+const all = dictFoldable => dictHeytingAlgebra => dictFoldable.foldMap((() => {
329+ const semigroupConj1 = {append: v => v1 => dictHeytingAlgebra.conj(v)(v1)};
330+ return {mempty: dictHeytingAlgebra.tt, Semigroup0: () => semigroupConj1};
331+})());
332+const and = dictFoldable => dictHeytingAlgebra => dictFoldable.foldMap((() => {
333+ const semigroupConj1 = {append: v => v1 => dictHeytingAlgebra.conj(v)(v1)};
334+ return {mempty: dictHeytingAlgebra.tt, Semigroup0: () => semigroupConj1};
335+})())(identity);
336+export {
337+ all,
338+ and,
339+ any,
340+ elem,
341+ find,
342+ findMap,
343+ fold,
344+ foldM,
345+ foldMap,
346+ foldMapDefaultL,
347+ foldMapDefaultR,
348+ foldableAdditive,
349+ foldableApp,
350+ foldableArray,
351+ foldableCompose,
352+ foldableConj,
353+ foldableConst,
354+ foldableCoproduct,
355+ foldableDisj,
356+ foldableDual,
357+ foldableEither,
358+ foldableFirst,
359+ foldableIdentity,
360+ foldableLast,
361+ foldableMaybe,
362+ foldableMultiplicative,
363+ foldableProduct,
364+ foldableTuple,
365+ foldl,
366+ foldlDefault,
367+ foldr,
368+ foldrDefault,
369+ for_,
370+ identity,
371+ indexl,
372+ indexr,
373+ intercalate,
374+ length,
375+ lookup,
376+ maximum,
377+ maximumBy,
378+ minimum,
379+ minimumBy,
380+ monoidDual,
381+ monoidEndo,
382+ notElem,
383+ $$null as null,
384+ oneOf,
385+ oneOfMap,
386+ or,
387+ product,
388+ sequence_,
389+ sum,
390+ surround,
391+ surroundMap,
392+ traverse_
393+};
394+export * from "./foreign.js";
output-es/Data.FoldableWithIndex/index.jsnew file+431
@@ -0,0 +1,431 @@
1+import * as $runtime from "../runtime.js";
2+import * as Control$dApply from "../Control.Apply/index.js";
3+import * as Data$dEither from "../Data.Either/index.js";
4+import * as Data$dFoldable from "../Data.Foldable/index.js";
5+import * as Data$dFunctorWithIndex from "../Data.FunctorWithIndex/index.js";
6+import * as Data$dMaybe from "../Data.Maybe/index.js";
7+import * as Data$dTuple from "../Data.Tuple/index.js";
8+const monoidEndo = /* #__PURE__ */ (() => {
9+ const semigroupEndo1 = {append: v => v1 => x => v(v1(x))};
10+ return {mempty: x => x, Semigroup0: () => semigroupEndo1};
11+})();
12+const monoidDual = /* #__PURE__ */ (() => {
13+ const $0 = monoidEndo.Semigroup0();
14+ const semigroupDual1 = {append: v => v1 => $0.append(v1)(v)};
15+ return {mempty: monoidEndo.mempty, Semigroup0: () => semigroupDual1};
16+})();
17+const foldrWithIndex = dict => dict.foldrWithIndex;
18+const traverseWithIndex_ = dictApplicative => {
19+ const $0 = dictApplicative.Apply0();
20+ return dictFoldableWithIndex => f => dictFoldableWithIndex.foldrWithIndex(i => {
21+ const $1 = f(i);
22+ return x => {
23+ const $2 = $1(x);
24+ return b => $0.apply($0.Functor0().map(v => Control$dApply.identity)($2))(b);
25+ };
26+ })(dictApplicative.pure());
27+};
28+const forWithIndex_ = dictApplicative => {
29+ const traverseWithIndex_1 = traverseWithIndex_(dictApplicative);
30+ return dictFoldableWithIndex => {
31+ const $0 = traverseWithIndex_1(dictFoldableWithIndex);
32+ return b => a => $0(a)(b);
33+ };
34+};
35+const foldrDefault = dictFoldableWithIndex => f => dictFoldableWithIndex.foldrWithIndex(v => f);
36+const foldlWithIndex = dict => dict.foldlWithIndex;
37+const foldlDefault = dictFoldableWithIndex => f => dictFoldableWithIndex.foldlWithIndex(v => f);
38+const foldableWithIndexTuple = {
39+ foldrWithIndex: f => z => v => f()(v._2)(z),
40+ foldlWithIndex: f => z => v => f()(z)(v._2),
41+ foldMapWithIndex: dictMonoid => f => v => f()(v._2),
42+ Foldable0: () => Data$dFoldable.foldableTuple
43+};
44+const foldableWithIndexMultiplicative = {
45+ foldrWithIndex: f => {
46+ const $0 = f();
47+ return z => v => $0(v)(z);
48+ },
49+ foldlWithIndex: f => f(),
50+ foldMapWithIndex: dictMonoid => f => f(),
51+ Foldable0: () => Data$dFoldable.foldableMultiplicative
52+};
53+const foldableWithIndexMaybe = {
54+ foldrWithIndex: f => {
55+ const $0 = f();
56+ return v1 => v2 => {
57+ if (v2.tag === "Nothing") { return v1; }
58+ if (v2.tag === "Just") { return $0(v2._1)(v1); }
59+ $runtime.fail();
60+ };
61+ },
62+ foldlWithIndex: f => {
63+ const $0 = f();
64+ return v1 => v2 => {
65+ if (v2.tag === "Nothing") { return v1; }
66+ if (v2.tag === "Just") { return $0(v1)(v2._1); }
67+ $runtime.fail();
68+ };
69+ },
70+ foldMapWithIndex: dictMonoid => {
71+ const mempty = dictMonoid.mempty;
72+ return f => {
73+ const $0 = f();
74+ return v1 => {
75+ if (v1.tag === "Nothing") { return mempty; }
76+ if (v1.tag === "Just") { return $0(v1._1); }
77+ $runtime.fail();
78+ };
79+ };
80+ },
81+ Foldable0: () => Data$dFoldable.foldableMaybe
82+};
83+const foldableWithIndexLast = {
84+ foldrWithIndex: f => {
85+ const $0 = f();
86+ return z => v => {
87+ if (v.tag === "Nothing") { return z; }
88+ if (v.tag === "Just") { return $0(v._1)(z); }
89+ $runtime.fail();
90+ };
91+ },
92+ foldlWithIndex: f => {
93+ const $0 = f();
94+ return z => v => {
95+ if (v.tag === "Nothing") { return z; }
96+ if (v.tag === "Just") { return $0(z)(v._1); }
97+ $runtime.fail();
98+ };
99+ },
100+ foldMapWithIndex: dictMonoid => {
101+ const mempty = dictMonoid.mempty;
102+ return f => {
103+ const $0 = f();
104+ return v1 => {
105+ if (v1.tag === "Nothing") { return mempty; }
106+ if (v1.tag === "Just") { return $0(v1._1); }
107+ $runtime.fail();
108+ };
109+ };
110+ },
111+ Foldable0: () => Data$dFoldable.foldableLast
112+};
113+const foldableWithIndexIdentity = {
114+ foldrWithIndex: f => z => v => f()(v)(z),
115+ foldlWithIndex: f => z => v => f()(z)(v),
116+ foldMapWithIndex: dictMonoid => f => v => f()(v),
117+ Foldable0: () => Data$dFoldable.foldableIdentity
118+};
119+const foldableWithIndexFirst = {
120+ foldrWithIndex: f => {
121+ const $0 = f();
122+ return z => v => {
123+ if (v.tag === "Nothing") { return z; }
124+ if (v.tag === "Just") { return $0(v._1)(z); }
125+ $runtime.fail();
126+ };
127+ },
128+ foldlWithIndex: f => {
129+ const $0 = f();
130+ return z => v => {
131+ if (v.tag === "Nothing") { return z; }
132+ if (v.tag === "Just") { return $0(z)(v._1); }
133+ $runtime.fail();
134+ };
135+ },
136+ foldMapWithIndex: dictMonoid => {
137+ const mempty = dictMonoid.mempty;
138+ return f => {
139+ const $0 = f();
140+ return v1 => {
141+ if (v1.tag === "Nothing") { return mempty; }
142+ if (v1.tag === "Just") { return $0(v1._1); }
143+ $runtime.fail();
144+ };
145+ };
146+ },
147+ Foldable0: () => Data$dFoldable.foldableFirst
148+};
149+const foldableWithIndexEither = {
150+ foldrWithIndex: v => v1 => v2 => {
151+ if (v2.tag === "Left") { return v1; }
152+ if (v2.tag === "Right") { return v()(v2._1)(v1); }
153+ $runtime.fail();
154+ },
155+ foldlWithIndex: v => v1 => v2 => {
156+ if (v2.tag === "Left") { return v1; }
157+ if (v2.tag === "Right") { return v()(v1)(v2._1); }
158+ $runtime.fail();
159+ },
160+ foldMapWithIndex: dictMonoid => {
161+ const mempty = dictMonoid.mempty;
162+ return v => v1 => {
163+ if (v1.tag === "Left") { return mempty; }
164+ if (v1.tag === "Right") { return v()(v1._1); }
165+ $runtime.fail();
166+ };
167+ },
168+ Foldable0: () => Data$dFoldable.foldableEither
169+};
170+const foldableWithIndexDual = {
171+ foldrWithIndex: f => {
172+ const $0 = f();
173+ return z => v => $0(v)(z);
174+ },
175+ foldlWithIndex: f => f(),
176+ foldMapWithIndex: dictMonoid => f => f(),
177+ Foldable0: () => Data$dFoldable.foldableDual
178+};
179+const foldableWithIndexDisj = {
180+ foldrWithIndex: f => {
181+ const $0 = f();
182+ return z => v => $0(v)(z);
183+ },
184+ foldlWithIndex: f => f(),
185+ foldMapWithIndex: dictMonoid => f => f(),
186+ Foldable0: () => Data$dFoldable.foldableDisj
187+};
188+const foldableWithIndexConst = {
189+ foldrWithIndex: v => z => v1 => z,
190+ foldlWithIndex: v => z => v1 => z,
191+ foldMapWithIndex: dictMonoid => {
192+ const mempty = dictMonoid.mempty;
193+ return v => v1 => mempty;
194+ },
195+ Foldable0: () => Data$dFoldable.foldableConst
196+};
197+const foldableWithIndexConj = {
198+ foldrWithIndex: f => {
199+ const $0 = f();
200+ return z => v => $0(v)(z);
201+ },
202+ foldlWithIndex: f => f(),
203+ foldMapWithIndex: dictMonoid => f => f(),
204+ Foldable0: () => Data$dFoldable.foldableConj
205+};
206+const foldableWithIndexAdditive = {
207+ foldrWithIndex: f => {
208+ const $0 = f();
209+ return z => v => $0(v)(z);
210+ },
211+ foldlWithIndex: f => f(),
212+ foldMapWithIndex: dictMonoid => f => f(),
213+ Foldable0: () => Data$dFoldable.foldableAdditive
214+};
215+const foldWithIndexM = dictFoldableWithIndex => dictMonad => f => a0 => dictFoldableWithIndex.foldlWithIndex(i => ma => b => dictMonad.Bind1().bind(ma)((() => {
216+ const $0 = f(i);
217+ return a => $0(a)(b);
218+})()))(dictMonad.Applicative0().pure(a0));
219+const foldMapWithIndexDefaultR = dictFoldableWithIndex => dictMonoid => {
220+ const mempty = dictMonoid.mempty;
221+ return f => dictFoldableWithIndex.foldrWithIndex(i => x => acc => dictMonoid.Semigroup0().append(f(i)(x))(acc))(mempty);
222+};
223+const foldableWithIndexArray = {
224+ foldrWithIndex: f => z => {
225+ const $0 = Data$dFoldable.foldrArray(v => {
226+ const $0 = v._1;
227+ const $1 = v._2;
228+ return y => f($0)($1)(y);
229+ })(z);
230+ const $1 = Data$dFunctorWithIndex.mapWithIndexArray(Data$dTuple.Tuple);
231+ return x => $0($1(x));
232+ },
233+ foldlWithIndex: f => z => {
234+ const $0 = Data$dFoldable.foldlArray(y => v => f(v._1)(y)(v._2))(z);
235+ const $1 = Data$dFunctorWithIndex.mapWithIndexArray(Data$dTuple.Tuple);
236+ return x => $0($1(x));
237+ },
238+ foldMapWithIndex: dictMonoid => {
239+ const mempty = dictMonoid.mempty;
240+ return f => foldableWithIndexArray.foldrWithIndex(i => x => acc => dictMonoid.Semigroup0().append(f(i)(x))(acc))(mempty);
241+ },
242+ Foldable0: () => Data$dFoldable.foldableArray
243+};
244+const foldMapWithIndexDefaultL = dictFoldableWithIndex => dictMonoid => {
245+ const mempty = dictMonoid.mempty;
246+ return f => dictFoldableWithIndex.foldlWithIndex(i => acc => x => dictMonoid.Semigroup0().append(acc)(f(i)(x)))(mempty);
247+};
248+const foldMapWithIndex = dict => dict.foldMapWithIndex;
249+const foldableWithIndexApp = dictFoldableWithIndex => {
250+ const $0 = dictFoldableWithIndex.Foldable0();
251+ const foldableApp = {foldr: f => i => v => $0.foldr(f)(i)(v), foldl: f => i => v => $0.foldl(f)(i)(v), foldMap: dictMonoid => $0.foldMap(dictMonoid)};
252+ return {
253+ foldrWithIndex: f => z => v => dictFoldableWithIndex.foldrWithIndex(f)(z)(v),
254+ foldlWithIndex: f => z => v => dictFoldableWithIndex.foldlWithIndex(f)(z)(v),
255+ foldMapWithIndex: dictMonoid => dictFoldableWithIndex.foldMapWithIndex(dictMonoid),
256+ Foldable0: () => foldableApp
257+ };
258+};
259+const foldableWithIndexCompose = dictFoldableWithIndex => {
260+ const $0 = dictFoldableWithIndex.Foldable0();
261+ return dictFoldableWithIndex1 => {
262+ const $1 = dictFoldableWithIndex1.Foldable0();
263+ const foldableCompose1 = {
264+ foldr: f => i => v => $0.foldr((() => {
265+ const $2 = $1.foldr(f);
266+ return b => a => $2(a)(b);
267+ })())(i)(v),
268+ foldl: f => i => v => $0.foldl($1.foldl(f))(i)(v),
269+ foldMap: dictMonoid => {
270+ const foldMap4 = $0.foldMap(dictMonoid);
271+ const foldMap5 = $1.foldMap(dictMonoid);
272+ return f => v => foldMap4(foldMap5(f))(v);
273+ }
274+ };
275+ return {
276+ foldrWithIndex: f => i => v => dictFoldableWithIndex.foldrWithIndex(a => {
277+ const $2 = dictFoldableWithIndex1.foldrWithIndex(b => f(Data$dTuple.$Tuple(a, b)));
278+ return b => a$1 => $2(a$1)(b);
279+ })(i)(v),
280+ foldlWithIndex: f => i => v => dictFoldableWithIndex.foldlWithIndex(x => dictFoldableWithIndex1.foldlWithIndex(b => f(Data$dTuple.$Tuple(x, b))))(i)(v),
281+ foldMapWithIndex: dictMonoid => {
282+ const foldMapWithIndex3 = dictFoldableWithIndex.foldMapWithIndex(dictMonoid);
283+ const foldMapWithIndex4 = dictFoldableWithIndex1.foldMapWithIndex(dictMonoid);
284+ return f => v => foldMapWithIndex3(x => foldMapWithIndex4(b => f(Data$dTuple.$Tuple(x, b))))(v);
285+ },
286+ Foldable0: () => foldableCompose1
287+ };
288+ };
289+};
290+const foldableWithIndexCoproduct = dictFoldableWithIndex => {
291+ const foldableCoproduct = Data$dFoldable.foldableCoproduct(dictFoldableWithIndex.Foldable0());
292+ return dictFoldableWithIndex1 => {
293+ const foldableCoproduct1 = foldableCoproduct(dictFoldableWithIndex1.Foldable0());
294+ return {
295+ foldrWithIndex: f => z => {
296+ const $0 = dictFoldableWithIndex.foldrWithIndex(x => f(Data$dEither.$Either("Left", x)))(z);
297+ const $1 = dictFoldableWithIndex1.foldrWithIndex(x => f(Data$dEither.$Either("Right", x)))(z);
298+ return v2 => {
299+ if (v2.tag === "Left") { return $0(v2._1); }
300+ if (v2.tag === "Right") { return $1(v2._1); }
301+ $runtime.fail();
302+ };
303+ },
304+ foldlWithIndex: f => z => {
305+ const $0 = dictFoldableWithIndex.foldlWithIndex(x => f(Data$dEither.$Either("Left", x)))(z);
306+ const $1 = dictFoldableWithIndex1.foldlWithIndex(x => f(Data$dEither.$Either("Right", x)))(z);
307+ return v2 => {
308+ if (v2.tag === "Left") { return $0(v2._1); }
309+ if (v2.tag === "Right") { return $1(v2._1); }
310+ $runtime.fail();
311+ };
312+ },
313+ foldMapWithIndex: dictMonoid => {
314+ const foldMapWithIndex3 = dictFoldableWithIndex.foldMapWithIndex(dictMonoid);
315+ const foldMapWithIndex4 = dictFoldableWithIndex1.foldMapWithIndex(dictMonoid);
316+ return f => {
317+ const $0 = foldMapWithIndex3(x => f(Data$dEither.$Either("Left", x)));
318+ const $1 = foldMapWithIndex4(x => f(Data$dEither.$Either("Right", x)));
319+ return v2 => {
320+ if (v2.tag === "Left") { return $0(v2._1); }
321+ if (v2.tag === "Right") { return $1(v2._1); }
322+ $runtime.fail();
323+ };
324+ };
325+ },
326+ Foldable0: () => foldableCoproduct1
327+ };
328+ };
329+};
330+const foldableWithIndexProduct = dictFoldableWithIndex => {
331+ const foldableProduct = Data$dFoldable.foldableProduct(dictFoldableWithIndex.Foldable0());
332+ return dictFoldableWithIndex1 => {
333+ const foldableProduct1 = foldableProduct(dictFoldableWithIndex1.Foldable0());
334+ return {
335+ foldrWithIndex: f => z => v => dictFoldableWithIndex.foldrWithIndex(x => f(Data$dEither.$Either("Left", x)))(dictFoldableWithIndex1.foldrWithIndex(x => f(Data$dEither.$Either(
336+ "Right",
337+ x
338+ )))(z)(v._2))(v._1),
339+ foldlWithIndex: f => z => v => dictFoldableWithIndex1.foldlWithIndex(x => f(Data$dEither.$Either("Right", x)))(dictFoldableWithIndex.foldlWithIndex(x => f(Data$dEither.$Either(
340+ "Left",
341+ x
342+ )))(z)(v._1))(v._2),
343+ foldMapWithIndex: dictMonoid => {
344+ const foldMapWithIndex3 = dictFoldableWithIndex.foldMapWithIndex(dictMonoid);
345+ const foldMapWithIndex4 = dictFoldableWithIndex1.foldMapWithIndex(dictMonoid);
346+ return f => v => dictMonoid.Semigroup0().append(foldMapWithIndex3(x => f(Data$dEither.$Either("Left", x)))(v._1))(foldMapWithIndex4(x => f(Data$dEither.$Either("Right", x)))(v._2));
347+ },
348+ Foldable0: () => foldableProduct1
349+ };
350+ };
351+};
352+const foldlWithIndexDefault = dictFoldableWithIndex => {
353+ const foldMapWithIndex1 = dictFoldableWithIndex.foldMapWithIndex(monoidDual);
354+ return c => u => xs => foldMapWithIndex1(i => {
355+ const $0 = c(i);
356+ return x => a => $0(a)(x);
357+ })(xs)(u);
358+};
359+const foldrWithIndexDefault = dictFoldableWithIndex => {
360+ const foldMapWithIndex1 = dictFoldableWithIndex.foldMapWithIndex(monoidEndo);
361+ return c => u => xs => foldMapWithIndex1(i => c(i))(xs)(u);
362+};
363+const surroundMapWithIndex = dictFoldableWithIndex => {
364+ const foldMapWithIndex1 = dictFoldableWithIndex.foldMapWithIndex(monoidEndo);
365+ return dictSemigroup => d => t => f => foldMapWithIndex1(i => a => m => dictSemigroup.append(d)(dictSemigroup.append(t(i)(a))(m)))(f)(d);
366+};
367+const foldMapDefault = dictFoldableWithIndex => dictMonoid => {
368+ const foldMapWithIndex2 = dictFoldableWithIndex.foldMapWithIndex(dictMonoid);
369+ return f => foldMapWithIndex2(v => f);
370+};
371+const findWithIndex = dictFoldableWithIndex => p => dictFoldableWithIndex.foldlWithIndex(v => v1 => v2 => {
372+ if (v1.tag === "Nothing" && p(v)(v2)) { return Data$dMaybe.$Maybe("Just", {index: v, value: v2}); }
373+ return v1;
374+})(Data$dMaybe.Nothing);
375+const findMapWithIndex = dictFoldableWithIndex => f => dictFoldableWithIndex.foldlWithIndex(v => v1 => v2 => {
376+ if (v1.tag === "Nothing") { return f(v)(v2); }
377+ return v1;
378+})(Data$dMaybe.Nothing);
379+const anyWithIndex = dictFoldableWithIndex => dictHeytingAlgebra => {
380+ const foldMapWithIndex2 = dictFoldableWithIndex.foldMapWithIndex((() => {
381+ const semigroupDisj1 = {append: v => v1 => dictHeytingAlgebra.disj(v)(v1)};
382+ return {mempty: dictHeytingAlgebra.ff, Semigroup0: () => semigroupDisj1};
383+ })());
384+ return t => foldMapWithIndex2(i => t(i));
385+};
386+const allWithIndex = dictFoldableWithIndex => dictHeytingAlgebra => {
387+ const foldMapWithIndex2 = dictFoldableWithIndex.foldMapWithIndex((() => {
388+ const semigroupConj1 = {append: v => v1 => dictHeytingAlgebra.conj(v)(v1)};
389+ return {mempty: dictHeytingAlgebra.tt, Semigroup0: () => semigroupConj1};
390+ })());
391+ return t => foldMapWithIndex2(i => t(i));
392+};
393+export {
394+ allWithIndex,
395+ anyWithIndex,
396+ findMapWithIndex,
397+ findWithIndex,
398+ foldMapDefault,
399+ foldMapWithIndex,
400+ foldMapWithIndexDefaultL,
401+ foldMapWithIndexDefaultR,
402+ foldWithIndexM,
403+ foldableWithIndexAdditive,
404+ foldableWithIndexApp,
405+ foldableWithIndexArray,
406+ foldableWithIndexCompose,
407+ foldableWithIndexConj,
408+ foldableWithIndexConst,
409+ foldableWithIndexCoproduct,
410+ foldableWithIndexDisj,
411+ foldableWithIndexDual,
412+ foldableWithIndexEither,
413+ foldableWithIndexFirst,
414+ foldableWithIndexIdentity,
415+ foldableWithIndexLast,
416+ foldableWithIndexMaybe,
417+ foldableWithIndexMultiplicative,
418+ foldableWithIndexProduct,
419+ foldableWithIndexTuple,
420+ foldlDefault,
421+ foldlWithIndex,
422+ foldlWithIndexDefault,
423+ foldrDefault,
424+ foldrWithIndex,
425+ foldrWithIndexDefault,
426+ forWithIndex_,
427+ monoidDual,
428+ monoidEndo,
429+ surroundMapWithIndex,
430+ traverseWithIndex_
431+};
output-es/Data.Function.Memoize/index.jsnew file+242
@@ -0,0 +1,242 @@
1+// | This module defines functions for _memoizing_ functions, i.e. creating functions which
2+// | remember their results.
3+// |
4+// | This module works by turning a function into a lazily-evaluated data structure depending on
5+// | its domain type.
6+import * as $runtime from "../runtime.js";
7+import * as Data$dEither from "../Data.Either/index.js";
8+import * as Data$dEnum from "../Data.Enum/index.js";
9+import * as Data$dFoldable from "../Data.Foldable/index.js";
10+import * as Data$dGeneric$dRep from "../Data.Generic.Rep/index.js";
11+import * as Data$dLazy from "../Data.Lazy/index.js";
12+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
13+import * as Data$dMaybe from "../Data.Maybe/index.js";
14+import * as Data$dString$dCodeUnits from "../Data.String.CodeUnits/index.js";
15+import * as Data$dTuple from "../Data.Tuple/index.js";
16+import * as Data$dUnfoldable from "../Data.Unfoldable/index.js";
17+const $NatTrie = (_1, _2, _3) => ({tag: "NatTrie", _1, _2, _3});
18+const toUnfoldable = /* #__PURE__ */ (() => Data$dUnfoldable.unfoldableArray.unfoldr(xs => {
19+ if (xs.tag === "Nil") { return Data$dMaybe.Nothing; }
20+ if (xs.tag === "Cons") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(xs._1, xs._2)); }
21+ $runtime.fail();
22+}))();
23+const fromFoldable = /* #__PURE__ */ Data$dFoldable.foldrArray(Data$dList$dTypes.Cons)(Data$dList$dTypes.Nil);
24+const NatTrie = value0 => value1 => value2 => $NatTrie(value0, value1, value2);
25+const tabulateUnit = {
26+ tabulate: f => {
27+ const r = Data$dLazy.defer(v => f());
28+ return v => r;
29+ }
30+};
31+const tabulateNoArguments = {
32+ tabulate: f => {
33+ const r = Data$dLazy.defer(v => f(Data$dGeneric$dRep.NoArguments));
34+ return v => r;
35+ }
36+};
37+const tabulateNat = {
38+ tabulate: f => {
39+ const walk = v => v1 => {
40+ if (v.tag === "Nil") { return v1._1; }
41+ if (v.tag === "Cons") {
42+ if (!v._1) {
43+ const $0 = v1._2;
44+ const $1 = walk(v._2);
45+ return Data$dLazy.defer(v$1 => Data$dLazy.force($1(Data$dLazy.force($0))));
46+ }
47+ if (v._1) {
48+ const $0 = v1._3;
49+ const $1 = walk(v._2);
50+ return Data$dLazy.defer(v$1 => Data$dLazy.force($1(Data$dLazy.force($0))));
51+ }
52+ }
53+ $runtime.fail();
54+ };
55+ const build = n => $NatTrie(Data$dLazy.defer(v => f(n)), Data$dLazy.defer(v => build(n * 2 | 0)), Data$dLazy.defer(v => build((n * 2 | 0) + 1 | 0)));
56+ const trie = build(0);
57+ const bits$p = bits$p$a0$copy => bits$p$a1$copy => {
58+ let bits$p$a0 = bits$p$a0$copy, bits$p$a1 = bits$p$a1$copy, bits$p$c = true, bits$p$r;
59+ while (bits$p$c) {
60+ const v = bits$p$a0, v1 = bits$p$a1;
61+ if (v1 === 0) {
62+ bits$p$c = false;
63+ bits$p$r = v;
64+ continue;
65+ }
66+ bits$p$a0 = Data$dList$dTypes.$List("Cons", (v1 & 1) !== 0, v);
67+ bits$p$a1 = v1 >>> 1;
68+ }
69+ return bits$p$r;
70+ };
71+ const bits = bits$p(Data$dList$dTypes.Nil);
72+ return n => walk(bits(n))(trie);
73+ }
74+};
75+const tabulateBool = {
76+ tabulate: f => {
77+ const r2 = Data$dLazy.defer(v => f(false));
78+ const r1 = Data$dLazy.defer(v => f(true));
79+ return b => {
80+ if (b) { return r1; }
81+ return r2;
82+ };
83+ }
84+};
85+const tabulate = dict => dict.tabulate;
86+const tabulateArgument = dictTabulate => ({tabulate: f => dictTabulate.tabulate(x => f(x))});
87+const tabulateChar = {
88+ tabulate: f => {
89+ const $0 = tabulateNat.tabulate(x => f((() => {
90+ if (x >= 0 && x <= 65535) { return Data$dEnum.fromCharCode(x); }
91+ $runtime.fail();
92+ })()));
93+ return x => $0(Data$dEnum.toCharCode(x));
94+ }
95+};
96+const tabulateConstructor = dictTabulate => ({tabulate: f => dictTabulate.tabulate(x => f(x))});
97+const tabulateEither = dictTabulate => dictTabulate1 => (
98+ {
99+ tabulate: f => {
100+ const r = dictTabulate1.tabulate(x => f(Data$dEither.$Either("Right", x)));
101+ const l = dictTabulate.tabulate(x => f(Data$dEither.$Either("Left", x)));
102+ return v => {
103+ if (v.tag === "Left") { return l(v._1); }
104+ if (v.tag === "Right") { return r(v._1); }
105+ $runtime.fail();
106+ };
107+ }
108+ }
109+);
110+const tabulateMaybe = dictTabulate => (
111+ {
112+ tabulate: f => {
113+ const n = Data$dLazy.defer(v => f(Data$dMaybe.Nothing));
114+ const j = dictTabulate.tabulate(x => f(Data$dMaybe.$Maybe("Just", x)));
115+ return v => {
116+ if (v.tag === "Nothing") { return n; }
117+ if (v.tag === "Just") { return j(v._1); }
118+ $runtime.fail();
119+ };
120+ }
121+ }
122+);
123+const tabulateProduct = dictTabulate => dictTabulate1 => (
124+ {
125+ tabulate: f => {
126+ const f$p = dictTabulate.tabulate(a => dictTabulate1.tabulate(b => f(Data$dGeneric$dRep.$Product(a, b))));
127+ return v => {
128+ const $0 = v._2;
129+ const $1 = f$p(v._1);
130+ return Data$dLazy.defer(v$1 => Data$dLazy.force(Data$dLazy.force($1)($0)));
131+ };
132+ }
133+ }
134+);
135+const tabulateSum = dictTabulate => dictTabulate1 => (
136+ {
137+ tabulate: f => {
138+ const r = dictTabulate1.tabulate(x => f(Data$dGeneric$dRep.$Sum("Inr", x)));
139+ const l = dictTabulate.tabulate(x => f(Data$dGeneric$dRep.$Sum("Inl", x)));
140+ return v => {
141+ if (v.tag === "Inl") { return l(v._1); }
142+ if (v.tag === "Inr") { return r(v._1); }
143+ $runtime.fail();
144+ };
145+ }
146+ }
147+);
148+const tabulateTuple = dictTabulate => dictTabulate1 => (
149+ {
150+ tabulate: f => {
151+ const f$p = dictTabulate.tabulate(a => dictTabulate1.tabulate(b => f(Data$dTuple.$Tuple(a, b))));
152+ return v => {
153+ const $0 = v._2;
154+ const $1 = f$p(v._1);
155+ return Data$dLazy.defer(v$1 => Data$dLazy.force(Data$dLazy.force($1)($0)));
156+ };
157+ }
158+ }
159+);
160+const tabulateList = dictTabulate => (
161+ {
162+ tabulate: f => {
163+ const $0 = tabulateMaybe(tabulateTuple(dictTabulate)(tabulateList(dictTabulate))).tabulate(x => f((() => {
164+ if (x.tag === "Nothing") { return Data$dList$dTypes.Nil; }
165+ if (x.tag === "Just") { return Data$dList$dTypes.$List("Cons", x._1._1, x._1._2); }
166+ $runtime.fail();
167+ })()));
168+ return x => $0((() => {
169+ if (x.tag === "Nil") { return Data$dMaybe.Nothing; }
170+ if (x.tag === "Cons") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(x._1, x._2)); }
171+ $runtime.fail();
172+ })());
173+ }
174+ }
175+);
176+const tabulateArray = dictTabulate => (
177+ {
178+ tabulate: f => {
179+ const $0 = tabulateList(dictTabulate).tabulate(x => f(toUnfoldable(x)));
180+ return x => $0(fromFoldable(x));
181+ }
182+ }
183+);
184+const tabulate2 = /* #__PURE__ */ (() => tabulateArray(tabulateChar).tabulate)();
185+const tabulateString = {
186+ tabulate: f => {
187+ const $0 = tabulate2(x => f(Data$dString$dCodeUnits.fromCharArray(x)));
188+ return x => $0(Data$dString$dCodeUnits.toCharArray(x));
189+ }
190+};
191+const memoize = dictTabulate => f => {
192+ const $0 = dictTabulate.tabulate(f);
193+ return x => Data$dLazy.force($0(x));
194+};
195+const memoize2 = dictTabulate => dictTabulate1 => {
196+ const memoize1 = memoize(tabulateTuple(dictTabulate)(dictTabulate1));
197+ return f => {
198+ const $0 = memoize1(v => f(v._1)(v._2));
199+ return a => b => $0(Data$dTuple.$Tuple(a, b));
200+ };
201+};
202+const memoize3 = dictTabulate => dictTabulate1 => {
203+ const tabulateTuple2 = tabulateTuple(tabulateTuple(dictTabulate)(dictTabulate1));
204+ return dictTabulate2 => {
205+ const memoize1 = memoize(tabulateTuple2(dictTabulate2));
206+ return f => {
207+ const $0 = memoize1(v => f(v._1._1)(v._1._2)(v._2));
208+ return a => b => b$1 => $0(Data$dTuple.$Tuple(Data$dTuple.$Tuple(a, b), b$1));
209+ };
210+ };
211+};
212+const genericTabulate = dictGeneric => dictTabulate => f => {
213+ const $0 = dictTabulate.tabulate(x => f(dictGeneric.to(x)));
214+ return x => $0(dictGeneric.from(x));
215+};
216+export {
217+ $NatTrie,
218+ NatTrie,
219+ fromFoldable,
220+ genericTabulate,
221+ memoize,
222+ memoize2,
223+ memoize3,
224+ tabulate,
225+ tabulate2,
226+ tabulateArgument,
227+ tabulateArray,
228+ tabulateBool,
229+ tabulateChar,
230+ tabulateConstructor,
231+ tabulateEither,
232+ tabulateList,
233+ tabulateMaybe,
234+ tabulateNat,
235+ tabulateNoArguments,
236+ tabulateProduct,
237+ tabulateString,
238+ tabulateSum,
239+ tabulateTuple,
240+ tabulateUnit,
241+ toUnfoldable
242+};
output-es/Data.Function.Uncurried/foreign.jsnew file+218
@@ -0,0 +1,218 @@
1+// module Data.Function.Uncurried
2+
3+export const mkFn0 = function (fn) {
4+ return function () {
5+ return fn();
6+ };
7+};
8+
9+export const mkFn2 = function (fn) {
10+ /* jshint maxparams: 2 */
11+ return function (a, b) {
12+ return fn(a)(b);
13+ };
14+};
15+
16+export const mkFn3 = function (fn) {
17+ /* jshint maxparams: 3 */
18+ return function (a, b, c) {
19+ return fn(a)(b)(c);
20+ };
21+};
22+
23+export const mkFn4 = function (fn) {
24+ /* jshint maxparams: 4 */
25+ return function (a, b, c, d) {
26+ return fn(a)(b)(c)(d);
27+ };
28+};
29+
30+export const mkFn5 = function (fn) {
31+ /* jshint maxparams: 5 */
32+ return function (a, b, c, d, e) {
33+ return fn(a)(b)(c)(d)(e);
34+ };
35+};
36+
37+export const mkFn6 = function (fn) {
38+ /* jshint maxparams: 6 */
39+ return function (a, b, c, d, e, f) {
40+ return fn(a)(b)(c)(d)(e)(f);
41+ };
42+};
43+
44+export const mkFn7 = function (fn) {
45+ /* jshint maxparams: 7 */
46+ return function (a, b, c, d, e, f, g) {
47+ return fn(a)(b)(c)(d)(e)(f)(g);
48+ };
49+};
50+
51+export const mkFn8 = function (fn) {
52+ /* jshint maxparams: 8 */
53+ return function (a, b, c, d, e, f, g, h) {
54+ return fn(a)(b)(c)(d)(e)(f)(g)(h);
55+ };
56+};
57+
58+export const mkFn9 = function (fn) {
59+ /* jshint maxparams: 9 */
60+ return function (a, b, c, d, e, f, g, h, i) {
61+ return fn(a)(b)(c)(d)(e)(f)(g)(h)(i);
62+ };
63+};
64+
65+export const mkFn10 = function (fn) {
66+ /* jshint maxparams: 10 */
67+ return function (a, b, c, d, e, f, g, h, i, j) {
68+ return fn(a)(b)(c)(d)(e)(f)(g)(h)(i)(j);
69+ };
70+};
71+
72+export const runFn0 = function (fn) {
73+ return fn();
74+};
75+
76+export const runFn2 = function (fn) {
77+ return function (a) {
78+ return function (b) {
79+ return fn(a, b);
80+ };
81+ };
82+};
83+
84+export const runFn3 = function (fn) {
85+ return function (a) {
86+ return function (b) {
87+ return function (c) {
88+ return fn(a, b, c);
89+ };
90+ };
91+ };
92+};
93+
94+export const runFn4 = function (fn) {
95+ return function (a) {
96+ return function (b) {
97+ return function (c) {
98+ return function (d) {
99+ return fn(a, b, c, d);
100+ };
101+ };
102+ };
103+ };
104+};
105+
106+export const runFn5 = function (fn) {
107+ return function (a) {
108+ return function (b) {
109+ return function (c) {
110+ return function (d) {
111+ return function (e) {
112+ return fn(a, b, c, d, e);
113+ };
114+ };
115+ };
116+ };
117+ };
118+};
119+
120+export const runFn6 = function (fn) {
121+ return function (a) {
122+ return function (b) {
123+ return function (c) {
124+ return function (d) {
125+ return function (e) {
126+ return function (f) {
127+ return fn(a, b, c, d, e, f);
128+ };
129+ };
130+ };
131+ };
132+ };
133+ };
134+};
135+
136+export const runFn7 = function (fn) {
137+ return function (a) {
138+ return function (b) {
139+ return function (c) {
140+ return function (d) {
141+ return function (e) {
142+ return function (f) {
143+ return function (g) {
144+ return fn(a, b, c, d, e, f, g);
145+ };
146+ };
147+ };
148+ };
149+ };
150+ };
151+ };
152+};
153+
154+export const runFn8 = function (fn) {
155+ return function (a) {
156+ return function (b) {
157+ return function (c) {
158+ return function (d) {
159+ return function (e) {
160+ return function (f) {
161+ return function (g) {
162+ return function (h) {
163+ return fn(a, b, c, d, e, f, g, h);
164+ };
165+ };
166+ };
167+ };
168+ };
169+ };
170+ };
171+ };
172+};
173+
174+export const runFn9 = function (fn) {
175+ return function (a) {
176+ return function (b) {
177+ return function (c) {
178+ return function (d) {
179+ return function (e) {
180+ return function (f) {
181+ return function (g) {
182+ return function (h) {
183+ return function (i) {
184+ return fn(a, b, c, d, e, f, g, h, i);
185+ };
186+ };
187+ };
188+ };
189+ };
190+ };
191+ };
192+ };
193+ };
194+};
195+
196+export const runFn10 = function (fn) {
197+ return function (a) {
198+ return function (b) {
199+ return function (c) {
200+ return function (d) {
201+ return function (e) {
202+ return function (f) {
203+ return function (g) {
204+ return function (h) {
205+ return function (i) {
206+ return function (j) {
207+ return fn(a, b, c, d, e, f, g, h, i, j);
208+ };
209+ };
210+ };
211+ };
212+ };
213+ };
214+ };
215+ };
216+ };
217+ };
218+};
output-es/Data.Function.Uncurried/index.jsnew file+5
@@ -0,0 +1,5 @@
1+import {mkFn0, mkFn10, mkFn2, mkFn3, mkFn4, mkFn5, mkFn6, mkFn7, mkFn8, mkFn9, runFn0, runFn10, runFn2, runFn3, runFn4, runFn5, runFn6, runFn7, runFn8, runFn9} from "./foreign.js";
2+const runFn1 = f => f;
3+const mkFn1 = f => f;
4+export {mkFn1, runFn1};
5+export * from "./foreign.js";
output-es/Data.Function/index.jsnew file+23
@@ -0,0 +1,23 @@
1+const on = f => g => x => y => f(g(x))(g(y));
2+const flip = f => b => a => f(a)(b);
3+const $$const = a => v => a;
4+const applyN = f => {
5+ const go = go$a0$copy => go$a1$copy => {
6+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
7+ while (go$c) {
8+ const n = go$a0, acc = go$a1;
9+ if (n <= 0) {
10+ go$c = false;
11+ go$r = acc;
12+ continue;
13+ }
14+ go$a0 = n - 1 | 0;
15+ go$a1 = f(acc);
16+ }
17+ return go$r;
18+ };
19+ return go;
20+};
21+const applyFlipped = x => f => f(x);
22+const apply = f => x => f(x);
23+export {apply, applyFlipped, applyN, $$const as const, flip, on};
output-es/Data.Functor.App/index.jsnew file+87
@@ -0,0 +1,87 @@
1+import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
2+const App = x => x;
3+const showApp = dictShow => ({show: v => "(App " + dictShow.show(v) + ")"});
4+const semigroupApp = dictApply => dictSemigroup => {
5+ const append1 = dictSemigroup.append;
6+ return {append: v => v1 => dictApply.apply(dictApply.Functor0().map(append1)(v))(v1)};
7+};
8+const plusApp = dictPlus => dictPlus;
9+const newtypeApp = {Coercible0: () => {}};
10+const monoidApp = dictApplicative => {
11+ const $0 = dictApplicative.Apply0();
12+ return dictMonoid => {
13+ const append1 = dictMonoid.Semigroup0().append;
14+ const semigroupApp2 = {append: v => v1 => $0.apply($0.Functor0().map(append1)(v))(v1)};
15+ return {mempty: dictApplicative.pure(dictMonoid.mempty), Semigroup0: () => semigroupApp2};
16+ };
17+};
18+const monadPlusApp = dictMonadPlus => dictMonadPlus;
19+const monadApp = dictMonad => dictMonad;
20+const lazyApp = dictLazy => dictLazy;
21+const hoistLowerApp = Unsafe$dCoerce.unsafeCoerce;
22+const hoistLiftApp = Unsafe$dCoerce.unsafeCoerce;
23+const hoistApp = f => v => f(v);
24+const functorApp = dictFunctor => dictFunctor;
25+const extendApp = dictExtend => dictExtend;
26+const eqApp = dictEq1 => dictEq => {
27+ const eq11 = dictEq1.eq1(dictEq);
28+ return {eq: x => y => eq11(x)(y)};
29+};
30+const ordApp = dictOrd1 => {
31+ const $0 = dictOrd1.Eq10();
32+ return dictOrd => {
33+ const compare11 = dictOrd1.compare1(dictOrd);
34+ const eq11 = $0.eq1(dictOrd.Eq0());
35+ const eqApp2 = {eq: x => y => eq11(x)(y)};
36+ return {compare: x => y => compare11(x)(y), Eq0: () => eqApp2};
37+ };
38+};
39+const eq1App = dictEq1 => ({eq1: dictEq => dictEq1.eq1(dictEq)});
40+const ord1App = dictOrd1 => {
41+ const $0 = dictOrd1.Eq10();
42+ const $1 = dictOrd1.Eq10();
43+ const eq1App1 = {eq1: dictEq => $1.eq1(dictEq)};
44+ return {
45+ compare1: dictOrd => {
46+ const compare11 = dictOrd1.compare1(dictOrd);
47+ const eq11 = $0.eq1(dictOrd.Eq0());
48+ return (() => {
49+ const eqApp2 = {eq: x => y => eq11(x)(y)};
50+ return {compare: x => y => compare11(x)(y), Eq0: () => eqApp2};
51+ })().compare;
52+ },
53+ Eq10: () => eq1App1
54+ };
55+};
56+const comonadApp = dictComonad => dictComonad;
57+const bindApp = dictBind => dictBind;
58+const applyApp = dictApply => dictApply;
59+const applicativeApp = dictApplicative => dictApplicative;
60+const alternativeApp = dictAlternative => dictAlternative;
61+const altApp = dictAlt => dictAlt;
62+export {
63+ App,
64+ altApp,
65+ alternativeApp,
66+ applicativeApp,
67+ applyApp,
68+ bindApp,
69+ comonadApp,
70+ eq1App,
71+ eqApp,
72+ extendApp,
73+ functorApp,
74+ hoistApp,
75+ hoistLiftApp,
76+ hoistLowerApp,
77+ lazyApp,
78+ monadApp,
79+ monadPlusApp,
80+ monoidApp,
81+ newtypeApp,
82+ ord1App,
83+ ordApp,
84+ plusApp,
85+ semigroupApp,
86+ showApp
87+};
output-es/Data.Functor.Clown/index.jsnew file+24
@@ -0,0 +1,24 @@
1+const Clown = x => x;
2+const showClown = dictShow => ({show: v => "(Clown " + dictShow.show(v) + ")"});
3+const profunctorClown = dictContravariant => ({dimap: f => v => v1 => dictContravariant.cmap(f)(v1)});
4+const ordClown = dictOrd => dictOrd;
5+const newtypeClown = {Coercible0: () => {}};
6+const hoistClown = f => v => f(v);
7+const functorClown = {map: v => v1 => v1};
8+const eqClown = dictEq => dictEq;
9+const bifunctorClown = dictFunctor => ({bimap: f => v => v1 => dictFunctor.map(f)(v1)});
10+const biapplyClown = dictApply => {
11+ const $0 = dictApply.Functor0();
12+ const bifunctorClown1 = {bimap: f => v => v1 => $0.map(f)(v1)};
13+ return {biapply: v => v1 => dictApply.apply(v)(v1), Bifunctor0: () => bifunctorClown1};
14+};
15+const biapplicativeClown = dictApplicative => {
16+ const $0 = dictApplicative.Apply0();
17+ const $1 = $0.Functor0();
18+ const biapplyClown1 = (() => {
19+ const bifunctorClown1 = {bimap: f => v => v1 => $1.map(f)(v1)};
20+ return {biapply: v => v1 => $0.apply(v)(v1), Bifunctor0: () => bifunctorClown1};
21+ })();
22+ return {bipure: a => v => dictApplicative.pure(a), Biapply0: () => biapplyClown1};
23+};
24+export {Clown, biapplicativeClown, biapplyClown, bifunctorClown, eqClown, functorClown, hoistClown, newtypeClown, ordClown, profunctorClown, showClown};
output-es/Data.Functor.Compose/index.jsnew file+131
@@ -0,0 +1,131 @@
1+const Compose = x => x;
2+const showCompose = dictShow => ({show: v => "(Compose " + dictShow.show(v) + ")"});
3+const newtypeCompose = {Coercible0: () => {}};
4+const functorCompose = dictFunctor => dictFunctor1 => ({map: f => v => dictFunctor.map(dictFunctor1.map(f))(v)});
5+const eqCompose = dictEq1 => dictEq11 => dictEq => {
6+ const eq11 = dictEq1.eq1((() => {
7+ const eq11 = dictEq11.eq1(dictEq);
8+ return {eq: x => y => eq11(x)(y)};
9+ })());
10+ return {eq: v => v1 => eq11(v)(v1)};
11+};
12+const ordCompose = dictOrd1 => {
13+ const $0 = dictOrd1.Eq10();
14+ return dictOrd11 => {
15+ const $1 = dictOrd11.Eq10();
16+ const $2 = dictOrd11.Eq10();
17+ return dictOrd => {
18+ const compare11 = dictOrd1.compare1((() => {
19+ const compare11 = dictOrd11.compare1(dictOrd);
20+ const eq11 = $1.eq1(dictOrd.Eq0());
21+ const eqApp2 = {eq: x => y => eq11(x)(y)};
22+ return {compare: x => y => compare11(x)(y), Eq0: () => eqApp2};
23+ })());
24+ const eq11 = $0.eq1((() => {
25+ const eq11 = $2.eq1(dictOrd.Eq0());
26+ return {eq: x => y => eq11(x)(y)};
27+ })());
28+ const eqCompose3 = {eq: v => v1 => eq11(v)(v1)};
29+ return {compare: v => v1 => compare11(v)(v1), Eq0: () => eqCompose3};
30+ };
31+ };
32+};
33+const eq1Compose = dictEq1 => dictEq11 => (
34+ {
35+ eq1: dictEq => dictEq1.eq1((() => {
36+ const eq11 = dictEq11.eq1(dictEq);
37+ return {eq: x => y => eq11(x)(y)};
38+ })())
39+ }
40+);
41+const ord1Compose = dictOrd1 => {
42+ const ordCompose1 = ordCompose(dictOrd1);
43+ const $0 = dictOrd1.Eq10();
44+ return dictOrd11 => {
45+ const ordCompose2 = ordCompose1(dictOrd11);
46+ const $1 = dictOrd11.Eq10();
47+ const eq1Compose2 = {
48+ eq1: dictEq => $0.eq1((() => {
49+ const eq11 = $1.eq1(dictEq);
50+ return {eq: x => y => eq11(x)(y)};
51+ })())
52+ };
53+ return {compare1: dictOrd => ordCompose2(dictOrd).compare, Eq10: () => eq1Compose2};
54+ };
55+};
56+const bihoistCompose = dictFunctor => natF => natG => v => natF(dictFunctor.map(natG)(v));
57+const applyCompose = dictApply => {
58+ const Functor0 = dictApply.Functor0();
59+ return dictApply1 => {
60+ const apply1 = dictApply1.apply;
61+ const $0 = dictApply1.Functor0();
62+ const functorCompose2 = {map: f => v => Functor0.map($0.map(f))(v)};
63+ return {apply: v => v1 => dictApply.apply(Functor0.map(apply1)(v))(v1), Functor0: () => functorCompose2};
64+ };
65+};
66+const applicativeCompose = dictApplicative => {
67+ const $0 = dictApplicative.Apply0();
68+ const Functor0 = $0.Functor0();
69+ return dictApplicative1 => {
70+ const $1 = dictApplicative1.Apply0();
71+ const apply1 = $1.apply;
72+ const applyCompose2 = (() => {
73+ const $2 = $1.Functor0();
74+ const functorCompose2 = {map: f => v => Functor0.map($2.map(f))(v)};
75+ return {apply: v => v1 => $0.apply(Functor0.map(apply1)(v))(v1), Functor0: () => functorCompose2};
76+ })();
77+ return {pure: x => dictApplicative.pure(dictApplicative1.pure(x)), Apply0: () => applyCompose2};
78+ };
79+};
80+const altCompose = dictAlt => {
81+ const $0 = dictAlt.Functor0();
82+ return dictFunctor => {
83+ const functorCompose2 = {map: f => v => $0.map(dictFunctor.map(f))(v)};
84+ return {alt: v => v1 => dictAlt.alt(v)(v1), Functor0: () => functorCompose2};
85+ };
86+};
87+const plusCompose = dictPlus => {
88+ const empty = dictPlus.empty;
89+ const $0 = dictPlus.Alt0();
90+ const $1 = $0.Functor0();
91+ return dictFunctor => {
92+ const functorCompose2 = {map: f => v => $1.map(dictFunctor.map(f))(v)};
93+ const altCompose2 = {alt: v => v1 => $0.alt(v)(v1), Functor0: () => functorCompose2};
94+ return {empty, Alt0: () => altCompose2};
95+ };
96+};
97+const alternativeCompose = dictAlternative => {
98+ const applicativeCompose1 = applicativeCompose(dictAlternative.Applicative0());
99+ const $0 = dictAlternative.Plus1();
100+ const empty = $0.empty;
101+ const plusCompose1 = (() => {
102+ const $1 = $0.Alt0();
103+ const $2 = $1.Functor0();
104+ return dictFunctor => {
105+ const functorCompose2 = {map: f => v => $2.map(dictFunctor.map(f))(v)};
106+ const altCompose2 = {alt: v => v1 => $1.alt(v)(v1), Functor0: () => functorCompose2};
107+ return {empty, Alt0: () => altCompose2};
108+ };
109+ })();
110+ return dictApplicative => {
111+ const applicativeCompose2 = applicativeCompose1(dictApplicative);
112+ const plusCompose2 = plusCompose1(dictApplicative.Apply0().Functor0());
113+ return {Applicative0: () => applicativeCompose2, Plus1: () => plusCompose2};
114+ };
115+};
116+export {
117+ Compose,
118+ altCompose,
119+ alternativeCompose,
120+ applicativeCompose,
121+ applyCompose,
122+ bihoistCompose,
123+ eq1Compose,
124+ eqCompose,
125+ functorCompose,
126+ newtypeCompose,
127+ ord1Compose,
128+ ordCompose,
129+ plusCompose,
130+ showCompose
131+};
output-es/Data.Functor.Contravariant/index.jsnew file+7
@@ -0,0 +1,7 @@
1+import * as Data$dVoid from "../Data.Void/index.js";
2+const contravariantConst = {cmap: v => v1 => v1};
3+const cmap = dict => dict.cmap;
4+const cmapFlipped = dictContravariant => x => f => dictContravariant.cmap(f)(x);
5+const coerce = dictContravariant => dictFunctor => a => dictFunctor.map(Data$dVoid.absurd)(dictContravariant.cmap(Data$dVoid.absurd)(a));
6+const imapC = dictContravariant => v => f => dictContravariant.cmap(f);
7+export {cmap, cmapFlipped, coerce, contravariantConst, imapC};
output-es/Data.Functor.Coproduct.Inject/index.jsnew file+25
@@ -0,0 +1,25 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEither from "../Data.Either/index.js";
3+import * as Data$dMaybe from "../Data.Maybe/index.js";
4+const prj = dict => dict.prj;
5+const injectReflexive = {inj: x => x, prj: Data$dMaybe.Just};
6+const injectLeft = {
7+ inj: x => Data$dEither.$Either("Left", x),
8+ prj: v2 => {
9+ if (v2.tag === "Left") { return Data$dMaybe.$Maybe("Just", v2._1); }
10+ if (v2.tag === "Right") { return Data$dMaybe.Nothing; }
11+ $runtime.fail();
12+ }
13+};
14+const inj = dict => dict.inj;
15+const injectRight = dictInject => (
16+ {
17+ inj: x => Data$dEither.$Either("Right", dictInject.inj(x)),
18+ prj: v2 => {
19+ if (v2.tag === "Left") { return Data$dMaybe.Nothing; }
20+ if (v2.tag === "Right") { return dictInject.prj(v2._1); }
21+ $runtime.fail();
22+ }
23+ }
24+);
25+export {inj, injectLeft, injectReflexive, injectRight, prj};
output-es/Data.Functor.Coproduct.Nested/index.jsnew file+433
@@ -0,0 +1,433 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEither from "../Data.Either/index.js";
3+import * as Data$dFunctor$dCoproduct from "../Data.Functor.Coproduct/index.js";
4+const in9 = v => Data$dEither.$Either(
5+ "Right",
6+ Data$dEither.$Either(
7+ "Right",
8+ Data$dEither.$Either(
9+ "Right",
10+ Data$dEither.$Either(
11+ "Right",
12+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
13+ )
14+ )
15+ )
16+);
17+const in8 = v => Data$dEither.$Either(
18+ "Right",
19+ Data$dEither.$Either(
20+ "Right",
21+ Data$dEither.$Either(
22+ "Right",
23+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
24+ )
25+ )
26+);
27+const in7 = v => Data$dEither.$Either(
28+ "Right",
29+ Data$dEither.$Either(
30+ "Right",
31+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
32+ )
33+);
34+const in6 = v => Data$dEither.$Either(
35+ "Right",
36+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
37+);
38+const in5 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))));
39+const in4 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v))));
40+const in3 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)));
41+const in2 = v => Data$dEither.$Either("Right", Data$dEither.$Either("Left", v));
42+const in10 = v => Data$dEither.$Either(
43+ "Right",
44+ Data$dEither.$Either(
45+ "Right",
46+ Data$dEither.$Either(
47+ "Right",
48+ Data$dEither.$Either(
49+ "Right",
50+ Data$dEither.$Either(
51+ "Right",
52+ Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Right", Data$dEither.$Either("Left", v)))))
53+ )
54+ )
55+ )
56+ )
57+);
58+const in1 = Data$dFunctor$dCoproduct.left;
59+const coproduct9 = a => b => c => d => e => f => g => h => i => y => {
60+ if (y.tag === "Left") { return a(y._1); }
61+ if (y.tag === "Right") {
62+ if (y._1.tag === "Left") { return b(y._1._1); }
63+ if (y._1.tag === "Right") {
64+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
65+ if (y._1._1.tag === "Right") {
66+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
67+ if (y._1._1._1.tag === "Right") {
68+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
69+ if (y._1._1._1._1.tag === "Right") {
70+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
71+ if (y._1._1._1._1._1.tag === "Right") {
72+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
73+ if (y._1._1._1._1._1._1.tag === "Right") {
74+ if (y._1._1._1._1._1._1._1.tag === "Left") { return h(y._1._1._1._1._1._1._1._1); }
75+ if (y._1._1._1._1._1._1._1.tag === "Right") {
76+ if (y._1._1._1._1._1._1._1._1.tag === "Left") { return i(y._1._1._1._1._1._1._1._1._1); }
77+ if (y._1._1._1._1._1._1._1._1.tag === "Right") {
78+ const spin = spin$a0$copy => {
79+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
80+ while (spin$c) {
81+ const v = spin$a0;
82+ spin$a0 = v;
83+ }
84+ return spin$r;
85+ };
86+ return spin(y._1._1._1._1._1._1._1._1._1);
87+ }
88+ }
89+ }
90+ }
91+ }
92+ }
93+ }
94+ }
95+ }
96+ $runtime.fail();
97+};
98+const coproduct8 = a => b => c => d => e => f => g => h => y => {
99+ if (y.tag === "Left") { return a(y._1); }
100+ if (y.tag === "Right") {
101+ if (y._1.tag === "Left") { return b(y._1._1); }
102+ if (y._1.tag === "Right") {
103+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
104+ if (y._1._1.tag === "Right") {
105+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
106+ if (y._1._1._1.tag === "Right") {
107+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
108+ if (y._1._1._1._1.tag === "Right") {
109+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
110+ if (y._1._1._1._1._1.tag === "Right") {
111+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
112+ if (y._1._1._1._1._1._1.tag === "Right") {
113+ if (y._1._1._1._1._1._1._1.tag === "Left") { return h(y._1._1._1._1._1._1._1._1); }
114+ if (y._1._1._1._1._1._1._1.tag === "Right") {
115+ const spin = spin$a0$copy => {
116+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
117+ while (spin$c) {
118+ const v = spin$a0;
119+ spin$a0 = v;
120+ }
121+ return spin$r;
122+ };
123+ return spin(y._1._1._1._1._1._1._1._1);
124+ }
125+ }
126+ }
127+ }
128+ }
129+ }
130+ }
131+ }
132+ $runtime.fail();
133+};
134+const coproduct7 = a => b => c => d => e => f => g => y => {
135+ if (y.tag === "Left") { return a(y._1); }
136+ if (y.tag === "Right") {
137+ if (y._1.tag === "Left") { return b(y._1._1); }
138+ if (y._1.tag === "Right") {
139+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
140+ if (y._1._1.tag === "Right") {
141+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
142+ if (y._1._1._1.tag === "Right") {
143+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
144+ if (y._1._1._1._1.tag === "Right") {
145+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
146+ if (y._1._1._1._1._1.tag === "Right") {
147+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
148+ if (y._1._1._1._1._1._1.tag === "Right") {
149+ const spin = spin$a0$copy => {
150+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
151+ while (spin$c) {
152+ const v = spin$a0;
153+ spin$a0 = v;
154+ }
155+ return spin$r;
156+ };
157+ return spin(y._1._1._1._1._1._1._1);
158+ }
159+ }
160+ }
161+ }
162+ }
163+ }
164+ }
165+ $runtime.fail();
166+};
167+const coproduct6 = a => b => c => d => e => f => y => {
168+ if (y.tag === "Left") { return a(y._1); }
169+ if (y.tag === "Right") {
170+ if (y._1.tag === "Left") { return b(y._1._1); }
171+ if (y._1.tag === "Right") {
172+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
173+ if (y._1._1.tag === "Right") {
174+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
175+ if (y._1._1._1.tag === "Right") {
176+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
177+ if (y._1._1._1._1.tag === "Right") {
178+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
179+ if (y._1._1._1._1._1.tag === "Right") {
180+ const spin = spin$a0$copy => {
181+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
182+ while (spin$c) {
183+ const v = spin$a0;
184+ spin$a0 = v;
185+ }
186+ return spin$r;
187+ };
188+ return spin(y._1._1._1._1._1._1);
189+ }
190+ }
191+ }
192+ }
193+ }
194+ }
195+ $runtime.fail();
196+};
197+const coproduct5 = a => b => c => d => e => y => {
198+ if (y.tag === "Left") { return a(y._1); }
199+ if (y.tag === "Right") {
200+ if (y._1.tag === "Left") { return b(y._1._1); }
201+ if (y._1.tag === "Right") {
202+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
203+ if (y._1._1.tag === "Right") {
204+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
205+ if (y._1._1._1.tag === "Right") {
206+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
207+ if (y._1._1._1._1.tag === "Right") {
208+ const spin = spin$a0$copy => {
209+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
210+ while (spin$c) {
211+ const v = spin$a0;
212+ spin$a0 = v;
213+ }
214+ return spin$r;
215+ };
216+ return spin(y._1._1._1._1._1);
217+ }
218+ }
219+ }
220+ }
221+ }
222+ $runtime.fail();
223+};
224+const coproduct4 = a => b => c => d => y => {
225+ if (y.tag === "Left") { return a(y._1); }
226+ if (y.tag === "Right") {
227+ if (y._1.tag === "Left") { return b(y._1._1); }
228+ if (y._1.tag === "Right") {
229+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
230+ if (y._1._1.tag === "Right") {
231+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
232+ if (y._1._1._1.tag === "Right") {
233+ const spin = spin$a0$copy => {
234+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
235+ while (spin$c) {
236+ const v = spin$a0;
237+ spin$a0 = v;
238+ }
239+ return spin$r;
240+ };
241+ return spin(y._1._1._1._1);
242+ }
243+ }
244+ }
245+ }
246+ $runtime.fail();
247+};
248+const coproduct3 = a => b => c => y => {
249+ if (y.tag === "Left") { return a(y._1); }
250+ if (y.tag === "Right") {
251+ if (y._1.tag === "Left") { return b(y._1._1); }
252+ if (y._1.tag === "Right") {
253+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
254+ if (y._1._1.tag === "Right") {
255+ const spin = spin$a0$copy => {
256+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
257+ while (spin$c) {
258+ const v = spin$a0;
259+ spin$a0 = v;
260+ }
261+ return spin$r;
262+ };
263+ return spin(y._1._1._1);
264+ }
265+ }
266+ }
267+ $runtime.fail();
268+};
269+const coproduct2 = a => b => y => {
270+ if (y.tag === "Left") { return a(y._1); }
271+ if (y.tag === "Right") {
272+ if (y._1.tag === "Left") { return b(y._1._1); }
273+ if (y._1.tag === "Right") {
274+ const spin = spin$a0$copy => {
275+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
276+ while (spin$c) {
277+ const v = spin$a0;
278+ spin$a0 = v;
279+ }
280+ return spin$r;
281+ };
282+ return spin(y._1._1);
283+ }
284+ }
285+ $runtime.fail();
286+};
287+const coproduct10 = a => b => c => d => e => f => g => h => i => j => y => {
288+ if (y.tag === "Left") { return a(y._1); }
289+ if (y.tag === "Right") {
290+ if (y._1.tag === "Left") { return b(y._1._1); }
291+ if (y._1.tag === "Right") {
292+ if (y._1._1.tag === "Left") { return c(y._1._1._1); }
293+ if (y._1._1.tag === "Right") {
294+ if (y._1._1._1.tag === "Left") { return d(y._1._1._1._1); }
295+ if (y._1._1._1.tag === "Right") {
296+ if (y._1._1._1._1.tag === "Left") { return e(y._1._1._1._1._1); }
297+ if (y._1._1._1._1.tag === "Right") {
298+ if (y._1._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1._1); }
299+ if (y._1._1._1._1._1.tag === "Right") {
300+ if (y._1._1._1._1._1._1.tag === "Left") { return g(y._1._1._1._1._1._1._1); }
301+ if (y._1._1._1._1._1._1.tag === "Right") {
302+ if (y._1._1._1._1._1._1._1.tag === "Left") { return h(y._1._1._1._1._1._1._1._1); }
303+ if (y._1._1._1._1._1._1._1.tag === "Right") {
304+ if (y._1._1._1._1._1._1._1._1.tag === "Left") { return i(y._1._1._1._1._1._1._1._1._1); }
305+ if (y._1._1._1._1._1._1._1._1.tag === "Right") {
306+ if (y._1._1._1._1._1._1._1._1._1.tag === "Left") { return j(y._1._1._1._1._1._1._1._1._1._1); }
307+ if (y._1._1._1._1._1._1._1._1._1.tag === "Right") {
308+ const spin = spin$a0$copy => {
309+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
310+ while (spin$c) {
311+ const v = spin$a0;
312+ spin$a0 = v;
313+ }
314+ return spin$r;
315+ };
316+ return spin(y._1._1._1._1._1._1._1._1._1._1);
317+ }
318+ }
319+ }
320+ }
321+ }
322+ }
323+ }
324+ }
325+ }
326+ }
327+ $runtime.fail();
328+};
329+const coproduct1 = y => {
330+ if (y.tag === "Left") { return y._1; }
331+ if (y.tag === "Right") {
332+ const spin = spin$a0$copy => {
333+ let spin$a0 = spin$a0$copy, spin$c = true, spin$r;
334+ while (spin$c) {
335+ const v = spin$a0;
336+ spin$a0 = v;
337+ }
338+ return spin$r;
339+ };
340+ return spin(y._1);
341+ }
342+ $runtime.fail();
343+};
344+const at9 = b => f => y => {
345+ if (
346+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1._1.tag === "Left"
347+ ) {
348+ return f(y._1._1._1._1._1._1._1._1._1);
349+ }
350+ return b;
351+};
352+const at8 = b => f => y => {
353+ if (
354+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1.tag === "Left"
355+ ) {
356+ return f(y._1._1._1._1._1._1._1._1);
357+ }
358+ return b;
359+};
360+const at7 = b => f => y => {
361+ if (
362+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Left"
363+ ) {
364+ return f(y._1._1._1._1._1._1._1);
365+ }
366+ return b;
367+};
368+const at6 = b => f => y => {
369+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Left") {
370+ return f(y._1._1._1._1._1._1);
371+ }
372+ return b;
373+};
374+const at5 = b => f => y => {
375+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Left") { return f(y._1._1._1._1._1); }
376+ return b;
377+};
378+const at4 = b => f => y => {
379+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Left") { return f(y._1._1._1._1); }
380+ return b;
381+};
382+const at3 = b => f => y => {
383+ if (y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Left") { return f(y._1._1._1); }
384+ return b;
385+};
386+const at2 = b => f => y => {
387+ if (y.tag === "Right" && y._1.tag === "Left") { return f(y._1._1); }
388+ return b;
389+};
390+const at10 = b => f => y => {
391+ if (
392+ y.tag === "Right" && y._1.tag === "Right" && y._1._1.tag === "Right" && y._1._1._1.tag === "Right" && y._1._1._1._1.tag === "Right" && y._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1._1.tag === "Right" && y._1._1._1._1._1._1._1._1._1.tag === "Left"
393+ ) {
394+ return f(y._1._1._1._1._1._1._1._1._1._1);
395+ }
396+ return b;
397+};
398+const at1 = b => f => y => {
399+ if (y.tag === "Left") { return f(y._1); }
400+ return b;
401+};
402+export {
403+ at1,
404+ at10,
405+ at2,
406+ at3,
407+ at4,
408+ at5,
409+ at6,
410+ at7,
411+ at8,
412+ at9,
413+ coproduct1,
414+ coproduct10,
415+ coproduct2,
416+ coproduct3,
417+ coproduct4,
418+ coproduct5,
419+ coproduct6,
420+ coproduct7,
421+ coproduct8,
422+ coproduct9,
423+ in1,
424+ in10,
425+ in2,
426+ in3,
427+ in4,
428+ in5,
429+ in6,
430+ in7,
431+ in8,
432+ in9
433+};
output-es/Data.Functor.Coproduct/index.jsnew file+171
@@ -0,0 +1,171 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEither from "../Data.Either/index.js";
3+import * as Data$dOrdering from "../Data.Ordering/index.js";
4+const Coproduct = x => x;
5+const showCoproduct = dictShow => dictShow1 => (
6+ {
7+ show: v => {
8+ if (v.tag === "Left") { return "(left " + dictShow.show(v._1) + ")"; }
9+ if (v.tag === "Right") { return "(right " + dictShow1.show(v._1) + ")"; }
10+ $runtime.fail();
11+ }
12+ }
13+);
14+const right = ga => Data$dEither.$Either("Right", ga);
15+const newtypeCoproduct = {Coercible0: () => {}};
16+const left = fa => Data$dEither.$Either("Left", fa);
17+const functorCoproduct = dictFunctor => dictFunctor1 => (
18+ {
19+ map: f => v => {
20+ const $0 = dictFunctor.map(f);
21+ const $1 = dictFunctor1.map(f);
22+ if (v.tag === "Left") { return Data$dEither.$Either("Left", $0(v._1)); }
23+ if (v.tag === "Right") { return Data$dEither.$Either("Right", $1(v._1)); }
24+ $runtime.fail();
25+ }
26+ }
27+);
28+const eq1Coproduct = dictEq1 => dictEq11 => (
29+ {
30+ eq1: dictEq => {
31+ const eq12 = dictEq1.eq1(dictEq);
32+ const eq13 = dictEq11.eq1(dictEq);
33+ return v => v1 => {
34+ if (v.tag === "Left") { return v1.tag === "Left" && eq12(v._1)(v1._1); }
35+ return v.tag === "Right" && v1.tag === "Right" && eq13(v._1)(v1._1);
36+ };
37+ }
38+ }
39+);
40+const eqCoproduct = dictEq1 => dictEq11 => dictEq => (
41+ {
42+ eq: (() => {
43+ const eq12 = dictEq1.eq1(dictEq);
44+ const eq13 = dictEq11.eq1(dictEq);
45+ return v => v1 => {
46+ if (v.tag === "Left") { return v1.tag === "Left" && eq12(v._1)(v1._1); }
47+ return v.tag === "Right" && v1.tag === "Right" && eq13(v._1)(v1._1);
48+ };
49+ })()
50+ }
51+);
52+const ord1Coproduct = dictOrd1 => {
53+ const $0 = dictOrd1.Eq10();
54+ return dictOrd11 => {
55+ const $1 = dictOrd11.Eq10();
56+ const eq1Coproduct2 = {
57+ eq1: dictEq => {
58+ const eq12 = $0.eq1(dictEq);
59+ const eq13 = $1.eq1(dictEq);
60+ return v => v1 => {
61+ if (v.tag === "Left") { return v1.tag === "Left" && eq12(v._1)(v1._1); }
62+ return v.tag === "Right" && v1.tag === "Right" && eq13(v._1)(v1._1);
63+ };
64+ }
65+ };
66+ return {
67+ compare1: dictOrd => {
68+ const compare12 = dictOrd1.compare1(dictOrd);
69+ const compare13 = dictOrd11.compare1(dictOrd);
70+ return v => v1 => {
71+ if (v.tag === "Left") {
72+ if (v1.tag === "Left") { return compare12(v._1)(v1._1); }
73+ return Data$dOrdering.LT;
74+ }
75+ if (v1.tag === "Left") { return Data$dOrdering.GT; }
76+ if (v.tag === "Right" && v1.tag === "Right") { return compare13(v._1)(v1._1); }
77+ $runtime.fail();
78+ };
79+ },
80+ Eq10: () => eq1Coproduct2
81+ };
82+ };
83+};
84+const ordCoproduct = dictOrd1 => {
85+ const ord1Coproduct1 = ord1Coproduct(dictOrd1);
86+ const $0 = dictOrd1.Eq10();
87+ return dictOrd11 => {
88+ const $1 = dictOrd11.Eq10();
89+ return dictOrd => {
90+ const $2 = dictOrd.Eq0();
91+ const eqCoproduct3 = {
92+ eq: (() => {
93+ const eq12 = $0.eq1($2);
94+ const eq13 = $1.eq1($2);
95+ return v => v1 => {
96+ if (v.tag === "Left") { return v1.tag === "Left" && eq12(v._1)(v1._1); }
97+ return v.tag === "Right" && v1.tag === "Right" && eq13(v._1)(v1._1);
98+ };
99+ })()
100+ };
101+ return {compare: ord1Coproduct1(dictOrd11).compare1(dictOrd), Eq0: () => eqCoproduct3};
102+ };
103+ };
104+};
105+const coproduct = v => v1 => v2 => {
106+ if (v2.tag === "Left") { return v(v2._1); }
107+ if (v2.tag === "Right") { return v1(v2._1); }
108+ $runtime.fail();
109+};
110+const extendCoproduct = dictExtend => {
111+ const $0 = dictExtend.Functor0();
112+ return dictExtend1 => {
113+ const $1 = dictExtend1.Functor0();
114+ const functorCoproduct2 = {
115+ map: f => v => {
116+ const $2 = $0.map(f);
117+ const $3 = $1.map(f);
118+ if (v.tag === "Left") { return Data$dEither.$Either("Left", $2(v._1)); }
119+ if (v.tag === "Right") { return Data$dEither.$Either("Right", $3(v._1)); }
120+ $runtime.fail();
121+ }
122+ };
123+ return {
124+ extend: f => {
125+ const $2 = dictExtend.extend(x => f(Data$dEither.$Either("Left", x)));
126+ const $3 = dictExtend1.extend(x => f(Data$dEither.$Either("Right", x)));
127+ return v2 => {
128+ if (v2.tag === "Left") { return Data$dEither.$Either("Left", $2(v2._1)); }
129+ if (v2.tag === "Right") { return Data$dEither.$Either("Right", $3(v2._1)); }
130+ $runtime.fail();
131+ };
132+ },
133+ Functor0: () => functorCoproduct2
134+ };
135+ };
136+};
137+const comonadCoproduct = dictComonad => {
138+ const extendCoproduct1 = extendCoproduct(dictComonad.Extend0());
139+ return dictComonad1 => {
140+ const extendCoproduct2 = extendCoproduct1(dictComonad1.Extend0());
141+ return {
142+ extract: v2 => {
143+ if (v2.tag === "Left") { return dictComonad.extract(v2._1); }
144+ if (v2.tag === "Right") { return dictComonad1.extract(v2._1); }
145+ $runtime.fail();
146+ },
147+ Extend0: () => extendCoproduct2
148+ };
149+ };
150+};
151+const bihoistCoproduct = natF => natG => v => {
152+ if (v.tag === "Left") { return Data$dEither.$Either("Left", natF(v._1)); }
153+ if (v.tag === "Right") { return Data$dEither.$Either("Right", natG(v._1)); }
154+ $runtime.fail();
155+};
156+export {
157+ Coproduct,
158+ bihoistCoproduct,
159+ comonadCoproduct,
160+ coproduct,
161+ eq1Coproduct,
162+ eqCoproduct,
163+ extendCoproduct,
164+ functorCoproduct,
165+ left,
166+ newtypeCoproduct,
167+ ord1Coproduct,
168+ ordCoproduct,
169+ right,
170+ showCoproduct
171+};
output-es/Data.Functor.Costar/index.jsnew file+82
@@ -0,0 +1,82 @@
1+import * as Data$dTuple from "../Data.Tuple/index.js";
2+const Costar = x => x;
3+const semigroupoidCostar = dictExtend => ({compose: v => v1 => w => v(dictExtend.extend(v1)(w))});
4+const profunctorCostar = dictFunctor => (
5+ {
6+ dimap: f => g => v => {
7+ const $0 = dictFunctor.map(f);
8+ return x => g(v($0(x)));
9+ }
10+ }
11+);
12+const strongCostar = dictComonad => {
13+ const Functor0 = dictComonad.Extend0().Functor0();
14+ const profunctorCostar1 = {
15+ dimap: f => g => v => {
16+ const $0 = Functor0.map(f);
17+ return x => g(v($0(x)));
18+ }
19+ };
20+ return {
21+ first: v => x => Data$dTuple.$Tuple(v(Functor0.map(Data$dTuple.fst)(x)), dictComonad.extract(x)._2),
22+ second: v => x => Data$dTuple.$Tuple(dictComonad.extract(x)._1, v(Functor0.map(Data$dTuple.snd)(x))),
23+ Profunctor0: () => profunctorCostar1
24+ };
25+};
26+const newtypeCostar = {Coercible0: () => {}};
27+const hoistCostar = f => v => x => v(f(x));
28+const functorCostar = {map: f => v => x => f(v(x))};
29+const invariantCostar = {imap: f => v => v$1 => x => f(v$1(x))};
30+const distributiveCostar = {
31+ distribute: dictFunctor => f => a => dictFunctor.map(v => v(a))(f),
32+ collect: dictFunctor => f => {
33+ const $0 = distributiveCostar.distribute(dictFunctor);
34+ const $1 = dictFunctor.map(f);
35+ return x => $0($1(x));
36+ },
37+ Functor0: () => functorCostar
38+};
39+const closedCostar = dictFunctor => {
40+ const profunctorCostar1 = {
41+ dimap: f => g => v => {
42+ const $0 = dictFunctor.map(f);
43+ return x => g(v($0(x)));
44+ }
45+ };
46+ return {closed: v => g => x => v(dictFunctor.map(v1 => v1(x))(g)), Profunctor0: () => profunctorCostar1};
47+};
48+const categoryCostar = dictComonad => {
49+ const $0 = dictComonad.Extend0();
50+ const semigroupoidCostar1 = {compose: v => v1 => w => v($0.extend(v1)(w))};
51+ return {identity: dictComonad.extract, Semigroupoid0: () => semigroupoidCostar1};
52+};
53+const bifunctorCostar = dictContravariant => (
54+ {
55+ bimap: f => g => v => {
56+ const $0 = dictContravariant.cmap(f);
57+ return x => g(v($0(x)));
58+ }
59+ }
60+);
61+const applyCostar = {apply: v => v1 => a => v(a)(v1(a)), Functor0: () => functorCostar};
62+const bindCostar = {bind: v => f => x => f(v(x))(x), Apply0: () => applyCostar};
63+const applicativeCostar = {pure: a => v => a, Apply0: () => applyCostar};
64+const monadCostar = {Applicative0: () => applicativeCostar, Bind1: () => bindCostar};
65+export {
66+ Costar,
67+ applicativeCostar,
68+ applyCostar,
69+ bifunctorCostar,
70+ bindCostar,
71+ categoryCostar,
72+ closedCostar,
73+ distributiveCostar,
74+ functorCostar,
75+ hoistCostar,
76+ invariantCostar,
77+ monadCostar,
78+ newtypeCostar,
79+ profunctorCostar,
80+ semigroupoidCostar,
81+ strongCostar
82+};
output-es/Data.Functor.Flip/index.jsnew file+31
@@ -0,0 +1,31 @@
1+import * as Data$dBifunctor from "../Data.Bifunctor/index.js";
2+import * as Data$dProfunctor from "../Data.Profunctor/index.js";
3+const Flip = x => x;
4+const showFlip = dictShow => ({show: v => "(Flip " + dictShow.show(v) + ")"});
5+const semigroupoidFlip = dictSemigroupoid => ({compose: v => v1 => dictSemigroupoid.compose(v1)(v)});
6+const ordFlip = dictOrd => dictOrd;
7+const newtypeFlip = {Coercible0: () => {}};
8+const functorFlip = dictBifunctor => ({map: f => v => dictBifunctor.bimap(f)(Data$dBifunctor.identity)(v)});
9+const eqFlip = dictEq => dictEq;
10+const contravariantFlip = dictProfunctor => ({cmap: f => v => dictProfunctor.dimap(f)(Data$dProfunctor.identity)(v)});
11+const categoryFlip = dictCategory => {
12+ const $0 = dictCategory.Semigroupoid0();
13+ const semigroupoidFlip1 = {compose: v => v1 => $0.compose(v1)(v)};
14+ return {identity: dictCategory.identity, Semigroupoid0: () => semigroupoidFlip1};
15+};
16+const bifunctorFlip = dictBifunctor => ({bimap: f => g => v => dictBifunctor.bimap(g)(f)(v)});
17+const biapplyFlip = dictBiapply => {
18+ const $0 = dictBiapply.Bifunctor0();
19+ const bifunctorFlip1 = {bimap: f => g => v => $0.bimap(g)(f)(v)};
20+ return {biapply: v => v1 => dictBiapply.biapply(v)(v1), Bifunctor0: () => bifunctorFlip1};
21+};
22+const biapplicativeFlip = dictBiapplicative => {
23+ const $0 = dictBiapplicative.Biapply0();
24+ const $1 = $0.Bifunctor0();
25+ const biapplyFlip1 = (() => {
26+ const bifunctorFlip1 = {bimap: f => g => v => $1.bimap(g)(f)(v)};
27+ return {biapply: v => v1 => $0.biapply(v)(v1), Bifunctor0: () => bifunctorFlip1};
28+ })();
29+ return {bipure: a => b => dictBiapplicative.bipure(b)(a), Biapply0: () => biapplyFlip1};
30+};
31+export {Flip, biapplicativeFlip, biapplyFlip, bifunctorFlip, categoryFlip, contravariantFlip, eqFlip, functorFlip, newtypeFlip, ordFlip, semigroupoidFlip, showFlip};
output-es/Data.Functor.Indexed/index.jsnew file+5
@@ -0,0 +1,5 @@
1+const imap = dict => dict.imap;
2+const ivoid = dictIxFunctor => dictIxFunctor.imap(v => {});
3+const ivoidLeft = dictIxFunctor => f => x => dictIxFunctor.imap(v => x)(f);
4+const ivoidRight = dictIxFunctor => x => dictIxFunctor.imap(v => x);
5+export {imap, ivoid, ivoidLeft, ivoidRight};
output-es/Data.Functor.Invariant/index.jsnew file+14
@@ -0,0 +1,14 @@
1+import * as Control$dSemigroupoid from "../Control.Semigroupoid/index.js";
2+import * as Data$dFunctor from "../Data.Functor/index.js";
3+const invariantMultiplicative = {imap: f => v => v1 => f(v1)};
4+const invariantEndo = {imap: ab => ba => v => x => ab(v(ba(x)))};
5+const invariantDual = {imap: f => v => v1 => f(v1)};
6+const invariantDisj = {imap: f => v => v1 => f(v1)};
7+const invariantConj = {imap: f => v => v1 => f(v1)};
8+const invariantAdditive = {imap: f => v => v1 => f(v1)};
9+const imapF = dictFunctor => f => v => dictFunctor.map(f);
10+const invariantArray = {imap: f => v => Data$dFunctor.arrayMap(f)};
11+const invariantFn = {imap: f => v => Control$dSemigroupoid.semigroupoidFn.compose(f)};
12+const imap = dict => dict.imap;
13+const invariantAlternate = dictInvariant => ({imap: f => g => v => dictInvariant.imap(f)(g)(v)});
14+export {imap, imapF, invariantAdditive, invariantAlternate, invariantArray, invariantConj, invariantDisj, invariantDual, invariantEndo, invariantFn, invariantMultiplicative};
output-es/Data.Functor.Joker/index.jsnew file+88
@@ -0,0 +1,88 @@
1+import * as Data$dEither from "../Data.Either/index.js";
2+const Joker = x => x;
3+const showJoker = dictShow => ({show: v => "(Joker " + dictShow.show(v) + ")"});
4+const profunctorJoker = dictFunctor => ({dimap: v => g => v1 => dictFunctor.map(g)(v1)});
5+const ordJoker = dictOrd => dictOrd;
6+const newtypeJoker = {Coercible0: () => {}};
7+const hoistJoker = f => v => f(v);
8+const functorJoker = dictFunctor => ({map: f => v => dictFunctor.map(f)(v)});
9+const eqJoker = dictEq => dictEq;
10+const choiceJoker = dictFunctor => {
11+ const profunctorJoker1 = {dimap: v => g => v1 => dictFunctor.map(g)(v1)};
12+ return {left: v => dictFunctor.map(Data$dEither.Left)(v), right: v => dictFunctor.map(Data$dEither.Right)(v), Profunctor0: () => profunctorJoker1};
13+};
14+const bifunctorJoker = dictFunctor => ({bimap: v => g => v1 => dictFunctor.map(g)(v1)});
15+const biapplyJoker = dictApply => {
16+ const $0 = dictApply.Functor0();
17+ const bifunctorJoker1 = {bimap: v => g => v1 => $0.map(g)(v1)};
18+ return {biapply: v => v1 => dictApply.apply(v)(v1), Bifunctor0: () => bifunctorJoker1};
19+};
20+const biapplicativeJoker = dictApplicative => {
21+ const $0 = dictApplicative.Apply0();
22+ const $1 = $0.Functor0();
23+ const biapplyJoker1 = (() => {
24+ const bifunctorJoker1 = {bimap: v => g => v1 => $1.map(g)(v1)};
25+ return {biapply: v => v1 => $0.apply(v)(v1), Bifunctor0: () => bifunctorJoker1};
26+ })();
27+ return {bipure: v => b => dictApplicative.pure(b), Biapply0: () => biapplyJoker1};
28+};
29+const applyJoker = dictApply => {
30+ const $0 = dictApply.Functor0();
31+ const functorJoker1 = {map: f => v => $0.map(f)(v)};
32+ return {apply: v => v1 => dictApply.apply(v)(v1), Functor0: () => functorJoker1};
33+};
34+const bindJoker = dictBind => {
35+ const $0 = dictBind.Apply0();
36+ const $1 = $0.Functor0();
37+ const applyJoker1 = (() => {
38+ const functorJoker1 = {map: f => v => $1.map(f)(v)};
39+ return {apply: v => v1 => $0.apply(v)(v1), Functor0: () => functorJoker1};
40+ })();
41+ return {bind: v => amb => dictBind.bind(v)(x => amb(x)), Apply0: () => applyJoker1};
42+};
43+const applicativeJoker = dictApplicative => {
44+ const $0 = dictApplicative.Apply0();
45+ const $1 = $0.Functor0();
46+ const applyJoker1 = (() => {
47+ const functorJoker1 = {map: f => v => $1.map(f)(v)};
48+ return {apply: v => v1 => $0.apply(v)(v1), Functor0: () => functorJoker1};
49+ })();
50+ return {pure: x => dictApplicative.pure(x), Apply0: () => applyJoker1};
51+};
52+const monadJoker = dictMonad => {
53+ const $0 = dictMonad.Applicative0();
54+ const $1 = $0.Apply0();
55+ const applicativeJoker1 = (() => {
56+ const $2 = $1.Functor0();
57+ const functorJoker1 = {map: f => v => $2.map(f)(v)};
58+ const applyJoker1 = {apply: v => v1 => $1.apply(v)(v1), Functor0: () => functorJoker1};
59+ return {pure: x => $0.pure(x), Apply0: () => applyJoker1};
60+ })();
61+ const $2 = dictMonad.Bind1();
62+ const $3 = $2.Apply0();
63+ const bindJoker1 = (() => {
64+ const $4 = $3.Functor0();
65+ const functorJoker1 = {map: f => v => $4.map(f)(v)};
66+ const applyJoker1 = {apply: v => v1 => $3.apply(v)(v1), Functor0: () => functorJoker1};
67+ return {bind: v => amb => $2.bind(v)(x => amb(x)), Apply0: () => applyJoker1};
68+ })();
69+ return {Applicative0: () => applicativeJoker1, Bind1: () => bindJoker1};
70+};
71+export {
72+ Joker,
73+ applicativeJoker,
74+ applyJoker,
75+ biapplicativeJoker,
76+ biapplyJoker,
77+ bifunctorJoker,
78+ bindJoker,
79+ choiceJoker,
80+ eqJoker,
81+ functorJoker,
82+ hoistJoker,
83+ monadJoker,
84+ newtypeJoker,
85+ ordJoker,
86+ profunctorJoker,
87+ showJoker
88+};
output-es/Data.Functor.Product.Nested/index.jsnew file+46
@@ -0,0 +1,46 @@
1+import * as Data$dTuple from "../Data.Tuple/index.js";
2+const product9 = a => b => c => d => e => f => g => h => i => Data$dTuple.$Tuple(
3+ a,
4+ Data$dTuple.$Tuple(
5+ b,
6+ Data$dTuple.$Tuple(c, Data$dTuple.$Tuple(d, Data$dTuple.$Tuple(e, Data$dTuple.$Tuple(f, Data$dTuple.$Tuple(g, Data$dTuple.$Tuple(h, Data$dTuple.$Tuple(i, undefined)))))))
7+ )
8+);
9+const product8 = a => b => c => d => e => f => g => h => Data$dTuple.$Tuple(
10+ a,
11+ Data$dTuple.$Tuple(b, Data$dTuple.$Tuple(c, Data$dTuple.$Tuple(d, Data$dTuple.$Tuple(e, Data$dTuple.$Tuple(f, Data$dTuple.$Tuple(g, Data$dTuple.$Tuple(h, undefined)))))))
12+);
13+const product7 = a => b => c => d => e => f => g => Data$dTuple.$Tuple(
14+ a,
15+ Data$dTuple.$Tuple(b, Data$dTuple.$Tuple(c, Data$dTuple.$Tuple(d, Data$dTuple.$Tuple(e, Data$dTuple.$Tuple(f, Data$dTuple.$Tuple(g, undefined))))))
16+);
17+const product6 = a => b => c => d => e => f => Data$dTuple.$Tuple(
18+ a,
19+ Data$dTuple.$Tuple(b, Data$dTuple.$Tuple(c, Data$dTuple.$Tuple(d, Data$dTuple.$Tuple(e, Data$dTuple.$Tuple(f, undefined)))))
20+);
21+const product5 = a => b => c => d => e => Data$dTuple.$Tuple(a, Data$dTuple.$Tuple(b, Data$dTuple.$Tuple(c, Data$dTuple.$Tuple(d, Data$dTuple.$Tuple(e, undefined)))));
22+const product4 = a => b => c => d => Data$dTuple.$Tuple(a, Data$dTuple.$Tuple(b, Data$dTuple.$Tuple(c, Data$dTuple.$Tuple(d, undefined))));
23+const product3 = a => b => c => Data$dTuple.$Tuple(a, Data$dTuple.$Tuple(b, Data$dTuple.$Tuple(c, undefined)));
24+const product2 = a => b => Data$dTuple.$Tuple(a, Data$dTuple.$Tuple(b, undefined));
25+const product10 = a => b => c => d => e => f => g => h => i => j => Data$dTuple.$Tuple(
26+ a,
27+ Data$dTuple.$Tuple(
28+ b,
29+ Data$dTuple.$Tuple(
30+ c,
31+ Data$dTuple.$Tuple(d, Data$dTuple.$Tuple(e, Data$dTuple.$Tuple(f, Data$dTuple.$Tuple(g, Data$dTuple.$Tuple(h, Data$dTuple.$Tuple(i, Data$dTuple.$Tuple(j, undefined)))))))
32+ )
33+ )
34+);
35+const product1 = a => Data$dTuple.$Tuple(a, undefined);
36+const get9 = v => v._2._2._2._2._2._2._2._2._1;
37+const get8 = v => v._2._2._2._2._2._2._2._1;
38+const get7 = v => v._2._2._2._2._2._2._1;
39+const get6 = v => v._2._2._2._2._2._1;
40+const get5 = v => v._2._2._2._2._1;
41+const get4 = v => v._2._2._2._1;
42+const get3 = v => v._2._2._1;
43+const get2 = v => v._2._1;
44+const get10 = v => v._2._2._2._2._2._2._2._2._2._1;
45+const get1 = v => v._1;
46+export {get1, get10, get2, get3, get4, get5, get6, get7, get8, get9, product1, product10, product2, product3, product4, product5, product6, product7, product8, product9};
output-es/Data.Functor.Product/index.jsnew file+127
@@ -0,0 +1,127 @@
1+import * as Data$dTuple from "../Data.Tuple/index.js";
2+const Product = x => x;
3+const showProduct = dictShow => dictShow1 => ({show: v => "(product " + dictShow.show(v._1) + " " + dictShow1.show(v._2) + ")"});
4+const product = fa => ga => Data$dTuple.$Tuple(fa, ga);
5+const newtypeProduct = {Coercible0: () => {}};
6+const functorProduct = dictFunctor => dictFunctor1 => ({map: f => v => Data$dTuple.$Tuple(dictFunctor.map(f)(v._1), dictFunctor1.map(f)(v._2))});
7+const eq1Product = dictEq1 => dictEq11 => (
8+ {
9+ eq1: dictEq => {
10+ const eq12 = dictEq1.eq1(dictEq);
11+ const eq13 = dictEq11.eq1(dictEq);
12+ return v => v1 => eq12(v._1)(v1._1) && eq13(v._2)(v1._2);
13+ }
14+ }
15+);
16+const eqProduct = dictEq1 => dictEq11 => dictEq => (
17+ {
18+ eq: (() => {
19+ const eq12 = dictEq1.eq1(dictEq);
20+ const eq13 = dictEq11.eq1(dictEq);
21+ return v => v1 => eq12(v._1)(v1._1) && eq13(v._2)(v1._2);
22+ })()
23+ }
24+);
25+const ord1Product = dictOrd1 => {
26+ const $0 = dictOrd1.Eq10();
27+ return dictOrd11 => {
28+ const $1 = dictOrd11.Eq10();
29+ const eq1Product2 = {
30+ eq1: dictEq => {
31+ const eq12 = $0.eq1(dictEq);
32+ const eq13 = $1.eq1(dictEq);
33+ return v => v1 => eq12(v._1)(v1._1) && eq13(v._2)(v1._2);
34+ }
35+ };
36+ return {
37+ compare1: dictOrd => {
38+ const compare12 = dictOrd1.compare1(dictOrd);
39+ const compare13 = dictOrd11.compare1(dictOrd);
40+ return v => v1 => {
41+ const v2 = compare12(v._1)(v1._1);
42+ if (v2 === "EQ") { return compare13(v._2)(v1._2); }
43+ return v2;
44+ };
45+ },
46+ Eq10: () => eq1Product2
47+ };
48+ };
49+};
50+const ordProduct = dictOrd1 => {
51+ const ord1Product1 = ord1Product(dictOrd1);
52+ const $0 = dictOrd1.Eq10();
53+ return dictOrd11 => {
54+ const $1 = dictOrd11.Eq10();
55+ return dictOrd => {
56+ const $2 = dictOrd.Eq0();
57+ const eqProduct3 = {
58+ eq: (() => {
59+ const eq12 = $0.eq1($2);
60+ const eq13 = $1.eq1($2);
61+ return v => v1 => eq12(v._1)(v1._1) && eq13(v._2)(v1._2);
62+ })()
63+ };
64+ return {compare: ord1Product1(dictOrd11).compare1(dictOrd), Eq0: () => eqProduct3};
65+ };
66+ };
67+};
68+const bihoistProduct = natF => natG => v => Data$dTuple.$Tuple(natF(v._1), natG(v._2));
69+const applyProduct = dictApply => {
70+ const $0 = dictApply.Functor0();
71+ return dictApply1 => {
72+ const $1 = dictApply1.Functor0();
73+ const functorProduct2 = {map: f => v => Data$dTuple.$Tuple($0.map(f)(v._1), $1.map(f)(v._2))};
74+ return {apply: v => v1 => Data$dTuple.$Tuple(dictApply.apply(v._1)(v1._1), dictApply1.apply(v._2)(v1._2)), Functor0: () => functorProduct2};
75+ };
76+};
77+const bindProduct = dictBind => {
78+ const $0 = dictBind.Apply0();
79+ const $1 = $0.Functor0();
80+ return dictBind1 => {
81+ const $2 = dictBind1.Apply0();
82+ const $3 = $2.Functor0();
83+ const applyProduct2 = (() => {
84+ const functorProduct2 = {map: f => v => Data$dTuple.$Tuple($1.map(f)(v._1), $3.map(f)(v._2))};
85+ return {apply: v => v1 => Data$dTuple.$Tuple($0.apply(v._1)(v1._1), $2.apply(v._2)(v1._2)), Functor0: () => functorProduct2};
86+ })();
87+ return {bind: v => f => Data$dTuple.$Tuple(dictBind.bind(v._1)(x => f(x)._1), dictBind1.bind(v._2)(x => f(x)._2)), Apply0: () => applyProduct2};
88+ };
89+};
90+const applicativeProduct = dictApplicative => {
91+ const $0 = dictApplicative.Apply0();
92+ const $1 = $0.Functor0();
93+ return dictApplicative1 => {
94+ const $2 = dictApplicative1.Apply0();
95+ const $3 = $2.Functor0();
96+ const applyProduct2 = (() => {
97+ const functorProduct2 = {map: f => v => Data$dTuple.$Tuple($1.map(f)(v._1), $3.map(f)(v._2))};
98+ return {apply: v => v1 => Data$dTuple.$Tuple($0.apply(v._1)(v1._1), $2.apply(v._2)(v1._2)), Functor0: () => functorProduct2};
99+ })();
100+ return {pure: a => Data$dTuple.$Tuple(dictApplicative.pure(a), dictApplicative1.pure(a)), Apply0: () => applyProduct2};
101+ };
102+};
103+const monadProduct = dictMonad => {
104+ const applicativeProduct1 = applicativeProduct(dictMonad.Applicative0());
105+ const bindProduct1 = bindProduct(dictMonad.Bind1());
106+ return dictMonad1 => {
107+ const applicativeProduct2 = applicativeProduct1(dictMonad1.Applicative0());
108+ const bindProduct2 = bindProduct1(dictMonad1.Bind1());
109+ return {Applicative0: () => applicativeProduct2, Bind1: () => bindProduct2};
110+ };
111+};
112+export {
113+ Product,
114+ applicativeProduct,
115+ applyProduct,
116+ bihoistProduct,
117+ bindProduct,
118+ eq1Product,
119+ eqProduct,
120+ functorProduct,
121+ monadProduct,
122+ newtypeProduct,
123+ ord1Product,
124+ ordProduct,
125+ product,
126+ showProduct
127+};
output-es/Data.Functor.Product2/index.jsnew file+46
@@ -0,0 +1,46 @@
1+import * as Data$dOrdering from "../Data.Ordering/index.js";
2+const $Product2 = (_1, _2) => ({tag: "Product2", _1, _2});
3+const Product2 = value0 => value1 => $Product2(value0, value1);
4+const showProduct2 = dictShow => dictShow1 => ({show: v => "(Product2 " + dictShow.show(v._1) + " " + dictShow1.show(v._2) + ")"});
5+const profunctorProduct2 = dictProfunctor => dictProfunctor1 => ({dimap: f => g => v => $Product2(dictProfunctor.dimap(f)(g)(v._1), dictProfunctor1.dimap(f)(g)(v._2))});
6+const functorProduct2 = dictFunctor => dictFunctor1 => ({map: f => v => $Product2(dictFunctor.map(f)(v._1), dictFunctor1.map(f)(v._2))});
7+const eqProduct2 = dictEq => dictEq1 => ({eq: x => y => dictEq.eq(x._1)(y._1) && dictEq1.eq(x._2)(y._2)});
8+const ordProduct2 = dictOrd => {
9+ const $0 = dictOrd.Eq0();
10+ return dictOrd1 => {
11+ const $1 = dictOrd1.Eq0();
12+ const eqProduct22 = {eq: x => y => $0.eq(x._1)(y._1) && $1.eq(x._2)(y._2)};
13+ return {
14+ compare: x => y => {
15+ const v = dictOrd.compare(x._1)(y._1);
16+ if (v === "LT") { return Data$dOrdering.LT; }
17+ if (v === "GT") { return Data$dOrdering.GT; }
18+ return dictOrd1.compare(x._2)(y._2);
19+ },
20+ Eq0: () => eqProduct22
21+ };
22+ };
23+};
24+const bifunctorProduct2 = dictBifunctor => dictBifunctor1 => ({bimap: f => g => v => $Product2(dictBifunctor.bimap(f)(g)(v._1), dictBifunctor1.bimap(f)(g)(v._2))});
25+const biapplyProduct2 = dictBiapply => {
26+ const $0 = dictBiapply.Bifunctor0();
27+ return dictBiapply1 => {
28+ const $1 = dictBiapply1.Bifunctor0();
29+ const bifunctorProduct22 = {bimap: f => g => v => $Product2($0.bimap(f)(g)(v._1), $1.bimap(f)(g)(v._2))};
30+ return {biapply: v => v1 => $Product2(dictBiapply.biapply(v._1)(v1._1), dictBiapply1.biapply(v._2)(v1._2)), Bifunctor0: () => bifunctorProduct22};
31+ };
32+};
33+const biapplicativeProduct2 = dictBiapplicative => {
34+ const $0 = dictBiapplicative.Biapply0();
35+ const $1 = $0.Bifunctor0();
36+ return dictBiapplicative1 => {
37+ const $2 = dictBiapplicative1.Biapply0();
38+ const $3 = $2.Bifunctor0();
39+ const biapplyProduct22 = (() => {
40+ const bifunctorProduct22 = {bimap: f => g => v => $Product2($1.bimap(f)(g)(v._1), $3.bimap(f)(g)(v._2))};
41+ return {biapply: v => v1 => $Product2($0.biapply(v._1)(v1._1), $2.biapply(v._2)(v1._2)), Bifunctor0: () => bifunctorProduct22};
42+ })();
43+ return {bipure: a => b => $Product2(dictBiapplicative.bipure(a)(b), dictBiapplicative1.bipure(a)(b)), Biapply0: () => biapplyProduct22};
44+ };
45+};
46+export {$Product2, Product2, biapplicativeProduct2, biapplyProduct2, bifunctorProduct2, eqProduct2, functorProduct2, ordProduct2, profunctorProduct2, showProduct2};
output-es/Data.Functor.Variant/index.jsnew file+232
@@ -0,0 +1,232 @@
1+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
2+import * as Data$dShow from "../Data.Show/index.js";
3+import * as Data$dTraversable from "../Data.Traversable/index.js";
4+import * as Data$dVariant$dInternal from "../Data.Variant.Internal/index.js";
5+import * as Partial from "../Partial/index.js";
6+import * as Record$dUnsafe from "../Record.Unsafe/index.js";
7+import * as Type$dProxy from "../Type.Proxy/index.js";
8+import * as Unsafe$dCoerce from "../Unsafe.Coerce/index.js";
9+const UnvariantF = x => x;
10+const variantFShows = dict => dict.variantFShows;
11+const variantFMaps = dict => dict.variantFMaps;
12+const unvariantF = v => f => f({
13+ reflectSymbol: (() => {
14+ const $0 = v.type;
15+ return v$1 => $0;
16+ })()
17+})()({map: v.map})(Type$dProxy.Proxy)(v.value);
18+const traverseVFRL = dict => dict.traverseVFRL;
19+const traverseSome = () => () => () => dictVariantTags => dictVariantFMaps => () => () => dictFunctor => r => k => v => {
20+ if (Record$dUnsafe.unsafeHas(v.type)(r)) {
21+ const map1 = Data$dVariant$dInternal.lookup("map")(v.type)(dictVariantTags.variantTags(Type$dProxy.Proxy))(dictVariantFMaps.variantFMaps(Type$dProxy.Proxy));
22+ return dictFunctor.map(value => ({type: v.type, map: map1, value}))(Record$dUnsafe.unsafeGet(v.type)(r)(v.value));
23+ }
24+ return k(v);
25+};
26+const traverse = () => () => () => dictVariantTags => dictVariantFMaps => () => () => dictApplicative => {
27+ const Functor0 = dictApplicative.Apply0().Functor0();
28+ return dictTraversable => {
29+ const traverse1 = dictTraversable.traverse(dictApplicative);
30+ return r => f => traverseSome()()()(dictVariantTags)(dictVariantFMaps)()()(Functor0)(r)((() => {
31+ const $0 = traverse1(f);
32+ const $1 = Functor0.map(Unsafe$dCoerce.unsafeCoerce);
33+ return x => $1($0(x));
34+ })());
35+ };
36+};
37+const showVariantFNil = {variantFShows: v => v1 => Data$dList$dTypes.Nil};
38+const showVariantFCons = dictVariantFShows => dictShow => {
39+ const show1 = dictShow.show;
40+ return dictShow1 => ({variantFShows: v => p => Data$dList$dTypes.$List("Cons", show1, dictVariantFShows.variantFShows(Type$dProxy.Proxy)(p))});
41+};
42+const showVariantF = () => dictVariantTags => dictVariantFShows => dictShow => (
43+ {
44+ show: v1 => "(inj @" + Data$dShow.showStringImpl(v1.type) + " " + Data$dVariant$dInternal.lookup("show")(v1.type)(dictVariantTags.variantTags(Type$dProxy.Proxy))(dictVariantFShows.variantFShows(Type$dProxy.Proxy)(Type$dProxy.Proxy))(v1.value) + ")"
45+ }
46+);
47+const overSome = () => () => () => dictVariantTags => dictVariantFMaps => () => () => r => k => v => {
48+ if (Record$dUnsafe.unsafeHas(v.type)(r)) {
49+ return {
50+ type: v.type,
51+ map: Data$dVariant$dInternal.lookup("map")(v.type)(dictVariantTags.variantTags(Type$dProxy.Proxy))(dictVariantFMaps.variantFMaps(Type$dProxy.Proxy)),
52+ value: Record$dUnsafe.unsafeGet(v.type)(r)(v.value)
53+ };
54+ }
55+ return k(v);
56+};
57+const onMatch = () => () => () => r => k => v => {
58+ if (Record$dUnsafe.unsafeHas(v.type)(r)) { return Record$dUnsafe.unsafeGet(v.type)(r)(v.value); }
59+ return k(v);
60+};
61+const on = () => dictIsSymbol => p => f => g => r => {
62+ if (r.type === dictIsSymbol.reflectSymbol(p)) { return f(r.value); }
63+ return g(r);
64+};
65+const prj = () => dictAlternative => {
66+ const empty = dictAlternative.Plus1().empty;
67+ return dictIsSymbol => p => r => {
68+ if (r.type === dictIsSymbol.reflectSymbol(p)) { return dictAlternative.Applicative0().pure(r.value); }
69+ return empty;
70+ };
71+};
72+const mapVariantFNil = {variantFMaps: v => Data$dList$dTypes.Nil};
73+const mapVariantFCons = dictVariantFMaps => dictFunctor => {
74+ const map1 = dictFunctor.map;
75+ return {variantFMaps: v => Data$dList$dTypes.$List("Cons", map1, dictVariantFMaps.variantFMaps(Type$dProxy.Proxy))};
76+};
77+const inj = () => dictIsSymbol => dictFunctor => {
78+ const map1 = dictFunctor.map;
79+ return p => value => ({type: dictIsSymbol.reflectSymbol(p), value, map: map1});
80+};
81+const overOne = () => () => dictIsSymbol => dictFunctor => {
82+ const map1 = dictFunctor.map;
83+ return p => f => g => r => {
84+ if (r.type === dictIsSymbol.reflectSymbol(p)) { return {type: dictIsSymbol.reflectSymbol(p), value: f(r.value), map: map1}; }
85+ return g(r);
86+ };
87+};
88+const revariantF = v => v(dictIsSymbol => () => dictFunctor => {
89+ const map1 = dictFunctor.map;
90+ return p => value => ({type: dictIsSymbol.reflectSymbol(p), value, map: map1});
91+});
92+const traverseOne = () => () => dictIsSymbol => dictFunctor => {
93+ const map1 = dictFunctor.map;
94+ return dictFunctor1 => p => f => {
95+ const $0 = dictFunctor1.map(value => ({type: dictIsSymbol.reflectSymbol(p), value, map: map1}));
96+ return g => r => {
97+ if (r.type === dictIsSymbol.reflectSymbol(p)) { return $0(f(r.value)); }
98+ return g(r);
99+ };
100+ };
101+};
102+const functorVariantF = {map: f => a => ({type: a.type, value: a.map(f)(a.value), map: a.map})};
103+const over = () => () => () => dictVariantTags => dictVariantFMaps => () => () => r => f => overSome()()()(dictVariantTags)(dictVariantFMaps)()()(r)(x => (
104+ {type: x.type, value: x.map(f)(x.value), map: x.map}
105+));
106+const foldrVFRL = dict => dict.foldrVFRL;
107+const foldlVFRL = dict => dict.foldlVFRL;
108+const foldMapVFRL = dict => dict.foldMapVFRL;
109+const foldableCons = dictIsSymbol => dictFoldable => dictFoldableVFRL => () => (
110+ {
111+ foldrVFRL: v => f => b => {
112+ const $0 = dictFoldable.foldr(f)(b);
113+ const $1 = dictFoldableVFRL.foldrVFRL(Type$dProxy.Proxy)(f)(b);
114+ return r => {
115+ if (r.type === dictIsSymbol.reflectSymbol(Type$dProxy.Proxy)) { return $0(r.value); }
116+ return $1(r);
117+ };
118+ },
119+ foldlVFRL: v => f => b => {
120+ const $0 = dictFoldable.foldl(f)(b);
121+ const $1 = dictFoldableVFRL.foldlVFRL(Type$dProxy.Proxy)(f)(b);
122+ return r => {
123+ if (r.type === dictIsSymbol.reflectSymbol(Type$dProxy.Proxy)) { return $0(r.value); }
124+ return $1(r);
125+ };
126+ },
127+ foldMapVFRL: dictMonoid => {
128+ const foldMap1 = dictFoldable.foldMap(dictMonoid);
129+ const foldMapVFRL2 = dictFoldableVFRL.foldMapVFRL(dictMonoid);
130+ return v => f => {
131+ const $0 = foldMap1(f);
132+ const $1 = foldMapVFRL2(Type$dProxy.Proxy)(f);
133+ return r => {
134+ if (r.type === dictIsSymbol.reflectSymbol(Type$dProxy.Proxy)) { return $0(r.value); }
135+ return $1(r);
136+ };
137+ };
138+ }
139+ }
140+);
141+const foldableVariantF = () => dictFoldableVFRL => (
142+ {
143+ foldr: dictFoldableVFRL.foldrVFRL(Type$dProxy.Proxy),
144+ foldl: dictFoldableVFRL.foldlVFRL(Type$dProxy.Proxy),
145+ foldMap: dictMonoid => dictFoldableVFRL.foldMapVFRL(dictMonoid)(Type$dProxy.Proxy)
146+ }
147+);
148+const traversableVariantF = () => dictTraversableVFRL => {
149+ const $0 = dictTraversableVFRL.FoldableVFRL0();
150+ const foldableVariantF2 = {foldr: $0.foldrVFRL(Type$dProxy.Proxy), foldl: $0.foldlVFRL(Type$dProxy.Proxy), foldMap: dictMonoid => $0.foldMapVFRL(dictMonoid)(Type$dProxy.Proxy)};
151+ return {
152+ traverse: dictApplicative => dictTraversableVFRL.traverseVFRL(dictApplicative)(Type$dProxy.Proxy),
153+ sequence: dictApplicative => traversableVariantF()(dictTraversableVFRL).traverse(dictApplicative)(Data$dTraversable.identity),
154+ Functor0: () => functorVariantF,
155+ Foldable1: () => foldableVariantF2
156+ };
157+};
158+const expand = () => Unsafe$dCoerce.unsafeCoerce;
159+const traversableCons = dictIsSymbol => dictTraversable => {
160+ const map1 = dictTraversable.Functor0().map;
161+ const foldableCons2 = foldableCons(dictIsSymbol)(dictTraversable.Foldable1());
162+ return dictTraversableVFRL => {
163+ const foldableCons3 = foldableCons2(dictTraversableVFRL.FoldableVFRL0())();
164+ return () => () => (
165+ {
166+ traverseVFRL: dictApplicative => {
167+ const traverse2 = dictTraversable.traverse(dictApplicative);
168+ const $0 = dictApplicative.Apply0().Functor0();
169+ const traverseVFRL2 = dictTraversableVFRL.traverseVFRL(dictApplicative);
170+ return v => f => {
171+ const $1 = traverse2(f);
172+ const $2 = $0.map(value => ({type: dictIsSymbol.reflectSymbol(Type$dProxy.Proxy), value, map: map1}));
173+ const $3 = traverseVFRL2(Type$dProxy.Proxy)(f);
174+ const $4 = $0.map(Unsafe$dCoerce.unsafeCoerce);
175+ return r => {
176+ if (r.type === dictIsSymbol.reflectSymbol(Type$dProxy.Proxy)) { return $2($1(r.value)); }
177+ return $4($3(r));
178+ };
179+ };
180+ },
181+ FoldableVFRL0: () => foldableCons3
182+ }
183+ );
184+ };
185+};
186+const $$default = a => v => a;
187+const contract = dictAlternative => dictContractable => {
188+ const contractWith = dictContractable.contractWith(dictAlternative);
189+ return v => contractWith(Type$dProxy.Proxy)(Type$dProxy.Proxy)(v.type)(v);
190+};
191+const case_ = r => Partial._crashWith("Data.Functor.Variant: pattern match failure [" + r.type + "]");
192+const foldableNil = {foldrVFRL: v => v1 => v2 => case_, foldlVFRL: v => v1 => v2 => case_, foldMapVFRL: dictMonoid => v => v1 => case_};
193+const match = () => () => () => r => onMatch()()()(r)(case_);
194+const traversableNil = {traverseVFRL: dictApplicative => v => v1 => case_, FoldableVFRL0: () => foldableNil};
195+export {
196+ UnvariantF,
197+ case_,
198+ contract,
199+ $$default as default,
200+ expand,
201+ foldMapVFRL,
202+ foldableCons,
203+ foldableNil,
204+ foldableVariantF,
205+ foldlVFRL,
206+ foldrVFRL,
207+ functorVariantF,
208+ inj,
209+ mapVariantFCons,
210+ mapVariantFNil,
211+ match,
212+ on,
213+ onMatch,
214+ over,
215+ overOne,
216+ overSome,
217+ prj,
218+ revariantF,
219+ showVariantF,
220+ showVariantFCons,
221+ showVariantFNil,
222+ traversableCons,
223+ traversableNil,
224+ traversableVariantF,
225+ traverse,
226+ traverseOne,
227+ traverseSome,
228+ traverseVFRL,
229+ unvariantF,
230+ variantFMaps,
231+ variantFShows
232+};
output-es/Data.Functor/foreign.jsnew file+10
@@ -0,0 +1,10 @@
1+export const arrayMap = function (f) {
2+ return function (arr) {
3+ var l = arr.length;
4+ var result = new Array(l);
5+ for (var i = 0; i < l; i++) {
6+ result[i] = f(arr[i]);
7+ }
8+ return result;
9+ };
10+};
output-es/Data.Functor/index.jsnew file+14
@@ -0,0 +1,14 @@
1+import * as Control$dSemigroupoid from "../Control.Semigroupoid/index.js";
2+import * as Type$dProxy from "../Type.Proxy/index.js";
3+import {arrayMap} from "./foreign.js";
4+const map = dict => dict.map;
5+const mapFlipped = dictFunctor => fa => f => dictFunctor.map(f)(fa);
6+const $$void = dictFunctor => dictFunctor.map(v => {});
7+const voidLeft = dictFunctor => f => x => dictFunctor.map(v => x)(f);
8+const voidRight = dictFunctor => x => dictFunctor.map(v => x);
9+const functorProxy = {map: v => v1 => Type$dProxy.Proxy};
10+const functorFn = /* #__PURE__ */ (() => ({map: Control$dSemigroupoid.semigroupoidFn.compose}))();
11+const functorArray = {map: arrayMap};
12+const flap = dictFunctor => ff => x => dictFunctor.map(f => f(x))(ff);
13+export {flap, functorArray, functorFn, functorProxy, map, mapFlipped, $$void as void, voidLeft, voidRight};
14+export * from "./foreign.js";
output-es/Data.FunctorWithIndex/foreign.jsnew file+10
@@ -0,0 +1,10 @@
1+export const mapWithIndexArray = function (f) {
2+ return function (xs) {
3+ var l = xs.length;
4+ var result = Array(l);
5+ for (var i = 0; i < l; i++) {
6+ result[i] = f(i)(xs[i]);
7+ }
8+ return result;
9+ };
10+};
output-es/Data.FunctorWithIndex/index.jsnew file+147
@@ -0,0 +1,147 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dConst from "../Data.Const/index.js";
3+import * as Data$dEither from "../Data.Either/index.js";
4+import * as Data$dFunctor from "../Data.Functor/index.js";
5+import * as Data$dIdentity from "../Data.Identity/index.js";
6+import * as Data$dMaybe from "../Data.Maybe/index.js";
7+import * as Data$dMonoid$dAdditive from "../Data.Monoid.Additive/index.js";
8+import * as Data$dMonoid$dConj from "../Data.Monoid.Conj/index.js";
9+import * as Data$dMonoid$dDisj from "../Data.Monoid.Disj/index.js";
10+import * as Data$dMonoid$dDual from "../Data.Monoid.Dual/index.js";
11+import * as Data$dMonoid$dMultiplicative from "../Data.Monoid.Multiplicative/index.js";
12+import * as Data$dTuple from "../Data.Tuple/index.js";
13+import {mapWithIndexArray} from "./foreign.js";
14+const mapWithIndex = dict => dict.mapWithIndex;
15+const mapDefault = dictFunctorWithIndex => f => dictFunctorWithIndex.mapWithIndex(v => f);
16+const functorWithIndexTuple = {
17+ mapWithIndex: f => {
18+ const $0 = f();
19+ return m => Data$dTuple.$Tuple(m._1, $0(m._2));
20+ },
21+ Functor0: () => Data$dTuple.functorTuple
22+};
23+const functorWithIndexProduct = dictFunctorWithIndex => {
24+ const $0 = dictFunctorWithIndex.Functor0();
25+ return dictFunctorWithIndex1 => {
26+ const $1 = dictFunctorWithIndex1.Functor0();
27+ const functorProduct1 = {map: f => v => Data$dTuple.$Tuple($0.map(f)(v._1), $1.map(f)(v._2))};
28+ return {
29+ mapWithIndex: f => v => Data$dTuple.$Tuple(
30+ dictFunctorWithIndex.mapWithIndex(x => f(Data$dEither.$Either("Left", x)))(v._1),
31+ dictFunctorWithIndex1.mapWithIndex(x => f(Data$dEither.$Either("Right", x)))(v._2)
32+ ),
33+ Functor0: () => functorProduct1
34+ };
35+ };
36+};
37+const functorWithIndexMultiplicative = {mapWithIndex: f => f(), Functor0: () => Data$dMonoid$dMultiplicative.functorMultiplicative};
38+const functorWithIndexMaybe = {
39+ mapWithIndex: f => {
40+ const $0 = f();
41+ return v1 => {
42+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0(v1._1)); }
43+ return Data$dMaybe.Nothing;
44+ };
45+ },
46+ Functor0: () => Data$dMaybe.functorMaybe
47+};
48+const functorWithIndexLast = {
49+ mapWithIndex: f => {
50+ const $0 = f();
51+ return v1 => {
52+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0(v1._1)); }
53+ return Data$dMaybe.Nothing;
54+ };
55+ },
56+ Functor0: () => Data$dMaybe.functorMaybe
57+};
58+const functorWithIndexIdentity = {mapWithIndex: f => v => f()(v), Functor0: () => Data$dIdentity.functorIdentity};
59+const functorWithIndexFirst = {
60+ mapWithIndex: f => {
61+ const $0 = f();
62+ return v1 => {
63+ if (v1.tag === "Just") { return Data$dMaybe.$Maybe("Just", $0(v1._1)); }
64+ return Data$dMaybe.Nothing;
65+ };
66+ },
67+ Functor0: () => Data$dMaybe.functorMaybe
68+};
69+const functorWithIndexEither = {
70+ mapWithIndex: f => {
71+ const $0 = f();
72+ return m => {
73+ if (m.tag === "Left") { return Data$dEither.$Either("Left", m._1); }
74+ if (m.tag === "Right") { return Data$dEither.$Either("Right", $0(m._1)); }
75+ $runtime.fail();
76+ };
77+ },
78+ Functor0: () => Data$dEither.functorEither
79+};
80+const functorWithIndexDual = {mapWithIndex: f => f(), Functor0: () => Data$dMonoid$dDual.functorDual};
81+const functorWithIndexDisj = {mapWithIndex: f => f(), Functor0: () => Data$dMonoid$dDisj.functorDisj};
82+const functorWithIndexCoproduct = dictFunctorWithIndex => {
83+ const $0 = dictFunctorWithIndex.Functor0();
84+ return dictFunctorWithIndex1 => {
85+ const $1 = dictFunctorWithIndex1.Functor0();
86+ const functorCoproduct1 = {
87+ map: f => v => {
88+ const $2 = $0.map(f);
89+ const $3 = $1.map(f);
90+ if (v.tag === "Left") { return Data$dEither.$Either("Left", $2(v._1)); }
91+ if (v.tag === "Right") { return Data$dEither.$Either("Right", $3(v._1)); }
92+ $runtime.fail();
93+ }
94+ };
95+ return {
96+ mapWithIndex: f => v => {
97+ const $2 = dictFunctorWithIndex.mapWithIndex(x => f(Data$dEither.$Either("Left", x)));
98+ const $3 = dictFunctorWithIndex1.mapWithIndex(x => f(Data$dEither.$Either("Right", x)));
99+ if (v.tag === "Left") { return Data$dEither.$Either("Left", $2(v._1)); }
100+ if (v.tag === "Right") { return Data$dEither.$Either("Right", $3(v._1)); }
101+ $runtime.fail();
102+ },
103+ Functor0: () => functorCoproduct1
104+ };
105+ };
106+};
107+const functorWithIndexConst = {mapWithIndex: v => v1 => v1, Functor0: () => Data$dConst.functorConst};
108+const functorWithIndexConj = {mapWithIndex: f => f(), Functor0: () => Data$dMonoid$dConj.functorConj};
109+const functorWithIndexCompose = dictFunctorWithIndex => {
110+ const $0 = dictFunctorWithIndex.Functor0();
111+ return dictFunctorWithIndex1 => {
112+ const $1 = dictFunctorWithIndex1.Functor0();
113+ const functorCompose1 = {map: f => v => $0.map($1.map(f))(v)};
114+ return {
115+ mapWithIndex: f => v => dictFunctorWithIndex.mapWithIndex(x => dictFunctorWithIndex1.mapWithIndex(b => f(Data$dTuple.$Tuple(x, b))))(v),
116+ Functor0: () => functorCompose1
117+ };
118+ };
119+};
120+const functorWithIndexArray = {mapWithIndex: mapWithIndexArray, Functor0: () => Data$dFunctor.functorArray};
121+const functorWithIndexApp = dictFunctorWithIndex => {
122+ const $0 = dictFunctorWithIndex.Functor0();
123+ return {mapWithIndex: f => v => dictFunctorWithIndex.mapWithIndex(f)(v), Functor0: () => $0};
124+};
125+const functorWithIndexAdditive = {mapWithIndex: f => f(), Functor0: () => Data$dMonoid$dAdditive.functorAdditive};
126+export {
127+ functorWithIndexAdditive,
128+ functorWithIndexApp,
129+ functorWithIndexArray,
130+ functorWithIndexCompose,
131+ functorWithIndexConj,
132+ functorWithIndexConst,
133+ functorWithIndexCoproduct,
134+ functorWithIndexDisj,
135+ functorWithIndexDual,
136+ functorWithIndexEither,
137+ functorWithIndexFirst,
138+ functorWithIndexIdentity,
139+ functorWithIndexLast,
140+ functorWithIndexMaybe,
141+ functorWithIndexMultiplicative,
142+ functorWithIndexProduct,
143+ functorWithIndexTuple,
144+ mapDefault,
145+ mapWithIndex
146+};
147+export * from "./foreign.js";
output-es/Data.Generic.Rep/index.jsnew file+31
@@ -0,0 +1,31 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dShow from "../Data.Show/index.js";
3+import * as Type$dProxy from "../Type.Proxy/index.js";
4+const $NoArguments = () => ({tag: "NoArguments"});
5+const $Product = (_1, _2) => ({tag: "Product", _1, _2});
6+const $Sum = (tag, _1) => ({tag, _1});
7+const Inl = value0 => $Sum("Inl", value0);
8+const Inr = value0 => $Sum("Inr", value0);
9+const Product = value0 => value1 => $Product(value0, value1);
10+const NoArguments = /* #__PURE__ */ $NoArguments();
11+const Constructor = x => x;
12+const Argument = x => x;
13+const to = dict => dict.to;
14+const showSum = dictShow => dictShow1 => (
15+ {
16+ show: v => {
17+ if (v.tag === "Inl") { return "(Inl " + dictShow.show(v._1) + ")"; }
18+ if (v.tag === "Inr") { return "(Inr " + dictShow1.show(v._1) + ")"; }
19+ $runtime.fail();
20+ }
21+ }
22+);
23+const showProduct = dictShow => dictShow1 => ({show: v => "(Product " + dictShow.show(v._1) + " " + dictShow1.show(v._2) + ")"});
24+const showNoArguments = {show: v => "NoArguments"};
25+const showConstructor = dictIsSymbol => dictShow => (
26+ {show: v => "(Constructor @" + Data$dShow.showStringImpl(dictIsSymbol.reflectSymbol(Type$dProxy.Proxy)) + " " + dictShow.show(v) + ")"}
27+);
28+const showArgument = dictShow => ({show: v => "(Argument " + dictShow.show(v) + ")"});
29+const repOf = dictGeneric => v => Type$dProxy.Proxy;
30+const from = dict => dict.from;
31+export {$NoArguments, $Product, $Sum, Argument, Constructor, Inl, Inr, NoArguments, Product, from, repOf, showArgument, showConstructor, showNoArguments, showProduct, showSum, to};
output-es/Data.HeytingAlgebra.Generic/index.jsnew file+76
@@ -0,0 +1,76 @@
1+import * as Data$dGeneric$dRep from "../Data.Generic.Rep/index.js";
2+const genericTT$p = dict => dict["genericTT'"];
3+const genericTT = dictGeneric => dictGenericHeytingAlgebra => dictGeneric.to(dictGenericHeytingAlgebra["genericTT'"]);
4+const genericNot$p = dict => dict["genericNot'"];
5+const genericNot = dictGeneric => dictGenericHeytingAlgebra => x => dictGeneric.to(dictGenericHeytingAlgebra["genericNot'"](dictGeneric.from(x)));
6+const genericImplies$p = dict => dict["genericImplies'"];
7+const genericImplies = dictGeneric => dictGenericHeytingAlgebra => x => y => dictGeneric.to(dictGenericHeytingAlgebra["genericImplies'"](dictGeneric.from(x))(dictGeneric.from(y)));
8+const genericHeytingAlgebraNoArguments = {
9+ "genericFF'": Data$dGeneric$dRep.NoArguments,
10+ "genericTT'": Data$dGeneric$dRep.NoArguments,
11+ "genericImplies'": v => v1 => Data$dGeneric$dRep.NoArguments,
12+ "genericConj'": v => v1 => Data$dGeneric$dRep.NoArguments,
13+ "genericDisj'": v => v1 => Data$dGeneric$dRep.NoArguments,
14+ "genericNot'": v => Data$dGeneric$dRep.NoArguments
15+};
16+const genericHeytingAlgebraArgument = dictHeytingAlgebra => (
17+ {
18+ "genericFF'": dictHeytingAlgebra.ff,
19+ "genericTT'": dictHeytingAlgebra.tt,
20+ "genericImplies'": v => v1 => dictHeytingAlgebra.implies(v)(v1),
21+ "genericConj'": v => v1 => dictHeytingAlgebra.conj(v)(v1),
22+ "genericDisj'": v => v1 => dictHeytingAlgebra.disj(v)(v1),
23+ "genericNot'": v => dictHeytingAlgebra.not(v)
24+ }
25+);
26+const genericFF$p = dict => dict["genericFF'"];
27+const genericFF = dictGeneric => dictGenericHeytingAlgebra => dictGeneric.to(dictGenericHeytingAlgebra["genericFF'"]);
28+const genericDisj$p = dict => dict["genericDisj'"];
29+const genericDisj = dictGeneric => dictGenericHeytingAlgebra => x => y => dictGeneric.to(dictGenericHeytingAlgebra["genericDisj'"](dictGeneric.from(x))(dictGeneric.from(y)));
30+const genericConj$p = dict => dict["genericConj'"];
31+const genericHeytingAlgebraConstructor = dictGenericHeytingAlgebra => (
32+ {
33+ "genericFF'": dictGenericHeytingAlgebra["genericFF'"],
34+ "genericTT'": dictGenericHeytingAlgebra["genericTT'"],
35+ "genericImplies'": v => v1 => dictGenericHeytingAlgebra["genericImplies'"](v)(v1),
36+ "genericConj'": v => v1 => dictGenericHeytingAlgebra["genericConj'"](v)(v1),
37+ "genericDisj'": v => v1 => dictGenericHeytingAlgebra["genericDisj'"](v)(v1),
38+ "genericNot'": v => dictGenericHeytingAlgebra["genericNot'"](v)
39+ }
40+);
41+const genericHeytingAlgebraProduct = dictGenericHeytingAlgebra => {
42+ const genericFF$p1 = dictGenericHeytingAlgebra["genericFF'"];
43+ const genericTT$p1 = dictGenericHeytingAlgebra["genericTT'"];
44+ return dictGenericHeytingAlgebra1 => (
45+ {
46+ "genericFF'": Data$dGeneric$dRep.$Product(genericFF$p1, dictGenericHeytingAlgebra1["genericFF'"]),
47+ "genericTT'": Data$dGeneric$dRep.$Product(genericTT$p1, dictGenericHeytingAlgebra1["genericTT'"]),
48+ "genericImplies'": v => v1 => Data$dGeneric$dRep.$Product(
49+ dictGenericHeytingAlgebra["genericImplies'"](v._1)(v1._1),
50+ dictGenericHeytingAlgebra1["genericImplies'"](v._2)(v1._2)
51+ ),
52+ "genericConj'": v => v1 => Data$dGeneric$dRep.$Product(dictGenericHeytingAlgebra["genericConj'"](v._1)(v1._1), dictGenericHeytingAlgebra1["genericConj'"](v._2)(v1._2)),
53+ "genericDisj'": v => v1 => Data$dGeneric$dRep.$Product(dictGenericHeytingAlgebra["genericDisj'"](v._1)(v1._1), dictGenericHeytingAlgebra1["genericDisj'"](v._2)(v1._2)),
54+ "genericNot'": v => Data$dGeneric$dRep.$Product(dictGenericHeytingAlgebra["genericNot'"](v._1), dictGenericHeytingAlgebra1["genericNot'"](v._2))
55+ }
56+ );
57+};
58+const genericConj = dictGeneric => dictGenericHeytingAlgebra => x => y => dictGeneric.to(dictGenericHeytingAlgebra["genericConj'"](dictGeneric.from(x))(dictGeneric.from(y)));
59+export {
60+ genericConj,
61+ genericConj$p,
62+ genericDisj,
63+ genericDisj$p,
64+ genericFF,
65+ genericFF$p,
66+ genericHeytingAlgebraArgument,
67+ genericHeytingAlgebraConstructor,
68+ genericHeytingAlgebraNoArguments,
69+ genericHeytingAlgebraProduct,
70+ genericImplies,
71+ genericImplies$p,
72+ genericNot,
73+ genericNot$p,
74+ genericTT,
75+ genericTT$p
76+};
output-es/Data.HeytingAlgebra/foreign.jsnew file+15
@@ -0,0 +1,15 @@
1+export const boolConj = function (b1) {
2+ return function (b2) {
3+ return b1 && b2;
4+ };
5+};
6+
7+export const boolDisj = function (b1) {
8+ return function (b2) {
9+ return b1 || b2;
10+ };
11+};
12+
13+export const boolNot = function (b) {
14+ return !b;
15+};
output-es/Data.HeytingAlgebra/index.jsnew file+104
@@ -0,0 +1,104 @@
1+import * as Record$dUnsafe from "../Record.Unsafe/index.js";
2+import * as Type$dProxy from "../Type.Proxy/index.js";
3+import {boolConj, boolDisj, boolNot} from "./foreign.js";
4+const ttRecord = dict => dict.ttRecord;
5+const tt = dict => dict.tt;
6+const notRecord = dict => dict.notRecord;
7+const not = dict => dict.not;
8+const impliesRecord = dict => dict.impliesRecord;
9+const implies = dict => dict.implies;
10+const heytingAlgebraUnit = {ff: undefined, tt: undefined, implies: v => v1 => {}, conj: v => v1 => {}, disj: v => v1 => {}, not: v => {}};
11+const heytingAlgebraRecordNil = {
12+ conjRecord: v => v1 => v2 => ({}),
13+ disjRecord: v => v1 => v2 => ({}),
14+ ffRecord: v => v1 => ({}),
15+ impliesRecord: v => v1 => v2 => ({}),
16+ notRecord: v => v1 => ({}),
17+ ttRecord: v => v1 => ({})
18+};
19+const heytingAlgebraProxy = {
20+ conj: v => v1 => Type$dProxy.Proxy,
21+ disj: v => v1 => Type$dProxy.Proxy,
22+ implies: v => v1 => Type$dProxy.Proxy,
23+ ff: Type$dProxy.Proxy,
24+ not: v => Type$dProxy.Proxy,
25+ tt: Type$dProxy.Proxy
26+};
27+const ffRecord = dict => dict.ffRecord;
28+const ff = dict => dict.ff;
29+const disjRecord = dict => dict.disjRecord;
30+const disj = dict => dict.disj;
31+const heytingAlgebraBoolean = {ff: false, tt: true, implies: a => b => heytingAlgebraBoolean.disj(heytingAlgebraBoolean.not(a))(b), conj: boolConj, disj: boolDisj, not: boolNot};
32+const conjRecord = dict => dict.conjRecord;
33+const heytingAlgebraRecord = () => dictHeytingAlgebraRecord => (
34+ {
35+ ff: dictHeytingAlgebraRecord.ffRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy),
36+ tt: dictHeytingAlgebraRecord.ttRecord(Type$dProxy.Proxy)(Type$dProxy.Proxy),
37+ conj: dictHeytingAlgebraRecord.conjRecord(Type$dProxy.Proxy),
38+ disj: dictHeytingAlgebraRecord.disjRecord(Type$dProxy.Proxy),
39+ implies: dictHeytingAlgebraRecord.impliesRecord(Type$dProxy.Proxy),
40+ not: dictHeytingAlgebraRecord.notRecord(Type$dProxy.Proxy)
41+ }
42+);
43+const conj = dict => dict.conj;
44+const heytingAlgebraFunction = dictHeytingAlgebra => {
45+ const ff1 = dictHeytingAlgebra.ff;
46+ const tt1 = dictHeytingAlgebra.tt;
47+ return {
48+ ff: v => ff1,
49+ tt: v => tt1,
50+ implies: f => g => a => dictHeytingAlgebra.implies(f(a))(g(a)),
51+ conj: f => g => a => dictHeytingAlgebra.conj(f(a))(g(a)),
52+ disj: f => g => a => dictHeytingAlgebra.disj(f(a))(g(a)),
53+ not: f => a => dictHeytingAlgebra.not(f(a))
54+ };
55+};
56+const heytingAlgebraRecordCons = dictIsSymbol => () => dictHeytingAlgebraRecord => dictHeytingAlgebra => {
57+ const ff1 = dictHeytingAlgebra.ff;
58+ const tt1 = dictHeytingAlgebra.tt;
59+ return {
60+ conjRecord: v => ra => rb => {
61+ const key = dictIsSymbol.reflectSymbol(Type$dProxy.Proxy);
62+ const $$get = Record$dUnsafe.unsafeGet(key);
63+ return Record$dUnsafe.unsafeSet(key)(dictHeytingAlgebra.conj($$get(ra))($$get(rb)))(dictHeytingAlgebraRecord.conjRecord(Type$dProxy.Proxy)(ra)(rb));
64+ },
65+ disjRecord: v => ra => rb => {
66+ const key = dictIsSymbol.reflectSymbol(Type$dProxy.Proxy);
67+ const $$get = Record$dUnsafe.unsafeGet(key);
68+ return Record$dUnsafe.unsafeSet(key)(dictHeytingAlgebra.disj($$get(ra))($$get(rb)))(dictHeytingAlgebraRecord.disjRecord(Type$dProxy.Proxy)(ra)(rb));
69+ },
70+ impliesRecord: v => ra => rb => {
71+ const key = dictIsSymbol.reflectSymbol(Type$dProxy.Proxy);
72+ const $$get = Record$dUnsafe.unsafeGet(key);
73+ return Record$dUnsafe.unsafeSet(key)(dictHeytingAlgebra.implies($$get(ra))($$get(rb)))(dictHeytingAlgebraRecord.impliesRecord(Type$dProxy.Proxy)(ra)(rb));
74+ },
75+ ffRecord: v => row => Record$dUnsafe.unsafeSet(dictIsSymbol.reflectSymbol(Type$dProxy.Proxy))(ff1)(dictHeytingAlgebraRecord.ffRecord(Type$dProxy.Proxy)(row)),
76+ notRecord: v => row => {
77+ const key = dictIsSymbol.reflectSymbol(Type$dProxy.Proxy);
78+ return Record$dUnsafe.unsafeSet(key)(dictHeytingAlgebra.not(Record$dUnsafe.unsafeGet(key)(row)))(dictHeytingAlgebraRecord.notRecord(Type$dProxy.Proxy)(row));
79+ },
80+ ttRecord: v => row => Record$dUnsafe.unsafeSet(dictIsSymbol.reflectSymbol(Type$dProxy.Proxy))(tt1)(dictHeytingAlgebraRecord.ttRecord(Type$dProxy.Proxy)(row))
81+ };
82+};
83+export {
84+ conj,
85+ conjRecord,
86+ disj,
87+ disjRecord,
88+ ff,
89+ ffRecord,
90+ heytingAlgebraBoolean,
91+ heytingAlgebraFunction,
92+ heytingAlgebraProxy,
93+ heytingAlgebraRecord,
94+ heytingAlgebraRecordCons,
95+ heytingAlgebraRecordNil,
96+ heytingAlgebraUnit,
97+ implies,
98+ impliesRecord,
99+ not,
100+ notRecord,
101+ tt,
102+ ttRecord
103+};
104+export * from "./foreign.js";
output-es/Data.Identity/index.jsnew file+54
@@ -0,0 +1,54 @@
1+const Identity = x => x;
2+const showIdentity = dictShow => ({show: v => "(Identity " + dictShow.show(v) + ")"});
3+const semiringIdentity = dictSemiring => dictSemiring;
4+const semigroupIdentity = dictSemigroup => dictSemigroup;
5+const ringIdentity = dictRing => dictRing;
6+const ordIdentity = dictOrd => dictOrd;
7+const newtypeIdentity = {Coercible0: () => {}};
8+const monoidIdentity = dictMonoid => dictMonoid;
9+const lazyIdentity = dictLazy => dictLazy;
10+const heytingAlgebraIdentity = dictHeytingAlgebra => dictHeytingAlgebra;
11+const functorIdentity = {map: f => m => f(m)};
12+const invariantIdentity = {imap: f => v => m => f(m)};
13+const extendIdentity = {extend: f => m => f(m), Functor0: () => functorIdentity};
14+const euclideanRingIdentity = dictEuclideanRing => dictEuclideanRing;
15+const eqIdentity = dictEq => dictEq;
16+const eq1Identity = {eq1: dictEq => dictEq.eq};
17+const ord1Identity = {compare1: dictOrd => dictOrd.compare, Eq10: () => eq1Identity};
18+const comonadIdentity = {extract: v => v, Extend0: () => extendIdentity};
19+const commutativeRingIdentity = dictCommutativeRing => dictCommutativeRing;
20+const boundedIdentity = dictBounded => dictBounded;
21+const booleanAlgebraIdentity = dictBooleanAlgebra => dictBooleanAlgebra;
22+const applyIdentity = {apply: v => v1 => v(v1), Functor0: () => functorIdentity};
23+const bindIdentity = {bind: v => f => f(v), Apply0: () => applyIdentity};
24+const applicativeIdentity = {pure: Identity, Apply0: () => applyIdentity};
25+const monadIdentity = {Applicative0: () => applicativeIdentity, Bind1: () => bindIdentity};
26+const altIdentity = {alt: x => v => x, Functor0: () => functorIdentity};
27+export {
28+ Identity,
29+ altIdentity,
30+ applicativeIdentity,
31+ applyIdentity,
32+ bindIdentity,
33+ booleanAlgebraIdentity,
34+ boundedIdentity,
35+ commutativeRingIdentity,
36+ comonadIdentity,
37+ eq1Identity,
38+ eqIdentity,
39+ euclideanRingIdentity,
40+ extendIdentity,
41+ functorIdentity,
42+ heytingAlgebraIdentity,
43+ invariantIdentity,
44+ lazyIdentity,
45+ monadIdentity,
46+ monoidIdentity,
47+ newtypeIdentity,
48+ ord1Identity,
49+ ordIdentity,
50+ ringIdentity,
51+ semigroupIdentity,
52+ semiringIdentity,
53+ showIdentity
54+};
output-es/Data.Indexed/index.jsnew file+74
@@ -0,0 +1,74 @@
1+const Indexed = x => x;
2+const showIndexed = dictShow => ({show: v => "(Indexed " + dictShow.show(v) + ")"});
3+const ordIndexed = dictOrd => dictOrd;
4+const ord1Indexed = dictOrd1 => dictOrd1;
5+const newtypeIndexed = {Coercible0: () => {}};
6+const monadIndexed = dictMonad => dictMonad;
7+const ixFunctorIndexed = dictFunctor => ({imap: f => v => dictFunctor.map(f)(v)});
8+const ixApplyIndexed = dictApply => {
9+ const $0 = dictApply.Functor0();
10+ const ixFunctorIndexed1 = {imap: f => v => $0.map(f)(v)};
11+ return {iapply: v => v1 => dictApply.apply(v)(v1), IxFunctor0: () => ixFunctorIndexed1};
12+};
13+const ixBindIndexed = dictBind => {
14+ const $0 = dictBind.Apply0();
15+ const $1 = $0.Functor0();
16+ const ixApplyIndexed1 = (() => {
17+ const ixFunctorIndexed1 = {imap: f => v => $1.map(f)(v)};
18+ return {iapply: v => v1 => $0.apply(v)(v1), IxFunctor0: () => ixFunctorIndexed1};
19+ })();
20+ return {ibind: v => f => dictBind.bind(v)(a => f(a)), IxApply0: () => ixApplyIndexed1};
21+};
22+const ixApplicativeIndexed = dictApplicative => {
23+ const $0 = dictApplicative.Apply0();
24+ const $1 = $0.Functor0();
25+ const ixApplyIndexed1 = (() => {
26+ const ixFunctorIndexed1 = {imap: f => v => $1.map(f)(v)};
27+ return {iapply: v => v1 => $0.apply(v)(v1), IxFunctor0: () => ixFunctorIndexed1};
28+ })();
29+ return {ipure: x => dictApplicative.pure(x), IxApply0: () => ixApplyIndexed1};
30+};
31+const ixMonadIndexed = dictMonad => {
32+ const $0 = dictMonad.Applicative0();
33+ const $1 = $0.Apply0();
34+ const ixApplicativeIndexed1 = (() => {
35+ const $2 = $1.Functor0();
36+ const ixFunctorIndexed1 = {imap: f => v => $2.map(f)(v)};
37+ const ixApplyIndexed1 = {iapply: v => v1 => $1.apply(v)(v1), IxFunctor0: () => ixFunctorIndexed1};
38+ return {ipure: x => $0.pure(x), IxApply0: () => ixApplyIndexed1};
39+ })();
40+ const $2 = dictMonad.Bind1();
41+ const $3 = $2.Apply0();
42+ const ixBindIndexed1 = (() => {
43+ const $4 = $3.Functor0();
44+ const ixFunctorIndexed1 = {imap: f => v => $4.map(f)(v)};
45+ const ixApplyIndexed1 = {iapply: v => v1 => $3.apply(v)(v1), IxFunctor0: () => ixFunctorIndexed1};
46+ return {ibind: v => f => $2.bind(v)(a => f(a)), IxApply0: () => ixApplyIndexed1};
47+ })();
48+ return {IxApplicative0: () => ixApplicativeIndexed1, IxBind1: () => ixBindIndexed1};
49+};
50+const functorIndexed = dictFunctor => dictFunctor;
51+const eqIndexed = dictEq => dictEq;
52+const eq1Indexed = dictEq1 => dictEq1;
53+const bindIndexed = dictBind => dictBind;
54+const applyIndexed = dictApply => dictApply;
55+const applicativeIndexed = dictApplicative => dictApplicative;
56+export {
57+ Indexed,
58+ applicativeIndexed,
59+ applyIndexed,
60+ bindIndexed,
61+ eq1Indexed,
62+ eqIndexed,
63+ functorIndexed,
64+ ixApplicativeIndexed,
65+ ixApplyIndexed,
66+ ixBindIndexed,
67+ ixFunctorIndexed,
68+ ixMonadIndexed,
69+ monadIndexed,
70+ newtypeIndexed,
71+ ord1Indexed,
72+ ordIndexed,
73+ showIndexed
74+};
output-es/Data.Int.Bits/foreign.jsnew file+48
@@ -0,0 +1,48 @@
1+// module Data.Int.Bits
2+
3+export const and = function (n1) {
4+ return function (n2) {
5+ /* jshint bitwise: false */
6+ return n1 & n2;
7+ };
8+};
9+
10+export const or = function (n1) {
11+ return function (n2) {
12+ /* jshint bitwise: false */
13+ return n1 | n2;
14+ };
15+};
16+
17+export const xor = function (n1) {
18+ return function (n2) {
19+ /* jshint bitwise: false */
20+ return n1 ^ n2;
21+ };
22+};
23+
24+export const shl = function (n1) {
25+ return function (n2) {
26+ /* jshint bitwise: false */
27+ return n1 << n2;
28+ };
29+};
30+
31+export const shr = function (n1) {
32+ return function (n2) {
33+ /* jshint bitwise: false */
34+ return n1 >> n2;
35+ };
36+};
37+
38+export const zshr = function (n1) {
39+ return function (n2) {
40+ /* jshint bitwise: false */
41+ return n1 >>> n2;
42+ };
43+};
44+
45+export const complement = function (n) {
46+ /* jshint bitwise: false */
47+ return ~n;
48+};
output-es/Data.Int.Bits/index.jsnew file+4
@@ -0,0 +1,4 @@
1+// | This module defines bitwise operations for the `Int` type.
2+import {and, complement, or, shl, shr, xor, zshr} from "./foreign.js";
3+export {};
4+export * from "./foreign.js";
output-es/Data.Int/foreign.jsnew file+65
@@ -0,0 +1,65 @@
1+export const fromNumberImpl = function (just) {
2+ return function (nothing) {
3+ return function (n) {
4+ /* jshint bitwise: false */
5+ return (n | 0) === n ? just(n) : nothing;
6+ };
7+ };
8+};
9+
10+export const toNumber = function (n) {
11+ return n;
12+};
13+
14+export const fromStringAsImpl = function (just) {
15+ return function (nothing) {
16+ return function (radix) {
17+ var digits;
18+ if (radix < 11) {
19+ digits = "[0-" + (radix - 1).toString() + "]";
20+ } else if (radix === 11) {
21+ digits = "[0-9a]";
22+ } else {
23+ digits = "[0-9a-" + String.fromCharCode(86 + radix) + "]";
24+ }
25+ var pattern = new RegExp("^[\\+\\-]?" + digits + "+$", "i");
26+
27+ return function (s) {
28+ /* jshint bitwise: false */
29+ if (pattern.test(s)) {
30+ var i = parseInt(s, radix);
31+ return (i | 0) === i ? just(i) : nothing;
32+ } else {
33+ return nothing;
34+ }
35+ };
36+ };
37+ };
38+};
39+
40+export const toStringAs = function (radix) {
41+ return function (i) {
42+ return i.toString(radix);
43+ };
44+};
45+
46+
47+export const quot = function (x) {
48+ return function (y) {
49+ /* jshint bitwise: false */
50+ return x / y | 0;
51+ };
52+};
53+
54+export const rem = function (x) {
55+ return function (y) {
56+ return x % y;
57+ };
58+};
59+
60+export const pow = function (x) {
61+ return function (y) {
62+ /* jshint bitwise: false */
63+ return Math.pow(x,y) | 0;
64+ };
65+};
output-es/Data.Int/index.jsnew file+122
@@ -0,0 +1,122 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dMaybe from "../Data.Maybe/index.js";
3+import * as Data$dNumber from "../Data.Number/index.js";
4+import * as Data$dOrdering from "../Data.Ordering/index.js";
5+import {fromNumberImpl, fromStringAsImpl, pow, quot, rem, toNumber, toStringAs} from "./foreign.js";
6+const $Parity = tag => tag;
7+const Even = /* #__PURE__ */ $Parity("Even");
8+const Odd = /* #__PURE__ */ $Parity("Odd");
9+const showParity = {
10+ show: v => {
11+ if (v === "Even") { return "Even"; }
12+ if (v === "Odd") { return "Odd"; }
13+ $runtime.fail();
14+ }
15+};
16+const radix = n => {
17+ if (n >= 2 && n <= 36) { return Data$dMaybe.$Maybe("Just", n); }
18+ return Data$dMaybe.Nothing;
19+};
20+const odd = x => (x & 1) !== 0;
21+const octal = 8;
22+const hexadecimal = 16;
23+const fromStringAs = /* #__PURE__ */ fromStringAsImpl(Data$dMaybe.Just)(Data$dMaybe.Nothing);
24+const fromString = /* #__PURE__ */ fromStringAs(10);
25+const fromNumber = /* #__PURE__ */ fromNumberImpl(Data$dMaybe.Just)(Data$dMaybe.Nothing);
26+const unsafeClamp = x => {
27+ if (!Data$dNumber.isFinite(x)) { return 0; }
28+ if (x >= toNumber(2147483647)) { return 2147483647; }
29+ if (x <= toNumber(-2147483648)) { return -2147483648; }
30+ const $0 = fromNumber(x);
31+ if ($0.tag === "Nothing") { return 0; }
32+ if ($0.tag === "Just") { return $0._1; }
33+ $runtime.fail();
34+};
35+const round = x => unsafeClamp(Data$dNumber.round(x));
36+const trunc = x => unsafeClamp(Data$dNumber.trunc(x));
37+const floor = x => unsafeClamp(Data$dNumber.floor(x));
38+const even = x => (x & 1) === 0;
39+const parity = n => {
40+ if ((n & 1) === 0) { return Even; }
41+ return Odd;
42+};
43+const eqParity = {
44+ eq: x => y => {
45+ if (x === "Even") { return y === "Even"; }
46+ return x === "Odd" && y === "Odd";
47+ }
48+};
49+const ordParity = {
50+ compare: x => y => {
51+ if (x === "Even") {
52+ if (y === "Even") { return Data$dOrdering.EQ; }
53+ return Data$dOrdering.LT;
54+ }
55+ if (y === "Even") { return Data$dOrdering.GT; }
56+ if (x === "Odd" && y === "Odd") { return Data$dOrdering.EQ; }
57+ $runtime.fail();
58+ },
59+ Eq0: () => eqParity
60+};
61+const semiringParity = {
62+ zero: Even,
63+ add: x => y => {
64+ if (x === "Even" ? y === "Even" : x === "Odd" && y === "Odd") { return Even; }
65+ return Odd;
66+ },
67+ one: Odd,
68+ mul: v => v1 => {
69+ if (v === "Odd" && v1 === "Odd") { return Odd; }
70+ return Even;
71+ }
72+};
73+const ringParity = /* #__PURE__ */ (() => ({sub: semiringParity.add, Semiring0: () => semiringParity}))();
74+const divisionRingParity = {recip: x => x, Ring0: () => ringParity};
75+const decimal = 10;
76+const commutativeRingParity = {Ring0: () => ringParity};
77+const euclideanRingParity = {
78+ degree: v => {
79+ if (v === "Even") { return 0; }
80+ if (v === "Odd") { return 1; }
81+ $runtime.fail();
82+ },
83+ div: x => v => x,
84+ mod: v => v1 => Even,
85+ CommutativeRing0: () => commutativeRingParity
86+};
87+const ceil = x => unsafeClamp(Data$dNumber.ceil(x));
88+const boundedParity = {bottom: Even, top: Odd, Ord0: () => ordParity};
89+const binary = 2;
90+const base36 = 36;
91+export {
92+ $Parity,
93+ Even,
94+ Odd,
95+ base36,
96+ binary,
97+ boundedParity,
98+ ceil,
99+ commutativeRingParity,
100+ decimal,
101+ divisionRingParity,
102+ eqParity,
103+ euclideanRingParity,
104+ even,
105+ floor,
106+ fromNumber,
107+ fromString,
108+ fromStringAs,
109+ hexadecimal,
110+ octal,
111+ odd,
112+ ordParity,
113+ parity,
114+ radix,
115+ ringParity,
116+ round,
117+ semiringParity,
118+ showParity,
119+ trunc,
120+ unsafeClamp
121+};
122+export * from "./foreign.js";
output-es/Data.Interval.Duration.Iso/index.jsnew file+423
@@ -0,0 +1,423 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEither from "../Data.Either/index.js";
3+import * as Data$dFoldable from "../Data.Foldable/index.js";
4+import * as Data$dInterval$dDuration from "../Data.Interval.Duration/index.js";
5+import * as Data$dList from "../Data.List/index.js";
6+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
7+import * as Data$dMap$dInternal from "../Data.Map.Internal/index.js";
8+import * as Data$dMaybe from "../Data.Maybe/index.js";
9+import * as Data$dNonEmpty from "../Data.NonEmpty/index.js";
10+import * as Data$dNumber from "../Data.Number/index.js";
11+import * as Data$dOrdering from "../Data.Ordering/index.js";
12+const $$$Error = (tag, _1) => ({tag, _1});
13+const lookup = k => {
14+ const go = go$a0$copy => {
15+ let go$a0 = go$a0$copy, go$c = true, go$r;
16+ while (go$c) {
17+ const v = go$a0;
18+ if (v.tag === "Leaf") {
19+ go$c = false;
20+ go$r = Data$dMaybe.Nothing;
21+ continue;
22+ }
23+ if (v.tag === "Node") {
24+ if (k === "Second") {
25+ if (v._3 === "Second") {
26+ go$c = false;
27+ go$r = Data$dMaybe.$Maybe("Just", v._4);
28+ continue;
29+ }
30+ go$a0 = v._5;
31+ continue;
32+ }
33+ if (v._3 === "Second") {
34+ go$a0 = v._6;
35+ continue;
36+ }
37+ if (k === "Minute") {
38+ if (v._3 === "Minute") {
39+ go$c = false;
40+ go$r = Data$dMaybe.$Maybe("Just", v._4);
41+ continue;
42+ }
43+ go$a0 = v._5;
44+ continue;
45+ }
46+ if (v._3 === "Minute") {
47+ go$a0 = v._6;
48+ continue;
49+ }
50+ if (k === "Hour") {
51+ if (v._3 === "Hour") {
52+ go$c = false;
53+ go$r = Data$dMaybe.$Maybe("Just", v._4);
54+ continue;
55+ }
56+ go$a0 = v._5;
57+ continue;
58+ }
59+ if (v._3 === "Hour") {
60+ go$a0 = v._6;
61+ continue;
62+ }
63+ if (k === "Day") {
64+ if (v._3 === "Day") {
65+ go$c = false;
66+ go$r = Data$dMaybe.$Maybe("Just", v._4);
67+ continue;
68+ }
69+ go$a0 = v._5;
70+ continue;
71+ }
72+ if (v._3 === "Day") {
73+ go$a0 = v._6;
74+ continue;
75+ }
76+ if (k === "Week") {
77+ if (v._3 === "Week") {
78+ go$c = false;
79+ go$r = Data$dMaybe.$Maybe("Just", v._4);
80+ continue;
81+ }
82+ go$a0 = v._5;
83+ continue;
84+ }
85+ if (v._3 === "Week") {
86+ go$a0 = v._6;
87+ continue;
88+ }
89+ if (k === "Month") {
90+ if (v._3 === "Month") {
91+ go$c = false;
92+ go$r = Data$dMaybe.$Maybe("Just", v._4);
93+ continue;
94+ }
95+ go$a0 = v._5;
96+ continue;
97+ }
98+ if (v._3 === "Month") {
99+ go$a0 = v._6;
100+ continue;
101+ }
102+ if (k === "Year" && v._3 === "Year") {
103+ go$c = false;
104+ go$r = Data$dMaybe.$Maybe("Just", v._4);
105+ continue;
106+ }
107+ }
108+ $runtime.fail();
109+ }
110+ return go$r;
111+ };
112+ return go;
113+};
114+const foldMap1 = /* #__PURE__ */ (() => Data$dList$dTypes.foldableList.foldMap(Data$dList$dTypes.monoidList))();
115+const foldMap2 = /* #__PURE__ */ (() => Data$dList$dTypes.foldableList.foldMap((() => {
116+ const semigroupAdditive1 = {append: v => v1 => v + v1};
117+ return {mempty: 0.0, Semigroup0: () => semigroupAdditive1};
118+})()))();
119+const fold = /* #__PURE__ */ (() => {
120+ const semigroupFn = {append: f => g => x => Data$dList$dTypes.foldableList.foldr(Data$dList$dTypes.Cons)(g(x))(f(x))};
121+ return Data$dFoldable.foldableArray.foldMap({mempty: v => Data$dList$dTypes.Nil, Semigroup0: () => semigroupFn})(Data$dFoldable.identity);
122+})();
123+const toUnfoldable = x => {
124+ const go = go$a0$copy => go$a1$copy => {
125+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
126+ while (go$c) {
127+ const source = go$a0, memo = go$a1;
128+ const v = Data$dMap$dInternal.stepUnfoldr(source);
129+ if (v.tag === "Nothing") {
130+ const go$1 = go$1$a0$copy => go$1$a1$copy => {
131+ let go$1$a0 = go$1$a0$copy, go$1$a1 = go$1$a1$copy, go$1$c = true, go$1$r;
132+ while (go$1$c) {
133+ const b = go$1$a0, v$1 = go$1$a1;
134+ if (v$1.tag === "Nil") {
135+ go$1$c = false;
136+ go$1$r = b;
137+ continue;
138+ }
139+ if (v$1.tag === "Cons") {
140+ go$1$a0 = Data$dList$dTypes.$List("Cons", v$1._1, b);
141+ go$1$a1 = v$1._2;
142+ continue;
143+ }
144+ $runtime.fail();
145+ }
146+ return go$1$r;
147+ };
148+ go$c = false;
149+ go$r = go$1(Data$dList$dTypes.Nil)(memo);
150+ continue;
151+ }
152+ if (v.tag === "Just") {
153+ go$a0 = v._1._2;
154+ go$a1 = Data$dList$dTypes.$List("Cons", v._1._1, memo);
155+ continue;
156+ }
157+ $runtime.fail();
158+ }
159+ return go$r;
160+ };
161+ return go(Data$dMap$dInternal.$MapIter("IterNode", x, Data$dMap$dInternal.IterLeaf))(Data$dList$dTypes.Nil);
162+};
163+const IsEmpty = /* #__PURE__ */ $$$Error("IsEmpty");
164+const InvalidWeekComponentUsage = /* #__PURE__ */ $$$Error("InvalidWeekComponentUsage");
165+const ContainsNegativeValue = value0 => $$$Error("ContainsNegativeValue", value0);
166+const InvalidFractionalUse = value0 => $$$Error("InvalidFractionalUse", value0);
167+const unIsoDuration = v => v;
168+const showIsoDuration = {show: v => "(IsoDuration (Duration " + Data$dInterval$dDuration.show(v) + "))"};
169+const showError = {
170+ show: v => {
171+ if (v.tag === "IsEmpty") { return "(IsEmpty)"; }
172+ if (v.tag === "InvalidWeekComponentUsage") { return "(InvalidWeekComponentUsage)"; }
173+ if (v.tag === "ContainsNegativeValue") {
174+ if (v._1 === "Minute") { return "(ContainsNegativeValue Minute)"; }
175+ if (v._1 === "Second") { return "(ContainsNegativeValue Second)"; }
176+ if (v._1 === "Hour") { return "(ContainsNegativeValue Hour)"; }
177+ if (v._1 === "Day") { return "(ContainsNegativeValue Day)"; }
178+ if (v._1 === "Week") { return "(ContainsNegativeValue Week)"; }
179+ if (v._1 === "Month") { return "(ContainsNegativeValue Month)"; }
180+ if (v._1 === "Year") { return "(ContainsNegativeValue Year)"; }
181+ $runtime.fail();
182+ }
183+ if (v.tag === "InvalidFractionalUse") {
184+ if (v._1 === "Minute") { return "(InvalidFractionalUse Minute)"; }
185+ if (v._1 === "Second") { return "(InvalidFractionalUse Second)"; }
186+ if (v._1 === "Hour") { return "(InvalidFractionalUse Hour)"; }
187+ if (v._1 === "Day") { return "(InvalidFractionalUse Day)"; }
188+ if (v._1 === "Week") { return "(InvalidFractionalUse Week)"; }
189+ if (v._1 === "Month") { return "(InvalidFractionalUse Month)"; }
190+ if (v._1 === "Year") { return "(InvalidFractionalUse Year)"; }
191+ }
192+ $runtime.fail();
193+ }
194+};
195+const prettyError = v => {
196+ if (v.tag === "IsEmpty") { return "Duration is empty (has no components)"; }
197+ if (v.tag === "InvalidWeekComponentUsage") { return "Week component of Duration is used with other components"; }
198+ if (v.tag === "ContainsNegativeValue") {
199+ if (v._1 === "Minute") { return "Component `Minute` contains negative value"; }
200+ if (v._1 === "Second") { return "Component `Second` contains negative value"; }
201+ if (v._1 === "Hour") { return "Component `Hour` contains negative value"; }
202+ if (v._1 === "Day") { return "Component `Day` contains negative value"; }
203+ if (v._1 === "Week") { return "Component `Week` contains negative value"; }
204+ if (v._1 === "Month") { return "Component `Month` contains negative value"; }
205+ if (v._1 === "Year") { return "Component `Year` contains negative value"; }
206+ $runtime.fail();
207+ }
208+ if (v.tag === "InvalidFractionalUse") {
209+ if (v._1 === "Minute") { return "Invalid usage of Fractional value at component `Minute`"; }
210+ if (v._1 === "Second") { return "Invalid usage of Fractional value at component `Second`"; }
211+ if (v._1 === "Hour") { return "Invalid usage of Fractional value at component `Hour`"; }
212+ if (v._1 === "Day") { return "Invalid usage of Fractional value at component `Day`"; }
213+ if (v._1 === "Week") { return "Invalid usage of Fractional value at component `Week`"; }
214+ if (v._1 === "Month") { return "Invalid usage of Fractional value at component `Month`"; }
215+ if (v._1 === "Year") { return "Invalid usage of Fractional value at component `Year`"; }
216+ }
217+ $runtime.fail();
218+};
219+const eqIsoDuration = {eq: x => y => Data$dInterval$dDuration.eq(x)(y)};
220+const ordIsoDuration = {compare: x => y => Data$dInterval$dDuration.compare(x)(y), Eq0: () => eqIsoDuration};
221+const eqError = {
222+ eq: x => y => {
223+ if (x.tag === "IsEmpty") { return y.tag === "IsEmpty"; }
224+ if (x.tag === "InvalidWeekComponentUsage") { return y.tag === "InvalidWeekComponentUsage"; }
225+ if (x.tag === "ContainsNegativeValue") {
226+ return y.tag === "ContainsNegativeValue" && (() => {
227+ if (x._1 === "Second") { return y._1 === "Second"; }
228+ if (x._1 === "Minute") { return y._1 === "Minute"; }
229+ if (x._1 === "Hour") { return y._1 === "Hour"; }
230+ if (x._1 === "Day") { return y._1 === "Day"; }
231+ if (x._1 === "Week") { return y._1 === "Week"; }
232+ if (x._1 === "Month") { return y._1 === "Month"; }
233+ return x._1 === "Year" && y._1 === "Year";
234+ })();
235+ }
236+ return x.tag === "InvalidFractionalUse" && y.tag === "InvalidFractionalUse" && (() => {
237+ if (x._1 === "Second") { return y._1 === "Second"; }
238+ if (x._1 === "Minute") { return y._1 === "Minute"; }
239+ if (x._1 === "Hour") { return y._1 === "Hour"; }
240+ if (x._1 === "Day") { return y._1 === "Day"; }
241+ if (x._1 === "Week") { return y._1 === "Week"; }
242+ if (x._1 === "Month") { return y._1 === "Month"; }
243+ return x._1 === "Year" && y._1 === "Year";
244+ })();
245+ }
246+};
247+const ordError = {
248+ compare: x => y => {
249+ if (x.tag === "IsEmpty") {
250+ if (y.tag === "IsEmpty") { return Data$dOrdering.EQ; }
251+ return Data$dOrdering.LT;
252+ }
253+ if (y.tag === "IsEmpty") { return Data$dOrdering.GT; }
254+ if (x.tag === "InvalidWeekComponentUsage") {
255+ if (y.tag === "InvalidWeekComponentUsage") { return Data$dOrdering.EQ; }
256+ return Data$dOrdering.LT;
257+ }
258+ if (y.tag === "InvalidWeekComponentUsage") { return Data$dOrdering.GT; }
259+ if (x.tag === "ContainsNegativeValue") {
260+ if (y.tag === "ContainsNegativeValue") {
261+ if (x._1 === "Second") {
262+ if (y._1 === "Second") { return Data$dOrdering.EQ; }
263+ return Data$dOrdering.LT;
264+ }
265+ if (y._1 === "Second") { return Data$dOrdering.GT; }
266+ if (x._1 === "Minute") {
267+ if (y._1 === "Minute") { return Data$dOrdering.EQ; }
268+ return Data$dOrdering.LT;
269+ }
270+ if (y._1 === "Minute") { return Data$dOrdering.GT; }
271+ if (x._1 === "Hour") {
272+ if (y._1 === "Hour") { return Data$dOrdering.EQ; }
273+ return Data$dOrdering.LT;
274+ }
275+ if (y._1 === "Hour") { return Data$dOrdering.GT; }
276+ if (x._1 === "Day") {
277+ if (y._1 === "Day") { return Data$dOrdering.EQ; }
278+ return Data$dOrdering.LT;
279+ }
280+ if (y._1 === "Day") { return Data$dOrdering.GT; }
281+ if (x._1 === "Week") {
282+ if (y._1 === "Week") { return Data$dOrdering.EQ; }
283+ return Data$dOrdering.LT;
284+ }
285+ if (y._1 === "Week") { return Data$dOrdering.GT; }
286+ if (x._1 === "Month") {
287+ if (y._1 === "Month") { return Data$dOrdering.EQ; }
288+ return Data$dOrdering.LT;
289+ }
290+ if (y._1 === "Month") { return Data$dOrdering.GT; }
291+ if (x._1 === "Year" && y._1 === "Year") { return Data$dOrdering.EQ; }
292+ $runtime.fail();
293+ }
294+ return Data$dOrdering.LT;
295+ }
296+ if (y.tag === "ContainsNegativeValue") { return Data$dOrdering.GT; }
297+ if (x.tag === "InvalidFractionalUse" && y.tag === "InvalidFractionalUse") {
298+ if (x._1 === "Second") {
299+ if (y._1 === "Second") { return Data$dOrdering.EQ; }
300+ return Data$dOrdering.LT;
301+ }
302+ if (y._1 === "Second") { return Data$dOrdering.GT; }
303+ if (x._1 === "Minute") {
304+ if (y._1 === "Minute") { return Data$dOrdering.EQ; }
305+ return Data$dOrdering.LT;
306+ }
307+ if (y._1 === "Minute") { return Data$dOrdering.GT; }
308+ if (x._1 === "Hour") {
309+ if (y._1 === "Hour") { return Data$dOrdering.EQ; }
310+ return Data$dOrdering.LT;
311+ }
312+ if (y._1 === "Hour") { return Data$dOrdering.GT; }
313+ if (x._1 === "Day") {
314+ if (y._1 === "Day") { return Data$dOrdering.EQ; }
315+ return Data$dOrdering.LT;
316+ }
317+ if (y._1 === "Day") { return Data$dOrdering.GT; }
318+ if (x._1 === "Week") {
319+ if (y._1 === "Week") { return Data$dOrdering.EQ; }
320+ return Data$dOrdering.LT;
321+ }
322+ if (y._1 === "Week") { return Data$dOrdering.GT; }
323+ if (x._1 === "Month") {
324+ if (y._1 === "Month") { return Data$dOrdering.EQ; }
325+ return Data$dOrdering.LT;
326+ }
327+ if (y._1 === "Month") { return Data$dOrdering.GT; }
328+ if (x._1 === "Year" && y._1 === "Year") { return Data$dOrdering.EQ; }
329+ }
330+ $runtime.fail();
331+ },
332+ Eq0: () => eqError
333+};
334+const checkWeekUsage = v => {
335+ if (
336+ (() => {
337+ const $0 = lookup(Data$dInterval$dDuration.Week)(v.asMap);
338+ return (() => {
339+ if ($0.tag === "Nothing") { return false; }
340+ if ($0.tag === "Just") { return true; }
341+ $runtime.fail();
342+ })() && (() => {
343+ if (v.asMap.tag === "Leaf") { return false; }
344+ if (v.asMap.tag === "Node") { return v.asMap._2 > 1; }
345+ $runtime.fail();
346+ })();
347+ })()
348+ ) {
349+ return Data$dList$dTypes.$List("Cons", InvalidWeekComponentUsage, Data$dList$dTypes.Nil);
350+ }
351+ return Data$dList$dTypes.Nil;
352+};
353+const checkNegativeValues = v => foldMap1(v1 => {
354+ if (v1._2 >= 0.0) { return Data$dList$dTypes.Nil; }
355+ return Data$dList$dTypes.$List("Cons", $$$Error("ContainsNegativeValue", v1._1), Data$dList$dTypes.Nil);
356+})(v.asList);
357+const checkFractionalUse = v => {
358+ const $0 = Data$dList.span(x => Data$dNumber.floor(x._2) === x._2)(v.asList);
359+ if ($0.rest.tag === "Cons" && foldMap2(x => Data$dNumber.abs(x._2))($0.rest._2) > 0.0) {
360+ return Data$dList$dTypes.$List("Cons", $$$Error("InvalidFractionalUse", $0.rest._1._1), Data$dList$dTypes.Nil);
361+ }
362+ return Data$dList$dTypes.Nil;
363+};
364+const checkEmptiness = v => {
365+ if (v.asList.tag === "Nil") { return Data$dList$dTypes.$List("Cons", IsEmpty, Data$dList$dTypes.Nil); }
366+ return Data$dList$dTypes.Nil;
367+};
368+const checkValidIsoDuration = v => fold([checkWeekUsage, checkEmptiness, checkFractionalUse, checkNegativeValues])({
369+ asList: (() => {
370+ const go = go$a0$copy => go$a1$copy => {
371+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
372+ while (go$c) {
373+ const v$1 = go$a0, v1 = go$a1;
374+ if (v1.tag === "Nil") {
375+ go$c = false;
376+ go$r = v$1;
377+ continue;
378+ }
379+ if (v1.tag === "Cons") {
380+ go$a0 = Data$dList$dTypes.$List("Cons", v1._1, v$1);
381+ go$a1 = v1._2;
382+ continue;
383+ }
384+ $runtime.fail();
385+ }
386+ return go$r;
387+ };
388+ return go(Data$dList$dTypes.Nil)(toUnfoldable(v));
389+ })(),
390+ asMap: v
391+});
392+const mkIsoDuration = d => {
393+ const $0 = checkValidIsoDuration(d);
394+ if ($0.tag === "Nil") { return Data$dEither.$Either("Right", d); }
395+ if ($0.tag === "Cons") { return Data$dEither.$Either("Left", Data$dNonEmpty.$NonEmpty($0._1, $0._2)); }
396+ $runtime.fail();
397+};
398+export {
399+ $$$Error,
400+ ContainsNegativeValue,
401+ InvalidFractionalUse,
402+ InvalidWeekComponentUsage,
403+ IsEmpty,
404+ checkEmptiness,
405+ checkFractionalUse,
406+ checkNegativeValues,
407+ checkValidIsoDuration,
408+ checkWeekUsage,
409+ eqError,
410+ eqIsoDuration,
411+ fold,
412+ foldMap1,
413+ foldMap2,
414+ lookup,
415+ mkIsoDuration,
416+ ordError,
417+ ordIsoDuration,
418+ prettyError,
419+ showError,
420+ showIsoDuration,
421+ toUnfoldable,
422+ unIsoDuration
423+};
output-es/Data.Interval.Duration/index.jsnew file+124
@@ -0,0 +1,124 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dEq from "../Data.Eq/index.js";
3+import * as Data$dMap$dInternal from "../Data.Map.Internal/index.js";
4+import * as Data$dOrd from "../Data.Ord/index.js";
5+import * as Data$dOrdering from "../Data.Ordering/index.js";
6+import * as Data$dSemiring from "../Data.Semiring/index.js";
7+import * as Data$dShow from "../Data.Show/index.js";
8+const $DurationComponent = tag => tag;
9+const Second = /* #__PURE__ */ $DurationComponent("Second");
10+const Minute = /* #__PURE__ */ $DurationComponent("Minute");
11+const Hour = /* #__PURE__ */ $DurationComponent("Hour");
12+const Day = /* #__PURE__ */ $DurationComponent("Day");
13+const Week = /* #__PURE__ */ $DurationComponent("Week");
14+const Month = /* #__PURE__ */ $DurationComponent("Month");
15+const Year = /* #__PURE__ */ $DurationComponent("Year");
16+const Duration = x => x;
17+const showDurationComponent = {
18+ show: v => {
19+ if (v === "Minute") { return "Minute"; }
20+ if (v === "Second") { return "Second"; }
21+ if (v === "Hour") { return "Hour"; }
22+ if (v === "Day") { return "Day"; }
23+ if (v === "Week") { return "Week"; }
24+ if (v === "Month") { return "Month"; }
25+ if (v === "Year") { return "Year"; }
26+ $runtime.fail();
27+ }
28+};
29+const show = /* #__PURE__ */ (() => Data$dMap$dInternal.showMap(showDurationComponent)(Data$dShow.showNumber).show)();
30+const showDuration = {show: v => "(Duration " + show(v) + ")"};
31+const newtypeDuration = {Coercible0: () => {}};
32+const eqDurationComponent = {
33+ eq: x => y => {
34+ if (x === "Second") { return y === "Second"; }
35+ if (x === "Minute") { return y === "Minute"; }
36+ if (x === "Hour") { return y === "Hour"; }
37+ if (x === "Day") { return y === "Day"; }
38+ if (x === "Week") { return y === "Week"; }
39+ if (x === "Month") { return y === "Month"; }
40+ return x === "Year" && y === "Year";
41+ }
42+};
43+const eq = /* #__PURE__ */ (() => Data$dMap$dInternal.eqMap(eqDurationComponent)(Data$dEq.eqNumber).eq)();
44+const ordDurationComponent = {
45+ compare: x => y => {
46+ if (x === "Second") {
47+ if (y === "Second") { return Data$dOrdering.EQ; }
48+ return Data$dOrdering.LT;
49+ }
50+ if (y === "Second") { return Data$dOrdering.GT; }
51+ if (x === "Minute") {
52+ if (y === "Minute") { return Data$dOrdering.EQ; }
53+ return Data$dOrdering.LT;
54+ }
55+ if (y === "Minute") { return Data$dOrdering.GT; }
56+ if (x === "Hour") {
57+ if (y === "Hour") { return Data$dOrdering.EQ; }
58+ return Data$dOrdering.LT;
59+ }
60+ if (y === "Hour") { return Data$dOrdering.GT; }
61+ if (x === "Day") {
62+ if (y === "Day") { return Data$dOrdering.EQ; }
63+ return Data$dOrdering.LT;
64+ }
65+ if (y === "Day") { return Data$dOrdering.GT; }
66+ if (x === "Week") {
67+ if (y === "Week") { return Data$dOrdering.EQ; }
68+ return Data$dOrdering.LT;
69+ }
70+ if (y === "Week") { return Data$dOrdering.GT; }
71+ if (x === "Month") {
72+ if (y === "Month") { return Data$dOrdering.EQ; }
73+ return Data$dOrdering.LT;
74+ }
75+ if (y === "Month") { return Data$dOrdering.GT; }
76+ if (x === "Year" && y === "Year") { return Data$dOrdering.EQ; }
77+ $runtime.fail();
78+ },
79+ Eq0: () => eqDurationComponent
80+};
81+const compare = /* #__PURE__ */ (() => Data$dMap$dInternal.ordMap(ordDurationComponent)(Data$dOrd.ordNumber).compare)();
82+const semigroupDuration = {append: v => v1 => Data$dMap$dInternal.unsafeUnionWith(ordDurationComponent.compare, Data$dSemiring.numAdd, v, v1)};
83+const monoidDuration = {mempty: Data$dMap$dInternal.Leaf, Semigroup0: () => semigroupDuration};
84+const eqDuration = {eq: x => y => eq(x)(y)};
85+const ordDuration = {compare: x => y => compare(x)(y), Eq0: () => eqDuration};
86+const hour = v => Data$dMap$dInternal.$$$Map("Node", 1, 1, Hour, v, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
87+const millisecond = x => Data$dMap$dInternal.$$$Map("Node", 1, 1, Second, x / 1000.0, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
88+const minute = v => Data$dMap$dInternal.$$$Map("Node", 1, 1, Minute, v, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
89+const month = v => Data$dMap$dInternal.$$$Map("Node", 1, 1, Month, v, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
90+const second = v => Data$dMap$dInternal.$$$Map("Node", 1, 1, Second, v, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
91+const week = v => Data$dMap$dInternal.$$$Map("Node", 1, 1, Week, v, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
92+const year = v => Data$dMap$dInternal.$$$Map("Node", 1, 1, Year, v, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
93+const day = v => Data$dMap$dInternal.$$$Map("Node", 1, 1, Day, v, Data$dMap$dInternal.Leaf, Data$dMap$dInternal.Leaf);
94+export {
95+ $DurationComponent,
96+ Day,
97+ Duration,
98+ Hour,
99+ Minute,
100+ Month,
101+ Second,
102+ Week,
103+ Year,
104+ compare,
105+ day,
106+ eq,
107+ eqDuration,
108+ eqDurationComponent,
109+ hour,
110+ millisecond,
111+ minute,
112+ monoidDuration,
113+ month,
114+ newtypeDuration,
115+ ordDuration,
116+ ordDurationComponent,
117+ second,
118+ semigroupDuration,
119+ show,
120+ showDuration,
121+ showDurationComponent,
122+ week,
123+ year
124+};
output-es/Data.Interval/index.jsnew file+331
@@ -0,0 +1,331 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dBifoldable from "../Data.Bifoldable/index.js";
3+import * as Data$dBitraversable from "../Data.Bitraversable/index.js";
4+import * as Data$dFoldable from "../Data.Foldable/index.js";
5+import * as Data$dOrd from "../Data.Ord/index.js";
6+import * as Data$dOrdering from "../Data.Ordering/index.js";
7+import * as Data$dShow from "../Data.Show/index.js";
8+import * as Data$dTraversable from "../Data.Traversable/index.js";
9+const $Interval = (tag, _1, _2) => ({tag, _1, _2});
10+const $RecurringInterval = (_1, _2) => ({tag: "RecurringInterval", _1, _2});
11+const show = v => {
12+ if (v.tag === "Just") { return "(Just " + Data$dShow.showIntImpl(v._1) + ")"; }
13+ if (v.tag === "Nothing") { return "Nothing"; }
14+ $runtime.fail();
15+};
16+const compare = x => y => {
17+ if (x.tag === "Nothing") {
18+ if (y.tag === "Nothing") { return Data$dOrdering.EQ; }
19+ return Data$dOrdering.LT;
20+ }
21+ if (y.tag === "Nothing") { return Data$dOrdering.GT; }
22+ if (x.tag === "Just" && y.tag === "Just") { return Data$dOrd.ordInt.compare(x._1)(y._1); }
23+ $runtime.fail();
24+};
25+const StartEnd = value0 => value1 => $Interval("StartEnd", value0, value1);
26+const DurationEnd = value0 => value1 => $Interval("DurationEnd", value0, value1);
27+const StartDuration = value0 => value1 => $Interval("StartDuration", value0, value1);
28+const DurationOnly = value0 => $Interval("DurationOnly", value0);
29+const RecurringInterval = value0 => value1 => $RecurringInterval(value0, value1);
30+const showInterval = dictShow => dictShow1 => (
31+ {
32+ show: v => {
33+ if (v.tag === "StartEnd") { return "(StartEnd " + dictShow1.show(v._1) + " " + dictShow1.show(v._2) + ")"; }
34+ if (v.tag === "DurationEnd") { return "(DurationEnd " + dictShow.show(v._1) + " " + dictShow1.show(v._2) + ")"; }
35+ if (v.tag === "StartDuration") { return "(StartDuration " + dictShow1.show(v._1) + " " + dictShow.show(v._2) + ")"; }
36+ if (v.tag === "DurationOnly") { return "(DurationOnly " + dictShow.show(v._1) + ")"; }
37+ $runtime.fail();
38+ }
39+ }
40+);
41+const showRecurringInterval = dictShow => dictShow1 => ({show: v => "(RecurringInterval " + show(v._1) + " " + showInterval(dictShow)(dictShow1).show(v._2) + ")"});
42+const over = dictFunctor => f => v => dictFunctor.map(RecurringInterval(v._1))(f(v._2));
43+const foldableInterval = {
44+ foldl: v => v1 => v2 => {
45+ if (v2.tag === "StartEnd") { return v(v(v1)(v2._1))(v2._2); }
46+ if (v2.tag === "DurationEnd") { return v(v1)(v2._2); }
47+ if (v2.tag === "StartDuration") { return v(v1)(v2._1); }
48+ return v1;
49+ },
50+ foldr: x => Data$dFoldable.foldrDefault(foldableInterval)(x),
51+ foldMap: dictMonoid => {
52+ const mempty = dictMonoid.mempty;
53+ return f => foldableInterval.foldl(acc => x => dictMonoid.Semigroup0().append(acc)(f(x)))(mempty);
54+ }
55+};
56+const foldableRecurringInterval = {
57+ foldl: f => i => x => {
58+ if (x._2.tag === "StartEnd") { return f(f(i)(x._2._1))(x._2._2); }
59+ if (x._2.tag === "DurationEnd") { return f(i)(x._2._2); }
60+ if (x._2.tag === "StartDuration") { return f(i)(x._2._1); }
61+ return i;
62+ },
63+ foldr: f => i => {
64+ const $0 = Data$dFoldable.foldrDefault(foldableInterval)(f)(i);
65+ return x => $0(x._2);
66+ },
67+ foldMap: dictMonoid => {
68+ const mempty = dictMonoid.mempty;
69+ return f => foldableRecurringInterval.foldl(acc => x => dictMonoid.Semigroup0().append(acc)(f(x)))(mempty);
70+ }
71+};
72+const eqInterval = dictEq => dictEq1 => (
73+ {
74+ eq: x => y => {
75+ if (x.tag === "StartEnd") { return y.tag === "StartEnd" && dictEq1.eq(x._1)(y._1) && dictEq1.eq(x._2)(y._2); }
76+ if (x.tag === "DurationEnd") { return y.tag === "DurationEnd" && dictEq.eq(x._1)(y._1) && dictEq1.eq(x._2)(y._2); }
77+ if (x.tag === "StartDuration") { return y.tag === "StartDuration" && dictEq1.eq(x._1)(y._1) && dictEq.eq(x._2)(y._2); }
78+ return x.tag === "DurationOnly" && y.tag === "DurationOnly" && dictEq.eq(x._1)(y._1);
79+ }
80+ }
81+);
82+const eqRecurringInterval = dictEq => dictEq1 => (
83+ {
84+ eq: x => y => (x._1.tag === "Nothing" ? y._1.tag === "Nothing" : x._1.tag === "Just" && y._1.tag === "Just" && x._1._1 === y._1._1) && eqInterval(dictEq)(dictEq1).eq(x._2)(y._2)
85+ }
86+);
87+const ordInterval = dictOrd => {
88+ const eqInterval1 = eqInterval(dictOrd.Eq0());
89+ return dictOrd1 => {
90+ const eqInterval2 = eqInterval1(dictOrd1.Eq0());
91+ return {
92+ compare: x => y => {
93+ if (x.tag === "StartEnd") {
94+ if (y.tag === "StartEnd") {
95+ const v = dictOrd1.compare(x._1)(y._1);
96+ if (v === "LT") { return Data$dOrdering.LT; }
97+ if (v === "GT") { return Data$dOrdering.GT; }
98+ return dictOrd1.compare(x._2)(y._2);
99+ }
100+ return Data$dOrdering.LT;
101+ }
102+ if (y.tag === "StartEnd") { return Data$dOrdering.GT; }
103+ if (x.tag === "DurationEnd") {
104+ if (y.tag === "DurationEnd") {
105+ const v = dictOrd.compare(x._1)(y._1);
106+ if (v === "LT") { return Data$dOrdering.LT; }
107+ if (v === "GT") { return Data$dOrdering.GT; }
108+ return dictOrd1.compare(x._2)(y._2);
109+ }
110+ return Data$dOrdering.LT;
111+ }
112+ if (y.tag === "DurationEnd") { return Data$dOrdering.GT; }
113+ if (x.tag === "StartDuration") {
114+ if (y.tag === "StartDuration") {
115+ const v = dictOrd1.compare(x._1)(y._1);
116+ if (v === "LT") { return Data$dOrdering.LT; }
117+ if (v === "GT") { return Data$dOrdering.GT; }
118+ return dictOrd.compare(x._2)(y._2);
119+ }
120+ return Data$dOrdering.LT;
121+ }
122+ if (y.tag === "StartDuration") { return Data$dOrdering.GT; }
123+ if (x.tag === "DurationOnly" && y.tag === "DurationOnly") { return dictOrd.compare(x._1)(y._1); }
124+ $runtime.fail();
125+ },
126+ Eq0: () => eqInterval2
127+ };
128+ };
129+};
130+const ordRecurringInterval = dictOrd => {
131+ const ordInterval1 = ordInterval(dictOrd);
132+ const eqRecurringInterval1 = eqRecurringInterval(dictOrd.Eq0());
133+ return dictOrd1 => {
134+ const eqRecurringInterval2 = eqRecurringInterval1(dictOrd1.Eq0());
135+ return {
136+ compare: x => y => {
137+ const v = compare(x._1)(y._1);
138+ if (v === "LT") { return Data$dOrdering.LT; }
139+ if (v === "GT") { return Data$dOrdering.GT; }
140+ return ordInterval1(dictOrd1).compare(x._2)(y._2);
141+ },
142+ Eq0: () => eqRecurringInterval2
143+ };
144+ };
145+};
146+const bifunctorInterval = {
147+ bimap: v => v1 => v2 => {
148+ if (v2.tag === "StartEnd") { return $Interval("StartEnd", v1(v2._1), v1(v2._2)); }
149+ if (v2.tag === "DurationEnd") { return $Interval("DurationEnd", v(v2._1), v1(v2._2)); }
150+ if (v2.tag === "StartDuration") { return $Interval("StartDuration", v1(v2._1), v(v2._2)); }
151+ if (v2.tag === "DurationOnly") { return $Interval("DurationOnly", v(v2._1)); }
152+ $runtime.fail();
153+ }
154+};
155+const bifunctorRecurringInterval = {
156+ bimap: f => g => v => $RecurringInterval(
157+ v._1,
158+ (() => {
159+ if (v._2.tag === "StartEnd") { return $Interval("StartEnd", g(v._2._1), g(v._2._2)); }
160+ if (v._2.tag === "DurationEnd") { return $Interval("DurationEnd", f(v._2._1), g(v._2._2)); }
161+ if (v._2.tag === "StartDuration") { return $Interval("StartDuration", g(v._2._1), f(v._2._2)); }
162+ if (v._2.tag === "DurationOnly") { return $Interval("DurationOnly", f(v._2._1)); }
163+ $runtime.fail();
164+ })()
165+ )
166+};
167+const functorInterval = {
168+ map: v1 => v2 => {
169+ if (v2.tag === "StartEnd") { return $Interval("StartEnd", v1(v2._1), v1(v2._2)); }
170+ if (v2.tag === "DurationEnd") { return $Interval("DurationEnd", v2._1, v1(v2._2)); }
171+ if (v2.tag === "StartDuration") { return $Interval("StartDuration", v1(v2._1), v2._2); }
172+ if (v2.tag === "DurationOnly") { return $Interval("DurationOnly", v2._1); }
173+ $runtime.fail();
174+ }
175+};
176+const extendInterval = {
177+ extend: v => v1 => {
178+ if (v1.tag === "StartEnd") { return $Interval("StartEnd", v(v1), v(v1)); }
179+ if (v1.tag === "DurationEnd") { return $Interval("DurationEnd", v1._1, v(v1)); }
180+ if (v1.tag === "StartDuration") { return $Interval("StartDuration", v(v1), v1._2); }
181+ if (v1.tag === "DurationOnly") { return $Interval("DurationOnly", v1._1); }
182+ $runtime.fail();
183+ },
184+ Functor0: () => functorInterval
185+};
186+const functorRecurringInterval = {
187+ map: f => v => $RecurringInterval(
188+ v._1,
189+ (() => {
190+ if (v._2.tag === "StartEnd") { return $Interval("StartEnd", f(v._2._1), f(v._2._2)); }
191+ if (v._2.tag === "DurationEnd") { return $Interval("DurationEnd", v._2._1, f(v._2._2)); }
192+ if (v._2.tag === "StartDuration") { return $Interval("StartDuration", f(v._2._1), v._2._2); }
193+ if (v._2.tag === "DurationOnly") { return $Interval("DurationOnly", v._2._1); }
194+ $runtime.fail();
195+ })()
196+ )
197+};
198+const extendRecurringInterval = {
199+ extend: f => v => $RecurringInterval(
200+ v._1,
201+ (() => {
202+ const $0 = f(v);
203+ if (v._2.tag === "StartEnd") { return $Interval("StartEnd", $0, $0); }
204+ if (v._2.tag === "DurationEnd") { return $Interval("DurationEnd", v._2._1, $0); }
205+ if (v._2.tag === "StartDuration") { return $Interval("StartDuration", $0, v._2._2); }
206+ if (v._2.tag === "DurationOnly") { return $Interval("DurationOnly", v._2._1); }
207+ $runtime.fail();
208+ })()
209+ ),
210+ Functor0: () => functorRecurringInterval
211+};
212+const traversableInterval = {
213+ traverse: dictApplicative => {
214+ const Apply0 = dictApplicative.Apply0();
215+ const Functor0 = Apply0.Functor0();
216+ return v => v1 => {
217+ if (v1.tag === "StartEnd") { return Apply0.apply(Functor0.map(StartEnd)(v(v1._1)))(v(v1._2)); }
218+ if (v1.tag === "DurationEnd") { return Functor0.map(DurationEnd(v1._1))(v(v1._2)); }
219+ if (v1.tag === "StartDuration") {
220+ const $0 = v1._2;
221+ return Functor0.map(v2 => $Interval("StartDuration", v2, $0))(v(v1._1));
222+ }
223+ if (v1.tag === "DurationOnly") { return dictApplicative.pure($Interval("DurationOnly", v1._1)); }
224+ $runtime.fail();
225+ };
226+ },
227+ sequence: dictApplicative => traversableInterval.traverse(dictApplicative)(Data$dTraversable.identity),
228+ Functor0: () => functorInterval,
229+ Foldable1: () => foldableInterval
230+};
231+const traversableRecurringInterval = {
232+ traverse: dictApplicative => {
233+ const over1 = over(dictApplicative.Apply0().Functor0());
234+ const traverse1 = traversableInterval.traverse(dictApplicative);
235+ return f => i => over1(traverse1(f))(i);
236+ },
237+ sequence: dictApplicative => traversableRecurringInterval.traverse(dictApplicative)(Data$dTraversable.identity),
238+ Functor0: () => functorRecurringInterval,
239+ Foldable1: () => foldableRecurringInterval
240+};
241+const bifoldableInterval = {
242+ bifoldl: v => v1 => v2 => v3 => {
243+ if (v3.tag === "StartEnd") { return v1(v1(v2)(v3._1))(v3._2); }
244+ if (v3.tag === "DurationEnd") { return v1(v(v2)(v3._1))(v3._2); }
245+ if (v3.tag === "StartDuration") { return v1(v(v2)(v3._2))(v3._1); }
246+ if (v3.tag === "DurationOnly") { return v(v2)(v3._1); }
247+ $runtime.fail();
248+ },
249+ bifoldr: x => Data$dBifoldable.bifoldrDefault(bifoldableInterval)(x),
250+ bifoldMap: dictMonoid => {
251+ const $0 = dictMonoid.Semigroup0();
252+ const mempty = dictMonoid.mempty;
253+ return f => g => bifoldableInterval.bifoldl(m => a => $0.append(m)(f(a)))(m => b => $0.append(m)(g(b)))(mempty);
254+ }
255+};
256+const bifoldableRecurringInterval = {
257+ bifoldl: f => g => i => x => {
258+ if (x._2.tag === "StartEnd") { return g(g(i)(x._2._1))(x._2._2); }
259+ if (x._2.tag === "DurationEnd") { return g(f(i)(x._2._1))(x._2._2); }
260+ if (x._2.tag === "StartDuration") { return g(f(i)(x._2._2))(x._2._1); }
261+ if (x._2.tag === "DurationOnly") { return f(i)(x._2._1); }
262+ $runtime.fail();
263+ },
264+ bifoldr: f => g => i => {
265+ const $0 = Data$dBifoldable.bifoldrDefault(bifoldableInterval)(f)(g)(i);
266+ return x => $0(x._2);
267+ },
268+ bifoldMap: dictMonoid => {
269+ const $0 = dictMonoid.Semigroup0();
270+ const mempty = dictMonoid.mempty;
271+ return f => g => bifoldableRecurringInterval.bifoldl(m => a => $0.append(m)(f(a)))(m => b => $0.append(m)(g(b)))(mempty);
272+ }
273+};
274+const bitraversableInterval = {
275+ bitraverse: dictApplicative => {
276+ const Apply0 = dictApplicative.Apply0();
277+ const $0 = Apply0.Functor0();
278+ return v => v1 => v2 => {
279+ if (v2.tag === "StartEnd") { return Apply0.apply($0.map(StartEnd)(v1(v2._1)))(v1(v2._2)); }
280+ if (v2.tag === "DurationEnd") { return Apply0.apply($0.map(DurationEnd)(v(v2._1)))(v1(v2._2)); }
281+ if (v2.tag === "StartDuration") { return Apply0.apply($0.map(StartDuration)(v1(v2._1)))(v(v2._2)); }
282+ if (v2.tag === "DurationOnly") { return $0.map(DurationOnly)(v(v2._1)); }
283+ $runtime.fail();
284+ };
285+ },
286+ bisequence: dictApplicative => bitraversableInterval.bitraverse(dictApplicative)(Data$dBitraversable.identity)(Data$dBitraversable.identity),
287+ Bifunctor0: () => bifunctorInterval,
288+ Bifoldable1: () => bifoldableInterval
289+};
290+const bitraversableRecurringInterval = {
291+ bitraverse: dictApplicative => {
292+ const over1 = over(dictApplicative.Apply0().Functor0());
293+ const bitraverse1 = bitraversableInterval.bitraverse(dictApplicative);
294+ return l => r => i => over1(bitraverse1(l)(r))(i);
295+ },
296+ bisequence: dictApplicative => bitraversableRecurringInterval.bitraverse(dictApplicative)(Data$dBitraversable.identity)(Data$dBitraversable.identity),
297+ Bifunctor0: () => bifunctorRecurringInterval,
298+ Bifoldable1: () => bifoldableRecurringInterval
299+};
300+export {
301+ $Interval,
302+ $RecurringInterval,
303+ DurationEnd,
304+ DurationOnly,
305+ RecurringInterval,
306+ StartDuration,
307+ StartEnd,
308+ bifoldableInterval,
309+ bifoldableRecurringInterval,
310+ bifunctorInterval,
311+ bifunctorRecurringInterval,
312+ bitraversableInterval,
313+ bitraversableRecurringInterval,
314+ compare,
315+ eqInterval,
316+ eqRecurringInterval,
317+ extendInterval,
318+ extendRecurringInterval,
319+ foldableInterval,
320+ foldableRecurringInterval,
321+ functorInterval,
322+ functorRecurringInterval,
323+ ordInterval,
324+ ordRecurringInterval,
325+ over,
326+ show,
327+ showInterval,
328+ showRecurringInterval,
329+ traversableInterval,
330+ traversableRecurringInterval
331+};
output-es/Data.JSDate/foreign.jsnew file+83
@@ -0,0 +1,83 @@
1+// global exports
2+var createDate = function(y, m, d, h, mi, s, ms) {
3+ var date = new Date(Date.UTC(y, m, d, h, mi, s, ms));
4+ if (y >= 0 && y < 100) {
5+ date.setUTCFullYear(y);
6+ }
7+ return date;
8+};
9+
10+var createLocalDate = function(y, m, d, h, mi, s, ms) {
11+ var date = new Date(y, m, d, h, mi, s, ms);
12+ if (y >= 0 && y < 100) {
13+ date.setFullYear(y);
14+ }
15+ return date;
16+};
17+
18+export function now() {
19+ return new Date();
20+}
21+
22+export function isValid(date) {
23+ return !isNaN(date.getTime());
24+}
25+
26+export function toInstantImpl(just) {
27+ return function(nothing) {
28+ return function(date) {
29+ var t = date.getTime();
30+ return isNaN(t) ? nothing : just(t);
31+ };
32+ };
33+}
34+
35+export function fromInstant(instant) {
36+ return new Date(instant);
37+}
38+
39+export function jsdate(parts) {
40+ return createDate(
41+ parts.year,
42+ parts.month,
43+ parts.day,
44+ parts.hour,
45+ parts.minute,
46+ parts.second,
47+ parts.millisecond
48+ );
49+}
50+
51+export function jsdateLocal(parts) {
52+ return function() {
53+ return createLocalDate(
54+ parts.year,
55+ parts.month,
56+ parts.day,
57+ parts.hour,
58+ parts.minute,
59+ parts.second,
60+ parts.millisecond
61+ );
62+ };
63+}
64+
65+export function dateMethod(method, date) {
66+ return date[method]();
67+}
68+
69+export function dateMethodEff(method, date) {
70+ return function() {
71+ return date[method]();
72+ };
73+}
74+
75+export function parse(dateString) {
76+ return function() {
77+ return new Date(dateString);
78+ };
79+}
80+
81+export function fromTime(time) {
82+ return new Date(time);
83+}
output-es/Data.JSDate/index.jsnew file+123
@@ -0,0 +1,123 @@
1+// | A module providing a type and operations for the native JavaScript `Date`
2+// | object.
3+// |
4+// | The `JSDate` type and associated functions are provided for interop
5+// | purposes with JavaScript, but for working with dates in PureScript it is
6+// | recommended that `DateTime` representation is used instead - `DateTime`
7+// | offers greater type safety, a more PureScript-friendly interface, and has
8+// | a `Generic` instance.
9+import * as $runtime from "../runtime.js";
10+import * as Data$dDateTime$dInstant from "../Data.DateTime.Instant/index.js";
11+import * as Data$dIdentity from "../Data.Identity/index.js";
12+import * as Data$dInt from "../Data.Int/index.js";
13+import * as Data$dMaybe from "../Data.Maybe/index.js";
14+import * as Data$dOrd from "../Data.Ord/index.js";
15+import * as Data$dShow from "../Data.Show/index.js";
16+import * as Foreign from "../Foreign/index.js";
17+import {dateMethod, dateMethodEff, fromInstant, fromTime, isValid, jsdate, jsdateLocal, now, parse, toInstantImpl} from "./foreign.js";
18+const toUTCString = dt => dateMethod("toUTCString", dt);
19+const toTimeString = dt => dateMethod("toTimeString", dt);
20+const toString = dt => dateMethod("toString", dt);
21+const toInstant = /* #__PURE__ */ (() => {
22+ const $0 = toInstantImpl(Data$dMaybe.Just)(Data$dMaybe.Nothing);
23+ return a => {
24+ const $1 = $0(a);
25+ if ($1.tag === "Just") {
26+ if ($1._1 >= -8639977881600000.0 && $1._1 <= 8639977881599999.0) { return Data$dMaybe.$Maybe("Just", $1._1); }
27+ return Data$dMaybe.Nothing;
28+ }
29+ if ($1.tag === "Nothing") { return Data$dMaybe.Nothing; }
30+ $runtime.fail();
31+ };
32+})();
33+const toISOString = dt => dateMethodEff("toISOString", dt);
34+const toDateTime = x => {
35+ const $0 = toInstant(x);
36+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dDateTime$dInstant.toDateTime($0._1)); }
37+ return Data$dMaybe.Nothing;
38+};
39+const toDateString = dt => dateMethod("toDateString", dt);
40+const toDate = x => {
41+ const $0 = toInstant(x);
42+ if ($0.tag === "Just") { return Data$dMaybe.$Maybe("Just", Data$dDateTime$dInstant.toDateTime($0._1)._1); }
43+ return Data$dMaybe.Nothing;
44+};
45+const readDate = /* #__PURE__ */ Foreign.unsafeReadTagged(Data$dIdentity.monadIdentity)("Date");
46+const getUTCSeconds = dt => dateMethod("getUTCSeconds", dt);
47+const getUTCMonth = dt => dateMethod("getUTCMonth", dt);
48+const getUTCMinutes = dt => dateMethod("getUTCMinutes", dt);
49+const getUTCMilliseconds = dt => dateMethod("getUTCMilliseconds", dt);
50+const getUTCHours = dt => dateMethod("getUTCHours", dt);
51+const getUTCFullYear = dt => dateMethod("getUTCFullYear", dt);
52+const getUTCDay = dt => dateMethod("getUTCDay", dt);
53+const getUTCDate = dt => dateMethod("getUTCDate", dt);
54+const getTimezoneOffset = dt => dateMethodEff("getTimezoneOffset", dt);
55+const getTime = dt => dateMethod("getTime", dt);
56+const showJSDate = {show: a => "(fromTime " + Data$dShow.showNumberImpl(dateMethod("getTime", a)) + ")"};
57+const getSeconds = dt => dateMethodEff("getSeconds", dt);
58+const getMonth = dt => dateMethodEff("getMonth", dt);
59+const getMinutes = dt => dateMethodEff("getMinutes", dt);
60+const getMilliseconds = dt => dateMethodEff("getMilliseconds", dt);
61+const getHours = dt => dateMethodEff("getHours", dt);
62+const getFullYear = dt => dateMethodEff("getFullYear", dt);
63+const getDay = dt => dateMethodEff("getDay", dt);
64+const getDate = dt => dateMethodEff("getDate", dt);
65+const fromDateTime = v => jsdate({
66+ year: Data$dInt.toNumber(v._1._1),
67+ month: Data$dInt.toNumber((() => {
68+ if (v._1._2 === "January") { return 0; }
69+ if (v._1._2 === "February") { return 1; }
70+ if (v._1._2 === "March") { return 2; }
71+ if (v._1._2 === "April") { return 3; }
72+ if (v._1._2 === "May") { return 4; }
73+ if (v._1._2 === "June") { return 5; }
74+ if (v._1._2 === "July") { return 6; }
75+ if (v._1._2 === "August") { return 7; }
76+ if (v._1._2 === "September") { return 8; }
77+ if (v._1._2 === "October") { return 9; }
78+ if (v._1._2 === "November") { return 10; }
79+ if (v._1._2 === "December") { return 11; }
80+ $runtime.fail();
81+ })()),
82+ day: Data$dInt.toNumber(v._1._3),
83+ hour: Data$dInt.toNumber(v._2._1),
84+ minute: Data$dInt.toNumber(v._2._2),
85+ second: Data$dInt.toNumber(v._2._3),
86+ millisecond: Data$dInt.toNumber(v._2._4)
87+});
88+const eqJSDate = {eq: a => b => dateMethod("getTime", a) === dateMethod("getTime", b)};
89+const ordJSDate = {compare: a => b => Data$dOrd.ordNumber.compare(dateMethod("getTime", a))(dateMethod("getTime", b)), Eq0: () => eqJSDate};
90+export {
91+ eqJSDate,
92+ fromDateTime,
93+ getDate,
94+ getDay,
95+ getFullYear,
96+ getHours,
97+ getMilliseconds,
98+ getMinutes,
99+ getMonth,
100+ getSeconds,
101+ getTime,
102+ getTimezoneOffset,
103+ getUTCDate,
104+ getUTCDay,
105+ getUTCFullYear,
106+ getUTCHours,
107+ getUTCMilliseconds,
108+ getUTCMinutes,
109+ getUTCMonth,
110+ getUTCSeconds,
111+ ordJSDate,
112+ readDate,
113+ showJSDate,
114+ toDate,
115+ toDateString,
116+ toDateTime,
117+ toISOString,
118+ toInstant,
119+ toString,
120+ toTimeString,
121+ toUTCString
122+};
123+export * from "./foreign.js";
output-es/Data.Lazy/foreign.jsnew file+14
@@ -0,0 +1,14 @@
1+export const defer = function (thunk) {
2+ var v = null;
3+ return function() {
4+ if (thunk === undefined) return v;
5+
6+ v = thunk();
7+ thunk = undefined; // eslint-disable-line no-param-reassign
8+ return v;
9+ };
10+};
11+
12+export const force = function (l) {
13+ return l();
14+};
output-es/Data.Lazy/index.jsnew file+143
@@ -0,0 +1,143 @@
1+import {defer, force} from "./foreign.js";
2+const showLazy = dictShow => ({show: x => "(defer \\_ -> " + dictShow.show(force(x)) + ")"});
3+const semiringLazy = dictSemiring => {
4+ const zero = dictSemiring.zero;
5+ const one = dictSemiring.one;
6+ return {
7+ add: a => b => defer(v => dictSemiring.add(force(a))(force(b))),
8+ zero: defer(v => zero),
9+ mul: a => b => defer(v => dictSemiring.mul(force(a))(force(b))),
10+ one: defer(v => one)
11+ };
12+};
13+const semigroupLazy = dictSemigroup => ({append: a => b => defer(v => dictSemigroup.append(force(a))(force(b)))});
14+const ringLazy = dictRing => {
15+ const semiringLazy1 = semiringLazy(dictRing.Semiring0());
16+ return {sub: a => b => defer(v => dictRing.sub(force(a))(force(b))), Semiring0: () => semiringLazy1};
17+};
18+const monoidLazy = dictMonoid => {
19+ const mempty = dictMonoid.mempty;
20+ const semigroupLazy1 = semigroupLazy(dictMonoid.Semigroup0());
21+ return {mempty: defer(v => mempty), Semigroup0: () => semigroupLazy1};
22+};
23+const lazyLazy = {defer: f => defer(v => force(f()))};
24+const functorLazy = {map: f => l => defer(v => f(force(l)))};
25+const functorWithIndexLazy = {mapWithIndex: f => functorLazy.map(f()), Functor0: () => functorLazy};
26+const invariantLazy = {imap: f => v => functorLazy.map(f)};
27+const foldableLazy = {foldr: f => z => l => f(force(l))(z), foldl: f => z => l => f(z)(force(l)), foldMap: dictMonoid => f => l => f(force(l))};
28+const foldableWithIndexLazy = {
29+ foldrWithIndex: f => foldableLazy.foldr(f()),
30+ foldlWithIndex: f => foldableLazy.foldl(f()),
31+ foldMapWithIndex: dictMonoid => f => foldableLazy.foldMap(dictMonoid)(f()),
32+ Foldable0: () => foldableLazy
33+};
34+const traversableLazy = {
35+ traverse: dictApplicative => f => l => dictApplicative.Apply0().Functor0().map(x => defer(v => x))(f(force(l))),
36+ sequence: dictApplicative => l => dictApplicative.Apply0().Functor0().map(x => defer(v => x))(force(l)),
37+ Functor0: () => functorLazy,
38+ Foldable1: () => foldableLazy
39+};
40+const traversableWithIndexLazy = {
41+ traverseWithIndex: dictApplicative => f => traversableLazy.traverse(dictApplicative)(f()),
42+ FunctorWithIndex0: () => functorWithIndexLazy,
43+ FoldableWithIndex1: () => foldableWithIndexLazy,
44+ Traversable2: () => traversableLazy
45+};
46+const foldable1Lazy = {foldMap1: dictSemigroup => f => l => f(force(l)), foldr1: v => l => force(l), foldl1: v => l => force(l), Foldable0: () => foldableLazy};
47+const traversable1Lazy = {
48+ traverse1: dictApply => f => l => dictApply.Functor0().map(x => defer(v => x))(f(force(l))),
49+ sequence1: dictApply => l => dictApply.Functor0().map(x => defer(v => x))(force(l)),
50+ Foldable10: () => foldable1Lazy,
51+ Traversable1: () => traversableLazy
52+};
53+const extendLazy = {extend: f => x => defer(v => f(x)), Functor0: () => functorLazy};
54+const eqLazy = dictEq => ({eq: x => y => dictEq.eq(force(x))(force(y))});
55+const ordLazy = dictOrd => {
56+ const $0 = dictOrd.Eq0();
57+ const eqLazy1 = {eq: x => y => $0.eq(force(x))(force(y))};
58+ return {compare: x => y => dictOrd.compare(force(x))(force(y)), Eq0: () => eqLazy1};
59+};
60+const eq1Lazy = {eq1: dictEq => x => y => dictEq.eq(force(x))(force(y))};
61+const ord1Lazy = {compare1: dictOrd => ordLazy(dictOrd).compare, Eq10: () => eq1Lazy};
62+const comonadLazy = {extract: force, Extend0: () => extendLazy};
63+const commutativeRingLazy = dictCommutativeRing => {
64+ const ringLazy1 = ringLazy(dictCommutativeRing.Ring0());
65+ return {Ring0: () => ringLazy1};
66+};
67+const euclideanRingLazy = dictEuclideanRing => {
68+ const ringLazy1 = ringLazy(dictEuclideanRing.CommutativeRing0().Ring0());
69+ return {
70+ degree: x => dictEuclideanRing.degree(force(x)),
71+ div: a => b => defer(v => dictEuclideanRing.div(force(a))(force(b))),
72+ mod: a => b => defer(v => dictEuclideanRing.mod(force(a))(force(b))),
73+ CommutativeRing0: () => ({Ring0: () => ringLazy1})
74+ };
75+};
76+const boundedLazy = dictBounded => {
77+ const top = dictBounded.top;
78+ const bottom = dictBounded.bottom;
79+ const ordLazy1 = ordLazy(dictBounded.Ord0());
80+ return {top: defer(v => top), bottom: defer(v => bottom), Ord0: () => ordLazy1};
81+};
82+const applyLazy = {apply: f => x => defer(v => force(f)(force(x))), Functor0: () => functorLazy};
83+const bindLazy = {bind: l => f => defer(v => force(f(force(l)))), Apply0: () => applyLazy};
84+const heytingAlgebraLazy = dictHeytingAlgebra => {
85+ const ff = dictHeytingAlgebra.ff;
86+ const tt = dictHeytingAlgebra.tt;
87+ return {
88+ ff: defer(v => ff),
89+ tt: defer(v => tt),
90+ implies: a => b => {
91+ const $0 = defer(v => dictHeytingAlgebra.implies(force(a)));
92+ return defer(v => force($0)(force(b)));
93+ },
94+ conj: a => b => {
95+ const $0 = defer(v => dictHeytingAlgebra.conj(force(a)));
96+ return defer(v => force($0)(force(b)));
97+ },
98+ disj: a => b => {
99+ const $0 = defer(v => dictHeytingAlgebra.disj(force(a)));
100+ return defer(v => force($0)(force(b)));
101+ },
102+ not: a => defer(v => dictHeytingAlgebra.not(force(a)))
103+ };
104+};
105+const booleanAlgebraLazy = dictBooleanAlgebra => {
106+ const heytingAlgebraLazy1 = heytingAlgebraLazy(dictBooleanAlgebra.HeytingAlgebra0());
107+ return {HeytingAlgebra0: () => heytingAlgebraLazy1};
108+};
109+const applicativeLazy = {pure: a => defer(v => a), Apply0: () => applyLazy};
110+const monadLazy = {Applicative0: () => applicativeLazy, Bind1: () => bindLazy};
111+export {
112+ applicativeLazy,
113+ applyLazy,
114+ bindLazy,
115+ booleanAlgebraLazy,
116+ boundedLazy,
117+ commutativeRingLazy,
118+ comonadLazy,
119+ eq1Lazy,
120+ eqLazy,
121+ euclideanRingLazy,
122+ extendLazy,
123+ foldable1Lazy,
124+ foldableLazy,
125+ foldableWithIndexLazy,
126+ functorLazy,
127+ functorWithIndexLazy,
128+ heytingAlgebraLazy,
129+ invariantLazy,
130+ lazyLazy,
131+ monadLazy,
132+ monoidLazy,
133+ ord1Lazy,
134+ ordLazy,
135+ ringLazy,
136+ semigroupLazy,
137+ semiringLazy,
138+ showLazy,
139+ traversable1Lazy,
140+ traversableLazy,
141+ traversableWithIndexLazy
142+};
143+export * from "./foreign.js";
output-es/Data.List.Internal/index.jsnew file+155
@@ -0,0 +1,155 @@
1+import * as $runtime from "../runtime.js";
2+import * as Data$dList$dTypes from "../Data.List.Types/index.js";
3+const $KickUp = (_1, _2, _3) => ({tag: "KickUp", _1, _2, _3});
4+const $$$Set = (tag, _1, _2, _3, _4, _5) => ({tag, _1, _2, _3, _4, _5});
5+const $TreeContext = (tag, _1, _2, _3, _4) => ({tag, _1, _2, _3, _4});
6+const Leaf = /* #__PURE__ */ $$$Set("Leaf");
7+const Two = value0 => value1 => value2 => $$$Set("Two", value0, value1, value2);
8+const Three = value0 => value1 => value2 => value3 => value4 => $$$Set("Three", value0, value1, value2, value3, value4);
9+const TwoLeft = value0 => value1 => $TreeContext("TwoLeft", value0, value1);
10+const TwoRight = value0 => value1 => $TreeContext("TwoRight", value0, value1);
11+const ThreeLeft = value0 => value1 => value2 => value3 => $TreeContext("ThreeLeft", value0, value1, value2, value3);
12+const ThreeMiddle = value0 => value1 => value2 => value3 => $TreeContext("ThreeMiddle", value0, value1, value2, value3);
13+const ThreeRight = value0 => value1 => value2 => value3 => $TreeContext("ThreeRight", value0, value1, value2, value3);
14+const KickUp = value0 => value1 => value2 => $KickUp(value0, value1, value2);
15+const fromZipper = fromZipper$a0$copy => fromZipper$a1$copy => {
16+ let fromZipper$a0 = fromZipper$a0$copy, fromZipper$a1 = fromZipper$a1$copy, fromZipper$c = true, fromZipper$r;
17+ while (fromZipper$c) {
18+ const v = fromZipper$a0, v1 = fromZipper$a1;
19+ if (v.tag === "Nil") {
20+ fromZipper$c = false;
21+ fromZipper$r = v1;
22+ continue;
23+ }
24+ if (v.tag === "Cons") {
25+ if (v._1.tag === "TwoLeft") {
26+ fromZipper$a0 = v._2;
27+ fromZipper$a1 = $$$Set("Two", v1, v._1._1, v._1._2);
28+ continue;
29+ }
30+ if (v._1.tag === "TwoRight") {
31+ fromZipper$a0 = v._2;
32+ fromZipper$a1 = $$$Set("Two", v._1._1, v._1._2, v1);
33+ continue;
34+ }
35+ if (v._1.tag === "ThreeLeft") {
36+ fromZipper$a0 = v._2;
37+ fromZipper$a1 = $$$Set("Three", v1, v._1._1, v._1._2, v._1._3, v._1._4);
38+ continue;
39+ }
40+ if (v._1.tag === "ThreeMiddle") {
41+ fromZipper$a0 = v._2;
42+ fromZipper$a1 = $$$Set("Three", v._1._1, v._1._2, v1, v._1._3, v._1._4);
43+ continue;
44+ }
45+ if (v._1.tag === "ThreeRight") {
46+ fromZipper$a0 = v._2;
47+ fromZipper$a1 = $$$Set("Three", v._1._1, v._1._2, v._1._3, v._1._4, v1);
48+ continue;
49+ }
50+ }
51+ $runtime.fail();
52+ }
53+ return fromZipper$r;
54+};
55+const insertAndLookupBy = comp => k => orig => {
56+ const up = up$a0$copy => up$a1$copy => {
57+ let up$a0 = up$a0$copy, up$a1 = up$a1$copy, up$c = true, up$r;
58+ while (up$c) {
59+ const v = up$a0, v1 = up$a1;
60+ if (v.tag === "Nil") {
61+ up$c = false;
62+ up$r = $$$Set("Two", v1._1, v1._2, v1._3);
63+ continue;
64+ }
65+ if (v.tag === "Cons") {
66+ if (v._1.tag === "TwoLeft") {
67+ up$c = false;
68+ up$r = fromZipper(v._2)($$$Set("Three", v1._1, v1._2, v1._3, v._1._1, v._1._2));
69+ continue;
70+ }
71+ if (v._1.tag === "TwoRight") {
72+ up$c = false;
73+ up$r = fromZipper(v._2)($$$Set("Three", v._1._1, v._1._2, v1._1, v1._2, v1._3));
74+ continue;
75+ }
76+ if (v._1.tag === "ThreeLeft") {
77+ up$a0 = v._2;
78+ up$a1 = $KickUp($$$Set("Two", v1._1, v1._2, v1._3), v._1._1, $$$Set("Two", v._1._2, v._1._3, v._1._4));
79+ continue;
80+ }
81+ if (v._1.tag === "ThreeMiddle") {
82+ up$a0 = v._2;
83+ up$a1 = $KickUp($$$Set("Two", v._1._1, v._1._2, v1._1), v1._2, $$$Set("Two", v1._3, v._1._3, v._1._4));
84+ continue;
85+ }
86+ if (v._1.tag === "ThreeRight") {
87+ up$a0 = v._2;
88+ up$a1 = $KickUp($$$Set("Two", v._1._1, v._1._2, v._1._3), v._1._4, $$$Set("Two", v1._1, v1._2, v1._3));
89+ continue;
90+ }
91+ }
92+ $runtime.fail();
93+ }
94+ return up$r;
95+ };
96+ const down = down$a0$copy => down$a1$copy => {
97+ let down$a0 = down$a0$copy, down$a1 = down$a1$copy, down$c = true, down$r;
98+ while (down$c) {
99+ const v = down$a0, v1 = down$a1;
100+ if (v1.tag === "Leaf") {
101+ down$c = false;
102+ down$r = {found: false, result: up(v)($KickUp(Leaf, k, Leaf))};
103+ continue;
104+ }
105+ if (v1.tag === "Two") {
106+ const v2 = comp(k)(v1._2);
107+ if (v2 === "EQ") {
108+ down$c = false;
109+ down$r = {found: true, result: orig};
110+ continue;
111+ }
112+ if (v2 === "LT") {
113+ down$a0 = Data$dList$dTypes.$List("Cons", $TreeContext("TwoLeft", v1._2, v1._3), v);
114+ down$a1 = v1._1;
115+ continue;
116+ }
117+ down$a0 = Data$dList$dTypes.$List("Cons", $TreeContext("TwoRight", v1._1, v1._2), v);
118+ down$a1 = v1._3;
119+ continue;
120+ }
121+ if (v1.tag === "Three") {
122+ const v2 = comp(k)(v1._2);
123+ if (v2 === "EQ") {
124+ down$c = false;
125+ down$r = {found: true, result: orig};
126+ continue;
127+ }
128+ const v3 = comp(k)(v1._4);
129+ if (v3 === "EQ") {
130+ down$c = false;
131+ down$r = {found: true, result: orig};
132+ continue;
133+ }
134+ if (v2 === "LT") {
135+ down$a0 = Data$dList$dTypes.$List("Cons", $TreeContext("ThreeLeft", v1._2, v1._3, v1._4, v1._5), v);
136+ down$a1 = v1._1;
137+ continue;
138+ }
139+ if (v2 === "GT" && v3 === "LT") {
140+ down$a0 = Data$dList$dTypes.$List("Cons", $TreeContext("ThreeMiddle", v1._1, v1._2, v1._4, v1._5), v);
141+ down$a1 = v1._3;
142+ continue;
143+ }
144+ down$a0 = Data$dList$dTypes.$List("Cons", $TreeContext("ThreeRight", v1._1, v1._2, v1._3, v1._4), v);
145+ down$a1 = v1._5;
146+ continue;
147+ }
148+ $runtime.fail();
149+ }
150+ return down$r;
151+ };
152+ return down(Data$dList$dTypes.Nil)(orig);
153+};
154+const emptySet = Leaf;
155+export {$$$Set, $KickUp, $TreeContext, KickUp, Leaf, Three, ThreeLeft, ThreeMiddle, ThreeRight, Two, TwoLeft, TwoRight, emptySet, fromZipper, insertAndLookupBy};
output-es/Data.List.Lazy.NonEmpty/index.jsnew file+77

This diff is too big to show here.

output-es/Data.List.Lazy.Types/index.jsnew file+511

This diff is too big to show here.

output-es/Data.List.Lazy/index.jsnew file+658

This diff is too big to show here.

output-es/Data.List.NonEmpty/index.jsnew file+540

This diff is too big to show here.

output-es/Data.List.Partial/index.jsnew file+37

This diff is too big to show here.

output-es/Data.List.Types/index.jsnew file+841

This diff is too big to show here.

output-es/Data.List.ZipList/index.jsnew file+43

This diff is too big to show here.

output-es/Data.List/index.jsnew file+1505

This diff is too big to show here.

output-es/Data.Map.Gen/index.jsnew file+15

This diff is too big to show here.

output-es/Data.Map.Internal/index.jsnew file+1234

This diff is too big to show here.

output-es/Data.Map/index.jsnew file+80

This diff is too big to show here.

output-es/Data.Maybe.First/index.jsnew file+85

This diff is too big to show here.

output-es/Data.Maybe.Last/index.jsnew file+86

This diff is too big to show here.

output-es/Data.Maybe/index.jsnew file+253

This diff is too big to show here.

output-es/Data.MediaType.Common/index.jsnew file+30

This diff is too big to show here.

output-es/Data.MediaType/index.jsnew file+8

This diff is too big to show here.

output-es/Data.Monoid.Additive/index.jsnew file+33

This diff is too big to show here.

output-es/Data.Monoid.Alternate/index.jsnew file+46

This diff is too big to show here.

output-es/Data.Monoid.Conj/index.jsnew file+21

This diff is too big to show here.

output-es/Data.Monoid.Disj/index.jsnew file+21

This diff is too big to show here.

output-es/Data.Monoid.Dual/index.jsnew file+19

This diff is too big to show here.

output-es/Data.Monoid.Endo/index.jsnew file+12

This diff is too big to show here.

output-es/Data.Monoid.Generic/index.jsnew file+11

This diff is too big to show here.

output-es/Data.Monoid.Multiplicative/index.jsnew file+33

This diff is too big to show here.

output-es/Data.Monoid/index.jsnew file+66

This diff is too big to show here.

output-es/Data.NaturalTransformation/index.jsnew file+1

This diff is too big to show here.

output-es/Data.Newtype/index.jsnew file+51

This diff is too big to show here.

output-es/Data.NonEmpty/index.jsnew file+217

This diff is too big to show here.

output-es/Data.Nullable/foreign.jsnew file+12

This diff is too big to show here.

output-es/Data.Nullable/index.jsnew file+53

This diff is too big to show here.

output-es/Data.Number.Approximate/index.jsnew file+13

This diff is too big to show here.

output-es/Data.Number.Format/foreign.jsnew file+12

This diff is too big to show here.

output-es/Data.Number.Format/index.jsnew file+53

This diff is too big to show here.

output-es/Data.Number/foreign.jsnew file+80

This diff is too big to show here.

output-es/Data.Number/index.jsnew file+15

This diff is too big to show here.

output-es/Data.Op/index.jsnew file+13

This diff is too big to show here.

output-es/Data.Ord.Down/index.jsnew file+35

This diff is too big to show here.

output-es/Data.Ord.Generic/index.jsnew file+34

This diff is too big to show here.

output-es/Data.Ord.Max/index.jsnew file+34

This diff is too big to show here.

output-es/Data.Ord.Min/index.jsnew file+34

This diff is too big to show here.

output-es/Data.Ord/foreign.jsnew file+43

This diff is too big to show here.

output-es/Data.Ord/index.jsnew file+161

This diff is too big to show here.

output-es/Data.Ordering/index.jsnew file+35

This diff is too big to show here.

output-es/Data.Posix.Signal/index.jsnew file+405

This diff is too big to show here.

output-es/Data.Posix/index.jsnew file+19

This diff is too big to show here.

output-es/Data.Predicate/index.jsnew file+14

This diff is too big to show here.

output-es/Data.Profunctor.Choice/index.jsnew file+26

This diff is too big to show here.

output-es/Data.Profunctor.Closed/index.jsnew file+5

This diff is too big to show here.

output-es/Data.Profunctor.Cochoice/index.jsnew file+3

This diff is too big to show here.

output-es/Data.Profunctor.Costrong/index.jsnew file+3

This diff is too big to show here.

output-es/Data.Profunctor.Join/index.jsnew file+13

This diff is too big to show here.

output-es/Data.Profunctor.Split/index.jsnew file+11

This diff is too big to show here.

output-es/Data.Profunctor.Star/index.jsnew file+250

This diff is too big to show here.

output-es/Data.Profunctor.Strong/index.jsnew file+13

This diff is too big to show here.

output-es/Data.Profunctor/index.jsnew file+13

This diff is too big to show here.

output-es/Data.Reflectable/foreign.jsnew file+5

This diff is too big to show here.

output-es/Data.Reflectable/index.jsnew file+10

This diff is too big to show here.

output-es/Data.Ring.Generic/index.jsnew file+10

This diff is too big to show here.

output-es/Data.Ring/foreign.jsnew file+12

This diff is too big to show here.

output-es/Data.Ring/index.jsnew file+50

This diff is too big to show here.

output-es/Data.Semigroup.First/index.jsnew file+14

This diff is too big to show here.

output-es/Data.Semigroup.Foldable/index.jsnew file+143

This diff is too big to show here.

output-es/Data.Semigroup.Generic/index.jsnew file+11

This diff is too big to show here.

output-es/Data.Semigroup.Last/index.jsnew file+14

This diff is too big to show here.

output-es/Data.Semigroup.Traversable/index.jsnew file+39

This diff is too big to show here.

output-es/Data.Semigroup/foreign.jsnew file+13

This diff is too big to show here.

output-es/Data.Semigroup/index.jsnew file+25

This diff is too big to show here.

output-es/Data.Semiring.Generic/index.jsnew file+52

This diff is too big to show here.

output-es/Data.Semiring/foreign.jsnew file+25

This diff is too big to show here.

output-es/Data.Semiring/index.jsnew file+66

This diff is too big to show here.

output-es/Data.Set.NonEmpty/index.jsnew file+198

This diff is too big to show here.

output-es/Data.Set/index.jsnew file+310

This diff is too big to show here.

output-es/Data.Show.Generic/foreign.jsnew file+5

This diff is too big to show here.

output-es/Data.Show.Generic/index.jsnew file+43

This diff is too big to show here.

output-es/Data.Show/foreign.jsnew file+59

This diff is too big to show here.

output-es/Data.Show/index.jsnew file+56

This diff is too big to show here.

output-es/Data.String.CaseInsensitive/index.jsnew file+12

This diff is too big to show here.

output-es/Data.String.CodePoints/foreign.jsnew file+107

This diff is too big to show here.

output-es/Data.String.CodePoints/index.jsnew file+201

This diff is too big to show here.

output-es/Data.String.CodeUnits/foreign.jsnew file+116

This diff is too big to show here.

output-es/Data.String.CodeUnits/index.jsnew file+55

This diff is too big to show here.

output-es/Data.String.Common/foreign.jsnew file+52

This diff is too big to show here.

output-es/Data.String.Common/index.jsnew file+6

This diff is too big to show here.

output-es/Data.String.Gen/index.jsnew file+26

This diff is too big to show here.

output-es/Data.String.NonEmpty.CaseInsensitive/index.jsnew file+12

This diff is too big to show here.

output-es/Data.String.NonEmpty.CodePoints/index.jsnew file+89

This diff is too big to show here.

output-es/Data.String.NonEmpty.CodeUnits/index.jsnew file+98

This diff is too big to show here.

output-es/Data.String.NonEmpty.Internal/index.jsnew file+119

This diff is too big to show here.

output-es/Data.String.NonEmpty/index.jsnew file+1

This diff is too big to show here.

output-es/Data.String.Pattern/index.jsnew file+13

This diff is too big to show here.

output-es/Data.String.Regex.Flags/index.jsnew file+44

This diff is too big to show here.

output-es/Data.String.Regex.Unsafe/index.jsnew file+10

This diff is too big to show here.

output-es/Data.String.Regex/foreign.jsnew file+103

This diff is too big to show here.

output-es/Data.String.Regex/index.jsnew file+28

This diff is too big to show here.

output-es/Data.String.Unsafe/foreign.jsnew file+11

This diff is too big to show here.

output-es/Data.String.Unsafe/index.jsnew file+4

This diff is too big to show here.

output-es/Data.String/index.jsnew file+1

This diff is too big to show here.

output-es/Data.Symbol/foreign.jsnew file+6

This diff is too big to show here.

output-es/Data.Symbol/index.jsnew file+6

This diff is too big to show here.

output-es/Data.Time.Component.Gen/index.jsnew file+7

This diff is too big to show here.

output-es/Data.Time.Component/index.jsnew file+138

This diff is too big to show here.

output-es/Data.Time.Duration.Gen/index.jsnew file+7

This diff is too big to show here.

output-es/Data.Time.Duration/index.jsnew file+95

This diff is too big to show here.

output-es/Data.Time.Gen/index.jsnew file+8

This diff is too big to show here.

output-es/Data.Time/index.jsnew file+119

This diff is too big to show here.

output-es/Data.Traversable.Accum.Internal/index.jsnew file+35

This diff is too big to show here.

output-es/Data.Traversable.Accum/index.jsnew file+1

This diff is too big to show here.

output-es/Data.Traversable/foreign.jsnew file+52

This diff is too big to show here.

output-es/Data.Traversable/index.jsnew file+303

This diff is too big to show here.

output-es/Data.TraversableWithIndex/index.jsnew file+280

This diff is too big to show here.

output-es/Data.Tuple.Nested/index.jsnew file+290

This diff is too big to show here.

output-es/Data.Tuple/index.jsnew file+194

This diff is too big to show here.

output-es/Data.Undefined.NoProblem.Closed/index.jsnew file+43

This diff is too big to show here.

output-es/Data.Undefined.NoProblem.Open/index.jsnew file+57

This diff is too big to show here.

output-es/Data.Undefined.NoProblem/foreign.jsnew file+2

This diff is too big to show here.

output-es/Data.Undefined.NoProblem/index.jsnew file+104

This diff is too big to show here.

output-es/Data.Unfoldable/foreign.jsnew file+21

This diff is too big to show here.

output-es/Data.Unfoldable/index.jsnew file+45

This diff is too big to show here.

output-es/Data.Unfoldable1/foreign.jsnew file+21

This diff is too big to show here.

output-es/Data.Unfoldable1/index.jsnew file+39

This diff is too big to show here.

output-es/Data.Unit/foreign.jsnew file+1

This diff is too big to show here.

output-es/Data.Unit/index.jsnew file+3

This diff is too big to show here.

output-es/Data.Variant.Internal/index.jsnew file+332

This diff is too big to show here.

output-es/Data.Variant/index.jsnew file+265

This diff is too big to show here.

output-es/Data.Void/index.jsnew file+12

This diff is too big to show here.

output-es/Data.Yoneda/index.jsnew file+85

This diff is too big to show here.

output-es/Effect.Aff.Class/index.jsnew file+114

This diff is too big to show here.

output-es/Effect.Aff.Compat/index.jsnew file+14

This diff is too big to show here.

output-es/Effect.Aff/foreign.jsnew file+1154

This diff is too big to show here.

output-es/Effect.Aff/index.jsnew file+268

This diff is too big to show here.

output-es/Effect.Class.Console/index.jsnew file+25

This diff is too big to show here.

output-es/Effect.Class/index.jsnew file+4

This diff is too big to show here.

output-es/Effect.Console/foreign.jsnew file+67

This diff is too big to show here.

output-es/Effect.Console/index.jsnew file+17

This diff is too big to show here.

output-es/Effect.Exception.Unsafe/index.jsnew file+4

This diff is too big to show here.

output-es/Effect.Exception/foreign.jsnew file+59

This diff is too big to show here.

output-es/Effect.Exception/index.jsnew file+14

This diff is too big to show here.

output-es/Effect.Now/foreign.jsnew file+8

This diff is too big to show here.

output-es/Effect.Now/index.jsnew file+16

This diff is too big to show here.

output-es/Effect.Ref/foreign.jsnew file+37

This diff is too big to show here.

output-es/Effect.Ref/index.jsnew file+34

This diff is too big to show here.

output-es/Effect.Uncurried/foreign.jsnew file+229

This diff is too big to show here.

output-es/Effect.Uncurried/index.jsnew file+386

This diff is too big to show here.

output-es/Effect.Unsafe/foreign.jsnew file+3

This diff is too big to show here.

output-es/Effect.Unsafe/index.jsnew file+3

This diff is too big to show here.

output-es/Effect/foreign.jsnew file+51

This diff is too big to show here.

output-es/Effect/index.jsnew file+49

This diff is too big to show here.

output-es/Examples.Button.Stories/index.jsnew file+71

This diff is too big to show here.

output-es/Examples.Button/index.jsnew file+59

This diff is too big to show here.

output-es/Examples.Card.Stories/index.jsnew file+55

This diff is too big to show here.

output-es/Examples.Card/index.jsnew file+16

This diff is too big to show here.

output-es/Examples.Progress.Stories/index.jsnew file+12

This diff is too big to show here.

output-es/Examples.Progress/index.jsnew file+32

This diff is too big to show here.

output-es/ExitCodes/index.jsnew file+461

This diff is too big to show here.

output-es/Foreign.Index/foreign.jsnew file+11

This diff is too big to show here.

output-es/Foreign.Index/index.jsnew file+80

This diff is too big to show here.

output-es/Foreign.Keys/foreign.jsnew file+9

This diff is too big to show here.

output-es/Foreign.Keys/index.jsnew file+28

This diff is too big to show here.

output-es/Foreign.Object.Gen/index.jsnew file+13

This diff is too big to show here.

output-es/Foreign.Object.ST.Unsafe/foreign.jsnew file+5

This diff is too big to show here.

output-es/Foreign.Object.ST.Unsafe/index.jsnew file+3

This diff is too big to show here.

output-es/Foreign.Object.ST/foreign.jsnew file+37

This diff is too big to show here.

output-es/Foreign.Object.ST/index.jsnew file+9

This diff is too big to show here.

output-es/Foreign.Object.Unsafe/foreign.jsnew file+5

This diff is too big to show here.

output-es/Foreign.Object.Unsafe/index.jsnew file+3

This diff is too big to show here.

output-es/Foreign.Object/foreign.jsnew file+116

This diff is too big to show here.

output-es/Foreign.Object/index.jsnew file+304

This diff is too big to show here.

output-es/Foreign/foreign.jsnew file+19

This diff is too big to show here.

output-es/Foreign/index.jsnew file+171

This diff is too big to show here.

output-es/ForgetMeNot/index.jsnew file+1

This diff is too big to show here.

output-es/JS.BigInt/foreign.jsnew file+124

This diff is too big to show here.

output-es/JS.BigInt/index.jsnew file+77

This diff is too big to show here.

output-es/Literals.Boolean/index.jsnew file+3

This diff is too big to show here.

output-es/Literals.Int/index.jsnew file+24

This diff is too big to show here.

output-es/Literals.Literal/index.jsnew file+5

This diff is too big to show here.

output-es/Literals.Null/foreign.jsnew file+1

This diff is too big to show here.

output-es/Literals.Null/index.jsnew file+5

This diff is too big to show here.

output-es/Literals.Number/index.jsnew file+17

This diff is too big to show here.

output-es/Literals.String/index.jsnew file+3

This diff is too big to show here.

output-es/Literals.Undefined/foreign.jsnew file+1

This diff is too big to show here.

output-es/Literals.Undefined/index.jsnew file+6

This diff is too big to show here.

output-es/Literals/index.jsnew file+1

This diff is too big to show here.

output-es/Node.Buffer.Class/index.jsnew file+48

This diff is too big to show here.

output-es/Node.Buffer.Constants/foreign.jsnew file+5

This diff is too big to show here.

output-es/Node.Buffer.Constants/index.jsnew file+3

This diff is too big to show here.

output-es/Node.Buffer.Immutable/foreign.jsnew file+45

This diff is too big to show here.

output-es/Node.Buffer.Immutable/index.jsnew file+121

This diff is too big to show here.

output-es/Node.Buffer.ST/index.jsnew file+98

This diff is too big to show here.

output-es/Node.Buffer.Types/index.jsnew file+36

This diff is too big to show here.

output-es/Node.Buffer/foreign.jsnew file+33

This diff is too big to show here.

output-es/Node.Buffer/index.jsnew file+191

This diff is too big to show here.

output-es/Node.Encoding/foreign.jsnew file+3

This diff is too big to show here.

output-es/Node.Encoding/index.jsnew file+55

This diff is too big to show here.

output-es/Node.EventEmitter.UtilTypes/index.jsnew file+1

This diff is too big to show here.

output-es/Node.EventEmitter/foreign.jsnew file+24

This diff is too big to show here.

output-es/Node.EventEmitter/index.jsnew file+142

This diff is too big to show here.

output-es/Node.FS.Aff/index.jsnew file+134

This diff is too big to show here.

output-es/Node.FS.Async/foreign.jsnew file+28

This diff is too big to show here.

output-es/Node.FS.Async/index.jsnew file+241

This diff is too big to show here.

output-es/Node.FS.Constants/foreign.jsnew file+17

This diff is too big to show here.

output-es/Node.FS.Constants/index.jsnew file+103

This diff is too big to show here.

output-es/Node.FS.Perms/index.jsnew file+125

This diff is too big to show here.

output-es/Node.FS.Stats/foreign.jsnew file+27

This diff is too big to show here.

output-es/Node.FS.Stats/index.jsnew file+102

This diff is too big to show here.

output-es/Node.FS.Stream/foreign.jsnew file+11

This diff is too big to show here.

output-es/Node.FS.Stream/index.jsnew file+20

This diff is too big to show here.

output-es/Node.FS.Sync/foreign.jsnew file+30

This diff is too big to show here.

output-es/Node.FS.Sync/index.jsnew file+258

This diff is too big to show here.

output-es/Node.FS/index.jsnew file+27

This diff is too big to show here.

output-es/Node.Path/foreign.jsnew file+30

This diff is too big to show here.

output-es/Node.Path/index.jsnew file+3

This diff is too big to show here.

output-es/Node.Platform/index.jsnew file+104

This diff is too big to show here.

output-es/Node.Process/foreign.jsnew file+65

This diff is too big to show here.

output-es/Node.Process/index.jsnew file+180

This diff is too big to show here.

output-es/Node.Stream.Aff/index.jsnew file+445

This diff is too big to show here.

output-es/Node.Stream/foreign.jsnew file+97

This diff is too big to show here.

output-es/Node.Stream/index.jsnew file+310

This diff is too big to show here.

output-es/Node.Symbol/foreign.jsnew file+3

This diff is too big to show here.

output-es/Node.Symbol/index.jsnew file+12

This diff is too big to show here.

output-es/Options.Applicative.BashCompletion/index.jsnew file+395

This diff is too big to show here.

output-es/Options.Applicative.Builder.Completer/foreign.jsnew file+8

This diff is too big to show here.

output-es/Options.Applicative.Builder.Completer/index.jsnew file+133

This diff is too big to show here.

output-es/Options.Applicative.Builder.Internal/index.jsnew file+116

This diff is too big to show here.

output-es/Options.Applicative.Builder/index.jsnew file+306

This diff is too big to show here.

output-es/Options.Applicative.Common/index.jsnew file+497

This diff is too big to show here.

output-es/Options.Applicative.Extra/index.jsnew file+274

This diff is too big to show here.

output-es/Options.Applicative.Help.Chunk/index.jsnew file+229

This diff is too big to show here.

output-es/Options.Applicative.Help.Core/index.jsnew file+401

This diff is too big to show here.

output-es/Options.Applicative.Help.Levenshtein/index.jsnew file+22

This diff is too big to show here.

output-es/Options.Applicative.Help.Pretty/index.jsnew file+1

This diff is too big to show here.

output-es/Options.Applicative.Help.Types/index.jsnew file+112

This diff is too big to show here.

output-es/Options.Applicative.Help/index.jsnew file+3

This diff is too big to show here.

output-es/Options.Applicative.Internal.Utils/index.jsnew file+36

This diff is too big to show here.

output-es/Options.Applicative.Internal/index.jsnew file+447

This diff is too big to show here.

output-es/Options.Applicative.Types/index.jsnew file+967

This diff is too big to show here.

output-es/Options.Applicative/index.jsnew file+1

This diff is too big to show here.

output-es/Partial.Unsafe/foreign.jsnew file+5

This diff is too big to show here.

output-es/Partial.Unsafe/index.jsnew file+8

This diff is too big to show here.

output-es/Partial/foreign.jsnew file+5

This diff is too big to show here.

output-es/Partial/index.jsnew file+6

This diff is too big to show here.

output-es/Prelude/index.jsnew file+13

This diff is too big to show here.

output-es/Promise.Aff/index.jsnew file+55

This diff is too big to show here.

output-es/Promise.Internal/foreign.jsnew file+38

This diff is too big to show here.

output-es/Promise.Internal/index.jsnew file+3

This diff is too big to show here.

output-es/Promise.Lazy/index.jsnew file+131

This diff is too big to show here.

output-es/Promise.Rejection/foreign.jsnew file+10

This diff is too big to show here.

output-es/Promise.Rejection/index.jsnew file+5

This diff is too big to show here.

output-es/Promise/index.jsnew file+13

This diff is too big to show here.

output-es/React.Basic.DOM.Client/foreign.jsnew file+11

This diff is too big to show here.

output-es/React.Basic.DOM.Client/index.jsnew file+3

This diff is too big to show here.

output-es/React.Basic.DOM.Components.GlobalEvents/foreign.jsnew file+95

This diff is too big to show here.

output-es/React.Basic.DOM.Components.GlobalEvents/index.jsnew file+40

This diff is too big to show here.

output-es/React.Basic.DOM.Components.Ref/foreign.jsnew file+41

This diff is too big to show here.

output-es/React.Basic.DOM.Components.Ref/index.jsnew file+21

This diff is too big to show here.

output-es/React.Basic.DOM.Events/foreign.jsnew file+5

This diff is too big to show here.

output-es/React.Basic.DOM.Events/index.jsnew file+122

This diff is too big to show here.

output-es/React.Basic.DOM.Generated/index.jsnew file+1124

This diff is too big to show here.

output-es/React.Basic.DOM.Internal/foreign.jsnew file+34

This diff is too big to show here.

output-es/React.Basic.DOM.Internal/index.jsnew file+9

This diff is too big to show here.

output-es/React.Basic.DOM.SVG/index.jsnew file+770

This diff is too big to show here.

output-es/React.Basic.DOM.Server/foreign.jsnew file+1

This diff is too big to show here.

output-es/React.Basic.DOM.Server/index.jsnew file+3

This diff is too big to show here.

output-es/React.Basic.DOM.Simplified.Generated/index.jsnew file+834

This diff is too big to show here.

output-es/React.Basic.DOM.Simplified.ToJSX/index.jsnew file+23

This diff is too big to show here.

output-es/React.Basic.DOM/foreign.jsnew file+25

This diff is too big to show here.

output-es/React.Basic.DOM/index.jsnew file+15

This diff is too big to show here.

output-es/React.Basic.Events/index.jsnew file+20

This diff is too big to show here.

output-es/React.Basic.Hooks.Aff/foreign.jsnew file+34

This diff is too big to show here.

output-es/React.Basic.Hooks.Aff/index.jsnew file+108

This diff is too big to show here.

output-es/React.Basic.Hooks.ErrorBoundary/foreign.jsnew file+21

This diff is too big to show here.

output-es/React.Basic.Hooks.ErrorBoundary/index.jsnew file+14

This diff is too big to show here.

output-es/React.Basic.Hooks.Internal/index.jsnew file+124

This diff is too big to show here.

output-es/React.Basic.Hooks.ResetToken/index.jsnew file+16

This diff is too big to show here.

output-es/React.Basic.Hooks.Suspense.Store/index.jsnew file+150

This diff is too big to show here.

output-es/React.Basic.Hooks.Suspense/foreign.jsnew file+3

This diff is too big to show here.

output-es/React.Basic.Hooks.Suspense/index.jsnew file+24

This diff is too big to show here.

output-es/React.Basic.Hooks/foreign.jsnew file+144

This diff is too big to show here.

output-es/React.Basic.Hooks/index.jsnew file+159

This diff is too big to show here.

output-es/React.Basic.StrictMode/foreign.jsnew file+2

This diff is too big to show here.

output-es/React.Basic.StrictMode/index.jsnew file+8

This diff is too big to show here.

output-es/React.Basic/foreign.jsnew file+39

This diff is too big to show here.

output-es/React.Basic/index.jsnew file+7

This diff is too big to show here.

output-es/Record.Builder/foreign.jsnew file+44

This diff is too big to show here.

output-es/Record.Builder/index.jsnew file+20

This diff is too big to show here.

output-es/Record.Unsafe.Union/foreign.jsnew file+14

This diff is too big to show here.

output-es/Record.Unsafe.Union/index.jsnew file+4

This diff is too big to show here.

output-es/Record.Unsafe/foreign.jsnew file+38

This diff is too big to show here.

output-es/Record.Unsafe/index.jsnew file+9

This diff is too big to show here.

output-es/Record/index.jsnew file+23

This diff is too big to show here.

output-es/Safe.Coerce/index.jsnew file+3

This diff is too big to show here.

output-es/Spago.Generated.BuildInfo/index.jsnew file+7

This diff is too big to show here.

output-es/Test.Main/index.jsnew file+3

This diff is too big to show here.

output-es/Text.PrettyPrint.Leijen/index.jsnew file+700

This diff is too big to show here.

output-es/Type.Data.Boolean/index.jsnew file+21

This diff is too big to show here.

output-es/Type.Data.Ordering/index.jsnew file+56

This diff is too big to show here.

output-es/Type.Data.Symbol/index.jsnew file+7

This diff is too big to show here.

output-es/Type.Equality/index.jsnew file+5

This diff is too big to show here.

output-es/Type.Function/index.jsnew file+1

This diff is too big to show here.

output-es/Type.Prelude/index.jsnew file+1

This diff is too big to show here.

output-es/Type.Proxy/index.jsnew file+51

This diff is too big to show here.

output-es/Type.Row.Homogeneous/index.jsnew file+4

This diff is too big to show here.

output-es/Type.Row/index.jsnew file+1

This diff is too big to show here.

output-es/Type.RowList/index.jsnew file+10

This diff is too big to show here.

output-es/Unsafe.Coerce/foreign.jsnew file+5

This diff is too big to show here.

output-es/Unsafe.Coerce/index.jsnew file+3

This diff is too big to show here.

output-es/Unsafe.Reference/foreign.jsnew file+5

This diff is too big to show here.

output-es/Unsafe.Reference/index.jsnew file+8

This diff is too big to show here.

output-es/Untagged.Castable/index.jsnew file+21

This diff is too big to show here.

output-es/Untagged.TypeCheck/foreign.jsnew file+9

This diff is too big to show here.

output-es/Untagged.TypeCheck/index.jsnew file+56

This diff is too big to show here.

output-es/Untagged.Union/index.jsnew file+100

This diff is too big to show here.

output-es/Web.DOM.CharacterData/foreign.jsnew file+61

This diff is too big to show here.

output-es/Web.DOM.CharacterData/index.jsnew file+13

This diff is too big to show here.

output-es/Web.DOM.ChildNode/foreign.jsnew file+5

This diff is too big to show here.

output-es/Web.DOM.ChildNode/index.jsnew file+3

This diff is too big to show here.

output-es/Web.DOM.Comment/index.jsnew file+13

This diff is too big to show here.

output-es/Web.DOM.DOMTokenList/foreign.jsnew file+49

This diff is too big to show here.

output-es/Web.DOM.DOMTokenList/index.jsnew file+15

This diff is too big to show here.

output-es/Web.DOM.Document/foreign.jsnew file+112

This diff is too big to show here.

output-es/Web.DOM.Document/index.jsnew file+75

This diff is too big to show here.

output-es/Web.DOM.DocumentFragment/index.jsnew file+13

This diff is too big to show here.

output-es/Web.DOM.DocumentType/foreign.jsnew file+9

This diff is too big to show here.

output-es/Web.DOM.DocumentType/index.jsnew file+11

This diff is too big to show here.

output-es/Web.DOM.Element/foreign.jsnew file+210

This diff is too big to show here.

output-es/Web.DOM.Element/index.jsnew file+101

This diff is too big to show here.

output-es/Web.DOM.HTMLCollection/foreign.jsnew file+27

This diff is too big to show here.

output-es/Web.DOM.HTMLCollection/index.jsnew file+25

This diff is too big to show here.

output-es/Web.DOM.Internal.Types/index.jsnew file+1

This diff is too big to show here.

output-es/Web.DOM.MutationObserver/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.DOM.MutationObserver/index.jsnew file+4

This diff is too big to show here.

output-es/Web.DOM.MutationRecord/foreign.jsnew file+53

This diff is too big to show here.

output-es/Web.DOM.MutationRecord/index.jsnew file+66

This diff is too big to show here.

output-es/Web.DOM.Node/foreign.jsnew file+153

This diff is too big to show here.

output-es/Web.DOM.Node/index.jsnew file+147

This diff is too big to show here.

output-es/Web.DOM.NodeList/foreign.jsnew file+19

This diff is too big to show here.

output-es/Web.DOM.NodeList/index.jsnew file+15

This diff is too big to show here.

output-es/Web.DOM.NodeType/index.jsnew file+199

This diff is too big to show here.

output-es/Web.DOM.NonDocumentTypeChildNode/foreign.jsnew file+11

This diff is too big to show here.

output-es/Web.DOM.NonDocumentTypeChildNode/index.jsnew file+19

This diff is too big to show here.

output-es/Web.DOM.NonElementParentNode/foreign.jsnew file+7

This diff is too big to show here.

output-es/Web.DOM.NonElementParentNode/index.jsnew file+15

This diff is too big to show here.

output-es/Web.DOM.ParentNode/foreign.jsnew file+28

This diff is too big to show here.

output-es/Web.DOM.ParentNode/index.jsnew file+35

This diff is too big to show here.

output-es/Web.DOM.ProcessingInstruction/foreign.jsnew file+5

This diff is too big to show here.

output-es/Web.DOM.ProcessingInstruction/index.jsnew file+15

This diff is too big to show here.

output-es/Web.DOM.ShadowRoot/foreign.jsnew file+9

This diff is too big to show here.

output-es/Web.DOM.ShadowRoot/index.jsnew file+23

This diff is too big to show here.

output-es/Web.DOM.Text/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.DOM.Text/index.jsnew file+15

This diff is too big to show here.

output-es/Web.DOM/index.jsnew file+1

This diff is too big to show here.

output-es/Web.Event.CustomEvent/foreign.jsnew file+18

This diff is too big to show here.

output-es/Web.Event.CustomEvent/index.jsnew file+20

This diff is too big to show here.

output-es/Web.Event.Event/foreign.jsnew file+51

This diff is too big to show here.

output-es/Web.Event.Event/index.jsnew file+23

This diff is too big to show here.

output-es/Web.Event.EventPhase/index.jsnew file+99

This diff is too big to show here.

output-es/Web.Event.EventTarget/foreign.jsnew file+51

This diff is too big to show here.

output-es/Web.Event.EventTarget/index.jsnew file+3

This diff is too big to show here.

output-es/Web.Event.Internal.Types/index.jsnew file+1

This diff is too big to show here.

output-es/Web.File.Blob/foreign.jsnew file+19

This diff is too big to show here.

output-es/Web.File.Blob/index.jsnew file+18

This diff is too big to show here.

output-es/Web.File.File/foreign.jsnew file+2

This diff is too big to show here.

output-es/Web.File.File/index.jsnew file+13

This diff is too big to show here.

output-es/Web.File.FileList/foreign.jsnew file+7

This diff is too big to show here.

output-es/Web.File.FileList/index.jsnew file+16

This diff is too big to show here.

output-es/Web.File.FileReader.ReadyState/index.jsnew file+94

This diff is too big to show here.

output-es/Web.File.FileReader/foreign.jsnew file+51

This diff is too big to show here.

output-es/Web.File.FileReader/index.jsnew file+19

This diff is too big to show here.

output-es/Web.File.Url/foreign.jsnew file+11

This diff is too big to show here.

output-es/Web.File.Url/index.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.Common/index.jsnew file+15

This diff is too big to show here.

output-es/Web.HTML.Event.BeforeUnloadEvent.EventTypes/index.jsnew file+2

This diff is too big to show here.

output-es/Web.HTML.Event.BeforeUnloadEvent/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.HTML.Event.BeforeUnloadEvent/index.jsnew file+7

This diff is too big to show here.

output-es/Web.HTML.Event.DataTransfer.DataTransferItem/foreign.jsnew file+23

This diff is too big to show here.

output-es/Web.HTML.Event.DataTransfer.DataTransferItem/index.jsnew file+41

This diff is too big to show here.

output-es/Web.HTML.Event.DataTransfer/foreign.jsnew file+55

This diff is too big to show here.

output-es/Web.HTML.Event.DataTransfer/index.jsnew file+63

This diff is too big to show here.

output-es/Web.HTML.Event.DragEvent.EventTypes/index.jsnew file+9

This diff is too big to show here.

output-es/Web.HTML.Event.DragEvent/foreign.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.Event.DragEvent/index.jsnew file+7

This diff is too big to show here.

output-es/Web.HTML.Event.ErrorEvent/foreign.jsnew file+15

This diff is too big to show here.

output-es/Web.HTML.Event.ErrorEvent/index.jsnew file+7

This diff is too big to show here.

output-es/Web.HTML.Event.EventTypes/index.jsnew file+68

This diff is too big to show here.

output-es/Web.HTML.Event.HashChangeEvent.EventTypes/index.jsnew file+2

This diff is too big to show here.

output-es/Web.HTML.Event.HashChangeEvent/foreign.jsnew file+7

This diff is too big to show here.

output-es/Web.HTML.Event.HashChangeEvent/index.jsnew file+7

This diff is too big to show here.

output-es/Web.HTML.Event.PageTransitionEvent.EventTypes/index.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.Event.PageTransitionEvent/foreign.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.Event.PageTransitionEvent/index.jsnew file+7

This diff is too big to show here.

output-es/Web.HTML.Event.PopStateEvent.EventTypes/index.jsnew file+2

This diff is too big to show here.

output-es/Web.HTML.Event.PopStateEvent/foreign.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.Event.PopStateEvent/index.jsnew file+7

This diff is too big to show here.

output-es/Web.HTML.Event.TrackEvent.EventTypes/index.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.Event.TrackEvent/index.jsnew file+5

This diff is too big to show here.

output-es/Web.HTML.HTMLAnchorElement/foreign.jsnew file+117

This diff is too big to show here.

output-es/Web.HTML.HTMLAnchorElement/index.jsnew file+36

This diff is too big to show here.

output-es/Web.HTML.HTMLAreaElement/foreign.jsnew file+133

This diff is too big to show here.

output-es/Web.HTML.HTMLAreaElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLAudioElement/foreign.jsnew file+9

This diff is too big to show here.

output-es/Web.HTML.HTMLAudioElement/index.jsnew file+40

This diff is too big to show here.

output-es/Web.HTML.HTMLBRElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLBaseElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLBaseElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLBodyElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLButtonElement/foreign.jsnew file+223

This diff is too big to show here.

output-es/Web.HTML.HTMLButtonElement/index.jsnew file+73

This diff is too big to show here.

output-es/Web.HTML.HTMLCanvasElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLCanvasElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLDListElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLDataElement/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.HTML.HTMLDataElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLDataListElement/foreign.jsnew file+5

This diff is too big to show here.

output-es/Web.HTML.HTMLDataListElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLDialogElement/foreign.jsnew file+53

This diff is too big to show here.

output-es/Web.HTML.HTMLDialogElement/index.jsnew file+42

This diff is too big to show here.

output-es/Web.HTML.HTMLDivElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLDocument.ReadyState/index.jsnew file+52

This diff is too big to show here.

output-es/Web.HTML.HTMLDocument.VisibilityState/index.jsnew file+42

This diff is too big to show here.

output-es/Web.HTML.HTMLDocument/foreign.jsnew file+39

This diff is too big to show here.

output-es/Web.HTML.HTMLDocument/index.jsnew file+76

This diff is too big to show here.

output-es/Web.HTML.HTMLElement/foreign.jsnew file+194

This diff is too big to show here.

output-es/Web.HTML.HTMLElement/index.jsnew file+66

This diff is too big to show here.

output-es/Web.HTML.HTMLEmbedElement/foreign.jsnew file+61

This diff is too big to show here.

output-es/Web.HTML.HTMLEmbedElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLFieldSetElement/foreign.jsnew file+103

This diff is too big to show here.

output-es/Web.HTML.HTMLFieldSetElement/index.jsnew file+44

This diff is too big to show here.

output-es/Web.HTML.HTMLFormElement/foreign.jsnew file+181

This diff is too big to show here.

output-es/Web.HTML.HTMLFormElement/index.jsnew file+58

This diff is too big to show here.

output-es/Web.HTML.HTMLHRElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLHeadElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLHeadingElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLHtmlElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLHyperlinkElementUtils/foreign.jsnew file+165

This diff is too big to show here.

output-es/Web.HTML.HTMLHyperlinkElementUtils/index.jsnew file+26

This diff is too big to show here.

output-es/Web.HTML.HTMLIFrameElement/foreign.jsnew file+91

This diff is too big to show here.

output-es/Web.HTML.HTMLIFrameElement/index.jsnew file+52

This diff is too big to show here.

output-es/Web.HTML.HTMLImageElement.CORSMode/index.jsnew file+43

This diff is too big to show here.

output-es/Web.HTML.HTMLImageElement.DecodingHint/index.jsnew file+53

This diff is too big to show here.

output-es/Web.HTML.HTMLImageElement.Laziness/index.jsnew file+43

This diff is too big to show here.

output-es/Web.HTML.HTMLImageElement/foreign.jsnew file+215

This diff is too big to show here.

output-es/Web.HTML.HTMLImageElement/index.jsnew file+140

This diff is too big to show here.

output-es/Web.HTML.HTMLInputElement/foreign.jsnew file+727

This diff is too big to show here.

output-es/Web.HTML.HTMLInputElement/index.jsnew file+171

This diff is too big to show here.

output-es/Web.HTML.HTMLKeygenElement/foreign.jsnew file+151

This diff is too big to show here.

output-es/Web.HTML.HTMLKeygenElement/index.jsnew file+64

This diff is too big to show here.

output-es/Web.HTML.HTMLLIElement/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.HTML.HTMLLIElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLLabelElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLLabelElement/index.jsnew file+52

This diff is too big to show here.

output-es/Web.HTML.HTMLLegendElement/foreign.jsnew file+5

This diff is too big to show here.

output-es/Web.HTML.HTMLLegendElement/index.jsnew file+44

This diff is too big to show here.

output-es/Web.HTML.HTMLLinkElement/foreign.jsnew file+133

This diff is too big to show here.

output-es/Web.HTML.HTMLLinkElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLMapElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLMapElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLMediaElement.CanPlayType/index.jsnew file+52

This diff is too big to show here.

output-es/Web.HTML.HTMLMediaElement.NetworkState/index.jsnew file+109

This diff is too big to show here.

output-es/Web.HTML.HTMLMediaElement.ReadyState/index.jsnew file+124

This diff is too big to show here.

output-es/Web.HTML.HTMLMediaElement/foreign.jsnew file+295

This diff is too big to show here.

output-es/Web.HTML.HTMLMediaElement/index.jsnew file+103

This diff is too big to show here.

output-es/Web.HTML.HTMLMetaElement/foreign.jsnew file+45

This diff is too big to show here.

output-es/Web.HTML.HTMLMetaElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLMeterElement/foreign.jsnew file+101

This diff is too big to show here.

output-es/Web.HTML.HTMLMeterElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLModElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLModElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLOListElement/foreign.jsnew file+45

This diff is too big to show here.

output-es/Web.HTML.HTMLOListElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLObjectElement/foreign.jsnew file+167

This diff is too big to show here.

output-es/Web.HTML.HTMLObjectElement/index.jsnew file+74

This diff is too big to show here.

output-es/Web.HTML.HTMLOptGroupElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLOptGroupElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLOptionElement/foreign.jsnew file+109

This diff is too big to show here.

output-es/Web.HTML.HTMLOptionElement/index.jsnew file+44

This diff is too big to show here.

output-es/Web.HTML.HTMLOutputElement/foreign.jsnew file+119

This diff is too big to show here.

output-es/Web.HTML.HTMLOutputElement/index.jsnew file+60

This diff is too big to show here.

output-es/Web.HTML.HTMLParagraphElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLParamElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLParamElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLPreElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLProgressElement/foreign.jsnew file+45

This diff is too big to show here.

output-es/Web.HTML.HTMLProgressElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLQuoteElement/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.HTML.HTMLQuoteElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLScriptElement/foreign.jsnew file+109

This diff is too big to show here.

output-es/Web.HTML.HTMLScriptElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLSelectElement/foreign.jsnew file+223

This diff is too big to show here.

output-es/Web.HTML.HTMLSelectElement/index.jsnew file+73

This diff is too big to show here.

output-es/Web.HTML.HTMLSourceElement/foreign.jsnew file+45

This diff is too big to show here.

output-es/Web.HTML.HTMLSourceElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLSpanElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLStyleElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLStyleElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLTableCaptionElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLTableCellElement/foreign.jsnew file+37

This diff is too big to show here.

output-es/Web.HTML.HTMLTableCellElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLTableColElement/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.HTML.HTMLTableColElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLTableDataCellElement/index.jsnew file+36

This diff is too big to show here.

output-es/Web.HTML.HTMLTableElement/foreign.jsnew file+153

This diff is too big to show here.

output-es/Web.HTML.HTMLTableElement/index.jsnew file+103

This diff is too big to show here.

output-es/Web.HTML.HTMLTableHeaderCellElement/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.HTMLTableHeaderCellElement/index.jsnew file+38

This diff is too big to show here.

output-es/Web.HTML.HTMLTableRowElement/foreign.jsnew file+41

This diff is too big to show here.

output-es/Web.HTML.HTMLTableRowElement/index.jsnew file+38

This diff is too big to show here.

output-es/Web.HTML.HTMLTableSectionElement/foreign.jsnew file+25

This diff is too big to show here.

output-es/Web.HTML.HTMLTableSectionElement/index.jsnew file+38

This diff is too big to show here.

output-es/Web.HTML.HTMLTemplateElement/foreign.jsnew file+5

This diff is too big to show here.

output-es/Web.HTML.HTMLTemplateElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLTextAreaElement/foreign.jsnew file+403

This diff is too big to show here.

output-es/Web.HTML.HTMLTextAreaElement/index.jsnew file+107

This diff is too big to show here.

output-es/Web.HTML.HTMLTimeElement/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.HTML.HTMLTimeElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLTitleElement/foreign.jsnew file+13

This diff is too big to show here.

output-es/Web.HTML.HTMLTitleElement/index.jsnew file+34

This diff is too big to show here.

output-es/Web.HTML.HTMLTrackElement.ReadyState/index.jsnew file+109

This diff is too big to show here.

output-es/Web.HTML.HTMLTrackElement/foreign.jsnew file+84

This diff is too big to show here.

output-es/Web.HTML.HTMLTrackElement/index.jsnew file+44

This diff is too big to show here.

output-es/Web.HTML.HTMLUListElement/index.jsnew file+32

This diff is too big to show here.

output-es/Web.HTML.HTMLVideoElement/foreign.jsnew file+63

This diff is too big to show here.

output-es/Web.HTML.HTMLVideoElement/index.jsnew file+38

This diff is too big to show here.

output-es/Web.HTML.History/foreign.jsnew file+49

This diff is too big to show here.

output-es/Web.HTML.History/index.jsnew file+16

This diff is too big to show here.

output-es/Web.HTML.Location/foreign.jsnew file+169

This diff is too big to show here.

output-es/Web.HTML.Location/index.jsnew file+25

This diff is too big to show here.

output-es/Web.HTML.Navigator/foreign.jsnew file+29

This diff is too big to show here.

output-es/Web.HTML.Navigator/index.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.SelectionMode/index.jsnew file+62

This diff is too big to show here.

output-es/Web.HTML.ValidityState/foreign.jsnew file+3

This diff is too big to show here.

output-es/Web.HTML.ValidityState/index.jsnew file+15

This diff is too big to show here.

output-es/Web.HTML.Window/foreign.jsnew file+239

This diff is too big to show here.

output-es/Web.HTML.Window/index.jsnew file+86

This diff is too big to show here.

output-es/Web.HTML/foreign.jsnew file+4

This diff is too big to show here.

output-es/Web.HTML/index.jsnew file+3

This diff is too big to show here.

output-es/Web.Internal.FFI/foreign.jsnew file+20

This diff is too big to show here.

output-es/Web.Internal.FFI/index.jsnew file+5

This diff is too big to show here.

output-es/Web.Storage.Event.StorageEvent/foreign.jsnew file+19

This diff is too big to show here.

output-es/Web.Storage.Event.StorageEvent/index.jsnew file+13

This diff is too big to show here.

output-es/Web.Storage.Storage/foreign.jsnew file+45

This diff is too big to show here.

output-es/Web.Storage.Storage/index.jsnew file+52

This diff is too big to show here.

output-es/Web.TouchEvent.EventTypes/index.jsnew file+5

This diff is too big to show here.

output-es/Web.TouchEvent.Touch/foreign.jsnew file+31

This diff is too big to show here.

output-es/Web.TouchEvent.Touch/index.jsnew file+3

This diff is too big to show here.

output-es/Web.TouchEvent.TouchEvent/foreign.jsnew file+27

This diff is too big to show here.

output-es/Web.TouchEvent.TouchEvent/index.jsnew file+9

This diff is too big to show here.

output-es/Web.TouchEvent.TouchList/foreign.jsnew file+7

This diff is too big to show here.

output-es/Web.TouchEvent.TouchList/index.jsnew file+6

This diff is too big to show here.

output-es/Web.TouchEvent/index.jsnew file+1

This diff is too big to show here.

output-es/Web.UIEvent.CompositionEvent.EventTypes/index.jsnew file+4

This diff is too big to show here.

output-es/Web.UIEvent.CompositionEvent/foreign.jsnew file+3

This diff is too big to show here.

output-es/Web.UIEvent.CompositionEvent/index.jsnew file+9

This diff is too big to show here.

output-es/Web.UIEvent.EventTypes/index.jsnew file+6

This diff is too big to show here.

output-es/Web.UIEvent.FocusEvent.EventTypes/index.jsnew file+5

This diff is too big to show here.

output-es/Web.UIEvent.FocusEvent/foreign.jsnew file+3

This diff is too big to show here.

output-es/Web.UIEvent.FocusEvent/index.jsnew file+12

This diff is too big to show here.

output-es/Web.UIEvent.InputEvent.EventTypes/index.jsnew file+3

This diff is too big to show here.

output-es/Web.UIEvent.InputEvent.InputType/index.jsnew file+494

This diff is too big to show here.

output-es/Web.UIEvent.InputEvent/foreign.jsnew file+11

This diff is too big to show here.

output-es/Web.UIEvent.InputEvent/index.jsnew file+14

This diff is too big to show here.

output-es/Web.UIEvent.KeyboardEvent.EventTypes/index.jsnew file+3

This diff is too big to show here.

output-es/Web.UIEvent.KeyboardEvent/foreign.jsnew file+43

This diff is too big to show here.

output-es/Web.UIEvent.KeyboardEvent/index.jsnew file+134

This diff is too big to show here.

output-es/Web.UIEvent.MouseEvent.EventTypes/index.jsnew file+11

This diff is too big to show here.

output-es/Web.UIEvent.MouseEvent/foreign.jsnew file+59

This diff is too big to show here.

output-es/Web.UIEvent.MouseEvent/index.jsnew file+12

This diff is too big to show here.

output-es/Web.UIEvent.UIEvent/foreign.jsnew file+7

This diff is too big to show here.

output-es/Web.UIEvent.UIEvent/index.jsnew file+10

This diff is too big to show here.

output-es/Web.UIEvent.WheelEvent.EventTypes/index.jsnew file+2

This diff is too big to show here.

output-es/Web.UIEvent.WheelEvent/foreign.jsnew file+15

This diff is too big to show here.

output-es/Web.UIEvent.WheelEvent/index.jsnew file+109

This diff is too big to show here.

output-es/Yoga.Fastify.Auth.Argon2/foreign.jsnew file+13

This diff is too big to show here.

output-es/Yoga.Fastify.Auth.Argon2/index.jsnew file+13

This diff is too big to show here.

output-es/Yoga.Fastify.Auth.JWT/foreign.jsnew file+23

This diff is too big to show here.

output-es/Yoga.Fastify.Auth.JWT/index.jsnew file+26

This diff is too big to show here.

output-es/Yoga.Fastify.Fastify/foreign.jsnew file+41

This diff is too big to show here.

output-es/Yoga.Fastify.Fastify/index.jsnew file+106

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin.Cors/foreign.jsnew file+2

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin.Cors/index.jsnew file+12

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin.Helmet/foreign.jsnew file+2

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin.Helmet/index.jsnew file+8

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin.RateLimit/foreign.jsnew file+2

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin.RateLimit/index.jsnew file+11

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin/foreign.jsnew file+3

This diff is too big to show here.

output-es/Yoga.Fastify.Plugin/index.jsnew file+6

This diff is too big to show here.

output-es/Yoga.Fastify.Route.HandleResponse/index.jsnew file+27

This diff is too big to show here.

output-es/Yoga.Fastify.Route.HandleRoute/index.jsnew file+83

This diff is too big to show here.

output-es/Yoga.Fastify.Route.ParseBody/index.jsnew file+47

This diff is too big to show here.

output-es/Yoga.Fastify.Route.ParseHeaders/index.jsnew file+41

This diff is too big to show here.

output-es/Yoga.Fastify.Route.ParsePathParams/index.jsnew file+38

This diff is too big to show here.

output-es/Yoga.Fastify.Route.ParseQueryParams/index.jsnew file+60

This diff is too big to show here.

output-es/Yoga.Fastify.Route.SetHeaders/index.jsnew file+21

This diff is too big to show here.

output-es/Yoga.HTTP.API.Path/index.jsnew file+150

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.Auth/index.jsnew file+88

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.BearerToken/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.Encoding/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.Handler/index.jsnew file+52

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.HeaderError/index.jsnew file+18

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.HeaderValue/index.jsnew file+41

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.Method/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.OpenAPI/index.jsnew file+1503

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.OpenAPIMetadata/index.jsnew file+803

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.RenderMethod/index.jsnew file+7

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.Response/index.jsnew file+283

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.Route/index.jsnew file+124

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.RouteHandler/index.jsnew file+10

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route.StatusCode/index.jsnew file+273

This diff is too big to show here.

output-es/Yoga.HTTP.API.Route/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.JSON.Derive/index.jsnew file+10

This diff is too big to show here.

output-es/Yoga.JSON.Error/index.jsnew file+79

This diff is too big to show here.

output-es/Yoga.JSON.Generics.EnumSumRep/index.jsnew file+69

This diff is too big to show here.

output-es/Yoga.JSON.Generics.TaggedSumRep/index.jsnew file+166

This diff is too big to show here.

output-es/Yoga.JSON.Generics.UntaggedProductRep/index.jsnew file+71

This diff is too big to show here.

output-es/Yoga.JSON.Generics.UntaggedSumRep/index.jsnew file+75

This diff is too big to show here.

output-es/Yoga.JSON.Generics/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.JSON.Variant/index.jsnew file+138

This diff is too big to show here.

output-es/Yoga.JSON/foreign.jsnew file+19

This diff is too big to show here.

output-es/Yoga.JSON/index.jsnew file+923

This diff is too big to show here.

output-es/Yoga.Options/index.jsnew file+50

This diff is too big to show here.

output-es/Yoga.React.DOM.Attributes.AutoCapitalize/index.jsnew file+21

This diff is too big to show here.

output-es/Yoga.React.DOM.Attributes.Dir/index.jsnew file+11

This diff is too big to show here.

output-es/Yoga.React.DOM.Attributes.InputMode/index.jsnew file+13

This diff is too big to show here.

output-es/Yoga.React.DOM.Attributes.Target/index.jsnew file+9

This diff is too big to show here.

output-es/Yoga.React.DOM.Attributes.YesOrNo/index.jsnew file+24

This diff is too big to show here.

output-es/Yoga.React.DOM.Attributes/index.jsnew file+2

This diff is too big to show here.

output-es/Yoga.React.DOM.Client/foreign.jsnew file+11

This diff is too big to show here.

output-es/Yoga.React.DOM.Client/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.Event/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.A/index.jsnew file+4

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Abbr/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Address/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Area/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Article/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Aside/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Audio/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.B/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Base/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Bdi/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Bdo/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Blockquote/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Body/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Br/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Button/index.jsnew file+4

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Canvas/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Caption/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Cite/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Code/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Col/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.ColGroup/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Data/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.DataList/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Dd/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Del/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Details/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Dfn/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Dialog/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Div/index.jsnew file+4

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Dl/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Dt/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Em/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Embed/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.FieldSet/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Figcaption/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Figure/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Footer/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Form/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.H/index.jsnew file+8

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.HTML/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Head/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Header/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Hr/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.I/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.IFrame/index.jsnew file+4

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Img/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Input/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Kbd/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Label/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Legend/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Li/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Link/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Main/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Map/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Mark/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Menu/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Meta/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Meter/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Nav/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.NoScript/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Object/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Ol/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Optgroup/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Option/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Output/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.P/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Param/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Picture/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Pre/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Progress/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Q/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Rp/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Rt/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Ruby/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.S/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Samp/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Script/index.jsnew file+4

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Section/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Select/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Small/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Source/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Span/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Strong/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Style/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Sub/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Summary/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Sup/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Table/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Tbody/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Td/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Template/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Textarea/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Tfoot/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Th/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Thead/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Time/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Title/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Tr/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Track/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.U/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Ul/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Var/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Video/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML.Wbr/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM.HTML/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.React.DOM.Handler/index.jsnew file+9

This diff is too big to show here.

output-es/Yoga.React.DOM.Internal/foreign.jsnew file+16

This diff is too big to show here.

output-es/Yoga.React.DOM.Internal/index.jsnew file+62

This diff is too big to show here.

output-es/Yoga.React.DOM.Server/foreign.jsnew file+1

This diff is too big to show here.

output-es/Yoga.React.DOM.Server/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.React.DOM/index.jsnew file+1

This diff is too big to show here.

output-es/Yoga.React/index.jsnew file+3

This diff is too big to show here.

output-es/Yoga.Tree.Zipper/index.jsnew file+265

This diff is too big to show here.

output-es/Yoga.Tree/index.jsnew file+209

This diff is too big to show here.

output-es/YogaStories.CLI/foreign.jsnew file+10

This diff is too big to show here.

output-es/YogaStories.CLI/index.jsnew file+192

This diff is too big to show here.

output-es/YogaStories.Config/index.jsnew file+32

This diff is too big to show here.

output-es/YogaStories.Controls.Types/index.jsnew file+47

This diff is too big to show here.

output-es/YogaStories.Controls/foreign.jsnew file+21

This diff is too big to show here.

output-es/YogaStories.Controls/index.jsnew file+689

This diff is too big to show here.

output-es/YogaStories.Discovery/index.jsnew file+35

This diff is too big to show here.

output-es/YogaStories.ModuleInfo/index.jsnew file+66

This diff is too big to show here.

output-es/YogaStories.Resolution/index.jsnew file+9

This diff is too big to show here.

output-es/YogaStories.Server/index.jsnew file+53

This diff is too big to show here.

output-es/YogaStories.Story/index.jsnew file+54

This diff is too big to show here.

output-es/YogaStories.Types/index.jsnew file+1

This diff is too big to show here.

output-es/YogaStories.UI.Client/foreign.jsnew file+41

This diff is too big to show here.

output-es/YogaStories.UI.Client/index.jsnew file+416

This diff is too big to show here.

output-es/YogaStories.UI.Hash/foreign.jsnew file+2

This diff is too big to show here.

output-es/YogaStories.UI.Hash/index.jsnew file+121

This diff is too big to show here.

output-es/YogaStories.UI.Styles/index.jsnew file+77

This diff is too big to show here.

output-es/package.jsonnew file+1

This diff is too big to show here.

output-es/runtime.jsnew file+33

This diff is too big to show here.

output/cache-db.json+1−1

This diff is too big to show here.

package.json+1−1

This diff is too big to show here.

spago.lock+2−2

This diff is too big to show here.

spago.yaml+1−1

This diff is too big to show here.