@liascript/editor 1.1.4--0.15.1 → 1.1.5--0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/icon.110885f6.woff2 +0 -0
- package/dist/{icon.192aa014.eot → icon.222fabc2.eot} +0 -0
- package/dist/icon.3b70f1e6.svg +1 -0
- package/dist/{icon.144405c4.ttf → icon.bfc4bd4d.ttf} +0 -0
- package/dist/icon.e6a4a931.woff +0 -0
- package/dist/index.03130d65.js +1 -0
- package/dist/{index.bcb37d0a.js → index.1fff3e6b.js} +1 -1
- package/dist/index.23df81ae.js +1 -0
- package/dist/{index.5cc1b71c.js → index.2aeb41a5.js} +1 -1
- package/dist/index.87d02bbd.js +1 -0
- package/dist/index.897f01da.js +1 -0
- package/dist/index.a6846cba.css +1 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/Edrys.3278c326.js +0 -1
- package/dist/Edrys.37f10c7c.js +0 -1
- package/dist/Edrys.947d4ad2.js +0 -1
- package/dist/Edrys.a72376e3.js +0 -1
- package/dist/Gun.11528a5e.js +0 -1
- package/dist/Gun.a8998ad8.js +0 -1
- package/dist/P2PT.54680aa5.js +0 -1
- package/dist/P2PT.e8e586dc.js +0 -1
- package/dist/PubNub.5e938410.js +0 -1
- package/dist/PubNub.909274ea.js +0 -1
- package/dist/Trystero.8dffee2c.js +0 -1
- package/dist/Trystero.d7221dbd.js +0 -1
- package/dist/audio.flac +0 -0
- package/dist/icon.000fa25d.woff +0 -0
- package/dist/icon.b33d284a.svg +0 -1
- package/dist/icon.de36b718.woff2 +0 -0
- package/dist/index.513e6c88.js +0 -1
- package/dist/index.77da9204.js +0 -1
- package/dist/index.8905450f.js +0 -1
- package/dist/index.ad04399a.js +0 -1
- package/dist/index.ff04285d.css +0 -1
- package/dist/p2pt.33ef209b.js +0 -8
- package/dist/p2pt.cd402f50.js +0 -8
- package/dist/trystero-mqtt.min.52f29dd5.js +0 -1
- package/dist/trystero-mqtt.min.b4f9f9d6.js +0 -1
- package/dist/trystero-nostr.min.1de4bf18.js +0 -1
- package/dist/trystero-nostr.min.4602d9cb.js +0 -1
- package/dist/trystero-torrent.min.91429d42.js +0 -1
- package/dist/trystero-torrent.min.b5d9ebed.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:LiaSourceSansPro;font-style:normal;font-weight:400;src:url(source-sans-pro-v14-latin-regular.097b8a44.eot);src:local("."),url(source-sans-pro-v14-latin-regular.097b8a44.eot#iefix)format("embedded-opentype"),url(source-sans-pro-v14-latin-regular.bc1deea3.woff2)format("woff2"),url(source-sans-pro-v14-latin-regular.d3d258d8.woff)format("woff"),url(source-sans-pro-v14-latin-regular.89fa7c31.ttf)format("truetype"),url(source-sans-pro-v14-latin-regular.32b4dc53.svg#SourceSansPro)format("svg");font-display:swap}@font-face{font-family:LiaSourceSansPro;font-style:normal;font-weight:600;src:url(source-sans-pro-v14-latin-600.65fc2f67.eot);src:local("."),url(source-sans-pro-v14-latin-600.65fc2f67.eot#iefix)format("embedded-opentype"),url(source-sans-pro-v14-latin-600.8fb77535.woff2)format("woff2"),url(source-sans-pro-v14-latin-600.b5f40659.woff)format("woff"),url(source-sans-pro-v14-latin-600.d8df00af.ttf)format("truetype"),url(source-sans-pro-v14-latin-600.234ae412.svg#SourceSansPro)format("svg");font-display:swap}@font-face{font-family:LiaSourceSansPro;font-style:normal;font-weight:700;src:url(source-sans-pro-v14-latin-700.43d19605.eot);src:local("."),url(source-sans-pro-v14-latin-700.43d19605.eot#iefix)format("embedded-opentype"),url(source-sans-pro-v14-latin-700.19d2a757.woff2)format("woff2"),url(source-sans-pro-v14-latin-700.783891dd.woff)format("woff"),url(source-sans-pro-v14-latin-700.a5afadf4.ttf)format("truetype"),url(source-sans-pro-v14-latin-700.df9681de.svg#SourceSansPro)format("svg");font-display:swap}@font-face{font-family:LiaSourceSerifPro;font-style:normal;font-weight:600;src:url(source-serif-pro-v10-latin-600.b4666fd2.eot);src:local("."),url(source-serif-pro-v10-latin-600.b4666fd2.eot#iefix)format("embedded-opentype"),url(source-serif-pro-v10-latin-600.b852e510.woff2)format("woff2"),url(source-serif-pro-v10-latin-600.a3a31a14.woff)format("woff"),url(source-serif-pro-v10-latin-600.a6ed946c.ttf)format("truetype"),url(source-serif-pro-v10-latin-600.a8e70b44.svg#SourceSerifPro)format("svg");font-display:swap}@font-face{font-family:LiaSourceSerifPro;font-style:normal;font-weight:700;src:url(source-serif-pro-v10-latin-700.38c57352.eot);src:local("."),url(source-serif-pro-v10-latin-700.38c57352.eot#iefix)format("embedded-opentype"),url(source-serif-pro-v10-latin-700.05c6e580.woff2)format("woff2"),url(source-serif-pro-v10-latin-700.8d76004a.woff)format("woff"),url(source-serif-pro-v10-latin-700.ca4bf240.ttf)format("truetype"),url(source-serif-pro-v10-latin-700.90cffcb9.svg#SourceSerifPro)format("svg");font-display:swap}@font-face{font-family:LiaSourceCodePro;font-style:normal;font-weight:400;src:url(source-code-pro-v13-latin-regular.c2e0862c.eot);src:local("."),url(source-code-pro-v13-latin-regular.c2e0862c.eot#iefix)format("embedded-opentype"),url(source-code-pro-v13-latin-regular.21a33c48.woff2)format("woff2"),url(source-code-pro-v13-latin-regular.81f5593d.woff)format("woff"),url(source-code-pro-v13-latin-regular.d61437b4.ttf)format("truetype"),url(source-code-pro-v13-latin-regular.91afd03e.svg#SourceCodePro)format("svg");font-display:swap}@font-face{font-family:LiaSourceCodePro;font-style:normal;font-weight:600;src:url(source-code-pro-v13-latin-600.880fd07b.eot);src:local("."),url(source-code-pro-v13-latin-600.880fd07b.eot#iefix)format("embedded-opentype"),url(source-code-pro-v13-latin-600.92aac5ff.woff2)format("woff2"),url(source-code-pro-v13-latin-600.adab8c0f.woff)format("woff"),url(source-code-pro-v13-latin-600.2ae57109.ttf)format("truetype"),url(source-code-pro-v13-latin-600.15f00b22.svg#SourceCodePro)format("svg");font-display:swap}.icon{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-variant:normal;text-rendering:auto;font-style:normal;line-height:1;display:inline-block}.icon-lg{vertical-align:-.0667em;font-size:1.33333em;line-height:.75em}.icon-xs{font-size:.75em}.icon-sm{font-size:.875em}.icon-1x{font-size:1em}.icon-2x{font-size:2em}.icon-3x{font-size:3em}.icon-4x{font-size:4em}.icon-5x{font-size:5em}.icon-6x{font-size:6em}.icon-7x{font-size:7em}.icon-8x{font-size:8em}.icon-9x{font-size:9em}.icon-10x{font-size:10em}.icon-fw{text-align:center;width:1.25em}.icon-ul{margin-left:2.5em;padding-left:0;list-style-type:none}.icon-ul>li{position:relative}.icon-li{text-align:center;width:2em;line-height:inherit;position:absolute;left:-2em}.icon-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.icon-pull-left{float:left}.icon-pull-right{float:right}.icon.icon-pull-left{margin-right:.3em}.icon.icon-pull-right{margin-left:.3em}.icon-spin{animation:2s linear infinite icon-spin}.icon-pulse{animation:1s steps(8,end) infinite icon-spin}@keyframes icon-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.icon-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.icon-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.icon-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.icon-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.icon-flip-vertical{transform:scaleY(-1)}.icon-flip-both,.icon-flip-horizontal.icon-flip-vertical,.icon-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.icon-flip-both,.icon-flip-horizontal.icon-flip-vertical{transform:scale(-1)}:root .icon-flip-both,:root .icon-flip-horizontal,:root .icon-flip-vertical,:root .icon-rotate-90,:root .icon-rotate-180,:root .icon-rotate-270{-webkit-filter:none;filter:none}.icon-stack{height:2em;vertical-align:middle;width:2.5em;line-height:2em;display:inline-block;position:relative}.icon-stack-1x,.icon-stack-2x{text-align:center;width:100%;position:absolute;left:0}.icon-stack-1x{line-height:inherit}.icon-stack-2x{font-size:2em}.icon-inverse{color:#fff}.icon-arrow-down:before{content:""}.icon-arrow-left:before{content:""}.icon-arrow-right:before{content:""}.icon-arrow-up:before{content:""}.icon-barchart:before{content:""}.icon-book:before{content:""}.icon-boxplot:before{content:""}.icon-chat-close:before{content:""}.icon-chat-new:before{content:""}.icon-chat-open:before{content:""}.icon-check:before{content:""}.icon-chevron-double-left:before{content:""}.icon-chevron-double-right:before{content:""}.icon-chevron-down:before{content:""}.icon-chevron-left:before{content:""}.icon-chevron-right:before{content:""}.icon-chevron-up:before{content:""}.icon-class-off:before{content:""}.icon-class-on:before{content:""}.icon-clock:before{content:""}.icon-close:before{content:""}.icon-code:before{content:""}.icon-compile-circle:before{content:""}.icon-copy:before{content:""}.icon-darkmode:before{content:""}.icon-download:before{content:""}.icon-edrys:before{content:""}.icon-end-left:before{content:""}.icon-end-right:before{content:""}.icon-funnel:before{content:""}.icon-graph:before{content:""}.icon-grid:before{content:""}.icon-gundb:before{content:""}.icon-heatmap:before{content:""}.icon-hint:before{content:""}.icon-info:before{content:""}.icon-lightmode:before{content:""}.icon-lineplot:before{content:""}.icon-list-1:before{content:""}.icon-list-2:before{content:""}.icon-list-3:before{content:""}.icon-login:before{content:""}.icon-mail:before{content:""}.icon-map:before{content:""}.icon-minus:before{content:""}.icon-more:before{content:""}.icon-mqtt:before{content:""}.icon-nostr:before{content:""}.icon-p2pt:before{content:""}.icon-parallel:before{content:""}.icon-pencil:before{content:""}.icon-person:before{content:""}.icon-piechart:before{content:""}.icon-play-circle:before{content:""}.icon-plus:before{content:""}.icon-presentation:before{content:""}.icon-pubnub:before{content:""}.icon-radar:before{content:""}.icon-refresh:before{content:""}.icon-resolve:before{content:""}.icon-sankey:before{content:""}.icon-scatterplot:before{content:""}.icon-search:before{content:""}.icon-send:before{content:""}.icon-settings:before{content:""}.icon-slides:before{content:""}.icon-social:before{content:""}.icon-sort-asc:before{content:""}.icon-sort-desc:before{content:""}.icon-sound-off:before{content:""}.icon-sound-on:before{content:""}.icon-stop-circle:before{content:""}.icon-table:before{content:""}.icon-torrent:before{content:""}.icon-trash:before{content:""}.icon-warning:before{content:""}.icon-zoom-out:before{content:""}.icon-zoom:before{content:""}@font-face{font-family:icon;font-style:normal;font-weight:900;font-display:block;src:url(icon.222fabc2.eot);src:url(icon.222fabc2.eot#iefix)format("embedded-opentype"),url(icon.110885f6.woff2)format("woff2"),url(icon.e6a4a931.woff)format("woff"),url(icon.bfc4bd4d.ttf)format("truetype"),url(icon.3b70f1e6.svg#icon)format("svg");font-display:swap}.icon{font-family:icon;font-weight:900}html{font-size:62.5%}body{background-color:rgb(var(--color-background));color:rgb(var(--color-text));font-size:calc(var(--global-font-size,1.5rem)*var(--font-size-multiplier));font-weight:400;line-height:1.47}body,button,input,optgroup,select,textarea{font-family:var(--global-font-family,"LiaSourceSansPro")}a,button{cursor:pointer}@keyframes shake{0%{transform:translate(0)}10%{transform:translate(-5px)}20%{transform:translate(5px)}30%{transform:translate(-5px)}40%{transform:translate(5px)}50%{transform:translate(-5px)}60%{transform:translate(5px)}70%{transform:translate(-5px)}80%{transform:translate(5px)}90%{transform:translate(-5px)}to{transform:translate(0)}}.shake{animation-name:shake;animation-duration:1s;animation-iteration-count:1;animation-delay:0s}body,h1,h2,h3,h4,h5,h6,blockquote,p,pre,dl,dd,ol,ul,figure,hr,fieldset,legend,output{margin:0;padding:0}li>ol,li>ul{margin-bottom:0}table{border-collapse:collapse;border-spacing:0}fieldset{min-width:0;border:0}body{box-sizing:border-box}*,:after,:before{box-sizing:inherit}span{font-style:inherit;font-weight:inherit}input[type=search]::-ms-clear{width:0;height:0;display:none}input[type=search]::-ms-reveal{width:0;height:0;display:none}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;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}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,input{overflow:visible}optgroup{background-color:rgb(var(--color-background))}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;max-width:100%;white-space:normal;padding:0;display:table}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}address,h1,h2,h3,h4,h5,h6,blockquote,p,pre,dl,ol,ul,fieldset{margin-bottom:1rem}:focus{outline:0;box-shadow:0 0 0 .25rem rgba(var(--color-highlight),.15)!important}button,.lia-btn,input,.lia-input,select,.lia-select,textarea,.lia-textarea,.lia-dropdown{box-shadow:none;color:currentColor;vertical-align:top;border:1px solid #0000;border-radius:.8rem;justify-content:flex-start;align-items:center;padding:.8rem;display:inline-flex;position:relative}button[disabled],button--disabled,input[disabled],input--disabled,select[disabled],select--disabled,textarea[disabled],textarea--disabled{cursor:not-allowed}.lia-btn,.lia-input,.lia-radio,.lia-checkbox,.lia-select,.lia-textarea,.lia-dropdown{background-color:#0000}.lia-btn[disabled],.lia-btn--disabled,.lia-btn.is-disabled,.lia-input[disabled],.lia-input--disabled,.lia-input.is-disabled,.lia-radio[disabled],.lia-radio--disabled,.lia-radio.is-disabled,.lia-checkbox[disabled],.lia-checkbox--disabled,.lia-checkbox.is-disabled,.lia-select[disabled],.lia-select--disabled,.lia-select.is-disabled,.lia-textarea[disabled],.lia-textarea--disabled,.lia-textarea.is-disabled,.lia-dropdown[disabled],.lia-dropdown--disabled,.lia-dropdown.is-disabled{cursor:not-allowed}kbd{font:1rem var(--global-font-mono);vertical-align:middle;background-color:rgba(var(--color-highlight),.15);border:solid 1px rgba(var(--color-highlight-dark),.15);box-shadow:inset 0 1px 0 rgb(var(--color-border));border-radius:6px;padding:3px 5px;line-height:1rem;display:inline-block}.lia-btn{background-color:rgb(var(--color-highlight));color:rgb(var(--lia-white));border:none;align-items:center;padding:.5rem .6rem;line-height:1.47;display:inline-block}.lia-btn--warning{background-color:rgb(var(--lia-yellow));color:rgb(var(--lia-white));border-color:#0000}.lia-btn--failure{background-color:rgb(var(--lia-red));color:rgb(var(--lia-white));border-color:#0000}.lia-btn--success{background-color:rgb(var(--lia-success));color:rgb(var(--lia-white));border-color:#0000}.lia-btn[disabled],.lia-btn--disabled{background-color:rgb(var(--lia-grey-light));border-color:rgb(var(--lia-grey));color:rgb(var(--lia-grey))}.lia-btn--tag{border-radius:0}.lia-btn--outline{color:rgb(var(--color-highlight));background-color:rgb(var(--color-background));border:1px solid rgb(var(--color-highlight))}.lia-btn--outline.lia-btn--warning{border-color:rgb(var(--lia-yellow));color:rgb(var(--lia-yellow));background-color:#0000}.lia-btn--outline.lia-btn--failure{border-color:rgb(var(--lia-red));color:rgb(var(--lia-red));background-color:#0000}.lia-btn--outline.lia-btn--success{border-color:rgb(var(--lia-success));color:rgb(var(--lia-success));background-color:#0000}.lia-btn--outline[disabled],.lia-btn--outline.lia-btn--disabled{border-color:rgb(var(--lia-grey));color:rgb(var(--lia-grey));background-color:#0000}.lia-btn--transparent{color:currentColor;border:none;background-color:#0000!important}.lia-btn>.lia-btn__icon{line-height:inherit;vertical-align:middle}.lia-btn>.lia-btn__text{vertical-align:middle;margin-left:1rem}.lia-btn>.icon{vertical-align:middle}a.lia-btn{text-decoration:none}.lia-code{margin-bottom:2rem;font-family:LiaSourceCodePro}.lia-code--block>:not(:last-child){margin-bottom:1rem}.lia-code--inline{border:1px solid rgb(var(--color-highlight-dark));color:rgb(var(--color-highlight-dark));word-break:break-word;margin-bottom:0;padding:0 .5rem}.lia-code-control{color:rgb(var(--color-highlight));align-items:center;padding:0 .5rem;font-size:1.8rem;display:flex}.lia-code-control__action{margin-right:auto}.lia-code-control__version{align-items:center;display:flex}.lia-code-control__version>:not(:last-child){margin-right:.5rem}.lia-code-terminal{background-color:rgb(var(--lia-black));flex-direction:column;display:flex}.lia-code-terminal__input{background-color:rgba(var(--lia-white),.1);border:1px solid rgba(var(--lia-white),.5);color:rgb(var(--lia-white));border-radius:.8rem;align-items:center;margin:1rem 1.6rem;padding:0 .8rem;display:flex}.lia-code-terminal__input input{color:rgb(var(--lia-white));line-height:inherit;width:100%;background-color:#0000;border:0}.lia-code-terminal__output{background:linear-gradient(135deg,rgb(var(--lia-black)),rgb(var(--lia-black))calc(100% - 1.25rem),rgb(var(--color-highlight-dark))0%);max-height:20rem;resize:vertical;white-space:pre;margin:0;padding:1rem 1.6rem;overflow-y:auto}.lia-code-terminal__output::-webkit-resizer{background:linear-gradient(135deg,rgb(var(--lia-anthracite)),rgb(var(--lia-anthracite))50%,rgb(var(--color-highlight-dark))0%)}.lia-code__input{border:1px solid rgb(var(--color-highlight));position:relative}.lia-code__min-max{color:rgb(var(--color-highlight));z-index:10;font-size:2rem;position:absolute;bottom:0;right:2rem}.lia-code__copy{z-index:100;color:rgb(var(--color-highlight));padding:0 .5rem;font-size:2rem;position:absolute;top:0;right:0}.lia-code__copy:hover{background-color:rgb(var(--color-background))!important}.lia-code__copy--inverted{z-index:100;color:rgb(var(--color-background));padding:0 .5rem;font-size:2rem;top:0;right:0}.lia-code__copy--inverted:hover{background-color:rgb(var(--color-highlight-dark))!important}.ace_editor{max-height:calc(var(--max-editor-line-count)*var(--global-font-size,1.5rem)*var(--font-size-multiplier)*1.47)!important;font-size:calc(var(--global-font-size,1.5rem)*var(--font-size-multiplier))!important;height:auto!important}.ace_mobile-menu{display:none!important}h1,h2,h3{font-family:LiaSourceSerifPro;line-height:1.47}h4,h5{font-family:LiaSourceSansPro;line-height:1.38}h1{font-size:calc(2.3rem*var(--font-size-multiplier))}@media screen and (min-width:64em){h1{font-size:calc(4rem*var(--font-size-multiplier))}.lia-mode--textbook h1{font-size:calc(3.7rem*var(--font-size-multiplier))}}h2{font-size:calc(2rem*var(--font-size-multiplier))}@media screen and (min-width:64em){h2{font-size:calc(2.9rem*var(--font-size-multiplier))}}h3{font-size:calc(2.3rem*var(--font-size-multiplier))}@media screen and (min-width:64em){h3{font-size:calc(2.3rem*var(--font-size-multiplier))}}h4,h5{font-size:calc(1.6rem*var(--font-size-multiplier))}.lia-divider{background-color:rgb(var(--color-border));height:1px;border:0;margin:1.5rem 0}.lia-input{max-width:100%;width:100%}.lia-input.is-failure{border-color:rgb(var(--lia-red))}.lia-input.is-warning{border-color:rgb(var(--lia-yellow))}.lia-input.is-success{border-color:rgb(var(--lia-success))}.lia-input.is-disabled{border-color:rgb(var(--lia-grey))}input[type=search]::-ms-clear{width:0;height:0;display:none}input[type=search]::-ms-reveal{width:0;height:0;display:none}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.lia-form-check{align-items:center;display:flex}.lia-form-check .lia-checkbox{margin-right:.75rem}.lia-checkbox[type=checkbox],.lia-radio[type=radio]{-webkit-appearance:none;appearance:none;-webkit-print-color-adjust:exact;border:1px solid rgb(var(--color-highlight));color-adjust:exact;cursor:pointer;height:2.4rem;vertical-align:middle;width:2.4rem;background-position:50%;background-repeat:no-repeat;background-size:contain;transition:all .125s ease-in-out;position:relative}.lia-checkbox[type=checkbox].is-failure,.lia-radio[type=radio].is-failure{border-color:rgb(var(--lia-red))}.lia-checkbox[type=checkbox].is-warning,.lia-radio[type=radio].is-warning{border-color:rgb(var(--lia-yellow))}.lia-checkbox[type=checkbox].is-success,.lia-checkbox[type=checkbox].is-success:checked,.lia-checkbox[type=checkbox].is-success[disabled]:checked,.lia-radio[type=radio].is-success,.lia-radio[type=radio].is-success:checked,.lia-radio[type=radio].is-success[disabled]:checked{border-color:rgb(var(--lia-success))}.lia-checkbox[type=checkbox].is-disabled,.lia-radio[type=radio].is-disabled{border-color:rgb(var(--lia-grey))}.lia-checkbox[type=checkbox]{border-radius:.8rem}.lia-checkbox[type=checkbox]:after{color:#fff;content:"";opacity:0;font-family:icon;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.lia-checkbox[type=checkbox]:checked{background-color:rgb(var(--color-highlight))}.lia-checkbox[type=checkbox]:checked:after{opacity:1}.lia-checkbox[type=checkbox].is-turquoise{background-color:rgb(var(--lia-turquoise));border-color:rgb(var(--lia-turquoise))}.lia-checkbox[type=checkbox].is-red{background-color:rgb(var(--lia-red));border-color:rgb(var(--lia-red))}.lia-checkbox[type=checkbox].is-blue{background-color:rgb(var(--lia-blue));border-color:rgb(var(--lia-blue))}.lia-checkbox[type=checkbox].is-yellow{background-color:rgb(var(--lia-yellow));border-color:rgb(var(--lia-yellow))}.lia-checkbox[type=checkbox][disabled]{border-color:rgb(var(--lia-grey))}.lia-checkbox[type=checkbox][disabled]:checked{background-color:rgb(var(--lia-grey));border-color:rgb(var(--lia-grey))}.lia-checkbox[type=checkbox].is-success:checked{background-color:rgb(var(--lia-success))}.lia-checkbox[type=checkbox].is-failure:checked{background-color:rgb(var(--lia-red))}.lia-radio[type=radio]{border-radius:100%}.lia-radio[type=radio]:checked{border:.8rem solid rgb(var(--color-highlight))}.lia-radio[type=radio].is-red,.lia-radio[type=radio].is-red:checked{border-color:rgb(var(--lia-turquoise))}.lia-radio[type=radio].is-blue,.lia-radio[type=radio].is-blue:checked{border-color:rgb(var(--lia-blue))}.lia-radio[type=radio].is-yellow,.lia-radio[type=radio].is-yellow:checked{border-color:rgb(var(--lia-yellow))}.lia-radio[type=radio][disabled],.lia-radio[type=radio][disabled]:checked{border-color:rgb(var(--lia-grey))}.lia-radio[type=radio].is-failure:checked{border-color:rgb(var(--lia-red))}.lia-radio-group.lia-settings-theme-colors{width:100%;justify-content:space-evenly;margin-left:.4rem;padding:.4rem 0;display:flex}.lia-radio-group.lia-settings-theme-colors>:not(:last-child){margin-right:.75rem}.lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio]{height:1.8rem;width:1.8rem;background-color:rgb(var(--lia-grey-light));border:none}.lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio].is-turquoise{background-color:rgb(var(--lia-turquoise))}.lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio].is-red{background-color:rgb(var(--lia-red))}.lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio].is-blue{background-color:rgb(var(--lia-blue))}.lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio].is-yellow{background-color:rgb(var(--lia-yellow))}.lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio].is-custom{background:linear-gradient(to right,rgb(var(--lia-blue)),rgb(var(--lia-red)))}.lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio]:checked:before{content:"";height:2.4rem;width:2.4rem;border:1px solid #000;border-radius:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}html.lia-variant-dark .lia-radio-group.lia-settings-theme-colors .lia-radio[type=radio]:checked:before{border-color:rgb(var(--lia-white))}[type=range],.lia-range{-webkit-appearance:none;width:100%;background:0 0}[type=range]::-moz-focus-outer,.lia-range::-moz-focus-outer{border:0}[type=range]:active,.lia-range:active{cursor:grabbing}[type=range]:focus,.lia-range:focus{outline:0}[type=range]:focus::-webkit-slider-runnable-track,.lia-range:focus::-webkit-slider-runnable-track{background:rgb(var(--color-highlight))}[type=range]:focus::-ms-fill-lower,.lia-range:focus::-ms-fill-lower{background:rgba(var(--color-highlight),.2)}[type=range]:focus::-ms-fill-upper,.lia-range:focus::-ms-fill-upper{background:rgb(var(--color-highlight))}[type=range]::-webkit-slider-runnable-track,.lia-range::-webkit-slider-runnable-track{cursor:default;height:3px;width:100%;background:rgba(var(--color-highlight),.2);border-radius:.8rem;transition:all .2s}[type=range]::-webkit-slider-thumb,.lia-range::-webkit-slider-thumb{background:rgb(var(--color-highlight));border:4px solid rgb(var(--lia-white));box-sizing:border-box;cursor:grab;height:16px;width:16px;-webkit-appearance:none;border-radius:8px;margin-top:-8px;box-shadow:0 0 10px #0000001a,0 0 #0d0d0d1a}[type=range]::-moz-range-track,.lia-range::-moz-range-track{cursor:default;height:3px;width:100%;background:rgba(var(--color-highlight),.2);border:2px solid rgb(var(--lia-white));height:1.5px;border-radius:5px;transition:all .2s}[type=range]::-moz-range-thumb,.lia-range::-moz-range-thumb{background:rgb(var(--color-highlight));border:4px solid rgb(var(--lia-white));box-sizing:border-box;cursor:grab;height:16px;width:16px;border-radius:8px;box-shadow:0 0 10px #0000001a,0 0 #0d0d0d1a}[type=range]::-ms-track,.lia-range::-ms-track{cursor:default;height:3px;width:100%;color:#0000;background:0 0;border-width:8px 0;border-color:#0000;transition:all .2s}[type=range]::-ms-fill-lower,.lia-range::-ms-fill-lower{background:rgb(var(--color-highlight));border:2px solid rgb(var(--lia-white));border-radius:10px;box-shadow:1px 1px 1px #0003,0 0 1px #0d0d0d33}[type=range]::-ms-fill-upper,.lia-range::-ms-fill-upper{background:rgba(var(--color-highlight),.2);border:2px solid rgb(var(--lia-white));border-radius:10px;box-shadow:1px 1px 1px #0003,0 0 1px #0d0d0d33}[type=range]::-ms-thumb,.lia-range::-ms-thumb{background:rgb(var(--color-highlight));border:4px solid rgb(var(--lia-white));box-sizing:border-box;cursor:grab;height:16px;width:16px;border-radius:8px;margin-top:.75px;box-shadow:0 0 10px #0000001a,0 0 #0d0d0d1a}[type=range]:disabled::-webkit-slider-thumb,[type=range]:disabled::-moz-range-thumb,[type=range]:disabled::-ms-thumb,[type=range]:disabled::-webkit-slider-runnable-track,[type=range]:disabled::-ms-fill-lower,[type=range]:disabled::-ms-fill-upper,.lia-range:disabled::-webkit-slider-thumb,.lia-range:disabled::-moz-range-thumb,.lia-range:disabled::-ms-thumb,.lia-range:disabled::-webkit-slider-runnable-track,.lia-range:disabled::-ms-fill-lower,.lia-range:disabled::-ms-fill-upper{cursor:not-allowed}.lia-label{align-items:center;display:inline-flex}.lia-label>.lia-radio,.lia-label>.lia-checkbox{min-width:2.4rem;margin-right:1rem}a,.lia-link{color:rgb(var(--color-highlight));word-break:break-word}a:link,a:visited,.lia-link:link,.lia-link:visited{color:rgb(var(--color-highlight))}a:hover,.lia-link:hover{color:rgb(var(--color-highlight-dark))}.lia-list--unordered,.lia-list--ordered{margin-left:2rem;padding-left:2rem;position:relative}.lia-list--unordered ul,.lia-list--unordered ol,.lia-list--ordered ul,.lia-list--ordered ol{margin-left:0}.lia-list--unordered{list-style-type:none}.lia-list--unordered>li:before{content:"";color:rgb(var(--color-highlight-dark));font-family:icon;position:absolute;left:0}.lia-list--unordered>li>p{display:block}.lia-list--unordered ul li:before{content:""}.lia-list--unordered ul li ul li:before{content:""}.lia-list--ordered>li::marker{color:rgb(var(--color-highlight-dark))}.lia-list--ordered>li>*{position:relative;left:1rem}img{height:auto;max-width:100%;vertical-align:middle;max-height:80vh;font-style:italic}figure{margin-bottom:2rem}figure figcaption{margin:.25rem 0;font-size:small}.lia-video-wrapper,.lia-iframe-wrapper{height:0;padding-bottom:56.25%;position:relative}.lia-iframe-wrapper iframe{width:100%;height:100%;border:0;position:absolute;top:0;left:0}.lia-video-wrapper video{width:100%;height:100%;max-height:80vh;max-width:100%;border:0;position:absolute;top:0;left:0}:root{--lia-anthracite:75,75,75;--lia-blue-darker:0,72,113;--lia-blue-dark:12,120,171;--lia-blue:15,147,209;--lia-grey-dark:50,50,50;--lia-grey-light:240,240,240;--lia-grey-lighter:249,249,249;--lia-grey:174,174,174;--lia-red-darker:104,0,0;--lia-red-dark:185,75,60;--lia-red:221,87,70;--lia-success:140,201,111;--lia-turquoise-darker:15,54,69;--lia-turquoise-dark:42,109,111;--lia-turquoise:57,145,147;--lia-warning:244,195,67;--lia-white:255,255,255;--lia-yellow-darker:124,60,0;--lia-yellow-dark:189,125,32;--lia-yellow:227,151,38;--lia-black:0,0,0;--color-background:var(--lia-white);--color-border:var(--lia-grey-light);--color-highlight-dark:var(--lia-turquoise-dark);--color-highlight-menu:var(--lia-turquoise);--color-highlight:var(--lia-turquoise);--color-text:var(--lia-anthracite)}:root.lia-theme-turquoise{--color-highlight-dark:var(--lia-turquoise-dark);--color-highlight-menu:var(--lia-turquoise-darker);--color-highlight:var(--lia-turquoise)}:root.lia-theme-red{--color-highlight-dark:var(--lia-red-dark);--color-highlight-menu:var(--lia-red-darker);--color-highlight:var(--lia-red)}:root.lia-theme-blue{--color-highlight-dark:var(--lia-blue-dark);--color-highlight-menu:var(--lia-blue-darker);--color-highlight:var(--lia-blue)}:root.lia-theme-yellow{--color-highlight-dark:var(--lia-yellow-dark);--color-highlight-menu:var(--lia-yellow-darker);--color-highlight:var(--lia-yellow)}:root.lia-variant-dark{--color-background:var(--lia-grey-dark);--color-border:var(--lia-anthracite);--color-text:var(--lia-white)}:root{--global-font-family:LiaSourceSansPro;--global-font-mono:LiaSourceCodePro;--global-font-headline:LiaSourceSerifPro;--global-font-size:1.5rem;--font-size-multiplier:1;--max-editor-line-count:16}:root.lia-font-scale-2{--font-size-multiplier:1.25}:root.lia-font-scale-3{--font-size-multiplier:1.5}html{height:100%}.lia-select{border:1px solid rgb(var(--lia-grey-light));width:100%;word-wrap:normal;padding:.5rem}.lia-table{border-collapse:separate;border-spacing:0;table-layout:auto;width:100%}.lia-table-responsive{max-height:80vh;width:100%;margin-bottom:3rem;display:block;overflow:auto}.lia-table-responsive.has-thead-sticky .lia-table__head{z-index:3;position:sticky}.lia-table-responsive.has-thead-sticky .lia-table__head th{z-index:1;position:sticky;top:0}.lia-table-responsive.has-thead-sticky.has-first-col-sticky .lia-table__head th:first-child{z-index:2;position:sticky;left:0}.lia-table-responsive.has-thead-sticky.has-first-col-sticky .is-alternating .lia-table__row:nth-child(2n) td:first-child:before{background-color:rgb(var(--lia-grey-lighter))}html.lia-variant-dark .lia-table-responsive.has-thead-sticky.has-first-col-sticky .is-alternating .lia-table__row:nth-child(2n) td:first-child:before{background-color:rgba(var(--lia-grey),.3)}.lia-table-responsive.has-thead-sticky.has-first-col-sticky .is-alternating .lia-table__row:nth-child(2n):hover td:first-child:before{background-color:rgba(var(--color-highlight),.1)}html.lia-variant-dark .lia-table-responsive.has-thead-sticky.has-first-col-sticky .is-alternating .lia-table__row:nth-child(2n):hover td:first-child:before{background-color:rgba(var(--color-highlight),.15)}.lia-table-responsive.has-thead-sticky.has-last-col-sticky .lia-table__head th:last-child{z-index:2;position:sticky;right:0}.lia-table-responsive.has-thead-sticky.has-last-col-sticky .is-alternating .lia-table__row:nth-child(2n) td:last-child:before{background-color:rgb(var(--lia-grey-lighter))}html.lia-variant-dark .lia-table-responsive.has-thead-sticky.has-last-col-sticky .is-alternating .lia-table__row:nth-child(2n) td:last-child:before{background-color:rgba(var(--lia-grey),.3)}.lia-table-responsive.has-thead-sticky.has-last-col-sticky .is-alternating .lia-table__row:nth-child(2n):hover td:last-child:before{background-color:rgba(var(--color-highlight),.1)}html.lia-variant-dark .lia-table-responsive.has-thead-sticky.has-last-col-sticky .is-alternating .lia-table__row:nth-child(2n):hover td:last-child:before{background-color:rgba(var(--color-highlight),.15)}.lia-table-responsive.has-first-col-sticky .lia-table__data:first-child{border-left:1px solid rgb(var(--color-border));border-right:1px solid rgb(var(--color-border));z-index:2;position:sticky;left:0}.lia-table-responsive.has-first-col-sticky .lia-table__data:first-child:before,.lia-table-responsive.has-first-col-sticky .lia-table__data:first-child:after{content:"";width:100%;height:100%;position:absolute;top:0;left:0}.lia-table-responsive.has-first-col-sticky .lia-table__data:first-child:before{z-index:-1}.lia-table-responsive.has-first-col-sticky .lia-table__data:first-child:after{z-index:-2}.lia-table-responsive.has-first-col-sticky .lia-table__row:hover>td:first-child:before{background-color:rgba(var(--color-highlight),.1)}.lia-table-responsive.has-last-col-sticky .lia-table__data:first-child{border-right:1px solid rgb(var(--color-border))}.lia-table-responsive.has-last-col-sticky .lia-table__data:last-child{border-left:1px solid rgb(var(--color-border));border-right:1px solid rgb(var(--color-border));z-index:2;position:sticky;right:0}.lia-table-responsive.has-last-col-sticky .lia-table__data:last-child:before,.lia-table-responsive.has-last-col-sticky .lia-table__data:last-child:after{content:"";width:100%;background-color:rgb(var(--color-background));height:100%;position:absolute;top:0;left:0}.lia-table-responsive.has-last-col-sticky .lia-table__data:last-child:before{z-index:-1}.lia-table-responsive.has-last-col-sticky .lia-table__data:last-child:after{z-index:-2}.lia-table-responsive.has-last-col-sticky .lia-table__row:hover>td:last-child:before{background-color:rgba(var(--color-highlight),.1)}.lia-table__head{border-bottom:1px solid rgb(var(--color-border))}.lia-table__head th,.lia-table__row td{background-color:rgb(var(--color-background))}.lia-table__row:first-of-type>td{border-top:0}.lia-table__row:last-child>td{border-bottom:1px solid rgb(var(--color-border))}.lia-table__row:hover,.lia-table__row:hover>td{background-color:rgba(var(--color-highlight),.05)}.lia-table__header{border-top:1px solid rgb(var(--color-border));border-left:1px solid rgb(var(--color-border));border-bottom:1px solid rgb(var(--color-border));border-right:0;padding:1.3rem 3.2rem 1.3rem 1.6rem;position:relative}.lia-table__header:first-child{border-left:1px solid rgb(var(--color-border));border-right:1px solid rgb(var(--color-border))}.lia-table__header:nth-child(2){border-left:0}.lia-table__header:last-child{border-right:1px solid rgb(var(--color-border))}.lia-table__data{border-top:1px solid rgb(var(--color-border));border-left:1px solid rgb(var(--color-border));border-bottom:0;border-right:0;padding:1rem 3.2rem 1rem 1.6rem}.lia-table__data:last-child{border-right:1px solid rgb(var(--color-border))}.lia-table__data:nth-child(2){border-left:0}.lia-table__header,.lia-table__data{max-width:50vw;min-width:13.5rem;word-wrap:break-word}.lia-table__sort{margin-left:auto;position:absolute;top:50%;right:2px;transform:translateY(-50%)}.lia-table__sort.active{color:rgb(var(--color-highlight))}.lia-table.is-alternating .lia-table__row:nth-child(2n) td{background-color:rgba(var(--lia-grey-lighter))}html.lia-variant-dark .lia-table.is-alternating .lia-table__row:nth-child(2n) td{background-color:rgba(var(--lia-grey),.3)}.lia-table.is-alternating .lia-table__row:nth-child(2n):hover td,.lia-table.is-alternating .lia-table__row:nth-child(2n):hover td:last-child:before{background-color:rgba(var(--color-highlight),.05)}html.lia-variant-dark .lia-table.is-alternating .lia-table__row:nth-child(2n):hover td,html.lia-variant-dark .lia-table.is-alternating .lia-table__row:nth-child(2n):hover td:last-child:before{background-color:rgba(var(--color-highlight),.1)}b,strong{font-weight:600}.lia-paragraph>figure:first-child{max-width:50%;float:left;margin:0 2rem 2rem 0}.lia-textarea{max-width:100%;width:100%;border:none;transition:border-bottom-color .5s ease-out}.lia-textarea:not([disabled]){border-bottom:1.5px solid}.lia-textarea[disabled]{border-bottom:1.5px dotted}@keyframes rotating{to{transform:rotate(360deg)}}.rotating{animation:1s linear infinite rotating}@keyframes show-comment{0%{left:calc(100% + 3rem);right:calc(3rem - 100%)}to{left:3rem;right:3rem}}.show-comment{animation:show-comment}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.fade-in{animation:2s fadein}.lia-canvas{background-color:rgb(var(--color-background));height:100vh;width:100vw;flex-direction:column;transition:left .25s ease-in-out,right .25s ease-in-out,width .25s ease-in-out;display:flex;position:relative;left:0;overflow-x:hidden}.lia-canvas .lia-skip-nav{z-index:1000;background-color:rgb(var(--color-background));border:1px solid rgb(var(--color-border));padding:.5rem 1.5rem;transition:transform .325s ease-in;position:absolute;top:1rem;left:50%;transform:translate(-50%,-120%)}.lia-canvas .lia-skip-nav:focus{top:1rem;left:50%;transform:translate(-50%)}@media screen and (max-width:47.9375em){.lia-canvas.lia-toc--visible #lia-btn-support,.lia-canvas.lia-support--visible #lia-btn-toc{transform:translateY(-50%)}.lia-canvas.lia-toc--visible.lia-support--visible #lia-btn-toc,.lia-canvas.lia-toc--visible.lia-support--visible #lia-btn-support{transform:translate(-3rem,-50%)}}@media screen and (min-width:48em){.lia-canvas.lia-toc--visible{width:calc(100% - 28.5rem);left:28.5rem}.lia-canvas.lia-toc--visible .lia-header{left:28.5rem}.lia-canvas.lia-support--visible{width:calc(100% - 21.6rem);right:21.6rem}.lia-canvas.lia-support--visible .lia-header{right:21.6rem}.lia-canvas.lia-toc--visible.lia-support--visible{width:calc(100% - 50.1rem)}}@media screen and (min-width:90em){.lia-canvas{flex-direction:row}.lia-canvas.lia-support--visible{width:auto}}.lia-canvas.lia-mode--slides .lia-slide{height:calc(100vh - 7.2rem)}@media screen and (min-width:90em){.lia-canvas.lia-mode--slides .lia-header{right:31.5rem}.lia-canvas.lia-mode--slides .lia-slide{height:100vh;max-width:calc(100% - 31.5rem)}}.lia-canvas.lia-mode--textbook .lia-slide__content{max-width:93.1rem;padding-left:3rem!important}@media screen and (min-width:48em){.lia-canvas.lia-mode--textbook .lia-slide__content{margin:1.25rem 0 2rem}}@media screen and (min-width:64em){.lia-canvas.lia-mode--textbook .lia-slide__content{margin:4.5rem 0 2rem}}.lia-canvas.lia-mode--textbook .lia-slide__container{justify-content:center;display:flex}@media screen and (min-width:64em){.lia-canvas.lia-mode--textbook .lia-slide__content{padding-left:19rem}.lia-canvas.lia-mode--textbook .lia-pagination{margin-bottom:2rem}}.lia-canvas.lia-mode--presentation .lia-slide__content{max-width:124.6rem}.preview-grid{grid-gap:2rem;grid-template-columns:1fr;margin:2rem 0;display:grid}@media screen and (min-width:64em){.preview-grid{grid-template-columns:repeat(2,1fr)}}@media screen and (min-width:90em){.preview-grid{grid-template-columns:repeat(auto-fill,minmax(41.6rem,1fr))}}.lia-accordion__header{background-color:rgb(var(--color-highlight));align-items:center;padding-left:.25rem;display:flex}.lia-accordion__headline{color:rgb(var(--lia-white));margin:0 auto 0 0;font-family:LiaSourceSansPro;font-size:1.5rem}.lia-accordion__toggle{color:rgb(var(--lia-white));font-size:2rem}.lia-card{background-color:rgb(var(--color-background));border:1px solid rgb(var(--color-highlight));color:rgb(var(--color-text));flex-direction:column;margin-top:10px;display:flex;position:relative}@media screen and (min-width:47.9375em) and (max-width:63.9375em){.lia-card{grid-template-columns:40% 1fr;display:grid}}@media (max-width:240px){.lia-card__media{display:none}}.lia-card__logo{height:100%}.lia-card__content{height:100%;flex-direction:column;padding:2rem 0;display:flex}@media screen and (min-width:47.9375em) and (max-width:63.9375em){.lia-card__content{height:auto;margin-top:4rem;padding-top:0}.lia-card__aside{height:100%}}.lia-card__figure{height:20rem;width:100%;margin:0}@media screen and (min-width:47.9375em) and (max-width:63.9375em){.lia-card__figure{height:100%}}.lia-card__image{height:100%;object-fit:cover;width:100%}.lia-card__version{position:absolute;top:-1px;right:2.4rem}.lia-card__version>:not(:last-child){margin-right:1rem}@media (max-width:360px){.lia-card__version{font-size:xx-small}}.lia-card__header{padding:0 2.4rem}.lia-card__title{margin:0 0 2rem;display:inline-block;position:relative}.lia-card__title:before{background-color:rgb(var(--color-highlight));content:"";height:1px;width:80%;position:absolute;bottom:-.5rem}.lia-card__controls{justify-content:center;margin:auto 2.4rem 2rem;font-size:1.8rem;display:flex}@media (max-width:240px){.lia-card__controls{margin:0 2rem}}.lia-card__controls>:not(:last-child){margin-right:1rem}.lia-card__controls>:last-child{margin-left:auto}.lia-card__subtitle{color:rgb(var(--lia-anthracite));margin:0 0 1rem}.lia-card__body{margin-bottom:2rem;padding:0 2.4rem}@media (max-width:240px){.lia-card__body{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}}.lia-card__footer{max-height:5rem;justify-content:space-between;align-items:center;padding:0 2.4rem;display:flex}@media (max-width:240px){.lia-card__footer{display:none}}.lia-card__contact{color:#399193;text-decoration:none}.lia-card__contact i{font-size:2rem}.lia-dropdown{border:1px solid rgb(var(--color-highlight));cursor:pointer;display:inline-block;overflow:hidden}.lia-dropdown__selected{align-items:center;display:flex}.lia-dropdown__selected span{margin-right:auto}.lia-dropdown__selected .icon{margin-left:2rem;font-size:2rem}.lia-dropdown__options{max-height:0;overflow-y:auto}.lia-dropdown__options.is-visible{max-height:20rem}.lia-dropdown__option{padding:.5rem 1rem}.lia-dropdown__option:first-child{margin-top:1rem}.lia-dropdown__option:not(:last-child){margin-bottom:1rem}.lia-dropdown__option:hover{background-color:rgba(var(--color-highlight),.1)}.lia-dropdown.is-disabled{border-color:rgb(var(--lia-grey))}.lia-dropdown.is-failure{border-color:rgb(var(--lia-red))}.lia-dropdown.is-success{border-color:rgb(var(--lia-success))}.lia-effect__content{display:block}.lia-effect__circle{background-color:rgb(var(--color-highlight));color:rgb(var(--lia-white));height:2rem;text-align:center;width:2rem;border-radius:50%;font-size:1.5rem;font-weight:400;line-height:1.3;display:inline-block;position:absolute;transform:translate(-124%)}.lia-effect__circle.animated{left:-3.75rem}.lia-effect__circle--inline{width:1.8rem;height:1.8rem;font-size:1.2rem;line-height:initial;position:relative;transform:none;font-family:var(--global-font-family)!important}.lia-effect__circle--inline.animated{left:-2.7rem}.lia-effect--inline{display:inline-block}.lia-fontscale{width:100%;justify-content:space-between;align-items:center;display:flex}.lia-fontscale>:not(:last-child){margin-right:1rem}.lia-fontscale__lvl-1{font-size:var(--global-font-size)}.lia-fontscale__lvl-2{font-weight:600;font-size:calc(var(--global-font-size)*1.25)}.lia-fontscale__lvl-3{font-weight:700;font-size:calc(var(--global-font-size)*1.5)}.lia-gallery{scroll-snap-type:x mandatory;width:100%;margin-bottom:2rem;display:flex;overflow-x:auto;overflow-y:hidden}.lia-gallery .lia-lightbox{scroll-snap-align:start;flex:0 0 25rem}.lia-gallery .lia-figure__media{width:25rem;height:25rem;background-color:#000000d9;display:inline-block}.lia-gallery .lia-figure__media img,.lia-gallery .lia-figure__media video,.lia-gallery .lia-figure__media div{height:100%;object-fit:cover;width:100%}.lia-gallery .lia-figure__media audio{width:100%;height:55%}.lia-gallery>*{margin-right:3.2rem}#google_translate_element{width:100%;overflow:hidden}#google_translate_element .goog-te-combo{border:1px solid rgb(var(--lia-grey-light));width:100%;word-wrap:normal;padding:.5rem;margin:0 0 .5rem!important;padding:.5rem 0!important}.lia-header{background-color:rgb(var(--color-background));border-bottom:1px solid rgb(var(--color-border));height:5.6rem;z-index:100;flex-direction:row;align-items:center;padding:1rem 0;display:flex;position:fixed;top:0;left:0;right:0}@media screen and (min-width:64em){.lia-header{height:7.8rem;margin:0 3rem}}.lia-header>*{flex:1}.lia-header__middle{height:100%;justify-content:center;display:flex}.lia-header__middle img{height:100%}.lia-header__right,.lia-lightbox{position:relative}.lia-lightbox__clickarea{cursor:pointer;height:25rem;width:25rem;position:absolute;top:0;left:0}.lia-lightbox__icon{color:#fff;text-shadow:1px 1px 5px #0003;font-size:2rem;position:absolute;top:1rem;right:1rem}.lia-modal{--color-text:white;--color-background:var(--lia-grey-dark);--color-border:var(--lia-grey-light);color:var(--color-text);height:100%;pointer-events:auto;width:100vw;z-index:9000;flex-direction:column;justify-content:center;align-items:center;display:flex;position:fixed;top:0;left:0}.lia-modal__outer{height:100vh;width:100vw;background-color:#000000e6;position:absolute;top:0;left:0}.lia-modal__inner{height:100%;flex-direction:column;justify-content:center;display:flex;position:absolute;top:0;left:0;overflow-y:auto}.lia-modal__close,.lia-modal__controls{padding:0 .5rem;font-size:3rem}.lia-modal__close{height:4rem;text-align:right;width:100%;z-index:9001;justify-content:flex-end;align-items:center;display:flex;position:sticky;top:0}@media screen and (min-width:48em){.lia-modal__close{margin:0;position:absolute;top:.5rem;right:1rem}}.lia-modal__controls{color:#fff;height:4rem;width:100%;z-index:9001;flex-direction:row-reverse;justify-content:space-between;display:flex}@media screen and (min-width:48em){.lia-modal__controls{position:absolute;top:50%;transform:translateY(-50%)}}.lia-modal__ctrl-next{right:0}@media screen and (min-width:48em){.lia-modal__ctrl-next{right:1rem}}.lia-modal__ctrl-prev{left:0}@media screen and (min-width:48em){.lia-modal__ctrl-prev{left:1rem}}.lia-modal__content{height:100%;max-height:100%;width:100vw;scrollbar-width:none;-ms-overflow-style:none;justify-content:center;display:flex;overflow-y:auto}.lia-modal__content::-webkit-scrollbar{display:none}@media screen and (min-width:48em){.lia-modal__content{max-width:100vw;width:calc(100vw - 10rem);margin:1rem 6rem}.lia-modal__content figcaption{padding:0}}.lia-modal__content>*{z-index:9001;margin:0}.lia-modal .lia-figure{height:100%;flex-direction:column;justify-content:center;align-items:center;display:flex}.lia-modal .lia-figure__zoom{width:500px;background-position:50%;position:relative;overflow:hidden}.lia-modal .lia-figure__zoom img{opacity:1;transition:opacity .5s;display:block}.lia-modal .lia-figure__zoom img:hover{opacity:0}.lia-modal .lia-figure__media{width:100%;flex-direction:column;justify-content:center;align-items:center;display:flex}.lia-modal .lia-figure__media[data-media-type=image]{height:auto}.lia-modal .lia-figure__media[data-media-type=image] img{min-height:0}.lia-modal .lia-figure__media[data-media-type=iframe]{height:100%}.lia-modal .lia-figure figcaption{max-width:65ch;min-height:0;margin:1rem auto;padding:0 1rem}@media screen and (min-width:48em){.lia-modal .lia-figure figcaption{padding:0}}.lia-modal .lia-video-wrapper{height:100%;align-items:center;padding:0;display:flex}.lia-modal .lia-video-wrapper video{height:auto;width:auto;position:relative}.lia-modal .lia-iframe-wrapper{width:100vw;flex-grow:1;padding:0}@media screen and (min-width:48em){.lia-modal .lia-iframe-wrapper{width:calc(100vw - 12rem)}}.lia-modal .lia-video-wrapper,.lia-modal .lia-iframe-wrapper{padding-bottom:56.25%;position:relative}.nav{margin:0;padding:0;list-style-type:none;display:flex}.nav__item{align-items:center;padding:0 .5rem;display:flex;position:relative}.nav__item>.lia-btn__icon{font-size:2rem}.nav__divider{background:rgb(var(--lia-grey-light));height:1px;width:100%;border:none;margin:1rem 0}.lia-notes{background-color:rgb(var(--lia-grey-light));height:100%;max-height:14.2rem;max-width:144rem;width:auto;flex-direction:column;display:flex;position:relative;overflow:auto}html.lia-variant-dark .lia-notes{background-color:rgb(var(--lia-anthracite))}@media screen and (min-width:48em){.lia-notes{height:7.2rem}}@media screen and (min-width:64em){.lia-notes{margin:0 3rem}}@media screen and (min-width:90em){.lia-notes{height:auto;max-height:100%;width:100%;background-color:#0000;margin:0}}.lia-notes__content{background-color:rgb(var(--lia-grey-light));padding:0 2.3rem 2.3rem}html.lia-variant-dark .lia-notes__content{background-color:rgb(var(--lia-anthracite))}@media screen and (min-width:90em){.lia-notes__content{padding-top:2.3rem}}.lia-notes__content:nth-child(2n){padding:0 2.3rem}.lia-notes__content:last-child{padding-bottom:2.3rem!important}.lia-notes__content.active{color:rgb(var(--color-highlight))}.lia-notes__content>:last-child{margin-bottom:0}.lia-notes__counter{border-bottom:1px solid rgb(var(--lia-grey));color:rgb(var(--lia-grey));margin-bottom:.5rem;display:inline-block}@media screen and (min-width:90em){.lia-notes{border-left:1px solid rgb(var(--color-border));max-width:31.5rem}}.lia-pagination{width:100%;display:inline-block}@media screen and (min-width:64em){.lia-pagination{width:auto;margin-bottom:2rem}}@media screen and (min-width:90em){.lia-pagination{width:auto;margin-bottom:0;margin-right:2rem}}.lia-pagination__content{background:rgb(var(--color-highlight));color:#fff;flex-flow:row-reverse wrap;justify-content:space-between;align-items:center;font-size:1.8rem;font-weight:700;display:flex}@media screen and (min-width:64em){.lia-pagination__content{width:15rem;border-radius:.8rem}}.lia-pagination__current{margin:0 1rem}.lia-quiz{margin-bottom:2rem}.lia-quiz__answers{flex-direction:column;display:flex;position:relative}.lia-quiz__answers>:not(:last-child){margin-bottom:1rem}.lia-quiz__control{align-self:flex-start;align-items:center;display:flex}.lia-quiz__control>:not(:last-child){margin-right:1rem}@media screen and (min-width:64em){.lia-quiz__control{grid-column-start:2}}.lia-quiz__input{border:1px solid rgb(var(--color-highlight));width:100%}.lia-quiz__check{flex-shrink:0}.lia-quiz__resolve,.lia-quiz__hint{color:rgb(var(--color-highlight));padding:0;font-size:3rem;line-height:1}.lia-quiz__sync,.lia-quiz__hints,.lia-quiz__solution{grid-column-start:1}.lia-quiz__feedback{align-items:center;display:flex}.lia-quiz-text{grid-gap:2rem;grid-template-columns:1fr;display:grid}.lia-quiz-single-choice>:not(:last-child),.lia-quiz-multiple-choice>:not(:last-child),.lia-quiz-select>:not(:last-child){margin-bottom:2rem}.lia-quiz-matrix{width:100%;flex-wrap:wrap;display:flex}.lia-quiz-matrix>.lia-quiz__answers{width:100%}.lia-quiz-matrix>.lia-quiz__control{margin-right:1rem}.lia-quiz [class^=lia-list]{margin-left:0}.lia-quote{background-color:rgba(var(--color-highlight),.15);padding:2.4rem}.lia-quote[cite]{padding:2.4rem 4.8rem}.lia-quote>:last-child{margin-bottom:0}.lia-quote__text{color:rgb(var(--color-highlight-dark));text-align:center;font-family:LiaSourceSerifPro;font-size:1.6rem;font-weight:600}.lia-quote__cite{text-align:center;margin-top:2rem;font-style:normal;display:block}.lia-responsive-voice{background-color:rgb(var(--lia-grey-light));color:rgb(var(--color-highlight));width:100%;flex-direction:column;justify-content:center;align-items:flex-start;padding:2rem;display:flex}.lia-responsive-voice__control{width:100%;justify-content:space-between;align-items:center;display:flex}@media screen and (min-width:30em){.lia-responsive-voice__control{width:auto;justify-content:flex-start}}.lia-responsive-voice__info{text-align:center}html.lia-variant-dark .lia-responsive-voice{background-color:rgb(var(--lia-anthracite))}@media screen and (min-width:30em){.lia-responsive-voice{height:7rem;flex-direction:row;align-items:center;padding:0}}@media screen and (min-width:64em){.lia-responsive-voice{border-top-left-radius:.8rem;border-top-right-radius:.8rem}}.lia-script{vertical-align:middle;background-color:rgba(var(--color-highlight),.1);border-radius:.8rem;display:inline-flex;overflow:hidden}.lia-script--with-border{border:1px solid rgb(var(--color-highlight))}.lia-script--border{border:1px solid rgb(var(--color-highlight));background-color:unset}.lia-script__refresh{background-color:rgb(var(--lia-grey-light));border-bottom:0;border-left:0;border-right:1px solid rgb(var(--color-highlight));color:rgb(var(--lia-anthracite));border-top:0;border-radius:0}.lia-script>*{width:-webkit-fit-content;width:-moz-fit-content;width:-moz-fit-content;width:-moz-fit-content;width:fit-content}.lia-script>:not(:last-child){margin-right:1rem}.lia-script input,.lia-script select,.lia-script textarea{background-color:#0000;border:none;border-radius:0}.lia-script input[type=color]{width:10rem;height:auto;-webkit-appearance:none;border:none}.lia-script input[type=color]::-webkit-color-swatch-wrapper{padding:0}.lia-script input[type=color]::-webkit-color-swatch{border:none}.lia-script textarea{min-width:25vw;max-width:50vw;resize:vertical;min-height:5rem}.lia-script output{background-color:rgb(var(--lia-anthracite));border-left:1px solid rgb(var(--color-highlight));color:rgb(var(--lia-white));width:100%;align-items:center;padding:0 .5rem;display:flex}.lia-script output i{margin-right:.5rem}output.lia-script{cursor:pointer;padding:0 .5rem}.lia-slide-animation{margin-left:4px;margin-right:4px;padding-left:5px;padding-right:5px;transition:max-height .2s ease-out;overflow-y:auto}.lia-slide{height:100vh;width:100%;flex-direction:column;display:flex;position:relative}.lia-slide__footer{width:100%;z-index:50;flex-direction:column;align-items:flex-start;display:flex}@media screen and (min-width:64em){.lia-slide__footer{align-items:center;padding:0 3rem}}@media screen and (min-width:90em){.lia-slide__footer{flex-direction:row;align-items:flex-start}}.lia-slide__container{height:100%;margin-top:5.6rem;position:relative;overflow:auto}@media screen and (min-width:64em){.lia-slide__container{margin-top:7.8rem}}.lia-slide__content{max-width:144rem;width:100%;padding:0 3rem}@media screen and (min-width:64em){.lia-slide__content{margin:.8rem 0 2rem}}.lia-support-menu{background-color:rgb(var(--color-background));border-left:1px solid rgb(var(--color-border));height:100%;-webkit-user-select:none;user-select:none;width:100%;z-index:1;flex-direction:column;padding-top:6rem;transition:width .25s ease-in-out,transform .25s ease-in-out;display:flex;position:fixed;top:0;right:0}.lia-support-menu--closed{transform:translate(100%)}.lia-support-menu--closed .lia-support-menu__toggler{transform:translate(-6.5rem,-50%)}@media screen and (min-width:48em){.lia-support-menu{width:21.6rem;padding-top:0}}@media screen and (min-width:64em){.lia-support-menu{height:100%;width:100%;border:none;position:relative}.lia-support-menu--closed{transform:translate(0)}.lia-support-menu--closed .lia-support-menu__toggler{transform:translate(-6.5rem,-50%)}}.lia-support-menu__toggler{color:rgb(var(--color-highlight));visibility:visible;font-size:2rem;display:block;position:absolute;top:2.9rem;left:0;transform:translate(-6.5rem,-50%)}@media screen and (max-width:47.9375em){.lia-support-menu__toggler{transform:translate(2.1rem,-50%)}}@media screen and (max-width:63.9375em){.lia-support-menu__toggler--closed{transform:translate(100%)}}@media screen and (min-width:64em){.lia-support-menu__toggler{visibility:hidden;display:none}}.lia-support-menu__collapse{height:100%;display:block}.lia-support-menu__nav{height:100%;padding:1.7rem 2.1rem;display:block;overflow:auto}.lia-support-menu__nav:focus{box-shadow:none!important}@media screen and (min-width:64em){.lia-support-menu__nav{flex-direction:row;justify-content:flex-end;align-items:center;padding:0;display:flex;overflow:visible}}.lia-support-menu__item{color:rgb(var(--color-highlight));flex-direction:column;align-items:flex-start;padding:1.8rem 0;display:flex}.lia-support-menu__item:not(:first-child){border-top:1px solid rgb(var(--color-border))}.lia-support-menu__item>.icon{margin-bottom:1.8rem}.lia-support-menu__item>button{font-size:2rem}.lia-support-menu__item>button.icon:before{vertical-align:middle}.lia-support-menu__item--info .lia-support-menu__submenu{width:-webkit-max-content;width:-moz-max-content;width:max-content}@media screen and (min-width:48em){.lia-support-menu__item{padding:1.8rem .75rem}}@media screen and (min-width:64em){.lia-support-menu__item{padding:0 .75rem}.lia-support-menu__item:not(:first-child){border-top:none}.lia-support-menu__item>.icon{margin-bottom:0}}.lia-support-menu__submenu{background-color:rgb(var(--color-background));box-shadow:none;color:rgb(var(--color-text));max-width:100%;width:max-content;flex-direction:column;align-items:flex-start;padding:0;display:flex;position:relative;top:0;right:0}html.lia-variant-dark .lia-support-menu__submenu{background-color:rgb(var(--lia-grey-dark))}.lia-support-menu__submenu .lia-link{text-decoration:none}.lia-support-menu__submenu .lia-link:not(.active){color:rgb(var(--color-text))}.lia-support-menu__submenu .lia-btn[aria-checked=true]{color:rgb(var(--color-highlight))}.lia-support-menu__submenu svg{height:15rem}.lia-support-menu__submenu .lia-settings-editor label{flex-direction:column;align-items:flex-start;display:flex}@media screen and (min-width:64em){.lia-support-menu__submenu{max-width:30rem;z-index:10;border-radius:.8rem;padding:1.4rem;display:none;position:absolute;top:5.9rem;box-shadow:0 0 1rem #80808033}.lia-support-menu__submenu.active{display:flex}}.lia-survey-matrix__header{border-top:0;padding:1.3rem 1.6rem}.lia-survey-matrix__header:last-child{border-right:0}.lia-survey-matrix__header:first-child{border-left:0}.lia-survey-matrix__data{border-top:0;border-bottom:0;padding:1rem}.lia-survey-matrix__data:not(:last-child){text-align:center;max-width:5rem;padding:2rem}.lia-survey-matrix__row:last-child>td{border-bottom:0}.lia-survey-matrix__row td:first-child{border-left:0!important}.lia-survey-matrix__row td:last-child{max-width:50rem;min-width:20rem;border-right:0!important}.lia-toc{background-color:rgb(var(--color-background));border-right:1px solid rgb(var(--color-border));height:100%;width:100%;z-index:200;flex-direction:column;padding:3rem 0 1rem;transition:left .25s ease-in-out,width .25s ease-in-out,transform .25s ease-in-out;display:flex;position:fixed;left:0}.lia-toc #lia-btn-toc{color:rgb(var(--color-highlight));font-size:2rem;transition:all .25s ease-in-out;position:absolute;top:4rem;right:0;transform:translate(6.5rem,-50%)}@media screen and (max-width:47.9375em){.lia-toc #lia-btn-toc{transform:translate(-3rem,-50%)}}@media screen and (max-width:63.9375em){.lia-toc #lia-btn-toc{top:2.9rem}}@media screen and (min-width:48em){.lia-toc{width:28.5rem}}.lia-toc--closed{transform:translate(-100%)}.lia-toc--closed #lia-btn-toc{transform:translate(6.5rem,-50%)}@media screen and (max-width:47.9375em){.lia-toc{padding-top:6rem}}.lia-toc__search{margin:0 3rem 3rem;display:inline-block;position:relative}.lia-toc__search input{background-color:rgba(var(--lia-grey-light),.1);padding-left:3rem;padding-right:3.75rem;transition:left .25s ease-in-out}.lia-toc__search .icon-search{transform-origin:50%;font-size:2rem;position:absolute;top:50%;left:.5rem;transform:translateY(-50%)}.lia-toc__search .lia-toc__clear-index{height:3rem;transform-origin:50%;-webkit-user-select:none;user-select:none;width:3rem;background:0 0;border:0;position:absolute;top:50%;right:.5rem;transform:translateY(-50%)}.lia-toc__content{flex-direction:column;margin-bottom:auto;display:flex;overflow:auto}.lia-toc__content a{width:100%;color:inherit;padding:.8rem .8rem .8rem 3rem;text-decoration:none;position:relative}.lia-toc__content a.lia-active{color:rgb(var(--color-highlight))}.lia-toc__content a.lia-active:before{content:"";width:5px;background-color:rgb(var(--color-highlight));position:absolute;top:.5rem;bottom:.5rem;left:0}.lia-toc__content a.lia-toc__link--is-lvl-1{font-size:calc(2rem*var(--font-size-multiplier));font-weight:700}.lia-toc__content a.lia-toc__link--is-lvl-2{font-weight:600;font-size:calc(1.7rem*var(--font-size-multiplier));padding-left:4.5rem;position:relative}.lia-toc__content a.lia-toc__link--is-lvl-2:after{content:"";background-color:rgb(var(--lia-grey-light));height:1px;display:inline-block;position:absolute;top:0;left:3rem;right:3rem}.lia-toc__content a.lia-toc__link--is-lvl-3{padding-left:6rem}.lia-toc__content a.lia-toc__link--is-lvl-4{padding-left:7.5rem}.lia-toc__content a.lia-toc__link--is-lvl-5{padding-left:9rem}.lia-toc__content a.lia-toc__link--is-lvl-6{padding-left:10.5rem}.lia-toc__bottom{margin-top:1rem;padding:1rem 0 0 3rem;position:relative}.lia-toc__bottom>*{font-weight:600}.lia-toc__bottom:after{content:"";background-color:rgb(var(--lia-grey-light));height:1px;display:inline-block;position:absolute;top:0;left:3rem;right:3rem}html:not([class*=lia-theme-default]) .lia-toc--visible #lia-btn-toc{color:rgb(var(--lia-white))}@media screen and (min-width:48em){html:not([class*=lia-theme-default]) .lia-toc--visible #lia-btn-toc{color:rgb(var(--color-highlight))}}html:not([class*=lia-theme-default]) .lia-toc{background-color:rgb(var(--color-highlight));color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__search input{background-color:rgba(var(--lia-grey-light),.1)}html:not([class*=lia-theme-default]) .lia-toc__search input::-webkit-input-placeholder{color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__search input::-moz-placeholder{color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__search input:-ms-input-placeholder{color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__search input::-moz-placeholder{color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__search input,html:not([class*=lia-theme-default]) .lia-toc__search input::placeholder,html:not([class*=lia-theme-default]) .lia-toc__search .lia-toc__clear-index{color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__content a *{color:rgb(var(--lia-white));border-color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__content a.lia-toc__link--is-lvl-2:after{background-color:rgb(var(--lia-white))}html:not([class*=lia-theme-default]) .lia-toc__content a.lia-active,html:not([class*=lia-theme-default]) .lia-toc__content a.lia-active>*{color:rgb(var(--color-highlight-menu))}html:not([class*=lia-theme-default]) .lia-toc__content a.lia-active:before,html:not([class*=lia-theme-default]) .lia-toc__content a.lia-active>:before{background-color:rgb(var(--color-highlight-menu))}html:not([class*=lia-theme-default]) .lia-toc__content a__bottom{color:rgb(var(--color-highlight-menu))}.lia-tooltip{display:inline-block;position:relative}.lia-tooltip .lia-tooltiptext{visibility:hidden;color:#fff;text-align:left;z-index:1;background-color:#000;border-radius:6px;margin-left:-60px;padding:15px;position:absolute;top:100%;left:50%}.lia-tooltip:hover .lia-tooltiptext{visibility:visible}.align-middle{vertical-align:middle}.clearfix:before,.clearfix:after{content:" ";display:flow-root}.clearfix:after{clear:both}.bg-anthracite{background-color:rgb(var(--lia-anthracite))}.text-anthracite{color:rgb(var(--lia-anthracite))}.border-anthracite{border:1px solid rgb(var(--lia-anthracite))}.bg-blue-darker{background-color:rgb(var(--lia-blue-darker))}.text-blue-darker{color:rgb(var(--lia-blue-darker))}.border-blue-darker{border:1px solid rgb(var(--lia-blue-darker))}.bg-blue-dark{background-color:rgb(var(--lia-blue-dark))}.text-blue-dark{color:rgb(var(--lia-blue-dark))}.border-blue-dark{border:1px solid rgb(var(--lia-blue-dark))}.bg-blue{background-color:rgb(var(--lia-blue))}.text-blue{color:rgb(var(--lia-blue))}.border-blue{border:1px solid rgb(var(--lia-blue))}.bg-grey-dark{background-color:rgb(var(--lia-grey-dark))}.text-grey-dark{color:rgb(var(--lia-grey-dark))}.border-grey-dark{border:1px solid rgb(var(--lia-grey-dark))}.bg-grey-light{background-color:rgb(var(--lia-grey-light))}.text-grey-light{color:rgb(var(--lia-grey-light))}.border-grey-light{border:1px solid rgb(var(--lia-grey-light))}.bg-grey-lighter{background-color:rgb(var(--lia-grey-lighter))}.text-grey-lighter{color:rgb(var(--lia-grey-lighter))}.border-grey-lighter{border:1px solid rgb(var(--lia-grey-lighter))}.bg-grey{background-color:rgb(var(--lia-grey))}.text-grey{color:rgb(var(--lia-grey))}.border-grey{border:1px solid rgb(var(--lia-grey))}.bg-red-darker{background-color:rgb(var(--lia-red-darker))}.text-red-darker{color:rgb(var(--lia-red-darker))}.border-red-darker{border:1px solid rgb(var(--lia-red-darker))}.bg-red-dark{background-color:rgb(var(--lia-red-dark))}.text-red-dark{color:rgb(var(--lia-red-dark))}.border-red-dark{border:1px solid rgb(var(--lia-red-dark))}.bg-red{background-color:rgb(var(--lia-red))}.text-red{color:rgb(var(--lia-red))}.border-red{border:1px solid rgb(var(--lia-red))}.bg-success{background-color:rgb(var(--lia-success))}.text-success{color:rgb(var(--lia-success))}.border-success{border:1px solid rgb(var(--lia-success))}.bg-turquoise-darker{background-color:rgb(var(--lia-turquoise-darker))}.text-turquoise-darker{color:rgb(var(--lia-turquoise-darker))}.border-turquoise-darker{border:1px solid rgb(var(--lia-turquoise-darker))}.bg-turquoise-dark{background-color:rgb(var(--lia-turquoise-dark))}.text-turquoise-dark{color:rgb(var(--lia-turquoise-dark))}.border-turquoise-dark{border:1px solid rgb(var(--lia-turquoise-dark))}.bg-turquoise{background-color:rgb(var(--lia-turquoise))}.text-turquoise{color:rgb(var(--lia-turquoise))}.border-turquoise{border:1px solid rgb(var(--lia-turquoise))}.bg-warning{background-color:rgb(var(--lia-warning))}.text-warning{color:rgb(var(--lia-warning))}.border-warning{border:1px solid rgb(var(--lia-warning))}.bg-white{background-color:rgb(var(--lia-white))}.text-white{color:rgb(var(--lia-white))}.border-white{border:1px solid rgb(var(--lia-white))}.bg-yellow-darker{background-color:rgb(var(--lia-yellow-darker))}.text-yellow-darker{color:rgb(var(--lia-yellow-darker))}.border-yellow-darker{border:1px solid rgb(var(--lia-yellow-darker))}.bg-yellow-dark{background-color:rgb(var(--lia-yellow-dark))}.text-yellow-dark{color:rgb(var(--lia-yellow-dark))}.border-yellow-dark{border:1px solid rgb(var(--lia-yellow-dark))}.bg-yellow{background-color:rgb(var(--lia-yellow))}.text-yellow{color:rgb(var(--lia-yellow))}.border-yellow{border:1px solid rgb(var(--lia-yellow))}.bg-black{background-color:rgb(var(--lia-black))}.text-black{color:rgb(var(--lia-black))}.border-black{border:1px solid rgb(var(--lia-black))}.bg-highlight{background-color:rgb(var(--color-highlight))}.text-highlight{color:rgb(var(--color-highlight))}.border-highlight{border-color:rgb(var(--color-highlight))}.d-block{display:block}.d-inline-block{display:inline-block}.flex{display:flex}.items-center{align-items:center}.headless{border-top-left-radius:.5rem!important;border-top-right-radius:.5rem!important}.h1,.h2,.h3{font-family:LiaSourceSerifPro;line-height:1.47}.h1{font-size:calc(2.3rem*var(--font-size-multiplier))!important}@media screen and (min-width:64em){.h1{font-size:calc(4rem*var(--font-size-multiplier))!important}.lia-mode--textbook .h1{font-size:calc(3.7rem*var(--font-size-multiplier))!important}}.h2{font-size:calc(2rem*var(--font-size-multiplier))!important}@media screen and (min-width:64em){.h2{font-size:calc(2.9rem*var(--font-size-multiplier))!important}}.h3{font-size:calc(2.3rem*var(--font-size-multiplier))!important}@media screen and (min-width:64em){.h3{font-size:calc(2.3rem*var(--font-size-multiplier))!important}}.h4,.h5{font-family:LiaSourceSansPro;line-height:1.38;font-size:calc(1.6rem*var(--font-size-multiplier))!important}.hidden-visually{clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;white-space:nowrap!important;width:1px!important;border:0!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.hide{display:none!important}@media (min-width:30em){.hide-xs-up{display:none!important}}@media (max-width:29.9375em){.hide-xs-down{display:none!important}}@media (min-width:48em){.hide-sm-up{display:none!important}}@media (max-width:47.9375em){.hide-sm-down{display:none!important}}@media (min-width:64em){.hide-md-up{display:none!important}}@media (max-width:63.9375em){.hide-md-down{display:none!important}}@media (min-width:90em){.hide-lg-up{display:none!important}}@media (max-width:89.9375em){.hide-lg-down{display:none!important}}@media (min-width:105em){.hide-xl-up{display:none!important}}@media (max-width:104.938em){.hide-xl-down{display:none!important}}.m-0{margin:0}.mt-0{margin-top:0}.mr-0{margin-right:0}.mb-0{margin-bottom:0}.ml-0{margin-left:0}.mx-0{margin-left:0;margin-right:0}.my-0{margin-top:0;margin-bottom:0}.m-1{margin:1rem}.mt-1{margin-top:1rem}.mr-1{margin-right:1rem}.mb-1{margin-bottom:1rem}.ml-1{margin-left:1rem}.mx-1{margin-left:1rem;margin-right:1rem}.my-1{margin-top:1rem;margin-bottom:1rem}.m-2{margin:2rem}.mt-2{margin-top:2rem}.mr-2{margin-right:2rem}.mb-2{margin-bottom:2rem}.ml-2{margin-left:2rem}.mx-2{margin-left:2rem;margin-right:2rem}.my-2{margin-top:2rem;margin-bottom:2rem}.m-3{margin:3rem}.mt-3{margin-top:3rem}.mr-3{margin-right:3rem}.mb-3{margin-bottom:3rem}.ml-3{margin-left:3rem}.mx-3{margin-left:3rem;margin-right:3rem}.my-3{margin-top:3rem;margin-bottom:3rem}.m-4{margin:4rem}.mt-4{margin-top:4rem}.mr-4{margin-right:4rem}.mb-4{margin-bottom:4rem}.ml-4{margin-left:4rem}.mx-4{margin-left:4rem;margin-right:4rem}.my-4{margin-top:4rem;margin-bottom:4rem}.m-5{margin:5rem}.mt-5{margin-top:5rem}.mr-5{margin-right:5rem}.mb-5{margin-bottom:5rem}.ml-5{margin-left:5rem}.mx-5{margin-left:5rem;margin-right:5rem}.my-5{margin-top:5rem;margin-bottom:5rem}.m-6{margin:6rem}.mt-6{margin-top:6rem}.mr-6{margin-right:6rem}.mb-6{margin-bottom:6rem}.ml-6{margin-left:6rem}.mx-6{margin-left:6rem;margin-right:6rem}.my-6{margin-top:6rem;margin-bottom:6rem}.m-7{margin:7rem}.mt-7{margin-top:7rem}.mr-7{margin-right:7rem}.mb-7{margin-bottom:7rem}.ml-7{margin-left:7rem}.mx-7{margin-left:7rem;margin-right:7rem}.my-7{margin-top:7rem;margin-bottom:7rem}.p-0{padding:0}.pt-0{padding-top:0}.pr-0{padding-right:0}.pb-0{padding-bottom:0}.pl-0{padding-left:0}.px-0{padding-left:0;padding-right:0}.py-0{padding-top:0;padding-bottom:0}.p-1{padding:1rem}.pt-1{padding-top:1rem}.pr-1{padding-right:1rem}.pb-1{padding-bottom:1rem}.pl-1{padding-left:1rem}.px-1{padding-left:1rem;padding-right:1rem}.py-1{padding-top:1rem;padding-bottom:1rem}.p-2{padding:2rem}.pt-2{padding-top:2rem}.pr-2{padding-right:2rem}.pb-2{padding-bottom:2rem}.pl-2{padding-left:2rem}.px-2{padding-left:2rem;padding-right:2rem}.py-2{padding-top:2rem;padding-bottom:2rem}.p-3{padding:3rem}.pt-3{padding-top:3rem}.pr-3{padding-right:3rem}.pb-3{padding-bottom:3rem}.pl-3{padding-left:3rem}.px-3{padding-left:3rem;padding-right:3rem}.py-3{padding-top:3rem;padding-bottom:3rem}.p-4{padding:4rem}.pt-4{padding-top:4rem}.pr-4{padding-right:4rem}.pb-4{padding-bottom:4rem}.pl-4{padding-left:4rem}.px-4{padding-left:4rem;padding-right:4rem}.py-4{padding-top:4rem;padding-bottom:4rem}.p-5{padding:5rem}.pt-5{padding-top:5rem}.pr-5{padding-right:5rem}.pb-5{padding-bottom:5rem}.pl-5{padding-left:5rem}.px-5{padding-left:5rem;padding-right:5rem}.py-5{padding-top:5rem;padding-bottom:5rem}.p-6{padding:6rem}.pt-6{padding-top:6rem}.pr-6{padding-right:6rem}.pb-6{padding-bottom:6rem}.pl-6{padding-left:6rem}.px-6{padding-left:6rem;padding-right:6rem}.py-6{padding-top:6rem;padding-bottom:6rem}.p-7{padding:7rem}.pt-7{padding-top:7rem}.pr-7{padding-right:7rem}.pb-7{padding-bottom:7rem}.pl-7{padding-left:7rem}.px-7{padding-left:7rem;padding-right:7rem}.py-7{padding-top:7rem;padding-bottom:7rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-400{font-weight:400}.text-debug{color:#add8e6}.text-info{color:rgb(var(--lia-white))}.text-warning{color:#ff0}.text-error{color:red}.text-disabled{color:rgb(var(--lia-grey))}.text-success{color:rgb(var(--lia-success))}.max-w-0{max-width:0}.max-w-full{max-width:100%}.max-w-50{max-width:25%;max-width:50%}.max-w-75{max-width:75%}.max-w-xs{max-width:29.9375em}.max-w-sm{max-width:47.9375em}.max-w-md{max-width:63.9375em}.max-w-lg{max-width:89.9375em}.max-w-xl{max-width:104.938em}.lia-svg{padding-left:1rem;padding-right:1rem;overflow:auto}.lia-print-only{display:none}@media print{.lia-print-only{z-index:1000;background-color:#fff;padding:1rem;position:absolute;display:inline-block!important}.lia-print-only:before{content:"↪︎ "}.lia-slide{height:unset!important}.lia-toc,.lia-support-menu--open,.lia-slide__footer,.lia-quiz__control,.lia-code-control,.lia-plot__switch,.lia-table__sort,.lia-code__min-max,.lia-code__copy,#lia-toolbar-nav{width:0!important;display:none!important}main,.lia-canvas,.lia-slide{width:unset!important;height:unset!important;margin-top:unset!important;overflow:hidden!important}.lia-code-terminal__output{height:-moz-fit-content!important;height:-moz-fit-content!important;height:fit-content!important;max-height:800px!important}table,ul,ol,figure,blockquote,.lia-quiz,.lia-code-terminal__output{break-inside:avoid}.lia-gallery{flex-flow:wrap}.lia-lightbox__icon{display:none}.lia-table-responsive{max-height:-moz-fit-content!important;max-height:-moz-fit-content!important;max-height:fit-content!important}.ace_gutter-active-line{background-color:unset!important}.ace_hidden-cursors{opacity:0}.ace_text-input{orphans:3;widows:3;break-inside:auto!important}label{page-break-after:avoid}}.ace-multi-cursor{pointer-events:auto;z-index:10;position:absolute}.ace-multi-cursor:before{content:"";width:6px;height:5px;background:inherit;margin-top:-5px;margin-left:-2px;display:block}.ace-multi-cursor-tooltip{white-space:nowrap;color:#fff;text-shadow:0 0 1px #000;opacity:1;-o-transition:opacity .5s ease-out;padding:2px;font-family:sans-serif;font-size:12px;transition:opacity .5s ease-out;position:absolute}.ace-multi-selection{pointer-events:auto;z-index:10;opacity:.3;position:absolute}.ace-radar-view{min-width:6px;position:relative}.ace-radar-view-scroll-indicator{cursor:pointer;border-style:double;border-width:3px;border-radius:4px;position:absolute;left:0;right:0}.ace-radar-view-cursor-indicator{height:4px;cursor:pointer;border:1px solid #000;border-radius:3px;position:absolute;left:0;right:0}.ace-radar-view-wrapper{float:left;height:100%;width:6px;margin-right:4px;position:relative}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(KaTeX_AMS-Regular.4cd18550.woff2)format("woff2"),url(KaTeX_AMS-Regular.0ed69bcc.woff)format("woff"),url(KaTeX_AMS-Regular.250082d1.ttf)format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(KaTeX_Caligraphic-Bold.7d84fcea.woff2)format("woff2"),url(KaTeX_Caligraphic-Bold.8b718944.woff)format("woff"),url(KaTeX_Caligraphic-Bold.5d7c4d00.ttf)format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(KaTeX_Caligraphic-Regular.7e34eae2.woff2)format("woff2"),url(KaTeX_Caligraphic-Regular.ab0f4493.woff)format("woff"),url(KaTeX_Caligraphic-Regular.d4de5f30.ttf)format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(KaTeX_Fraktur-Bold.db0fea8b.woff2)format("woff2"),url(KaTeX_Fraktur-Bold.75fe0c6c.woff)format("woff"),url(KaTeX_Fraktur-Bold.4d449c5d.ttf)format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(KaTeX_Fraktur-Regular.7a216293.woff2)format("woff2"),url(KaTeX_Fraktur-Regular.1cce75f1.woff)format("woff"),url(KaTeX_Fraktur-Regular.ab0bff81.ttf)format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(KaTeX_Main-Bold.88cef7b1.woff2)format("woff2"),url(KaTeX_Main-Bold.08709b09.woff)format("woff"),url(KaTeX_Main-Bold.95836a30.ttf)format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(KaTeX_Main-BoldItalic.c09d0cf1.woff2)format("woff2"),url(KaTeX_Main-BoldItalic.d122a512.woff)format("woff"),url(KaTeX_Main-BoldItalic.26f3c4f3.ttf)format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(KaTeX_Main-Italic.de0e580d.woff2)format("woff2"),url(KaTeX_Main-Italic.66e02c4c.woff)format("woff"),url(KaTeX_Main-Italic.c6e95937.ttf)format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(KaTeX_Main-Regular.e2dbd876.woff2)format("woff2"),url(KaTeX_Main-Regular.5a82f7eb.woff)format("woff"),url(KaTeX_Main-Regular.cd9ba532.ttf)format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(KaTeX_Math-BoldItalic.6cf39e99.woff2)format("woff2"),url(KaTeX_Math-BoldItalic.b0ed6322.woff)format("woff"),url(KaTeX_Math-BoldItalic.df285d77.ttf)format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(KaTeX_Math-Italic.0470e72d.woff2)format("woff2"),url(KaTeX_Math-Italic.cfffd3c0.woff)format("woff"),url(KaTeX_Math-Italic.ffea941f.ttf)format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(KaTeX_SansSerif-Bold.b444b1f5.woff2)format("woff2"),url(KaTeX_SansSerif-Bold.8e1222db.woff)format("woff"),url(KaTeX_SansSerif-Bold.67ea3185.ttf)format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(KaTeX_SansSerif-Italic.6a451fb7.woff2)format("woff2"),url(KaTeX_SansSerif-Italic.fb683703.woff)format("woff"),url(KaTeX_SansSerif-Italic.75326218.ttf)format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(KaTeX_SansSerif-Regular.e52904c3.woff2)format("woff2"),url(KaTeX_SansSerif-Regular.94fae992.woff)format("woff"),url(KaTeX_SansSerif-Regular.51b8a34d.ttf)format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(KaTeX_Script-Regular.9f85c0f7.woff2)format("woff2"),url(KaTeX_Script-Regular.6205c9f9.woff)format("woff"),url(KaTeX_Script-Regular.964126b9.ttf)format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(KaTeX_Size1-Regular.263f0826.woff2)format("woff2"),url(KaTeX_Size1-Regular.679bf7b5.woff)format("woff"),url(KaTeX_Size1-Regular.9e7bb2db.ttf)format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(KaTeX_Size2-Regular.7ddce1f2.woff2)format("woff2"),url(KaTeX_Size2-Regular.5c5b0f28.woff)format("woff"),url(KaTeX_Size2-Regular.16a5807b.ttf)format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(KaTeX_Size3-Regular.8e605720.woff2)format("woff2"),url(KaTeX_Size3-Regular.2a93ab93.woff)format("woff"),url(KaTeX_Size3-Regular.347ba5e0.ttf)format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(KaTeX_Size4-Regular.595ce6e5.woff2)format("woff2"),url(KaTeX_Size4-Regular.2488fb45.woff)format("woff"),url(KaTeX_Size4-Regular.f41b14d6.ttf)format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(KaTeX_Typewriter-Regular.21beea8e.woff2)format("woff2"),url(KaTeX_Typewriter-Regular.662fc5b4.woff)format("woff"),url(KaTeX_Typewriter-Regular.ffbe21f7.ttf)format("truetype")}.katex{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.16.10"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);height:1px;width:1px;border:0;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content;position:relative}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{min-width:2px;vertical-align:bottom;width:2px;font-size:1px;display:table-cell}.katex .vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{flex-direction:row;display:inline-flex}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{width:100%;border-bottom-style:solid;display:inline-block}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{width:100%;border-bottom-style:solid;display:inline-block}.katex .hdashline{width:100%;border-bottom-style:dashed;display:inline-block}.katex .sqrt>.root{margin-left:.277778em;margin-right:-.555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.833333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.857143em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55429em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.416667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.833333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.833333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.833333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.833173em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.833601em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{width:.12em;display:inline-block}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex img{max-height:none;max-width:none;min-height:0;min-width:0;border-style:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo)")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo)")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script src="./index.8890ab2e.js"></script><script defer type="module" src="./index.
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script src="./index.8890ab2e.js"></script><script defer type="module" src="./index.03130d65.js"></script><script defer src="./index.897f01da.js" nomodule></script><script defer type="module" src="./index.47534769.js"></script><script defer src="./index.175cb4f9.js" nomodule></script><script defer type="module" src="./index.ab44ef94.js"></script><script defer src="./index.86dd56d4.js" nomodule></script><script defer type="module" src="./index.87d02bbd.js"></script><script defer src="./index.23df81ae.js" nomodule></script><script defer type="module" src="./index.71d55514.js"></script><script defer src="./index.8a657cf2.js" nomodule></script><script defer type="module" src="./index.8c2d384e.js"></script><script defer src="./index.75afde29.js" nomodule></script><script defer type="module" src="./index.1fff3e6b.js"></script><script defer src="./index.2aeb41a5.js" nomodule></script><script defer type="module" src="./index.aa26d311.js"></script><script defer src="./index.4ae92b65.js" nomodule></script><script defer type="module" src="./index.c5d89bdd.js"></script><script defer src="./index.66ebf531.js" nomodule></script><link rel="icon shortcut" sizes="192x192" href="./up_/up_/assets/logo_192.png"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Lia"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="LiaScript"><meta name="msapplication-TileImage" content="./up_/up_/assets/logo_192.png"><meta name="msapplication-TileColor" content="#0071c5"><meta name="msapplication-tap-highlight" content="no"><meta name="theme-color" content="#000000"><meta name="description" content="LiaScript is a service for running free and interactive online courses, build with its own Markup-language. So check out the following course ;-)"><link rel="apple-touch-icon" href="./logo.8a716d9b.png"><link rel="icon" href="./logo.8a716d9b.png" type="image/png"><style>.lds-dual-ring{width:150px;height:150px;display:inline-block}.lds-dual-ring:after{content:" ";width:128px;height:128px;border:5px solid #000;border-color:#000 #0000;border-radius:50%;margin:1px;animation:1.2s linear infinite lds-dual-ring;display:block}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}</style><link rel="stylesheet" href="./index.a6846cba.css"></head><body> <noscript> This page requires JavaScript to be enabled! </noscript> </body></html>
|
package/package.json
CHANGED
package/dist/Edrys.3278c326.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequirea18f;e.register("24MSe",(function(n,t){var s,i,o,c;s=n.exports,i="Sync",o=function(){return a},Object.defineProperty(s,i,{get:o,set:c,enumerable:!0,configurable:!0});var d=e("9Xb5B"),r=e("3Lnfd");class a extends d.Sync{subject="liasync";connected=!1;async connect(e){super.connect(e),this.init(!0)}destroy(){this.listener&&window.removeEventListener("message",this.listener),super.destroy()}init(e,n){if(e){this.subject=this.room||"liasync";let e=this;this.listener=function(n){try{let t=n.data;switch(t.subject){case"init":t.body&&(e.connected=!0,e.sendConnect());break;case"publish":t.body&&e.pubsubReceive(t.body);break;default:t.body&&e.applyUpdate((0,r.decode)(t.body))}}catch(e){console.warn("Edrys",e.message)}},window.addEventListener("message",this.listener),this.broadcast(!0,null,"init"),setTimeout((function(){e.connected||e.sendDisconnectError("This seems not to be an Edrys classroom")}),2e3)}}broadcast(e,n,t){let s=e?t||this.subject:"publish";window.parent.postMessage({subject:s,body:n?(0,r.encode)(n):null},"*")}}}))}();
|
package/dist/Edrys.37f10c7c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){function t(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r=e.parcelRequirea18f;r.register("9Xb5B",(function(e,n){t(e.exports,"uint8_to_base64",(function(){return c})),t(e.exports,"base64_to_unit8",(function(){return l})),t(e.exports,"Sync",(function(){return h}));var s=r("axlxN"),i=r("66xmW"),o=r("3Lnfd");function c(t){return(0,o.encode)(t)}function l(t){return(0,o.decode)(t)}function a(t=16){let e="";for(let r=0;r<t;r++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e}class h{isConnected=!1;replyOnReceive=!1;constructor(t,e,r,n,o=!1,c=!0){let l;try{l=window.localStorage.getItem("lia-token"),l||(l=a(),window.localStorage.setItem("lia-token",l))}catch(t){console.warn("cannot write to localStorage"),l=a()}this.token=l,this.urlCounter=0,this.cbConnection=t,this.cbRelay=e,this.onConnect=r,this.onReceive=n,this.replyOnReceive=o;const h=this,u=function(t){let e=null;function r(){return 200*(t.db.getPeers().length+1)+(t.db.initialized?5e3:1e3)}function n(){if(t.isConnected)try{t.broadcast(!0,t.db.encode()),e=window.setTimeout(n,r())}catch(t){e=null}}return()=>{e&&window.clearTimeout(e),e=window.setTimeout(n,r())}}(h);this.gossip=u;const d=s.throttle((()=>{h.broadcast(!0,h.db.encode()),u()}),1e3);this.db=new(0,i.CRDT)(l,c?(t,e)=>{if(h.db){switch(e){case"cursor":this.sync("update",{cmd:"cursor",param:t});break;case"peer":this.sync("update",{cmd:"peer",param:t});break;case"code":this.sync("update",{cmd:"code",param:t});break;case"quiz":this.sync("update",{cmd:"quiz",param:t});break;case"survey":this.sync("update",{cmd:"survey",param:t});break;case"chat":this.sync("update",{cmd:"chat",param:t});break;case"exit":try{e=null,this.broadcast(!0,t),this.destroy()}catch(t){}break;default:console.warn("Sync unknown origin",e)}e&&d()}}:void 0)}connect(t){this.room=t.room,this.course=t.course,this.password=t.password,this.isConnected=!0}destroy(){this.db.destroy(),this.cbConnection("disconnect",this.token),this.isConnected=!1}disconnect(){this.db.removePeer()}uniqueID(){return"string"==typeof this.room&&(this.room.startsWith('"')&&this.room.endsWith('"')||this.room.startsWith("'")&&this.room.endsWith("'"))?this.room:this.course&&this.room?JSON.stringify({course:this.course,room:this.room,pw:s.getHashCode(this.password||"")}):(console.warn("Sync: no uniqueID"),null)}sendToLia(t){this.cbRelay(t)}sync(t,e=null){this.cbConnection(t,e)}sendDisconnectError(t){this.sync("error",t)}sendConnect(){this.sync("connect",this.token),this.onConnect&&this.onConnect()}pubsubSend(t,e){const r=JSON.stringify({topic:t,message:e}),n=new TextEncoder;this.broadcast(!1,n.encode(r)),this.replyOnReceive&&this.onReceive?.(t,e)}pubsubReceive(t){try{const e=(new TextDecoder).decode(t),r=JSON.parse(e);this.onReceive?.(r.topic,r.message)}catch(t){console.warn("Sync: pubsubReceive",t.message)}}broadcast(t,e){console.warn("broadcast needs to be implemented")}load(t,e){try{for(let r=0;r<t.length;r++){const n=document.createElement("script");n.async=!1,n.defer=!0,n.src=t[r],this.urlCounter++;let s=this;n.onload=function(){console.log("successfully loaded =>",t),s.urlCounter--,0==s.urlCounter&&e.init(!0)},n.onerror=function(r){console.warn("could not load =>",t,r),s.urlCounter=0,e.init(!1,`could not load => ${t}`)},document.head.appendChild(n)}}catch(t){console.error("load: ",t),e.init(!1,t.message)}}publish(t){switch(t.message.cmd){case"update":break;case"join":this.db.init(t.message.param),this.gossip();break;case"chat":this.db.addChatMessage(t.message.param);break;case"quiz":"quiz"===t.track?.[0][0]&&"id"===t.track?.[1][0]?this.db.addQuiz(t.track[0][1],t.track[1][1],t.message.param):console.warn("SyncTX wrong event ->",t);break;case"survey":"survey"===t.track?.[0][0]&&"id"===t.track?.[1][0]?this.db.addSurvey(t.track[0][1],t.track[1][1],t.message.param):console.warn("SyncTX wrong event ->",t);break;case"code":"code"===t.track?.[0][0]&&"id"===t.track?.[1][0]?this.db.updateCode(t.track[0][1],t.track[1][1],t.message.param.j,t.message.param.msg):console.warn("SyncTX wrong event ->",t);break;case"codes":if("code"===t.track?.[0][0]&&1===t.track.length)for(let e=0;e<t.message.param.length;e++)for(let r=0;r<t.message.param[e].length;r++)this.db.initCode(t.track[0][1],e,r,t.message.param[e][r]);else console.warn("SyncTX wrong event ->",t);break;case"cursor":"code"==t.track?.[0][0]&&this.db.setCursor(t.track[0][1],t.message.param);break;case"broadcast":this.broadcast(!0,t.message.param);default:console.warn("SyncTX unknown command:",t.message)}}applyUpdate(t,e=!1){this.db.applyUpdate(t,e)}}})),r.register("66xmW",(function(e,n){t(e.exports,"CRDT",(function(){return a}));var s=r("7I2MU"),i=r("axlxN"),o=r("g4rKG");const c="peers",l="cursors";class a{timestamp=Date.now();initialized=!1;constructor(t,e){this.doc=new s.Doc,this.callback=e||((t,e)=>{console.warn("SyncDB: no callback provided")}),this.length=0,this.peerID=t,this.peers=this.doc.getMap(c),this.cursors=this.doc.getMap(l),this.codes=this.doc.getMap("c"),this.quizzes=new(0,o.YKeyValue)(this.doc.getArray("q")),this.surveys=new(0,o.YKeyValue)(this.doc.getArray("s")),this.chat=new(0,o.YKeyValue)(this.doc.getArray("chat"));const r=this;setTimeout((()=>{r.initialized=!0}),5e3)}init(t){this.initState=t,this.length=Math.max(this.length,t.length);const e=this;this.doc.transact((()=>{for(let r=0;r<t.length;r++)e.initMap(this.quizzes,r,t[r].q),e.initMap(this.surveys,r,t[r].s),e.initText(r,t[r].c);e.peers.set(e.peerID,!0)}),this.peerID),this.registerCallbacks()}registerCallbacks(){this.peers.observe((t=>{const e=this.getPeers();this.callback(e,"peer")})),this.cursors.observe((t=>{const e=this.getPeers();this.callback(this.getCursors(e),"cursor")})),this.quizzes.on("change",(t=>{const e=this.getUpdates(this.quizzes,t);e&&this.callback(e,"quiz")})),this.surveys.on("change",(t=>{const e=this.getUpdates(this.surveys,t);e&&this.callback(e,"survey")})),this.chat.on("change",(t=>{const e=[];let r;for(let[n,s]of t)"add"===s.action&&(r=s.newValue,r.id=parseInt(n),e.push(r));e.length>0&&this.callback(e,"chat")})),this.codes.observeDeep((t=>{const e=new Set;for(const r of t){const n=r.currentTarget.keys();for(const r of n)try{const[t]=JSON.parse(r);e.add(t)}catch(t){}}e.size>0&&this.callback(this.getCode(e),"code")})),this.peers.set(this.peerID,!0)}encode(){return s.encodeStateAsUpdate(this.doc)}destroy(){this.doc.destroy()}applyUpdate(t,e=!1){this.doc.transact((()=>{e?(this.doc.destroy(),this.doc=new s.Doc,s.applyUpdate(this.doc,t),this.peers=this.doc.getMap(c),this.cursors=this.doc.getMap(l),this.codes=this.doc.getMap("c"),this.quizzes=new(0,o.YKeyValue)(this.doc.getArray("q")),this.surveys=new(0,o.YKeyValue)(this.doc.getArray("s")),this.chat=new(0,o.YKeyValue)(this.doc.getArray("chat")),this.init(this.initState)):s.applyUpdate(this.doc,t)}))}log(){console.warn("*********** PEERS ***********"),console.warn(this.peers.toJSON()),console.warn("*********** STATE ***********"),console.warn(this.doc.toJSON())}initMap(t,e,r){if(0===r.length)return;let n;for(let s=0;s<r.length;s++){n=t.get(this.id(e,s)),n||(n={});for(const t in r[s])n[t]=r[s][t];t.set(this.id(e,s),n)}}initText(t,e){if(0!==e.length)for(let r=0;r<e.length;r++)for(let n=0;n<e[r].length;n++)this.initCode(t,r,n,e[r][n])}diff(t){return s.encodeStateAsUpdate(this.doc,t)}getCode(t){let e=[];for(const r of t)e.push({id:r,data:this.getAllTexts(r)});return e}getCursors(t){const e=[],r=this.cursors.toJSON();for(let n of t)n!==this.peerID&&void 0!==r[n]&&e.push(r[n]);return e}getPeers(){const t=this.peers.toJSON();return t?Object.entries(t).filter((([t,e])=>e)).map((([t,e])=>t)):[]}removePeer(t){this.doc.transact((()=>{this.peers.set(t||this.peerID,!1)})),void 0===t&&this.callback(this.encode(),"exit")}id(t,e,r){return void 0===r?JSON.stringify([t,e]):JSON.stringify([t,e,r])}getMap(t,e,r){return this.doc.getMap(this.id(e,r))}getAllMaps(t){const e=[];for(let r=0;r<this.length;r++){let n=[];for(let e=0;t.has(this.id(r,e));e++)n.push(t.get(this.id(r,e)));e.push(n)}return e}getMaps(t,e){const r=[];for(let n=0;e.has(this.id(t,n));n++)r.push(e.get(this.id(t,n)));return r}getAllTexts(t){let e,r=[];for(let n=0;this.codes.has(this.id(t,n,0));n++){let s=[];for(let r=0;this.codes.has(this.id(t,n,r));r++)e=this.codes.get(this.id(t,n,r)),s.push(e?.toString()||"");r.push(s)}return r}addQuiz(t,e,r){this.addRecord(this.quizzes,t,e,r)}addSurvey(t,e,r){this.addRecord(this.surveys,t,e,r)}addRecord(t,e,r,n){let s=t.get(this.id(e,r));s||(s={}),s[this.peerID]=n,t.set(this.id(e,r),s)}initCode(t,e,r,n){if(!this.codes.has(this.id(t,e,r))){const i=this.doc.clientID;this.doc.clientID=0;const o=new s.Text;o.insert(0,n),this.codes.set(this.id(t,e,r),o),this.doc.clientID=i}}addChatMessage(t){this.chat.set(""+Date.now(),{color:this.getColor(),message:t,user:this.peerID})}updateCode(t,e,r,n){this.codes.has(this.id(t,e,r))&&this.doc.transact((()=>{const s=this.codes.get(this.id(t,e,r));if(void 0!==s)for(let t of n)switch(t.action){case"insert":s.insert(t.index,t.content);break;case"remove":s.delete(t.index,t.content.length);break;default:console.warn("Sync code, unknown action ->",t)}}),"code")}getColor(){return this.color||(this.color=i.getColorFor(this.peerID)),this.color}setCursor(t,e){this.doc.transact((()=>{this.cursors.set(this.peerID,{id:this.peerID,section:t,project:e.project,file:e.file,state:e.state,color:this.getColor()})}),"cursor")}removeCursor(){this.cursors.delete(this.peerID)}getUpdates(t,e){const r=new Set,n=[];for(const[s,i]of e)switch(i.action){case"update":if(JSON.stringify(Object.keys(i.oldValue).sort())!==JSON.stringify(Object.keys(i.newValue).sort())){n.push([s,{...i.oldValue,...i.newValue}]);continue}case"add":try{const[t]=JSON.parse(s);r.add(t)}catch(t){}}const s=[];for(const e of r)s.push({id:e,data:this.getMaps(e,t)});for(const[e,r]of n)t.set(e,r);return s.length>0?s:null}}})),r.register("7I2MU",(function(n,s){t(n.exports,"Doc",(function(){return N})),t(n.exports,"Text",(function(){return Se})),t(n.exports,"applyUpdate",(function(){return G})),t(n.exports,"encodeStateAsUpdate",(function(){return Y}));var i=r("fACbm"),o=r("kDMzp"),c=r("iUL32"),l=r("cuboK"),a=r("j3EDv"),h=r("heYZO"),u=r("9c5sf"),d=r("hpG0a"),f=r("f6bdK"),g=r("jtAN9"),p=r("diuv2"),w=r("ixCIn"),m=(w=r("ixCIn"),r("aYKIU")),y=r("fK7I3"),b=r("37RhN"),k=(r("k2yVv"),r("fJq6z"),r("fiX3Z")),_=r("gBQSU");i.Observable;class x{constructor(t,e){this.clock=t,this.len=e}}class S{constructor(){this.clients=new Map}}const E=(t,e,r)=>e.clients.forEach(((e,n)=>{const s=t.doc.store.clients.get(n);for(let n=0;n<e.length;n++){const i=e[n];pt(t,s,i.clock,i.len,r)}})),C=(t,e)=>{const r=t.clients.get(e.client);return void 0!==r&&null!==((t,e)=>{let r=0,n=t.length-1;for(;r<=n;){const s=c.floor((r+n)/2),i=t[s],o=i.clock;if(o<=e){if(e<o+i.len)return s;r=s+1}else n=s-1}return null})(r,e.clock)},D=t=>{t.clients.forEach((t=>{let e,r;for(t.sort(((t,e)=>t.clock-e.clock)),e=1,r=1;e<t.length;e++){const n=t[r-1],s=t[e];n.clock+n.len>=s.clock?n.len=c.max(n.len,s.clock+s.len-n.clock):(r<e&&(t[r]=s),r++)}t.length=r}))},U=t=>{const e=new S;for(let r=0;r<t.length;r++)t[r].clients.forEach(((n,s)=>{if(!e.clients.has(s)){const i=n.slice();for(let e=r+1;e<t.length;e++)o.appendTo(i,t[e].clients.get(s)||[]);e.clients.set(s,i)}}));return D(e),e},v=(t,e,r,n)=>{l.setIfUndefined(t.clients,e,(()=>[])).push(new x(r,n))},I=()=>new S,A=(t,e)=>{a.writeVarUint(t.restEncoder,e.clients.size),o.from(e.clients.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([e,r])=>{t.resetDsCurVal(),a.writeVarUint(t.restEncoder,e);const n=r.length;a.writeVarUint(t.restEncoder,n);for(let e=0;e<n;e++){const n=r[e];t.writeDsClock(n.clock),t.writeDsLen(n.len)}}))},T=t=>{const e=new S,r=h.readVarUint(t.restDecoder);for(let n=0;n<r;n++){t.resetDsCurVal();const r=h.readVarUint(t.restDecoder),n=h.readVarUint(t.restDecoder);if(n>0){const s=l.setIfUndefined(e.clients,r,(()=>[]));for(let e=0;e<n;e++)s.push(new x(t.readDsClock(),t.readDsLen()))}}return e},O=(t,e,r)=>{const n=new S,s=h.readVarUint(t.restDecoder);for(let i=0;i<s;i++){t.resetDsCurVal();const s=h.readVarUint(t.restDecoder),i=h.readVarUint(t.restDecoder),o=r.clients.get(s)||[],c=lt(r,s);for(let r=0;r<i;r++){const r=t.readDsClock(),i=r+t.readDsLen();if(r<c){c<i&&v(n,s,c,i-c);let t=ht(o,r),l=o[t];for(!l.deleted&&l.id.clock<r&&(o.splice(t+1,0,Xe(e,l,r-l.id.clock)),t++);t<o.length&&(l=o[t++],l.id.clock<i);)l.deleted||(i<l.id.clock+l.length&&o.splice(t,0,Xe(e,l,i-l.id.clock)),l.delete(e))}else v(n,s,r,i-r)}}if(n.clients.size>0){const t=new P;return a.writeVarUint(t.restEncoder,0),A(t,n),t.toUint8Array()}return null},V=u.uint32;class N extends i.Observable{constructor({guid:t=u.uuidv4(),collectionid:e=null,gc:r=!0,gcFilter:n=(()=>!0),meta:s=null,autoLoad:i=!1,shouldLoad:o=!0}={}){super(),this.gc=r,this.gcFilter=n,this.clientID=V(),this.guid=t,this.collectionid=e,this.share=new Map,this.store=new ot,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=o,this.autoLoad=i,this.meta=s,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=d.create((t=>{this.on("load",(()=>{this.isLoaded=!0,t(this)}))}));const c=()=>d.create((t=>{const e=r=>{void 0!==r&&!0!==r||(this.off("sync",e),t())};this.on("sync",e)}));this.on("sync",(t=>{!1===t&&this.isSynced&&(this.whenSynced=c()),this.isSynced=void 0===t||!0===t,this.isSynced&&!this.isLoaded&&this.emit("load",[])})),this.whenSynced=c()}load(){const t=this._item;null===t||this.shouldLoad||_t(t.parent.doc,(t=>{t.subdocsLoaded.add(this)}),null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(o.from(this.subdocs).map((t=>t.guid)))}transact(t,e=null){return _t(this,t,e)}get(t,e=jt){const r=l.setIfUndefined(this.share,t,(()=>{const t=new e;return t._integrate(this,null),t})),n=r.constructor;if(e!==jt&&n!==e){if(n===jt){const n=new e;n._map=r._map,r._map.forEach((t=>{for(;null!==t;t=t.left)t.parent=n})),n._start=r._start;for(let t=n._start;null!==t;t=t.right)t.parent=n;return n._length=r._length,this.share.set(t,n),n._integrate(this,null),n}throw new Error(`Type with the name ${t} has already been defined with a different constructor`)}return r}getArray(t=""){return this.get(t,ie)}getText(t=""){return this.get(t,Se)}getMap(t=""){return this.get(t,ce)}getXmlElement(t=""){return this.get(t,De)}getXmlFragment(t=""){return this.get(t,Ce)}toJSON(){const t={};return this.share.forEach(((e,r)=>{t[r]=e.toJSON()})),t}destroy(){o.from(this.subdocs).forEach((t=>t.destroy()));const t=this._item;if(null!==t){this._item=null;const e=t.content;e.doc=new N({guid:this.guid,...e.opts,shouldLoad:!1}),e.doc._item=t,_t(t.parent.doc,(r=>{const n=e.doc;t.deleted||r.subdocsAdded.add(n),r.subdocsRemoved.add(this)}),null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(t,e){super.on(t,e)}off(t,e){super.off(t,e)}}class M{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return h.readVarUint(this.restDecoder)}readDsLen(){return h.readVarUint(this.restDecoder)}}class R extends M{readLeftID(){return rt(h.readVarUint(this.restDecoder),h.readVarUint(this.restDecoder))}readRightID(){return rt(h.readVarUint(this.restDecoder),h.readVarUint(this.restDecoder))}readClient(){return h.readVarUint(this.restDecoder)}readInfo(){return h.readUint8(this.restDecoder)}readString(){return h.readVarString(this.restDecoder)}readParentInfo(){return 1===h.readVarUint(this.restDecoder)}readTypeRef(){return h.readVarUint(this.restDecoder)}readLen(){return h.readVarUint(this.restDecoder)}readAny(){return h.readAny(this.restDecoder)}readBuf(){return f.copyUint8Array(h.readVarUint8Array(this.restDecoder))}readJSON(){return JSON.parse(h.readVarString(this.restDecoder))}readKey(){return h.readVarString(this.restDecoder)}}class L{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=h.readVarUint(this.restDecoder),this.dsCurrVal}readDsLen(){const t=h.readVarUint(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class B extends L{constructor(t){super(t),this.keys=[],h.readVarUint(t),this.keyClockDecoder=new h.IntDiffOptRleDecoder(h.readVarUint8Array(t)),this.clientDecoder=new h.UintOptRleDecoder(h.readVarUint8Array(t)),this.leftClockDecoder=new h.IntDiffOptRleDecoder(h.readVarUint8Array(t)),this.rightClockDecoder=new h.IntDiffOptRleDecoder(h.readVarUint8Array(t)),this.infoDecoder=new h.RleDecoder(h.readVarUint8Array(t),h.readUint8),this.stringDecoder=new h.StringDecoder(h.readVarUint8Array(t)),this.parentInfoDecoder=new h.RleDecoder(h.readVarUint8Array(t),h.readUint8),this.typeRefDecoder=new h.UintOptRleDecoder(h.readVarUint8Array(t)),this.lenDecoder=new h.UintOptRleDecoder(h.readVarUint8Array(t))}readLeftID(){return new tt(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new tt(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return h.readAny(this.restDecoder)}readBuf(){return h.readVarUint8Array(this.restDecoder)}readJSON(){return h.readAny(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t<this.keys.length)return this.keys[t];{const t=this.stringDecoder.read();return this.keys.push(t),t}}}class z{constructor(){this.restEncoder=a.createEncoder()}toUint8Array(){return a.toUint8Array(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){a.writeVarUint(this.restEncoder,t)}writeDsLen(t){a.writeVarUint(this.restEncoder,t)}}class J extends z{writeLeftID(t){a.writeVarUint(this.restEncoder,t.client),a.writeVarUint(this.restEncoder,t.clock)}writeRightID(t){a.writeVarUint(this.restEncoder,t.client),a.writeVarUint(this.restEncoder,t.clock)}writeClient(t){a.writeVarUint(this.restEncoder,t)}writeInfo(t){a.writeUint8(this.restEncoder,t)}writeString(t){a.writeVarString(this.restEncoder,t)}writeParentInfo(t){a.writeVarUint(this.restEncoder,t?1:0)}writeTypeRef(t){a.writeVarUint(this.restEncoder,t)}writeLen(t){a.writeVarUint(this.restEncoder,t)}writeAny(t){a.writeAny(this.restEncoder,t)}writeBuf(t){a.writeVarUint8Array(this.restEncoder,t)}writeJSON(t){a.writeVarString(this.restEncoder,JSON.stringify(t))}writeKey(t){a.writeVarString(this.restEncoder,t)}}class j{constructor(){this.restEncoder=a.createEncoder(),this.dsCurrVal=0}toUint8Array(){return a.toUint8Array(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){const e=t-this.dsCurrVal;this.dsCurrVal=t,a.writeVarUint(this.restEncoder,e)}writeDsLen(t){0===t&&g.unexpectedCase(),a.writeVarUint(this.restEncoder,t-1),this.dsCurrVal+=t}}class P extends j{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new a.IntDiffOptRleEncoder,this.clientEncoder=new a.UintOptRleEncoder,this.leftClockEncoder=new a.IntDiffOptRleEncoder,this.rightClockEncoder=new a.IntDiffOptRleEncoder,this.infoEncoder=new a.RleEncoder(a.writeUint8),this.stringEncoder=new a.StringEncoder,this.parentInfoEncoder=new a.RleEncoder(a.writeUint8),this.typeRefEncoder=new a.UintOptRleEncoder,this.lenEncoder=new a.UintOptRleEncoder}toUint8Array(){const t=a.createEncoder();return a.writeVarUint(t,0),a.writeVarUint8Array(t,this.keyClockEncoder.toUint8Array()),a.writeVarUint8Array(t,this.clientEncoder.toUint8Array()),a.writeVarUint8Array(t,this.leftClockEncoder.toUint8Array()),a.writeVarUint8Array(t,this.rightClockEncoder.toUint8Array()),a.writeVarUint8Array(t,a.toUint8Array(this.infoEncoder)),a.writeVarUint8Array(t,this.stringEncoder.toUint8Array()),a.writeVarUint8Array(t,a.toUint8Array(this.parentInfoEncoder)),a.writeVarUint8Array(t,this.typeRefEncoder.toUint8Array()),a.writeVarUint8Array(t,this.lenEncoder.toUint8Array()),a.writeUint8Array(t,a.toUint8Array(this.restEncoder)),a.toUint8Array(t)}writeLeftID(t){this.clientEncoder.write(t.client),this.leftClockEncoder.write(t.clock)}writeRightID(t){this.clientEncoder.write(t.client),this.rightClockEncoder.write(t.clock)}writeClient(t){this.clientEncoder.write(t)}writeInfo(t){this.infoEncoder.write(t)}writeString(t){this.stringEncoder.write(t)}writeParentInfo(t){this.parentInfoEncoder.write(t?1:0)}writeTypeRef(t){this.typeRefEncoder.write(t)}writeLen(t){this.lenEncoder.write(t)}writeAny(t){a.writeAny(this.restEncoder,t)}writeBuf(t){a.writeVarUint8Array(this.restEncoder,t)}writeJSON(t){a.writeAny(this.restEncoder,t)}writeKey(t){const e=this.keyMap.get(t);void 0===e?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(t)):this.keyClockEncoder.write(e)}}const K=(t,e,r)=>{const n=new Map;r.forEach(((t,r)=>{lt(e,r)>t&&n.set(r,t)})),ct(e).forEach(((t,e)=>{r.has(e)||n.set(e,0)})),a.writeVarUint(t.restEncoder,n.size),o.from(n.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([r,n])=>{((t,e,r,n)=>{n=c.max(n,e[0].id.clock);const s=ht(e,n);a.writeVarUint(t.restEncoder,e.length-s),t.writeClient(r),a.writeVarUint(t.restEncoder,n);const i=e[s];i.write(t,n-i.id.clock);for(let r=s+1;r<e.length;r++)e[r].write(t,0)})(t,e.clients.get(r),r,n)}))},F=(t,e,r,n=B)=>{const s=h.createDecoder(e);((t,e,r,n=new B(t))=>{_t(e,(t=>{t.local=!1;let e=!1;const r=t.doc,s=r.store,i=((t,e)=>{const r=l.create(),n=h.readVarUint(t.restDecoder);for(let s=0;s<n;s++){const n=h.readVarUint(t.restDecoder),s=new Array(n),i=t.readClient();let o=h.readVarUint(t.restDecoder);r.set(i,{i:0,refs:s});for(let r=0;r<n;r++){const n=t.readInfo();switch(p.BITS5&n){case 0:{const e=t.readLen();s[r]=new Te(rt(i,o),e),o+=e;break}case 10:{const e=h.readVarUint(t.restDecoder);s[r]=new tr(rt(i,o),e),o+=e;break}default:{const c=!(n&(p.BIT7|p.BIT8)),l=new Ze(rt(i,o),null,(n&p.BIT8)===p.BIT8?t.readLeftID():null,null,(n&p.BIT7)===p.BIT7?t.readRightID():null,c?t.readParentInfo()?e.get(t.readString()):t.readLeftID():null,c&&(n&p.BIT6)===p.BIT6?t.readString():null,He(t,n));s[r]=l,o+=l.length}}}}return r})(n,r),c=((t,e,r)=>{const n=[];let s=o.from(r.keys()).sort(((t,e)=>t-e));if(0===s.length)return null;const i=()=>{if(0===s.length)return null;let t=r.get(s[s.length-1]);for(;t.refs.length===t.i;){if(s.pop(),!(s.length>0))return null;t=r.get(s[s.length-1])}return t};let c=i();if(null===c)return null;const h=new ot,u=new Map,d=(t,e)=>{const r=u.get(t);(null==r||r>e)&&u.set(t,e)};let f=c.refs[c.i++];const g=new Map,p=()=>{for(const t of n){const e=t.id.client,n=r.get(e);n?(n.i--,h.clients.set(e,n.refs.slice(n.i)),r.delete(e),n.i=0,n.refs=[]):h.clients.set(e,[t]),s=s.filter((t=>t!==e))}n.length=0};for(;;){if(f.constructor!==tr){const s=l.setIfUndefined(g,f.id.client,(()=>lt(e,f.id.client)))-f.id.clock;if(s<0)n.push(f),d(f.id.client,f.id.clock-1),p();else{const i=f.getMissing(t,e);if(null!==i){n.push(f);const t=r.get(i)||{refs:[],i:0};if(t.refs.length!==t.i){f=t.refs[t.i++];continue}d(i,lt(e,i)),p()}else(0===s||s<f.length)&&(f.integrate(t,s),g.set(f.id.client,f.id.clock+f.length))}}if(n.length>0)f=n.pop();else if(null!==c&&c.i<c.refs.length)f=c.refs[c.i++];else{if(c=i(),null===c)break;f=c.refs[c.i++]}}if(h.clients.size>0){const t=new P;return K(t,h,new Map),a.writeVarUint(t.restEncoder,0),{missing:u,update:t.toUint8Array()}}return null})(t,s,i),u=s.pendingStructs;if(u){for(const[t,r]of u.missing)if(r<lt(s,t)){e=!0;break}if(c){for(const[t,e]of c.missing){const r=u.missing.get(t);(null==r||r>e)&&u.missing.set(t,e)}u.update=Dt([u.update,c.update])}}else s.pendingStructs=c;const d=O(n,t,s);if(s.pendingDs){const e=new B(h.createDecoder(s.pendingDs));h.readVarUint(e.restDecoder);const r=O(e,t,s);s.pendingDs=d&&r?Dt([d,r]):d||r}else s.pendingDs=d;if(e){const e=s.pendingStructs.update;s.pendingStructs=null,F(t.doc,e)}}),r,!1)})(s,t,r,new n(s))},G=(t,e,r)=>F(t,e,r,R),q=(t,e=new Uint8Array([0]),r=new P)=>{((t,e,r=new Map)=>{K(t,e.store,r),A(t,(t=>{const e=I();return t.clients.forEach(((t,r)=>{const n=[];for(let e=0;e<t.length;e++){const r=t[e];if(r.deleted){const s=r.id.clock;let i=r.length;if(e+1<t.length)for(let r=t[e+1];e+1<t.length&&r.deleted;r=t[1+ ++e])i+=r.length;n.push(new x(s,i))}}n.length>0&&e.clients.set(r,n)})),e})(e.store))})(r,t,W(e));const n=[r.toUint8Array()];if(t.store.pendingDs&&n.push(t.store.pendingDs),t.store.pendingStructs&&n.push(Ut(t.store.pendingStructs.update,e)),n.length>1){if(r.constructor===J)return Et(n.map(((t,e)=>0===e?t:Tt(t))));if(r.constructor===P)return Dt(n)}return n[0]},Y=(t,e)=>q(t,e,new J),W=t=>(t=>{const e=new Map,r=h.readVarUint(t.restDecoder);for(let n=0;n<r;n++){const r=h.readVarUint(t.restDecoder),n=h.readVarUint(t.restDecoder);e.set(r,n)}return e})(new M(h.createDecoder(t)));class ${constructor(){this.l=[]}}const X=()=>new $,Z=(t,e)=>t.l.push(e),H=(t,e)=>{const r=t.l,n=r.length;t.l=r.filter((t=>e!==t)),n===t.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},Q=(t,e,r)=>w.callAll(t.l,[e,r]);class tt{constructor(t,e){this.client=t,this.clock=e}}const et=(t,e)=>t===e||null!==t&&null!==e&&t.client===e.client&&t.clock===e.clock,rt=(t,e)=>new tt(t,e);class nt{constructor(t,e){this.ds=t,this.sv=e}}const st=(((t,e)=>{new nt(t,e)})(I(),new Map),(t,e)=>void 0===e?!t.deleted:e.sv.has(t.id.client)&&(e.sv.get(t.id.client)||0)>t.id.clock&&!C(e.ds,t.id)),it=(t,e)=>{const r=l.setIfUndefined(t.meta,it,m.create),n=t.doc.store;r.has(e)||(e.sv.forEach(((e,r)=>{e<lt(n,r)&&ft(t,rt(r,e))})),E(t,e.ds,(t=>{})),r.add(e))};class ot{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const ct=t=>{const e=new Map;return t.clients.forEach(((t,r)=>{const n=t[t.length-1];e.set(r,n.id.clock+n.length)})),e},lt=(t,e)=>{const r=t.clients.get(e);if(void 0===r)return 0;const n=r[r.length-1];return n.id.clock+n.length},at=(t,e)=>{let r=t.clients.get(e.id.client);if(void 0===r)r=[],t.clients.set(e.id.client,r);else{const t=r[r.length-1];if(t.id.clock+t.length!==e.id.clock)throw g.unexpectedCase()}r.push(e)},ht=(t,e)=>{let r=0,n=t.length-1,s=t[n],i=s.id.clock;if(i===e)return n;let o=c.floor(e/(i+s.length-1)*n);for(;r<=n;){if(s=t[o],i=s.id.clock,i<=e){if(e<i+s.length)return o;r=o+1}else n=o-1;o=c.floor((r+n)/2)}throw g.unexpectedCase()},ut=(t,e)=>{const r=t.clients.get(e.client);return r[ht(r,e.clock)]},dt=(t,e,r)=>{const n=ht(e,r),s=e[n];return s.id.clock<r&&s instanceof Ze?(e.splice(n+1,0,Xe(t,s,r-s.id.clock)),n+1):n},ft=(t,e)=>{const r=t.doc.store.clients.get(e.client);return r[dt(t,r,e.clock)]},gt=(t,e,r)=>{const n=e.clients.get(r.client),s=ht(n,r.clock),i=n[s];return r.clock!==i.id.clock+i.length-1&&i.constructor!==Te&&n.splice(s+1,0,Xe(t,i,r.clock-i.id.clock+1)),i},pt=(t,e,r,n,s)=>{if(0===n)return;const i=r+n;let o,c=dt(t,e,r);do{o=e[c++],i<o.id.clock+o.length&&dt(t,e,i),s(o)}while(c<e.length&&e[c].id.clock<i)};class wt{constructor(t,e,r){this.doc=t,this.deleteSet=new S,this.beforeState=ct(t.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=e,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const mt=(t,e)=>!(0===e.deleteSet.clients.size&&!l.any(e.afterState,((t,r)=>e.beforeState.get(r)!==t))||(D(e.deleteSet),((t,e)=>{K(t,e.doc.store,e.beforeState)})(t,e),A(t,e.deleteSet),0)),yt=(t,e,r)=>{const n=e._item;(null===n||n.id.clock<(t.beforeState.get(n.id.client)||0)&&!n.deleted)&&l.setIfUndefined(t.changed,e,m.create).add(r)},bt=(t,e)=>{let r=t[e],n=t[e-1],s=e;for(;s>0&&n.deleted===r.deleted&&n.constructor===r.constructor&&n.mergeWith(r);r=n,n=t[--s-1])r instanceof Ze&&null!==r.parentSub&&r.parent._map.get(r.parentSub)===r&&r.parent._map.set(r.parentSub,n);const i=e-s;return i&&t.splice(e+1-i,i),i},kt=(t,e)=>{if(e<t.length){const r=t[e],n=r.doc,s=n.store,i=r.deleteSet,o=r._mergeStructs;try{D(i),r.afterState=ct(r.doc.store),n.emit("beforeObserverCalls",[r,n]);const t=[];r.changed.forEach(((e,n)=>t.push((()=>{null!==n._item&&n._item.deleted||n._callObserver(r,e)})))),t.push((()=>{r.changedParentTypes.forEach(((t,e)=>{e._dEH.l.length>0&&(null===e._item||!e._item.deleted)&&((t=t.filter((t=>null===t.target._item||!t.target._item.deleted))).forEach((t=>{t.currentTarget=e,t._path=null})),t.sort(((t,e)=>t.path.length-e.path.length)),Q(e._dEH,t,r))}))})),t.push((()=>n.emit("afterTransaction",[r,n]))),(0,w.callAll)(t,[]),r._needFormattingCleanup&&ke(r)}finally{n.gc&&((t,e,r)=>{for(const[n,s]of t.clients.entries()){const t=e.clients.get(n);for(let n=s.length-1;n>=0;n--){const i=s[n],o=i.clock+i.len;for(let n=ht(t,i.clock),s=t[n];n<t.length&&s.id.clock<o;s=t[++n]){const s=t[n];if(i.clock+i.len<=s.id.clock)break;s instanceof Ze&&s.deleted&&!s.keep&&r(s)&&s.gc(e,!1)}}}})(i,s,n.gcFilter),((t,e)=>{t.clients.forEach(((t,r)=>{const n=e.clients.get(r);for(let e=t.length-1;e>=0;e--){const r=t[e];for(let t=c.min(n.length-1,1+ht(n,r.clock+r.len-1)),e=n[t];t>0&&e.id.clock>=r.clock;e=n[t])t-=1+bt(n,t)}}))})(i,s),r.afterState.forEach(((t,e)=>{const n=r.beforeState.get(e)||0;if(n!==t){const t=s.clients.get(e),r=c.max(ht(t,n),1);for(let e=t.length-1;e>=r;)e-=1+bt(t,e)}}));for(let t=o.length-1;t>=0;t--){const{client:e,clock:r}=o[t].id,n=s.clients.get(e),i=ht(n,r);i+1<n.length&&bt(n,i+1)>1||i>0&&bt(n,i)}if(r.local||r.afterState.get(n.clientID)===r.beforeState.get(n.clientID)||(y.print(b.ORANGE,b.BOLD,"[yjs] ",b.UNBOLD,b.RED,"Changed the client-id because another client seems to be using it."),n.clientID=V()),n.emit("afterTransactionCleanup",[r,n]),n._observers.has("update")){const t=new J;mt(t,r)&&n.emit("update",[t.toUint8Array(),r.origin,n,r])}if(n._observers.has("updateV2")){const t=new P;mt(t,r)&&n.emit("updateV2",[t.toUint8Array(),r.origin,n,r])}const{subdocsAdded:l,subdocsLoaded:a,subdocsRemoved:h}=r;(l.size>0||h.size>0||a.size>0)&&(l.forEach((t=>{t.clientID=n.clientID,null==t.collectionid&&(t.collectionid=n.collectionid),n.subdocs.add(t)})),h.forEach((t=>n.subdocs.delete(t))),n.emit("subdocs",[{loaded:a,added:l,removed:h},n,r]),h.forEach((t=>t.destroy()))),t.length<=e+1?(n._transactionCleanups=[],n.emit("afterAllTransactions",[n,t])):kt(t,e+1)}}},_t=(t,e,r=null,n=!0)=>{const s=t._transactionCleanups;let i=!1,o=null;null===t._transaction&&(i=!0,t._transaction=new wt(t,r,n),s.push(t._transaction),1===s.length&&t.emit("beforeAllTransactions",[t]),t.emit("beforeTransaction",[t._transaction,t]));try{o=e(t._transaction)}finally{if(i){const e=t._transaction===s[0];t._transaction=null,e&&kt(s,0)}}return o};i.Observable;class xt{constructor(t,e){this.gen=function*(t){const e=h.readVarUint(t.restDecoder);for(let r=0;r<e;r++){const e=h.readVarUint(t.restDecoder),r=t.readClient();let n=h.readVarUint(t.restDecoder);for(let s=0;s<e;s++){const e=t.readInfo();if(10===e){const e=h.readVarUint(t.restDecoder);yield new tr(rt(r,n),e),n+=e}else if(p.BITS5&e){const s=!(e&(p.BIT7|p.BIT8)),i=new Ze(rt(r,n),null,(e&p.BIT8)===p.BIT8?t.readLeftID():null,null,(e&p.BIT7)===p.BIT7?t.readRightID():null,s?t.readParentInfo()?t.readString():t.readLeftID():null,s&&(e&p.BIT6)===p.BIT6?t.readString():null,He(t,e));yield i,n+=i.length}else{const e=t.readLen();yield new Te(rt(r,n),e),n+=e}}}}(t),this.curr=null,this.done=!1,this.filterSkips=e,this.next()}next(){do{this.curr=this.gen.next().value||null}while(this.filterSkips&&null!==this.curr&&this.curr.constructor===tr);return this.curr}}class St{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}}const Et=t=>Dt(t,R,J),Ct=(t,e)=>{if(t.constructor===Te){const{client:r,clock:n}=t.id;return new Te(rt(r,n+e),t.length-e)}if(t.constructor===tr){const{client:r,clock:n}=t.id;return new tr(rt(r,n+e),t.length-e)}{const r=t,{client:n,clock:s}=r.id;return new Ze(rt(n,s+e),null,rt(n,s+e-1),null,r.rightOrigin,r.parent,r.parentSub,r.content.splice(e))}},Dt=(t,e=B,r=P)=>{if(1===t.length)return t[0];const n=t.map((t=>new e(h.createDecoder(t))));let s=n.map((t=>new xt(t,!0))),i=null;const o=new r,c=new St(o);for(;s=s.filter((t=>null!==t.curr)),s.sort(((t,e)=>{if(t.curr.id.client===e.curr.id.client){const r=t.curr.id.clock-e.curr.id.clock;return 0===r?t.curr.constructor===e.curr.constructor?0:t.curr.constructor===tr?1:-1:r}return e.curr.id.client-t.curr.id.client})),0!==s.length;){const t=s[0],e=t.curr.id.client;if(null!==i){let r=t.curr,n=!1;for(;null!==r&&r.id.clock+r.length<=i.struct.id.clock+i.struct.length&&r.id.client>=i.struct.id.client;)r=t.next(),n=!0;if(null===r||r.id.client!==e||n&&r.id.clock>i.struct.id.clock+i.struct.length)continue;if(e!==i.struct.id.client)It(c,i.struct,i.offset),i={struct:r,offset:0},t.next();else if(i.struct.id.clock+i.struct.length<r.id.clock)if(i.struct.constructor===tr)i.struct.length=r.id.clock+r.length-i.struct.id.clock;else{It(c,i.struct,i.offset);const t=r.id.clock-i.struct.id.clock-i.struct.length;i={struct:new tr(rt(e,i.struct.id.clock+i.struct.length),t),offset:0}}else{const e=i.struct.id.clock+i.struct.length-r.id.clock;e>0&&(i.struct.constructor===tr?i.struct.length-=e:r=Ct(r,e)),i.struct.mergeWith(r)||(It(c,i.struct,i.offset),i={struct:r,offset:0},t.next())}}else i={struct:t.curr,offset:0},t.next();for(let r=t.curr;null!==r&&r.id.client===e&&r.id.clock===i.struct.id.clock+i.struct.length&&r.constructor!==tr;r=t.next())It(c,i.struct,i.offset),i={struct:r,offset:0}}null!==i&&(It(c,i.struct,i.offset),i=null),At(c);const l=n.map((t=>T(t))),a=U(l);return A(o,a),o.toUint8Array()},Ut=(t,e,r=B,n=P)=>{const s=W(e),i=new n,o=new St(i),l=new r(h.createDecoder(t)),a=new xt(l,!1);for(;a.curr;){const t=a.curr,e=t.id.client,r=s.get(e)||0;if(a.curr.constructor!==tr)if(t.id.clock+t.length>r)for(It(o,t,c.max(r-t.id.clock,0)),a.next();a.curr&&a.curr.id.client===e;)It(o,a.curr,0),a.next();else for(;a.curr&&a.curr.id.client===e&&a.curr.id.clock+a.curr.length<=r;)a.next();else a.next()}At(o);const u=T(l);return A(i,u),i.toUint8Array()},vt=t=>{t.written>0&&(t.clientStructs.push({written:t.written,restEncoder:a.toUint8Array(t.encoder.restEncoder)}),t.encoder.restEncoder=a.createEncoder(),t.written=0)},It=(t,e,r)=>{t.written>0&&t.currClient!==e.id.client&&vt(t),0===t.written&&(t.currClient=e.id.client,t.encoder.writeClient(e.id.client),a.writeVarUint(t.encoder.restEncoder,e.id.clock+r)),e.write(t.encoder,r),t.written++},At=t=>{vt(t);const e=t.encoder.restEncoder;a.writeVarUint(e,t.clientStructs.length);for(let r=0;r<t.clientStructs.length;r++){const n=t.clientStructs[r];a.writeVarUint(e,n.written),a.writeUint8Array(e,n.restEncoder)}},Tt=t=>((t,e,r,n)=>{const s=new r(h.createDecoder(t)),i=new xt(s,!1),o=new n,c=new St(o);for(let t=i.curr;null!==t;t=i.next())It(c,e(t),0);At(c);const l=T(s);return A(o,l),o.toUint8Array()})(t,w.id,B,J),Ot="You must not compute changes after the event-handler fired.";class Vt{constructor(t,e){this.target=t,this.currentTarget=t,this.transaction=e,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=Nt(this.currentTarget,this.target))}deletes(t){return C(this.transaction.deleteSet,t.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw g.create(Ot);const t=new Map,e=this.target;this.transaction.changed.get(e).forEach((r=>{if(null!==r){const n=e._map.get(r);let s,i;if(this.adds(n)){let t=n.left;for(;null!==t&&this.adds(t);)t=t.left;if(this.deletes(n)){if(null===t||!this.deletes(t))return;s="delete",i=o.last(t.content.getContent())}else null!==t&&this.deletes(t)?(s="update",i=o.last(t.content.getContent())):(s="add",i=void 0)}else{if(!this.deletes(n))return;s="delete",i=o.last(n.content.getContent())}t.set(r,{action:s,oldValue:i})}})),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(null===t){if(0===this.transaction.doc._transactionCleanups.length)throw g.create(Ot);const e=this.target,r=m.create(),n=m.create(),s=[];if(t={added:r,deleted:n,delta:s,keys:this.keys},this.transaction.changed.get(e).has(null)){let t=null;const i=()=>{t&&s.push(t)};for(let s=e._start;null!==s;s=s.right)s.deleted?this.deletes(s)&&!this.adds(s)&&(null!==t&&void 0!==t.delete||(i(),t={delete:0}),t.delete+=s.length,n.add(s)):this.adds(s)?(null!==t&&void 0!==t.insert||(i(),t={insert:[]}),t.insert=t.insert.concat(s.content.getContent()),r.add(s)):(null!==t&&void 0!==t.retain||(i(),t={retain:0}),t.retain+=s.length);null!==t&&void 0===t.retain&&i()}this._changes=t}return t}}const Nt=(t,e)=>{const r=[];for(;null!==e._item&&e!==t;){if(null!==e._item.parentSub)r.unshift(e._item.parentSub);else{let t=0,n=e._item.parent._start;for(;n!==e._item&&null!==n;)n.deleted||t++,n=n.right;r.unshift(t)}e=e._item.parent}return r};let Mt=0;class Rt{constructor(t,e){t.marker=!0,this.p=t,this.index=e,this.timestamp=Mt++}}const Lt=(t,e,r)=>{t.p.marker=!1,t.p=e,e.marker=!0,t.index=r,t.timestamp=Mt++},Bt=(t,e)=>{if(null===t._start||0===e||null===t._searchMarker)return null;const r=0===t._searchMarker.length?null:t._searchMarker.reduce(((t,r)=>c.abs(e-t.index)<c.abs(e-r.index)?t:r));let n=t._start,s=0;for(null!==r&&(n=r.p,s=r.index,(t=>{t.timestamp=Mt++})(r));null!==n.right&&s<e;){if(!n.deleted&&n.countable){if(e<s+n.length)break;s+=n.length}n=n.right}for(;null!==n.left&&s>e;)n=n.left,!n.deleted&&n.countable&&(s-=n.length);for(;null!==n.left&&n.left.id.client===n.id.client&&n.left.id.clock+n.left.length===n.id.clock;)n=n.left,!n.deleted&&n.countable&&(s-=n.length);return null!==r&&c.abs(r.index-s)<n.parent.length/80?(Lt(r,n,s),r):((t,e,r)=>{if(t.length>=80){const n=t.reduce(((t,e)=>t.timestamp<e.timestamp?t:e));return Lt(n,e,r),n}{const n=new Rt(e,r);return t.push(n),n}})(t._searchMarker,n,s)},zt=(t,e,r)=>{for(let n=t.length-1;n>=0;n--){const s=t[n];if(r>0){let e=s.p;for(e.marker=!1;e&&(e.deleted||!e.countable);)e=e.left,e&&!e.deleted&&e.countable&&(s.index-=e.length);if(null===e||!0===e.marker){t.splice(n,1);continue}s.p=e,e.marker=!0}(e<s.index||r>0&&e===s.index)&&(s.index=c.max(e,s.index+r))}},Jt=(t,e,r)=>{const n=t,s=e.changedParentTypes;for(;l.setIfUndefined(s,t,(()=>[])).push(r),null!==t._item;)t=t._item.parent;Q(n._eH,r,e)};class jt{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=X(),this._dEH=X(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,e){this.doc=t,this._item=e}_copy(){throw g.methodUnimplemented()}clone(){throw g.methodUnimplemented()}_write(t){}get _first(){let t=this._start;for(;null!==t&&t.deleted;)t=t.right;return t}_callObserver(t,e){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){Z(this._eH,t)}observeDeep(t){Z(this._dEH,t)}unobserve(t){H(this._eH,t)}unobserveDeep(t){H(this._dEH,t)}toJSON(){}}const Pt=(t,e,r)=>{e<0&&(e=t._length+e),r<0&&(r=t._length+r);let n=r-e;const s=[];let i=t._start;for(;null!==i&&n>0;){if(i.countable&&!i.deleted){const t=i.content.getContent();if(t.length<=e)e-=t.length;else{for(let r=e;r<t.length&&n>0;r++)s.push(t[r]),n--;e=0}}i=i.right}return s},Kt=t=>{const e=[];let r=t._start;for(;null!==r;){if(r.countable&&!r.deleted){const t=r.content.getContent();for(let r=0;r<t.length;r++)e.push(t[r])}r=r.right}return e},Ft=(t,e)=>{let r=0,n=t._start;for(;null!==n;){if(n.countable&&!n.deleted){const s=n.content.getContent();for(let n=0;n<s.length;n++)e(s[n],r++,t)}n=n.right}},Gt=(t,e)=>{const r=[];return Ft(t,((n,s)=>{r.push(e(n,s,t))})),r},qt=t=>{let e=t._start,r=null,n=0;return{[Symbol.iterator](){return this},next:()=>{if(null===r){for(;null!==e&&e.deleted;)e=e.right;if(null===e)return{done:!0,value:void 0};r=e.content.getContent(),n=0,e=e.right}const t=r[n++];return r.length<=n&&(r=null),{done:!1,value:t}}}},Yt=(t,e)=>{const r=Bt(t,e);let n=t._start;for(null!==r&&(n=r.p,e-=r.index);null!==n;n=n.right)if(!n.deleted&&n.countable){if(e<n.length)return n.content.getContent()[e];e-=n.length}},Wt=(t,e,r,n)=>{let s=r;const i=t.doc,o=i.clientID,c=i.store,l=null===r?e._start:r.right;let a=[];const h=()=>{a.length>0&&(s=new Ze(rt(o,lt(c,o)),s,s&&s.lastId,l,l&&l.id,e,null,new ze(a)),s.integrate(t,0),a=[])};n.forEach((r=>{if(null===r)a.push(r);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:a.push(r);break;default:switch(h(),r.constructor){case Uint8Array:case ArrayBuffer:s=new Ze(rt(o,lt(c,o)),s,s&&s.lastId,l,l&&l.id,e,null,new Oe(new Uint8Array(r))),s.integrate(t,0);break;case N:s=new Ze(rt(o,lt(c,o)),s,s&&s.lastId,l,l&&l.id,e,null,new Me(r)),s.integrate(t,0);break;default:if(!(r instanceof jt))throw new Error("Unexpected content type in insert operation");s=new Ze(rt(o,lt(c,o)),s,s&&s.lastId,l,l&&l.id,e,null,new $e(r)),s.integrate(t,0)}}})),h()},$t=()=>g.create("Length exceeded!"),Xt=(t,e,r,n)=>{if(r>e._length)throw $t();if(0===r)return e._searchMarker&&zt(e._searchMarker,r,n.length),Wt(t,e,null,n);const s=r,i=Bt(e,r);let o=e._start;for(null!==i&&(o=i.p,0==(r-=i.index)&&(o=o.prev,r+=o&&o.countable&&!o.deleted?o.length:0));null!==o;o=o.right)if(!o.deleted&&o.countable){if(r<=o.length){r<o.length&&ft(t,rt(o.id.client,o.id.clock+r));break}r-=o.length}return e._searchMarker&&zt(e._searchMarker,s,n.length),Wt(t,e,o,n)},Zt=(t,e,r,n)=>{if(0===n)return;const s=r,i=n,o=Bt(e,r);let c=e._start;for(null!==o&&(c=o.p,r-=o.index);null!==c&&r>0;c=c.right)!c.deleted&&c.countable&&(r<c.length&&ft(t,rt(c.id.client,c.id.clock+r)),r-=c.length);for(;n>0&&null!==c;)c.deleted||(n<c.length&&ft(t,rt(c.id.client,c.id.clock+n)),c.delete(t),n-=c.length),c=c.right;if(n>0)throw $t();e._searchMarker&&zt(e._searchMarker,s,-i+n)},Ht=(t,e,r)=>{const n=e._map.get(r);void 0!==n&&n.delete(t)},Qt=(t,e,r,n)=>{const s=e._map.get(r)||null,i=t.doc,o=i.clientID;let c;if(null==n)c=new ze([n]);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:c=new ze([n]);break;case Uint8Array:c=new Oe(n);break;case N:c=new Me(n);break;default:if(!(n instanceof jt))throw new Error("Unexpected content type");c=new $e(n)}new Ze(rt(o,lt(i.store,o)),s,s&&s.lastId,null,null,e,r,c).integrate(t,0)},te=(t,e)=>{const r=t._map.get(e);return void 0===r||r.deleted?void 0:r.content.getContent()[r.length-1]},ee=t=>{const e={};return t._map.forEach(((t,r)=>{t.deleted||(e[r]=t.content.getContent()[t.length-1])})),e},re=(t,e)=>{const r=t._map.get(e);return void 0!==r&&!r.deleted},ne=t=>k.iteratorFilter(t.entries(),(t=>!t[1].deleted));class se extends Vt{constructor(t,e){super(t,e),this._transaction=e}}class ie extends jt{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){const e=new ie;return e.push(t),e}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new ie}clone(){const t=new ie;return t.insert(0,this.toArray().map((t=>t instanceof jt?t.clone():t))),t}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}_callObserver(t,e){super._callObserver(t,e),Jt(this,t,new se(this,t))}insert(t,e){null!==this.doc?_t(this.doc,(r=>{Xt(r,this,t,e)})):this._prelimContent.splice(t,0,...e)}push(t){null!==this.doc?_t(this.doc,(e=>{((t,e,r)=>{let n=(e._searchMarker||[]).reduce(((t,e)=>e.index>t.index?e:t),{index:0,p:e._start}).p;if(n)for(;n.right;)n=n.right;Wt(t,e,n,r)})(e,this,t)})):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,e=1){null!==this.doc?_t(this.doc,(r=>{Zt(r,this,t,e)})):this._prelimContent.splice(t,e)}get(t){return Yt(this,t)}toArray(){return Kt(this)}slice(t=0,e=this.length){return Pt(this,t,e)}toJSON(){return this.map((t=>t instanceof jt?t.toJSON():t))}map(t){return Gt(this,t)}forEach(t){Ft(this,t)}[Symbol.iterator](){return qt(this)}_write(t){t.writeTypeRef(Pe)}}class oe extends Vt{constructor(t,e,r){super(t,e),this.keysChanged=r}}class ce extends jt{constructor(t){super(),this._prelimContent=null,this._prelimContent=void 0===t?new Map:new Map(t)}_integrate(t,e){super._integrate(t,e),this._prelimContent.forEach(((t,e)=>{this.set(e,t)})),this._prelimContent=null}_copy(){return new ce}clone(){const t=new ce;return this.forEach(((e,r)=>{t.set(r,e instanceof jt?e.clone():e)})),t}_callObserver(t,e){Jt(this,t,new oe(this,t,e))}toJSON(){const t={};return this._map.forEach(((e,r)=>{if(!e.deleted){const n=e.content.getContent()[e.length-1];t[r]=n instanceof jt?n.toJSON():n}})),t}get size(){return[...ne(this._map)].length}keys(){return k.iteratorMap(ne(this._map),(t=>t[0]))}values(){return k.iteratorMap(ne(this._map),(t=>t[1].content.getContent()[t[1].length-1]))}entries(){return k.iteratorMap(ne(this._map),(t=>[t[0],t[1].content.getContent()[t[1].length-1]]))}forEach(t){this._map.forEach(((e,r)=>{e.deleted||t(e.content.getContent()[e.length-1],r,this)}))}[Symbol.iterator](){return this.entries()}delete(t){null!==this.doc?_t(this.doc,(e=>{Ht(e,this,t)})):this._prelimContent.delete(t)}set(t,e){return null!==this.doc?_t(this.doc,(r=>{Qt(r,this,t,e)})):this._prelimContent.set(t,e),e}get(t){return te(this,t)}has(t){return re(this,t)}clear(){null!==this.doc?_t(this.doc,(t=>{this.forEach((function(e,r,n){Ht(t,n,r)}))})):this._prelimContent.clear()}_write(t){t.writeTypeRef(Ke)}}const le=(t,e)=>t===e||"object"==typeof t&&"object"==typeof e&&t&&e&&_.equalFlat(t,e);class ae{constructor(t,e,r,n){this.left=t,this.right=e,this.index=r,this.currentAttributes=n}forward(){null===this.right&&g.unexpectedCase(),this.right.content.constructor===Le?this.right.deleted||fe(this.currentAttributes,this.right.content):this.right.deleted||(this.index+=this.right.length),this.left=this.right,this.right=this.right.right}}const he=(t,e,r)=>{for(;null!==e.right&&r>0;)e.right.content.constructor===Le?e.right.deleted||fe(e.currentAttributes,e.right.content):e.right.deleted||(r<e.right.length&&ft(t,rt(e.right.id.client,e.right.id.clock+r)),e.index+=e.right.length,r-=e.right.length),e.left=e.right,e.right=e.right.right;return e},ue=(t,e,r,n)=>{const s=new Map,i=n?Bt(e,r):null;if(i){const e=new ae(i.p.left,i.p,i.index,s);return he(t,e,r-i.index)}{const n=new ae(null,e._start,0,s);return he(t,n,r)}},de=(t,e,r,n)=>{for(;null!==r.right&&(!0===r.right.deleted||r.right.content.constructor===Le&&le(n.get(r.right.content.key),r.right.content.value));)r.right.deleted||n.delete(r.right.content.key),r.forward();const s=t.doc,i=s.clientID;n.forEach(((n,o)=>{const c=r.left,l=r.right,a=new Ze(rt(i,lt(s.store,i)),c,c&&c.lastId,l,l&&l.id,e,null,new Le(o,n));a.integrate(t,0),r.right=a,r.forward()}))},fe=(t,e)=>{const{key:r,value:n}=e;null===n?t.delete(r):t.set(r,n)},ge=(t,e)=>{for(;null!==t.right&&(t.right.deleted||t.right.content.constructor===Le&&le(e[t.right.content.key]||null,t.right.content.value));)t.forward()},pe=(t,e,r,n)=>{const s=t.doc,i=s.clientID,o=new Map;for(const c in n){const l=n[c],a=r.currentAttributes.get(c)||null;if(!le(a,l)){o.set(c,a);const{left:n,right:h}=r;r.right=new Ze(rt(i,lt(s.store,i)),n,n&&n.lastId,h,h&&h.id,e,null,new Le(c,l)),r.right.integrate(t,0),r.forward()}}return o},we=(t,e,r,n,s)=>{r.currentAttributes.forEach(((t,e)=>{void 0===s[e]&&(s[e]=null)}));const i=t.doc,o=i.clientID;ge(r,s);const c=pe(t,e,r,s),l=n.constructor===String?new Je(n):n instanceof jt?new $e(n):new Re(n);let{left:a,right:h,index:u}=r;e._searchMarker&&zt(e._searchMarker,r.index,l.getLength()),h=new Ze(rt(o,lt(i.store,o)),a,a&&a.lastId,h,h&&h.id,e,null,l),h.integrate(t,0),r.right=h,r.index=u,r.forward(),de(t,e,r,c)},me=(t,e,r,n,s)=>{const i=t.doc,o=i.clientID;ge(r,s);const c=pe(t,e,r,s);t:for(;null!==r.right&&(n>0||c.size>0&&(r.right.deleted||r.right.content.constructor===Le));){if(!r.right.deleted)switch(r.right.content.constructor){case Le:{const{key:e,value:i}=r.right.content,o=s[e];if(void 0!==o){if(le(o,i))c.delete(e);else{if(0===n)break t;c.set(e,i)}r.right.delete(t)}else r.currentAttributes.set(e,i);break}default:n<r.right.length&&ft(t,rt(r.right.id.client,r.right.id.clock+n)),n-=r.right.length}r.forward()}if(n>0){let s="";for(;n>0;n--)s+="\n";r.right=new Ze(rt(o,lt(i.store,o)),r.left,r.left&&r.left.lastId,r.right,r.right&&r.right.id,e,null,new Je(s)),r.right.integrate(t,0),r.forward()}de(t,e,r,c)},ye=(t,e,r,n,s)=>{let i=e;const o=l.create();for(;i&&(!i.countable||i.deleted);){if(!i.deleted&&i.content.constructor===Le){const t=i.content;o.set(t.key,t)}i=i.right}let c=0,a=!1;for(;e!==i;){if(r===e&&(a=!0),!e.deleted){const r=e.content;switch(r.constructor){case Le:{const{key:i,value:l}=r,h=n.get(i)||null;o.get(i)===r&&h!==l||(e.delete(t),c++,a||(s.get(i)||null)!==l||h===l||(null===h?s.delete(i):s.set(i,h))),a||e.deleted||fe(s,r);break}}}e=e.right}return c},be=t=>{let e=0;return _t(t.doc,(r=>{let n=t._start,s=t._start,i=l.create();const o=l.copy(i);for(;s;)!1===s.deleted&&(s.content.constructor===Le?fe(o,s.content):(e+=ye(r,n,s,i,o),i=l.copy(o),n=s)),s=s.right})),e},ke=t=>{const e=new Set,r=t.doc;for(const[n,s]of t.afterState.entries()){const i=t.beforeState.get(n)||0;s!==i&&pt(t,r.store.clients.get(n),i,s,(t=>{t.deleted||t.content.constructor!==Le||t.constructor===Te||e.add(t.parent)}))}_t(r,(r=>{E(t,t.deleteSet,(t=>{if(t instanceof Te||!t.parent._hasFormatting||e.has(t.parent))return;const n=t.parent;t.content.constructor===Le?e.add(n):((t,e)=>{for(;e&&e.right&&(e.right.deleted||!e.right.countable);)e=e.right;const r=new Set;for(;e&&(e.deleted||!e.countable);){if(!e.deleted&&e.content.constructor===Le){const n=e.content.key;r.has(n)?e.delete(t):r.add(n)}e=e.left}})(r,t)}));for(const t of e)be(t)}))},_e=(t,e,r)=>{const n=r,s=l.copy(e.currentAttributes),i=e.right;for(;r>0&&null!==e.right;){if(!1===e.right.deleted)switch(e.right.content.constructor){case $e:case Re:case Je:r<e.right.length&&ft(t,rt(e.right.id.client,e.right.id.clock+r)),r-=e.right.length,e.right.delete(t)}e.forward()}i&&ye(t,i,e.right,s,e.currentAttributes);const o=(e.left||e.right).parent;return o._searchMarker&&zt(o._searchMarker,e.index,-n+r),e};class xe extends Vt{constructor(t,e,r){super(t,e),this.childListChanged=!1,this.keysChanged=new Set,r.forEach((t=>{null===t?this.childListChanged=!0:this.keysChanged.add(t)}))}get changes(){if(null===this._changes){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(null===this._delta){const t=this.target.doc,e=[];_t(t,(t=>{const r=new Map,n=new Map;let s=this.target._start,i=null;const o={};let c="",l=0,a=0;const h=()=>{if(null!==i){let t=null;switch(i){case"delete":a>0&&(t={delete:a}),a=0;break;case"insert":("object"==typeof c||c.length>0)&&(t={insert:c},r.size>0&&(t.attributes={},r.forEach(((e,r)=>{null!==e&&(t.attributes[r]=e)})))),c="";break;case"retain":l>0&&(t={retain:l},_.isEmpty(o)||(t.attributes=_.assign({},o))),l=0}t&&e.push(t),i=null}};for(;null!==s;){switch(s.content.constructor){case $e:case Re:this.adds(s)?this.deletes(s)||(h(),i="insert",c=s.content.getContent()[0],h()):this.deletes(s)?("delete"!==i&&(h(),i="delete"),a+=1):s.deleted||("retain"!==i&&(h(),i="retain"),l+=1);break;case Je:this.adds(s)?this.deletes(s)||("insert"!==i&&(h(),i="insert"),c+=s.content.str):this.deletes(s)?("delete"!==i&&(h(),i="delete"),a+=s.length):s.deleted||("retain"!==i&&(h(),i="retain"),l+=s.length);break;case Le:{const{key:e,value:c}=s.content;if(this.adds(s)){if(!this.deletes(s)){const l=r.get(e)||null;le(l,c)?null!==c&&s.delete(t):("retain"===i&&h(),le(c,n.get(e)||null)?delete o[e]:o[e]=c)}}else if(this.deletes(s)){n.set(e,c);const t=r.get(e)||null;le(t,c)||("retain"===i&&h(),o[e]=t)}else if(!s.deleted){n.set(e,c);const r=o[e];void 0!==r&&(le(r,c)?null!==r&&s.delete(t):("retain"===i&&h(),null===c?delete o[e]:o[e]=c))}s.deleted||("insert"===i&&h(),fe(r,s.content));break}}s=s.right}for(h();e.length>0;){const t=e[e.length-1];if(void 0===t.retain||void 0!==t.attributes)break;e.pop()}})),this._delta=e}return this._delta}}class Se extends jt{constructor(t){super(),this._pending=void 0!==t?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(t,e){super._integrate(t,e);try{this._pending.forEach((t=>t()))}catch(t){console.error(t)}this._pending=null}_copy(){return new Se}clone(){const t=new Se;return t.applyDelta(this.toDelta()),t}_callObserver(t,e){super._callObserver(t,e);const r=new xe(this,t,e);Jt(this,t,r),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){let t="",e=this._start;for(;null!==e;)!e.deleted&&e.countable&&e.content.constructor===Je&&(t+=e.content.str),e=e.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:e=!0}={}){null!==this.doc?_t(this.doc,(r=>{const n=new ae(null,this._start,0,new Map);for(let s=0;s<t.length;s++){const i=t[s];if(void 0!==i.insert){const o=e||"string"!=typeof i.insert||s!==t.length-1||null!==n.right||"\n"!==i.insert.slice(-1)?i.insert:i.insert.slice(0,-1);("string"!=typeof o||o.length>0)&&we(r,this,n,o,i.attributes||{})}else void 0!==i.retain?me(r,this,n,i.retain,i.attributes||{}):void 0!==i.delete&&_e(r,n,i.delete)}})):this._pending.push((()=>this.applyDelta(t)))}toDelta(t,e,r){const n=[],s=new Map,i=this.doc;let o="",c=this._start;function l(){if(o.length>0){const t={};let e=!1;s.forEach(((r,n)=>{e=!0,t[n]=r}));const r={insert:o};e&&(r.attributes=t),n.push(r),o=""}}const a=()=>{for(;null!==c;){if(st(c,t)||void 0!==e&&st(c,e))switch(c.content.constructor){case Je:{const n=s.get("ychange");void 0===t||st(c,t)?void 0===e||st(c,e)?void 0!==n&&(l(),s.delete("ychange")):void 0!==n&&n.user===c.id.client&&"added"===n.type||(l(),s.set("ychange",r?r("added",c.id):{type:"added"})):void 0!==n&&n.user===c.id.client&&"removed"===n.type||(l(),s.set("ychange",r?r("removed",c.id):{type:"removed"})),o+=c.content.str;break}case $e:case Re:{l();const t={insert:c.content.getContent()[0]};if(s.size>0){const e={};t.attributes=e,s.forEach(((t,r)=>{e[r]=t}))}n.push(t);break}case Le:st(c,t)&&(l(),fe(s,c.content))}c=c.right}l()};return t||e?_t(i,(r=>{t&&it(r,t),e&&it(r,e),a()}),"cleanup"):a(),n}insert(t,e,r){if(e.length<=0)return;const n=this.doc;null!==n?_t(n,(n=>{const s=ue(n,this,t,!r);r||(r={},s.currentAttributes.forEach(((t,e)=>{r[e]=t}))),we(n,this,s,e,r)})):this._pending.push((()=>this.insert(t,e,r)))}insertEmbed(t,e,r){const n=this.doc;null!==n?_t(n,(n=>{const s=ue(n,this,t,!r);we(n,this,s,e,r||{})})):this._pending.push((()=>this.insertEmbed(t,e,r||{})))}delete(t,e){if(0===e)return;const r=this.doc;null!==r?_t(r,(r=>{_e(r,ue(r,this,t,!0),e)})):this._pending.push((()=>this.delete(t,e)))}format(t,e,r){if(0===e)return;const n=this.doc;null!==n?_t(n,(n=>{const s=ue(n,this,t,!1);null!==s.right&&me(n,this,s,e,r)})):this._pending.push((()=>this.format(t,e,r)))}removeAttribute(t){null!==this.doc?_t(this.doc,(e=>{Ht(e,this,t)})):this._pending.push((()=>this.removeAttribute(t)))}setAttribute(t,e){null!==this.doc?_t(this.doc,(r=>{Qt(r,this,t,e)})):this._pending.push((()=>this.setAttribute(t,e)))}getAttribute(t){return te(this,t)}getAttributes(){return ee(this)}_write(t){t.writeTypeRef(Fe)}}class Ee{constructor(t,e=(()=>!0)){this._filter=e,this._root=t,this._currentNode=t._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let t=this._currentNode,e=t&&t.content&&t.content.type;if(null!==t&&(!this._firstCall||t.deleted||!this._filter(e)))do{if(e=t.content.type,t.deleted||e.constructor!==De&&e.constructor!==Ce||null===e._start)for(;null!==t;){if(null!==t.right){t=t.right;break}t=t.parent===this._root?null:t.parent._item}else t=e._start}while(null!==t&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,null===t?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class Ce extends jt{constructor(){super(),this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Ce}clone(){const t=new Ce;return t.insert(0,this.toArray().map((t=>t instanceof jt?t.clone():t))),t}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(t){return new Ee(this,t)}querySelector(t){t=t.toUpperCase();const e=new Ee(this,(e=>e.nodeName&&e.nodeName.toUpperCase()===t)).next();return e.done?null:e.value}querySelectorAll(t){return t=t.toUpperCase(),o.from(new Ee(this,(e=>e.nodeName&&e.nodeName.toUpperCase()===t)))}_callObserver(t,e){Jt(this,t,new Ue(this,e,t))}toString(){return Gt(this,(t=>t.toString())).join("")}toJSON(){return this.toString()}toDOM(t=document,e={},r){const n=t.createDocumentFragment();return void 0!==r&&r._createAssociation(n,this),Ft(this,(s=>{n.insertBefore(s.toDOM(t,e,r),null)})),n}insert(t,e){null!==this.doc?_t(this.doc,(r=>{Xt(r,this,t,e)})):this._prelimContent.splice(t,0,...e)}insertAfter(t,e){if(null!==this.doc)_t(this.doc,(r=>{const n=t&&t instanceof jt?t._item:t;Wt(r,this,n,e)}));else{const r=this._prelimContent,n=null===t?0:r.findIndex((e=>e===t))+1;if(0===n&&null!==t)throw g.create("Reference item not found");r.splice(n,0,...e)}}delete(t,e=1){null!==this.doc?_t(this.doc,(r=>{Zt(r,this,t,e)})):this._prelimContent.splice(t,e)}toArray(){return Kt(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return Yt(this,t)}slice(t=0,e=this.length){return Pt(this,t,e)}forEach(t){Ft(this,t)}_write(t){t.writeTypeRef(qe)}}class De extends Ce{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,e){super._integrate(t,e),this._prelimAttrs.forEach(((t,e)=>{this.setAttribute(e,t)})),this._prelimAttrs=null}_copy(){return new De(this.nodeName)}clone(){const t=new De(this.nodeName),e=this.getAttributes();return _.forEach(e,((e,r)=>{"string"==typeof e&&t.setAttribute(r,e)})),t.insert(0,this.toArray().map((t=>t instanceof jt?t.clone():t))),t}toString(){const t=this.getAttributes(),e=[],r=[];for(const e in t)r.push(e);r.sort();const n=r.length;for(let s=0;s<n;s++){const n=r[s];e.push(n+'="'+t[n]+'"')}const s=this.nodeName.toLocaleLowerCase();return`<${s}${e.length>0?" "+e.join(" "):""}>${super.toString()}</${s}>`}removeAttribute(t){null!==this.doc?_t(this.doc,(e=>{Ht(e,this,t)})):this._prelimAttrs.delete(t)}setAttribute(t,e){null!==this.doc?_t(this.doc,(r=>{Qt(r,this,t,e)})):this._prelimAttrs.set(t,e)}getAttribute(t){return te(this,t)}hasAttribute(t){return re(this,t)}getAttributes(t){return t?((t,e)=>{const r={};return this._map.forEach(((t,n)=>{let s=t;for(;null!==s&&(!e.sv.has(s.id.client)||s.id.clock>=(e.sv.get(s.id.client)||0));)s=s.left;null!==s&&st(s,e)&&(r[n]=s.content.getContent()[s.length-1])})),r})(0,t):ee(this)}toDOM(t=document,e={},r){const n=t.createElement(this.nodeName),s=this.getAttributes();for(const t in s){const e=s[t];"string"==typeof e&&n.setAttribute(t,e)}return Ft(this,(s=>{n.appendChild(s.toDOM(t,e,r))})),void 0!==r&&r._createAssociation(n,this),n}_write(t){t.writeTypeRef(Ge),t.writeKey(this.nodeName)}}class Ue extends Vt{constructor(t,e,r){super(t,r),this.childListChanged=!1,this.attributesChanged=new Set,e.forEach((t=>{null===t?this.childListChanged=!0:this.attributesChanged.add(t)}))}}class ve extends ce{constructor(t){super(),this.hookName=t}_copy(){return new ve(this.hookName)}clone(){const t=new ve(this.hookName);return this.forEach(((e,r)=>{t.set(r,e)})),t}toDOM(t=document,e={},r){const n=e[this.hookName];let s;return s=void 0!==n?n.createDom(this):document.createElement(this.hookName),s.setAttribute("data-yjs-hook",this.hookName),void 0!==r&&r._createAssociation(s,this),s}_write(t){t.writeTypeRef(Ye),t.writeKey(this.hookName)}}class Ie extends Se{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new Ie}clone(){const t=new Ie;return t.applyDelta(this.toDelta()),t}toDOM(t=document,e,r){const n=t.createTextNode(this.toString());return void 0!==r&&r._createAssociation(n,this),n}toString(){return this.toDelta().map((t=>{const e=[];for(const r in t.attributes){const n=[];for(const e in t.attributes[r])n.push({key:e,value:t.attributes[r][e]});n.sort(((t,e)=>t.key<e.key?-1:1)),e.push({nodeName:r,attrs:n})}e.sort(((t,e)=>t.nodeName<e.nodeName?-1:1));let r="";for(let t=0;t<e.length;t++){const n=e[t];r+=`<${n.nodeName}`;for(let t=0;t<n.attrs.length;t++){const e=n.attrs[t];r+=` ${e.key}="${e.value}"`}r+=">"}r+=t.insert;for(let t=e.length-1;t>=0;t--)r+=`</${e[t].nodeName}>`;return r})).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(We)}}class Ae{constructor(t,e){this.id=t,this.length=e}get deleted(){throw g.methodUnimplemented()}mergeWith(t){return!1}write(t,e,r){throw g.methodUnimplemented()}integrate(t,e){throw g.methodUnimplemented()}}class Te extends Ae{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor===t.constructor&&(this.length+=t.length,!0)}integrate(t,e){e>0&&(this.id.clock+=e,this.length-=e),at(t.doc.store,this)}write(t,e){t.writeInfo(0),t.writeLen(this.length-e)}getMissing(t,e){return null}}class Oe{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Oe(this.content)}splice(t){throw g.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeBuf(this.content)}getRef(){return 3}}class Ve{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new Ve(this.len)}splice(t){const e=new Ve(this.len-t);return this.len=t,e}mergeWith(t){return this.len+=t.len,!0}integrate(t,e){v(t.deleteSet,e.id.client,e.id.clock,this.len),e.markDeleted()}delete(t){}gc(t){}write(t,e){t.writeLen(this.len-e)}getRef(){return 1}}const Ne=(t,e)=>new N({guid:t,...e,shouldLoad:e.shouldLoad||e.autoLoad||!1});class Me{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const e={};this.opts=e,t.gc||(e.gc=!1),t.autoLoad&&(e.autoLoad=!0),null!==t.meta&&(e.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new Me(Ne(this.doc.guid,this.opts))}splice(t){throw g.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){this.doc._item=e,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,e){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}class Re{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new Re(this.embed)}splice(t){throw g.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeJSON(this.embed)}getRef(){return 5}}class Le{constructor(t,e){this.key=t,this.value=e}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new Le(this.key,this.value)}splice(t){throw g.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){const r=e.parent;r._searchMarker=null,r._hasFormatting=!0}delete(t){}gc(t){}write(t,e){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}class Be{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Be(this.arr)}splice(t){const e=new Be(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){const r=this.arr.length;t.writeLen(r-e);for(let n=e;n<r;n++){const e=this.arr[n];t.writeString(void 0===e?"undefined":JSON.stringify(e))}}getRef(){return 2}}class ze{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new ze(this.arr)}splice(t){const e=new ze(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){const r=this.arr.length;t.writeLen(r-e);for(let n=e;n<r;n++){const e=this.arr[n];t.writeAny(e)}}getRef(){return 8}}class Je{constructor(t){this.str=t}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new Je(this.str)}splice(t){const e=new Je(this.str.slice(t));this.str=this.str.slice(0,t);const r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+"�",e.str="�"+e.str.slice(1)),e}mergeWith(t){return this.str+=t.str,!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeString(0===e?this.str:this.str.slice(e))}getRef(){return 4}}const je=[t=>new ie,t=>new ce,t=>new Se,t=>new De(t.readKey()),t=>new Ce,t=>new ve(t.readKey()),t=>new Ie],Pe=0,Ke=1,Fe=2,Ge=3,qe=4,Ye=5,We=6;class $e{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new $e(this.type._copy())}splice(t){throw g.methodUnimplemented()}mergeWith(t){return!1}integrate(t,e){this.type._integrate(t.doc,e)}delete(t){let e=this.type._start;for(;null!==e;)e.deleted?e.id.clock<(t.beforeState.get(e.id.client)||0)&&t._mergeStructs.push(e):e.delete(t),e=e.right;this.type._map.forEach((e=>{e.deleted?e.id.clock<(t.beforeState.get(e.id.client)||0)&&t._mergeStructs.push(e):e.delete(t)})),t.changed.delete(this.type)}gc(t){let e=this.type._start;for(;null!==e;)e.gc(t,!0),e=e.right;this.type._start=null,this.type._map.forEach((e=>{for(;null!==e;)e.gc(t,!0),e=e.left})),this.type._map=new Map}write(t,e){this.type._write(t)}getRef(){return 7}}const Xe=(t,e,r)=>{const{client:n,clock:s}=e.id,i=new Ze(rt(n,s+r),e,rt(n,s+r-1),e.right,e.rightOrigin,e.parent,e.parentSub,e.content.splice(r));return e.deleted&&i.markDeleted(),e.keep&&(i.keep=!0),null!==e.redone&&(i.redone=rt(e.redone.client,e.redone.clock+r)),e.right=i,null!==i.right&&(i.right.left=i),t._mergeStructs.push(i),null!==i.parentSub&&null===i.right&&i.parent._map.set(i.parentSub,i),e.length=r,i};class Ze extends Ae{constructor(t,e,r,n,s,i,o,c){super(t,c.getLength()),this.origin=r,this.left=e,this.right=n,this.rightOrigin=s,this.parent=i,this.parentSub=o,this.redone=null,this.content=c,this.info=this.content.isCountable()?p.BIT2:0}set marker(t){(this.info&p.BIT4)>0!==t&&(this.info^=p.BIT4)}get marker(){return(this.info&p.BIT4)>0}get keep(){return(this.info&p.BIT1)>0}set keep(t){this.keep!==t&&(this.info^=p.BIT1)}get countable(){return(this.info&p.BIT2)>0}get deleted(){return(this.info&p.BIT3)>0}set deleted(t){this.deleted!==t&&(this.info^=p.BIT3)}markDeleted(){this.info|=p.BIT3}getMissing(t,e){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=lt(e,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=lt(e,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===tt&&this.id.client!==this.parent.client&&this.parent.clock>=lt(e,this.parent.client))return this.parent.client;if(this.origin&&(this.left=gt(t,e,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=ft(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Te||this.right&&this.right.constructor===Te)this.parent=null;else if(this.parent){if(this.parent.constructor===tt){const t=ut(e,this.parent);t.constructor===Te?this.parent=null:this.parent=t.content.type}}else this.left&&this.left.constructor===Ze&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===Ze&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(t,e){if(e>0&&(this.id.clock+=e,this.left=gt(t,t.doc.store,rt(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(e),this.length-=e),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let e,r=this.left;if(null!==r)e=r.right;else if(null!==this.parentSub)for(e=this.parent._map.get(this.parentSub)||null;null!==e&&null!==e.left;)e=e.left;else e=this.parent._start;const n=new Set,s=new Set;for(;null!==e&&e!==this.right;){if(s.add(e),n.add(e),et(this.origin,e.origin)){if(e.id.client<this.id.client)r=e,n.clear();else if(et(this.rightOrigin,e.rightOrigin))break}else{if(null===e.origin||!s.has(ut(t.doc.store,e.origin)))break;n.has(ut(t.doc.store,e.origin))||(r=e,n.clear())}e=e.right}this.left=r}if(null!==this.left){const t=this.left.right;this.right=t,this.left.right=this}else{let t;if(null!==this.parentSub)for(t=this.parent._map.get(this.parentSub)||null;null!==t&&null!==t.left;)t=t.left;else t=this.parent._start,this.parent._start=this;this.right=t}null!==this.right?this.right.left=this:null!==this.parentSub&&(this.parent._map.set(this.parentSub,this),null!==this.left&&this.left.delete(t)),null===this.parentSub&&this.countable&&!this.deleted&&(this.parent._length+=this.length),at(t.doc.store,this),this.content.integrate(t,this),yt(t,this.parent,this.parentSub),(null!==this.parent._item&&this.parent._item.deleted||null!==this.parentSub&&null!==this.right)&&this.delete(t)}else new Te(this.id,this.length).integrate(t,0)}get next(){let t=this.right;for(;null!==t&&t.deleted;)t=t.right;return t}get prev(){let t=this.left;for(;null!==t&&t.deleted;)t=t.left;return t}get lastId(){return 1===this.length?this.id:rt(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&et(t.origin,this.lastId)&&this.right===t&&et(this.rightOrigin,t.rightOrigin)&&this.id.client===t.id.client&&this.id.clock+this.length===t.id.clock&&this.deleted===t.deleted&&null===this.redone&&null===t.redone&&this.content.constructor===t.content.constructor&&this.content.mergeWith(t.content)){const e=this.parent._searchMarker;return e&&e.forEach((e=>{e.p===t&&(e.p=this,!this.deleted&&this.countable&&(e.index-=this.length))})),t.keep&&(this.keep=!0),this.right=t.right,null!==this.right&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){const e=this.parent;this.countable&&null===this.parentSub&&(e._length-=this.length),this.markDeleted(),v(t.deleteSet,this.id.client,this.id.clock,this.length),yt(t,e,this.parentSub),this.content.delete(t)}}gc(t,e){if(!this.deleted)throw g.unexpectedCase();this.content.gc(t),e?((t,e,r)=>{const n=t.clients.get(e.id.client);n[ht(n,e.id.clock)]=r})(t,this,new Te(this.id,this.length)):this.content=new Ve(this.length)}write(t,e){const r=e>0?rt(this.id.client,this.id.clock+e-1):this.origin,n=this.rightOrigin,s=this.parentSub,i=this.content.getRef()&p.BITS5|(null===r?0:p.BIT8)|(null===n?0:p.BIT7)|(null===s?0:p.BIT6);if(t.writeInfo(i),null!==r&&t.writeLeftID(r),null!==n&&t.writeRightID(n),null===r&&null===n){const e=this.parent;if(void 0!==e._item){const r=e._item;if(null===r){const r=(t=>{for(const[e,r]of t.doc.share.entries())if(r===t)return e;throw g.unexpectedCase()})(e);t.writeParentInfo(!0),t.writeString(r)}else t.writeParentInfo(!1),t.writeLeftID(r.id)}else e.constructor===String?(t.writeParentInfo(!0),t.writeString(e)):e.constructor===tt?(t.writeParentInfo(!1),t.writeLeftID(e)):g.unexpectedCase();null!==s&&t.writeString(s)}this.content.write(t,e)}}const He=(t,e)=>Qe[e&p.BITS5](t),Qe=[()=>{g.unexpectedCase()},t=>new Ve(t.readLen()),t=>{const e=t.readLen(),r=[];for(let n=0;n<e;n++){const e=t.readString();"undefined"===e?r.push(void 0):r.push(JSON.parse(e))}return new Be(r)},t=>new Oe(t.readBuf()),t=>new Je(t.readString()),t=>new Re(t.readJSON()),t=>new Le(t.readKey(),t.readJSON()),t=>new $e(je[t.readTypeRef()](t)),t=>{const e=t.readLen(),r=[];for(let n=0;n<e;n++)r.push(t.readAny());return new ze(r)},t=>new Me(Ne(t.readString(),t.readAny())),()=>{g.unexpectedCase()}];class tr extends Ae{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor===t.constructor&&(this.length+=t.length,!0)}integrate(t,e){g.unexpectedCase()}write(t,e){t.writeInfo(10),a.writeVarUint(t.restEncoder,this.length-e)}getMissing(t,e){return null}}const er="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{},rr="__ $YJS$ __";!0===er[rr]&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),er[rr]=!0})),r.register("fACbm",(function(e,n){t(e.exports,"Observable",(function(){return c}));var s=r("cuboK"),i=r("aYKIU"),o=r("kDMzp");class c{constructor(){this._observers=s.create()}on(t,e){s.setIfUndefined(this._observers,t,i.create).add(e)}once(t,e){const r=(...n)=>{this.off(t,r),e(...n)};this.on(t,r)}off(t,e){const r=this._observers.get(t);void 0!==r&&(r.delete(e),0===r.size&&this._observers.delete(t))}emit(t,e){return o.from((this._observers.get(t)||s.create()).values()).forEach((t=>t(...e)))}destroy(){this._observers=s.create()}}})),r.register("cuboK",(function(e,r){t(e.exports,"create",(function(){return n})),t(e.exports,"copy",(function(){return s})),t(e.exports,"setIfUndefined",(function(){return i})),t(e.exports,"map",(function(){return o})),t(e.exports,"any",(function(){return c}));const n=()=>new Map,s=t=>{const e=n();return t.forEach(((t,r)=>{e.set(r,t)})),e},i=(t,e,r)=>{let n=t.get(e);return void 0===n&&t.set(e,n=r()),n},o=(t,e)=>{const r=[];for(const[n,s]of t)r.push(e(s,n));return r},c=(t,e)=>{for(const[r,n]of t)if(e(n,r))return!0;return!1}})),r.register("aYKIU",(function(e,r){t(e.exports,"create",(function(){return n})),t(e.exports,"from",(function(){return s}));const n=()=>new Set,s=t=>new Set(t)})),r.register("kDMzp",(function(e,n){t(e.exports,"last",(function(){return s})),t(e.exports,"appendTo",(function(){return i})),t(e.exports,"from",(function(){return o})),t(e.exports,"some",(function(){return c})),t(e.exports,"equalFlat",(function(){return l})),t(e.exports,"unfold",(function(){return a})),t(e.exports,"isArray",(function(){return h})),t(e.exports,"map",(function(){return u})),r("aYKIU");const s=t=>t[t.length-1],i=(t,e)=>{for(let r=0;r<e.length;r++)t.push(e[r])},o=Array.from,c=(t,e)=>{for(let r=0;r<t.length;r++)if(e(t[r],r,t))return!0;return!1},l=(t,e)=>t.length===e.length&&((t,e)=>{for(let r=0;r<t.length;r++)if(!e(t[r],r))return!1;return!0})(t,((t,r)=>t===e[r])),a=(t,e)=>{const r=new Array(t);for(let n=0;n<t;n++)r[n]=e(n,r);return r},h=Array.isArray,u=(t,e)=>{const r=Array(t.length);for(let n=0;n<t.length;n++)r[n]=e(t[n],n,t);return r}})),r.register("iUL32",(function(e,r){t(e.exports,"floor",(function(){return n})),t(e.exports,"ceil",(function(){return s})),t(e.exports,"abs",(function(){return i})),t(e.exports,"round",(function(){return o})),t(e.exports,"log10",(function(){return c})),t(e.exports,"min",(function(){return l})),t(e.exports,"max",(function(){return a})),t(e.exports,"exp10",(function(){return h})),t(e.exports,"isNegativeZero",(function(){return u}));const n=Math.floor,s=Math.ceil,i=Math.abs,o=(Math.imul,Math.round),c=Math.log10,l=(Math.log2,Math.log,Math.sqrt,(t,e)=>t<e?t:e),a=(t,e)=>t>e?t:e,h=(Number.isNaN,Math.pow,t=>Math.pow(10,t)),u=(Math.sign,t=>0!==t?t<0:1/t<0)})),r.register("j3EDv",(function(e,n){t(e.exports,"createEncoder",(function(){return h})),t(e.exports,"encode",(function(){return u})),t(e.exports,"toUint8Array",(function(){return d})),t(e.exports,"write",(function(){return f})),t(e.exports,"writeUint8",(function(){return g})),t(e.exports,"writeVarUint",(function(){return p})),t(e.exports,"writeVarInt",(function(){return w})),t(e.exports,"writeVarUint8Array",(function(){return x})),t(e.exports,"writeVarString",(function(){return b})),t(e.exports,"writeBinaryEncoder",(function(){return k})),t(e.exports,"writeUint8Array",(function(){return _})),t(e.exports,"writeAny",(function(){return C})),t(e.exports,"RleEncoder",(function(){return D})),t(e.exports,"UintOptRleEncoder",(function(){return v})),t(e.exports,"IntDiffOptRleEncoder",(function(){return A})),t(e.exports,"StringEncoder",(function(){return T}));var s=r("iUL32"),i=r("5ug58"),o=r("diuv2"),c=r("fJq6z"),l=r("kDMzp");class a{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const h=()=>new a,u=t=>{const e=h();return t(e),d(e)},d=t=>{const e=new Uint8Array((t=>{let e=t.cpos;for(let r=0;r<t.bufs.length;r++)e+=t.bufs[r].length;return e})(t));let r=0;for(let n=0;n<t.bufs.length;n++){const s=t.bufs[n];e.set(s,r),r+=s.length}return e.set(new Uint8Array(t.cbuf.buffer,0,t.cpos),r),e},f=(t,e)=>{const r=t.cbuf.length;t.cpos===r&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(2*r),t.cpos=0),t.cbuf[t.cpos++]=e},g=f,p=(t,e)=>{for(;e>o.BITS7;)f(t,o.BIT8|o.BITS7&e),e=s.floor(e/128);f(t,o.BITS7&e)},w=(t,e)=>{const r=s.isNegativeZero(e);for(r&&(e=-e),f(t,(e>o.BITS6?o.BIT8:0)|(r?o.BIT7:0)|o.BITS6&e),e=s.floor(e/64);e>0;)f(t,(e>o.BITS7?o.BIT8:0)|o.BITS7&e),e=s.floor(e/128)},m=new Uint8Array(3e4),y=m.length/3,b=c.utf8TextEncoder&&c.utf8TextEncoder.encodeInto?(t,e)=>{if(e.length<y){const r=c.utf8TextEncoder.encodeInto(e,m).written||0;p(t,r);for(let e=0;e<r;e++)f(t,m[e])}else x(t,c.encodeUtf8(e))}:(t,e)=>{const r=unescape(encodeURIComponent(e)),n=r.length;p(t,n);for(let e=0;e<n;e++)f(t,r.codePointAt(e))},k=(t,e)=>_(t,d(e)),_=(t,e)=>{const r=t.cbuf.length,n=t.cpos,i=s.min(r-n,e.length),o=e.length-i;t.cbuf.set(e.subarray(0,i),n),t.cpos+=i,o>0&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(s.max(2*r,o)),t.cbuf.set(e.subarray(i)),t.cpos=o)},x=(t,e)=>{p(t,e.byteLength),_(t,e)},S=(t,e)=>{((t,e)=>{const r=t.cbuf.length;r-t.cpos<e&&(t.bufs.push(new Uint8Array(t.cbuf.buffer,0,t.cpos)),t.cbuf=new Uint8Array(2*s.max(r,e)),t.cpos=0)})(t,e);const r=new DataView(t.cbuf.buffer,t.cpos,e);return t.cpos+=e,r},E=new DataView(new ArrayBuffer(4)),C=(t,e)=>{switch(typeof e){case"string":f(t,119),b(t,e);break;case"number":i.isInteger(e)&&s.abs(e)<=o.BITS31?(f(t,125),w(t,e)):(r=e,E.setFloat32(0,r),E.getFloat32(0)===r?(f(t,124),((t,e)=>{S(t,4).setFloat32(0,e,!1)})(t,e)):(f(t,123),((t,e)=>{S(t,8).setFloat64(0,e,!1)})(t,e)));break;case"bigint":f(t,122),((t,e)=>{S(t,8).setBigInt64(0,e,!1)})(t,e);break;case"object":if(null===e)f(t,126);else if(l.isArray(e)){f(t,117),p(t,e.length);for(let r=0;r<e.length;r++)C(t,e[r])}else if(e instanceof Uint8Array)f(t,116),x(t,e);else{f(t,118);const r=Object.keys(e);p(t,r.length);for(let n=0;n<r.length;n++){const s=r[n];b(t,s),C(t,e[s])}}break;case"boolean":f(t,e?120:121);break;default:f(t,127)}var r};class D extends a{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&p(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}const U=t=>{t.count>0&&(w(t.encoder,1===t.count?t.s:-t.s),t.count>1&&p(t.encoder,t.count-2))};class v{constructor(){this.encoder=new a,this.s=0,this.count=0}write(t){this.s===t?this.count++:(U(this),this.count=1,this.s=t)}toUint8Array(){return U(this),d(this.encoder)}}const I=t=>{if(t.count>0){const e=2*t.diff+(1===t.count?0:1);w(t.encoder,e),t.count>1&&p(t.encoder,t.count-2)}};class A{constructor(){this.encoder=new a,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(I(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return I(this),d(this.encoder)}}class T{constructor(){this.sarr=[],this.s="",this.lensE=new v}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){const t=new a;return this.sarr.push(this.s),this.s="",b(t,this.sarr.join("")),_(t,this.lensE.toUint8Array()),d(t)}}})),r.register("5ug58",(function(e,n){t(e.exports,"MAX_SAFE_INTEGER",(function(){return o})),t(e.exports,"isInteger",(function(){return c}));var s=r("iUL32"),i=r("diuv2");const o=Number.MAX_SAFE_INTEGER,c=(Number.MIN_SAFE_INTEGER,i.BITS31,i.BITS32,Number.isInteger||(t=>"number"==typeof t&&isFinite(t)&&s.floor(t)===t));Number.isNaN,Number.parseInt})),r.register("diuv2",(function(e,r){t(e.exports,"BIT1",(function(){return n})),t(e.exports,"BIT2",(function(){return s})),t(e.exports,"BIT3",(function(){return i})),t(e.exports,"BIT4",(function(){return o})),t(e.exports,"BIT6",(function(){return c})),t(e.exports,"BIT7",(function(){return l})),t(e.exports,"BIT8",(function(){return a})),t(e.exports,"BITS5",(function(){return h})),t(e.exports,"BITS6",(function(){return u})),t(e.exports,"BITS7",(function(){return d})),t(e.exports,"BITS8",(function(){return f})),t(e.exports,"BITS21",(function(){return g})),t(e.exports,"BITS31",(function(){return p})),t(e.exports,"BITS32",(function(){return w}));const n=1,s=2,i=4,o=8,c=32,l=64,a=128,h=31,u=63,d=127,f=255,g=2097151,p=2147483647,w=4294967295})),r.register("fJq6z",(function(e,n){t(e.exports,"fromCharCode",(function(){return i})),t(e.exports,"fromCamelCase",(function(){return l})),t(e.exports,"utf8TextEncoder",(function(){return a})),t(e.exports,"encodeUtf8",(function(){return h})),t(e.exports,"utf8TextDecoder",(function(){return u})),t(e.exports,"decodeUtf8",(function(){return d})),t(e.exports,"repeat",(function(){return f}));var s=r("kDMzp");const i=String.fromCharCode,o=(String.fromCodePoint,i(65535),/^\s*/g),c=/([A-Z])/g,l=(t,e)=>(t=>t.replace(o,""))(t.replace(c,(t=>`${e}${(t=>t.toLowerCase())(t)}`))),a="undefined"!=typeof TextEncoder?new TextEncoder:null,h=a?t=>a.encode(t):t=>{const e=unescape(encodeURIComponent(t)),r=e.length,n=new Uint8Array(r);for(let t=0;t<r;t++)n[t]=e.codePointAt(t);return n};let u="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});u&&1===u.decode(new Uint8Array).length&&(u=null);const d=u?t=>u.decode(t):t=>{let e=t.length,r="",n=0;for(;e>0;){const s=e<1e4?e:1e4,i=t.subarray(n,n+s);n+=s,r+=String.fromCodePoint.apply(null,i),e-=s}return decodeURIComponent(escape(r))},f=(t,e)=>s.unfold(e,(()=>t)).join("")})),r.register("heYZO",(function(e,n){t(e.exports,"createDecoder",(function(){return d})),t(e.exports,"hasContent",(function(){return f})),t(e.exports,"readVarUint8Array",(function(){return g})),t(e.exports,"readVarUint",(function(){return w})),t(e.exports,"readUint8",(function(){return p})),t(e.exports,"readVarInt",(function(){return m})),t(e.exports,"readVarString",(function(){return y})),t(e.exports,"readAny",(function(){return _})),t(e.exports,"RleDecoder",(function(){return x})),t(e.exports,"UintOptRleDecoder",(function(){return S})),t(e.exports,"IntDiffOptRleDecoder",(function(){return E})),t(e.exports,"StringDecoder",(function(){return C}));var s=r("diuv2"),i=r("iUL32"),o=r("5ug58"),c=r("fJq6z"),l=r("jtAN9");r("j3EDv");const a=l.create("Unexpected end of array"),h=l.create("Integer out of Range");class u{constructor(t){this.arr=t,this.pos=0}}const d=t=>new u(t),f=t=>t.pos!==t.arr.length,g=t=>((t,e)=>{const r=new Uint8Array(t.arr.buffer,t.pos+t.arr.byteOffset,e);return t.pos+=e,r})(t,w(t)),p=t=>t.arr[t.pos++],w=t=>{let e=0,r=1;const n=t.arr.length;for(;t.pos<n;){const n=t.arr[t.pos++];if(e+=(n&s.BITS7)*r,r*=128,n<s.BIT8)return e;if(e>o.MAX_SAFE_INTEGER)throw h}throw a},m=t=>{let e=t.arr[t.pos++],r=e&s.BITS6,n=64;const i=(e&s.BIT7)>0?-1:1;if(!(e&s.BIT8))return i*r;const c=t.arr.length;for(;t.pos<c;){if(e=t.arr[t.pos++],r+=(e&s.BITS7)*n,n*=128,e<s.BIT8)return i*r;if(r>o.MAX_SAFE_INTEGER)throw h}throw a},y=c.utf8TextDecoder?t=>c.utf8TextDecoder.decode(g(t)):t=>{let e=w(t);if(0===e)return"";{let r=String.fromCodePoint(p(t));if(--e<100)for(;e--;)r+=String.fromCodePoint(p(t));else for(;e>0;){const n=e<1e4?e:1e4,s=t.arr.subarray(t.pos,t.pos+n);t.pos+=n,r+=String.fromCodePoint.apply(null,s),e-=n}return decodeURIComponent(escape(r))}},b=(t,e)=>{const r=new DataView(t.arr.buffer,t.arr.byteOffset+t.pos,e);return t.pos+=e,r},k=[t=>{},t=>null,m,t=>b(t,4).getFloat32(0,!1),t=>b(t,8).getFloat64(0,!1),t=>b(t,8).getBigInt64(0,!1),t=>!1,t=>!0,y,t=>{const e=w(t),r={};for(let n=0;n<e;n++)r[y(t)]=_(t);return r},t=>{const e=w(t),r=[];for(let n=0;n<e;n++)r.push(_(t));return r},g],_=t=>k[127-p(t)](t);class x extends u{constructor(t,e){super(t),this.reader=e,this.s=null,this.count=0}read(){return 0===this.count&&(this.s=this.reader(this),f(this)?this.count=w(this)+1:this.count=-1),this.count--,this.s}}class S extends u{constructor(t){super(t),this.s=0,this.count=0}read(){if(0===this.count){this.s=m(this);const t=i.isNegativeZero(this.s);this.count=1,t&&(this.s=-this.s,this.count=w(this)+2)}return this.count--,this.s}}class E extends u{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(0===this.count){const t=m(this),e=1&t;this.diff=i.floor(t/2),this.count=1,e&&(this.count=w(this)+2)}return this.s+=this.diff,this.count--,this.s}}class C{constructor(t){this.decoder=new S(t),this.str=y(this.decoder),this.spos=0}read(){const t=this.spos+this.decoder.read(),e=this.str.slice(this.spos,t);return this.spos=t,e}}})),r.register("jtAN9",(function(e,r){t(e.exports,"create",(function(){return n})),t(e.exports,"methodUnimplemented",(function(){return s})),t(e.exports,"unexpectedCase",(function(){return i}));const n=t=>new Error(t),s=()=>{throw n("Method unimplemented")},i=()=>{throw n("Unexpected case")}})),r.register("9c5sf",(function(e,n){t(e.exports,"uint32",(function(){return i})),t(e.exports,"uuidv4",(function(){return o})),r("iUL32"),r("diuv2");var s=r("56GYt");Math.random;const i=()=>(0,s.getRandomValues)(new Uint32Array(1))[0],o=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(t=>(t^i()&15>>t/4).toString(16)))})),r.register("56GYt",(function(e,r){t(e.exports,"getRandomValues",(function(){return n})),crypto.subtle;const n=crypto.getRandomValues.bind(crypto)})),r.register("hpG0a",(function(e,n){t(e.exports,"create",(function(){return s})),r("k2yVv");const s=t=>new Promise(t);Promise.all.bind(Promise)})),r.register("k2yVv",(function(e,n){t(e.exports,"getUnixTime",(function(){return s})),r("4OCIJ"),r("iUL32");const s=Date.now})),r.register("4OCIJ",(function(e,n){t(e.exports,"prefix",(function(){return c}));var s=r("iUL32");const i=["","k","M","G","T","P","E","Z","Y"],o=["","m","μ","n","p","f","a","z","y"],c=(t,e=0)=>{const r=0===t?0:s.log10(t);let n=0;for(;r<3*n&&e>-8;)e--,n--;for(;r>=3+3*n&&e<8;)e++,n++;const c=e<0?o[-e]:i[e];return{n:s.round(1e12*(n>0?t/s.exp10(3*n):t*s.exp10(-3*n)))/1e12,prefix:c}}})),r.register("f6bdK",(function(e,n){t(e.exports,"copyUint8Array",(function(){return i}));r("fJq6z");var s=r("1TTGp");r("kDMzp"),r("iUL32"),r("j3EDv"),r("heYZO"),r("1D1do").Buffer;const i=(s.isBrowser,s.isBrowser,t=>{const e=(t=>new Uint8Array(t))(t.byteLength);return e.set(t),e})})),r.register("1TTGp",(function(e,n){t(e.exports,"isBrowser",(function(){return u})),t(e.exports,"getVariable",(function(){return p})),t(e.exports,"supportsColor",(function(){return m}));var s=r("cuboK"),i=r("fJq6z"),o=r("buSng"),c=r("0ztOM"),l=r("ixCIn"),a=r("5Cbw2");const h=void 0!==a&&a.release&&/node|io\.js/.test(a.release.name)&&"[object process]"===Object.prototype.toString.call(void 0!==a?a:0),u="undefined"!=typeof window&&"undefined"!=typeof document&&!h;let d;"undefined"!=typeof navigator&&/Mac/.test(navigator.platform);const f=[],g=t=>(()=>{if(void 0===d)if(h){d=s.create();const t=a.argv;let e=null;for(let r=0;r<t.length;r++){const n=t[r];"-"===n[0]?(null!==e&&d.set(e,""),e=n):null!==e?(d.set(e,n),e=null):f.push(n)}null!==e&&d.set(e,"")}else"object"==typeof location?(d=s.create(),(location.search||"?").slice(1).split("&").forEach((t=>{if(0!==t.length){const[e,r]=t.split("=");d.set(`--${i.fromCamelCase(e,"-")}`,r),d.set(`-${i.fromCamelCase(e,"-")}`,r)}}))):d=s.create();return d})().has(t),p=t=>h?o.undefinedToNull(a.env[t.toUpperCase()]):o.undefinedToNull(c.varStorage.getItem(t));g("--"+"production")||p("production");const w=h&&l.isOneOf(void 0,["true","1","2"]),m=!g("no-colors")&&(!h||a.stdout.isTTY||w)&&(!h||g("color")||w||null!==p("COLORTERM")||(p("TERM")||"").includes("color"))})),r.register("buSng",(function(e,r){t(e.exports,"undefinedToNull",(function(){return n}));const n=t=>void 0===t?null:t})),r.register("0ztOM",(function(e,r){t(e.exports,"varStorage",(function(){return i}));let n=new class{constructor(){this.map=new Map}setItem(t,e){this.map.set(t,e)}getItem(t){return this.map.get(t)}},s=!0;try{"undefined"!=typeof localStorage&&localStorage&&(n=localStorage,s=!1)}catch(t){}const i=n})),r.register("ixCIn",(function(e,n){t(e.exports,"callAll",(function(){return i})),t(e.exports,"nop",(function(){return o})),t(e.exports,"id",(function(){return c})),t(e.exports,"isOneOf",(function(){return l}));var s=r("kDMzp");r("gBQSU");const i=(t,e,r=0)=>{try{for(;r<t.length;r++)t[r](...e)}finally{r<t.length&&i(t,e,r+1)}},o=()=>{},c=t=>t,l=(t,e)=>e.includes(t);s.isArray})),r.register("gBQSU",(function(e,r){t(e.exports,"assign",(function(){return n})),t(e.exports,"forEach",(function(){return i})),t(e.exports,"length",(function(){return o})),t(e.exports,"isEmpty",(function(){return c})),t(e.exports,"hasProperty",(function(){return l})),t(e.exports,"equalFlat",(function(){return a}));const n=Object.assign,s=Object.keys,i=(t,e)=>{for(const r in t)e(t[r],r)},o=t=>s(t).length,c=t=>{for(const e in t)return!1;return!0},l=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a=(t,e)=>t===e||o(t)===o(e)&&((t,e)=>{for(const r in t)if(!e(t[r],r))return!1;return!0})(t,((t,r)=>(void 0!==t||l(e,r))&&e[r]===t))})),r.register("5Cbw2",(function(t,e){var r,n,s=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var l,a=[],h=!1,u=-1;function d(){h&&l&&(h=!1,l.length?a=l.concat(a):u=-1,a.length&&f())}function f(){if(!h){var t=c(d);h=!0;for(var e=a.length;e;){for(l=a,a=[];++u<e;)l&&l[u].run();u=-1,e=a.length}l=null,h=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function p(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];a.push(new g(t,e)),1!==a.length||h||c(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=p,s.addListener=p,s.once=p,s.off=p,s.removeListener=p,s.removeAllListeners=p,s.emit=p,s.prependListener=p,s.prependOnceListener=p,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}})),r.register("fK7I3",(function(e,n){t(e.exports,"print",(function(){return d})),t(e.exports,"warn",(function(){return f})),t(e.exports,"BOLD",(function(){return r("37RhN").BOLD})),t(e.exports,"UNBOLD",(function(){return r("37RhN").UNBOLD})),t(e.exports,"RED",(function(){return r("37RhN").RED})),t(e.exports,"ORANGE",(function(){return r("37RhN").ORANGE}));var s=r("1TTGp"),i=r("aYKIU"),o=r("cGRJO"),c=r("7Nfk8"),l=(r("4RKQg"),r("cuboK")),a=(r("92eZa"),r("iUL32"),r("37RhN"));const h={[(a=r("37RhN")).BOLD]:o.create("font-weight","bold"),[a.UNBOLD]:o.create("font-weight","normal"),[a.BLUE]:o.create("color","blue"),[a.GREEN]:o.create("color","green"),[a.GREY]:o.create("color","grey"),[a.RED]:o.create("color","red"),[a.PURPLE]:o.create("color","purple"),[a.ORANGE]:o.create("color","orange"),[a.UNCOLOR]:o.create("color","black")},u=s.supportsColor?t=>{const e=[],r=[],n=l.create();let s=[],i=0;for(;i<t.length;i++){const s=t[i],o=h[s];if(void 0!==o)n.set(o.left,o.right);else{if(s.constructor!==String&&s.constructor!==Number)break;{const t=c.mapToStyleString(n);i>0||t.length>0?(e.push("%c"+s),r.push(t)):e.push(s)}}}for(i>0&&(s=r,s.unshift(e.join("")));i<t.length;i++){const e=t[i];e instanceof Symbol||s.push(e)}return s}:a.computeNoColorLoggingArgs,d=(...t)=>{console.log(...u(t)),g.forEach((e=>e.print(t)))},f=(...t)=>{console.warn(...u(t)),t.unshift(a.ORANGE),g.forEach((e=>e.print(t)))},g=i.create()})),r.register("cGRJO",(function(e,r){t(e.exports,"create",(function(){return s})),t(e.exports,"forEach",(function(){return i}));class n{constructor(t,e){this.left=t,this.right=e}}const s=(t,e)=>new n(t,e),i=(t,e)=>t.forEach((t=>e(t.left,t.right)))})),r.register("7Nfk8",(function(e,n){t(e.exports,"append",(function(){return l})),t(e.exports,"addEventListener",(function(){return a})),t(e.exports,"element",(function(){return h})),t(e.exports,"text",(function(){return u})),t(e.exports,"mapToStyleString",(function(){return d}));var s=r("cGRJO"),i=r("cuboK");const o="undefined"!=typeof document?document:{},c=("undefined"!=typeof DOMParser&&new DOMParser,t=>{const e=o.createDocumentFragment();for(let r=0;r<t.length;r++)f(e,t[r]);return e}),l=(t,e)=>(f(t,c(e)),t),a=(t,e,r)=>t.addEventListener(e,r),h=(t,e=[],r=[])=>l(((t,e)=>(s.forEach(e,((e,r)=>{!1===r?t.removeAttribute(e):!0===r?t.setAttribute(e,""):t.setAttribute(e,r)})),t))((t=>o.createElement(t))(t),e),r),u=t=>o.createTextNode(t),d=t=>i.map(t,((t,e)=>`${e}:${t};`)).join(""),f=(t,e)=>t.appendChild(e);o.ELEMENT_NODE,o.TEXT_NODE,o.CDATA_SECTION_NODE,o.COMMENT_NODE,o.DOCUMENT_NODE,o.DOCUMENT_TYPE_NODE,o.DOCUMENT_FRAGMENT_NODE})),r.register("4RKQg",(function(e,r){t(e.exports,"stringify",(function(){return n}));const n=JSON.stringify;JSON.parse})),r.register("92eZa",(function(e,r){t(e.exports,"enqueue",(function(){return i}));let n=[];const s=()=>{for(let t=0;t<n.length;t++)n[t]();n=[]},i=t=>{n.push(t),1===n.length&&setTimeout(s,0)},o=t=>class{constructor(t){this._=t}destroy(){t(this._)}};o(clearTimeout),o(clearInterval),o((t=>"undefined"!=typeof requestAnimationFrame&&cancelAnimationFrame(t))),o((t=>"undefined"!=typeof cancelIdleCallback&&cancelIdleCallback(t)))})),r.register("37RhN",(function(e,n){t(e.exports,"BOLD",(function(){return l})),t(e.exports,"UNBOLD",(function(){return a})),t(e.exports,"BLUE",(function(){return h})),t(e.exports,"GREY",(function(){return u})),t(e.exports,"GREEN",(function(){return d})),t(e.exports,"RED",(function(){return f})),t(e.exports,"PURPLE",(function(){return g})),t(e.exports,"ORANGE",(function(){return p})),t(e.exports,"UNCOLOR",(function(){return w})),t(e.exports,"computeNoColorLoggingArgs",(function(){return m})),t(e.exports,"createModuleLogger",(function(){return _}));var s=r("jR3GT"),i=r("k2yVv"),o=r("1TTGp"),c=r("ixCIn");const l=s.create(),a=s.create(),h=s.create(),u=s.create(),d=s.create(),f=s.create(),g=s.create(),p=s.create(),w=s.create(),m=t=>{const e=[],r=[];let n=0;for(;n<t.length;n++){const s=t[n];s.constructor===String||s.constructor===Number?e.push(s):s.constructor===Object&&r.push(JSON.stringify(s))}return r},y=[d,g,p,h];let b=0,k=i.getUnixTime();const _=(t,e)=>{const r=y[b],n=o.getVariable("log"),s=null!==n&&("*"===n||"true"===n||new RegExp(n,"gi").test(e));return b=(b+1)%y.length,e+=": ",s?(...n)=>{const s=i.getUnixTime(),o=s-k;k=s,t(r,e,w,...n.map((t=>"string"==typeof t||"symbol"==typeof t?t:JSON.stringify(t))),r," +"+o+"ms")}:c.nop}})),r.register("jR3GT",(function(e,r){t(e.exports,"create",(function(){return n}));const n=Symbol})),r.register("fiX3Z",(function(e,r){t(e.exports,"iteratorFilter",(function(){return s})),t(e.exports,"iteratorMap",(function(){return i}));const n=t=>({[Symbol.iterator](){return this},next:t}),s=(t,e)=>n((()=>{let r;do{r=t.next()}while(!r.done&&!e(r.value));return r})),i=(t,e)=>n((()=>{const{done:r,value:n}=t.next();return{done:r,value:r?void 0:e(n)}}))})),r.register("g4rKG",(function(e,n){t(e.exports,"YKeyValue",(function(){return i}));var s=r("fACbm");class i extends s.Observable{constructor(t){super(),this.yarray=t,this.doc=t.doc,this.map=new Map;{const e=t.toArray();this.doc.transact((()=>{for(let r=e.length-1;r>=0;r--){const n=e[r];this.map.has(n.key)?t.delete(r):this.map.set(n.key,n)}}))}t.observe(((e,r)=>{const n=new Map,s=Array.from(e.changes.added);e.changes.deleted.forEach((t=>{t.content.getContent().forEach((t=>{this.map.get(t.key)===t&&(this.map.delete(t.key),n.set(t.key,{action:"delete",oldValue:t.val}))}))}));const i=new Map;s.map((t=>t.content.getContent())).flat().forEach((t=>{i.set(t.key,t)}));const o=new Set,c=t.toArray();this.doc.transact((e=>{for(let e=c.length-1;e>=0&&(i.size>0||o.size>0);e--){const r=c[e];if(o.has(r.key))o.delete(r.key),t.delete(e,1);else if(i.get(r.key)===r){const t=this.map.get(r.key);if(t)o.add(r.key),n.set(r.key,{action:"update",oldValue:t.val,newValue:r.val});else{const t=n.get(r.key);t&&"delete"===t.action?n.set(r.key,{action:"update",newValue:r.val,oldValue:t.oldValue}):n.set(r.key,{action:"add",newValue:r.val})}i.delete(r.key),this.map.set(r.key,r)}else i.has(r.key)&&(o.add(r.key),i.delete(r.key))}})),n.size>0&&this.emit("change",[n,r])}))}set(t,e){this.doc.transact((r=>{this.map.has(t)&&this.delete(t),this.yarray.push([{key:t,val:e}])}))}delete(t){let e=0;for(const r of this.yarray){if(r.key===t){this.yarray.delete(e);break}e++}}get(t){const e=this.map.get(t);return e&&e.val}has(t){return this.map.has(t)}}})),r.register("3Lnfd",(function(e,r){t(e.exports,"encode",(function(){return s})),t(e.exports,"decode",(function(){return o}));const{fromCharCode:n}=String,s=t=>{const e=[];for(let r=0,{length:s}=t;r<s;r++)e.push(n(t[r]));return btoa(e.join(""))},i=t=>t.charCodeAt(0),o=t=>Uint8Array.from(atob(t),i)}))}();
|