/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.2.1 (2020-03-25) */ !function(j){"use strict";function u(){}var q=function(n,r){return function(){for(var e=[],t=0;t=i.length&&n(r)}}(t))})})}var ln,fn,dn,hn=un.exports.boltExport,mn=function(e){var n=D.none(),t=[],r=function(e){o()?a(e):t.push(e)},o=function(){return n.isSome()},i=function(e){U(e,a)},a=function(t){n.each(function(e){j.setTimeout(function(){t(e)},0)})};return e(function(e){n=D.some(e),i(t),t=[]}),{get:r,map:function(n){return mn(function(t){r(function(e){t(n(e))})})},isReady:o}},gn={nu:mn,pure:function(t){return mn(function(e){e(t)})}},pn=function(n){function e(e){n().then(e,cn)}return{map:function(e){return pn(function(){return n().then(e)})},bind:function(t){return pn(function(){return n().then(function(e){return t(e).toPromise()})})},anonBind:function(e){return pn(function(){return n().then(function(){return e.toPromise()})})},toLazy:function(){return gn.nu(e)},toCached:function(){var e=null;return pn(function(){return null===e&&(e=n()),e})},toPromise:n,get:e}},vn={nu:function(e){return pn(function(){return new hn(e)})},pure:function(e){return pn(function(){return hn.resolve(e)})}},yn=function(e){return sn(e,vn.nu)},bn=function(n){return{is:function(e){return n===e},isValue:a,isError:s,getOr:$(n),getOrThunk:$(n),getOrDie:$(n),or:function(e){return bn(n)},orThunk:function(e){return bn(n)},fold:function(e,t){return t(n)},map:function(e){return bn(e(n))},mapError:function(e){return bn(n)},each:function(e){e(n)},bind:function(e){return e(n)},exists:function(e){return e(n)},forall:function(e){return e(n)},toOption:function(){return D.some(n)}}},Cn=function(n){return{is:s,isValue:s,isError:a,getOr:W,getOrThunk:function(e){return e()},getOrDie:function(){return function(e){return function(){throw new Error(e)}}(String(n))()},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return Cn(n)},mapError:function(e){return Cn(e(n))},each:u,bind:function(e){return Cn(n)},exists:s,forall:a,toOption:D.none}},wn={value:bn,error:Cn,fromOption:function(e,t){return e.fold(function(){return Cn(t)},bn)}},xn=window.Promise?window.Promise:(ln=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},fn=En.immediateFn||"function"==typeof j.setImmediate&&j.setImmediate||function(e){j.setTimeout(e,1)},En.prototype["catch"]=function(e){return this.then(null,e)},En.prototype.then=function(n,r){var o=this;return new En(function(e,t){Nn.call(o,new An(n,r,e,t))})},En.all=function(){var c=Array.prototype.slice.call(1===arguments.length&&ln(arguments[0])?arguments[0]:arguments);return new En(function(o,i){if(0===c.length)return o([]);var a=c.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},i)}c[t]=e,0==--a&&o(c)}catch(r){i(r)}}for(var e=0;e\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cr=/[<>&\"\']/g,wr=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,xr={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};or={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},ir={"<":"<",">":">","&":"&",""":'"',"'":"'"};function zr(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n>10),56320+(1023&t))):xr[t]||String.fromCharCode(t):ir[e]||rr[e]||function(e){var t;return(t=at.fromTag("div").dom()).innerHTML=e,t.textContent||t.innerText||e}(e)})}},Tr={},Ar={},Mr=Jn.makeMap,Rr=Jn.each,Dr=Jn.extend,_r=Jn.explode,Or=Jn.inArray,Hr=function(e,t){return(e=Jn.trim(e))?e.split(t||" "):[]},Br=function(e){function t(e,t,n){function r(e,t){var n,r,o={};for(n=0,r=e.length;n