@blockly/dev-tools
Version:
A library of common utilities for Blockly extension development.
2 lines • 949 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
!function(l,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("blockly/core"),require("blockly/dart"),require("blockly/javascript"),require("blockly/lua"),require("blockly/php"),require("blockly/python"));else if("function"==typeof define&&define.amd)define(["blockly/core","blockly/dart","blockly/javascript","blockly/lua","blockly/php","blockly/python"],n);else{var e="object"==typeof exports?n(require("blockly/core"),require("blockly/dart"),require("blockly/javascript"),require("blockly/lua"),require("blockly/php"),require("blockly/python")):n(l.Blockly,l["Blockly.Dart"],l["Blockly.JavaScript"],l["Blockly.Lua"],l["Blockly.PHP"],l["Blockly.Python"]);for(var t in e)("object"==typeof exports?exports:l)[t]=e[t]}}(this,((__WEBPACK_EXTERNAL_MODULE__6370__,__WEBPACK_EXTERNAL_MODULE__3379__,__WEBPACK_EXTERNAL_MODULE__9127__,__WEBPACK_EXTERNAL_MODULE__5157__,__WEBPACK_EXTERNAL_MODULE__6537__,__WEBPACK_EXTERNAL_MODULE__8557__)=>(()=>{var __webpack_modules__={90:(l,n,e)=>{"use strict";var t=e(9740);l.exports=function(l){return t(l).toLowerCase()}},154:(l,n,e)=>{e(6708);var t=e(2255),u=e(752);l.exports=function(l,n,e,o){var r={colors:o,depth:void 0===e?2:e,showHidden:n,truncate:u.truncateThreshold?u.truncateThreshold:1/0};return t.inspect(l,r)}},182:(l,n,e)=>{l=e.nmd(l);var t="__lodash_hash_undefined__",u=9007199254740991,o="[object Arguments]",r="[object Function]",i="[object Object]",a=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[r]=c["[object Map]"]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d,p,f,h="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,m="object"==typeof self&&self&&self.Object===Object&&self,y=h||m||Function("return this")(),g=n&&!n.nodeType&&n,b=g&&l&&!l.nodeType&&l,v=b&&b.exports===g,_=v&&h.process,w=function(){try{return b&&b.require&&b.require("util").types||_&&_.binding&&_.binding("util")}catch(l){}}(),k=w&&w.isTypedArray,x=Array.prototype,E=Function.prototype,T=Object.prototype,O=y["__core-js_shared__"],A=E.toString,S=T.hasOwnProperty,C=(d=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",j=T.toString,P=A.call(Object),M=RegExp("^"+A.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=v?y.Buffer:void 0,I=y.Symbol,B=y.Uint8Array,L=(N&&N.allocUnsafe,p=Object.getPrototypeOf,f=Object,function(l){return p(f(l))}),R=Object.create,D=T.propertyIsEnumerable,F=x.splice,q=I?I.toStringTag:void 0,H=function(){try{var l=il(Object,"defineProperty");return l({},"",{}),l}catch(l){}}(),U=N?N.isBuffer:void 0,z=Math.max,W=Date.now,V=il(y,"Map"),K=il(Object,"create"),X=function(){function l(){}return function(n){if(!vl(n))return{};if(R)return R(n);l.prototype=n;var e=new l;return l.prototype=void 0,e}}();function G(l){var n=-1,e=null==l?0:l.length;for(this.clear();++n<e;){var t=l[n];this.set(t[0],t[1])}}function J(l){var n=-1,e=null==l?0:l.length;for(this.clear();++n<e;){var t=l[n];this.set(t[0],t[1])}}function $(l){var n=-1,e=null==l?0:l.length;for(this.clear();++n<e;){var t=l[n];this.set(t[0],t[1])}}function Y(l){var n=this.__data__=new J(l);this.size=n.size}function Z(l,n,e){(void 0!==e&&!pl(l[n],e)||void 0===e&&!(n in l))&&nl(l,n,e)}function Q(l,n,e){var t=l[n];S.call(l,n)&&pl(t,e)&&(void 0!==e||n in l)||nl(l,n,e)}function ll(l,n){for(var e=l.length;e--;)if(pl(l[e][0],n))return e;return-1}function nl(l,n,e){"__proto__"==n&&H?H(l,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):l[n]=e}G.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},G.prototype.delete=function(l){var n=this.has(l)&&delete this.__data__[l];return this.size-=n?1:0,n},G.prototype.get=function(l){var n=this.__data__;if(K){var e=n[l];return e===t?void 0:e}return S.call(n,l)?n[l]:void 0},G.prototype.has=function(l){var n=this.__data__;return K?void 0!==n[l]:S.call(n,l)},G.prototype.set=function(l,n){var e=this.__data__;return this.size+=this.has(l)?0:1,e[l]=K&&void 0===n?t:n,this},J.prototype.clear=function(){this.__data__=[],this.size=0},J.prototype.delete=function(l){var n=this.__data__,e=ll(n,l);return!(e<0||(e==n.length-1?n.pop():F.call(n,e,1),--this.size,0))},J.prototype.get=function(l){var n=this.__data__,e=ll(n,l);return e<0?void 0:n[e][1]},J.prototype.has=function(l){return ll(this.__data__,l)>-1},J.prototype.set=function(l,n){var e=this.__data__,t=ll(e,l);return t<0?(++this.size,e.push([l,n])):e[t][1]=n,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(V||J),string:new G}},$.prototype.delete=function(l){var n=rl(this,l).delete(l);return this.size-=n?1:0,n},$.prototype.get=function(l){return rl(this,l).get(l)},$.prototype.has=function(l){return rl(this,l).has(l)},$.prototype.set=function(l,n){var e=rl(this,l),t=e.size;return e.set(l,n),this.size+=e.size==t?0:1,this},Y.prototype.clear=function(){this.__data__=new J,this.size=0},Y.prototype.delete=function(l){var n=this.__data__,e=n.delete(l);return this.size=n.size,e},Y.prototype.get=function(l){return this.__data__.get(l)},Y.prototype.has=function(l){return this.__data__.has(l)},Y.prototype.set=function(l,n){var e=this.__data__;if(e instanceof J){var t=e.__data__;if(!V||t.length<199)return t.push([l,n]),this.size=++e.size,this;e=this.__data__=new $(t)}return e.set(l,n),this.size=e.size,this};function el(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":q&&q in Object(l)?function(l){var n=S.call(l,q),e=l[q];try{l[q]=void 0;var t=!0}catch(l){}var u=j.call(l);return t&&(n?l[q]=e:delete l[q]),u}(l):function(l){return j.call(l)}(l)}function tl(l){return _l(l)&&el(l)==o}function ul(l,n,e,t,u){l!==n&&function(l,n,e){for(var t=-1,u=Object(l),o=e(l),r=o.length;r--;){var i=o[++t];if(!1===n(u[i],i,u))break}}(n,(function(o,r){if(u||(u=new Y),vl(o))!function(l,n,e,t,u,o,r){var a=cl(l,e),s=cl(n,e),c=r.get(s);if(c)Z(l,e,c);else{var d,p,f,h,m,y=o?o(a,s,e+"",l,n,r):void 0,g=void 0===y;if(g){var b=hl(s),v=!b&&yl(s),_=!b&&!v&&wl(s);y=s,b||v||_?hl(a)?y=a:_l(m=a)&&ml(m)?y=function(l,n){var e=-1,t=l.length;for(n||(n=Array(t));++e<t;)n[e]=l[e];return n}(a):v?(g=!1,y=function(l){return l.slice()}(s)):_?(g=!1,h=new(f=(d=s).buffer).constructor(f.byteLength),new B(h).set(new B(f)),p=h,y=new d.constructor(p,d.byteOffset,d.length)):y=[]:function(l){if(!_l(l)||el(l)!=i)return!1;var n=L(l);if(null===n)return!0;var e=S.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&A.call(e)==P}(s)||fl(s)?(y=a,fl(a)?y=function(l){return function(l,n,e){var t=!e;e||(e={});for(var u=-1,o=n.length;++u<o;){var r=n[u],i=void 0;void 0===i&&(i=l[r]),t?nl(e,r,i):Q(e,r,i)}return e}(l,kl(l))}(a):vl(a)&&!gl(a)||(y=function(l){return"function"!=typeof l.constructor||sl(l)?{}:X(L(l))}(s))):g=!1}g&&(r.set(s,y),u(y,s,t,o,r),r.delete(s)),Z(l,e,y)}}(l,n,r,e,ul,t,u);else{var a=t?t(cl(l,r),o,r+"",l,n,u):void 0;void 0===a&&(a=o),Z(l,r,a)}}),kl)}var ol=H?function(l,n){return H(l,"toString",{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:Tl;function rl(l,n){var e,t,u=l.__data__;return("string"==(t=typeof(e=n))||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e)?u["string"==typeof n?"string":"hash"]:u.map}function il(l,n){var e=function(l,n){return null==l?void 0:l[n]}(l,n);return function(l){return!(!vl(l)||function(l){return!!C&&C in l}(l))&&(gl(l)?M:a).test(function(l){if(null!=l){try{return A.call(l)}catch(l){}try{return l+""}catch(l){}}return""}(l))}(e)?e:void 0}function al(l,n){var e=typeof l;return!!(n=null==n?u:n)&&("number"==e||"symbol"!=e&&s.test(l))&&l>-1&&l%1==0&&l<n}function sl(l){var n=l&&l.constructor;return l===("function"==typeof n&&n.prototype||T)}function cl(l,n){if(("constructor"!==n||"function"!=typeof l[n])&&"__proto__"!=n)return l[n]}var dl=function(l){var n=0,e=0;return function(){var t=W(),u=16-(t-e);if(e=t,u>0){if(++n>=800)return arguments[0]}else n=0;return l.apply(void 0,arguments)}}(ol);function pl(l,n){return l===n||l!=l&&n!=n}var fl=tl(function(){return arguments}())?tl:function(l){return _l(l)&&S.call(l,"callee")&&!D.call(l,"callee")},hl=Array.isArray;function ml(l){return null!=l&&bl(l.length)&&!gl(l)}var yl=U||function(){return!1};function gl(l){if(!vl(l))return!1;var n=el(l);return n==r||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}function bl(l){return"number"==typeof l&&l>-1&&l%1==0&&l<=u}function vl(l){var n=typeof l;return null!=l&&("object"==n||"function"==n)}function _l(l){return null!=l&&"object"==typeof l}var wl=k?function(l){return function(n){return l(n)}}(k):function(l){return _l(l)&&bl(l.length)&&!!c[el(l)]};function kl(l){return ml(l)?function(l,n){var e=hl(l),t=!e&&fl(l),u=!e&&!t&&yl(l),o=!e&&!t&&!u&&wl(l),r=e||t||u||o,i=r?function(l,n){for(var e=-1,t=Array(l);++e<l;)t[e]=n(e);return t}(l.length,String):[],a=i.length;for(var s in l)!n&&!S.call(l,s)||r&&("length"==s||u&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||al(s,a))||i.push(s);return i}(l,!0):function(l){if(!vl(l))return function(l){var n=[];if(null!=l)for(var e in Object(l))n.push(e);return n}(l);var n=sl(l),e=[];for(var t in l)("constructor"!=t||!n&&S.call(l,t))&&e.push(t);return e}(l)}var xl,El=(xl=function(l,n,e){ul(l,n,e)},function(l,n){return dl(function(l,n,e){return n=z(void 0===n?l.length-1:n,0),function(){for(var t=arguments,u=-1,o=z(t.length-n,0),r=Array(o);++u<o;)r[u]=t[n+u];u=-1;for(var i=Array(n+1);++u<n;)i[u]=t[u];return i[n]=e(r),function(l,n,e){switch(e.length){case 0:return l.call(n);case 1:return l.call(n,e[0]);case 2:return l.call(n,e[0],e[1]);case 3:return l.call(n,e[0],e[1],e[2])}return l.apply(n,e)}(l,this,i)}}(l,n,Tl),l+"")}((function(l,n){var e=-1,t=n.length,u=t>1?n[t-1]:void 0,o=t>2?n[2]:void 0;for(u=xl.length>3&&"function"==typeof u?(t--,u):void 0,o&&function(l,n,e){if(!vl(e))return!1;var t=typeof n;return!!("number"==t?ml(e)&&al(n,e.length):"string"==t&&n in e)&&pl(e[n],l)}(n[0],n[1],o)&&(u=t<3?void 0:u,t=1),l=Object(l);++e<t;){var r=n[e];r&&xl(l,r,e)}return l})));function Tl(l){return l}l.exports=El},251:l=>{"use strict";l.exports=function(l){return l instanceof Date}},256:(l,n,e)=>{"use strict";var t=e(8432).prototypes.array,u=e(5887),o=t.forEach,r=t.push;function i(l,n,e,t){t&&(n.injectInto&&!(e in n.injectInto)?(n.injectInto[e]=t,r(l.injectedKeys,e)):r(l.args,t))}l.exports=function(l){if(!l)return new u;var n=function(l){var n=new u;return l.useFakeServer&&("object"==typeof l.useFakeServer&&(n.serverPrototype=l.useFakeServer),n.useFakeServer()),l.useFakeTimers&&("object"==typeof l.useFakeTimers?n.useFakeTimers(l.useFakeTimers):n.useFakeTimers()),n}(l);n.args=n.args||[],n.injectedKeys=[],n.injectInto=l.injectInto;var e=n.inject({});return l.properties?o(l.properties,(function(t){var u=e[t]||"sandbox"===t&&n;i(n,l,t,u)})):i(n,l,"sandbox"),n}},374:(l,n,e)=>{var t=e(9731),u=e(3226),o=e(3993),r=e(8316);l.exports=function(l,n,e){var i=Object.getOwnPropertyDescriptor(l,n),a=function(){};i&&"function"==typeof i.get&&(a=i.get),Object.defineProperty(l,n,{get:function l(){o()||u(this,"lockSsfi")||u(this,"ssfi",l);var n=u(this,"lockSsfi");u(this,"lockSsfi",!0);var i=e(a).call(this);if(u(this,"lockSsfi",n),void 0!==i)return i;var s=new t.Assertion;return r(this,s),s},configurable:!0})}},483:(l,n,e)=>{"use strict";var t=e(621),u=e(7513),o=e(8432).prototypes.object.hasOwnProperty,r=e(8432).valueToString;function i(l,n){for(var e in n)o(l,e)||(l[e]=n[e])}var a="keys"in Object;l.exports=function(l,n,e){if(!l)throw new TypeError("Should wrap property of object");if("function"!=typeof e&&"object"!=typeof e)throw new TypeError("Method wrapper should be a function or a property descriptor");function s(l){var e,t;if("function"==typeof(t=l)||Boolean(t&&t.constructor&&t.call&&t.apply)){if(l.restore&&l.restore.sinon)e=new TypeError("Attempted to wrap "+r(n)+" which is already wrapped");else if(l.calledBefore){var u=l.returns?"stubbed":"spied on";e=new TypeError("Attempted to wrap "+r(n)+" which is already "+u)}}else e=new TypeError("Attempted to wrap "+typeof l+" property "+r(n)+" as function");if(e)throw l&&l.stackTraceError&&(e.stack+="\n--------------\n"+l.stackTraceError.stack),e}var c,d,p,f;function h(){s(d=l[n]),l[n]=e,e.displayName=n}var m=l.hasOwnProperty?l.hasOwnProperty(n):o(l,n);if(a){var y="function"==typeof e?{value:e}:e;if((f=t(l,n))?f.restore&&f.restore.sinon&&(c=new TypeError("Attempted to wrap "+n+" which is already wrapped")):c=new TypeError("Attempted to wrap "+typeof d+" property "+n+" as function"),c)throw f&&f.stackTraceError&&(c.stack+="\n--------------\n"+f.stackTraceError.stack),c;var g=Object.keys(y);for(p=0;p<g.length;p++)s(d=f[g[p]]);for(i(y,f),p=0;p<g.length;p++)i(y[g[p]],f[g[p]]);Object.defineProperty(l,n,y),"function"==typeof e&&l[n]!==e&&(delete l[n],h())}else h();return u.nonEnum(e,{displayName:n,wrappedMethod:d,stackTraceError:new Error("Stack Trace for original"),restore:function(){if(m)a&&Object.defineProperty(l,n,f);else try{delete l[n]}catch(l){}if(a){var u=t(l,n);u&&u.value===e&&(l[n]=d)}else l[n]===e&&(l[n]=d)}}),e.restore.sinon=!0,a||i(e,d),e}},505:(l,n,e)=>{"use strict";var t=e(8432).prototypes.object.toString;l.exports=function(l){return t(l).split(/[ \]]/)[1]}},621:l=>{"use strict";l.exports=function(l,n){for(var e,t=l,u=Boolean(l&&Object.getOwnPropertyDescriptor(l,n));t&&!(e=Object.getOwnPropertyDescriptor(t,n));)t=Object.getPrototypeOf(t);return e&&(e.isOwn=u),e}},705:l=>{l.exports=function(l,n){var e=l.Assertion;function t(){Object.defineProperty(Object.prototype,"should",{set:function(l){Object.defineProperty(this,"should",{value:l,enumerable:!0,configurable:!0,writable:!0})},get:function l(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new e(this.valueOf(),null,l):new e(this,null,l)},configurable:!0});var n={fail:function(e,t,u,o){throw arguments.length<2&&(u=e,e=void 0),u=u||"should.fail()",new l.AssertionError(u,{actual:e,expected:t,operator:o},n.fail)},equal:function(l,n,t){new e(l,t).to.equal(n)},Throw:function(l,n,t,u){new e(l,u).to.Throw(n,t)},exist:function(l,n){new e(l,n).to.exist},not:{}};return n.not.equal=function(l,n,t){new e(l,t).to.not.equal(n)},n.not.Throw=function(l,n,t,u){new e(l,u).to.not.Throw(n,t)},n.not.exist=function(l,n){new e(l,n).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}l.should=t,l.Should=t}},752:l=>{l.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null}},925:(l,n,e)=>{"use strict";function t(l,n,e){return new Promise(((t,o)=>{if(!e){const l=["../node_modules/@blockly/dev-tools/node_modules/monaco-editor/min/vs","../node_modules/monaco-editor/min/vs","https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.19.2/min/vs"];for(let n=0;n<l.length;n++)if(u(`${l[n]}/loader.js`)){e=l[n];break}}const r=()=>{const u=window.require;u.config({paths:{vs:e}}),u(["vs/editor/editor.main"],(()=>{t(function(l,n){const e=window.monaco.editor.create(l,n);return e.layout(),e}(l,n))}))};if(window.require)r();else{const l=document.createElement("script");l.type="text/javascript",l.setAttribute("src",`${e}/loader.js`),l.addEventListener("load",r),document.body.appendChild(l)}}))}function u(l){const n=new XMLHttpRequest;n.open("HEAD",l,!1);try{n.send()}catch(l){return!1}return 404!=n.status}e.d(n,{o:()=>t})},995:(l,n,e)=>{"use strict";var t={toString:function(){return this.message},or:function(l){var n=e(6869),u=n.isMatcher;if(!arguments.length)throw new TypeError("Matcher expected");var o=u(l)?l:n(l),r=this,i=Object.create(t);return i.test=function(l){return r.test(l)||o.test(l)},i.message=r.message+".or("+o.message+")",i},and:function(l){var n=e(6869),u=n.isMatcher;if(!arguments.length)throw new TypeError("Matcher expected");var o=u(l)?l:n(l),r=this,i=Object.create(t);return i.test=function(l){return r.test(l)&&o.test(l)},i.message=r.message+".and("+o.message+")",i}};l.exports=t},1041:(l,n,e)=>{"use strict";var t=e(2101);l.exports=t(String.prototype)},1055:l=>{"use strict";l.exports=function(l){return"undefined"!=typeof Set&&l instanceof Set||!1}},1118:(l,n,e)=>{var t=e(7893);n.test=e(4608),n.type=e(5855),n.expectTypes=e(5964),n.getMessage=e(7807),n.getActual=e(8808),n.inspect=e(154),n.objDisplay=e(3917),n.flag=e(3226),n.transferFlags=e(8316),n.eql=e(4964),n.getPathInfo=t.getPathInfo,n.hasProperty=t.hasProperty,n.getName=e(6708),n.addProperty=e(7444),n.addMethod=e(7180),n.overwriteProperty=e(374),n.overwriteMethod=e(6078),n.addChainableMethod=e(1949),n.overwriteChainableMethod=e(3863),n.compareByInspect=e(5682),n.getOwnEnumerablePropertySymbols=e(7806),n.getOwnEnumerableProperties=e(6491),n.checkError=e(1360),n.proxify=e(8515),n.addLengthGuard=e(5100),n.isProxyEnabled=e(3993),n.isNaN=e(1915),n.getOperator=e(7602)},1156:(l,n,e)=>{"use strict";var t=e(8432).valueToString;l.exports=function(l,n){if(n&&!l){var e=null===l?"null":"undefined";throw new Error("Trying to stub property '"+t(n)+"' of "+e)}}},1216:(l,n,e)=>{"use strict";var t=e(6935).sort,u=e(6935).slice;function o(l,n){var e=l.getCall(0),t=n.getCall(0);return(e&&e.callId||-1)<(t&&t.callId||-1)?-1:1}l.exports=function(l){return t(u(l),o)}},1337:(l,n,e)=>{"use strict";var t=e(8432).prototypes.array,u=e(9970),o=t.push,r=t.forEach,i=t.concat,a=Error.prototype.constructor,s=Function.prototype.bind,c=0;l.exports=function(l,n,e){var t,d,p=this.matchingFakes(e),f=c++;u.incrementCallCount(this),o(this.thisValues,n),o(this.args,e),o(this.callIds,f),r(p,(function(l){u.incrementCallCount(l),o(l.thisValues,n),o(l.args,e),o(l.callIds,f)})),u.createCallProperties(this),r(p,u.createCallProperties);try{this.invoking=!0,this.getCall(this.callCount-1).calledWithNew()?"object"!=typeof(d=new(s.apply(this.func||l,i([n],e))))&&(d=n):d=(this.func||l).apply(n,e)}catch(l){t=l}finally{delete this.invoking}o(this.exceptions,t),o(this.returnValues,d),r(p,(function(l){o(l.exceptions,t),o(l.returnValues,d)}));var h=new a;try{throw h}catch(l){}if(o(this.errorsWithCallStack,h),r(p,(function(l){o(l.errorsWithCallStack,h)})),u.createCallProperties(this),r(p,u.createCallProperties),void 0!==t)throw t;return d}},1348:(l,n,e)=>{"use strict";var t=e(8432).prototypes.array,u=e(8432).calledInOrder,o=e(3584).createMatcher,r=e(8432).orderByFirstCall,i=e(2763),a=e(1730),s=e(8432).prototypes.string.slice,c=e(8432).global,d=t.slice,p=t.concat,f=t.forEach,h=t.join,m=t.splice;function y(){var l;function n(){var e=d(arguments);f(e,(function(e){e||l.fail("fake is not a spy"),e.proxy&&e.proxy.isSinonProxy?n(e.proxy):("function"!=typeof e&&l.fail(e+" is not a function"),"function"!=typeof e.getCall&&l.fail(e+" is not stubbed"))}))}function e(n,e){var t=n||c;(t.fail||l.fail).call(t,e)}function t(t,u,o){var r=o,i=u;2===arguments.length&&(r=u,i=t),l[t]=function(u){n(u);var o=d(arguments,1);!function(n,e){switch(n){case"notCalled":case"called":case"calledOnce":case"calledTwice":case"calledThrice":0!==e.length&&l.fail(n+" takes 1 argument but was called with "+(e.length+1)+" arguments")}}(t,o),("function"==typeof i?i(u):"function"==typeof u[i]?u[i].apply(u,o):u[i])?l.pass(t):e(this,(u.printf||u.proxy.printf).apply(u,p([r],o)))}}return l={failException:"AssertError",fail:function(n){var e=new Error(n);throw e.name=this.failException||l.failException,e},pass:function(){},callOrder:function(){n.apply(null,arguments);var t="",o="";if(u(arguments))l.pass("callOrder");else{try{t=h(arguments,", ");for(var i=d(arguments),a=i.length;a;)i[--a].called||m(i,a,1);o=h(r(i),", ")}catch(l){}e(this,"expected "+t+" to be called in order but were called as "+o)}},callCount:function(t,u){if(n(t),t.callCount!==u){var o="expected %n to be called "+i(u)+" but was called %c%C";e(this,t.printf(o))}else l.pass("callCount")},expose:function(l,n){if(!l)throw new TypeError("target is null or undefined");var e=n||{},t=void 0===e.prefix?"assert":e.prefix,u=void 0===e.includeFail||Boolean(e.includeFail),o=this;return f(Object.keys(o),(function(n){"expose"===n||!u&&/^(fail)/.test(n)||(l[function(l,n){return!l||/^fail/.test(n)?n:l+s(n,0,1).toUpperCase()+s(n,1)}(t,n)]=o[n])})),l},match:function(n,t){if(o(t).test(n))l.pass("match");else{var u=["expected value to match"," expected = "+a(t)," actual = "+a(n)];e(this,h(u,"\n"))}}},t("called","expected %n to have been called at least once but was never called"),t("notCalled",(function(l){return!l.called}),"expected %n to not have been called but was called %c%C"),t("calledOnce","expected %n to be called once but was called %c%C"),t("calledTwice","expected %n to be called twice but was called %c%C"),t("calledThrice","expected %n to be called thrice but was called %c%C"),t("calledOn","expected %n to be called with %1 as this but was called with %t"),t("alwaysCalledOn","expected %n to always be called with %1 as this but was called with %t"),t("calledWithNew","expected %n to be called with new"),t("alwaysCalledWithNew","expected %n to always be called with new"),t("calledWith","expected %n to be called with arguments %D"),t("calledWithMatch","expected %n to be called with match %D"),t("alwaysCalledWith","expected %n to always be called with arguments %D"),t("alwaysCalledWithMatch","expected %n to always be called with match %D"),t("calledWithExactly","expected %n to be called with exact arguments %D"),t("calledOnceWithExactly","expected %n to be called once and with exact arguments %D"),t("calledOnceWithMatch","expected %n to be called once and with match %D"),t("alwaysCalledWithExactly","expected %n to always be called with exact arguments %D"),t("neverCalledWith","expected %n to never be called with arguments %*%C"),t("neverCalledWithMatch","expected %n to never be called with match %*%C"),t("threw","%n did not throw exception%C"),t("alwaysThrew","%n did not always throw exception%C"),l}l.exports=y(),l.exports.createAssertObject=y},1360:(l,n,e)=>{"use strict";var t=e(6708);l.exports={compatibleInstance:function(l,n){return n instanceof Error&&l===n},compatibleConstructor:function(l,n){return n instanceof Error?l.constructor===n.constructor||l instanceof n.constructor:(n.prototype instanceof Error||n===Error)&&(l.constructor===n||l instanceof n)},compatibleMessage:function(l,n){var e="string"==typeof l?l:l.message;return n instanceof RegExp?n.test(e):"string"==typeof n&&-1!==e.indexOf(n)},getMessage:function(l){var n="";return l&&l.message?n=l.message:"string"==typeof l&&(n=l),n},getConstructorName:function(l){var n=l;return l instanceof Error?n=t(l.constructor):"function"==typeof l&&""===(n=t(l))&&(n=t(new l)||n),n}}},1431:(l,n,e)=>{"use strict";var t=e(2101);l.exports=t(Object.prototype)},1557:(l,n,e)=>{"use strict";var t=e(8432).prototypes.set.forEach;l.exports=function(l,n,e){var u=!0;return t(l,(function(l){var o=!1;t(n,(function(n){e(n,l)&&(o=!0)})),u=u&&o})),u}},1618:function(l,n,e){var t;l.exports=(t=e(6370),(()=>{"use strict";var l={370:l=>{l.exports=t}},n={};function e(t){var u=n[t];if(void 0!==u)return u.exports;var o=n[t]={exports:{}};return l[t](o,o.exports,e),o.exports}e.n=l=>{var n=l&&l.__esModule?()=>l.default:()=>l;return e.d(n,{a:n}),n},e.d=(l,n)=>{for(var t in n)e.o(n,t)&&!e.o(l,t)&&Object.defineProperty(l,t,{enumerable:!0,get:n[t]})},e.o=(l,n)=>Object.prototype.hasOwnProperty.call(l,n),e.r=l=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var u={};e.r(u),e.d(u,{default:()=>r});var o=e(370);const r=o.Theme.defineTheme("deuteranopia",{name:"deuteranopia",base:o.Themes.Classic,blockStyles:{colour_blocks:{colourPrimary:"#f2a72c",colourSecondary:"#f1c172",colourTertiary:"#da921c"},list_blocks:{colourPrimary:"#7d65ab",colourSecondary:"#a88be0",colourTertiary:"#66518e"},logic_blocks:{colourPrimary:"#9fd2f1",colourSecondary:"#c0e0f4",colourTertiary:"#74bae5"},loop_blocks:{colourPrimary:"#795a07",colourSecondary:"#ac8726",colourTertiary:"#c4a03f"},math_blocks:{colourPrimary:"#e6da39",colourSecondary:"#f3ec8e",colourTertiary:"#f2eeb7"},procedure_blocks:{colourPrimary:"#590721",colourSecondary:"#8c475d",colourTertiary:"#885464"},text_blocks:{colourPrimary:"#058863",colourSecondary:"#5ecfaf",colourTertiary:"#04684c"},variable_blocks:{colourPrimary:"#47025a",colourSecondary:"#820fa1",colourTertiary:"#8e579d"},variable_dynamic_blocks:{colourPrimary:"#47025a",colourSecondary:"#820fa1",colourTertiary:"#8e579d"}},categoryStyles:{colour_category:{colour:"#f2a72c"},list_category:{colour:"#7d65ab"},logic_category:{colour:"#9fd2f1"},loop_category:{colour:"#795a07"},math_category:{colour:"#e6da39"},procedure_category:{colour:"#590721"},text_category:{colour:"#058863"},variable_category:{colour:"#47025a"},variable_dynamic_category:{colour:"#47025a"}},componentStyles:{},fontStyle:{},startHats:void 0});return u})())},1631:(l,n,e)=>{"use strict";var t=e(8432).functionName,u=e(8432).prototypes.array.join,o=e(8432).prototypes.array.map,r=e(8432).prototypes.string.indexOf,i=e(8432).valueToString,a=e(6091);l.exports=function(l){return{function:function(l,n,e){l.test=n,l.message=e||"match("+t(n)+")"},number:function(l,n){l.test=function(l){return n==l}},object:function(n,e){var r;return"function"==typeof e.test?(n.test=function(l){return!0===e.test(l)},n.message="match("+t(e.test)+")",n):(r=o(Object.keys(e),(function(l){return l+": "+i(e[l])})),n.test=function(n){return a(n,e,l)},n.message="match("+u(r,", ")+")",n)},regexp:function(l,n){l.test=function(l){return"string"==typeof l&&n.test(l)}},string:function(l,n){l.test=function(l){return"string"==typeof l&&-1!==r(l,n)},l.message='match("'+n+'")'}}}},1730:(l,n,e)=>{"use strict";var t,u=e(7835).inspect;function o(){return t?t.apply(null,arguments):u.apply(u,arguments)}o.setFormatter=function(l){if("function"!=typeof l)throw new Error("format.setFormatter must be called with a function");t=l},l.exports=o},1731:(l,n,e)=>{"use strict";var t=e(8432).prototypes.array,u=e(7265),o=e(8084),r=e(7513),i=t.slice;function a(l,n,e){"function"==typeof n?l.exceptionCreator=n:"string"==typeof n?l.exceptionCreator=function(){var l=new Error(e||"");return l.name=n,l}:n?l.exception=n:l.exceptionCreator=function(){return new Error("Error")}}var s={callsFake:function(l,n){l.fakeFn=n},callsArg:function(l,n){if("number"!=typeof n)throw new TypeError("argument index is not number");l.callArgAt=n,l.callbackArguments=[],l.callbackContext=void 0,l.callArgProp=void 0,l.callbackAsync=!1},callsArgOn:function(l,n,e){if("number"!=typeof n)throw new TypeError("argument index is not number");l.callArgAt=n,l.callbackArguments=[],l.callbackContext=e,l.callArgProp=void 0,l.callbackAsync=!1},callsArgWith:function(l,n){if("number"!=typeof n)throw new TypeError("argument index is not number");l.callArgAt=n,l.callbackArguments=i(arguments,2),l.callbackContext=void 0,l.callArgProp=void 0,l.callbackAsync=!1},callsArgOnWith:function(l,n,e){if("number"!=typeof n)throw new TypeError("argument index is not number");l.callArgAt=n,l.callbackArguments=i(arguments,3),l.callbackContext=e,l.callArgProp=void 0,l.callbackAsync=!1},usingPromise:function(l,n){l.promiseLibrary=n},yields:function(l){l.callArgAt=-1,l.callbackArguments=i(arguments,1),l.callbackContext=void 0,l.callArgProp=void 0,l.callbackAsync=!1},yieldsRight:function(l){l.callArgAt=-2,l.callbackArguments=i(arguments,1),l.callbackContext=void 0,l.callArgProp=void 0,l.callbackAsync=!1},yieldsOn:function(l,n){l.callArgAt=-1,l.callbackArguments=i(arguments,2),l.callbackContext=n,l.callArgProp=void 0,l.callbackAsync=!1},yieldsTo:function(l,n){l.callArgAt=-1,l.callbackArguments=i(arguments,2),l.callbackContext=void 0,l.callArgProp=n,l.callbackAsync=!1},yieldsToOn:function(l,n,e){l.callArgAt=-1,l.callbackArguments=i(arguments,3),l.callbackContext=e,l.callArgProp=n,l.callbackAsync=!1},throws:a,throwsException:a,returns:function(l,n){l.returnValue=n,l.resolve=!1,l.reject=!1,l.returnValueDefined=!0,l.exception=void 0,l.exceptionCreator=void 0,l.fakeFn=void 0},returnsArg:function(l,n){if("number"!=typeof n)throw new TypeError("argument index is not number");l.returnArgAt=n},throwsArg:function(l,n){if("number"!=typeof n)throw new TypeError("argument index is not number");l.throwArgAt=n},returnsThis:function(l){l.returnThis=!0},resolves:function(l,n){l.returnValue=n,l.resolve=!0,l.resolveThis=!1,l.reject=!1,l.returnValueDefined=!0,l.exception=void 0,l.exceptionCreator=void 0,l.fakeFn=void 0},resolvesArg:function(l,n){if("number"!=typeof n)throw new TypeError("argument index is not number");l.resolveArgAt=n,l.returnValue=void 0,l.resolve=!0,l.resolveThis=!1,l.reject=!1,l.returnValueDefined=!1,l.exception=void 0,l.exceptionCreator=void 0,l.fakeFn=void 0},rejects:function(l,n,e){var t;return"string"==typeof n?(t=new Error(e||"")).name=n:t=n||new Error("Error"),l.returnValue=t,l.resolve=!1,l.resolveThis=!1,l.reject=!0,l.returnValueDefined=!0,l.exception=void 0,l.exceptionCreator=void 0,l.fakeFn=void 0,l},resolvesThis:function(l){l.returnValue=void 0,l.resolve=!1,l.resolveThis=!0,l.reject=!1,l.returnValueDefined=!1,l.exception=void 0,l.exceptionCreator=void 0,l.fakeFn=void 0},callThrough:function(l){l.callsThrough=!0},callThroughWithNew:function(l){l.callsThroughWithNew=!0},get:function(l,n){var e=l.stub||l;return Object.defineProperty(e.rootObj,e.propName,{get:n,configurable:u(e.rootObj,e.propName)}),l},set:function(l,n){var e=l.stub||l;return Object.defineProperty(e.rootObj,e.propName,{set:n,configurable:u(e.rootObj,e.propName)}),l},value:function(l,n){var e=l.stub||l;return Object.defineProperty(e.rootObj,e.propName,{value:n,enumerable:!0,configurable:e.shadowsPropOnPrototype||u(e.rootObj,e.propName)}),l}},c=o(s);l.exports=r({},s,c)},1742:(l,n,e)=>{"use strict";var t=e(6935).every;function u(l,n,e,t){var u=!0;return e!==t.length-1&&(u=n.calledBefore(t[e+1])),!(!function(l,n){return void 0===l[n.id]&&(l[n.id]=0),l[n.id]<n.callCount}(l,n)||!u||(l[n.id]+=1,0))}l.exports=function(l){return t(arguments.length>1?arguments:l,u.bind(null,{}))}},1786:()=>{},1915:l=>{l.exports=Number.isNaN||function(l){return l!=l}},1949:(l,n,e)=>{var t=e(5100),u=e(9731),o=e(3226),r=e(8515),i=e(8316),a="function"==typeof Object.setPrototypeOf,s=function(){},c=Object.getOwnPropertyNames(s).filter((function(l){var n=Object.getOwnPropertyDescriptor(s,l);return"object"!=typeof n||!n.configurable})),d=Function.prototype.call,p=Function.prototype.apply;l.exports=function(l,n,e,s){"function"!=typeof s&&(s=function(){});var f={method:e,chainingBehavior:s};l.__methods||(l.__methods={}),l.__methods[n]=f,Object.defineProperty(l,n,{get:function(){f.chainingBehavior.call(this);var e=function(){o(this,"lockSsfi")||o(this,"ssfi",e);var l=f.method.apply(this,arguments);if(void 0!==l)return l;var n=new u.Assertion;return i(this,n),n};if(t(e,n,!0),a){var s=Object.create(this);s.call=d,s.apply=p,Object.setPrototypeOf(e,s)}else Object.getOwnPropertyNames(l).forEach((function(n){if(-1===c.indexOf(n)){var t=Object.getOwnPropertyDescriptor(l,n);Object.defineProperty(e,n,t)}}));return i(this,e),r(e)},configurable:!0})}},1964:function(l,n,e){var t;l.exports=(t=e(6370),(()=>{"use strict";var l={370:l=>{l.exports=t}},n={};function e(t){var u=n[t];if(void 0!==u)return u.exports;var o=n[t]={exports:{}};return l[t](o,o.exports,e),o.exports}e.n=l=>{var n=l&&l.__esModule?()=>l.default:()=>l;return e.d(n,{a:n}),n},e.d=(l,n)=>{for(var t in n)e.o(n,t)&&!e.o(l,t)&&Object.defineProperty(l,t,{enumerable:!0,get:n[t]})},e.o=(l,n)=>Object.prototype.hasOwnProperty.call(l,n),e.r=l=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var u={};e.r(u),e.d(u,{default:()=>o});const o=e(370).Theme.defineTheme("tritanopia",{name:"tritanopia",blockStyles:{colour_blocks:{colourPrimary:"#05427f",colourSecondary:"#2974c0",colourTertiary:"#2d74bb"},list_blocks:{colourPrimary:"#b69ce8",colourSecondary:"#ccbaef",colourTertiary:"#9176c5"},logic_blocks:{colourPrimary:"#9fd2f1",colourSecondary:"#c0e0f4",colourTertiary:"#74bae5"},loop_blocks:{colourPrimary:"#aa1846",colourSecondary:"#d36185",colourTertiary:"#7c1636"},math_blocks:{colourPrimary:"#e6da39",colourSecondary:"#f3ec8e",colourTertiary:"#f2eeb7"},procedure_blocks:{colourPrimary:"#590721",colourSecondary:"#8c475d",colourTertiary:"#885464"},text_blocks:{colourPrimary:"#058863",colourSecondary:"#5ecfaf",colourTertiary:"#04684c"},variable_blocks:{colourPrimary:"#4b2d84",colourSecondary:"#816ea7",colourTertiary:"#83759e"},variableDynamic_blocks:{colourPrimary:"#4b2d84",colourSecondary:"#816ea7",colourTertiary:"#83759e"}},categoryStyles:{colour_category:{colour:"#05427f"},list_category:{colour:"#b69ce8"},logic_category:{colour:"#9fd2f1"},loop_category:{colour:"#aa1846"},math_category:{colour:"#e6da39"},procedure_category:{colour:"#590721"},text_category:{colour:"#058863"},variable_category:{colour:"#4b2d84"},variable_dynamic_category:{colour:"#4b2d84"}},componentStyles:{},fontStyle:{},startHats:void 0});return u})())},1979:(l,n)=>{"use strict";n.wrap=function(l,e){var t=function(){return n.printWarning(e),l.apply(this,arguments)};return l.prototype&&(t.prototype=l.prototype),t},n.defaultMsg=function(l,n){return l+"."+n+" is deprecated and will be removed from the public API in a future version of "+l+"."},n.printWarning=function(l){"object"==typeof process&&process.emitWarning?process.emitWarning(l):console.info?console.info(l):console.log(l)}},2101:(l,n,e)=>{"use strict";var t=Function.call,u=e(3472),o=["size","caller","callee","arguments"];u&&o.push("__proto__"),l.exports=function(l){return Object.getOwnPropertyNames(l).reduce((function(n,e){return o.indexOf(e)>-1||"function"!=typeof l[e]||(n[e]=t.bind(l[e])),n}),Object.create(null))}},2170:(l,n,e)=>{"use strict";var t=e(2101);l.exports=t(Set.prototype)},2255:function(l,n,e){!function(l){"use strict";function n(l){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},n(l)}function t(l,n){return function(l){if(Array.isArray(l))return l}(l)||function(l,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(l)){var e=[],t=!0,u=!1,o=void 0;try{for(var r,i=l[Symbol.iterator]();!(t=(r=i.next()).done)&&(e.push(r.value),!n||e.length!==n);t=!0);}catch(l){u=!0,o=l}finally{try{t||null==i.return||i.return()}finally{if(u)throw o}}return e}}(l,n)||function(l,n){if(l){if("string"==typeof l)return u(l,n);var e=Object.prototype.toString.call(l).slice(8,-1);return"Object"===e&&l.constructor&&(e=l.constructor.name),"Map"===e||"Set"===e?Array.from(l):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(l,n):void 0}}(l,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(l,n){(null==n||n>l.length)&&(n=l.length);for(var e=0,t=new Array(n);e<n;e++)t[e]=l[e];return t}var o={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},r={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},i="…";function a(l,n){var e=o[r[n]]||o[n];return e?"[".concat(e[0],"m").concat(String(l),"[").concat(e[1],"m"):String(l)}function s(l,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;l=String(l);var t=e.length,u=l.length;return t>n&&u>t?e:u>n&&u>t?"".concat(l.slice(0,n-t)).concat(e):l}function c(l,n,e){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:", ";e=e||n.inspect;var u=l.length;if(0===u)return"";for(var o=n.truncate,r="",a="",s="",c=0;c<u;c+=1){var d=c+1===l.length,p=c+2===l.length;s="".concat(i,"(").concat(l.length-c,")");var f=l[c];n.truncate=o-r.length-(d?0:t.length);var h=a||e(f,n)+(d?"":t),m=r.length+h.length,y=m+s.length;if(d&&m>o&&r.length+s.length<=o)break;if(!d&&!p&&y>o)break;if(a=d?"":e(l[c+1],n)+(p?"":t),!d&&p&&y>o&&m+a.length>o)break;if(r+=h,!d&&!p&&m+a.length>=o){s="".concat(i,"(").concat(l.length-c-1,")");break}s=""}return"".concat(r).concat(s)}function d(l,n){var e=t(l,2),u=e[0],o=e[1];return n.truncate-=2,"string"==typeof u?u=function(l){return l.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?l:JSON.stringify(l).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(u):"number"!=typeof u&&(u="[".concat(n.inspect(u,n),"]")),n.truncate-=u.length,o=n.inspect(o,n),"".concat(u,": ").concat(o)}var p=Function.prototype.toString,f=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;var h=function(l){if("function"!=typeof l)return null;var n="";if(void 0===Function.prototype.name&&void 0===l.name){var e=p.call(l);if(e.indexOf("(")>512)return n;var t=e.match(f);t&&(n=t[1])}else n=l.name;return n};function m(l,n){var e=function(l){return"function"==typeof Buffer&&l instanceof Buffer?"Buffer":l[Symbol.toStringTag]?l[Symbol.toStringTag]:h(l.constructor)}(l);n.truncate-=e.length+4;var t=Object.keys(l).slice(l.length);if(!l.length&&!t.length)return"".concat(e,"[]");for(var u="",o=0;o<l.length;o++){var r="".concat(n.stylize(s(l[o],n.truncate),"number")).concat(o===l.length-1?"":", ");if(n.truncate-=r.length,l[o]!==l.length&&n.truncate<=3){u+="".concat(i,"(").concat(l.length-l[o]+1,")");break}u+=r}var a="";return t.length&&(a=c(t.map((function(n){return[n,l[n]]})),n,d)),"".concat(e,"[ ").concat(u).concat(a?", ".concat(a):""," ]")}function y(l,n){var e=h(l);return e?n.stylize("[Function ".concat(s(e,n.truncate-11),"]"),"special"):n.stylize("[Function]","special")}function g(l,n){var e=t(l,2),u=e[0],o=e[1];return n.truncate-=4,u=n.inspect(u,n),n.truncate-=u.length,o=n.inspect(o,n),"".concat(u," => ").concat(o)}var b=Number.isNaN||function(l){return l!=l};function v(l,n){return b(l)?n.stylize("NaN","number"):l===1/0?n.stylize("Infinity","number"):l===-1/0?n.stylize("-Infinity","number"):0===l?n.stylize(1/l==1/0?"+0":"-0","number"):n.stylize(s(l,n.truncate),"number")}function _(l,n){var e=s(l.toString(),n.truncate-1);return e!==i&&(e+="n"),n.stylize(e,"bigint")}var w=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),k={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function x(l){return k[l]||"\\u".concat("0000".concat(l.charCodeAt(0).toString(16)).slice(-4))}function E(l,n){return w.test(l)&&(l=l.replace(w,x)),n.stylize("'".concat(s(l,n.truncate-2),"'"),"string")}function T(l){return"description"in Symbol.prototype?l.description?"Symbol(".concat(l.description,")"):"Symbol()":l.toString()}var O=function(){return"Promise{…}"};try{var A=process.binding("util"),S=A.getPromiseDetails,C=A.kPending,j=A.kRejected;Array.isArray(S(Promise.resolve()))&&(O=function(l,n){var e=t(S(l),2),u=e[0],o=e[1];return u===C?"Promise{<pending>}":"Promise".concat(u===j?"!":"","{").concat(n.inspect(o,n),"}")})}catch(l){}var P=O;function M(l,n){var e=Object.getOwnPropertyNames(l),t=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(l):[];if(0===e.length&&0===t.length)return"{}";if(n.truncate-=4,n.seen=n.seen||[],n.seen.indexOf(l)>=0)return"[Circular]";n.seen.push(l);var u=c(e.map((function(n){return[n,l[n]]})),n,d),o=c(t.map((function(n){return[n,l[n]]})),n,d);n.seen.pop();var r="";return u&&o&&(r=", "),"{ ".concat(u).concat(r).concat(o," }")}var N=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;var I=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function B(l,n){var e=t(l,2),u=e[0],o=e[1];return n.truncate-=3,o?"".concat(n.stylize(u,"yellow"),"=").concat(n.stylize('"'.concat(o,'"'),"string")):"".concat(n.stylize(u,"yellow"))}function L(l,n){return c(l,n,R,"\n")}function R(l,n){var e=l.getAttributeNames(),t=l.tagName.toLowerCase(),u=n.stylize("<".concat(t),"special"),o=n.stylize(">","special"),r=n.stylize("</".concat(t,">"),"special");n.truncate-=2*t.length+5;var a="";e.length>0&&(a+=" ",a+=c(e.map((function(n){return[n,l.getAttribute(n)]})),n,B," ")),n.truncate-=a.length;var s=n.truncate,d=L(l.children,n);return d&&d.length>s&&(d="".concat(i,"(").concat(l.children.length,")")),"".concat(u).concat(a).concat(o).concat(d).concat(r)}var D="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",F=!1;try{var q=e(1786);F=!!q.inspect&&q.inspect.custom}catch(l){F=!1}function H(){this.key="chai/loupe__"+Math.random()+Date.now()}H.prototype={get:function(l){return l[this.key]},has:function(l){return this.key in l},set:function(l,n){Object.isExtensible(l)&&Object.defineProperty(l,this.key,{value:n,configurable:!0})}};var U=new("function"==typeof WeakMap?WeakMap:H),z={},W={undefined:function(l,n){return n.stylize("undefined","undefined")},null:function(l,n){return n.stylize(null,"null")},boolean:function(l,n){return n.stylize(l,"boolean")},Boolean:function(l,n){return n.stylize(l,"boolean")},number:v,Number:v,bigint:_,BigInt:_,string:E,String:E,function:y,Function:y,symbol:T,Symbol:T,Array:function(l,n){var e=Object.keys(l).slice(l.length);if(!l.length&&!e.length)return"[]";n.truncate-=4;var t=c(l,n);n.truncate-=t.length;var u="";return e.length&&(u=c(e.map((function(n){return[n,l[n]]})),n,d)),"[ ".concat(t).concat(u?", ".concat(u):""," ]")},Date:function(l,n){var e=l.toJSON();if(null===e)return"Invalid Date";var t=e.split("T"),u=t[0];return n.stylize("".concat(u,"T").concat(s(t[1],n.truncate-u.length-1)),"date")},Map:function(l,n){return l.size-1<=0?"Map{}":(n.truncate-=7,"Map{ ".concat(c(function(l){var n=[];return l.forEach((function(l,e){n.push([e,l])})),n}(l),n,g)," }"))},Set:function(l,n){return 0===l.size?"Set{}":(n.truncate-=7,"Set{ ".concat(c(function(l){var n=[];return l.forEach((function(l){n.push(l)})),n}(l),n)," }"))},RegExp:function(l,n){var e=l.toString().split("/")[2],t=n.truncate-(2+e.length),u=l.source;return n.stylize("/".concat(s(u,t),"/").concat(e),"regexp")},Promise:P,WeakSet:function(l,n){return n.stylize("WeakSet{…}","special")},WeakMap:function(l,n){return n.stylize("WeakMap{…}","special")},Arguments:function(l,n){return 0===l.length?"Arguments[]":(n.truncate-=13,"Arguments[ ".concat(c(l,n)," ]"))},Int8Array:m,Uint8Array:m,Uint8ClampedArray:m,Int16Array:m,Uint16Array:m,Int32Array:m,Uint32Array:m,Float32Array:m,Float64Array:m,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:function(l,n){var e=Object.getOwnPropertyNames(l).filter((function(l){return-1===I.indexOf(l)})),t=l.name;n.truncate-=t.length;var u="";"string"==typeof l.message?u=s(l.message,n.truncate):e.unshift("message"),u=u?": ".concat(u):"",n.truncate-=u.length+5;var o=c(e.map((function(n){return[n,l[n]]})),n,d);return"".concat(t).concat(u).concat(o?" { ".concat(o," }"):"")},HTMLCollection:L,NodeList:L},V=Object.prototype.toString;function K(l,e){(e=function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=l.showHidden,e=void 0!==n&&n,t=l.depth,u=void 0===t?2:t,o=l.colors,r=void 0!==o&&o,i=l.customInspect,s=void 0===i||i,c=l.showProxy,d=void 0!==c&&c,p=l.maxArrayLength,f=void 0===p?1/0:p,h=l.breakLength,m=void 0===h?1/0:h,y=l.seen,g=void 0===y?[]:y,b=l.truncate,v=void 0===b?1/0:b,_=l.stylize,w=void 0===_?String:_,k={showHidden:Boolean(e),depth:Number(u),colors:Boolean(r),customInspect:Boolean(s),showProxy:Boolean(d),maxArrayLength:Number(f),breakLength:Number(m),truncate:Number(v),seen:g,stylize:w};return k.colors&&(k.stylize=a),k}(e)).inspect=K;var t=e.customInspect,u=null===l?"null":n(l);if("object"===u&&(u=V.call(l).slice(8,-1)),W[u])return W[u](l,e);if(t&&l){var o=function(l,n,e){return D in l&&"function"==typeof l[D]?l[D](n):F&&F in l&&"function"==typeof l[F]?l[F](n.depth,n):"inspect"in l&&"function"==typeof l.inspect?l.inspect(n.depth,n):"constructor"in l&&U.has(l.constructor)?U.get(l.constructor)(l,n):z[e]?z[e](l,n):""}(l,e,u);if(o)return"string"==typeof o?o:K(o,e)}var r=!!l&&Object.getPrototypeOf(l);return r===Object.prototype||null===r?M(l,e):l&&"function"==typeof HTMLElement&&l instanceof HTMLElement?R(l,e):"constructor"in l?l.constructor!==Object?function(l,n){var e="";return N&&N in l&&(e=l[N]),(e=e||h(l.constructor))&&"_class"!==e||(e="<Anonymous Class>"),n.truncate-=e.length,"".concat(e).concat(M(l,n))}(l,e):M(l,e):l===Object(l)?M(l,e):e.stylize(String(l),u)}var X=D;l.custom=X,l.default=K,l.inspect=K,l.registerConstructor=function(l,n){return!U.has(l)&&(U.set(l,n),!0)},l.registerStringTag=function(l,n){return!(l in z)&&(z[l]=n,!0)},Object.defineProperty(l,"__esModule",{value:!0})}(n)},2494:l=>{"use strict";l.exports=function(l){return"number"==typeof l&&l!=l}},2571:(l,n,e)=>{"use strict";var t=e(7513),u=e(4182),o=e(8432).global;function r(l,n){var e=u;null!==n&&"object"==typeof n&&(e=u.withGlobal(n));var t=e.install(l);return t.restore=t.uninstall,t}function i(l,n){var e=o[n];void 0!==e&&(l[n]=e)}n.useFakeTimers=function(l){var n=("number"==typeof l||l instanceof Date)&&1===arguments.length,e=null!==l&&"object"==typeof l&&1===arguments.length;if(void 0===l)return r({now:0});if(n)return r({now:l});if(e){var u=t.nonEnum({},l),o=u.global;return delete u.global,r(u,o)}throw new TypeError("useFakeTimers expected epoch or config object. See https://github.com/sinonjs/sinon")},n.clock={create:function(l){return u.createClock(l)}};var a={setTimeout,clearTimeout,setInterval,clearInterval,Date};i(a,"setImmediate"),i(a,"clearImmediate"),n.timers=a},2681:(l,n,e)=>{"use strict";var t=e(8432).valueToString,u=e(8432).prototypes.string.indexOf,o=e(8432).prototypes.array.forEach,r=e(5855),i="function"==typeof Array.from,a=e(4629).use(f),s=e(6359),c=e(1557),d=e(6869);function p(l,n,e){if(0===n.length)return!0;var t,u,o,r;for(t=0,u=l.length;t<u;++t)if(e(l[t],n[0])){for(o=0,r=n.length;o<r;++o){if(t+o>=u)return!1;if(!e(l[t+o],n[o]))return!1}return!0}return!1}function f(l,n){if(n&&"function"==typeof n.test)return n.test(l);switch(r(n)){case"bigint":case"boolean":case"number":case"symbol":return n===l;case"function":return!0===n(l);case"string":return("string"==typeof l||Boolean(l))&&u(t(l).toLowerCase(),n.toLowerCase())>=0;case"null":return null===l;case"undefined":return void 0===l;case"Date":if("Date"===r(l))return l.getTime()===n.getTime();break;case"Array":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":return s(n)&&p(l,n,f);case"Map":if(!i)throw new Error("The JavaScript engine does not support Array.from and cannot reliably do value comparison of Map instances");return"Map"===r(l)&&p(Array.from(l),Array.from(n),f)}switch(r(l)){case"null":return!1;case"Set":return c(n,l,f)}if(n&&"object"==typeof n){if(n===l)return!0;if("object"!=typeof l)return!1;var e;for(e in n){var o=l[e];if(void 0===o&&"function"==typeof l.getAttribute&&(o=l.getAttribute(e)),null===n[e]||void 0===n[e]){if(o!==n[e])return!1}else if(void 0===o||!a(o,n[e]))return!1}return!0}throw new Error("Matcher was an unknown or unsupported type")}o(Object.keys(d),(function(l){f[l]=d[l]})),l.exports=f},2747:l=>{"use strict";l.exports={stdout:!1,stderr:!1}},2763:l=>{"use strict";var n=[null,"once","twice","thrice"];l.exports=function(l){return n[l]||(l||0)+" times"}},2960:(l,n,e)=>{"use strict";var t=e(2101);l.exports=t(Function.prototype)},2992:(l,n,e)=>{"use strict";var t=e(8432).global,u=e(3869);l.exports=u(t.process,t.setImmediate)},3096:(l,n,e)=>{"use strict";var t=e(8432).prototypes.array.forEach;function u(l,n,e,o,r){var i,a;if("function"==typeof Object.getOwnPropertyNames)t(Object.getOwnPropertyNames(l),(function(t){if(!0!==r[t]){r[t]=!0;var u="function"==typeof Object.getOwnPropertyDescriptor(l,t).get?o:l;n.call(e,t,u)}})),(i=Object.getPrototypeOf(l))&&u(i,n,e,o,r);else for(a in l)n.call(e,l[a],a,l)}l.exports=function(l,n,e){return u(l,n,e,l,{})}},3199:l=>{"use strict";l.exports={injectInto:null,properties:["spy","stub","mock","clock","server","requests","fake","replace","replaceSetter","replaceGetter","createStubInstance"],useFakeTimers:!0,useFakeServer:!0}},3209:l=>{"use strict";var n=[Array,Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];l.exports=n},3226:l=>{l.exports=function(l,n,e){var t=l.__flags||(l.__flags=Object.create(null));if(3!==arguments.length)return t[n];t[n]=e}},3235:(l,n,e)=>{"use strict";e.d(n,{e$:()=>i,hV:()=>r,qg:()=>o});var t=e(6370),u=e(5210);const o="debugRenderer";function r(l){if(!t.registry.hasItem(t.registry.Type.RENDERER,l))throw Error("No renderer with the name "+l+" is registered. Please register your renderer using Blockly.registry.register.");const n=i(t.registry.getClass(t.registry.Type.RENDERER,l));t.registry.register(t.registry.Type.RENDERER,o,n,!0)}function i(l){class n extends l{blockToDebugger=Object.create(null);workspaceListeners=Object.create(null);render(l){super.render(l);const n=this.getDebugger_(l),e=this.makeRenderInfo_(l);e.measure(),n.drawDebug(l,