@liascript/exporter
Version:
A generic exporter for LiaScript
1 lines • 116 kB
JavaScript
!function(){function r(r,n,t,e){Object.defineProperty(r,n,{get:t,set:e,enumerable:!0,configurable:!0})}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},t={},e={},a=n.parcelRequire55a5;null==a&&((a=function(r){if(r in t)return t[r].exports;if(r in e){var n=e[r];delete e[r];var a={id:r,exports:{}};return t[r]=a,n.call(a.exports,a,a.exports),a.exports}var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}).register=function(r,n){e[r]=n},n.parcelRequire55a5=a),a.register("gGOO1",(function(n,t){r(n.exports,"fetch",(function(){return h}));var e=a("f1evb"),u=a("9Klpk"),o=a("3bWnf"),i=a("eT7f3"),c=a("kb0qF"),s=a("5ENmm"),f=a("fSF4h"),l=a("bWNdT"),b=a("fCq4Q"),p=a("7OeKL"),d={};function h(r,n){var t=new XMLHttpRequest;t.open("GET",r,!0),t.onload=function(e){if(4===t.readyState&&200===t.status)try{var a=b.Elm.Preview.init({flags:{cmd:""}});a.ports.output.subscribe((function(t){var e=(0,s.default)(t,2),a=e[0],u=e[1];if(a){""!==u.logo&&(u.logo=g(r,u.logo));try{u.tags=u.tags.split(",").map((function(r){return r.trim()}))}catch(r){}try{u.icon=g(r,u.icon)}catch(r){u.icon="https://liascript.github.io/course/icon.ico"}d[r]=u,n(r,u)}else console.warn("preview-lia",u)})),a.ports.input.send(t.responseText)}catch(r){console.warn("fetching",r)}},t.send()}function g(r,n){if(p.allowedProtocol(n))return n;var t=r.split("/");return t.pop(),t.join("/")+"/"+n}var m=function(r){"use strict";(0,c.default)(t,r);var n=(0,l.default)(t);function t(){var r;(0,u.default)(this,t),r=n.call(this),(0,i.default)((0,e.default)(r),"source_url","");var a=document.createElement("template");return a.innerHTML='<style>\n.card {\n border: 5px solid #399193;\n position: relative;\n background-color: white;\n display: flex;\n flex-direction: row;\n margin: 2rem auto;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n}\n\n.card:hover {\n transform: translateY(-1px);\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);\n}\n\n.card__media {\n flex: 1;\n max-width: 300px;\n min-height: 100%;\n}\n\n.card__image {\n height: 100%;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n\n.card__content {\n flex: 2;\n padding: 2rem;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.card__header {\n margin-bottom: 1.5rem;\n}\n\n.card__title {\n color: #4b4b4b;\n margin: 0;\n position: relative;\n}\n\n.card__title:before {\n content: "";\n position: absolute;\n bottom: -0.5rem;\n width: 50%;\n height: 2px;\n background-color: #399193;\n}\n\n.card__subtitle {\n color: #aeaeae;\n margin: 0.5rem 0 1rem;\n}\n\n.card__version {\n display: inline-block;\n padding: 0.5rem;\n background-color: #399193;\n color: white;\n position: absolute;\n font-size: x-small;\n top: -1.5rem;\n left: 1rem;\n z-index: 1;\n}\n\n.card__body {\n line-height: 1.5;\n}\n\n.card__contact {\n color: #399193;\n text-decoration: none;\n font-size: small;\n}\n\n@media (max-width: 640px) {\n .card {\n flex-direction: column;\n }\n\n .card__media {\n max-width: 100%;\n height: 200px;\n }\n\n .card__content {\n padding: 1.5rem;\n }\n}\n</style>\n<a id="container" target="_blank" href="">preview-lia</a>',r.container=r.attachShadow({mode:"open"}),r.container.appendChild(a.content.cloneNode(!0)),r}return(0,o.default)(t,[{key:"connectedCallback",value:function(){var r=this,n=this.getAttribute("src"),t=this.container.getElementById("container");if(n)if(d[n])this.callback(n,d[n]);else{var e=n.split("/course/?");2===e.length?this.source_url=e[1]:this.source_url=e[0],null!==t&&(t.innerHTML='<a href="'.concat(n,'">preview-lia</a>'),h(this.source_url,(function(n,t){r.callback(n,t)})))}}},{key:"callback",value:function(r,n){var t=this.container.getElementById("container");if(t){var e=this.getAttribute("link")||"https://LiaScript.github.io/course/?"+this.source_url,a="";n.tags&&n.tags.length>0&&(a='<h3 class="card__subtitle">'.concat(n.tags.join(" | "),"</h3>")),n.logo&&(n.logo_alt=n.logo_alt?'alt="'.concat(n.logo_alt,'"'):"",n.logo='<div class="card__media">\n <img src="'.concat(n.logo,'" ').concat(n.logo_alt,' class="card__image">\n </div>')),n.author&&n.email?n.author='<a class="card__contact" href="mailto:'.concat(n.email,'">').concat(n.author," ✉️</a>"):n.author?n.author='<span class="card__contact">'.concat(n.author,"</span>"):n.email?n.author='<a class="card__contact" href="mailto:'.concat(n.email,'">').concat(n.email," ✉️</a>"):n.author="",t.href=e,t.style.textDecoration="none",t.style.color="black",t.style.display="block",t.innerHTML='<article class="card">\n <div class="card__version">V '.concat(n.version,"</div>\n ").concat(n.logo||"",'\n <div class="card__content">\n <img src="').concat(n.icon,'" alt="" style="display: block; height: 3rem; position: absolute; right: 5px; top: 5px">\n <header class="card__header">\n <h2 class="card__title">').concat(n.title,"</h2>\n ").concat(a,'\n </header>\n <div class="card__body">\n <p class="card__copy">').concat(n.description,"</p>\n </div>\n <footer>\n ").concat(n.author,"\n </footer>\n </div>\n \n </article>")}}},{key:"disconnectedCallback",value:function(){}}]),t}((0,f.default)(HTMLElement));customElements.define("preview-lia",m)})),a.register("f1evb",(function(n,t){function e(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}r(n.exports,"default",(function(){return e}))})),a.register("9Klpk",(function(n,t){function e(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}r(n.exports,"default",(function(){return e}))})),a.register("3bWnf",(function(n,t){function e(r,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function a(r,n,t){return n&&e(r.prototype,n),t&&e(r,t),r}r(n.exports,"default",(function(){return a}))})),a.register("eT7f3",(function(n,t){function e(r,n,t){return n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r}r(n.exports,"default",(function(){return e}))})),a.register("kb0qF",(function(n,t){r(n.exports,"default",(function(){return u}));var e=a("4ZD2E");function u(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),n&&(0,e.default)(r,n)}})),a.register("4ZD2E",(function(n,t){function e(r,n){return e=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},e(r,n)}function a(r,n){return e(r,n)}r(n.exports,"default",(function(){return a}))})),a.register("5ENmm",(function(n,t){r(n.exports,"default",(function(){return c}));var e=a("eqVIU"),u=a("bMo4c"),o=a("9Xv6W"),i=a("ecfGL");function c(r,n){return(0,e.default)(r)||(0,u.default)(r,n)||(0,i.default)(r,n)||(0,o.default)()}})),a.register("eqVIU",(function(n,t){function e(r){if(Array.isArray(r))return r}r(n.exports,"default",(function(){return e}))})),a.register("bMo4c",(function(n,t){function e(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}r(n.exports,"default",(function(){return e}))})),a.register("9Xv6W",(function(n,t){function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r(n.exports,"default",(function(){return e}))})),a.register("ecfGL",(function(n,t){r(n.exports,"default",(function(){return u}));var e=a("e1oml");function u(r,n){if(r){if("string"==typeof r)return(0,e.default)(r,n);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?(0,e.default)(r,n):void 0}}})),a.register("e1oml",(function(n,t){function e(r,n){(null==n||n>r.length)&&(n=r.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=r[t];return e}r(n.exports,"default",(function(){return e}))})),a.register("fSF4h",(function(n,t){r(n.exports,"default",(function(){return s}));var e=a("fWXUu"),u=a("7szM4"),o=a("div3d"),i=a("4ZD2E");function c(r){var n="function"==typeof Map?new Map:void 0;return c=function(r){if(null===r||!(0,u.default)(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(r))return n.get(r);n.set(r,t)}function t(){return(0,e.default)(r,arguments,(0,o.default)(this).constructor)}return t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(t,r)},c(r)}function s(r){return c(r)}})),a.register("fWXUu",(function(n,t){r(n.exports,"default",(function(){return o}));var e=a("4ZD2E");function u(r,n,t){return u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}()?Reflect.construct:function(r,n,t){var a=[null];a.push.apply(a,n);var u=new(Function.bind.apply(r,a));return t&&(0,e.default)(u,t.prototype),u},u.apply(null,arguments)}function o(r,n,t){return u.apply(null,arguments)}})),a.register("7szM4",(function(n,t){function e(r){return-1!==Function.toString.call(r).indexOf("[native code]")}r(n.exports,"default",(function(){return e}))})),a.register("div3d",(function(n,t){function e(r){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},e(r)}function a(r){return e(r)}r(n.exports,"default",(function(){return a}))})),a.register("bWNdT",(function(n,t){r(n.exports,"default",(function(){return i}));var e=a("jQlMs"),u=a("div3d"),o=a("1Qswt");function i(r){var n=(0,e.default)();return function(){var t,e=(0,u.default)(r);if(n){var a=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return(0,o.default)(this,t)}}})),a.register("jQlMs",(function(n,t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}r(n.exports,"default",(function(){return e}))})),a.register("1Qswt",(function(n,t){r(n.exports,"default",(function(){return o}));var e=a("f1evb"),u=a("rJmE6");function o(r,n){return!n||"object"!==(0,u.default)(n)&&"function"!=typeof n?(0,e.default)(r):n}})),a.register("rJmE6",(function(n,t){function e(r){return r&&r.constructor===Symbol?"symbol":typeof r}r(n.exports,"default",(function(){return e}))})),a.register("fCq4Q",(function(r,n){!function(r){"use strict";var n=function(r,n,t){return t.a=r,t.f=n,t},t=function(r){return n(2,r,(function(n){return function(t){return r(n,t)}}))},e=function(r){return n(3,r,(function(n){return function(t){return function(e){return r(n,t,e)}}}))},a=function(r){return n(4,r,(function(n){return function(t){return function(e){return function(a){return r(n,t,e,a)}}}}))},u=function(r){return n(5,r,(function(n){return function(t){return function(e){return function(a){return function(u){return r(n,t,e,a,u)}}}}}))},o=function(r,n,t){return 2===r.a?r.f(n,t):r(n)(t)},i=function(r,n,t,e){return 3===r.a?r.f(n,t,e):r(n)(t)(e)},c=function(r,n,t,e,a){return 4===r.a?r.f(n,t,e,a):r(n)(t)(e)(a)},s=function(r,n,t,e,a,u){return 5===r.a?r.f(n,t,e,a,u):r(n)(t)(e)(a)(u)},f=function(r){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+r+".md")},l=function(r,n){for(var t,e=[],a=or(r,n,0,e);a&&(t=e.pop());a=or(t.a,t.b,0,e));return a},b=function(r,n){return{a:r,b:n}},p=function(r,n,t){return{a:r,b:n,c:t}},d=function(r,n){var t={};for(var e in r)t[e]=r[e];for(var e in n)t[e]=n[e];return t},h=function(r,n){if("string"==typeof r)return r+n;if(!r.b)return n;var t=g(r.a,n);r=r.b;for(var e=t;r.b;r=r.b)e=e.b=g(r.a,n);return t},g=function(r,n){return{$:1,a:r,b:n}},m=function(r){for(var n=lr,t=r.length;t--;)n=g(r[t],n);return n},v=function(r){for(var n=[];r.b;r=r.b)n.push(r.a);return n},w=function(r){return r+""},y=function(r){return{$:2,b:r}},q=function(r,n,t){for(var e=n.length,a=Array(e),u=0;e>u;u++){var i=_r(r,n[u]);if(!Wn(i))return fn(o(pn,u,i.a));a[u]=i.a}return dn(t(a))},x=function(r){return Array.isArray(r)||"undefined"!=typeof FileList&&r instanceof FileList},k=function(r){return o(Jn,r.length,(function(n){return r[n]}))},$=function(r,n){return fn(o(ln,"Expecting "+r,n))},E=function(r){return r},A=function(r){return{$:0,a:r}},D=function(r){if(Ur.push(r),!Br){for(Br=!0;r=Ur.shift();)L(r);Br=!1}},L=function(r){for(;r.f;){var n=r.f.$;if(0===n||1===n){for(;r.g&&r.g.$!==n;)r.g=r.g.i;if(!r.g)return;r.f=r.g.b(r.f.a),r.g=r.g.i}else{if(2===n)return void(r.f.c=r.f.b((function(n){r.f=n,D(r)})));if(5===n){if(0===r.h.length)return;r.f=r.f.b(r.h.shift())}else r.g={$:3===n?0:1,b:r.f.b,i:r.g},r.f=r.f.d}}},S=function(r,n){var t,e={g:n,h:void 0},a=r.c,u=r.d,s=r.e,f=r.f;return e.h=(D(t={$:0,e:Ir++,f:o(jr,(function r(n){return o(jr,r,{$:5,b:function(r){var t=r.a;return 0===r.$?i(u,e,t,n):s&&f?c(a,e,t.i,t.j,n):i(a,e,s?t.i:t.j,n)}})}),r.b),g:null,h:[]}),t)},R=function(r){return function(n){return{$:1,k:r,l:n}}},T=function(r,n,t){if(zr.push({p:r,q:n,r:t}),!Gr){Gr=!0;for(var e;e=zr.shift();)N(e.p,e.q,e.r);Gr=!1}},N=function(r,n,t){var e,a={};for(var u in Pr(!0,n,a,null),Pr(!1,t,a,null),r)(e=r[u]).h.push({$:"fx",a:a[u]||{i:lr,j:lr}}),D(e)},C=function(r){Hr[r]&&f(3)},_=function(r){var n=[],t=Hr[r].u,a={$:2,b:function(r){var n=setTimeout((function(){r(A(0))}),0);return function(){clearTimeout(n)}},c:null};return Hr[r].b=a,Hr[r].c=e((function(r,e){for(;e.b;e=e.b)for(var u=n,o=t(e.a),i=0;u.length>i;i++)u[i](o);return a})),{subscribe:function(r){n.push(r)},unsubscribe:function(r){var t=(n=n.slice()).indexOf(r);0>t||n.splice(t,1)}}},O=function(){return Re(ve(Nu(me(m([o(jt,Qu(!1),Zu),o(jt,Qu(!1),Xu),o(jt,Qu(!1),Pu),j()])))))},j=function(){return o(jt,(function(r){var n=r.a,t=r.b;return o(jt,(function(r){return o(jt,(function(r){return o(Qu,!0,b(t,r))}),o(Ut,Ue(r),ku(n)))}),o(Ht,pe("[\t ]*\n"),Uu))}),o(Vt,zu,o(Ut,it,o(Ht,pe("[\t ]*[a-zA-Z0-9_]*[\t ]*"),wu))))},I=function(){return o(Kt,me(m([bc,Pi,as,To,Go,es,is,B(),cs,o(Ut,_a,Vc(hs())),os,hc,us])),Uo)},B=function(){return me(m([o(Ut,Sa,ls("**")),o(Ut,Sa,ls("__")),o(Ut,ja,ls("*")),o(Ut,ja,ls("_")),o(Ut,Ka,ls("~~")),o(Ut,Ma,ls("~")),o(Ut,Xa,ls("^")),U()]))},U=function(){return o(Zt,o(Vt,iu(o(et,(function(r){return r.c5}),o(et,(function(r){return r.hE}),o(et,(function(r){return r.fB}),ue)))),o(Ut,t((function(r,n){var t=n.b;return Ta(m([o(Ra,n.a,lr),r,o(Ra,t,lr)]))})),ls('"'))),o(Vt,iu(o(et,(function(r){return r.c5}),o(et,(function(r){return r.hE}),o(et,(function(r){return r.hc}),ue)))),o(Ut,t((function(r,n){var t=n.b;return Ta(m([o(Ra," "+n.a,lr),r,o(Ra,t,lr)]))})),o(bs," '","'"))))},V=function(){return o(Ut,Pa,me(m([W(),H(),G(),J(),K(),M(),F(),Z()])))},H=function(){return o(Kt,z(),ae("!?"))},z=function(){return o(Ht,ae(")"),o(Vt,X(),o(Vt,o(Ut,wc,ts),o(Ht,ae("("),o(Ut,Ua,Q())))))},G=function(){return o(Kt,P(),ae("?"))},P=function(){return o(Ut,Yc,o(Ht,ae(")"),o(Vt,X(),o(Vt,o(Ut,Bo,ts),o(Ht,ae("("),o(Ut,La,Q()))))))},F=function(){return o(Ht,ae(")"),o(Vt,X(),o(Vt,ns,o(Ht,ae("("),o(Se,za,o(Po,{aj:!0,aq:!1},"\\[\\w*qr-code\\w*]"))))))},M=function(){return o(Ht,ae(")"),o(Ht,X(),o(Vt,ns,o(Ht,ae("("),o(Ht,pe("\\w*]"),o(Kt,me(m([o(Se,Va,o(Po,{aj:!0,aq:!1},"lia")),o(Se,Ha,o(Po,{aj:!0,aq:!1},"link"))])),o(Po,{aj:!0,aq:!1},"\\[\\w*preview-")))))))},X=function(){return ve(o(Ut,fs,o(Ht,Lo,o(Kt,o(Zt,ls('"'),ls("'")),Lo))))},K=function(){return i(ds,Ba,Q(),Fi)},Z=function(){return i(ds,Ia,Q(),ns)},J=function(){return o(Kt,i(ds,Oa,Q(),ts),ae("!"))},W=function(){return o(Kt,i(ds,Ca,Q(),ns),ae("??"))},Q=function(){return o(Ut,zo,o(Ht,Rc,o(Kt,o(re,hs(),ae("]")),o(Ht,su("]"),ae("[")))))},Y=function(){return o(Ut,zo,Nu(hs()))},rr=function(){return o(jt,(function(r){return r?o(Ut,Ga,o(jt,cu,Qc(ps))):gu("no inputs allowed")}),Ji)},nr=e((function(r,n,t){for(var e=Array(r),a=0;r>a;a++)e[a]=t(n+a);return e})),tr=t((function(r,n){for(var t=Array(r),e=0;r>e&&n.b;e++)t[e]=n.a,n=n.b;return t.length=e,b(t,n)})),er=t((function(r,n){return n[r]})),ar=e((function(r,n,t){for(var e=t.length,a=Array(e),u=0;e>u;u++)a[u]=t[u];return a[r]=n,a})),ur=t((function(r,n){for(var t=n.length,e=Array(t+1),a=0;t>a;a++)e[a]=n[a];return e[t]=r,e}));function or(r,n,t,e){if(r===n)return!0;if("object"!=typeof r||null===r||null===n)return"function"==typeof r&&f(5),!1;if(t>100)return e.push(b(r,n)),!0;for(var a in 0>r.$&&(r=un(r),n=un(n)),r)if(!or(r[a],n[a],t+1,e))return!1;return!0}function ir(r,n,t){if("object"!=typeof r)return r===n?0:n>r?-1:1;if(void 0===r.$)return(t=ir(r.a,n.a))||(t=ir(r.b,n.b))?t:ir(r.c,n.c);for(;r.b&&n.b&&!(t=ir(r.a,n.a));r=r.b,n=n.b);return t||(r.b?1:n.b?-1:0)}var cr=t((function(r,n){return 1>ir(r,n)})),sr=t((function(r,n){var t=ir(r,n);return 0>t?sn:t?cn:on})),fr=t(h),lr={$:0},br=t(g),pr=e((function(r,n,t){for(var e=[];n.b&&t.b;n=n.b,t=t.b)e.push(o(r,n.a,t.a));return m(e)})),dr=t((function(r,n){return r+n})),hr=t(Math.pow),gr=Math.ceil,mr=Math.floor,vr=Math.log,wr=t((function(r,n){return r+n})),yr=t((function(r,n){return r+n})),qr=e((function(r,n,t){for(var e=t.length,a=0;e>a;){var u=t[a],i=t.charCodeAt(a);a++,55296>i||i>56319||(u+=t[a],a++),n=o(r,u,n)}return n})),xr=e((function(r,n,t){for(var e=t.length;e--;){var a=t[e],u=t.charCodeAt(e);56320>u||u>57343||(a=t[--e]+a),n=o(r,a,n)}return n})),kr=t((function(r,n){return n.split(r)})),$r=t((function(r,n){return n.join(r)})),Er=e((function(r,n,t){return t.slice(r,n)})),Ar=t((function(r,n){return n.indexOf(r)>-1})),Dr=t((function(r,n){return 0===n.indexOf(r)})),Lr=t((function(r,n){return n.length>=r.length&&n.lastIndexOf(r)===n.length-r.length})),Sr=t((function(r,n){var t=r.length;if(1>t)return lr;for(var e=0,a=[];(e=n.indexOf(r,e))>-1;)a.push(e),e+=t;return m(a)}));y((function(r){return"number"!=typeof r?$("an INT",r):r>-2147483647&&2147483647>r&&(0|r)===r?dn(r):!isFinite(r)||r%1?$("an INT",r):dn(r)})),y((function(r){return"boolean"==typeof r?dn(r):$("a BOOL",r)})),y((function(r){return"number"==typeof r?dn(r):$("a FLOAT",r)})),y((function(r){return dn(r)}));var Rr=y((function(r){return"string"==typeof r?dn(r):r instanceof String?dn(r+""):$("a STRING",r)})),Tr=t((function(r,n){return{$:6,d:r,b:n}})),Nr=t((function(r,n){return{$:10,b:n,h:r}})),Cr=t((function(r,n){return _r(r,n)}));function _r(r,n){switch(r.$){case 2:return r.b(n);case 5:return null===n?dn(r.c):$("null",n);case 3:return x(n)?q(r.b,n,m):$("a LIST",n);case 4:return x(n)?q(r.b,n,k):$("an ARRAY",n);case 6:var t=r.d;if("object"!=typeof n||null===n||!(t in n))return $("an OBJECT with a field named `"+t+"`",n);var e=_r(r.b,n[t]);return Wn(e)?e:fn(o(bn,t,e.a));case 7:var a=r.e;return x(n)?n.length>a?(e=_r(r.b,n[a]),Wn(e)?e:fn(o(pn,a,e.a))):$("a LONGER array. Need index "+a+" but only see "+n.length+" entries",n):$("an ARRAY",n);case 8:if("object"!=typeof n||null===n||x(n))return $("an OBJECT",n);var u=lr;for(var i in n)if(n.hasOwnProperty(i)){if(e=_r(r.b,n[i]),!Wn(e))return fn(o(bn,i,e.a));u=g(b(i,e.a),u)}return dn(Rn(u));case 9:for(var c=r.f,s=r.g,f=0;s.length>f;f++){if(e=_r(s[f],n),!Wn(e))return e;c=c(e.a)}return dn(c);case 10:return e=_r(r.b,n),Wn(e)?_r(r.h(e.a),n):e;case 11:for(var l=lr,p=r.g;p.b;p=p.b){if(e=_r(p.a,n),Wn(e))return e;l=g(e.a,l)}return fn(hn(Rn(l)));case 1:return fn(o(ln,r.a,n));case 0:return dn(r.a)}}var Or=e((function(r,n,t){return t[r]=n,t})),jr=t((function(r,n){return{$:3,b:r,d:n}})),Ir=0,Br=!1,Ur=[],Vr=a((function(r,n,t,e){return function(r,n,t,e,a){var u=o(Cr,r,n?n.flags:void 0);Wn(u)||f(2);var i={},c=t(u.a),s=c.a,l=function(){},b=function(r,n){var t;for(var e in Hr){var a=Hr[e];a.a&&((t=t||{})[e]=a.a(e,n)),r[e]=S(a,n)}return t}(i,(function(r,n){var t=o(e,r,s);l(s=t.a,n),T(i,t.b,a(s))}));return T(i,c.b,a(s)),b?{ports:b}:{}}(n,e,r.f8,r.cF,r.ho)})),Hr={},zr=[],Gr=!1;function Pr(r,n,t,e){switch(n.$){case 1:var a=n.k,u=function(r,n,t,e){return o(r?Hr[n].e:Hr[n].f,(function(r){for(var n=t;n;n=n.t)r=n.s(r);return r}),e)}(r,a,e,n.l);return void(t[a]=function(r,n,t){return t=t||{i:lr,j:lr},r?t.i=g(n,t.i):t.j=g(n,t.j),t}(r,u,t[a]));case 2:for(var i=n.m;i.b;i=i.b)Pr(r,i.a,t,e);return;case 3:return void Pr(r,n.o,t,{s:n.n,t:e})}}var Fr,Mr,Xr,Kr,Zr=t((function(r,n){return n})),Jr=t((function(r,n){return function(t){return r(n(t))}})),Wr=t((function(r,n){var t="g";r.aq&&(t+="m"),r.aj&&(t+="i");try{return mn(RegExp(n,t))}catch(r){return vn}})),Qr=e((function(r,n,t){for(var e,a=[],u=0,o=t,i=n.lastIndex,s=-1;u++<r&&(e=n.exec(o))&&s!=n.lastIndex;){for(var f=e.length-1,l=Array(f);f>0;){var b=e[f];l[--f]=b?mn(b):vn}a.push(c(ie,e[0],e.index,u,m(l))),s=n.lastIndex}return n.lastIndex=i,m(a)})),Yr=a((function(r,n,t,e){var a=0;return e.replace(n,(function(n){if(a++>=r)return n;for(var e=arguments.length-3,u=Array(e);e>0;){var o=arguments[e];u[--e]=o?mn(o):vn}return t(c(ie,n,arguments[arguments.length-2],a,m(u)))}))})),rn=e((function(r,n,t){for(var e=t,a=[],u=n.lastIndex,o=n.lastIndex;r--;){var i=n.exec(e);if(!i)break;a.push(e.slice(u,i.index)),u=n.lastIndex}return a.push(e.slice(u)),n.lastIndex=o,m(a)})),nn=1/0,tn=function(r){return r},en=br,an=e((function(r,n,t){for(;;){if(-2===t.$)return n;var e=t.d,a=r,u=i(r,t.b,t.c,i(an,r,n,t.e));r=a,n=u,t=e}})),un=function(r){return i(an,e((function(r,n,t){return o(en,b(r,n),t)})),lr,r)},on=1,cn=2,sn=0,fn=function(r){return{$:1,a:r}},ln=t((function(r,n){return{$:3,a:r,b:n}})),bn=t((function(r,n){return{$:0,a:r,b:n}})),pn=t((function(r,n){return{$:1,a:r,b:n}})),dn=function(r){return{$:0,a:r}},hn=function(r){return{$:2,a:r}},gn=dr,mn=function(r){return{$:0,a:r}},vn={$:1},wn=fr,yn=w,qn=t((function(r,n){return o($r,r,v(n))})),xn=t((function(r,n){return m(o(kr,r,n))})),kn=e((function(r,n,t){for(;;){if(!t.b)return n;var e=t.b,a=r,u=o(r,t.a,n);r=a,n=u,t=e}})),$n=function(r){return i(kn,t((function(r,n){return n+1})),0,r)},En=pr,An=cr,Dn=e((function(r,n,t){for(;;){if(ir(r,n)>=1)return t;var e=r,a=n-1,u=o(en,n,t);r=e,n=a,t=u}})),Ln=t((function(r,n){return i(Dn,r,n,lr)})),Sn=t((function(r,n){return i(En,r,o(Ln,0,$n(n)-1),n)})),Rn=function(r){return i(kn,en,lr,r)},Tn=32,Nn=a((function(r,n,t,e){return{$:0,a:r,b:n,c:t,d:e}})),Cn=[],_n=gr,On=t((function(r,n){return vr(n)/vr(r)})),jn=_n(o(On,2,Tn)),In=c(Nn,0,jn,Cn,Cn),Bn=nr,Un=function(r){return{$:1,a:r}},Vn=mr,Hn=function(r){return r.length},zn=t((function(r,n){return ir(r,n)>0?r:n})),Gn=function(r){return{$:0,a:r}},Pn=tr,Fn=t((function(r,n){for(;;){var t=o(Pn,Tn,r),e=t.b,a=o(en,Gn(t.a),n);if(!e.b)return Rn(a);r=e,n=a}})),Mn=function(r){return r.a},Xn=t((function(r,n){for(;;){var t=_n(n/Tn);if(1===t)return o(Pn,Tn,r).a;r=o(Fn,r,lr),n=t}})),Kn=t((function(r,n){if(n.j){var t=n.j*Tn,e=Vn(o(On,Tn,t-1)),a=r?Rn(n.o):n.o,u=o(Xn,a,n.j);return c(Nn,Hn(n.n)+t,o(zn,5,e*jn),u,n.n)}return c(Nn,Hn(n.n),jn,Cn,n.n)})),Zn=u((function(r,n,t,e,a){for(;;){if(0>n)return o(Kn,!1,{o:e,j:t/Tn|0,n:a});var u=Un(i(Bn,Tn,n,r));n-=Tn,e=o(en,u,e)}})),Jn=t((function(r,n){if(r>0){var t=r%Tn;return s(Zn,n,r-t-Tn,r,lr,i(Bn,t,r-t,n))}return In})),Wn=function(r){return!r.$},Qn=Nr,Yn=Tr,rt=(Kr=lr,{$:2,m:Kr}),nt=Rr,tt=(Fr="input",Mr=nt,C(Fr),Hr[Fr]={f:Jr,u:Mr,a:function(r,n){var t=lr,a=Hr[r].u,u=A(null);return Hr[r].b=u,Hr[r].c=e((function(r,n){return t=n,u})),{send:function(r){var e=o(Cr,a,r);Wn(e)||f(4);for(var u=e.a,i=t;i.b;i=i.b)n(i.a(u))}}}},R(Fr)),et=e((function(r,n,t){return n(r(t))})),at=E,ut=t((function(r,n){return i(kn,function(r){return t((function(n,t){return t.push(r(n)),t}))}(r),[],n)})),ot=function(r){return C(r),Hr[r]={e:Zr,u:function(r){var n=r.b;return o(ut,tn,m([at(r.a),n]))},a:_},R(r)}("output"),it=t((function(r,n){return b(r,n)})),ct=E,st=function(r){return o(et,wn("Error ("+r+") -> "),o(et,ct,o(et,it(!1),ot)))},ft=sr,lt=t((function(r,n){r:for(;;){if(-2===n.$)return vn;var t=n.c,e=n.d,a=n.e;switch(o(ft,r,n.b)){case 0:n=e;continue r;case 1:return mn(t);default:n=a;continue r}}})),bt=t((function(r,n){return n.$?vn:mn(r(n.a))})),pt=e((function(r,n,t){return{aX:t,dK:n,hf:r}})),dt=function(r){return r.length},ht=function(r){return i(e((function(r,n,t){r:for(;;){if(t.b){var e=t.a,a=t.b,u=dt(e),o=u+1;if(l(r,u))return i(pt,e,n,r);if(ir(r,u)>0){r-=o,n+=1,t=a;continue r}return i(pt,e,n,r)}return i(pt,"",n,r)}})),r.bJ,0,o(xn,"\n",r.fl))},gt={$:-2},mt=gt,vt=function(r){return""===r},wt=function(r){return-r},yt=t((function(r,n){return{cK:vt(n)?"":"?"+n,cM:lr,e4:"",bX:r,fi:lr,fn:"",fp:!1,fG:"",am:mt,bA:lr,gf:"en",gm:vn,go:"",dO:mt,gx:vn,gA:"US English Male",gL:"",at:lr,ep:-1,bR:mt,hE:{fB:b("“","”"),hc:b("‘","’")},eO:-1,hH:"0.0.1"}})),qt="https://LiaScript.github.io",xt=qt+"/course/?",kt="> The file you want me to load does not contain any content. Everything I see is only an empty string...\n \nIf you see this in message in an editor, try to copy and paste the following code:\n\n```` md\n\x3c!--\nauthor: Your Name\n\nemail: your@mail.org\n\nversion: 0.0.1\n\nlanguage: en\n\nnarrator: US English Female\n\ncomment: Try to write a short comment about\n your course, multiline is also okay.\n--\x3e\n\n# Course Main Title\n\nThis is your **course** initialization stub.\n\nPlease see the [Docs]("+xt+"https://raw.githubusercontent.com/liaScript/docs/master/README.md)\nto find out what is possible in [LiaScript]("+qt+').\n\nIf you want to use instant help in your Atom IDE, please type **lia** to see all available shortcuts.\n\n## Markdown\n\nYou can use common [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) syntax to create your course, such as:\n\n1. Lists\n2. ordered or\n\n * unordered\n * ones ...\n\n\n| Header 1 | Header 2 |\n| :--------- | :--------- |\n| Item 1 | Item 2 |\n\n\nImages:\n\n\n\n\n### Extensions\n\n --{{0}}--\nBut you can also include other features such as spoken text.\n\n --{{1}}--\nInsert any kind of audio file:\n\n {{1}}\n?[audio](https://bigsoundbank.com/UPLOAD/mp3/1068.mp3)\n\n\n --{{2}}--\nEven videos or change the language completely.\n\n {{2-3}}\n!?[video](https://www.youtube.com/watch?v=bICfKRyKTwE)\n\n\n --{{3 Russian Female}}--\nПервоначально создан в 2004 году Джоном Грубером (англ. John Gruber) и Аароном\nШварцем. Многие идеи языка были позаимствованы из существующих соглашений по\nразметке текста в электронных письмах...\n\n\n {{3}}\nType "voice" to see a list of all available languages.\n\n\n### Styling\n\n\x3c!-- class = "animated rollIn" style = "animation-delay: 2s; color: purple" --\x3e\nThe whole text-block should appear in purple color and with a wobbling effect.\nWhich is a **bad** example, please use it with caution ...\n~~ only this is red ;-) ~~ \x3c!-- class = "animated infinite bounce" style = "color: red;" --\x3e\n\n## Charts\n\nUse ASCII-Art to draw diagrams:\n\n Multiline\n 1.9 | DOTS\n | ***\n y | * *\n - | r r r r r r r*r r r r*r r r r r r r\n a | * *\n x | * *\n i | B B B B B * B B B B B B * B B B B B\n s | * *\n | * * * * * *\n -1 +------------------------------------\n 0 x-axis 1\n\n## Quizzes\n\n### A Textquiz\n\nWhat did the **fish** say when he hit a **concrete wall**?\n\n [[dam]]\n\n### Multiple Choice\n\nJust add as many points as you wish:\n\n [[X]] Only the **X** marks the correct point.\n [[ ]] Empty ones are wrong.\n [[X]] ...\n\n### Single Choice\n\nJust add as many points as you wish:\n\n [( )] ...\n [(X)] <-- Only the **X** is allowed.\n [( )] ...\n\n\n## Executable Code\n\nYou can make your code executable and define projects:\n\n``` js -EvalScript.js\nlet who = data.first_name + " " + data.last_name;\n\nif(data.online) {\n who + " is online"; }\nelse {\n who + " is NOT online"; }\n```\n``` json +Data.json\n{\n "first_name" : "Sammy",\n "last_name" : "Shark",\n "online" : true\n}\n```\n<script>\n // insert the JSON dataset into the local variable data\n let data = @input(1);\n\n // eval the script that uses this dataset\n eval(`@input(0)`);\n<\/script>\n\n\n## More\n\nFind out what you also can do ...\n\n'+xt+"https://raw.githubusercontent.com/liaScript/docs/master/README.md\n````\n",$t=yr,Et=a((function(r,n,t,e){if(e.b){var a=e.a,u=e.b;if(u.b){var s=u.a,f=u.b;if(f.b){var l=f.a,b=f.b;if(b.b){var p=b.b;return o(r,a,o(r,s,o(r,l,o(r,b.a,t>500?i(kn,r,n,Rn(p)):c(Et,r,n,t+1,p)))))}return o(r,a,o(r,s,o(r,l,n)))}return o(r,a,o(r,s,n))}return o(r,a,n)}return n})),At=e((function(r,n,t){return c(Et,r,n,0,t)})),Dt=t((function(r,n){return i(At,t((function(n,t){return o(en,r(n),t)})),lr,n)})),Lt=wr,St=function(r){return o(Lt,r,"")},Rt=e((function(r,n,t){return r>0?i(Rt,r>>1,h(n,n),1&r?h(t,n):t):t})),Tt=t((function(r,n){return i(Rt,r,n,"")})),Nt=e((function(r,n,t){return h(o(Tt,r-dt(t),St(n)),t)})),Ct=t((function(r,n){var t=dt("\n\n"),e=ht(n),a=e.aX+t+2;return"Parse error around line: "+yn(e.dK)+"\n\n"+e.hf+"\n"+i(Nt,a," ","^")+"\nI expected one of the following:\n\n* "+o(qn,"\n* ",o(Dt,(function(r){return o($t,r,"\n")}),r))})),_t=t((function(r){return r})),Ot=function(r){return r},jt=t((function(r,n){return t((function(t,e){var a=i(Ot,n,t,e);if(a.c.$)return p(a.a,a.b,fn(a.c.a));var u=a.a,o=a.b;return i(Ot,r(a.c.a),u,o)}))})),It=e((function(r,n,t){return o(r,t,n)})),Bt=e((function(r,n,e){return t((function(t,a){var u=i(Ot,e,t,a);return p(u.a,u.b,u.c.$?fn(n(u.c.a)):dn(r(u.c.a)))}))})),Ut=t((function(r,n){return i(Bt,r,tn,n)})),Vt=t((function(r,n){return o(jt,o(It,Ut,r),n)})),Ht=t((function(r,n){return o(Vt,r,o(Ut,_t,n))})),zt=o(t((function(r,n){return{b5:r,cf:n}})),In,In),Gt=s(u((function(r,n,t,e,a){return{aD:t,da:n,gc:e,hg:a,hI:r}})),0,0,mt,In,vn),Pt=mt,Ft=i(e((function(r,n,t){return{fF:r,d0:n,ev:t}})),lr,In,In),Mt=t((function(r,n){return n.$?r:n.a})),Xt=e((function(r,n,t){return{R:{a0:!1,ae:lr},aC:zt,c5:t,ft:!1,b2:0,al:Gt,by:m([0]),dh:Pt,cc:In,dw:lr,dx:!1,k:{e9:Ft,fX:!1,ga:!1},cp:In,ct:o(Mt,tn,n),bc:o(Mt,0,r),cB:In,cC:In,cE:In}})),Kt=t((function(r,n){return o(Vt,r,o(Ut,It(_t),n))})),Zt=t((function(r,n){return t((function(t,e){var a=i(Ot,r,t,e);if(a.c.$){var u=a.c.a,o=i(Ot,n,t,e);return o.c.$?p(t,e,fn(h(u,o.c.a))):o}return a}))})),Jt=Bt(tn),Wt=t((function(r,n){return o(Jt,_t(m([r])),n)})),Qt=tn,Yt=o(Wt,"expected any character",(Xr=_t(!0),Qt(t((function(r,n){var t,e,a="could not satisfy predicate",u=(e=(t=n.k).charCodeAt(0),isNaN(e)?vn:mn(55296>e||e>56319?b(t[0],t.slice(1)):b(t[0]+t[1],t.slice(2))));if(u.$)return p(r,n,fn(m([a])));var o=u.a,i=o.a,c=o.b;return Xr(i)?p(r,d(n,{k:c,bJ:n.bJ+1}),dn(i)):p(r,n,fn(m([a])))}))))),re=t((function(r,n){return e((function(t,e,a){for(;;){var u=i(Ot,n,e,a);if(!u.c.$)return p(b=u.a,d=u.b,dn(Rn(t)));var c=u.a,s=u.b,f=u.c.a,l=i(Ot,r,e,a);if(l.c.$)return p(c,s,fn(f));var b=l.a,d=l.b;t=o(en,l.c.a,t),e=b,a=d}}))(lr)})),ne=Er,te=t((function(r,n){return 1>r?n:i(ne,r,dt(n),n)})),ee=Dr,ae=function(r){return t((function(n,t){if(o(ee,r,t.k)){var e=dt(r),a=t.bJ+e;return p(n,d(t,{k:o(te,e,t.k),bJ:a}),dn(r))}return p(n,t,fn(m(['expected "'+r+'"'])))}))},ue=function(r){return t((function(n,t){return p(n,t,dn(r))}))},oe=o(Kt,ue(lr),o(Ht,o(re,Yt,ae("--\x3e")),ae("\x3c!---"))),ie=a((function(r,n,t,e){return{dy:n,bH:r,gI:t,hm:e}})),ce=Wr,se=function(r){return o(ce,{aj:!1,aq:!1},r)},fe=Qr,le=/.^/,be=u((function(r,n,t,e,a){var u=o(ee,"^",t)?t:"^"+t,c=i(fe,1,o(Mt,le,r(u)),a.k);if(c.b&&!c.b.b){var s=c.a,f=dt(s.bH),l=a.bJ+f;return p(e,d(a,{k:o(te,f,a.k),bJ:l}),dn(n(s)))}return p(e,a,fn(m(["expected input matching Regexp /"+u+"/"])))})),pe=o(et,o(be,se,(function(r){return r.bH})),tn),de=o(Wt,"optional whitespace",pe("\\s*")),he=function(r){return o(Zt,oe,o(Kt,o(re,r,ae("--\x3e")),o(Ht,de,ae("\x3c!--"))))},ge=t((function(r,n){return p(r,n,fn(lr))})),me=function(r){return i(At,Zt,ge,r)},ve=function(r){return t((function(n,t){var e=i(Ot,r,n,t);return e.c.$?p(n,t,dn(vn)):p(e.a,e.b,dn(mn(e.c.a)))}))},we=ve(ae("@")),ye=o(Kt,pe("\\w+[\\w\\-.\\d]*"),we),qe=function(r){return m(r.trim().split(/\s+/g))},xe=o(et,qe,qn(" ")),ke=o(Ut,xe,pe("([ \t].*|[ \t]*\n)+")),$e=function(r){return v(r).join("")},Ee=function(r){return o(Ut,$e,o(re,Yt,r))},Ae=Ee(ae("\n@end")),De=o(Zt,o(Kt,ke,pe("[\t ]*:")),o(Kt,Ae,pe("[\t ]*\n"))),Le=o(Vt,De,o(Ut,it,ye)),Se=function(r){return Ut(_t(r))},Re=function(r){return o(Se,0,r)},Te=function(r){return{$:0,a:r}},Ne=function(r){return{$:2,a:r}},Ce=function(r){return{$:1,a:r}},_e=u((function(r,n,t,e,a){return{$:-1,a:r,b:n,c:t,d:e,e:a}})),Oe=u((function(r,n,t,e,a){if(-1!==a.$||a.a){if(-1!==e.$||e.a||-1!==e.d.$||e.d.a)return s(_e,r,n,t,e,a);var u=e.d;return o=e.e,s(_e,0,e.b,e.c,s(_e,1,u.b,u.c,u.d,u.e),s(_e,1,n,t,o,a))}var o,i=a.b,c=a.c,f=a.d,l=a.e;return-1!==e.$||e.a?s(_e,r,i,c,s(_e,0,n,t,e,f),l):s(_e,0,n,t,s(_e,1,e.b,e.c,e.d,o=e.e),s(_e,1,i,c,f,l))})),je=e((function(r,n,t){if(-2===t.$)return s(_e,0,r,n,gt,gt);var e=t.a,a=t.b,u=t.c,c=t.d,f=t.e;switch(o(ft,r,a)){case 0:return s(Oe,e,a,u,i(je,r,n,c),f);case 1:return s(_e,e,a,n,c,f);default:return s(Oe,e,a,u,c,i(je,r,n,f))}})),Ie=e((function(r,n,t){var e=i(je,r,n,t);return-1!==e.$||e.a?e:s(_e,1,e.b,e.c,e.d,e.e)})),Be=t((function(r,n){return d(n,{dO:i(Ie,r.a,r.b,n.dO)})})),Ue=t((function(r,n){return n.b?i(At,en,n,r):r})),Ve=function(r){return r.b?mn(r.a):vn},He=function(r){return r.toLowerCase()},ze=e((function(r,n,t){return function(r){switch(He(o(Mt,"",Ve(o(xn,":",r))))){case"https":case"http":case"data":case"file":case"hyper":case"dat":case"ipfs":case"ipns":case"blob":case"mailto":case"tel":return!0;default:return!1}}(t)||o(ee,"#",t)?t:h(r,h(t,n))})),Ge=u((function(r,n,t,e,a){return o(Ue,a,o(Dt,o(et,o(ze,n,t),r),qe(e)))})),Pe=e((function(r,n,t){return d(t,{at:s(Ge,r,t.bX,t.cK,n,t.at)})})),Fe=function(r){return r.trim()},Me=t((function(r,n){var t=o(xn," ",Fe(r));if(t.b){var e=t.a,a=t.b;return d(n,{am:i(Ie,o(ee,"\\",e)?e:"\\"+e,Fe(o(qn," ",a)),n.am)})}return n})),Xe=t((function(r,n){var t=o(xn,"/",n);r:for(;t.b&&t.b.b&&t.b.b.b;)switch(t.b.b.a){case"repos":if("api"===t.a&&"v1"===t.b.a)return"https://codeberg.org/api/v1/repos/"+o(qn,"/",t.b.b.b);break r;case"raw":if(t.b.b.b.b&&"branch"===t.b.b.b.a&&t.b.b.b.b.b){var e=t.b,a=e.b.b.b,u=a.a;return"https://codeberg.org/api/v1/repos/"+o(qn,"/",m([t.a,e.a,"raw",o(qn,"/",a.b)]))+"?ref="+u}break r;case"src":if(t.b.b.b.b&&"branch"===t.b.b.b.a&&t.b.b.b.b.b){var i=t.b,c=i.b.b.b;return u=c.a,"https://codeberg.org/api/v1/repos/"+o(qn,"/",m([t.a,i.a,"raw",o(qn,"/",c.b)]))+"?ref="+u}break r;default:break r}return"https://codeberg.org/"+n})),Ke=t((function(r,n){return"https://dl.dropbox.com/"+n})),Ze=e((function(r,n,t){return o(qn,n,o(xn,r,t))})),Je=t((function(r,n){return"https://raw.githubusercontent.com/"+function(){var r=o(xn,"/",n);r:for(;r.b&&r.b.b;){if(!r.b.b.b)return n+"/master/README.md";switch(r.b.b.a){case"tree":return i(Ze,"/tree/","/",n)+"/README.md";case"raw":if(r.b.b.b.b&&"refs"===r.b.b.b.a&&r.b.b.b.b.b&&"heads"===r.b.b.b.b.a)return i(Ze,"/raw/refs/heads","/refs/heads",n);break r;default:break r}}return i(Ze,"/blob/","/",n)}()})),We=function(r){return encodeURIComponent(r)},Qe=t((function(r,n){var t=o(Mt,n,Ve(o(xn,"?",n))),e=o(xn,"/",t);r:for(;e.b&&e.b.b&&e.b.b.b;)switch(e.b.b.a){case"projects":if("api"===e.a&&"v4"===e.b.a)return"https://gitlab.com/api/v4/projects/"+o(qn,"/",e.b.b.b);break r;case"-":if(!e.b.b.b.b||!e.b.b.b.b.b)break r;switch(e.b.b.b.a){case"raw":var a=e.b,u=a.b.b.b,i=u.a,c=u.b;return"https://gitlab.com/api/v4/projects/"+o(qn,"/",m([We(e.a+"/"+a.a),"repository/files",o(qn,"/",c),"raw"]))+"?ref="+i;case"blob":var s=e.b,f=s.b.b.b;return i=f.a,c=f.b,"https://gitlab.com/api/v4/projects/"+o(qn,"/",m([We(e.a+"/"+s.a),"repository/files",o(qn,"/",c),"raw"]))+"?ref="+i;default:break r}default:break r}return"https://gitlab.com/"+n})),Ye=t((function(r,n){return 1>r?n:i(ne,0,-r,n)})),ra=function(r){switch(r){case 0:return"A";case 1:return"B";case 2:return"C";case 3:return"D";case 4:return"E";case 5:return"F";case 6:return"G";case 7:return"H";case 8:return"I";case 9:return"J";case 10:return"K";case 11:return"L";case 12:return"M";case 13:return"N";case 14:return"O";case 15:return"P";case 16:return"Q";case 17:return"R";case 18:return"S";case 19:return"T";case 20:return"U";case 21:return"V";case 22:return"W";case 23:return"X";case 24:return"Y";case 25:return"Z";case 26:return"a";case 27:return"b";case 28:return"c";case 29:return"d";case 30:return"e";case 31:return"f";case 32:return"g";case 33:return"h";case 34:return"i";case 35:return"j";case 36:return"k";case 37:return"l";case 38:return"m";case 39:return"n";case 40:return"o";case 41:return"p";case 42:return"q";case 43:return"r";case 44:return"s";case 45:return"t";case 46:return"u";case 47:return"v";case 48:return"w";case 49:return"x";case 50:return"y";case 51:return"z";case 52:return"0";case 53:return"1";case 54:return"2";case 55:return"3";case 56:return"4";case 57:return"5";case 58:return"6";case 59:return"7";case 60:return"8";case 61:return"9";case 62:return"+";default:return"/"}},na=t((function(r,n){var t,e=n.a,a=n.b,u=n.c<<8|r;return 2===a?p(h(e,h(ra(63&(t=u)>>>18),h(ra(63&t>>>12),h(ra(63&t>>>6),ra(63&t>>>0))))),0,0):p(e,a+1,u)})),ta=t((function(r,n){var t,e,a=55296>(e=(t=r).charCodeAt(0))||e>56319?e:1024*(e-55296)+t.charCodeAt(1)-56320+65536;return 128>a?o(na,a,n):o(na,128|63&a,2048>a?o(na,192|a>>>6,n):o(na,128|63&a>>>6,55296>a||a>=57344&&65535>=a?o(na,224|a>>>12,n):o(na,128|63&a>>>12,o(na,240|a>>>18,n))))})),ea=qr,aa=p("",0,0),ua=Lr,oa=t((function(r,n){var t,e;return t=function(r){var n=r.a,t=r.c;switch(r.b){case 1:return n+(ra(63&t>>>2)+(ra(63&t<<4)+"=="));case 2:return n+(ra(63&t>>>10)+(ra(63&t>>>4)+(ra(63&t<<2)+"=")));default:return n}}(i(ea,ta,aa,"https://onedrive.live.com/"+n)),"https://api.onedrive.com/v1.0/shares/u!"+(o(ua,"=",e=i(Ze,"+","-",i(Ze,"/","_",t)))?o(Ye,1,e):e)+"/root/content"})),ia=t((function(r,n){r:for(;;){if(r>0){if(n.b){r-=1,n=n.b;continue r}return n}return n}})),ca=t((function(r,n){return i(At,t((function(n,t){return r(n)?o(en,n,t):t})),lr,n)})),sa=e((function(r,n,t){r:for(;;){if(r>0){if(n.b){var e=n.a;r-=1,n=n.b,t=o(en,e,t);continue r}return t}return t}})),fa=t((function(r,n){return Rn(i(sa,r,n,lr))})),la=e((function(r,n,t){if(n>0){var e=b(n,t);r:for(;;){n:for(;;){if(!e.b.b)return t;if(!e.b.b.b){if(1===e.a)break r;break n}switch(e.a){case 1:break r;case 2:var a=e.b;return m([a.a,a.b.a]);case 3:if(e.b.b.b.b){var u=e.b,c=u.b;return m([u.a,c.a,c.b.a])}break n;default:if(e.b.b.b.b&&e.b.b.b.b.b){var s=e.b,f=s.b,l=f.b,p=l.b,d=p.b;return o(en,s.a,o(en,f.a,o(en,l.a,o(en,p.a,r>1e3?o(fa,n-4,d):i(la,r+1,n-4,d)))))}break n}}return t}return m([e.b.a])}return lr})),ba=t((function(r,n){return i(la,0,r,n)})),pa=t((function(r,n){var t=o(Mt,n,Ve(o(xn,"?",n))),e=o(xn,"/",t),a=o(Mt,-1,o(bt,Mn,Ve(o(ca,(function(r){return"-"===r.b}),o(Sn,it,e))))),u=o(Mt,"",Ve(e)),i=a>1?o(qn,"/",o(ba,a-1,o(ia,1,e))):"",c=""!==(a>=0&&ir($n(e),a+1)>0?o(Mt,"",Ve(o(ia,a+1,e))):"")&&ir($n(e),a+2)>0?o(Mt,"main",Ve(o(ia,a+2,e))):"main",s=""!==c&&ir($n(e),a+3)>0?o(qn,"/",o(ia,a+3,e)):"README.md";return"https://"+u+"/api/v4/projects/"+We(i)+"/repository/files/"+We(s)+"/raw?ref="+c})),da=t((function(r,n){var t,e=(t=o(xn,"?",n)).b?t.a:n;return o(ua,"/download",e)?"https://"+e:"https://"+e+"/download"})),ha=wn("(?:http(?:s)?://)?(?:www\\.)?"),ga=ha("codeberg\\.org/(.*)"),ma=ha("dropbox\\.com/(.*)"),va=ha("github\\.com/(.*)"),wa=ha("gitlab\\.com/(.*)"),ya=ha("onedrive\\.live\\.com/(.*)"),qa=o(et,se,Mt(le)),xa=t((function(r,n){var t=Ve(i(fe,1,qa(r),n));return t.$?vn:o(Mt,vn,Ve(t.a.hm))})),ka=t((function(r,n){r:for(;;){if(r.b){var t=r.a,e=r.b,a=o(xa,t.F,n);if(a.$){r=e;continue r}return b(!0,o(t.D,n,a.a))}return b(!1,n)}})),$a=function(r){return r.b},Ea=function(r){return o(ee,"https://api.allorigins.win/raw?url=",r)?r:o(ka,m([{D:Je,F:va},{D:Ke,F:ma},{D:oa,F:ya},{D:Xe,F:ha(ga)},{D:Qe,F:wa},{D:pa,F:"gitlab://(.*)"},{D:da,F:"nextcloud://(.*)"}]),r).b},Aa=t((function(r,n){return d(n,{bA:s(Ge,Ea,n.bX,n.cK,r,n.bA)})})),Da=t((function(r,n){var t=qe(r);return t.b&&t.b.b&&!t.b.b.b?d(n,{bR:i(Ie,t.a,i(ze,n.bX,n.cK,t.b.a),n.bR)}):n})),La=e((function(r,n,t){return{$:3,a:r,b:n,c:t}})),Sa=t((function(r,n){return{$:2,a:r,b:n}})),Ra=t((function(r,n){return{$:0,a:r,b:n}})),Ta=t((function(r,n){return{$:14,a:r,b:n}})),Na=t((function(r,n){return{$:11,a:r,b:n}})),Ca=e((function(r,n,t){return{$:5,a:r,b:n,c:t}})),_a=t((function(r,n){return{$:13,a:r,b:n}})),Oa=e((function(r,n,t){return{$:2,a:r,b:n,c:t}})),ja=t((function(r,n){return{$:3,a:r,b:n}})),Ia=e((function(r,n,t){return{$:0,a:r,b:n,c:t}})),Ba=e((function(r,n,t){return{$:1,a:r,b:n,c:t}})),Ua=e((function(r,n,t){return{$:4,a:r,b:n,c:t}})),Va=function(r){return{$:6,a:r}},Ha=function(r){return{$:7,a:r}},za=t((function(r,n){return{$:8,a:r,b:n}})),Ga=t((function(r,n){return{$:15,a:r,b:n}})),Pa=t((function(r,n){return{$:9,a:r,b:n}})),Fa=t((function(r,n){return{$:12,a:r,b:n}})),Ma=t((function(r,n){return{$:4,a:r,b:n}})),Xa=t((function(r,n){return{$:6,a:r,b:n}})),Ka=t((function(r,n){return{$:5,a:r,b:n}})),Za=w,Ja=function(r){return r.a},Wa=function(r){return t((function(n,t){return i(Ot,ue(0),r(n),t)}))},Qa=ur,Ya=4294967295>>>32-jn,ru=function(r){return[r]},nu=er,tu=ar,eu=a((function(r,n,t,e){var a=Ya&n>>>r;if(ir(a,Hn(e))>-1){if(5===r)return o(Qa,Un(t),e);var u=Gn(c(eu,r-jn,n,t,Cn));return o(Qa,u,e)}var s=o(nu,a,e);return s.$?(u=Gn(c(eu,r-jn,n,t,ru(s))),i(tu,a,u,e)):(u=Gn(c(eu,r-jn,n,t,s.a)),i(tu,a,u,e))})),au=t((function(r,n){var t=n.a,e=n.b,a=n.c,u=Hn(n.d),o=Hn(r),i=t+(o-u);if(l(o,Tn)){if(ir(i>>>jn,1<<e)>0){var s=e+jn,f=c(eu,s,t,r,ru(Gn(a)));return c(Nn,i,s,f,Cn)}return c(Nn,i,e,c(eu,e,t,r,a),Cn)}return c(Nn,i,e,a,r)})),uu=t((function(r,n){return o(au,o(Qa,r,n.d),n)})),ou=t((function(r,n){var t=r.ev;return d(n,{d0:o(uu,r.d0,n.d0),ev:o(uu,t,n.ev)})})),iu=function(r){return t((function(n,t){return i(Ot,r(n),n,t)}))},cu=function(r){var n=r.a,t=r.b;return o(Ht,Wa((function(r){var n=r.k;return n.ga||n.fX?d(r,{k:d(n,{e9:o(ou,t,n.e9)})}):r})),iu((function(r){return ue(b(Za(.4*(n+2))+"em",r.k.ga||r.k.fX?Ja(r.k.e9.d0):-1))})))},su=function(r){return Wa((function(n){return d(n,{R:{a0:!1,ae:o(en,r,n.R.ae)}})}))},fu=u((function(r,n,t,e,a){return{e3:n,cN:e,cZ:t,eR:a,hI:r}})),lu=t((function(r,n){return{cZ:n,gA:r}})),bu=t((function(r,n){return 1===r.$?n:o(uu,r.a,n)})),pu=e((function(r,n,t){for(;;){var e=o(Pn,Tn,r),a=e.a,u=e.b;if(0>ir(Hn(a),Tn))return o(Kn,!0,{o:n,j:t,n:a});r=u,n=o(en,Un(a),n),t+=1}})),du=t((function(r,n){r:for(;n.b&&9===n.a.$;)switch(n.a.a.$){case 3:if(n.a.a.b.a)break r;var t=n.b;return{cN:mn(n.a.a.b.b),aK:t,eR:vn};case 4:if(n.a.a.b.a)break r;return{cN:vn,aK:t=n.b,eR:mn(n.a.a.b.b)};default:break r}var e;return r?d(e=o(du,!1,Rn(n)),{aK:Rn(e.aK)}):{cN:vn,aK:n,eR:vn}})),hu=t((function(r,n){var t=n.a,e=n.b,a=n.c;return o(jt,(function(r){return ue(b(t,r))}),o(Kt,function(r){return iu((function(n){var t;return ue((t=o(lt,r,n.al.aD)).$?0:Ja(t.a.cZ)-1)}))}(t),Wa((function(n){var u,c,f,l,b;return d(n,{al:(u=n.al,c=o(du,!0,a),f=c.cN,l=c.eR,b=c.aK,d(u,{aD:function(){var a=o(lt,t,u.aD);if(a.$)return i(Ie,t,o(lu,o(Mt,n.c5.gA,o(bt,Fe,e)),(c=m([s(fu,r,lr,b,o(bu,f,In),o(bu,l,In))])).b?i(pu,c,lr,0):In),u.aD);var c,p=a.a;return i(Ie,t,d(p,{cZ:o(uu,s(fu,r,lr,b,o(bu,f,In),o(bu,l,In)),p.cZ)}),u.aD)}()}))})}))))})),gu=function(r){return t((function(n,t){return p(n,t,fn(m([r])))}))},mu=o(Wt,"expected an int",o(jt,o(et,(function(r){for(var n=0,t=r.charCodeAt(0),e=43==t||45==t?1:0,a=e;r.length>a;++a){var u=r.charCodeAt(a);if(48>u||u>57)return vn;n=10*n+u-48}return a==e?vn:mn(45==t?-n:n)}),(function(r){return r.$?gu("impossible state in Combine.Num.unwrap"):ue(r.a)})),pe("-?(?:0|[1-9]\\d*)"))),vu=o(jt,(function(r){return o(Kt,ue(r),Wa((function(n){return d(n,{al:ir(r,n.al.da)>0?d(n.al,{da:r}):n.al,by:o(en,r,n.by)})})))}),mu),wu=o(Ut,dt,pe("(`){3,}")),yu=function(r){return o(qn,"",r)},qu=o(Ht,Wa(t((function(r,n){return d(n,{dx:r})}))(!1)),iu((function(r){return l(r.dw,lr)?ue(0):Re(r.dx?ue(0):pe(yu(r.dw)))}))),xu=function(r){return m([r])},ku=function(r){var n=o(Tt,r,"`");return o(Ut,o(et,yu,o(et,Ye(1),xu)),o(re,o(Kt,pe("(.(?!"+n+"))*\n?"),ve(qu)),o(Kt,ae(n),ve(qu))))},$u=t((function(r,n){return r?"<lia-keep><pre id='ls'><code style='background: #CCCCCC; white-space: pre;'>"+n+"</code></pre></lia-keep>":n})),Eu=Yr(nn),Au=e((function(r,n,t){var e=se(r);return e.$?t:i(Eu,e.a,n,t)})),Du=t((function(r,n){var t=o(ee,"@@",r)?p(!0,!0,o(te,2,r)):o(ee,"@-@",r)?p(!0,!1,o(te,3,r)):p(!1,!1,o(te,1,r)),e=t.a,a=t.b,u=t.c;return o(bt,(function(r){return p(e,a,r)}),function(){switch(u){case"author":return mn(n.e4);case"date":return mn(n.fn);case"email":return mn(n.fG);case"version":return mn(n.hH);case"section":return mn(yn(n.ep));case"uid":return mn(yn(n.ep)+"_"+yn(n.eO));default:return o(lt,u,n.dO)}}())})),Lu="iex3OAQpP4u3QT9xq",Su=o(Ze,"\\@",Lu),Ru=function(r){return m(r.split(/\r\n|\r|\n/g))},Tu=function(r){var n=e((function(n,t,e){for(;;){var a=i(Ot,r,t,e);if(a.c.$)return p(t,e,Rn(n));var u=a.a,c=a.b,s=a.c.a;if(l(e,c))return p(u,c,Rn(n));n=o(en,s,n),t=u,e=c}}));return t((function(r,t){var e=i(n,lr,r,t);return p(e.a,e.b,dn(e.c))}))},Nu=function(r){return o(Vt,Tu(r),o(Ut,en,r))},Cu=t((function(r,n){return b(n.a,r(n.b))})),_u=t((function(r,n){return o(Zt,n,ue(r))})),Ou=o(Ut,o(Ze,"\\`","`"),o(Ht,ae("`"),o(Kt,pe("([^`\n\\\\]*|\\\\`|\\\\)+"),ae("`")))),ju=me(m([o(jt,(function(r){return Ee(ae(o(Tt,r,"`")))}),wu),Ou,pe("[^),]+")])),Iu=o(e((function(r,n,t){return o(Ht,n,o(Kt,t,r))})),ae("("),ae(")")),Bu=t((function(r,n){return o(Vt,Tu(o(Kt,n,r)),o(Ut,en,n))})),Uu=o(_u,lr,Iu(o(t((function(r,n){return o(Zt,o(Bu,r,n),ue(lr))})),ae(","),ju))),Vu=pe("\\w[\\w\\d._]+"),Hu=o(Vt,o(_u,!1,o(Se,!0,ae("'"))),o(Ut,e((function(r,n,t){return b(h(r,t),n)})),pe("@-?@?"))),zu=o(Vt,Vu,Hu),Gu=function(r){return t((function(n,t){return i(Ot,ue(0),r,t)}))},Pu=o(Vt,o(Vt,iu((function(r){return ue(b(r.c5.bX,r.c5.cK))})),o(Ht,pe("(\\)|[^)]*\\))"),o(Vt,pe("[^) ]*"),o(Ut,e((function(r,n,t){return o(Ue,r,m([i(ze,t.a,t.b,n)]))})),o(Ht,ae("]("),Uu))))),o(Ut,it,o(Vt,Vu,o(Ht,ae("["),Hu)))),Fu=e((function(r,n,t){return{fl:r,k:n,bJ:t}})),Mu=e((function(r,n,t){var e=i(Ot,r,n,function(r){return i(Fu,r,r,0)}(t));return e.c.$?fn(p(e.a,e.b,e.c.a)):dn(p(e.a,e.b,e.c.a))})),Xu=o(Vt,Uu,o(Ut,it,zu)),Ku=function(r){return i(Ze,"${","\\${",i(Ze,"\t","\\t",i(Ze,"\n","\\n",i(Ze,"`","\\`",i(Ze,"'","\\'",i(Ze,'"','\\"',i(Ze,"\\","\\\\",r)))))))},Zu=o(Se,b(b("@uid",!1),lr),o(Kt,Wa((function(r){var n=r.c5;return d(r,{c5:d(n,{eO:n.eO+1})})})),ae("@uid"))),Ju=o(Ze,Lu,"\\@"),Wu=t((function(r,n){var t=n.b,e=n.c,a=o(Yu,n.a,Su(r)),u=a.b;return p(a.a,t+1,Ju(i(Ze,"@"+yn(t),u,i(Ze,"@'"+yn(t),Ku(u),Su(e)))))})),Qu=t((function(r,n){var e=n.a,a=e.a,u=e.b,c=n.b;return iu((function(n){var e=o(Du,a,n.c5);if(e.$)return gu("macro definition not found");var s,f,b=e.a,h=b.a,g=b.b,m=b.c,v=r||l(n.dw,lr)?m:o(qn,"\n"+i(Ze,"*","",i(Ze,"?","",yu(n.dw))),Ru(m)),w=i(kn,Wu,p(n,0,v),c),y=w.c;return o(Ht,Gu(w.a),(s=wn((h?(f=g,o(et,o(Au,"[*+`{}#^|$\\[\\]]",o(et,(function(r){return r.bH}),wn("\\"))),o(et,o(Ze,"<","\\<"),o(et,o(Ze,">","\\>"),o(et,o(Ze,"\\\\`","`"),o(et,o(Ze,"\n","<br id='ls'>"),o(et,o(Au,"@[a-zA-Z]+[\\w\\d._\\-]*",(function(r){return"@input"!==r.bH?"@-"+r.bH:r.bH})),o(et,o(Ze,"\\<br id='ls'\\>","<br id='ls'>"),$u(f))))))))):tn)(u?Ku(y):y)),t((function(r,n){return i(Ot,ue(0),r,d(n,{k:s(n.k)}))}))))}))})),Yu=t((function(r,n){var t=i(Mu,o(Ut,yu,Nu(o(Zt,pe("@input[^@]+"),o(Kt,pe("[^@]+"),O())))),r,n);if(t.$)return b(r,n);var e=t.a,a=e.a,u=e.b,c=e.c;return""===u.k?b(a,c):o(Cu,wn(c),o(Yu,a,u.k))})),ro=O();O=function(){return ro};var no=j();j=function(){return no};var to,eo,ao,uo,oo=Wa((function(r){return d(r,{by:o(ia,1,r.by)})})),io=pe("[\t ]+"),co=Re(o(jt,hu(!1),o(Ht,oo,o(Vt,o(re,Yt,ae("--\x3e")),o(Ht,pe("}}--[\t ]*"),o(Vt,ve(o(Kt,pe("[A-Za-z0-9 ]+"),o(Kt,ro,io))),o(Ut,e((function(r,n,t){return p(r,n,m([o(Ra,Fe($e(t)),lr)]))})),o(Kt,vu,pe("\x3c!--[\t ]*--{{"))))))))),so=Re(Tu(me(m([Re(oe),co])))),fo=e((function(r,n,t){var e=t.a,a=t.b;return b(e,"src"===e||"href"===e||"data"===e||"data-src"===e||"formaction"===e||"poster"===e?i(ze,r,n,a):a)})),lo=(to=m([b("Aacute","Á"),b("aacute","á"),b("Abreve","Ă"),b("abreve","ă"),b("ac","∾"),b("acd","∿"),b("acE","∾̳"),b("Acirc","Â"),b("acirc","â"),b("acute","´"),b("Acy","А"),b("acy","а"),b("AElig","Æ"),b("aelig","æ"),b("af",""),b("Afr","𝔄"),b("afr","𝔞"),b("Agrave","À"),b("agrave","à"),b("alefsym","ℵ"),b("aleph","ℵ"),b("Alpha","Α"),b("alpha","α"),b("Amacr","Ā"),b("amacr","ā"),b("amalg","⨿"),b("amp","&"),b("AMP","&"),b("andand","⩕"),b("And","⩓"),b("and","∧"),b("andd","⩜"),b("andslope","⩘"),b("andv","⩚"),b("ang","∠"),b("ange","⦤"),b("angle","∠"),b("angmsdaa","⦨"),b("angmsdab","⦩"),b("angmsdac","⦪"),b("angmsdad","⦫"),b("angmsdae","⦬"),b("angmsdaf","⦭"),b("angmsdag","⦮"),b("angmsdah","⦯"),b("angmsd","∡"),b("angrt","∟"),b("angrtvb","⊾"),b("angrtvbd","⦝"),b("angsph","∢"),b("angst","Å"),b("angzarr","⍼"),b("Aogon","Ą"),b("aogon","ą"),b("Aopf","𝔸"),b("aopf","𝕒"),b("apacir","⩯"),b("ap","≈"),b("apE","⩰"),b("ape","≊"),b("apid","≋"),b("apos","'"),b("ApplyFunction",""),b("approx","≈"),b("approxeq","≊"),b("Aring","Å"),b("aring","å"),b("Ascr","𝒜"),b("ascr","𝒶"),b("Assign","≔"),b("ast","*"),b("asymp","≈"),b("asympeq","≍"),b("Atilde","Ã"),b("atilde","ã"),b("Auml","Ä"),b("auml","ä"),b("awconint","∳"),b("awint","⨑"),b("backcong","≌"),b("backepsilon","϶"),b("backprime","‵"),b("backsim","∽"),b("backsimeq","⋍"),b("Backslash","∖"),b("Barv","⫧"),b("barvee","⊽"),b(