(self.webpackChunkblockly_mooc=self.webpackChunkblockly_mooc||[]).push([[9],{3610:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApplabBlocks:()=>r});const r={onEvent:null,button:null,textInput:null,textLabel:null,dropdown:null,getText:null,setText:null,getNumber:null,setNumber:null,checkbox:null,radioButton:null,getChecked:null,setChecked:null,image:null,getImageURL:null,setImageURL:null,playSound:null,stopSound:null,playSpeech:null,showElement:null,hideElement:null,deleteElement:null,setPosition:null,setSize:null,setProperty:null,getProperty:null,write:null,getXPosition:null,getYPosition:null,setScreen:null,rgb:null,open:null,createCanvas:null,setActiveCanvas:null,line:null,circle:null,rect:null,setStrokeWidth:null,setStrokeColor:null,setFillColor:null,drawImageURL:null,getImageData:null,putImageData:null,clearCanvas:null,getRed:null,getGreen:null,getBlue:null,getAlpha:null,setRed:null,setGreen:null,setBlue:null,setAlpha:null,setRGB:null,getColumn:null,startWebRequest:null,setKeyValue:null,getKeyValue:null,createRecord:null,readRecords:null,updateRecord:null,deleteRecord:null,getUserId:null,drawChart:null,drawChartFromRecords:null,getPrediction:null,moveForward:null,moveBackward:null,move:null,moveTo:null,dot:null,turnRight:null,turnLeft:null,turnTo:null,arcRight:null,arcLeft:null,getX:null,getY:null,getDirection:null,penUp:null,penDown:null,penWidth:null,penColor:null,penRGB:null,show:null,hide:null,speed:null,forLoop_i_0_4:null,ifBlock:null,ifElseBlock:null,whileBlock:null,setTimeout:null,clearTimeout:null,timedLoop:null,stopTimedLoop:null,getTime:null,addOperator:null,subtractOperator:null,multiplyOperator:null,divideOperator:null,moduloOperator:null,equalityOperator:null,inequalityOperator:null,greaterThanOperator:null,greaterThanOrEqualOperator:null,lessThanOperator:null,lessThanOrEqualOperator:null,andOperator:null,orOperator:null,notOperator:null,randomNumber_min_max:null,mathRound:null,mathAbs:null,mathMax:null,mathMin:null,mathRandom:null,mathPow:null,mathSqrt:null,declareAssign_x:null,declareNoAssign_x:null,assign_x:null,declareAssign_x_prompt:null,declareAssign_x_promptNum:null,"console.log":null,"console.clear":null,declareAssign_str_hello_world:null,substring:null,indexOf:null,includes:null,length:null,toUpperCase:null,toLowerCase:null,declareAssign_list_abd:null,declareAssign_list_123:null,accessListItem:null,listLength:null,insertItem:null,appendItem:null,removeItem:null,join:null,declareAssign_object:null,getValue:null,addPair:null,functionParams_none:null,functionParams_n:null,callMyFunction:null,callMyFunction_n:null,return:null,comment:null,pinMode:null,digitalWrite:null,digitalRead:null,analogWrite:null,analogRead:null,boardConnected:null,"var myLed = createLed":null,"var myButton = createButton":null,"var mySensor = createCapacitiveTouchSensor":null,"__.on":null,"__.off":null,"__.toggle":null,"__.blink":null,"__.pulse":null,"colorLeds[0].on":null,"colorLeds[0].off":null,"colorLeds[0].toggle":null,"colorLeds[0].blink":null,"colorLeds[0].pulse":null,stop:null,color:null,intensity:null,"led.on":null,"led.off":null,"led.blink":null,"led.toggle":null,"led.pulse":null,"buzzer.frequency":null,"buzzer.note":null,"buzzer.stop":null,"buzzer.playNotes":null,"buzzer.playSong":null,"accelerometer.getOrientation":null,"accelerometer.getAcceleration":null,isPressed:null,holdtime:null,"soundSensor.value":null,"soundSensor.setScale":null,"soundSensor.threshold":null,"lightSensor.value":null,"lightSensor.setScale":null,"lightSensor.threshold":null,"tempSensor.F":null,"tempSensor.C":null,"toggleSwitch.isOpen":null,onBoardEvent:null,"ledScreen.on":null,"ledScreen.off":null,"ledScreen.toggle":null,"ledScreen.display":null,"ledScreen.clear":null,"ledScreen.scrollNumber":null,"ledScreen.scrollString":null,"compass.getHeading":null}},3611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApplabGoalBlocks:()=>r});const r={comment_Goals_1:null,comment_Goals_2:null,comment_Goals_3:null,comment_Goals_4:null,comment_Goals_5:null,comment_Goals_6:null,comment_Goals_7:null,comment_Goals_8:null,comment_Goals_9:null,comment_Goals_10:null,comment_Goals_11:null,comment_Goals_12:null,comment_Goals_13:null,comment_Goals_14:null,comment_Goals_15:null,comment_Goals_16:null,comment_Goals_17:null,comment_Goals_18:null,comment_Goals_19:null,comment_Goals_20:null}},3184:e=>{e.exports=function(e,t,n,r){"use strict";r=r||function(e,t,n,r,i){var o=t.split("\n"),a=Math.max(r-3,0),l=Math.min(o.length,r+3),s=i(n),u=o.slice(a,l).map((function(e,t){var n=t+a+1;return(n==r?" >> ":"    ")+n+"| "+e})).join("\n");throw e.path=s,e.message=(s||"ejs")+":"+r+"\n"+u+"\n\n"+e.message,e},t=t||function(e){return null==e?"":String(e).replace(o,a)};var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},o=/[&<>'"]/g;function a(e){return i[e]||e}var l=1;try{var s="";function h(e){null!=e&&(s+=e)}var u=e.fontBrandsPath,c=e.fontSolidPath,d=e.fontRegularPath,f=e.fontV4CompatibilityPath;return l=9,h("\n\n@font-face {\n  font-family: 'FontAwesome';\n  font-display: block;\n  src: url(\""),l=14,h(u),h("\") format('woff2');\n}\n\n@font-face {\n  font-family: 'FontAwesome';\n  font-display: block;\n  src: url(\""),l=20,h(c),h("\") format('woff2');\n}\n\n@font-face {\n  font-family: 'FontAwesome';\n  font-display: block;\n  src: url(\""),l=26,h(d),h('") format("woff2");\n  unicode-range: U+F003,U+F006,U+F014,U+F016-F017,U+F01A-F01B,U+F01D,U+F022,U+F03E,U+F044,U+F046,U+F05C-F05D,U+F06E,U+F070,U+F087-F088,U+F08A,U+F094,U+F096-F097,U+F09D,U+F0A0,U+F0A2,U+F0A4-F0A7,U+F0C5,U+F0C7,U+F0E5-F0E6,U+F0EB,U+F0F6-F0F8,U+F10C,U+F114-F115,U+F118-F11A,U+F11C-F11D,U+F133,U+F147,U+F14E,U+F150-F152,U+F185-F186,U+F18E,U+F190-F192,U+F196,U+F1C1-F1C9,U+F1D9,U+F1DB,U+F1E3,U+F1EA,U+F1F7,U+F1F9,U+F20A,U+F247-F248,U+F24A,U+F24D,U+F255-F25B,U+F25D,U+F271-F274,U+F278,U+F27B,U+F28C,U+F28E,U+F29C,U+F2B5,U+F2B7,U+F2BA,U+F2BC,U+F2BE,U+F2C0-F2C1,U+F2C3,U+F2D0,U+F2D2,U+F2D4,U+F2DC;\n}\n\n@font-face {\n  font-family: \'FontAwesome\';\n  font-display: block;\n  src: url("'),l=33,h(f),h('") format("woff2");\n  unicode-range: U+F041,U+F047,U+F065-F066,U+F07D-F07E,U+F080,U+F08B,U+F08E,U+F090,U+F09A,U+F0AC,U+F0AE,U+F0B2,U+F0D0,U+F0D6,U+F0E4,U+F0EC,U+F10A-F10B,U+F123,U+F13E,U+F148-F149,U+F14C,U+F156,U+F15E,U+F160-F161,U+F163,U+F175-F178,U+F195,U+F1F8,U+F219,U+F27A;\n}\n'),l=36,s}catch(p){r(p,"<%\n/**\n * This block destructures the local variables for use within this ejs template.\n */\nvar fontBrandsPath = locals.fontBrandsPath;\nvar fontSolidPath = locals.fontSolidPath;\nvar fontRegularPath = locals.fontRegularPath;\nvar fontV4CompatibilityPath = locals.fontV4CompatibilityPath;\n%>\n\n@font-face {\n  font-family: 'FontAwesome';\n  font-display: block;\n  src: url(\"<%- fontBrandsPath %>\") format('woff2');\n}\n\n@font-face {\n  font-family: 'FontAwesome';\n  font-display: block;\n  src: url(\"<%- fontSolidPath %>\") format('woff2');\n}\n\n@font-face {\n  font-family: 'FontAwesome';\n  font-display: block;\n  src: url(\"<%- fontRegularPath %>\") format(\"woff2\");\n  unicode-range: U+F003,U+F006,U+F014,U+F016-F017,U+F01A-F01B,U+F01D,U+F022,U+F03E,U+F044,U+F046,U+F05C-F05D,U+F06E,U+F070,U+F087-F088,U+F08A,U+F094,U+F096-F097,U+F09D,U+F0A0,U+F0A2,U+F0A4-F0A7,U+F0C5,U+F0C7,U+F0E5-F0E6,U+F0EB,U+F0F6-F0F8,U+F10C,U+F114-F115,U+F118-F11A,U+F11C-F11D,U+F133,U+F147,U+F14E,U+F150-F152,U+F185-F186,U+F18E,U+F190-F192,U+F196,U+F1C1-F1C9,U+F1D9,U+F1DB,U+F1E3,U+F1EA,U+F1F7,U+F1F9,U+F20A,U+F247-F248,U+F24A,U+F24D,U+F255-F25B,U+F25D,U+F271-F274,U+F278,U+F27B,U+F28C,U+F28E,U+F29C,U+F2B5,U+F2B7,U+F2BA,U+F2BC,U+F2BE,U+F2C0-F2C1,U+F2C3,U+F2D0,U+F2D2,U+F2D4,U+F2DC;\n}\n\n@font-face {\n  font-family: 'FontAwesome';\n  font-display: block;\n  src: url(\"<%- fontV4CompatibilityPath %>\") format(\"woff2\");\n  unicode-range: U+F041,U+F047,U+F065-F066,U+F07D-F07E,U+F080,U+F08B,U+F08E,U+F090,U+F09A,U+F0AC,U+F0AE,U+F0B2,U+F0D0,U+F0D6,U+F0E4,U+F0EC,U+F10A-F10B,U+F123,U+F13E,U+F148-F149,U+F14C,U+F156,U+F15E,U+F160-F161,U+F163,U+F175-F178,U+F195,U+F1F8,U+F219,U+F27A;\n}\n","src/templates/export/fontAwesome.css.ejs",l,t)}}},3185:e=>{e.exports=function(e,t,n,r){"use strict";r=r||function(e,t,n,r,i){var o=t.split("\n"),a=Math.max(r-3,0),l=Math.min(o.length,r+3),s=i(n),u=o.slice(a,l).map((function(e,t){var n=t+a+1;return(n==r?" >> ":"    ")+n+"| "+e})).join("\n");throw e.path=s,e.message=(s||"ejs")+":"+r+"\n"+u+"\n\n"+e.message,e},t=t||function(e){return null==e?"":String(e).replace(o,a)};var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},o=/[&<>'"]/g;function a(e){return i[e]||e}var l=1;try{var s="";function b(e){null!=e&&(s+=e)}var u=e.appName,c=e.exportConfigPath,d=e.htmlBody,f=e.faBrandsPath,p=e.faSolidPath,h=e.faRegularPath,g=e.faV4CompatibilityPath;return l=12,b("\n<html>\n  <head>\n    <title>"),l=15,b(u),b('</title>\n    <meta charset="utf-8" />\n    <meta name="viewport" content="width=device-width, initial-scale=1">\n    <link rel="preload" href="'),l=18,b(f),b('" as="font">\n    <link rel="preload" href="'),l=19,b(p),b('" as="font">\n    <link rel="preload" href="'),l=20,b(h),b('" as="font">\n    <link rel="preload" href="'),l=21,b(g),b('" as="font">\n    <script src="https://code.jquery.com/jquery-1.12.1.min.js"><\/script>\n    <script>\n      function setExportConfig(config) { window.EXPORT_OPTIONS = config; }\n    <\/script>\n    <script src="'),l=26,b(c),b('"><\/script>\n    <script src="applab/applab-api.js"><\/script>\n    <script src="https://www.google.com/jsapi"><\/script>\n    <link rel="stylesheet" href="applab/applab.css">\n    <link rel="stylesheet" href="style.css">\n  </head>\n  <body>\n    '),l=33,b(d),b("\n  </body>\n</html>\n"),l=36,s}catch(m){r(m,'<%\n/**\n * This block destructures the local variables for use within this ejs template.\n */\nvar appName = locals.appName;\nvar exportConfigPath = locals.exportConfigPath;\nvar htmlBody = locals.htmlBody;\nvar faBrandsPath = locals.faBrandsPath;\nvar faSolidPath = locals.faSolidPath;\nvar faRegularPath = locals.faRegularPath;\nvar faV4CompatibilityPath = locals.faV4CompatibilityPath;\n%>\n<html>\n  <head>\n    <title><%- appName %></title>\n    <meta charset="utf-8" />\n    <meta name="viewport" content="width=device-width, initial-scale=1">\n    <link rel="preload" href="<%- faBrandsPath %>" as="font">\n    <link rel="preload" href="<%- faSolidPath %>" as="font">\n    <link rel="preload" href="<%- faRegularPath %>" as="font">\n    <link rel="preload" href="<%- faV4CompatibilityPath %>" as="font">\n    <script src="https://code.jquery.com/jquery-1.12.1.min.js"><\/script>\n    <script>\n      function setExportConfig(config) { window.EXPORT_OPTIONS = config; }\n    <\/script>\n    <script src="<%- exportConfigPath %>"><\/script>\n    <script src="applab/applab-api.js"><\/script>\n    <script src="https://www.google.com/jsapi"><\/script>\n    <link rel="stylesheet" href="applab/applab.css">\n    <link rel="stylesheet" href="style.css">\n  </head>\n  <body>\n    <%- htmlBody %>\n  </body>\n</html>\n',"src/templates/export/project.html.ejs",l,t)}}},3186:e=>{e.exports=function(e,t,n,r){"use strict";r=r||function(e,t,n,r,i){var o=t.split("\n"),a=Math.max(r-3,0),l=Math.min(o.length,r+3),s=i(n),u=o.slice(a,l).map((function(e,t){var n=t+a+1;return(n==r?" >> ":"    ")+n+"| "+e})).join("\n");throw e.path=s,e.message=(s||"ejs")+":"+r+"\n"+u+"\n\n"+e.message,e},t=t||function(e){return null==e?"":String(e).replace(o,a)};var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},o=/[&<>'"]/g;function a(e){return i[e]||e}var l=1;try{var s="";function d(e){null!=e&&(s+=e)}var u=e.appName;return l=6,d("\n# README for "),l=7,d(u),d(" #\n\nThis is the README file for the "),l=9,d(u),d(" app. It's a great place to write\ndown some notes about how your app works. For starters, here is some information\nabout the other files in this folder.\n\nThe files in this folder contain everything you need to run your app:\n\n* `applab/applab.js` - This file contains the applab library, which has all the\n  javascript that applab uses to run your app.\n\n* `applab/applab.css` - This file contains some default CSS styling for your app.\n\n* `index.html` - This is the html file that you designed in applab using the\n  Design tab. It contains all the buttons, text inputs, and other controls for\n  your app. Go here to add additional controls to your app.\n\n* `style.css` - This file defines the custom styling for each control in your\n  app that you specified under the Design tab. Go here to change the colors,\n  positions, dimensions, and other properties of your app's controls.\n\n* `code.js` - This file has all the code you wrote for your app. Go here to add\n  new behavior to your app.\n\n* `assets` - This is a directory with all the asset files (pictures and sounds)\n  that you uploaded in applab.\n"),l=33,s}catch(c){r(c,"<%\n/**\n * This block destructures the local variables for use within this ejs template.\n */\nvar appName = locals.appName;\n%>\n# README for <%- appName %> #\n\nThis is the README file for the <%- appName %> app. It's a great place to write\ndown some notes about how your app works. For starters, here is some information\nabout the other files in this folder.\n\nThe files in this folder contain everything you need to run your app:\n\n* `applab/applab.js` - This file contains the applab library, which has all the\n  javascript that applab uses to run your app.\n\n* `applab/applab.css` - This file contains some default CSS styling for your app.\n\n* `index.html` - This is the html file that you designed in applab using the\n  Design tab. It contains all the buttons, text inputs, and other controls for\n  your app. Go here to add additional controls to your app.\n\n* `style.css` - This file defines the custom styling for each control in your\n  app that you specified under the Design tab. Go here to change the colors,\n  positions, dimensions, and other properties of your app's controls.\n\n* `code.js` - This file has all the code you wrote for your app. Go here to add\n  new behavior to your app.\n\n* `assets` - This is a directory with all the asset files (pictures and sounds)\n  that you uploaded in applab.\n","src/templates/export/projectReadme.md.ejs",l,t)}}},1013:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},809:(e,t,n)=>{var r=n(807);function i(){return e.exports=i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}e.exports=i},1012:(e,t,n)=>{var r=n(822);e.exports=function(e,t){e.prototype=r(t.prototype),e.prototype.constructor=e,e.__proto__=t}},820:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},1011:(e,t,n)=>{var r=n(821);e.exports=function(e,t){if(null==e)return{};var n,i,o={},a=r(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}},3563:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:s},c)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},3536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:s},c)},d),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},1355:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=c(n(55)),o=c(n(1)),a=c(n(2)),l=c(n(725)),s=c(n(1010)),u=n(1356);function c(e){return e&&e.__esModule?e:{default:e}}var d={activePage:a.default.number,items:a.default.number,maxButtons:a.default.number,boundaryLinks:a.default.bool,ellipsis:a.default.oneOfType([a.default.bool,a.default.node]),first:a.default.oneOfType([a.default.bool,a.default.node]),last:a.default.oneOfType([a.default.bool,a.default.node]),prev:a.default.oneOfType([a.default.bool,a.default.node]),next:a.default.oneOfType([a.default.bool,a.default.node]),onSelect:a.default.func,buttonComponentClass:l.default},f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.renderPageButtons=function(e,t,n,i,a,l){var u=[],c=void 0,d=void 0;n&&n<t?d=(c=Math.max(Math.min(e-Math.floor(n/2,10),t-n+1),1))+n-1:(c=1,d=t);for(var f=c;f<=d;++f)u.push(o.default.createElement(s.default,r({},l,{key:f,eventKey:f,active:f===e}),f));return a&&i&&c>1&&(c>2&&u.unshift(o.default.createElement(s.default,{key:"ellipsisFirst",disabled:!0,componentClass:l.componentClass},o.default.createElement("span",{"aria-label":"More"},!0===a?"…":a))),u.unshift(o.default.createElement(s.default,r({},l,{key:1,eventKey:1,active:!1}),"1"))),a&&d<t&&((!i||d<t-1)&&u.push(o.default.createElement(s.default,{key:"ellipsis",disabled:!0,componentClass:l.componentClass},o.default.createElement("span",{"aria-label":"More"},!0===a?"…":a))),i&&u.push(o.default.createElement(s.default,r({},l,{key:t,eventKey:t,active:!1}),t))),u},t.prototype.render=function(){var e=this.props,t=e.activePage,n=e.items,a=e.maxButtons,l=e.boundaryLinks,c=e.ellipsis,d=e.first,f=e.last,p=e.prev,h=e.next,g=e.onSelect,m=e.buttonComponentClass,b=e.className,y=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activePage","items","maxButtons","boundaryLinks","ellipsis","first","last","prev","next","onSelect","buttonComponentClass","className"]),v=(0,u.splitBsProps)(y),_=v[0],E=v[1],w=(0,u.getClassSet)(_),A={onSelect:g,componentClass:m};return o.default.createElement("ul",r({},E,{className:(0,i.default)(b,w)}),d&&o.default.createElement(s.default,r({},A,{eventKey:1,disabled:1===t}),o.default.createElement("span",{"aria-label":"First"},!0===d?"«":d)),p&&o.default.createElement(s.default,r({},A,{eventKey:t-1,disabled:1===t}),o.default.createElement("span",{"aria-label":"Previous"},!0===p?"‹":p)),this.renderPageButtons(t,n,a,l,c,A),h&&o.default.createElement(s.default,r({},A,{eventKey:t+1,disabled:t>=n}),o.default.createElement("span",{"aria-label":"Next"},!0===h?"›":h)),f&&o.default.createElement(s.default,r({},A,{eventKey:n,disabled:t>=n}),o.default.createElement("span",{"aria-label":"Last"},!0===f?"»":f)))},t}(o.default.Component);f.propTypes=d,f.defaultProps={activePage:1,items:1,maxButtons:0,first:!1,last:!1,prev:!1,next:!1,ellipsis:!0,boundaryLinks:!1},t.default=(0,u.bsClass)("pagination",f)},1010:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=c(n(55)),o=c(n(1)),a=c(n(2)),l=c(n(725)),s=c(n(1006)),u=c(n(810));function c(e){return e&&e.__esModule?e:{default:e}}var d={componentClass:l.default,className:a.default.string,eventKey:a.default.any,onSelect:a.default.func,disabled:a.default.bool,active:a.default.bool,onClick:a.default.func},f={componentClass:s.default,active:!1,disabled:!1},p=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.handleClick=i.handleClick.bind(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.disabled,r=t.onSelect,i=t.eventKey;n||r&&r(i,e)},t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.active,a=e.disabled,l=e.onClick,c=e.className,d=e.style,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["componentClass","active","disabled","onClick","className","style"]);return t===s.default&&delete f.eventKey,delete f.onSelect,o.default.createElement("li",{className:(0,i.default)(c,{active:n,disabled:a}),style:d},o.default.createElement(t,r({},f,{disabled:a,onClick:(0,u.default)(l,this.handleClick)})))},t}(o.default.Component);p.propTypes=d,p.defaultProps=f,t.default=p},1354:(e,t,n)=>{"use strict";t.__esModule=!0,t.PaginationButton=t.Pagination=void 0;var r=o(n(1355)),i=o(n(1010));function o(e){return e&&e.__esModule?e:{default:e}}t.Pagination=r.default,t.PaginationButton=i.default},2315:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(1743),l=n(769),s=n(740),u=s.constrain,c=s.fma,d=s.int16,f=s.sum,p=s.toFixed,h=s.RAD_TO_DEG,g=new Map,m="z",b=["x","y",m];function y(e,t){var n=e.zeroV,r=e.sensitivity,i=g.get(this),o={};i.zeroV=n||this.DEFAULTS.zeroV,i.sensitivity=r||this.DEFAULTS.sensitivity,this.pins.forEach((function(e,n){this.io.pinMode(e,this.io.MODES.ANALOG),this.io.analogRead(e,(function(e){var r=b[n];o[r]=e,t(o)}))}),this)}function v(e,t){var n=g.get(this),r=n.zeroV;Array.isArray(r)&&r.length>0&&(r=r[b.indexOf(t)||0]);return(e-r)/n.sensitivity}var _={ANALOG:{DEFAULTS:{value:{zeroV:478,sensitivity:96}},initialize:{value:y},toGravity:{value:v}},MPU6050:{initialize:{value:function(e,t){g.get(this).sensitivity=e.sensitivity||16384,n(1094).Drivers.get(this.board,"MPU6050",e).on("data",(function(e){var n=e.accelerometer;return t(n)}))}},toGravity:{value:function(e){return p(e/g.get(this).sensitivity,3)}}},BNO055:{initialize:{value:function(e,t){g.get(this).sensitivity=100,n(1094).Drivers.get(this.board,"BNO055",e).on("data",(function(e){var n=e.accelerometer;return t(n)}))}},toGravity:{value:function(e){return p(e/g.get(this).sensitivity,2)}}},ADXL335:{DEFAULTS:{value:{zeroV:330,sensitivity:66.5}},initialize:{value:y},toGravity:{value:function(e,t){return p(v.call(this,e,t),3)}}},ADXL345:{ADDRESSES:{value:[83]},REGISTER:{value:{POWER:45,DATA_FORMAT:49,DATAX0:50}},initialize:{value:function(e,t){var r=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e),this.io.i2cWrite(r,this.REGISTER.POWER,0),this.io.i2cWrite(r,this.REGISTER.POWER,8);var i={2:0,4:1,8:2,16:3}[e.range||2];this.io.i2cWrite(r,this.REGISTER.DATA_FORMAT,8|i),this.io.i2cRead(r,this.REGISTER.DATAX0,6,(function(e){t({x:d(e[1],e[0]),y:d(e[3],e[2]),z:d(e[5],e[4])})}))}},toGravity:{value:function(e){return p(.00390625*e,8)}}},MMA7361:{DEFAULTS:{value:{zeroV:[372,372,287],sensitivity:170}},initialize:{value:function(e,t){var n=g.get(this);void 0!==e.sleepPin&&(n.sleepPin=e.sleepPin,this.io.pinMode(n.sleepPin,1),this.io.digitalWrite(n.sleepPin,1)),y.call(this,e,t)}},toGravity:{value:function(e,t){return p(v.call(this,e,t),3)}},enabledChanged:{value:function(e){var t=g.get(this);void 0!==t.sleepPin&&this.io.digitalWrite(t.sleepPin,e?1:0)}}},MMA8452:{ADDRESSES:{value:[29]},REGISTER:{value:{STATUS:0,OUT_X_MSB:1,XYZ_DATA_CFG:14,PULSE_CFG:33,PULSE_SRC:34,PULSE_THSX:35,PULSE_THSY:36,PULSE_THSZ:37,PULSE_TMLT:38,PULSE_LTCY:39,PULSE_WIND:40,CTRL_REG1:42,CTRL_REG4:46,CTRL_REG5:47}},initialize:{value:function(e,t){var r=this,i=n(1094).Drivers.addressResolver(this,e),o=g.get(this),a=[800,400,200,100,50,12,6],l=a.indexOf(e.odr||800),s=e.range||2,u={2:0,4:1,8:2}[s];e.taps=e.taps||{x:!1,y:!1,z:!0};var c={x:e.taps.x?8:128,y:e.taps.y?8:128,z:e.taps.z?8:128};o.scale=s;var f={x:null,y:null,z:null};if(this.io.i2cConfig(Object.assign(e,{settings:{stopTX:!1}})),-1===l)throw new RangeError("Invalid odr. Expected one of: 800,  400,  200,  100,  50,  12,  6");var p=8;p|=l<<3,this.io.i2cWriteReg(i,this.REGISTER.CTRL_REG1,p),this.io.i2cWriteReg(i,this.REGISTER.XYZ_DATA_CFG,u);var h=0;128&c.x||(h|=3,this.io.i2cWriteReg(i,this.REGISTER.PULSE_THSX,c.x)),128&c.y||(h|=12,this.io.i2cWriteReg(i,this.REGISTER.PULSE_THSY,c.y)),128&c.z||(h|=48,this.io.i2cWriteReg(i,this.REGISTER.PULSE_THSZ,c.z)),this.io.i2cWriteReg(i,this.REGISTER.PULSE_CFG,64|h),this.io.i2cWriteReg(i,this.REGISTER.PULSE_TMLT,60/(1e3/a[l])),this.io.i2cWriteReg(i,this.REGISTER.PULSE_LTCY,200/(1e3/a[l])),this.io.i2cWriteReg(i,this.REGISTER.PULSE_WIND,255),p|=1,this.io.i2cWriteReg(i,this.REGISTER.CTRL_REG1,p),this.io.i2cRead(i,this.REGISTER.STATUS,7,(function(e){(8&e.shift())>>>3&&(f.x=d(e[0],e[1])>>4,f.y=d(e[2],e[3])>>4,f.z=d(e[4],e[5])>>4,t(f))})),this.io.i2cRead(i,this.REGISTER.PULSE_SRC,1,(function(e){var t=e[0],n=127&t;128&t&&(r.emit("tap"),n>>2&1&&(r.emit("tap:single"),n>>3&1&&r.emit("tap:double")))}))}},toGravity:{value:function(e){return p(e/(2048*g.get(this).scale),4)}}},MMA7660:{ADDRESSES:{value:[76]},REGISTER:{value:{XOUT:0,MODE:7,SR:8}},initialize:{value:function(e,t){var r=n(1094).Drivers.addressResolver(this,e);g.get(this).sensitivity=21.33,this.io.i2cConfig(e),this.io.i2cWrite(r,this.REGISTER.MODE,0),this.io.i2cWrite(r,this.REGISTER.SR,7),this.io.i2cWrite(r,this.REGISTER.MODE,1),this.io.i2cRead(r,this.REGISTER.XOUT,3,(function(e){t({x:63&e[0],y:63&e[1],z:63&e[2]})}))}},toGravity:{value:function(e){return p(e/g.get(this).sensitivity,3)}}},ESPLORA:{DEFAULTS:{value:{zeroV:[320,330,310],sensitivity:170}},initialize:{value:function(e,t){this.pins=[5,11,6],y.call(this,e,t)}},toGravity:{value:function(e,t){return p(v.call(this,e,t),2)}}},LIS3DH:{ADDRESSES:{value:[24]},REGISTER:{value:{OUT_X_L:40,CTRL_REG1:32,CTRL_REG2:33,CTRL_REG3:34,CTRL_REG4:35,CTRL_REG5:36,TEMP_CFG_REG:31,CLICK_CFG:56,CLICK_SRC:57,CLICK_THS:58,TIME_LIMIT:59,TIME_LATENCY:60,TIME_WINDOW:61}},initialize:{value:function(e,t){var n=this,r=g.get(this),i=e.address||24,o={2:0,4:1,8:2,16:3}[e.range||4];void 0===o&&(o=1);var l=[16380,8190,4096,1365][o];void 0===l&&(l=1);var s=[80,40,20,10][o];void 0===s&&(s=10),r.divider=l,r.expander=a.get({address:i,controller:this.controller,bus:this.bus});var u=136|o<<4;r.expander.i2cWrite(i,this.REGISTER.CTRL_REG4,u),r.expander.i2cReadOnce(i,this.REGISTER.CTRL_REG1,1,(function(e){var o=e[0];o&=-241,o|=96,r.expander.i2cWrite(i,n.REGISTER.CTRL_REG1,o),r.expander.i2cRead(i,128|n.REGISTER.OUT_X_L,6,(function(e){t({x:d(e[1],e[0]),y:d(e[3],e[2]),z:d(e[5],e[4])})})),r.expander.i2cWrite(i,n.REGISTER.CTRL_REG3,128),r.expander.i2cWrite(i,n.REGISTER.CTRL_REG5,8),r.expander.i2cWrite(i,n.REGISTER.CLICK_CFG,42);r.expander.i2cWrite(i,n.REGISTER.CLICK_THS,s),r.expander.i2cWrite(i,n.REGISTER.TIME_LIMIT,10),r.expander.i2cWrite(i,n.REGISTER.TIME_LATENCY,20),r.expander.i2cWrite(i,n.REGISTER.TIME_WINDOW,255);var a=null;r.expander.i2cRead(i,n.REGISTER.CLICK_SRC,1,(function(e){var t=e[0],r=Date.now();null===a&&(a=r-101),r<a+100||0!==t&&48&t&&(a=r,n.emit("tap"),16&t&&n.emit("tap:single"),32&t&&(n.emit("tap:single"),n.emit("tap:double")))}))}))}},toGravity:{value:function(e){return p(e/g.get(this).divider,3)}}},LSM303C:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"LSM303C",e).on("data",(function(e){var n=e.accelerometer;return t(n)}))}},toGravity:{value:function(e){return p(e,2)}}}};_.TINKERKIT=_.ANALOG,_.MMA8452Q=_.MMA8452,_.DEFAULT=_.ANALOG;var E=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var r={enabled:!0,x:{value:0,previous:0,stash:[],orientation:null,inclination:null,acceleration:null,calibration:[]},y:{value:0,previous:0,stash:[],orientation:null,inclination:null,acceleration:null,calibration:[]},z:{value:0,previous:0,stash:[],orientation:null,inclination:null,acceleration:null,calibration:[]}};return o.Component.call(n,t=o.Options(t)),o.Controller.call(n,_,t),n.toGravity||(n.toGravity=t.toGravity||function(e){return e}),n.enabledChanged||(n.enabledChanged=function(){}),g.set(n,r),"function"==typeof n.initialize&&n.initialize(t,(function(e){var i=!1;r.enabled&&(Object.keys(e).forEach((function(o){var a=e[o],l=r[o];if(t.autoCalibrate&&l.calibration.length<10){var s=b.indexOf(o);l.calibration.push(a),Array.isArray(r.zeroV)||(r.zeroV=[]),r.zeroV[s]=f(l.calibration)/l.calibration.length,o===m&&(r.zeroV[s]-=r.sensitivity)}if(0===l.stash.length)for(var u=0;u<5;u++)l.stash[u]=a;l.previous=l.value,l.stash.shift(),l.stash.push(a),l.value=f(l.stash)/5|0,n.acceleration!==l.acceleration&&(l.acceleration=n.acceleration,i=!0,n.emit("acceleration",l.acceleration)),n.orientation!==l.orientation&&(l.orientation=n.orientation,i=!0,n.emit("orientation",l.orientation)),n.inclination!==l.inclination&&(l.inclination=n.inclination,i=!0,n.emit("inclination",l.inclination))})),n.emit("data",{x:r.x.value,y:r.y.value,z:r.z.value}),i&&n.emit("change",{x:n.x,y:n.y,z:n.z}))})),Object.defineProperties(n,{hasAxis:{writable:!0,value:function(e){return!!r[e]&&r[e].stash.length>0}},enable:{value:function(){return r.enabled=!0,this.enabledChanged(!0),this}},disable:{value:function(){return r.enabled=!1,this.enabledChanged(!1),this}},zeroV:{get:function(){return r.zeroV}},pitch:{get:function(){var e=this.x,t=this.y,n=this.z,r=this.hasAxis(m)?Math.atan2(e,Math.hypot(t,n)):Math.asin(u(e,-1,1));return p(r*h,2)}},roll:{get:function(){var e=this.x,t=this.y,n=this.z,r=this.hasAxis(m)?Math.atan2(t,Math.hypot(e,n)):Math.asin(u(t,-1,1));return p(r*h,2)}},x:{get:function(){return this.toGravity(r.x.value,"x")}},y:{get:function(){return this.toGravity(r.y.value,"y")}},z:{get:function(){return this.hasAxis(m)?this.toGravity(r.z.value,m):0}},acceleration:{get:function(){return e=this.x,t=this.y,n=this.z,r=c(t,t,r=e*e),r=c(n,n,r),Math.sqrt(r);var e,t,n,r}},inclination:{get:function(){return Math.atan2(this.y,this.x)*h}},orientation:{get:function(){var e=Math.abs,t=this.x,n=this.y,r=this.hasAxis(m)?this.z:1,i=e(t),o=e(n),a=e(r);return i<o&&i<a?t>0?1:-1:o<i&&o<a?n>0?2:-2:a<i&&a<o?r>0?3:-3:0}}}),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(l);r.env.IS_TEST_MODE&&(E.Controllers=_,E.purge=function(){g.clear()}),e.exports=E},2320:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(769),l=n(740).toFixed,s=new Map,u={MPL3115A2:{requirements:{value:{options:{elevation:{throws:!1,message:"Missing `elevation` option. Without a specified base `elevation`, the altitude measurement will be inaccurate. Use the meters value shown on whatismyelevation.com",typeof:"number"}}}},initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MPL3115A2",e).on("data",(function(e){var n=e.altitude;return t(n)}))}},toMeters:{writable:!0,value:function(e){return l(e,1)}}},MS5611:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MS5611",e).on("data",(function(e){var n=e.altitude;return t(n)}))}},toMeters:{writable:!0,value:function(e){return l(e,2)}}},BMP180:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BMP180",e).on("data",(function(e){var n=e.altitude;return t(n)}))}},toMeters:{writable:!0,value:function(e){return l(e,2)}}},BMP280:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BMP280",e).on("data",(function(e){var n=e.altitude;return t(n)}))}},toMeters:{writable:!0,value:function(e){return l(e,3)}}},BME280:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BME280",e).on("data",(function(e){var n=e.altitude;return t(n)}))}},toMeters:{writable:!0,value:function(e){return l(e,3)}}}};u.BMP085=u["BMP-085"]=u.BMP180;var c=function(e){"use strict";function t(t){var n;n=e.call(this)||this,o.Component.call(n,t=o.Options(t)),o.Controller.call(n,u,t);var r=t.freq||25,i=null,a=null;n.toMeters||(n.toMeters=t.toMeters||function(e){return e}),s.set(n,{});var c={meters:{get:function(){return this.toMeters(a)}},feet:{get:function(){return l(3.28084*this.meters,2)}}};return c.m=c.meters,c.ft=c.feet,Object.defineProperties(n,c),"function"==typeof n.initialize&&n.initialize(t,(function(e){return a=e})),setInterval((function(){if(null!=a){var e={};e.m=e.meters=n.meters,e.ft=e.feet=n.feet,n.emit("data",e),n.meters!==i&&(i=n.meters,n.emit("change",e))}}),r),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(a);r.env.IS_TEST_MODE&&(c.Controllers=u,c.purge=function(){s.clear()}),e.exports=c},1914:(e,t,n)=>{var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var a,l=n(769),s=n(2549),u=n(740),c=u.cloneDeep,d=u.constrain,f=function(e){"use strict";function t(r){var i;return i=e.call(this)||this,a||(a=n(2550)),Object.assign(i,new t.Segment),i.defaultTarget=r||{},i}var l,u;u=e,(l=t).prototype=Object.create(u.prototype),l.prototype.constructor=l,o(l,u);var f=t.prototype;return f.enqueue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return void 0===e.target&&(e.target=this.defaultTarget),this.segments.push(e),this.paused||this.isRunning||this.next(),this},f.next=function(){return this.isRunning||(this.isRunning=!0,this.segments.length>0?(Object.assign(this,new t.Segment(this.segments.shift())),this.paused=0===this.currentSpeed,this.onstart&&this.onstart(),this.normalizeKeyframes(),this.reverse&&(this.currentSpeed*=-1),0!==this.currentSpeed?this.play():this.paused=!0):this.playLoop.stop()),this},f.pause=function(){this.emit("animation:pause"),this.playLoop&&this.playLoop.stop(),this.paused=!0,this.onpause&&this.onpause()},f.stop=function(){this.emit("animation:stop"),this.segments=[],this.isRunning=!1,this.playLoop&&this.playLoop.stop(),this.onstop&&this.onstop()},f.speed=function(e){return void 0===e?this.currentSpeed:(this.currentSpeed=e,this.scaledDuration=this.duration/Math.abs(this.currentSpeed),this.startTime=Date.now()-this.scaledDuration*this.progress,this.endTime=this.startTime+this.scaledDuration,this.paused||this.play(),this)},f.loopFunction=function(e){var n=this,i=e.calledAt,o=this.calculateProgress(i),a=this.findIndices(o);this.target[t.render](this.tweenedValue(a,o)),i>this.fallBackTime&&(this.fallBackTime=1/0,this.playLoop&&this.playLoop.stop(),this.playLoop=new t.TemporalFallback(this)),(1===this.progress&&!this.reverse||o===this.loopback&&this.reverse)&&(this.loop||this.metronomic&&!this.reverse?(this.onloop&&this.onloop(),this.metronomic&&(this.reverse=!this.reverse),this.normalizeKeyframes(),this.progress=this.loopback,this.startTime=Date.now()-this.scaledDuration*this.progress,this.endTime=this.startTime+this.scaledDuration):(this.isRunning=!1,this.oncomplete&&r.nextTick((function(){return n.oncomplete()})),this.segments.length>0?r.nextTick((function(){return n.next()})):this.stop()))},f.play=function(){var e=this,t=Date.now();this.playLoop&&this.playLoop.stop(),this.paused=!1,this.isRunning=!0,this.scaledDuration=this.duration/Math.abs(this.currentSpeed),this.startTime=t-this.scaledDuration*this.progress,this.endTime=this.startTime+this.scaledDuration,this.fallBackTime=t+0,this.frameCount=0,this.fps&&(this.rate=1e3/this.fps),this.rate=0|this.rate,this.playLoop=a.loop(this.rate,(function(t){return e.loopFunction(t)}))},f.findIndices=function(e){var t={left:null,right:null};return t.right=this.cuePoints.findIndex((function(t){return t>=e})),t.left=0===t.right?0:t.right-1,t},f.calculateProgress=function(e){var t=(e-this.startTime)/this.scaledDuration;return t>1&&(t=1),this.progress=t,this.reverse&&(t=1-t),d(s[this.easing](t),0,1)},f.tweenedValue=function(e,n){var r=this,i={duration:null,progress:null};return this.normalizedKeyFrames.map((function(o){var a={left:null,right:null};for(a.left=e.left;a.left>-1&&null===o[a.left];a.left--);a.right=o.findIndex((function(t,n){return n>=e.right&&null!==t})),i.duration=r.cuePoints[a.right]-r.cuePoints[a.left],i.progress=(n-r.cuePoints[a.left])/i.duration,Number.isFinite(i.progress)||(i.progress=r.reverse?0:1);var l=o[a.left],u=o[a.right];return i.progress=s[u.easing](i.progress),u.position?u.position.map((function(e,t){return(e-l.position[t])*i.progress+l.position[t]})):"number"==typeof u.value&&"number"==typeof l.value?(u.value-l.value)*i.progress+l.value:r.target[t.keys].reduce((function(e,t){return e[t]=(u.value[t]-l.value[t])*i.progress+l.value[t],e}),{})}))},f.normalizeKeyframes=function(){var e,n=c(this.keyFrames),r=this.cuePoints;return n=this.target[t.normalize](n),Array.isArray(n[0])||(n=[n]),n.forEach((function(t){for(var n=t.length;n<r.length;n++)t.push(null);t.forEach((function(t,n,r){null!==t?("object"!==i(t)&&(t={step:t,easing:"linear"}),void 0!==t.step&&(t.value=!1===t.step?e:e+t.step),t.easing||(t.easing="linear"),void 0!==t.copyValue&&(t.value=r[t.copyValue].value),t.copyFrame&&(t=r[t.copyFrame]),e=t.value):t=n===r.length-1?{value:e,easing:"linear"}:null,r[n]=t}),this)})),this.normalizedKeyFrames=n,this},t}(l);f.keys="@@keys",f.normalize="@@normalize",f.render="@@render",f.TemporalFallback=function(){"use strict";function e(e){this.interval=setInterval((function(){e.loopFunction({calledAt:Date.now()})}),e.rate)}return e.prototype.stop=function(){this.interval&&clearInterval(this.interval)},e}(),f.Segment=function(){"use strict";return function(e){this.cuePoints=[0,1],this.duration=1e3,this.easing="linear",this.loop=!1,this.loopback=0,this.metronomic=!1,this.currentSpeed=1,this.progress=0,this.fps=60,this.rate=1e3/60,this.paused=!1,this.isRunning=!1,this.segments=[],this.onstart=null,this.onpause=null,this.onstop=null,this.oncomplete=null,this.onloop=null,e&&(Object.assign(this,e),e.segments&&(this.segments=e.segments.slice()))}}(),e.exports=f},2321:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(769),l=n(740).toFixed,s={MPL115A2:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MPL115A2",e).on("data",(function(e){var n=e.pressure;return t(n)}))}},toPressure:{value:function(e){return l(65/1023*e+50,2)}}},MPL3115A2:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MPL3115A2",e).on("data",(function(e){var n=e.pressure;return t(n)}))}},toPressure:{value:function(e){return l(3.39*(e/4/3377),4)}}},BMP180:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BMP180",e).on("data",(function(e){var n=e.pressure;return t(n)}))}},toPressure:{value:function(e){return l(e/1e3,3)}}},BMP280:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BMP280",e).on("data",(function(e){var n=e.pressure;return t(n)}))}},toPressure:{value:function(e){return l(e/1e3,5)}}},BME280:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BME280",e).on("data",(function(e){var n=e.pressure;return t(n)}))}},toPressure:{value:function(e){return l(e/1e3,5)}}},MS5611:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MS5611",e).on("data",(function(e){var n=e.pressure;return t(n)}))}},toPressure:{value:function(e){return l(e/1e3,4)}}}};s.BMP085=s.BMP180;var u=function(e){"use strict";function t(t){var n;n=e.call(this)||this,o.Component.call(n,t=o.Options(t)),o.Controller.call(n,s,t);var r=t.freq||25,i=null,a=null;return n.toPressure||(n.toPressure=t.toPressure||function(e){return e}),"function"==typeof n.initialize&&n.initialize(t,(function(e){a=e})),Object.defineProperties(n,{pressure:{get:function(){return this.toPressure(a)}}}),setInterval((function(){if(null!==a){var e={pressure:n.pressure};n.emit("data",e),n.pressure!==i&&(i=n.pressure,n.emit("change",e))}}),r),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(a);r.env.IS_TEST_MODE&&(u.Controllers=s,u.purge=function(){}),e.exports=u},683:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var u,c=n(769),d=n(2534),f=n(1105),p=n(740),h=n(2317),g=n(2318),m=n(2543),b=!!r.env.IS_TEST_MODE,y=[],v=/usb|acm|^com/i,_="undefined",E={used:[],attempts:[],detect:function(e){var t=this;(parseFloat(r.versions.nw)>=.13?n(2544):n(3165)).list().then((function(n){var r=n.reduce((function(e,t){var n=!0;return v.test(t.path)||(n=!1),E.used.includes(t.path)&&(n=!1),n&&e.push(t.path),e}),[]);if(!r.length){if(b&&t.abort)return;return E.attempts[E.used.length]||(E.attempts[E.used.length]=0,t.info("Board","Looking for connected device")),E.attempts[E.used.length]++,E.attempts[E.used.length]>10?void t.fail("Board","No connected device found"):void setTimeout((function(){E.detect.call(t,e)}),400)}t.info("Available",d.grey(r)),e.call(t,r[0])}))},connect:function(e,t){var r,i,o,a,l=this,u=n(2147).Board,c=null;"object"===s(e)&&e.path?(o=e.path,this.info(e.transport||"SerialPort",d.grey(o))):o=e,E.used.push(o);try{(r=new u(e,(function(e){e&&(c=e),t.call(l,c,c?"error":"ready",r)}))).name="Firmata",r.defaultLed=13,r.port=o,i=!0}catch(f){c=f}c&&(c=c.message||c),a=i?"connect":"error",t.call(this,c,a,r)}},w=function(e){"use strict";function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=e.call(this)||this;var o={},a=!1;return Object.assign(n,i),n.timer=null,n.isConnected=!1,n.isReady=!1,n.io=n.io||null,n.register=[],n.occupied=[],n.Drivers={},n.id||(n.id=p.uid()),s(n.debug)===_&&(n.debug=!0),s(n.repl)===_&&(n.repl=!0),s(n.sigint)===_&&(n.sigint=!0),n.pins=null,n.repl&&(h.ref?(o[n.id]=n,h.ref.on("ready",(function(){h.ref.inject(o)})),n.repl=h.ref):(o[n.id]=o.board=n,n.repl=new h(o))),i.io?(n.io=i.io,n.isReady=i.io.isReady,n.transport=n.io.transport||null,n.port=n.io.name,n.pins=t.Pins(n),n.RESOLUTION=Object.assign({ADC:1023,DAC:null,PWM:255},n.io.RESOLUTION||{})):n.port&&i.port?E.connect.call(n,n.port,A):E.detect.call(n,(function(e){E.connect.call(this,e,A)})),i.port||null===n.io||(n.info("Available",d.grey(n.io.name||"unknown")),["connect","ready"].forEach((function(e){n.io.once(e,(function(){"ready"!==e||n.isConnected?A.call(n,null,e,n.io):a=!0,"connect"===e&&a&&A.call(n,null,"ready",n.io)})),n.io.isReady&&r.nextTick((function(){return n.io.emit(e)}))}))),n.once("ready",(function(){var e=r.hrtime();n.millis=function(){return r.hrtime(e)[1]/1e6},["close","disconnect","error","string"].forEach((function(e){n.io.on(e,(function(t){return n.emit(e,t)}))}))})),y.push(n),n}return a(t,e),t}(c);function A(e,t,n){var i=this,o=!1;this.io||(this.io=n),"error"===t&&e&&e.message&&(o=!0,this.error("Error",e.message)),"connect"===t&&(this.isConnected=!0,this.port=n.port||n.name,this.info("Connected",d.grey(this.port)),b||(this.timer=setTimeout((function(){i.error("Device or Firmware Error","A timeout occurred while connecting to the Board. \n\nPlease check that you've properly flashed the board with the correct firmware.\nSee: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting\n\nIf connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again."),i.emit("error",new Error("A timeout occurred while connecting to the Board."))}),this.timeout||1e4))),"ready"===t&&(this.timer&&clearTimeout(this.timer),this.isReady=!0,this.pins=w.Pins(this),this.MODES=this.io.MODES,s(n.debug)!==_&&!1===n.debug&&(this.debug=!1),s(n.repl)!==_&&!1===n.repl&&(this.repl=!1),this.repl&&this.repl.initialize((function(){return i.emit("ready")})),"Mock"!==n.name&&this.sigint&&r.on("SIGINT",(function(){i.emit("exit"),i.warn("Board","Closing.");var e=setTimeout((function(){r.reallyExit()}),1e3),t=setInterval((function(){i.io.pending||(clearInterval(t),clearTimeout(e),r.nextTick(r.reallyExit))}),1)})),this.RESOLUTION=Object.assign({ADC:1023,DAC:null,PWM:255},n.RESOLUTION||{})),this.repl?"connect"===t&&this.emit(t,e):o||this.emit(t,e)}["digitalWrite","analogWrite","analogRead","digitalRead","pinMode","queryPinState","stepperConfig","stepperStep","sendI2CConfig","sendI2CWriteRequest","sendI2CReadRequest","i2cConfig","i2cWrite","i2cWriteReg","i2cRead","i2cReadOnce","pwmWrite","servoConfig","servoWrite","sysexCommand","sysexResponse","serialConfig","serialWrite","serialRead","serialStop","serialClose","serialFlush","serialListen"].forEach((function(e){w.prototype[e]=function(){return this.io[e].apply(this.io,arguments),this}})),w.prototype.snapshot=function(e){var t=this.snapshot.blacklist,n=this.snapshot.special,r="function"==typeof e;return this.register.reduce((function(i,o){return s(o.components)===_&&i.push(Object.getOwnPropertyNames(o).reduce((function(i,a){var l=o[a];if(!t.includes(a)&&"function"!=typeof l)if(r){var s=e(a,l,o);void 0!==s&&(i[a]=s)}else i[a]=n[a]?n[a](l):l;return i}),Object.create(null))),i}),[])},w.prototype.serialize=function(e){return JSON.stringify(this.snapshot(e))},w.prototype.snapshot.blacklist=["board","io","_events","_eventsCount","state"],w.prototype.samplingInterval=function(e){if(!this.io.setSamplingInterval)throw new Error("This IO plugin does not implement an interval adjustment method");return this.io.setSamplingInterval(e),this},w.prototype.snapshot.special={mode:function(e){return["INPUT","OUTPUT","ANALOG","PWM","SERVO"][e]||"unknown"}},w.prototype.shiftOut=function(e,t,n,r){3===arguments.length&&(r=n,n=!0);for(var i=0;i<8;i++)this.io.digitalWrite(t,0),n?this.io.digitalWrite(e,0|!!(r&1<<7-i)):this.io.digitalWrite(e,0|!!(r&1<<i)),this.io.digitalWrite(t,1)};var C={specials:["error","fail","warn","info"],colors:{log:"white",error:"red",fail:"inverse",warn:"yellow",info:"cyan"}};w.prototype.log=function(){var e=Array.from(arguments);C.specials.includes(e[0])||e.unshift("log");var t=e.shift(),n=e.shift(),r=e.shift(),i=C.colors[t],o=Date.now(),a={type:t,timestamp:o,class:n,message:"",data:null};"object"===s(e[e.length-1])&&(a.data=e.pop()),r+=" "+e.join(", "),a.message=r.trim(),this.debug&&console.log([d.grey(o),d.magenta(n),d[i](r),e.join(", ")].join(" ")),this.emit(t,a),this.emit("message",a)},C.specials.forEach((function(e){w.prototype[e]=function(){var t=[].slice.call(arguments);t.unshift(e),this.log.apply(this,t)}})),w.prototype.wait=function(e,t){return setTimeout(t,e),this},w.prototype.loop=function(e,t){var n=setInterval((function(){t((function(){clearInterval(n)}))}),e);return this},w.map=p.map,w.fmap=p.fmap,w.constrain=p.constrain,w.range=p.range,w.uid=p.uid,w.mount=function(e){var t="number"==typeof e&&e;return e&&e.board?e.board:"number"==typeof t?y[t]||null:y.length?y[0]:null},w.Component=function(e,t){var r;if(s(e)===_&&(e={}),s(t)===_&&(t={}),this.board=w.mount(e),this.io=this.board.io,this.id=e.id||w.uid(),this.custom=e.custom||{},"number"==typeof e.pin||"string"==typeof e.pin)r=[e.pin];else if(Array.isArray(e.pins))r=e.pins.slice();else if("object"===s(e.pins)&&null!==e.pins){var i=e.pins||e.pin;for(var o in r=[],i)r.push(i[o])}e.controller&&("string"==typeof e.controller&&(e.controller=e.controller.replace(/-/g,"")),u||(u=n(1743)),u.hasController(e.controller)&&(t={normalizePin:!1,requestPin:!1})),(t=w.Component.initialization(t)).normalizePin&&(e=w.Pins.normalize(e,this.board)),s(e.pins)!==_&&(this.pins=e.pins||[]),s(e.pin)!==_&&(this.pin=e.pin),s(e.emitter)!==_&&(this.emitter=e.emitter),s(e.address)!==_&&(this.address=e.address),s(e.controller)!==_&&(this.controller=e.controller),s(e.bus)!==_&&(this.bus=e.bus),this.board.register.push(this)},w.Component.initialization=function(e){return Object.assign({},{requestPin:!0,normalizePin:!0},e)},w.Controller=function(e,t){var n;if(null===(n="string"==typeof t.controller?e[t.controller]||e[t.controller.toUpperCase()]:t.controller||e.DEFAULT||null))throw new Error("No Valid Controller Found");var r=n.requirements&&n.requirements.value;r&&r.options&&Object.keys(r.options).forEach((function(e){if(s(t[e])===_||s(t[e])!==r.options[e].typeof){if(r.options[e].throws)throw new Error(r.options[e].message);this.board.warn(this.constructor.name,r.options[e].message)}}),this),Object.defineProperties(this,n)},w.Pins=m,w.Options=function(e){return new g(e)},Object.defineProperty(w,"cache",{get:function(){return y}}),w.Event=function(e){if(s(e)===_)throw new Error("Board.Event missing Event object");this.type=e.type||"data",this.target=e.target||null,Object.assign(this,e)};var S=function(e){"use strict";function t(t){var n,r;if(Array.isArray(t)&&(r=t.slice(),t={ports:r}),Array.isArray(t)||"object"!==s(t)||void 0===t.ports||(r=t.ports),!Array.isArray(r))throw new Error("Expected ports to be an array");s(t.debug)===_&&(t.debug=!0),s(t.repl)===_&&(t.repl=!0);var i={},o=r.some((function(e){return!1===e.repl})),a=r.some((function(e){return!1===e.debug})),l=r.map((function(e){var t;return"string"==typeof e?(t={},v.test(e)?t.port=e:t.id=e):t=e,t.repl=!1,new w(t)}));(n=e.call(this,l)||this).debug=t.debug,n.repl=t.repl,a&&(n.debug=!1),o&&(n.repl=!1);var u=n.map((function(e,t){return i[e.id]=e,new Promise((function(e){n[t].on("error",(function(e){return n.emit("error",e)})),n[t].on("fail",(function(e){return n.emit("fail",e)})),n[t].on("ready",(function(){return e(n[t])}))}))}));return Promise.all(u).then((function(){n.each((function(e){e.info("Board ID: ",d.green(e.id))})),n.repl?(n.repl=new h(Object.assign({},i,{board:n})),n.repl.initialize((function(){return n.emit("ready",i)}))):n.emit("ready",i)})).catch((function(e){console.error(d.red(e))})),n}return a(t,e),n=t,o=[{key:"type",get:function(){return w}}],(r=null)&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(f);f.installMethodForwarding(S.prototype,w.prototype),Object.assign(S.prototype,c.prototype),S.prototype.byId=function(e){for(var t=0;t<this.length;t++)if(this[t].id===e)return this[t];return null},S.prototype.log=w.prototype.log,C.specials.forEach((function(e){S.prototype[e]=function(){var t=[].slice.call(arguments);t.unshift(e),this.log.apply(this,t)}})),b&&(E.purge=function(){E.used.length=0},w.Serial=E,w.purge=function(){w.Pins.normalize.clear(),h.isActive=!1,h.isBlocked=!0,h.ref=null,y.length=0},w.testMode=function(e){if(!arguments.length)return b;b=e}),w.Array=S,w.Collection=S,e.exports=w},2318:e=>{e.exports=function(e){"use strict";var t={};"number"==typeof e||"string"==typeof e?t.pin=e:Array.isArray(e)?t.pins=e:t=e,Object.assign(this,t)}},2543:(e,t,n)=>{function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o=n(2318),a={INPUT:0,OUTPUT:1,ANALOG:2,PWM:3,SERVO:4},l={20:"UNO",25:"LEONARDO",70:"MEGA"};function s(e){var t=this;if(!(this instanceof s))return new s(e);var n=e.io,r=n.pins.slice(),i=r.length,o=l[i]||"OTHER";e.type=o;for(var a=0;a<i;a++)this[a]=r[a];Object.defineProperties(this,{type:{value:o},length:{value:i}}),["isInput","isOutput","isAnalog","isPwm","isServo"].forEach((function(e){n[e]&&(t[e]=n[e])}))}function u(e){var t=e.io;return"Firmata"===t.name||"Mock"===t.name}Object.entries(a).forEach((function(e){var t=r(e,2),n=t[0],i=t[1];Object.defineProperty(s,n,{value:i})})),s.isFirmata=u,s.Error=function(e){var t=e.pin,n=e.type,r=e.via;throw new Error("Pin Error: ".concat(t," is not a valid ").concat(n," pin (").concat(r,")"))};var c=new Map;s.normalize=function(e,t){var n,r,i,a,l=t.pins.type,d=u(t),f=c.get(t);return("string"==typeof e||"number"==typeof e||Array.isArray(e))&&(e=new o(e)),f||(n=t.io&&"function"==typeof t.io.normalize,f=function(e){return d?s.fromAnalog(s.translate(e,l)):n?t.io.normalize(e):e},c.set(t,f)),i=(r=e).pin,a=r.pins,(void 0!==i||void 0!==a&&a.length)&&(e.pins?e.pins=e.pins.map(f):e.pin=f(e.pin)),e},s.normalize.clear=function(){c.clear()},s.translations={UNO:{dtoa:{14:"A0",15:"A1",16:"A2",17:"A3",18:"A4",19:"A5"},tinker:{I0:"A0",I1:"A1",I2:"A2",I3:"A3",I4:"A4",I5:"A5",O0:11,O1:10,O2:9,O3:6,O4:5,O5:3,D13:13,D12:12,D8:8,D7:7,D4:4,D2:2}},MEGA:{dtoa:{54:"A0",55:"A1",56:"A2",57:"A3",58:"A4",59:"A5",60:"A6",61:"A7",62:"A8",63:"A9"},tinker:{I0:"A0",I1:"A1",I2:"A2",I3:"A3",I4:"A4",I5:"A5",I6:"A6",I7:"A7",I8:"A8",I9:"A9",O0:11,O1:10,O2:9,O3:6,O4:5,O5:3,D13:13,D12:12,D8:8,D7:7,D4:4,D2:2}}},s.translations.LEONARDO=s.translations.UNO,s.translate=function(e,t){var n=s.translations[t.toUpperCase()];return n?Object.keys(n).reduce((function(e,t){return n[t][e]||e}),e):e},s.fromAnalog=function(e){return"string"==typeof e&&e.length>1&&"A"===e[0]?parseInt(e.slice(1),10):e},s.identity=function(e,t){return[].findIndex.call(e,(function(e){return e.name===t||e.id===t||e.port===t}))},Object.keys(a).forEach((function(e){var t=e[0]+e.slice(1).toLowerCase();s.prototype["is"+t]=function(t){var n=this[t]||this[s.identity(this,t)];return!(!n||!n.supportedModes.includes(a[e]))}})),s.prototype.isDigital=function(e){var t=this[e]||this[s.identity(this,e)];return!(!t||!t.supportedModes.length)},e.exports=s},2552:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=n(683),c=n(1105),d=n(769),f=n(1981),p=n(740),h=new Map,g=u.Pins,m={down:["down","press"],up:["up","release"]},b={DEFAULT:{initialize:{value:function(e,t){var n=h.get(this);g.isFirmata(this)&&"string"==typeof e.pinValue&&e.pinValue.length>1&&"A"===e.pinValue[0]&&(e.pinValue=this.io.analogPins[+e.pinValue.slice(1)]),this.pin=Number.isNaN(+e.pinValue)?e.pinValue:+e.pinValue,this.io.pinMode(this.pin,this.io.MODES.INPUT),this.pullup&&this.io.digitalWrite(this.pin,this.io.HIGH),this.pulldown&&this.io.digitalWrite(this.pin,this.io.LOW),this.io.digitalRead(this.pin,(function(e){e!==n.last&&t(e)}))}},toBoolean:{writable:!0,value:function(e){return e===this.downValue}}},TINKERKIT:{initialize:{value:function(e,t){var n=h.get(this),r=0;this.io.pinMode(this.pin,this.io.MODES.ANALOG),this.io.analogRead(this.pin,(function(e){(e=e>512?1:0)!==r&&e!==n.last&&t(e),r=e}))}},toBoolean:{writable:!0,value:function(e){return e===this.downValue}}},EVS_EV3:{initialize:{value:function(e,t){var n=h.get(this);n.previous=0,n.shield=f.shieldPort(e.pin),n.register=f.Touch,n.ev3=new f(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,f.Type_EV3_TOUCH),n.ev3.read(n.shield,f.Touch,f.Touch_Bytes,(function(e){var r=e[0];n.previous!==r&&t(r),n.previous=r}))}},toBoolean:{writable:!0,value:function(e){return e===this.downValue}}},EVS_NXT:{initialize:{value:function(e,t){var n=h.get(this);n.previous=0,n.shield=f.shieldPort(e.pin),n.ev3=new f(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,f.Type_ANALOG),n.ev3.read(n.shield,n.shield.analog,f.Analog_Bytes,(function(e){var r=e[0]|e[1]<<8;r=r<300?1:0,n.previous!==r&&t(r),n.previous=r}))}},toBoolean:{writable:!0,value:function(e){return e===this.downValue}}}},y=function(e){"use strict";function t(t){var n,r;n=e.call(this)||this;var i=!1,o=1,l=0,s={interval:null,last:null},c=p.debounce((function(e){m[e].forEach((function(e){return n.emit(e)}))}),7),d="object"===a(t)?t.pin:t;return u.Component.call(n,t=u.Options(t)),u.Controller.call(n,b,t),t.pinValue=d,n.holdtime=t.holdtime||500,n.pullup=t.pullup||t.isPullup||!1,n.pulldown=t.pulldown||t.isPulldown||!1,(i=void 0!==t.invert?t.invert:n.pullup||!1)&&(o^=1,l^=1),s.last=l,h.set(n,s),Object.defineProperties(n,{value:{get:function(){return Number(this.isDown)}},invert:{get:function(){return i},set:function(e){o=(i=e)?0:1,l=i?1:0,s.last=l}},downValue:{get:function(){return o},set:function(e){o=e,l=1^e,i=!!e,s.last=l}},upValue:{get:function(){return l},set:function(e){l=e,o=1^e,i=!!e,s.last=o}},isDown:{get:function(){return this.toBoolean(r)}}}),"function"==typeof n.initialize&&n.initialize(t,(function(e){r=e,n.isDown||(s.interval&&clearInterval(s.interval),c("up")),n.isDown&&(c("down"),s.interval=setInterval((function(){n.isDown&&n.emit("hold")}),n.holdtime)),s.last=e})),n}return l(t,e),t}(d),v=function(e){"use strict";function t(t){return e.call(this,t)||this}return l(t,e),n=t,(r=[{key:"type",get:function(){return y}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c.Emitter);c.installMethodForwarding(v.prototype,y.prototype),y.Collection=v,r.env.IS_TEST_MODE&&(y.Controllers=b,y.purge=function(){h.clear()}),e.exports=y},2553:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(1981),l=n(769),s=n(740),u=new Map,c={EVS_EV3:{initialize:{value:function(e,t){var n=u.get(this);e.mode&&(e.mode=e.mode.toUpperCase()),n.mode="RAW"===e.mode?a.Type_EV3_COLOR_RGBRAW:a.Type_EV3_COLOR,n.bytes=n.mode===a.Type_EV3_COLOR_RGBRAW?6:2,n.colors=[[],[0,0,0],[0,0,255],[0,128,0],[255,255,0],[255,0,0],[255,255,255],[139,69,19]],n.shield=a.shieldPort(e.pin),n.ev3=new a(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,a.Type_EV3),n.ev3.write(n.shield,129+n.shield.offset,n.mode),n.ev3.read(n.shield,a.ColorMeasure,n.bytes,(function(e){var r="";if(2===n.bytes)r+=String(e[0]|e[1]<<8||1);else for(var i=0;i<3;i++)r+=e[2*i].toString(16).padStart(2,"0");t(r)}))}},toRGB:{value:function(e){var t=u.get(this);return t.mode===a.Type_EV3_COLOR?e>0&&e<8?t.colors[e]:t.colors[0]:(e=String(e),[0,0,0].map((function(t,n){return parseInt(e.slice(2*n,2*n+2),16)})))}}},EVS_NXT:{initialize:{value:function(e,t){var n=u.get(this);if(e.mode&&(e.mode=e.mode.toUpperCase()),n.mode="RAW"===e.mode?a.Type_NXT_COLOR_RGBRAW:a.Type_NXT_COLOR,n.bytes=n.mode===a.Type_NXT_COLOR_RGBRAW?10:1,n.mode===a.Type_NXT_COLOR_RGBRAW)throw new Error("Raw RGB is not currently supported for the NXT.");n.colors=[[],[0,0,0],[0,0,255],[0,128,0],[255,255,0],[255,0,0],[255,255,255]],n.shield=a.shieldPort(e.pin),n.ev3=new a(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,a.Type_NXT_COLOR),n.ev3.read(n.shield,112+n.shield.offset,n.bytes,(function(e){var r="";1===n.bytes&&(r+=String(e[0])),t(r)}))}},toRGB:{value:function(e){var t=u.get(this);return t.mode===a.Type_NXT_COLOR?e>0&&e<7?t.colors[e]:t.colors[0]:(e=String(e),[0,0,0].map((function(t,n){return parseInt(e.slice(2*n,2*n+2),16)})))}}},ISL29125:{ADDRESSES:{value:[68]},REGISTER:{value:{RESET:0,CONFIG1:1,CONFIG2:2,CONFIG3:3,READ:9}},initialize:{value:function(e,t){var r=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e),this.io.i2cWriteReg(r,this.REGISTER.RESET,70),this.io.i2cWriteReg(r,this.REGISTER.CONFIG1,13),this.io.i2cWriteReg(r,this.REGISTER.CONFIG2,63),this.io.i2cWriteReg(r,this.REGISTER.CONFIG3,0),this.io.i2cRead(r,this.REGISTER.READ,6,(function(e){for(var n="",r=e[1]<<8|e[0],i=[(e[3]<<8|e[2])>>2,r>>2,(e[5]<<8|e[4])>>2].map((function(e){return s.constrain(e,0,255)})),o=0;o<3;o++)n+=i[o].toString(16).padStart(2,"0");t(n)}))}},toRGB:{value:function(e){return e=String(e),[0,0,0].map((function(t,n){return parseInt(e.slice(2*n,2*n+2),16)}))}}}},d=["red","green","blue"],f=function(e){"use strict";function t(t){var n;n=e.call(this)||this,o.Component.call(n,t=o.Options(t)),o.Controller.call(n,c,t);var r=t.freq||25,i=0,a=null;return u.set(n,{}),n.toRGB||(n.toRGB=t.toRGB||function(e){return e}),Object.defineProperties(n,{value:{get:function(){return i}},rgb:{get:function(){return this.toRGB(i).reduce((function(e,t,n){return e[d[n]]=t,e}),{})}}}),"function"==typeof n.initialize&&n.initialize(t,(function(e){i=e})),setInterval((function(){if(void 0!==i){var e={rgb:n.rgb};n.emit("data",e),i!==a&&(a=i,n.emit("change",e))}}),r),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t.hexCode=function(e){return void 0===e.red||void 0===e.green||void 0===e.blue?null:0===e.length?"unknown":d.reduce((function(t,n){return t+e[n].toString(16).padStart(2,"0")}),"")},t}(l);r.env.IS_TEST_MODE&&(f.Controllers=c,f.purge=function(){u.clear()}),e.exports=f},2324:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(769),l=n(740),s=l.int16,u=l.RAD_TO_DEG,c=l.TAU,d=new Map,f={HMC5883L:{REGISTER:{value:{CRA:0,CRB:1,MODE:2,READ:3}},initialize:{value:function(e,t){var n=d.get(this),r=e.address||30;n.scale=1,Object.assign(n,new p.Scale(e.gauss||.88)),e.address=r,this.io.i2cConfig(e),this.io.i2cWrite(r,this.REGISTER.CRA,112),this.io.i2cWrite(r,this.REGISTER.CRB,64),this.io.i2cWrite(r,this.REGISTER.MODE,0),this.io.i2cRead(r,this.REGISTER.READ,6,(function(e){t({x:s(e[0],e[1]),y:s(e[4],e[5]),z:s(e[2],e[3])})}))}},toScaledHeading:{value:function(e){var t=e.x,n=e.y,r=d.get(this);return h(t*r.scale,n*r.scale)}}},HMC6352:{REGISTER:{value:{READ:65}},initialize:{value:function(e,t){var n=d.get(this),r=e.address||33;n.scale=1,e.delay=10,e.address=r,this.io.i2cConfig(e),this.io.i2cWrite(r,this.REGISTER.READ),this.io.i2cRead(r,this.REGISTER.READ,2,(function(e){t({x:((e[0]<<8)+e[1])/10|0,y:null,z:null})}))}},toScaledHeading:{value:function(e){return e.x*d.get(this).scale}}},BNO055:{initialize:{value:function(e,t){var r=n(1094).Drivers.get(this.board,"BNO055",e);d.get(this).sensitivity=16,r.on("data",(function(e){var n=e.magnetometer;t(n)}))}},toScaledHeading:{value:function(e){var t=d.get(this);return h(e.x/t.sensitivity,e.y/t.sensitivity)}}},MAG3110:{REGISTER:{value:{STATUS:0,READ:1,OFFSETS:9,CTRL_REG1:16,CTRL_REG2:17}},initialize:{value:function(e,t){var n,r=this,i=d.get(this),o=14,a=!1;i.isCalibrated=!1,i.isPreCalibrated=!1,i.hasEmittedCalibration=!1,i.measurements=20,i.offsets={x:0,y:0,z:0},i.accum={x:{offset:null,high:0,low:0},y:{offset:null,high:0,low:0},z:{offset:null,high:0,low:0}},e.delay=2,e.address=o,e.offsets&&(i.isCalibrated=!0,i.isPreCalibrated=!0,Array.isArray(e.offsets)&&(n=e.offsets.slice(),e.offsets={x:n[0],y:n[1],z:n[2]}),i.accum.x.low=e.offsets.x[0],i.accum.x.high=e.offsets.x[1],i.accum.x.offset=(i.accum.x.low+i.accum.x.high)/2,i.accum.y.low=e.offsets.y[0],i.accum.y.high=e.offsets.y[1],i.accum.y.offset=(i.accum.y.low+i.accum.y.high)/2,i.accum.z.low=e.offsets.z[0],i.accum.z.high=e.offsets.z[1],i.accum.z.offset=(i.accum.z.low+i.accum.z.high)/2),this.io.i2cConfig(e),this.io.i2cWrite(o,this.REGISTER.CTRL_REG2,128),this.io.i2cWrite(o,this.REGISTER.CTRL_REG1,1);var l={x:0,y:0,z:0};!function e(){r.io.i2cReadOnce(o,r.REGISTER.STATUS,1,(function(n){a||15!==n[0]&&255!==n[0]?e():(a=!0,r.io.i2cReadOnce(o,r.REGISTER.READ,6,(function(n){var u=0;a=!1,l.x=s(n[0],n[1]),l.y=s(n[2],n[3]),l.z=s(n[4],n[5]),i.isCalibrated||(null===i.accum.x.offset&&(i.accum.x.offset=l.x,i.accum.x.low=l.x,i.accum.x.high=l.x),null===i.accum.y.offset&&(i.accum.y.offset=l.y,i.accum.y.low=l.y,i.accum.y.high=l.y),i.accum.x.low=Math.min(i.accum.x.low,l.x),i.accum.x.high=Math.max(i.accum.x.high,l.x),i.accum.x.offset=Math.trunc((i.accum.x.low+i.accum.x.high)/2),i.accum.y.low=Math.min(i.accum.y.low,l.y),i.accum.y.high=Math.max(i.accum.y.high,l.y),i.accum.y.offset=Math.trunc((i.accum.y.low+i.accum.y.high)/2),i.accum.z.low=Math.min(i.accum.z.low,l.z),i.accum.z.high=Math.max(i.accum.z.high,l.z),i.accum.z.offset=Math.trunc((i.accum.z.low+i.accum.z.high)/2),--i.measurements,i.measurements||(i.isCalibrated=!0)),i.isCalibrated&&(i.hasEmittedCalibration||(i.hasEmittedCalibration=!0,i.offsets.x=i.accum.x.offset,i.offsets.y=i.accum.y.offset,i.offsets.z=i.accum.z.offset,r.io.i2cWrite(o,r.REGISTER.OFFSETS,[i.offsets.x>>7,i.offsets.x<<1&255,i.offsets.y>>7,i.offsets.y<<1&255,i.offsets.z>>7,i.offsets.z<<1&255]),r.emit("calibrated",{x:[i.accum.x.low,i.accum.x.high],y:[i.accum.y.low,i.accum.y.high],z:[i.accum.z.low,i.accum.z.high]})),u=Math.floor(12.5),t(l)),setTimeout(e,u)})))}))}()}},calibrate:{value:function(e){var t=d.get(this);t.isCalibrated=!1,t.measurements=e}},toScaledHeading:{value:function(e){var t=e.y,n=e.x,r=d.get(this),i=1/(r.accum.x.high-r.accum.x.low),o=1/(r.accum.y.high-r.accum.y.low),a=Math.atan2(-t*o,n*i);return a<0&&(a+=c),Math.trunc(a*u)}}},LSM303C:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"LSM303C",e).on("data",(function(e){var n=e.magnetometer;t(n)}))}},toScaledHeading:{value:function(e){return h(e.x,e.y)}}}},p=function(e){"use strict";function t(n){var r;r=e.call(this)||this,o.Component.call(r,n=o.Options(n));var i=n.freq||25,a={x:null,y:null,z:null},l={x:0,y:0,z:0,scale:0,register:0,heading:0};return o.Controller.call(r,f,n),r.toScaledHeading||(r.toScaledHeading=n.toScaledHeading||function(e){return e}),d.set(r,l),"function"==typeof r.initialize&&r.initialize(n,(function(e){return a=e})),setInterval((function(){if(null!==a.x){var e=!1;l.x=a.x,l.y=a.y,l.z=a.z;var t=r.heading;t!==l.heading&&(l.heading=t,e=!0),r.emit("data",{heading:t}),e&&r.emit("change",{heading:t})}}),i),Object.defineProperties(r,{bearing:{get:function(){for(var e,n=t.Points.length,r=this.heading,i=0;i<n;i++)if(r>=(e=t.Points[i]).low&&r<=e.high)return{name:e.name,abbr:e.abbr,low:e.low,high:e.high,heading:r}}},raw:{get:function(){return{x:a.x,y:a.y,z:a.z}}},heading:{get:function(){return this.toScaledHeading(a)}}}),r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(a);function h(e,t){var n=Math.atan2(t,e);return n<0&&(n+=c),n>c&&(n-=c),n*u}p.Scale=function(){"use strict";return function(e){.88===e?(this.register=0,this.scale=.73):1.3===e?(this.register=1,this.scale=.92):1.9===e?(this.register=2,this.scale=1.22):2.5===e?(this.register=3,this.scale=1.52):4===e?(this.register=4,this.scale=2.27):4.7===e?(this.register=5,this.scale=2.56):5.6===e?(this.register=6,this.scale=3.03):8.1===e?(this.register=7,this.scale=4.35):(this.register=0,this.scale=1),this.register=this.register<<5}}(),p.Points=[{name:"North",abbr:"N",low:354.38,high:360},{name:"North",abbr:"N",low:0,high:5.62},{name:"North by East",abbr:"NbE",low:5.63,high:16.87},{name:"North-NorthEast",abbr:"NNE",low:16.88,high:28.12},{name:"NorthEast by North",abbr:"NEbN",low:28.13,high:39.37},{name:"NorthEast",abbr:"NE",low:39.38,high:50.62},{name:"NorthEast by East",abbr:"NEbE",low:50.63,high:61.87},{name:"East-NorthEast",abbr:"ENE",low:61.88,high:73.12},{name:"East by North",abbr:"EbN",low:73.13,high:84.37},{name:"East",abbr:"E",low:84.38,high:95.62},{name:"East by South",abbr:"EbS",low:95.63,high:106.87},{name:"East-SouthEast",abbr:"ESE",low:106.88,high:118.12},{name:"SouthEast by East",abbr:"SEbE",low:118.13,high:129.37},{name:"SouthEast",abbr:"SE",low:129.38,high:140.62},{name:"SouthEast by South",abbr:"SEbS",low:140.63,high:151.87},{name:"South-SouthEast",abbr:"SSE",low:151.88,high:163.12},{name:"South by East",abbr:"SbE",low:163.13,high:174.37},{name:"South",abbr:"S",low:174.38,high:185.62},{name:"South by West",abbr:"SbW",low:185.63,high:196.87},{name:"South-SouthWest",abbr:"SSW",low:196.88,high:208.12},{name:"SouthWest by South",abbr:"SWbS",low:208.13,high:219.37},{name:"SouthWest",abbr:"SW",low:219.38,high:230.62},{name:"SouthWest by West",abbr:"SWbW",low:230.63,high:241.87},{name:"West-SouthWest",abbr:"WSW",low:241.88,high:253.12},{name:"West by South",abbr:"WbS",low:253.13,high:264.37},{name:"West",abbr:"W",low:264.38,high:275.62},{name:"West by North",abbr:"WbN",low:275.63,high:286.87},{name:"West-NorthWest",abbr:"WNW",low:286.88,high:298.12},{name:"NorthWest by West",abbr:"NWbW",low:298.13,high:309.37},{name:"NorthWest",abbr:"NW",low:309.38,high:320.62},{name:"NorthWest by North",abbr:"NWbN",low:320.63,high:331.87},{name:"North-NorthWest",abbr:"NNW",low:331.88,high:343.12},{name:"North by West",abbr:"NbW",low:343.13,high:354.37}],Object.freeze(p.Points),r.env.IS_TEST_MODE&&(p.Controllers=f,p.purge=function(){d.clear()}),e.exports=p},2557:e=>{e.exports={MAPS:{MPR121QR2_SHIELD:{KEYS:{0:1,1:2,2:3,3:4,4:5,5:6,6:7,7:8,8:9},TARGETS:{256:0,32:1,4:2,128:3,16:4,2:5,64:6,8:7,1:8}},MPR121:{KEYS:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,10:10,11:11},TARGETS:{1:0,2:1,4:2,8:3,16:4,32:5,64:6,128:7,256:8,512:9,1024:10,2048:11}},MPR121_KEYPAD:{KEYS:{0:1,1:2,2:3,3:4,4:5,5:6,6:7,7:8,8:9,9:10,10:11,11:12},TARGETS:{8:0,128:1,2048:2,4:3,64:4,1024:5,2:6,32:7,512:8,1:9,16:10,256:11}},MPR121_SHIELD:{KEYS:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,10:10,11:11},TARGETS:{1:0,2:1,4:2,8:3,16:4,32:5,64:6,128:7,256:8,512:9,1024:10,2048:11}}},MPR121_DEFAULT_ADDRESS:90,MPR121_SOFTRESET:128,ELE0_ELE7_TOUCH_STATUS:0,ELE8_ELE11_ELEPROX_TOUCH_STATUS:1,ELE0_7_OOR_STATUS:2,ELE8_11_ELEPROX_OOR_STATUS:3,ELE0_FILTERED_DATA_LSB:4,ELE0_FILTERED_DATA_MSB:5,ELE1_FILTERED_DATA_LSB:6,ELE1_FILTERED_DATA_MSB:7,ELE2_FILTERED_DATA_LSB:8,ELE2_FILTERED_DATA_MSB:9,ELE3_FILTERED_DATA_LSB:10,ELE3_FILTERED_DATA_MSB:11,ELE4_FILTERED_DATA_LSB:12,ELE4_FILTERED_DATA_MSB:13,ELE5_FILTERED_DATA_LSB:14,ELE5_FILTERED_DATA_MSB:15,ELE6_FILTERED_DATA_LSB:16,ELE6_FILTERED_DATA_MSB:17,ELE7_FILTERED_DATA_LSB:18,ELE7_FILTERED_DATA_MSB:19,ELE8_FILTERED_DATA_LSB:20,ELE8_FILTERED_DATA_MSB:21,ELE9_FILTERED_DATA_LSB:22,ELE9_FILTERED_DATA_MSB:23,ELE10_FILTERED_DATA_LSB:24,ELE10_FILTERED_DATA_MSB:25,ELE11_FILTERED_DATA_LSB:26,ELE11_FILTERED_DATA_MSB:27,ELEPROX_FILTERED_DATA_LSB:28,ELEPROX_FILTERED_DATA_MSB:29,ELE0_BASELINE_VALUE:30,ELE1_BASELINE_VALUE:31,ELE2_BASELINE_VALUE:32,ELE3_BASELINE_VALUE:33,ELE4_BASELINE_VALUE:34,ELE5_BASELINE_VALUE:35,ELE6_BASELINE_VALUE:36,ELE7_BASELINE_VALUE:37,ELE8_BASELINE_VALUE:38,ELE9_BASELINE_VALUE:39,ELE10_BASELINE_VALUE:40,ELE11_BASELINE_VALUE:41,ELEPROX_BASELINE_VALUE:42,MHD_RISING:43,NHD_AMOUNT_RISING:44,NCL_RISING:45,FDL_RISING:46,MHD_FALLING:47,NHD_AMOUNT_FALLING:48,NCL_FALLING:49,FDL_FALLING:50,NHD_AMOUNT_TOUCHED:51,NCL_TOUCHED:52,FDL_TOUCHED:53,ELEPROX_MHD_RISING:54,ELEPROX_NHD_AMOUNT_RISING:55,ELEPROX_NCL_RISING:56,ELEPROX_FDL_RISING:57,ELEPROX_MHD_FALLING:58,ELEPROX_NHD_AMOUNT_FALLING:59,ELEPROX_FDL_FALLING:60,ELEPROX_NHD_AMOUNT_TOUCHED:62,ELEPROX_NCL_TOUCHED:63,ELEPROX_FDL_TOUCHED:64,ELE0_TOUCH_THRESHOLD:65,ELE0_RELEASE_THRESHOLD:66,ELE1_TOUCH_THRESHOLD:67,ELE1_RELEASE_THRESHOLD:68,ELE2_TOUCH_THRESHOLD:69,ELE2_RELEASE_THRESHOLD:70,ELE3_TOUCH_THRESHOLD:71,ELE3_RELEASE_THRESHOLD:72,ELE4_TOUCH_THRESHOLD:73,ELE4_RELEASE_THRESHOLD:74,ELE5_TOUCH_THRESHOLD:75,ELE5_RELEASE_THRESHOLD:76,ELE6_TOUCH_THRESHOLD:77,ELE6_RELEASE_THRESHOLD:78,ELE7_TOUCH_THRESHOLD:79,ELE7_RELEASE_THRESHOLD:80,ELE8_TOUCH_THRESHOLD:81,ELE8_RELEASE_THRESHOLD:82,ELE9_TOUCH_THRESHOLD:83,ELE9_RELEASE_THRESHOLD:84,ELE10_TOUCH_THRESHOLD:85,ELE10_RELEASE_THRESHOLD:86,ELE11_TOUCH_THRESHOLD:87,ELE11_RELEASE_THRESHOLD:88,ELEPROX_TOUCH_THRESHOLD:89,ELEPROX_RELEASE_THRESHOLD:90,DEBOUNCE_TOUCH_AND_RELEASE:91,AFE_CONFIGURATION:92,FILTER_CONFIG:93,ELECTRODE_CONFIG:94,ELE0_CURRENT:95,ELE1_CURRENT:96,ELE2_CURRENT:97,ELE3_CURRENT:98,ELE4_CURRENT:99,ELE5_CURRENT:100,ELE6_CURRENT:101,ELE7_CURRENT:102,ELE8_CURRENT:103,ELE9_CURRENT:104,ELE10_CURRENT:105,ELE11_CURRENT:106,ELEPROX_CURRENT:107,ELE0_ELE1_CHARGE_TIME:108,ELE2_ELE3_CHARGE_TIME:109,ELE4_ELE5_CHARGE_TIME:110,ELE6_ELE7_CHARGE_TIME:111,ELE8_ELE9_CHARGE_TIME:112,ELE10_ELE11_CHARGE_TIME:113,ELEPROX_CHARGE_TIME:114,GPIO_CONTROL_0:115,GPIO_CONTROL_1:116,GPIO_DATA:117,GPIO_DIRECTION:118,GPIO_ENABLE:119,GPIO_SET:120,GPIO_CLEAR:121,GPIO_TOGGLE:122,AUTO_CONFIG_CONTROL_0:123,AUTO_CONFIG_CONTROL_1:124,AUTO_CONFIG_USL:125,AUTO_CONFIG_LSL:126,AUTO_CONFIG_TARGET_LEVEL:127,TOUCH_THRESHOLD:15,RELEASE_THRESHOLD:10,NUM_CHANNELS:12}},2549:e=>{var t=1.70158,n=2.5949095,r=7.5625,i=.5,o=Math.PI,a=Math.cos,l=Math.sin,s=Math.sqrt,u={linear:function(e){return e},inQuad:function(e){return e*e},outQuad:function(e){return e*(2-e)},inOutQuad:function(e){return(e*=2)<1?i*e*e:-.5*(--e*(e-2)-1)},inCube:function(e){return e*e*e},outCube:function(e){return--e*e*e+1},inOutCube:function(e){return(e*=2)<1?i*(e*e*e):i*((e-=2)*e*e+2)},inQuart:function(e){return e*e*e*e},outQuart:function(e){return 1- --e*(e*e*e)},inOutQuart:function(e){return(e*=2)<1?i*(e*e*e*e):-.5*((e-=2)*(e*e*e)-2)},inQuint:function(e){return e*e*e*e*e},outQuint:function(e){return--e*(e*e*e*e)+1},inOutQuint:function(e){return(e*=2)<1?i*(e*e*e*e*e):i*((e-=2)*(e*e*e*e)+2)},inSine:function(e){return 1-a(e*o/2)},outSine:function(e){return l(e*o/2)},inOutSine:function(e){return i*(1-a(o*e))},inExpo:function(e){return 0===e?0:Math.pow(1024,e-1)},outExpo:function(e){return 1===e?e:1-Math.pow(2,-10*e)},inOutExpo:function(e){return 0===e?0:1===e?1:(e*=2)<1?i*Math.pow(1024,e-1):i*(2-Math.pow(2,-10*(e-1)))},inCirc:function(e){return 1-s(1-e*e)},outCirc:function(e){return s(1- --e*e)},inOutCirc:function(e){return(e*=2)<1?-.5*(s(1-e*e)-1):i*(s(1-(e-=2)*e)+1)},inBack:function(e){return e*e*((t+1)*e-t)},outBack:function(e){return--e*e*((t+1)*e+t)+1},inOutBack:function(e){return(e*=2)<1?i*(e*e*((n+1)*e-n)):i*((e-=2)*e*((n+1)*e+n)+2)},outBounce:function(e){return e<1/2.75?r*e*e:e<2/2.75?r*(e-=1.5/2.75)*e+.75:e<2.5/2.75?r*(e-=2.25/2.75)*e+.9375:r*(e-=2.625/2.75)*e+.984375},inBounce:function(e){return 1-u.outBounce(1-e)},inOutBounce:function(e){return e<i?u.inBounce(2*e)*i:u.outBounce(2*e-1)*i+i}},c={};Object.keys(u).forEach((function(e){c[e.toLowerCase()]=u[e]})),e.exports=new Proxy({},{get:function(e,t){return c[t.replace(/([a-z])([A-Z])/g,"$1$2").toLowerCase()]}})},2554:(e,t,n)=>{var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var d=n(683),f=n(1743),p=d.Pins,h=n(1105),g=n(740),m=g.scale,b=g.fscale,y=g.constrain,v=new Map,_={PCA9685:{initialize:{value:function(e){var t=v.get(this);this.address=e.address||64,this.pwmRange=e.pwmRange||[1e3,2e3],this.frequency=e.frequency||50,t.expander=f.get({address:this.address,controller:this.controller,bus:this.bus,pwmRange:this.pwmRange,frequency:this.frequency}),this.pin=t.expander.normalize(e.pin)}},update:{writable:!0,value:function(e){v.get(this).expander.servoWrite(this.pin,e)}}},DEFAULT:{initialize:{value:function(e){e.debug&&!this.board.pins.isServo(this.pin)&&d.Pins.Error({pin:this.pin,type:"PWM",via:"Servo"}),this.io.servoConfig(this.pin,this.pwmRange[0],this.pwmRange[1])}},update:{writable:!0,value:function(e){this.io.servoWrite(this.pin,e)}}}},E="FORWARD",w="FORWARD_REVERSE",A="FORWARD_BRAKE_REVERSE",C=u(u(u({},E,{device:{value:E}}),w,{device:{value:w}}),A,{device:{value:A}}),S=function(){"use strict";function e(t){if(!(this instanceof e))return new e(t);var n;d.Component.call(this,t=d.Options(t)),void 0===t.controller&&p.isFirmata(this)&&("string"==typeof n&&n.length>1&&"A"===n[0]&&(n=this.io.analogPins[+n.slice(1)]),n=+n,Number.isNaN(n)||this.pin===n||(this.pin=n)),d.Controller.call(this,_,t),Object.defineProperties(this,t.device&&C[t.device]||C.FORWARD),this.pwmRange=t.pwmRange||[1e3,2e3],this.neutral=t.neutral,v.set(this,{}),this.initialize(t);var r=l(this.pwmRange,2),i=r[0],o=r[1];if(void 0!==this.neutral&&this.neutral<=100&&(this.neutral=m(this.neutral,0,100,i,o)),void 0===this.neutral&&(this.neutral=(i+o)/2),this.neutral=y(this.neutral,i,o),this.device===w&&this.neutral===i)throw new Error("Bidirectional (FORWARD_REVERSE) speed controllers require a non-zero neutral point");this.device===E&&(this.neutral=i),this.throttle(this.neutral)}var t=e.prototype;return t.throttle=function(e){if(e>0&&e<=100){if("FORWARD"!==this.device)throw new Error("Bidirectional (FORWARD_REVERSE, FORWARD_*_REVERSE) speed controllers require a pulse in usec");e=b(e,0,100,this.pwmRange[0],this.pwmRange[1])}return this.update(y(e,this.pwmRange[0],this.pwmRange[1])),this},t.brake=function(){return this.update(this.neutral),this},e}(),O=function(e){"use strict";function t(t){return e.call(this,t)||this}var n,r,i,l,s;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,a(n,r),i=t,(l=[{key:"type",get:function(){return S}}])&&o(i.prototype,l),s&&o(i,s),Object.defineProperty(i,"prototype",{writable:!1}),i}(h);h.installMethodForwarding(O.prototype,S.prototype),S.Collection=O,r.env.IS_TEST_MODE&&(S.Controllers=_,S.purge=function(){v.clear()}),e.exports=S},1981:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var i,o=n(769),a=function(){"use strict";function e(e){this.address=e.address,this.io=e.io,this.io.i2cConfig(e)}var t=e.prototype;return t.read=function(e,t,n){e?this.io.i2cRead(this.address,e,t,n):this.io.i2cRead(this.address,t,n)},t.write=function(e,t){Array.isArray(t)||(t=[t]),this.io.i2cWrite(this.address,e,t)},e}(),l=function(e){"use strict";function t(n){var r,o=n.io;return r=e.call(this)||this,i?i||function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r):(r.bank={a:new a({address:t.BANK_A,io:o}),b:new a({address:t.BANK_B,io:o})},i=r,r)}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,r(n,o);var l=t.prototype;return l.setup=function(e,t){var n=e.bank,r=e.mode;this.bank[n].write(r,[t])},l.read=function(e,n,r,i){e.sensor&&e.offset&&!t.isRawSensor(e)&&(n+=e.offset),this.bank[e.bank].read(n,r,i)},l.write=function(e,t,n){var r=e.bank;this.bank[r].write(t,n)},t}(o);l.shieldPort=function(e){var t,n,r,i,o,a,s,u=l[e];if(void 0===u)throw new Error("Invalid EVShield pin name");var c=!1;return e.startsWith("BA")?(t=l.BANK_A,r="a"):(t=l.BANK_B,r="b"),e.includes("M")&&(i=e.endsWith("M1")?l.S1:l.S2),e.includes("S")&&(n=(c=e.endsWith("S1"))?l.S1_ANALOG:l.S2_ANALOG,o=c?l.S1_MODE:l.S2_MODE,a=c?l.S1_OFFSET:l.S2_OFFSET,s=c?l.S1:l.S2),{address:t,analog:n,bank:r,mode:o,motor:i,offset:a,port:u,sensor:s}},l.isRawSensor=function(e){var t=e.analog;return t===l.S1_ANALOG||t===l.S2_ANALOG},l.BAS1=1,l.BAS2=2,l.BBS1=3,l.BBS2=4,l.BAM1=5,l.BAM2=6,l.BBM1=7,l.BBM2=8,l.BANK_A=26,l.BANK_B=27,l.S1=1,l.S2=2,l.M1=1,l.M2=2,l.MM=3,l.Type_NONE=0,l.Type_SWITCH=1,l.Type_ANALOG=2,l.Type_I2C=9,l.Type_NXT_LIGHT_REFLECTED=3,l.Type_NXT_LIGHT=4,l.Type_NXT_COLOR=13,l.Type_NXT_COLOR_RGBRAW=4,l.Type_NXT_COLORRED=14,l.Type_NXT_COLORGREEN=15,l.Type_NXT_COLORBLUE=16,l.Type_NXT_COLORNONE=17,l.Type_DATABIT0_HIGH=64,l.S1_MODE=111,l.S1_ANALOG=112,l.S1_OFFSET=0,l.S2_MODE=163,l.S2_ANALOG=164,l.S2_OFFSET=52,l.Type_EV3_LIGHT_REFLECTED=0,l.Type_EV3_LIGHT=1,l.Type_EV3_COLOR=2,l.Type_EV3_COLOR_REFRAW=3,l.Type_EV3_COLOR_RGBRAW=4,l.Type_EV3_TOUCH=18,l.Type_EV3=19,l.Light=131,l.Bump=132,l.ColorMeasure=131,l.Proximity=131,l.Touch=131,l.Ultrasonic=129,l.Mode=129,l.Light_Bytes=2,l.Analog_Bytes=2,l.Bump_Bytes=1,l.ColorMeasure_Bytes=2,l.Proximity_Bytes=2,l.Touch_Bytes=1,l.Motor_1=1,l.Motor_2=2,l.Motor_Both=3,l.Motor_Next_Action_Float=0,l.Motor_Next_Action_Brake=1,l.Motor_Next_Action_BrakeHold=2,l.Motor_Stop=96,l.Motor_Reset=82,l.Motor_Reverse=0,l.Motor_Forward=1,l.Motor_Move_Absolute=0,l.Motor_Move_Relative=1,l.Motor_Completion_Dont_Wait=0,l.Motor_Completion_Wait_For=1,l.Speed_Full=90,l.Speed_Medium=60,l.Speed_Slow=25,l.CONTROL_SPEED=1,l.CONTROL_RAMP=2,l.CONTROL_RELATIVE=4,l.CONTROL_TACHO=8,l.CONTROL_BRK=16,l.CONTROL_ON=32,l.CONTROL_TIME=64,l.CONTROL_GO=128,l.STATUS_SPEED=1,l.STATUS_RAMP=2,l.STATUS_MOVING=4,l.STATUS_TACHO=8,l.STATUS_BREAK=16,l.STATUS_OVERLOAD=32,l.STATUS_TIME=64,l.STATUS_STALL=128,l.COMMAND=65,l.VOLTAGE=110,l.SETPT_M1=66,l.SPEED_M1=70,l.TIME_M1=71,l.CMD_B_M1=72,l.CMD_A_M1=73,l.SETPT_M2=74,l.SPEED_M2=78,l.TIME_M2=79,l.CMD_B_M2=80,l.CMD_A_M2=81,l.POSITION_M1=82,l.POSITION_M2=86,l.STATUS_M1=90,l.STATUS_M2=91,l.TASKS_M1=92,l.TASKS_M2=93,l.ENCODER_PID=94,l.SPEED_PID=100,l.PASS_COUNT=106,l.TOLERANCE=107,l.BTN_PRESS=218,l.RGB_LED=215,l.CENTER_RGB_LED=222,e.exports=l},1743:(e,t,n)=>{var r=n(107);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var a=n(683),l=n(769),s=n(2548),u=n(740),c=new Map,d=new Map,f=function(e){"use strict";function t(){var t;return(t=e.call(this)||this).HIGH=1,t.LOW=0,t.isReady=!1,t.MODES={},t.pins=[],t.analogPins=[],t}return i(t,e),t}(l),p={DEFAULT:{initialize:{value:function(){throw new Error("Expander expects a valid controller")}}},MCP23017:{ADDRESSES:{value:[32]},REGISTER:{value:{IODIRA:0,GPPUA:12,GPIOA:18,OLATA:20,IODIRB:1,GPPUB:13,GPIOB:19,OLATB:21}},initialize:{value:function(e){var t=c.get(this);t.iodir=[255,255],t.olat=[255,255],t.gpio=[255,255],t.gppu=[0,0],this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),this.io.i2cWrite(this.address,[this.REGISTER.IODIRA,t.iodir[this.REGISTER.IODIRA]]),this.io.i2cWrite(this.address,[this.REGISTER.IODIRB,t.iodir[this.REGISTER.IODIRB]]),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<16;n++)this.pins.push({supportedModes:[this.MODES.INPUT,this.MODES.OUTPUT],mode:0,value:0,report:0,analogChannel:127}),this.pinMode(n,this.MODES.OUTPUT),this.digitalWrite(n,this.LOW);this.name="MCP23017",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return e}},pinMode:{value:function(e,t){var n=c.get(this),r=e,i=0,o=null;e<8?i=this.REGISTER.IODIRA:(i=this.REGISTER.IODIRB,e-=8),o=n.iodir[i],t===this.io.MODES.INPUT?o|=1<<e:o&=~(1<<e),this.pins[r].mode=t,this.io.i2cWrite(this.address,[i,o]),n.iodir[i]=o}},digitalWrite:{value:function(e,t){var n=c.get(this),r=e,i=0,o=0,a=0;e<8?(i=this.REGISTER.IODIRA,a=this.REGISTER.GPIOA):(i=this.REGISTER.IODIRB,a=this.REGISTER.GPIOB,e-=8),o=n.olat[i],t===this.io.HIGH?o|=1<<e:o&=~(1<<e),this.pins[r].report=0,this.pins[r].value=t,this.io.i2cWrite(this.address,[a,o]),n.olat[i]=o,n.gpio[i]=o}},pullUp:{value:function(e,t){var n=c.get(this),r=0,i=0,o=0;e<8?(r=this.REGISTER.IODIRA,o=this.REGISTER.GPPUA):(r=this.REGISTER.IODIRB,o=this.REGISTER.GPPUB,e-=8),i=n.gppu[r],t===this.io.HIGH?i|=1<<e:i&=~(1<<e),this.io.i2cWrite(this.address,[o,i]),n.gppu[r]=i}},digitalRead:{value:function(e,t){var n=this,r=e,i=0;e<8?i=this.REGISTER.GPIOA:(i=this.REGISTER.GPIOB,e-=8),this.pins[r].report=1,this.on("digital-read-".concat(r),t),this.io.i2cRead(this.address,i,1,(function(t){var i=t[0]>>e&1;n.pins[r].value=i,n.emit("digital-read-".concat(r),i)}))}}},MCP23008:{ADDRESSES:{value:[32]},REGISTER:{value:{IODIR:0,GPPU:6,GPIO:9,OLAT:10}},initialize:{value:function(e){var t=c.get(this);t.iodir=[255],t.olat=[255],t.gpio=[255],t.gppu=[0],this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),this.io.i2cWrite(this.address,[this.REGISTER.IODIR,t.iodir[this.REGISTER.IODIR]]),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<8;n++)this.pins.push({supportedModes:[this.MODES.INPUT,this.MODES.OUTPUT],mode:0,value:0,report:0,analogChannel:127}),this.pinMode(n,this.MODES.OUTPUT),this.digitalWrite(n,this.LOW);this.name="MCP23008",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return e}},pinMode:{value:function(e,t){var n=c.get(this),r=e,i=this.REGISTER.IODIR,o=n.iodir[i];t===this.io.MODES.INPUT?o|=1<<e:o&=~(1<<e),this.pins[r].mode=t,this.io.i2cWrite(this.address,[i,o]),n.iodir[i]=o}},digitalWrite:{value:function(e,t){var n=c.get(this),r=e,i=this.REGISTER.IODIR,o=this.REGISTER.GPIO,a=n.olat[i];t===this.io.HIGH?a|=1<<e:a&=~(1<<e),this.pins[r].report=0,this.pins[r].value=t,this.io.i2cWrite(this.address,[o,a]),n.olat[i]=a,n.gpio[i]=a}},pullUp:{value:function(e,t){var n=c.get(this),r=this.REGISTER.IODIR,i=this.REGISTER.GPPU,o=n.gppu[r];t===this.io.HIGH?o|=1<<e:o&=~(1<<e),this.io.i2cWrite(this.address,[i,o]),n.gppu[r]=o}},digitalRead:{value:function(e,t){var n=this,r=e,i=this.REGISTER.GPIO;this.pins[r].report=1,this.on("digital-read-".concat(e),t),this.io.i2cRead(this.address,i,1,(function(t){var i=t[0]>>e&1;n.pins[r].value=i,n.emit("digital-read-".concat(e),i)}))}}},PCF8574:{ADDRESSES:{value:[32]},REGISTER:{},initialize:{value:function(e){var t=c.get(this);t.port=0,t.ddr=0,t.pins=0,this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<8;n++)this.pins.push({supportedModes:[this.MODES.INPUT,this.MODES.OUTPUT],mode:1,value:0,report:0,analogChannel:127}),this.pinMode(n,this.MODES.OUTPUT),this.digitalWrite(n,this.LOW);this.name="PCF8574",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return e}},pinMode:{value:function(e,t){var n=c.get(this),r=e,i=n.port,o=n.ddr,a=n.pins;t===this.MODES.INPUT?(o&=~(1<<e),i&=~(1<<e)):(o|=1<<e,i&=~(1<<e)),this.pins[r].mode=t,n.port=i,n.ddr=o,this.io.i2cWrite(this.address,a&~o|i)}},digitalWrite:{value:function(e,t){var n=c.get(this),r=e,i=n.port,o=n.ddr,a=n.pins;t?i|=1<<e:i&=~(1<<e),this.pins[r].report=0,this.pins[r].value=t,n.port=i,this.io.i2cWrite(this.address,a&~o|i)}},digitalRead:{value:function(e,t){var n=this,r=c.get(this),i=e;this.pins[i].report=1,this.on("digital-read-".concat(e),t),this.io.i2cRead(this.address,1,(function(t){var o=t[0],a=o>>e&1;r.pins=o,n.pins[i].value=a,n.emit("digital-read-".concat(e),a)}))}}},PCF8575:{ADDRESSES:{value:[32]},REGISTER:{},initialize:{value:function(e){var t=c.get(this);t.port=[0,1],t.gpio=[0,0],this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<16;n++)this.pins.push({supportedModes:[this.MODES.INPUT,this.MODES.OUTPUT],mode:1,value:0,report:0,analogChannel:127}),this.pinMode(n,this.MODES.OUTPUT),this.digitalWrite(n,this.LOW);this.io.i2cWrite(this.address,t.gpio),this.name="PCF8575",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return e}},pinMode:{value:function(e,t){var n=e;this.pins[n].mode=t}},digitalWrite:{value:function(e,t){var n,r=c.get(this),i=e;e<8?n=0:(n=1,e-=8),t===this.io.HIGH?r.gpio[n]|=1<<e:r.gpio[n]&=~(1<<e),this.pins[i].report=0,this.pins[i].value=t,this.io.i2cWrite(this.address,r.gpio)}},digitalRead:{value:function(e,t){var n,r=this,i=e;e<8?n=0:(n=1,e-=8),this.pins[i].report=1,this.on("digital-read-".concat(e),t),this.io.i2cRead(this.address,2,(function(t){var o=t[n]>>e&1;r.pins[i].value=o,r.emit("digital-read-".concat(e),o)}))}}},PCA9685:{ADDRESSES:{value:[64]},REGISTER:{value:{MODE1:0,PRESCALE:254,BASE:6}},initialize:{value:function(e){var t=c.get(this);t.frequency=u.constrain(e.frequency||1526,24,1526),this.address=e.address||this.ADDRESSES[0],this.pwmRange=e.pwmRange||[0,4095],Object.defineProperties(this,{prescale:{get:function(){return Math.round(25e6/(4096*t.frequency))-1}},frequency:{get:function(){return t.frequency}}}),e.address=this.address,this.io.i2cConfig(e),this.io.i2cWriteReg(this.address,this.REGISTER.MODE1,0),this.io.i2cWriteReg(this.address,this.REGISTER.MODE1,16),this.io.i2cWriteReg(this.address,this.REGISTER.PRESCALE,this.prescale),this.io.i2cWriteReg(this.address,this.REGISTER.MODE1,0),s.micro(5),this.io.i2cWriteReg(this.address,this.REGISTER.MODE1,160),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<16;n++)this.pins.push({supportedModes:[this.MODES.OUTPUT,this.MODES.PWM,this.MODES.SERVO],mode:0,value:0,report:0,analogChannel:127}),this.pinMode(n,this.MODES.OUTPUT),this.digitalWrite(n,this.LOW);this.name="PCA9685",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return this.io.name.includes("Tessel 2")?e-1:e}},pinMode:{value:function(e,t){if(void 0===this.pins[e])throw new RangeError("Invalid PCA9685 pin: ".concat(e));this.pins[e].mode=t}},digitalWrite:{value:function(e,t){this.pwmWrite(e,t?255:0)}},analogWrite:{value:function(e,t){this.pwmWrite(e,t)}},servoWrite:{value:function(e,t){var n;t<544?(t=u.constrain(t,0,180),n=u.map(t,0,180,this.pwmRange[0]/4,this.pwmRange[1]/4)):n=t/4,n|=0,this.io.i2cWrite(this.address,[this.REGISTER.BASE+4*e,0,0,n,n>>8])}},pwmWrite:{value:function(e,t){if(void 0===this.pins[e])throw new RangeError("Invalid PCA9685 pin: ".concat(e));t=u.constrain(t,0,255);var n=0,r=this.pwmRange[1]*t/255;0===t&&(n=0,r=4096),255===t&&(n=4096,r=0),this.io.i2cWrite(this.address,[this.REGISTER.BASE+4*e,n,n>>8,r,r>>8]),this.pins[e].value=t}}},PCF8591:{ADDRESSES:{value:[72]},REGISTER:{},initialize:{value:function(e){var t=c.get(this);t.control=69,t.reading=!1,this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<4;n++)this.pins.push({supportedModes:[this.MODES.ANALOG],mode:1,value:0,report:0,analogChannel:n});this.analogPins.push(0,1,2,3),this.io.i2cWrite(this.address,t.control),this.name="PCF8591",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return"string"==typeof e&&"A"===e[0]?+e.slice(1):e}},pinMode:{value:function(e,t){this.pins[e].mode=t}},analogRead:{value:function(e,t){var n=this,r=c.get(this),i=e;this.pins[i].report=1,this.on("analog-read-".concat(e),t),r.reading||(r.reading=!0,this.io.i2cRead(this.address,4,(function(e){for(var t,r=0;r<4;r++)t=e[r]<<2,n.pins[r].value=t,n.pins[r].report&&n.emit("analog-read-".concat(r),t)})))}}},MUXSHIELD2:{initialize:{value:function(){var e=c.get(this);e.select=[2,4,6,7],e.ios=[null,10,11,12],e.io=[null,14,15,16],e.aio=[null,0,1,2],e.outMode=8,e.pinMap={},e.rowReading=[!1,!1,!1],e.rowMode=[null,null,null],e.rowValues=[0,0,0],Object.assign(this.MODES,{INPUT:0,OUTPUT:1,ANALOG:2}),this.io.pinMode(e.select[0],this.MODES.OUTPUT),this.io.pinMode(e.select[1],this.MODES.OUTPUT),this.io.pinMode(e.select[2],this.MODES.OUTPUT),this.io.pinMode(e.select[3],this.MODES.OUTPUT),this.io.pinMode(e.outMode,this.MODES.OUTPUT),this.io.digitalWrite(e.outMode,this.LOW),this.io.pinMode(e.ios[1],this.MODES.OUTPUT),this.io.pinMode(e.ios[2],this.MODES.OUTPUT),this.io.pinMode(e.ios[3],this.MODES.OUTPUT);for(var t=1,n=16,r=0,i=0;i<48;i++){(i&n)===n&&(t++,n*=2,r=0),e.pinMap["IO".concat(t,"-").concat(r)]=i,this.pins.push({row:t,index:r,supportedModes:[this.MODES.INPUT,this.MODES.OUTPUT,this.MODES.ANALOG],mode:1,value:0,report:0,analogChannel:i}),this.analogPins.push(i),r++}this.name="MUXSHIELD2",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return e}},pinMode:{value:function(e,t){var n=c.get(this),r=n.pinMap[e];if(void 0===r)throw new Error("MUXSHIELD2: Invalid Pin number or name: ".concat(e));var i=this.pins[r].row,o=i-1,a=n.rowMode[o];if(a===t)return this;if(null!==a&&a!==t)throw new Error("MUXSHIELD2: Cannot set mixed modes per IO row.");n.rowMode[o]=t;for(var l=0;l<16;l++)this.pins[o+l].mode=t;var s=n.io[i],u=n.ios[i];t===this.MODES.INPUT&&this.io.pinMode(s,this.MODES.INPUT),t===this.MODES.OUTPUT&&(this.io.pinMode(s,this.MODES.OUTPUT),this.io.digitalWrite(u,this.HIGH))}},digitalWrite:{value:function(e,t){var n=c.get(this),r=n.pinMap[e];if(void 0===r)throw new Error("MUXSHIELD2: Invalid Pin number or name: ".concat(e));var i=this.pins[r].row,o=i-1,a=n.rowValues[o],l=r-16*(i-1);t?a|=1<<l:a&=~(1<<l),this.io.digitalWrite(n.select[3],this.LOW),this.io.digitalWrite(n.outMode,this.HIGH);for(var s=n.select[i-1],u=n.io[i],d=15;d>=0;d--)this.io.digitalWrite(s,this.LOW),this.io.digitalWrite(u,a>>d&1),this.io.digitalWrite(s,this.HIGH);this.io.digitalWrite(n.select[3],this.HIGH),this.io.digitalWrite(n.outMode,this.LOW),this.pins[r].value=t,n.rowValues[o]=a}},digitalRead:{value:function(e,t){this.ioRead("digital",e,t)}},analogRead:{value:function(e,t){this.ioRead("analog",e,t)}},ioRead:{value:function(e,t,n){var r=this,i=c.get(this),o=i.pinMap[t];if(void 0===o)throw new Error("MUXSHIELD2: Invalid Pin number or name: ".concat(t));this.on("".concat(e,"-read-").concat(o),n);var a="analog"===e,l=this.pins[o].row-1,s=o-16*l;this.pins[o].report=1,this.pins[o].channel=s,this.pins[o].ioPin=a?l:l+14;var u=function e(){for(var t=e.lastPinIndex+1;t<r.pins.length;t++)if(1===r.pins[t].report)return e.lastPinIndex=t;return e.lastPinIndex=-1,e()};u.lastPinIndex=-1;var d=function t(n){var i=u.lastPinIndex,o=r.pins[i];r.emit("".concat(e,"-read-").concat(i),n),r.io.removeListener("".concat(e,"-read-").concat(o.ioPin),t),setTimeout(f,10)},f=function(){var e=u(),t=r.pins[e];r.select(t.channel),a?(r.io.pinMode(t.ioPin,r.io.MODES.ANALOG),r.io.analogRead(t.ioPin,d)):r.io.digitalRead(t.ioPin,d)};i.rowReading[l]||(i.rowReading[l]=!0,f())}},select:{value:function(e){var t=c.get(this);this.io.digitalWrite(t.outMode,this.LOW),this.io.digitalWrite(t.select[0],1&e),this.io.digitalWrite(t.select[1],(3&e)>>1),this.io.digitalWrite(t.select[2],(7&e)>>2),this.io.digitalWrite(t.select[3],(15&e)>>3)}}},GROVEPI:{ADDRESSES:{value:[4]},REGISTER:{},COMMANDS:{value:{DIGITAL_READ:1,DIGITAL_WRITE:2,ANALOG_READ:3,ANALOG_WRITE:4,PIN_MODE:5,PING_READ:7}},initialize:{value:function(e){var t=c.get(this);t.isReading=!1,t.pinMap={D2:2,D3:3,D4:4,D5:5,D6:6,D7:7,D8:8,A0:14,A1:15,A2:16},this.isPwm=function(e){var t="number"==typeof e?e:parseInt(e[1]);return 3===t||5===t||6===t},this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<17;n++)127,n<=1||n>=9&&n<14?this.pins.push({supportedModes:[],mode:0,value:0,report:0,analogChannel:127}):(this.pins.push({supportedModes:[this.MODES.INPUT,this.MODES.OUTPUT],mode:0,value:0,report:0,analogChannel:127}),this.isPwm(n)&&this.pins[n].supportedModes.push(this.MODES.PWM),n>=14&&n<=17?(this.pins[n].analogChannel=n-14,this.pins[n].supportedModes.push(this.MODES.ANALOG),this.analogPins.push(n),this.pinMode("A".concat(this.pins[n].analogChannel),this.MODES.ANALOG)):(this.pinMode("D".concat(n),this.MODES.OUTPUT),this.digitalWrite("D".concat(n),this.LOW)));this.name="GROVEPI",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return e}},pinMode:{value:function(e,t){var n=c.get(this).pinMap[e];t===this.io.MODES.INPUT||t===this.io.MODES.ANALOG?this.pins[n].mode=0:this.pins[n].mode=1,this.io.i2cWrite(this.address,[this.COMMANDS.PIN_MODE,n,this.pins[n].mode,0])}},digitalWrite:{value:function(e,t){var n=c.get(this).pinMap[e];t=t?1:0,this.io.i2cWrite(this.address,[this.COMMANDS.DIGITAL_WRITE,n,t,0]),this.pins[n].value=t}},ioRead:{value:function(e,t,n){var r=this,i=c.get(this),o=i.pinMap[e],a="analog"===t,l=a?3:1,s=a?this.COMMANDS.ANALOG_READ:this.COMMANDS.DIGITAL_READ;this.on("".concat(t,"-read-").concat(o),n),this.pins[o].report=1,this.pins[o].command=s,this.pins[o].type=t,this.pins[o].length=l;var u=function e(){for(var t=e.lastPinIndex+1;t<r.pins.length;t++)if(1===r.pins[t].report)return e.lastPinIndex=t;return e.lastPinIndex=-1,e()};u.lastPinIndex=-1;var d=function(e,t){var n=r.pins[e],i=!0;"digital"===n.type&&r.pins[e].value===t&&(i=!1),r.pins[e].value=t,i&&r.emit("".concat(n.type,"-read-").concat(e),t),setTimeout(f,1)},f=function(){var e=u(),t=r.pins[e],n="analog"===t.type;r.io.i2cWrite(r.address,[t.command,e,0,0]),r.io.i2cReadOnce(r.address,t.length,(function(t){var r;r=n?(t[1]<<8)+t[2]:t[0],d(e,r)}))};i.isReading||(i.isReading=!0,f())}},digitalRead:{value:function(e,t){this.ioRead(e,"digital",t)}},analogRead:{value:function(e,t){this.ioRead(e,"analog",t)}},pingRead:{value:function(e,t){var n=this,r=e.pin,i=c.get(this).pinMap[r];this.io.i2cWrite(this.address,[this.COMMANDS.PING_READ,i,0,0]),setTimeout((function(){n.once("ping-read-".concat(r),t),n.io.i2cReadOnce(n.address,3,(function(e){var t=Math.round(29*((e[1]<<8)+e[2])*2);n.pins[i].value=t,n.emit("ping-read-".concat(r),t)}))}),200)}},analogWrite:{value:function(e,t){this.pwmWrite(e,t)}},pwmWrite:{writable:!0,value:function(e,t){var n=c.get(this).pinMap[e];t=u.constrain(t,0,255),this.io.i2cWrite(this.address,[this.COMMANDS.ANALOG_WRITE,n,t,0]),this.pins[n].value=t}}},"74HC595":{initialize:{value:function(e){var t=e.pins,n=c.get(this);if(!t.data)throw new Error("Expected pins.data");if(!t.clock)throw new Error("Expected pins.clock");if(!t.latch)throw new Error("Expected pins.latch");n.data=t.data,n.clock=t.clock,n.latch=t.latch,n.value=0,Object.assign(this.MODES,this.io.MODES),this.pins=[];for(var r=0;r<8;r++)this.pins.push({supportedModes:[this.MODES.OUTPUT],mode:1,value:0,report:0,analogChannel:127});this.portWrite(0,n.value),this.name="74HC595",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return e}},pinMode:{value:function(e,t){this.pins[e].mode=t}},digitalWrite:{value:function(e,t){var n=c.get(this);t?n.value|=1<<e:n.value&=~(1<<e),this.pins[e].value=t,this.portWrite(0,n.value)}},portWrite:{writable:!0,configurable:!0,value:function(e,t){var n=c.get(this);n.value=t,this.board.digitalWrite(n.latch,this.io.LOW),this.board.shiftOut(n.data,n.clock,!0,n.value),this.board.digitalWrite(n.latch,this.io.HIGH);for(var r=0;r<8;r++)this.pins[r].value=n.value>>r&1}}},CD74HC4067:{ADDRESSES:{value:[10,11,12,13]},REGISTER:{},initialize:{value:function(e){c.get(this).reading=!1,this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),Object.assign(this.MODES,this.io.MODES);for(var t=0;t<16;t++)this.pins.push({supportedModes:[this.MODES.ANALOG],mode:1,value:0,report:0,analogChannel:t}),this.analogPins.push(t);this.name="CD74HC4067",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return"string"==typeof e&&"A"===e[0]?+e.slice(1):e}},pinMode:{value:function(e,t){this.pins[e].mode=t}},analogRead:{value:function(e,t){var n=this,r=c.get(this),i=e;this.pins[i].report=1,this.on("analog-read-".concat(e),t),this.io.i2cWrite(this.address,i,1),r.reading||(r.reading=!0,this.io.i2cRead(this.address,32,(function(e){for(var t,r=0;r<16;r++){var i=2*r;t=(e[i]<<8)+e[i+1],n.pins[r].value=t,n.pins[r].report&&n.emit("analog-read-".concat(r),t)}})))}}},LIS3DH:{ADDRESSES:{value:[24]},REGISTER:{value:{OUT_ADC1_L:8,OUT_X_L:40,CTRL_REG1:32,CTRL_REG2:33,CTRL_REG3:34,CTRL_REG4:35,CTRL_REG5:36,TEMP_CFG_REG:31}},initialize:{value:function(e){c.get(this).reading=!1,this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e);var t=7;t=-241&t|112,this.io.i2cWrite(this.address,this.REGISTER.CTRL_REG1,t),this.io.i2cWrite(this.address,this.REGISTER.CTRL_REG4,136),this.io.i2cWrite(this.address,this.REGISTER.CTRL_REG3,16),Object.assign(this.MODES,this.io.MODES);for(var n=0;n<4;n++)0===n?this.pins.push({supportedModes:[],mode:0,value:0,report:0,analogChannel:127}):(this.pins.push({supportedModes:[this.MODES.ANALOG],mode:1,value:0,report:0,analogChannel:n}),this.analogPins.push(n));this.name="LIS3DH",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return"string"==typeof e&&"A"===e[0]?+e.slice(1):e}},pinMode:{value:function(e,t){this.pins[e].mode=t}},analogRead:{value:function(e,t){var n=this,r=c.get(this),i=e;this.pins[i].report=1,this.on("analog-read-".concat(e),t),r.reading||(r.reading=!0,this.io.i2cWrite(this.address,this.REGISTER.TEMP_CFG_REG,128),this.io.i2cRead(this.address,128|this.REGISTER.OUT_ADC1_L,6,(function(e){n.pins[1].value=u.scale(u.int16(e[1],e[0]),-32512,32512,1023,0),n.pins[2].value=u.scale(u.int16(e[3],e[2]),-32512,32512,1023,0),n.pins[3].value=u.scale(u.int16(e[5],e[4]),-32512,32512,1023,0);for(var t=1;t<4;t++)n.pins[t].report&&n.emit("analog-read-".concat(t),n.pins[t].value)})))}},i2cConfig:{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.io.i2cConfig.apply(this.io,t)}},i2cWrite:{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.io.i2cWrite.apply(this.io,t)}},i2cWriteReg:{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.io.i2cWriteReg.apply(this.io,t)}},i2cRead:{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.io.i2cRead.apply(this.io,t)}},i2cReadOnce:{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.io.i2cReadOnce.apply(this.io,t)}}},ADS1115:{ADDRESSES:{value:[72,73,74,75]},REGISTER:{value:{CONFIG:1,READ:0,PIN:[193,209,225,241],PIN_DATA:131}},initialize:{value:function(e){c.get(this).reading=!1,this.address=e.address||this.ADDRESSES[0],e.address=this.address,this.io.i2cConfig(e),Object.assign(this.MODES,this.io.MODES);for(var t=0;t<4;t++)this.pins.push({supportedModes:[this.MODES.ANALOG],mode:1,value:0,report:0,analogChannel:t}),this.analogPins.push(t);this.name="ADS1115",this.isReady=!0,this.emit("connect"),this.emit("ready")}},normalize:{value:function(e){return"string"==typeof e&&"A"===e[0]?+e.slice(1):e}},pinMode:{value:function(e,t){this.pins[e].mode=t}},analogRead:{value:function(e,t){var n=this,r=c.get(this);this.pins[e].report=1;var i=!1;if(this.on("analog-read-".concat(e),t),!r.reading){r.reading=!0;var o=function(){setTimeout((function(){i=!0}),8)};this.io.i2cWrite(this.address,this.REGISTER.CONFIG,[this.REGISTER.PIN[e],this.REGISTER.PIN_DATA]),o(),this.io.i2cRead(this.address,this.REGISTER.READ,2,(function(t){if(i){i=!1;var r=e===n.pins.length-1?0:e+1;n.io.i2cWrite(n.address,n.REGISTER.CONFIG,[n.REGISTER.PIN[r],n.REGISTER.PIN_DATA]);var a=(t[0]<<8)+t[1];n.pins[e].value=a,n.pins[e].report&&n.emit("analog-read-".concat(e),a),e=r,o()}}))}}}}};p.CD74HCT4067=p.CD74HC4067,p["74HC4067"]=p.CD74HC4067,p.PCF8574A=Object.assign({},p.PCF8574,{ADDRESSES:{value:[56]}});var h=Object.keys(a.prototype);Object.keys(p).forEach((function(e){h.forEach((function(t){void 0===p[e][t]&&(p[e][t]={writable:!0,configurable:!0,value:function(){throw new Error("Expander:".concat(e," does not support ").concat(t))}})}))}));var g=["74HC595"],m=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var r,i,o="Expander cannot reuse an active address";if("string"==typeof t&&(i=t),a.Component.call(n,t=a.Options(t),{normalizePin:!1,requestPin:!1}),g.includes(t.controller)&&void 0===n.address&&(n.address=u.uid()),r=d.get(n.address))throw n.bus&&void 0!==r.bus&&r.bus===n.bus&&(o+=" on this bus"),new Error(o);return void 0===t.controller&&i&&(t.controller=i),a.Controller.call(n,p,t),c.set(n,{}),"function"==typeof n.initialize&&n.initialize(t),d.set(n.address,n),n}return i(t,e),t}(f);m.get=function(e){if(!e.address||!e.controller)throw new Error("Expander.get(...) requires an address and controller");if(void 0!==e.address&&(e.address=Number(e.address)),Number.isNaN(e.address))throw new Error("Expander.get(...) expects address to be a number");if("string"!=typeof e.controller)throw new Error("Expander.get(...) expects controller name to be a string");var t=d.get(e.address);return t&&t.name===e.controller.toUpperCase()?t:new m(e)},m.byAddress=function(e){return d.get(e)},m.byController=function(e){var t=null;return d.forEach((function(n){n.name===e.toUpperCase()&&(t=n)})),t},m.hasController=function(e){return void 0!==p[e]},r.env.IS_TEST_MODE&&(m.Controllers=p,m.purge=function(){c.clear(),d.clear()}),e.exports=m},740:(e,t,n)=>{var r={debounce:n(2114),cloneDeep:n(2456)},i=Math.ceil,o=Math.max,a=Math.min,l=Math.PI;r.toFixed=function(e,t){return+(e||0).toFixed(t)},r.map=function(e,t,n,r,i){return(e-t)*(i-r)/(n-t)+r|0},r.scale=r.map;var s=new Float32Array(1);r.fmap=function(e,t,n,r,i){return s[0]=(e-t)*(i-r)/(n-t)+r,s[0]},r.fscale=r.fmap,r.constrain=function(e,t,n){return a(n,o(t,e))},r.inRange=function(e,t,n){return e>=t&&e<=n},r.range=function(e,t,n){1===arguments.length&&(t=e-1,e=0);for(var r=o(i(((t=t||0)-(e=e||0))/(n=n||1)),0),a=0,l=[];a<=r;)l[a++]=e,e+=n;return l},r.uid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()},r.square=function(e){return e*e},r.sum=function(e){return(Array.isArray(e)?e:[].slice.call(arguments)).reduce((function(e,t){return e+t}),0)},r.fma=function(e,t,n){var r,i,o=134217729*e,a=134217729*t,l=e*t,s=l+n;return s+(l-(s-n)+(n-(s-l))+((o+=e-o)*(a+=t-a)-l+o*(i=t-a)+(r=e-o)*a+r*i))},r._BV=r.bitValue=r.bv=function(e){return 1<<e},r.int16=function(e,t){var n=e<<8|t;return n>>15?-1*(1+(65535^n)):n},r.uint16=function(e,t){return e<<8|t},r.int24=function(e,t,n){var r=e<<16|t<<8|n;return r>>23?-1*(1+(16777215^r)):r},r.uint24=function(e,t,n){return e<<16|t<<8|n},r.int32=function(e,t,n,r){var i=e<<24|t<<16|n<<8|r;return i>>31?-1*(1+(4294967295^i)):i},r.uint32=function(e,t,n,r){return(e<<24|t<<16|n<<8|r)>>>0},r.bitSize=function(e){return Math.round(Math.log2(e))};for(var u="POW_2_",c=r.bitSize(Number.MAX_SAFE_INTEGER)+1,d=0;d<c;d++)r[u+d]=Math.pow(2,d);[4,8,10,12,16,20,24,32].forEach((function(e){var t=r[u+e],n=t/2>>>0,i=n-1;r["u"+e]=function(e){return e<0&&(e+=t),r.constrain(e,0,t-1)},r["s"+e]=function(e){return e>i&&(e-=t),r.constrain(e,-n,i)}})),r.RAD_TO_DEG=180/l,r.DEG_TO_RAD=l/180,r.TAU=2*l,e.exports=r},2555:(e,t,n)=>{var r=n(107),i=n(788).Buffer;function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var a=n(683),l=n(769),s=n(2148),u=n(740).toFixed,c=new Map,d={ADAFRUIT_ULTIMATE_GPS:{receiver:{value:"FGPMMOPA6H"}}},f={FGPMMOPA6H:{chip:{value:"MT3339"}}},p={DEFAULT:{baud:{value:9600,writable:!0},configure:{value:function(e){r.nextTick(e)}}},MT3339:{baud:{value:9600,writable:!0},configure:{value:function(e){r.nextTick(e)}},frequency:{get:function(){return c.get(this).frequency},set:function(e){var t=c.get(this);e<10&&(e=10),t.frequency=e,this.sendCommand("$PMTK220,".concat(String(1e3/t.frequency)))}},restart:{value:function(e){var t=this;!0===e?this.sendCommand("$PMTK103"):(this.sendCommand("$PMTK101"),setTimeout((function(){t.sendCommand("")}),1e3))}}}},h=function(e){"use strict";function t(t){var n;n=e.call(this)||this,Array.isArray(t)&&(t={pins:{rx:t[0],tx:t[1],onOff:t[2]}}),void 0===t.pins&&(t.pins={}),a.Component.call(n,t=a.Options(t));var r=t.breakout||{},i=t.receiver,o=t.chip;d[r]&&(!i&&d[r].receiver&&(i=d[r].receiver.value),!o&&d[r].chip&&(o=d[r].chip.value)),o||(o=i&&f[i].chip?f[i].chip.value:"DEFAULT"),r="string"==typeof r?p[r]:t.breakout,o="string"==typeof o?p[o]:t.chip,i="string"==typeof i?f[i]:t.receiver,o&&Object.defineProperties(n,o),i&&Object.defineProperties(n,i),r&&Object.defineProperties(n,r),n.fixed=t.fixed||6,n.baud=t.baud||n.baud;var l={sat:{},latitude:0,longitude:0,altitude:0,speed:0,course:0,frequency:1,lowPowerMode:!1};return c.set(n,l),Object.defineProperties(n,{latitude:{get:function(){return l.latitude}},longitude:{get:function(){return l.longitude}},altitude:{get:function(){return l.altitude}},sat:{get:function(){return l.sat}},speed:{get:function(){return l.speed}},course:{get:function(){return l.course}},time:{get:function(){return l.time}}}),n.initialize&&n.initialize(t),n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r);var l=t.prototype;return l.initialize=function(e){var t=this,n=c.get(this);n.portId=e.serialPort||e.portId||e.port||e.bus,void 0===n.portId&&this.io.SERIAL_PORT_IDs&&(n.portId=this.io.SERIAL_PORT_IDs.DEFAULT),["tx","rx"].forEach((function(e){t.pins[e]&&t.io.pinMode(t.pins[e],t.io.MODES.SERIAL)})),this.pins.onOff&&(this.io.pinMode(this.pins.onOff,this.io.MODES.OUTPUT),this.onOff=new s(this.pins.onOff)),this.io.serialConfig({portId:n.portId,baud:this.baud,rxPin:this.pins.rx,txPin:this.pins.tx}),this.configure&&this.configure((function(){t.listen(),e.frequency&&(t.frequency=e.frequency)}))},l.sendCommand=function(e){for(var t=c.get(this),n=[],r=0;r<e.length;++r)n[r]=e.charCodeAt(r);var i=m(e.substring(1));n.push(42,i.charCodeAt(0),i.charCodeAt(1),13,10),this.io.serialWrite(t.portId,n)},l.listen=function(){var e=this,t=c.get(this),n="";this.io.serialRead(t.portId,(function(t){var r=(n+=new i(t).toString("ascii")).split("\r\n");if(r.length>1){for(var o=0;o<r.length-1;o++)e.parseNmeaSentence(r[o]);n=r[r.length-1]}}))},l.parseNmeaSentence=function(e){var t=c.get(this),n=e.split("*");if(n[1]===m(n[0].substring(1))){this.emit("sentence",e);var r=n[0].split(","),i=t.latitude,o=t.longitude,a=t.altitude,l=t.speed,s=t.course;switch(r[0]){case"$GPGGA":t.time=r[1],t.latitude=g(r[2],2,r[3],this.fixed),t.longitude=g(r[4],3,r[5],this.fixed),t.altitude=Number(r[9]);break;case"$GPGSA":t.sat.satellites=r.slice(3,15),t.sat.pdop=Number(r[15]),t.sat.hdop=Number(r[16]),t.sat.vdop=Number(r[17]),this.emit("operations",e);break;case"$GPRMC":t.time=r[1],t.latitude=g(r[3],2,r[4],this.fixed),t.longitude=g(r[5],3,r[6],this.fixed),t.course=Number(r[8]),t.speed=u(.514444*r[7],this.fixed);break;case"$GPVTG":t.course=Number(r[1]),t.speed=u(.514444*r[5],this.fixed);break;case"$GPGSV":break;case"$PGACK":this.emit("acknowledge",e);break;default:this.emit("unknown",e)}this.emit("data",{latitude:t.latitude,longitude:t.longitude,altitude:t.altitude,speed:t.speed,course:t.course,sat:t.sat,time:t.time}),i===t.latitude&&o===t.longitude&&a===t.altitude||this.emit("change",{latitude:t.latitude,longitude:t.longitude,altitude:t.altitude}),l===t.speed&&s===t.course||this.emit("navigation",{speed:t.speed,course:t.course})}},t}(l);function g(e,t,n,r){if(e){var i=Number(e.substring(0,t))+Number(e.substring(t))/60;return"S"!==n&&"W"!==n||(i*=-1),Number(i.toFixed(r))}return 0}function m(e){for(var t=0,n=0;n<e.length;++n)t^=e.charCodeAt(n);return(t=t.toString(16).toUpperCase()).length<2&&(t="00".concat(t).slice(-2)),t}r.env.IS_TEST_MODE&&(h.Breakouts=d,h.Chips=p,h.Receivers=f,h.purge=function(){c.clear()}),e.exports=h},2322:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(769),l=n(740),s=l.sum,u=l.toFixed,c=new Map,d=["x","y","z"],f={ANALOG:{initialize:{value:function(e,t){var n,r,i=e.pins||[],o=c.get(this),a={};if(void 0===e.sensitivity)throw new Error("Expected a Sensitivity");n=e.sensitivity,r=e.resolution||4.88,o.K=r/n,i.forEach((function(e,n){this.io.pinMode(e,this.io.MODES.ANALOG),this.io.analogRead(e,(function(e){a[d[n]]=e,t(a)}))}),this)}},toNormal:{value:function(e){return e>>2}},toDegreesPerSecond:{value:function(e,t){return(this.toNormal(e)-this.toNormal(t))*c.get(this).K|0}}},MPU6050:{initialize:{value:function(e,t){var r=n(1094),i=c.get(this),o=r.Drivers.get(this.board,"MPU6050",e);i.sensitivity=e.sensitivity||131,o.on("data",(function(e){var n=e.gyro;t(n)}))}},toNormal:{value:function(e){return 127+(e>>11)}},toDegreesPerSecond:{value:function(e,t){var n=c.get(this);return u((e-t)/n.sensitivity,4)}}},BNO055:{initialize:{value:function(e,t){var r=n(1094),i=c.get(this),o=r.Drivers.get(this.board,"BNO055",e);i.sensitivity=16,o.on("data",(function(e){var n=e.gyro;t(n)}))}},toNormal:{value:function(e){return e}},toDegreesPerSecond:{value:function(e){var t=c.get(this);return u(e/t.sensitivity,4)}}}};f.DEFAULT=f.ANALOG;var p=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var r=!1,i=100,a={x:{angle:0,value:0,previous:0,calibration:[],stash:[0,0,0,0,0],center:0,hasValue:!1},y:{angle:0,value:0,previous:0,calibration:[],stash:[0,0,0,0,0],center:0,hasValue:!1},z:{angle:0,value:0,previous:0,calibration:[],stash:[0,0,0,0,0],center:0,hasValue:!1}};return o.Component.call(n,t=o.Options(t)),o.Controller.call(n,f,t),n.toNormal||(n.toNormal=t.toNormal||function(e){return e}),n.toDegreesPerSecond||(n.toDegreesPerSecond=t.toDegreesPerSecond||function(e){return e}),c.set(n,a),"function"==typeof n.initialize&&n.initialize(t,(function(e){var t=!1;Object.keys(e).forEach((function(o){var l=e[o],u=a[o];u.previous=u.value,u.stash.shift(),u.stash.push(l),u.hasValue=!0,u.value=s(u.stash)/5|0,r||a.x.calibration.length!==i||a.y.calibration.length!==i||void 0!==n.z&&a.z.calibration.length!==i?u.calibration.length<i&&u.calibration.push(l):(r=!0,a.x.center=s(a.x.calibration)/i|0,a.y.center=s(a.y.calibration)/i|0,a.z.center=s(a.z.calibration)/i|0,a.x.calibration.length=0,a.y.calibration.length=0,a.z.calibration.length=0),u.previous!==u.value&&(t=!0)})),r&&(a.x.angle+=n.rate.x/100,a.y.angle+=n.rate.y/100,a.z.angle+=n.rate.z/100,n.emit("data",{x:n.x,y:n.y,z:n.z}),t&&n.emit("change",{x:n.x,y:n.y,z:n.z}))})),Object.defineProperties(n,{isCalibrated:{get:function(){return r},set:function(e){"boolean"==typeof e&&(r=e)}},pitch:{get:function(){return{rate:u(this.rate.y,2),angle:u(a.y.angle,2)}}},roll:{get:function(){return{rate:u(this.rate.x,2),angle:u(a.x.angle,2)}}},yaw:{get:function(){return{rate:void 0!==this.z?u(this.rate.z,2):0,angle:void 0!==this.z?u(a.z.angle,2):0}}},x:{get:function(){return u(this.toNormal(a.x.value),4)}},y:{get:function(){return u(this.toNormal(a.y.value),4)}},z:{get:function(){return a.z.hasValue?u(this.toNormal(a.z.value),4):void 0}},rate:{get:function(){return{x:this.toDegreesPerSecond(a.x.value,a.x.center),y:this.toDegreesPerSecond(a.y.value,a.y.center),z:a.z.hasValue?this.toDegreesPerSecond(a.z.value,a.z.center):0}}}}),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t.prototype.recalibrate=function(){this.isCalibrated=!1},t}(a);Object.defineProperties(p,{TK_4X:{value:.67},TK_1X:{value:.167}}),r.env.IS_TEST_MODE&&(p.Controllers=f,p.purge=function(){c.clear()}),e.exports=p},2323:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(769),l=n(740),s=new Map,u=l.toFixed,c=l.POW_2_14,d=l.POW_2_16,f=!0,p={SHT31D:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"SHT31D",e).on("data",(function(e){var n=e.humidity;return t(n)}))}},toRelativeHumidity:{writable:f,value:function(e){return u(e/(d-1)*100,2)}}},HTU21D:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"HTU21D",e).on("data",(function(e){var n=e.humidity;return t(n)}))}},toRelativeHumidity:{writable:f,value:function(e){return u(e/d*125-6,2)}}},HIH6130:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"HIH6130",e).on("data",(function(e){var n=e.humidity;return t(n)}))}},toRelativeHumidity:{writable:f,value:function(e){return u(e/(c-1)*100,2)}}},DHT_I2C_NANO_BACKPACK:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"DHT_I2C_NANO_BACKPACK",e).on("data",(function(e){var n=e.humidity;return t(n)}))}},toRelativeHumidity:{writable:f,value:function(e){return u(e/100,1)}}},TH02:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"TH02",e).on("data",(function(e){var n=e.humidity;return t(n)}))}},toRelativeHumidity:{writable:f,value:function(e){return e>100&&(e=0),u(e||0,2)}}},SI7020:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"SI7020",e).on("data",(function(e){var n=e.humidity;return t(n)}))}},toRelativeHumidity:{writable:f,value:function(e){return u(125*e/d-6,2)}}},BME280:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BME280",e).on("data",(function(e){var n=e.humidity;return t(n)}))}},toRelativeHumidity:{writable:f,value:function(e){return u(e/1024,3)}}}};p.DHT11_I2C_NANO_BACKPACK=p.DHT_I2C_NANO_BACKPACK,p.DHT21_I2C_NANO_BACKPACK=p.DHT_I2C_NANO_BACKPACK,p.DHT22_I2C_NANO_BACKPACK=p.DHT_I2C_NANO_BACKPACK,p.SI7021=p.SI7020;var h=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var r=t.freq||25,i=null,a=null;o.Component.call(n,t=o.Options(t)),o.Controller.call(n,p,t),s.set(n,{}),n.toRelativeHumidity||(n.toRelativeHumidity=t.toRelativeHumidity||function(e){return e});var l={relativeHumidity:{get:function(){return this.toRelativeHumidity(a)}}};return l.RH=l.relativeHumidity,Object.defineProperties(n,l),"function"==typeof n.initialize&&n.initialize(t,(function(e){a=e})),setInterval((function(){if(null!=a&&!Number.isNaN(n.relativeHumidity)){var e={};e.RH=e.relativeHumidity=n.relativeHumidity,n.emit("data",e),n.relativeHumidity!==i&&(i=n.relativeHumidity,n.emit("change",e))}}),r),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(a);r.env.IS_TEST_MODE&&(h.Controllers=p,h.purge=function(){s.clear()}),e.exports=h},1744:(e,t,n)=>{e.exports={Accelerometer:n(2315),Animation:n(1914),Altimeter:n(2320),Barometer:n(2321),Board:n(683),Button:n(2552),Color:n(2553),Collection:n(1105),Compass:n(2324),ESC:n(2554),Expander:n(1743),Fn:n(740),GPS:n(2555),Gyro:n(2322),Hygrometer:n(2323),SIP:n(1094),Keypad:n(2556),LCD:n(2558),Led:n(2328),LedControl:n(2150),Light:n(2568),Joystick:n(2569),Motion:n(2570),Motor:n(2571),Orientation:n(2325),Piezo:n(2572),Pin:n(2148),Proximity:n(2574),ReflectanceArray:n(2575),Relay:n(2576),Repl:n(2317),Sensor:n(2151),Servo:n(2577),ShiftRegister:n(2330),Stepper:n(2578),Switch:n(2579),Thermometer:n(2326)},e.exports.Board.Virtual=function(t){var n;return n=t instanceof e.exports.Expander?{io:t}:t,new e.exports.Board(Object.assign({},{repl:!1,debug:!1,sigint:!1},n))},e.exports.Sensor.Analog=e.exports.Sensor,e.exports.Sensor.Digital=function(t){var n="digital";return"number"==typeof t||"string"==typeof t?t={type:n,pin:t}:t.type=n,new e.exports.Sensor(t)},e.exports.IMU=e.exports.SIP,e.exports.Multi=e.exports.SIP,e.exports.Luxmeter=e.exports.Light,e.exports.Magnetometer=e.exports.Compass,e.exports.Ping=e.exports.Proximity,e.exports.Sonar=e.exports.Proximity,e.exports.Boards=e.exports.Board.Collection,e.exports.Buttons=e.exports.Button.Collection,e.exports.ESCs=e.exports.ESC.Collection,e.exports.Leds=e.exports.Led.Collection,e.exports.Led.RGBs=e.exports.Led.RGB.Collection,e.exports.Motors=e.exports.Motor.Collection,e.exports.Pins=e.exports.Pin.Collection,e.exports.Relays=e.exports.Relay.Collection,e.exports.Sensors=e.exports.Sensor.Collection,e.exports.Servos=e.exports.Servo.Collection,e.exports.Switches=e.exports.Switch.Collection,e.exports.Touchpad=e.exports.Keypad},2569:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(769),l=n(740),s=l.constrain,u=l.fscale,c=new Map,d=["x","y"],f=function(){"use strict";function e(e){var t=e.pins,n=e.io;this.pins=t,this.io=n,this.io.pinMode(this.pins[0],this.io.MODES.OUTPUT),this.io.pinMode(this.pins[1],this.io.MODES.OUTPUT),this.io.pinMode(this.pins[2],this.io.MODES.OUTPUT),this.io.pinMode(this.pins[3],this.io.MODES.OUTPUT)}return e.prototype.select=function(e){this.io.digitalWrite(this.pins[0],1&e?this.io.HIGH:this.io.LOW),this.io.digitalWrite(this.pins[1],2&e?this.io.HIGH:this.io.LOW),this.io.digitalWrite(this.pins[2],4&e?this.io.HIGH:this.io.LOW),this.io.digitalWrite(this.pins[3],8&e?this.io.HIGH:this.io.LOW)},e}(),p={ANALOG:{initialize:{value:function(e,t){var n=this,r=e.pins,i={x:null,y:null};r.forEach((function(e,r){n.io.pinMode(e,n.io.MODES.ANALOG),n.io.analogRead(e,(function(e){i[d[r]]=e,null!==i.x&&null!==i.y&&(t({x:i.x,y:i.y}),i.x=null,i.y=null)}))}))}},toAxis:{value:function(e,t){var n=c.get(this);return s(u(e-n[t].zeroV,-511,511,-1,1),-1,1)}}},ESPLORA:{initialize:{value:function(e,t){var n=this,r=new f({pins:[18,19,20,21],io:this.io}),i=[11,12],o=1,a={x:null,y:null};this.io.pinMode(4,this.io.MODES.ANALOG);var l=function e(r){a[d[o]]=r,null!==a.x&&null!==a.y&&(t({x:a.x,y:a.y}),a.x=null,a.y=null),n.io.removeListener("analog-read-4",e),setTimeout(s,10)},s=function(){r.select(i[o^=1]),n.io.analogRead(4,l)};s()}},toAxis:{value:function(e,t){var n=c.get(this);return s(u(e-n[t].zeroV,-511,511,-1,1),-1,1)}}}};p.DEFAULT=p.ANALOG;var h=function(e){"use strict";function t(t){var n;n=e.call(this)||this,o.Component.call(n,t=o.Options(t)),o.Controller.call(n,p,t),n.toAxis||(n.toAxis=t.toAxis||function(e){return e});var r={x:{invert:!1,value:0,previous:0,zeroV:0,calibrated:!1},y:{invert:!1,value:0,previous:0,zeroV:0,calibrated:!1}};return r.x.zeroV=void 0===t.zeroV?0:t.zeroV.x||0,r.y.zeroV=void 0===t.zeroV?0:t.zeroV.y||0,r.x.invert=t.invertX||t.invert||!1,r.y.invert=t.invertY||t.invert||!1,c.set(n,r),"function"==typeof n.initialize&&n.initialize(t,(function(e){var t=!1,i={x:null,y:null};Object.keys(e).forEach((function(o){var a=e[o],l=r[o];l.value=a,r[o].calibrated||(r[o].calibrated=!0,r[o].zeroV=a,t=!0),i[o]=n[o];var s=Math.abs(i[o]),u=Math.abs(l.previous);(s<u||s>u)&&(t=!0),l.previous=i[o]})),n.emit("data",{x:i.x,y:i.y}),t&&n.emit("change",{x:i.x,y:i.y})})),Object.defineProperties(n,{x:{get:function(){return this.toAxis(r.x.value,"x")*(r.x.invert?-1:1)}},y:{get:function(){return this.toAxis(r.y.value,"y")*(r.y.invert?-1:1)}}}),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(a);r.env.IS_TEST_MODE&&(h.Controllers=p,h.purge=function(){c.clear()}),e.exports=h},2556:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(769),l=n(740),s=l.scale,u=l.toFixed,c=l.uint16,d=new Map,f={down:["down","press","tap","impact","hit","touch"],up:["up","release"],hold:["hold"]};function p(e){var t,n=[];return e.keys&&Array.isArray(e.keys)&&(n=e.keys.slice()).every(Array.isArray)&&(n=(t=n).flat?t.flat():t.reduce((function(e,t){return e.concat(t)}),[])),n}var h={MPR121:{ADDRESSES:{value:[90,91,92,93]},REGISTER:{value:n(2557)},initialize:{value:function(e,t){var r=n(1094).Drivers.addressResolver(this,e),i=d.get(this),o=this.REGISTER.MAPS[e.controller].KEYS,a=this.REGISTER.MAPS[e.controller].TARGETS,l=Object.keys(o).reduce((function(e,t){return e[t]=o[t],e}),[]),f=p(e),h=l.length;this.io.i2cConfig(e),this.io.i2cWrite(r,this.REGISTER.MPR121_SOFTRESET,99),this.io.i2cWrite(r,this.REGISTER.MHD_RISING,1),this.io.i2cWrite(r,this.REGISTER.NHD_AMOUNT_RISING,1),this.io.i2cWrite(r,this.REGISTER.NCL_RISING,0),this.io.i2cWrite(r,this.REGISTER.FDL_RISING,0),this.io.i2cWrite(r,this.REGISTER.MHD_FALLING,1),this.io.i2cWrite(r,this.REGISTER.NHD_AMOUNT_FALLING,1),this.io.i2cWrite(r,this.REGISTER.NCL_FALLING,255),this.io.i2cWrite(r,this.REGISTER.FDL_FALLING,2),this.sensitivity={press:Array(12).fill(.95),release:Array(12).fill(.975)},e.keys&&"MPR121_SHIELD"===e.controller&&(f=f.reverse()),e.sensitivity&&(Array.isArray(e.sensitivity)?e.sensitivity.forEach((function(e,t){var n=e.press,r=e.release;void 0!==n&&(this.sensitivity.press[t]=n),void 0!==r&&(this.sensitivity.release[t]=r)}),this):(void 0!==e.sensitivity.press&&this.sensitivity.press.fill(e.sensitivity.press),void 0!==e.sensitivity.release&&this.sensitivity.release.fill(e.sensitivity.release)));for(var m=0;m<12;m++)this.io.i2cWrite(r,this.REGISTER.ELE0_TOUCH_THRESHOLD+(m<<1),s(u(1-this.sensitivity.press[m],3),0,1,0,255)),this.io.i2cWrite(r,this.REGISTER.ELE0_RELEASE_THRESHOLD+(m<<1),s(u(1-this.sensitivity.release[m],3),0,1,0,255));this.io.i2cWrite(r,this.REGISTER.FILTER_CONFIG,19),this.io.i2cWrite(r,this.REGISTER.AFE_CONFIGURATION,128),this.io.i2cWrite(r,this.REGISTER.AUTO_CONFIG_CONTROL_0,143),this.io.i2cWrite(r,this.REGISTER.AUTO_CONFIG_USL,228),this.io.i2cWrite(r,this.REGISTER.AUTO_CONFIG_LSL,148),this.io.i2cWrite(r,this.REGISTER.AUTO_CONFIG_TARGET_LEVEL,205),this.io.i2cWrite(r,this.REGISTER.ELECTRODE_CONFIG,204),f.length||(f=Array.from(Object.assign({},o,{length:h}))),i.length=h,i.touches=g(h),i.keys=f,i.mapping=l,i.targets=a,i.isMultitouch=!0,this.io.i2cRead(r,0,2,(function(e){return t(c(e[1],e[0]))}))}},toAlias:{value:function(e){return d.get(this).keys[e]}},toIndices:{value:function(e){for(var t=d.get(this),n=[],r=0;r<12;r++)e&1<<r&&n.push(t.targets[e&1<<r]);return n}}},VKEY:{initialize:{value:function(e,t){var n,r=d.get(this),i=e.aref||this.io.aref||5,o=l.inRange(i,4.5,5.5),a=[1,2,3,4,5,6,7,8,9,10,11,12],s=p(e);s.length||(s=a),r.scale=[o?17:26,o?40:58,o?496:721],n=a.length,r.length=n,r.touches=g(n),r.mapping=a,r.keys=s,r.isMultitouch=!1,this.io.pinMode(this.pin,this.io.MODES.ANALOG),this.io.analogRead(this.pin,(function(e){return t(e)}))}},toAlias:{value:function(e){return d.get(this).keys[e]}},toIndices:{value:function(e){var t=d.get(this),n=t.length,r=t.scale[0],i=t.scale[1],o=t.scale[2];return e<r||e>o?[]:[n-(e-r)/i|0]}}},ANALOG:{initialize:{value:function(e,t){var n,r,i=p(e);if(e.length&&!i.length&&(i=Array.from({length:e.length},(function(e,t){return t}))),!i.length)throw new Error("Missing `keys`. Analog Keypad requires either a numeric `length` or a `keys` array.");r=(n=i).length;var o=d.get(this),a=r+1,l=Math.round(1023/a),s=Array.from({length:a},(function(e,t){var n=l*t;return Array.from({length:l-1},(function(e,t){return n+t}))}));o.length=r,o.ranges=s,o.touches=g(r),o.mapping=n,o.keys=i,o.isMultitouch=!0,this.io.pinMode(this.pin,this.io.MODES.ANALOG),this.io.analogRead(this.pin,(function(e){return t(e)}))}},toAlias:{value:function(e){return d.get(this).keys[e]}},toIndices:{value:function(e){var t=d.get(this),n=t.ranges.findIndex((function(t){return t.includes(e)}));return n===t.length&&n--,n<0?[]:[n]}}},AT42QT1070:{ADDRESSES:{value:[27]},REGISTER:{value:{READ:3}},initialize:{value:function(e,t){var r,i=n(1094).Drivers.addressResolver(this,e),o=d.get(this),a=[0,1,2,3,4,5,6],l=p(e);l.length||(l=a),r=a.length,o.length=r,o.touches=g(r),o.mapping=a,o.keys=l,o.isMultitouch=!0,this.io.i2cConfig(e),this.io.i2cRead(i,this.REGISTER.READ,1,(function(e){return t(e[0])}))}},toAlias:{value:function(e){return d.get(this).keys[e]}},toIndices:{value:function(e){for(var t=[],n=0;n<7;n++)e&1<<n&&t.push(n);return t}}},"3X4_I2C_NANO_BACKPACK":{ADDRESSES:{value:[10,11,12,13]},initialize:{value:function(e,t){var r,i=n(1094).Drivers.addressResolver(this,e),o=d.get(this),a=[1,2,3,4,5,6,7,8,9,"*",0,"#"],l=p(e);l.length||(l=a),r=a.length,o.length=r,o.touches=g(r),o.mapping=a,o.keys=l,o.isMultitouch=!0,this.io.i2cConfig(e),this.io.i2cRead(i,2,(function(e){return t(c(e[0],e[1]))}))}},toAlias:{value:function(e){return d.get(this).keys[e]}},toIndices:{value:function(e){for(var t=d.get(this),n=[],r=0;r<t.length;r++)e&1<<r&&n.push(r);return n}}},"4X4_I2C_NANO_BACKPACK":{ADDRESSES:{value:[10,11,12,13]},initialize:{value:function(e,t){var r,i=n(1094).Drivers.addressResolver(this,e),o=d.get(this),a=p(e),l=[1,2,3,"A",4,5,6,"B",7,8,9,"C","*",0,"#","D"];a.length||(a=l),r=l.length,o.length=r,o.touches=g(r),o.mapping=l,o.keys=a,o.isMultitouch=!0,this.io.i2cConfig(e),this.io.i2cRead(i,2,(function(e){return t(c(e[0],e[1]))}))}},toAlias:{value:function(e){return d.get(this).keys[e]}},toIndices:{value:function(e){for(var t=d.get(this),n=[],r=0;r<t.length;r++)e&1<<r&&n.push(r);return n}}},SX1509:{ADDRESSES:{value:[10,11,12,13]},REGISTER:{value:{PULLUP:3,OPEN_DRAIN:5,DIR:7,DIR_B:14,DIR_A:15}},initialize:{value:function(e,t){var r,i=n(1094).Drivers.addressResolver(this,e),o=d.get(this),a=p(e),l=[1,2,3,4,5,6,7,8,9,"*",0,"#"];a.length||(a=l),r=l.length,o.length=r,o.touches=g(r),o.mapping=l,o.keys=a,o.isMultitouch=!0,this.io.i2cConfig(e),this.io.i2cWriteReg(i,this.REGISTER.DIR,240),this.io.i2cWriteReg(i,this.REGISTER.OPEN_DRAIN,15),this.io.i2cWriteReg(i,this.REGISTER.PULLUP,240),this.io.i2cRead(i,2,(function(e){return t(c(e[0],e[1]))}))}},toAlias:{value:function(e){return d.get(this).keys[e]}},toIndices:{value:function(e){for(var t=d.get(this),n=[],r=0;r<t.length;r++)e&1<<r&&n.push(r);return n}}}};function g(e){return Array.from({length:e},(function(){return{timeout:null,value:0}}))}h.MPR121QR2=h.MPR121,h.MPR121QR2_SHIELD=h.MPR121,h.MPR121_KEYPAD=h.MPR121,h.MPR121_SHIELD=h.MPR121,h.QTOUCH=h.AT42QT1070,h.DEFAULT=h.ANALOG;var m=function(e){"use strict";function t(t){var n;n=e.call(this)||this,o.Component.call(n,t=o.Options(t));var r=null,i={touches:null,timeout:null,length:null,keys:null,mapping:null,holdtime:null},a=l.debounce((function(e,t){var n={type:e,which:t,timestamp:Date.now()};f[e].forEach((function(e){this.emit(e,n)}),this),this.emit("change",Object.assign({},n))}),5);return o.Controller.call(n,h,t),i.holdtime=t.holdtime?t.holdtime:500,d.set(n,i),"function"==typeof n.initialize&&n.initialize(t,(function(e){r=e;for(var t=Date.now(),o=n.toIndices(e),l=i.length,s={down:[],hold:[],up:[]},u=null,c=0;c<l;c++)u=n.toAlias(c),o.includes(c)?(0===i.touches[c].value?(i.touches[c].timeout=t+i.holdtime,s.down.push(u)):1===i.touches[c].value&&null!==i.touches[c].timeout&&t>i.touches[c].timeout&&(i.touches[c].timeout=t+i.holdtime,s.hold.push(u)),i.touches[c].value=1):(1===i.touches[c].value&&(i.touches[c].timeout=null,s.up.push(u)),i.touches[c].value=0),null,u=null;Object.keys(s).forEach((function(e){var t=s[e];t.length&&a.call(this,e,t)}),n)})),Object.defineProperties(n,{isMultitouch:{get:function(){return i.isMultitouch}},value:{get:function(){return r}}}),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(a);r.env.IS_TEST_MODE&&(m.Controllers=h,m.purge=function(){d.clear()}),e.exports=m},2559:e=>{e.exports={DEFAULT:{0:[14,27,27,27,27,27,14,0],1:[2,6,14,6,6,6,6,0],2:[14,27,3,6,12,24,31,0],3:[14,27,3,14,3,27,14,0],4:[3,7,15,27,31,3,3,0],5:[31,24,30,3,3,27,14,0],6:[14,27,24,30,27,27,14,0],7:[31,3,6,12,12,12,12,0],8:[14,27,27,14,27,27,14,0],9:[14,27,27,15,3,27,14,0],10:[23,21,21,21,23,0,31,0],11:[10,10,10,10,10,0,31,0],12:[23,17,23,20,23,0,31,0],13:[23,17,19,17,23,0,31,0],14:[21,21,23,17,17,0,31,0],15:[23,20,23,17,23,0,31,0],16:[23,20,23,21,23,0,31,0],17:[23,17,18,18,18,0,31,0],18:[23,21,23,21,23,0,31,0],19:[23,21,23,17,23,0,31,0],circle:[0,14,17,17,17,14,0,0],cdot:[0,14,17,21,17,14,0,0],donut:[0,14,31,27,31,14,0,0],ball:[0,14,31,31,31,14,0,0],square:[0,31,17,17,17,31,0,0],sdot:[0,31,17,21,17,31,0,0],fbox:[0,31,31,31,31,31,0,0],sbox:[0,0,14,10,14,0,0,0],sfbox:[0,0,14,14,14,0,0,0],bigpointerright:[8,12,10,9,10,12,8,0],bigpointerleft:[2,6,10,18,10,6,2,0],arrowright:[8,12,10,9,10,12,8,0],arrowleft:[2,6,10,18,10,6,2,0],ascprogress1:[16,16,16,16,16,16,16,16],ascprogress2:[24,24,24,24,24,24,24,24],ascprogress3:[28,28,28,28,28,28,28,28],ascprogress4:[30,30,30,30,30,30,30,30],fullprogress:[31,31,31,31,31,31,31,31],descprogress1:[1,1,1,1,1,1,1,1],descprogress2:[3,3,3,3,3,3,3,3],descprogress3:[7,7,7,7,7,7,7,7],descprogress4:[15,15,15,15,15,15,15,15],ascchart1:[31,0,0,0,0,0,0,0],ascchart2:[31,31,0,0,0,0,0,0],ascchart3:[31,31,31,0,0,0,0,0],ascchart4:[31,31,31,31,0,0,0,0],ascchart5:[31,31,31,31,31,0,0,0],ascchart6:[31,31,31,31,31,31,0,0],ascchart7:[31,31,31,31,31,31,31,0],descchart1:[0,0,0,0,0,0,0,31],descchart2:[0,0,0,0,0,0,31,31],descchart3:[0,0,0,0,0,31,31,31],descchart4:[0,0,0,0,31,31,31,31],descchart5:[0,0,0,31,31,31,31,31],descchart6:[0,0,31,31,31,31,31,31],descchart7:[0,31,31,31,31,31,31,31],borderleft1:[1,1,1,1,1,1,1,1],borderleft2:[3,2,2,2,2,2,2,3],borderleft3:[7,4,4,4,4,4,4,7],borderleft4:[15,8,8,8,8,8,8,15],borderleft5:[31,16,16,16,16,16,16,31],bordertopbottom5:[31,0,0,0,0,0,0,31],borderright1:[16,16,16,16,16,16,16,16],borderright2:[24,8,8,8,8,8,8,24],borderright3:[28,4,4,4,4,4,4,28],borderright4:[30,2,2,2,2,2,2,30],borderright5:[31,1,1,1,1,1,1,31],box1:[3,3,3,0,0,0,0,0],box2:[24,24,24,0,0,0,0,0],box3:[27,27,27,0,0,0,0,0],box4:[0,0,0,0,3,3,3,0],box5:[3,3,3,0,3,3,3,0],box6:[24,24,24,0,3,3,3,0],box7:[27,27,27,0,3,3,3,0],box8:[0,0,0,0,24,24,24,0],box9:[3,3,3,0,24,24,24,0],box10:[24,24,24,0,24,24,24,0],box11:[27,27,27,0,24,24,24,0],box12:[0,0,0,0,27,27,27,0],box13:[3,3,3,0,27,27,27,0],box14:[24,24,24,0,27,27,27,0],box15:[27,27,27,0,27,27,27,0],euro:[3,4,30,8,30,8,7,0],cent:[0,0,14,17,16,21,14,8],speaker:[1,3,15,15,15,3,1,0],sound:[8,16,0,24,0,16,8,0],x:[0,27,14,4,14,27,0,0],target:[0,10,17,21,17,10,0,0],pointerright:[0,8,12,14,12,8,0,0],pointerup:[0,0,4,14,31,0,0,0],pointerleft:[0,2,6,14,6,2,0,0],pointerdown:[0,0,31,14,4,0,0,0],arrowne:[0,15,3,5,9,16,0,0],arrownw:[0,30,24,20,18,1,0,0],arrowsw:[0,1,18,20,24,30,0,0],arrowse:[0,16,9,5,3,15,0,0],dice1:[0,0,0,4,0,0,0,0],dice2:[0,16,0,0,0,1,0,0],dice3:[0,16,0,4,0,1,0,0],dice4:[0,17,0,0,0,17,0,0],dice5:[0,17,0,4,0,17,0,0],dice6:[0,17,0,17,0,17,0,0],bell:[4,14,14,14,31,0,4,0],smile:[0,10,0,17,14,0,0,0],note:[2,3,2,14,30,12,0,0],clock:[0,14,21,23,17,14,0,0],heart:[0,10,31,31,31,14,4,0],duck:[0,12,29,15,15,6,0,0],check:[0,1,3,22,28,8,0,0],retarrow:[1,1,5,9,31,8,4,0],runninga:[6,6,5,14,20,4,10,17],runningb:[6,6,4,14,14,4,10,10]}}},2558:(e,t,n)=>{var r=n(107),i=n(683),o=n(2148),a=n(2559),l=n(2149),s=new Map;function u(e){for(var t,n=r.hrtime(),i=0;e>i;)i=(1e9*(t=r.hrtime(n))[0]+t[1])/1e3}function c(e){u(1e3*e)}var d=function(){"use strict";function e(e,t){this.address=e,this.mask=255,this.memory=0,this.io=t}var t=e.prototype;return t.pinMode=function(e,t){1===t?this.mask&=~(1<<e):this.mask|=1<<e},t.portMode=function(e){this.mask=0===e?255:0},t.portWrite=function(e){this.memory=e&~this.mask,this.io.i2cWrite(this.address,this.memory)},e}(),f={DEFAULT:{SHIFT_LEFT:4,CLEAR:1,HOME:2,ENTRY:4,DISPLAY:8,DIMENSIONS:32,CURSORSHIFT:16,SETCGRAMADDR:64,SETDDRAMADDR:128,DATA:64,COMMAND:128,ENTRYRIGHT:0,ENTRYLEFT:2,ENTRYSHIFTINCREMENT:1,ENTRYSHIFTDECREMENT:0,DISPLAYON:4,DISPLAYOFF:0,CURSORON:2,CURSOROFF:0,BLINKON:1,BLINKOFF:0,DISPLAYMOVE:8,CURSORMOVE:0,MOVERIGHT:4,MOVELEFT:0,BITMODE:{4:0,8:16},LINE:{1:0,2:8},DOTS:{"5x10":4,"5x8":0},BACKLIGHT_ON:8,BACKLIGHT_OFF:0,MEMORYLIMIT:8,EN:4,RW:2,RS:1,D4:4,D5:5,D6:6,D7:7}},p={JHD1313M1:{REGISTER:{value:f.DEFAULT},CHARS:{value:a.DEFAULT},initialize:{value:function(e){this.address={lcd:e.address||62,rgb:98},e.address=this.address,this.io.i2cConfig(e),this.lines=e.lines||2,this.rows=e.rows||2,this.cols=e.cols||16,this.dots=e.dots||"5x8";var t={display:this.REGISTER.DISPLAY|this.REGISTER.DISPLAYON|this.REGISTER.CURSOROFF|this.REGISTER.BLINKOFF,characters:{},index:this.REGISTER.MEMORYLIMIT-1,backlight:{polarity:1,pin:null,value:null}};s.set(this,t);var n=this.REGISTER.DIMENSIONS|this.REGISTER.LINE[2];c(50),this.command(n),c(5),this.command(n),this.command(n),this.command(n),c(5),this.command(this.REGISTER.ENTRY|this.REGISTER.ENTRYLEFT|this.REGISTER.ENTRYSHIFTDECREMENT),this.on(),this.clear(),this.home(),this.bgOn(),e.color?this.bgColor(e.color):this.bgColor("black")}},clear:{value:function(){return this.command(this.REGISTER.CLEAR)}},setCursor:{value:function(e,t){return this.command(0===t?128|e:192|e)}},autoscroll:{value:function(){var e=s.get(this);return e.display=this.REGISTER.ENTRYLEFT|this.REGISTER.ENTRYSHIFTINCREMENT,this.command(this.REGISTER.ENTRY|e.display),this}},bgColor:{value:function(e,t,n){var r=l.ToRGB(e,t,n),i=this.address.rgb;return this.io.i2cWrite(i,[0,0]),this.io.i2cWrite(i,[1,0]),this.io.i2cWrite(i,[4,r.red]),this.io.i2cWrite(i,[3,r.green]),this.io.i2cWrite(i,[2,r.blue]),this}},bgOn:{value:function(){return this.io.i2cWrite(this.address.rgb,[this.REGISTER.BACKLIGHT_ON,170]),this}},bgOff:{value:function(){return this.io.i2cWrite(this.address.rgb,[this.REGISTER.BACKLIGHT_ON,0]),this}},command:{value:function(e,t){return 1===arguments.length&&(t=e,e=this.REGISTER.COMMAND),e===this.REGISTER.DATA?this.send(t):this.writeBits(this.REGISTER.COMMAND,t)}},send:{value:function(e){return this.writeBits(this.REGISTER.DATA,e)}},writeBits:{value:function(e,t){return this.io.i2cWrite(this.address.lcd,[e,t]),this}},hilo:{value:function(e){e.call(this)}}},PCF8574:{REGISTER:{value:Object.assign({},f.DEFAULT,{COMMAND:0,DATA:1,BACKLIGHT_ON:255,BACKLIGHT_OFF:0})},CHARS:{value:a.DEFAULT},initialize:{value:function(e){this.bitMode=e.bitMode||4,this.lines=e.lines||2,this.rows=e.rows||2,this.cols=e.cols||16,this.dots=e.dots||"5x8",e.address||(e.address=["PCF8574A","PCF8574AT"].includes(e.controller)?63:39),this.io.i2cConfig(e),this.address={lcd:e.address},this.expander=new d(this.address.lcd,this.io),this.expander.portMode(this.io.MODES.OUTPUT),this.expander.portWrite(0);var t=e.backlight||{polarity:0,pin:3};t.pin=void 0===t.pin?3:t.pin,t.polarity=void 0===t.polarity?0:t.polarity;var n=this.REGISTER.BITMODE[this.bitMode]|this.REGISTER.LINE[this.lines]|this.REGISTER.DOTS[this.dots],r=this.REGISTER.DISPLAY|this.REGISTER.DISPLAYON|this.REGISTER.CURSOROFF|this.REGISTER.BLINKOFF,i=this.REGISTER.ENTRYLEFT|this.REGISTER.ENTRYSHIFTDECREMENT,o={display:r,characters:{},index:this.REGISTER.MEMORYLIMIT-1,backlight:{polarity:t.polarity,pinMask:1<<t.pin,statusMask:0},data:[1<<this.REGISTER.D4,1<<this.REGISTER.D5,1<<this.REGISTER.D6,1<<this.REGISTER.D7]};s.set(this,o);var a=3<<this.REGISTER.SHIFT_LEFT;this.expander.portWrite(a),this.pulse(a),c(4),this.expander.portWrite(a),this.pulse(a),c(4),this.expander.portWrite(a),this.pulse(a),a=2<<this.REGISTER.SHIFT_LEFT,this.expander.portWrite(a),this.pulse(a),this.command(this.REGISTER.DIMENSIONS|n),this.command(o.display),o.display=i,this.command(this.REGISTER.ENTRY|o.display),this.on(),this.clear(),this.backlight()}},clear:{value:function(){return this.command(this.REGISTER.CLEAR),c(2),this}},backlight:{value:function(e){var t,n=s.get(this);return e=void 0===e?255:e,0!==n.backlight.pinMask&&(t=0===n.backlight.polarity&&e>0||1===n.backlight.polarity&&0===e?255:0,n.backlight.statusMask=n.backlight.pinMask&t,this.expander.portWrite(n.backlight.statusMask)),this}},createChar:{value:function(e,t){var n,r=s.get(this);"number"==typeof e?n=7&e:(n=r.index,r.index--,-1===r.index&&(r.index=this.REGISTER.MEMORYLIMIT-1)),this.command(this.REGISTER.SETCGRAMADDR|n<<3),c(1);for(var i=0;i<8;i++)this.command(this.REGISTER.DATA,t[i]),c(1);return r.characters[e]=n,n}},noBacklight:{value:function(){this.backlight(0)}},on:{value:function(){var e=s.get(this);return e.display|=this.REGISTER.DISPLAYON,this.command(this.REGISTER.DISPLAY|e.display),this}},off:{value:function(){var e=s.get(this);return e.display&=~this.REGISTER.DISPLAYON,this.command(this.REGISTER.DISPLAY|e.display),this}},hilo:{value:function(e){e.call(this)}},command:{value:function(e,t){return 1===arguments.length&&(t=e,e=this.REGISTER.COMMAND),this.send(e,t),this}},send:{writable:!0,value:function(e,t){return this.writeBits(e,t>>4),this.writeBits(e,15&t),this}},writeBits:{writable:!0,value:function(e,t){for(var n=s.get(this),r=0,i=0;i<4;i++)1&~t||(r|=n.data[i]),t>>=1;return e===this.REGISTER.DATA&&(e=this.REGISTER.RS),r|=e|n.backlight.statusMask,this.pulse(r),this}},pulse:{writable:!0,value:function(e){this.expander.portWrite(e|this.REGISTER.EN),this.expander.portWrite(e&~this.REGISTER.EN)}}},PARALLEL:{REGISTER:{value:f.DEFAULT},CHARS:{value:a.DEFAULT},initialize:{value:function(e){this.bitMode=e.bitMode||4,this.lines=e.lines||2,this.rows=e.rows||2,this.cols=e.cols||16,this.dots=e.dots||"5x8",Array.isArray(e.pins)?this.pins={rs:e.pins[0],en:e.pins[1],data:[e.pins[5],e.pins[4],e.pins[3],e.pins[2]]}:this.pins=e.pins;var t=this.REGISTER.DISPLAY|this.REGISTER.DISPLAYON,n={display:t,characters:{},index:this.REGISTER.MEMORYLIMIT-1,backlight:{polarity:1,pin:null,value:null}};if(s.set(this,n),e.pins.forEach((function(e){this.io.pinMode(e,1)}),this),this.io.digitalWrite(this.pins.rs,this.io.LOW),this.io.digitalWrite(this.pins.en,this.io.LOW),e.backlight){if("number"==typeof e.backlight){var r=e.backlight;e.backlight={pin:r}}e.backlight.pin&&(n.backlight.pin=new o({pin:e.backlight.pin,board:this.board}),n.backlight.pin.high())}this.command(3),c(4),this.command(3),c(4),this.command(3),4===this.bitMode&&this.command(2),this.command(this.REGISTER.LINE[this.lines]|this.REGISTER.DOTS[this.dots]),this.command(t),this.clear(),this.home()}}}};p.LCM1602=p.LCD1602=p.LCM1602IIC=p.LCD2004=p.PCF8574A=p.PCF8574AT=p.PCF8574T=p.PCF8574,p.MJKDZ=Object.assign({},p.PCF8574,{REGISTER:{value:Object.assign({},f.DEFAULT,{SHIFT_LEFT:0,COMMAND:0,DATA:6,EN:16,RW:5,RS:6,D4:0,D5:1,D6:2,D7:3})},writeBits:{writable:!0,value:function(e,t){for(var n=s.get(this),r=0,i=0;i<4;i++)1&~t||(r|=n.data[i]),t>>=1;return e===this.REGISTER.DATA&&(e=1<<this.REGISTER.RS),r|=e|n.backlight.statusMask,this.pulse(r),this}}}),p.DEFAULT=p.PARALLEL;var h=function(){"use strict";function e(e){i.Component.call(this,e=i.Options(e)),i.Controller.call(this,p,e),this.ctype=e.controller,this.initialize&&this.initialize(e),Object.defineProperties(this,{characters:{get:function(){return Object.assign({},s.get(this).characters)}}})}var t=e.prototype;return t.command=function(e,t){return void 0===t&&(t=e,e=128),4===this.bitMode&&this.send(t>>4),this.send(t),this},t.send=function(e){for(var t=0,n={4:8,8:128}[this.bitMode];n>0;n>>=1)this.io.digitalWrite(this.pins.data[t],this.io[e&n?"HIGH":"LOW"]),t++;return this.io.digitalWrite(this.pins.en,this.io.LOW),this.io.digitalWrite(this.pins.en,this.io.HIGH),u(1),this.io.digitalWrite(this.pins.en,this.io.LOW),u(37),this},t.hilo=function(e){this.io.digitalWrite(this.pins.rs,this.io.HIGH),e.call(this),this.io.digitalWrite(this.pins.rs,this.io.LOW)},t.print=function(e,t){var n,r,i;return e="".concat(e),t=t||{},n=s.get(this),r=!(t.dontProcessSpecials||!1)&&g.test(e),1===e.length?this.hilo((function(){this.command(this.REGISTER.DATA,e.charCodeAt(0))})):r?(i=e.replace(g,(function(e,t){var r=n.characters[t];return"number"==typeof r?String.fromCharCode(r):e})),this.print(i,{dontProcessSpecials:!0})):this.hilo((function(){Array.from(e).forEach((function(e){this.command(this.REGISTER.DATA,e.charCodeAt(0))}),this)})),this},t.write=function(e){return this.hilo.call(this,(function(){this.command(this.REGISTER.DATA,e)})),this},t.clear=function(){return this.command(this.REGISTER.CLEAR),c(2),this},t.home=function(){return this.command(this.REGISTER.HOME),c(2),this},t.setCursor=function(e,t){return this.command(this.REGISTER.SETDDRAMADDR|e+[0,64,20,84][t]),this},t.backlight=function(e){var t=s.get(this);return e=void 0===e,t.backlight.pin instanceof o&&(e?t.backlight.pin.high():t.backlight.pin.low()),e?t.display|=this.REGISTER.DISPLAYON:t.display&=~this.REGISTER.DISPLAYON,this.command(t.display),this},t.noBacklight=function(){var e=s.get(this);return e.backlight.pin instanceof o&&e.backlight.pin.high(),this.backlight(!1)},t.on=function(){var e=s.get(this);return e.display|=this.REGISTER.DISPLAYON,this.command(e.display),this},t.off=function(){var e=s.get(this);return e.display&=~this.REGISTER.DISPLAYON,this.command(e.display),this},t.cursor=function(e,t){if(void 0!==t&&void 0!==e)return this.setCursor(t,e);var n=s.get(this);return n.display|=this.REGISTER.CURSORON,this.command(n.display),this},t.noCursor=function(){var e=s.get(this);return e.display&=~this.REGISTER.CURSORON,this.command(e.display),this},t.blink=function(){var e=s.get(this);return e.display|=this.REGISTER.BLINKON,this.command(e.display),this},t.noBlink=function(){var e=s.get(this);return e.display&=~this.REGISTER.BLINKON,this.command(e.display),this},t.autoscroll=function(){var e=s.get(this);return e.display|=this.REGISTER.ENTRYSHIFTINCREMENT,this.command(this.REGISTER.ENTRY|e.display),this},t.noAutoscroll=function(){var e=s.get(this);return e.display&=~this.REGISTER.ENTRYSHIFTINCREMENT,this.command(this.REGISTER.ENTRY|e.display),this},t.createChar=function(e,t){var n,r=s.get(this);return"number"==typeof e?n=7&e:(n=r.index,r.index--,-1===r.index&&(r.index=this.REGISTER.MEMORYLIMIT-1)),this.command(this.REGISTER.SETCGRAMADDR|n<<3),this.hilo((function(){for(var e=0;e<8;e++)this.command(this.REGISTER.DATA,t[e])})),r.characters[e]=n,n},t.useChar=function(e){var t=s.get(this);if(void 0===t.characters[e]){var n=this.createChar(e,this.CHARS[e]);for(var r in t.characters)if(e!==r&&t.characters[r]===n){delete t.characters[r];break}t.characters[e]=n}return this},e}(),g=/:(\w+):/g;h.POSITIVE=0,h.NEGATIVE=1,h.Characters=a,e.exports=h},2567:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(2150),s=function(e){"use strict";function t(t){return t.isMatrix=!1,e.call(this,t)||this}var n,r,o,s,u;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,a(n,r),o=t,u=[{key:"CHARS",get:function(){return l.DIGIT_CHARS}}],(s=null)&&i(o.prototype,s),u&&i(o,u),Object.defineProperty(o,"prototype",{writable:!1}),o}(l);e.exports=s},2328:(e,t,n)=>{var r=n(2329);r.Collection=n(2563),r.RGB=n(2149),r.RGB.Collection=n(2564),r.Matrix=n(2565),r.Digits=n(2567),e.exports=r},2566:e=>{e.exports={MATRIX_CHARS:{" ":[0,0,0,0,0,0,0,0],"!":[4,4,4,4,0,0,4,0],'"':[10,10,10,0,0,0,0,0],"#":[10,10,31,10,31,10,10,0],$:[4,15,20,14,5,30,4,0],"%":[24,25,2,4,8,19,3,0],"&":[12,18,20,8,21,18,13,0],"'":[12,4,8,0,0,0,0,0],"(":[2,4,8,8,8,4,2,0],")":[8,4,2,2,2,4,8,0],"*":[0,4,21,14,21,4,0,0],"+":[0,4,4,31,4,4,0,0],",":[0,0,0,0,12,4,8,0],"-":[0,0,0,31,0,0,0,0],".":[0,0,0,0,0,12,12,0],"/":[0,1,2,4,8,16,0,0],"[":[14,8,8,8,8,8,14,0],"\\":[0,16,8,4,2,1,0,0],"]":[14,2,2,2,2,2,14,0],"^":[4,10,17,0,0,0,0,0],_:[0,0,0,0,0,0,31,0],"`":[16,8,4,0,0,0,0,0],":":[0,12,12,0,12,12,0,0],";":[0,12,12,0,12,4,8,0],"<":[2,4,8,16,8,4,2,0],"=":[0,0,31,0,31,0,0,0],">":[8,4,2,1,2,4,8,0],"?":[14,17,1,2,4,0,4,0],"@":[14,17,1,13,21,21,14,0],"{":[2,4,4,8,4,4,2,0],"|":[4,4,4,0,4,4,4,0],"}":[8,4,4,2,4,4,8,0],"~":[8,21,2,0,0,0,0,0],0:[14,17,19,21,25,17,14,0],1:[4,12,4,4,4,4,14,0],2:[14,17,1,2,4,8,31,0],3:[31,2,4,2,1,17,14,0],4:[2,6,10,18,31,2,2,0],5:[31,16,30,1,1,17,14,0],6:[6,8,16,30,17,17,14,0],7:[31,1,2,4,4,4,4,0],8:[30,17,17,14,17,17,14,0],9:[14,17,17,15,1,2,12,0],A:[8,20,34,62,34,34,34,34],B:[60,34,34,62,34,34,60,0],C:[60,64,64,64,64,64,60,0],D:[124,66,66,66,66,66,124,0],E:[124,64,64,124,64,64,64,124],F:[124,64,64,124,64,64,64,64],G:[60,64,64,64,64,68,68,60],H:[68,68,68,124,68,68,68,68],I:[124,16,16,16,16,16,16,124],J:[60,8,8,8,8,8,72,48],K:[0,36,40,48,32,48,40,36],L:[64,64,64,64,64,64,64,124],M:[129,195,165,153,129,129,129,129],N:[0,66,98,82,74,70,66,0],O:[60,66,66,66,66,66,66,60],P:[60,34,34,34,60,32,32,32],Q:[28,34,34,34,34,38,34,29],R:[60,34,34,34,60,36,34,33],S:[0,30,32,32,62,2,2,60],T:[0,62,8,8,8,8,8,8],U:[66,66,66,66,66,66,34,28],V:[66,66,66,66,66,66,36,24],W:[0,73,73,73,73,42,28,0],X:[0,65,34,20,8,20,34,65],Y:[65,34,20,8,8,8,8,8],Z:[0,127,2,4,8,16,32,127],a:[0,0,14,1,15,17,15,0],b:[16,16,22,25,17,17,30,0],c:[0,0,14,17,16,17,14,0],d:[1,1,13,19,17,17,15,0],e:[0,0,14,17,31,16,14,0],f:[2,5,4,14,4,4,4,0],g:[0,13,19,19,13,1,14,0],h:[16,16,22,25,17,17,17,0],i:[4,0,12,4,4,4,14,0],j:[2,0,6,2,2,18,12,0],k:[8,8,9,10,12,10,9,0],l:[12,4,4,4,4,4,14,0],m:[0,0,26,21,21,21,21,0],n:[0,0,22,25,17,17,17,0],o:[0,0,14,17,17,17,14,0],p:[0,22,25,25,22,16,16,0],q:[0,13,19,19,13,1,1,0],r:[0,0,22,25,16,16,16,0],s:[0,0,15,16,30,1,31,0],t:[8,8,28,8,8,9,6,0],u:[0,0,18,18,18,18,13,0],v:[0,0,17,17,17,10,4,0],w:[0,0,17,17,21,21,10,0],x:[0,0,17,10,4,10,17,0],y:[0,0,17,17,19,13,1,14],z:[0,0,31,2,4,8,31,0],euro:[14,16,124,32,124,32,16,14],cent:[0,60,66,64,64,82,60,32],angryface:[0,102,102,0,24,36,66,129],circle:[60,66,129,129,129,129,66,60],cdot:[60,66,129,153,153,129,66,60],donut:[60,126,255,231,231,255,126,60],equality:[0,255,255,0,0,255,255,0],ball:[60,126,255,255,255,255,126,60],thinsquare:[255,129,129,129,129,129,129,255],thicksquare:[255,255,195,195,195,195,255,255],centeredsquare1:[0,0,60,60,60,60,0,0],centeredsquare2:[0,0,60,60,60,60,0,0],arrowright:[0,4,6,255,255,6,4,0],arrowleft:[0,32,96,255,255,96,32,0],note:[4,6,7,4,60,124,124,56],clock:[60,82,145,145,143,129,66,60],heartoutline:[102,153,129,129,66,36,24,0],heartfull:[102,255,255,255,126,60,24,0],thincheck:[0,0,1,2,4,136,80,32],thickcheck:[0,1,3,6,140,216,112,32],speaker:[3,7,63,63,63,63,7,3],sound:[0,64,128,0,192,0,128,64],xbig:[195,231,126,60,60,126,231,195],target:[60,126,195,219,219,195,126,60],bell:[24,60,60,60,60,126,0,24],smile:[0,102,102,0,0,129,66,60],frown:[0,102,102,0,0,60,66,129],winkright:[0,96,102,0,0,129,66,60],winkleft:[0,6,102,0,0,129,66,60],blink:[0,0,102,0,0,129,66,60],laughing:[0,102,102,0,255,129,66,60],tongueout:[0,102,102,0,0,126,10,4],expressionless:[0,102,102,0,0,255,0,0],ascprogress1:[128,128,128,128,128,128,128,128],ascprogress2:[192,192,192,192,192,192,192,192],ascprogress3:[224,224,224,224,224,224,224,224],ascprogress4:[240,240,240,240,240,240,240,240],ascprogress5:[248,248,248,248,248,248,248,248],ascprogress6:[252,252,252,252,252,252,252,252],ascprogress7:[254,254,254,254,254,254,254,254],fullprogress:[255,255,255,255,255,255,255,255],descprogress1:[127,127,127,127,127,127,127,127],descprogress2:[63,63,63,63,63,63,63,63],descprogress3:[31,31,31,31,31,31,31,31],descprogress4:[15,15,15,15,15,15,15,15],descprogress5:[7,7,7,7,7,7,7,7],descprogress6:[3,3,3,3,3,3,3,3],descprogress7:[1,1,1,1,1,1,1,1],ascchart1:[255,0,0,0,0,0,0,0],ascchart2:[255,255,0,0,0,0,0,0],ascchart3:[255,255,255,0,0,0,0,0],ascchart4:[255,255,255,255,0,0,0,0],ascchart5:[255,255,255,255,255,0,0,0],ascchart6:[255,255,255,255,255,255,0,0],ascchart7:[255,255,255,255,255,255,255,0],ascchart8:[255,255,255,255,255,255,255,255],descchart1:[0,255,255,255,255,255,255,255],descchart2:[0,0,255,255,255,255,255,255],descchart3:[0,0,0,255,255,255,255,255],descchart4:[0,0,0,0,255,255,255,255],descchart5:[0,0,0,0,0,255,255,255],descchart6:[0,0,0,0,0,0,255,255],descchart7:[0,0,0,0,0,0,0,255],descchart8:[0,0,0,0,0,0,0,0],borderleft1:[1,1,1,1,1,1,1,1],borderleft2:[3,2,2,2,2,2,2,3],borderleft3:[7,4,4,4,4,4,4,7],borderleft4:[15,8,8,8,8,8,8,15],borderleft5:[31,16,16,16,16,16,16,31],borderleft6:[63,32,32,32,32,32,32,63],borderleft7:[127,64,64,64,64,64,64,127],borderleft8:[255,128,128,128,128,128,128,255],bordertopbottom5:[255,0,0,0,0,0,0,255],borderright1:[128,128,128,128,128,128,128,128],borderright2:[192,64,64,64,64,64,64,192],borderright3:[224,32,32,32,32,32,32,224],borderright4:[240,16,16,16,16,16,16,240],borderright5:[248,8,8,8,8,8,8,248],borderright6:[252,4,4,4,4,4,4,252],borderright7:[254,2,2,2,2,2,2,254],borderright8:[255,1,1,1,1,1,1,255],box1:[224,224,224,0,0,0,0,0],box2:[7,7,7,0,0,0,0,0],box3:[231,231,231,0,0,0,0,0],box4:[0,0,0,0,0,7,7,7],box5:[7,7,7,0,0,7,7,7],box6:[224,224,224,0,0,7,7,7],box7:[231,231,231,0,0,7,7,7],box8:[0,0,0,0,0,224,224,224],box9:[7,7,7,0,0,224,224,224],box10:[224,224,224,0,0,224,224,224],box11:[231,231,231,0,0,224,224,224],box12:[0,0,0,0,0,231,231,231],box13:[7,7,7,0,0,231,231,231],box14:[224,224,224,0,0,231,231,231],box15:[231,231,231,0,0,231,231,231],checkerboard1:[170,85,170,85,170,85,170,85],checkerboard2:[85,170,85,170,85,170,85,170],checkerboard3:[93,234,87,186,85,238,85,187],checkerboard4:[204,51,51,204,204,51,51,204],checkerboard5:[204,204,51,51,204,204,51,51],checkerboard6:[51,204,204,51,51,204,204,51],checkerboard7:[51,51,204,204,51,51,204,204],pointerright:[32,48,56,60,60,56,48,32],pointerup:[0,0,24,60,126,255,0,0],pointerleft:[4,12,28,60,60,28,12,4],pointerdown:[0,0,255,126,60,24,0,0],arrowne:[0,62,6,10,18,34,64,128],arrownw:[0,124,96,80,72,68,2,1],arrowsw:[1,2,68,72,80,96,124,0],arrowse:[128,64,34,18,10,6,62,0],dice1:[0,0,0,24,24,0,0,0],dice2:[192,192,0,0,0,0,3,3],dice3:[192,192,0,24,24,0,3,3],dice4:[195,195,0,0,0,0,195,195],dice5:[195,195,0,24,24,0,195,195],dice6:[195,195,0,195,195,0,195,195],outlinedplus1:[60,36,231,129,129,231,36,60],outlinedplus2:[255,231,231,129,129,231,231,255],twoboxes1:[240,144,144,240,15,9,9,15],twoboxes2:[240,144,144,254,18,18,30,0],twoboxes3:[240,144,188,244,36,60,0,0],twoboxes4:[240,248,216,248,120,0,0,0],twoboxes5:[15,9,9,15,240,144,144,240],fourboxes:[255,153,153,255,255,153,153,255],chain1:[240,248,216,248,120,0,0,0],chain2:[240,144,188,244,47,61,9,15]},SPECIAL_CHARS:{0:[60,102,102,102,102,102,102,60],1:[24,56,120,24,24,24,24,24],2:[60,102,6,12,24,48,96,126],3:[60,102,6,28,6,6,102,60],4:[14,30,54,102,102,126,6,6],5:[126,96,96,124,6,6,102,60],6:[60,102,96,124,102,102,102,60],7:[126,126,6,12,24,24,24,24],8:[60,102,102,60,102,102,102,60],9:[60,102,102,62,6,6,102,60],10:[94,82,82,82,82,94,0,255],11:[36,36,36,36,36,36,0,255],12:[94,66,68,72,80,94,0,255],13:[94,66,78,66,66,94,0,255],14:[82,82,94,66,66,66,0,255],15:[94,80,94,66,66,94,0,255],16:[94,80,94,82,82,94,0,255],17:[94,66,68,72,72,72,0,255],18:[94,82,94,82,82,94,0,255],19:[94,82,94,66,66,94,0,255]},DIGIT_CHARS:{0:126,1:48,2:109,3:121,4:51,5:91,6:95,7:112,8:127,9:123," ":0,".":128,":":255,"!":176,A:119,a:125,B:127,b:31,C:78,c:13,D:126,d:61,E:79,e:111,F:71,f:71,G:94,g:123,H:55,h:23,I:48,i:16,J:60,j:56,K:55,k:23,L:14,l:6,M:85,m:85,N:21,n:21,O:126,o:29,P:103,p:103,Q:115,q:115,R:119,r:5,S:91,s:91,T:70,t:15,U:62,u:28,V:39,v:35,W:63,w:43,X:37,x:37,Y:59,y:51,Z:109,z:109}}},2329:(e,t,n)=>{var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=n(683),a=n(1914),l=n(1743),s=n(740),u=s.constrain,c=s.map,d=s.scale,f=o.Pins,p=new Map,h={PCA9685:{initialize:{value:function(e){var t=e.address,n=e.pwmRange,r=e.frequency,i=e.pin,o=p.get(this);this.address=t||64,this.pwmRange=n||[0,4095],this.frequency=r||200,o.expander=l.get({address:this.address,controller:this.controller,bus:this.bus,pwmRange:this.pwmRange,frequency:this.frequency}),this.pin=o.expander.normalize(i),o.mode=this.io.MODES.PWM}},update:{writable:!0,value:function(e){var t=p.get(this),n=void 0!==e?e:t.value,r=t.isAnode?255-o.constrain(n,0,255):n;this.write(r)}},write:{writable:!0,value:function(e){p.get(this).expander.analogWrite(this.pin,e)}}},DEFAULT:{initialize:{value:function(e,t){var n,r=e.pin,i=p.get(this),o=f.isFirmata(this);o&&"string"==typeof t&&t.length>1&&"A"===t[0]&&(t=this.io.analogPins[+t.slice(1)]),n=this.io.defaultLed||13,t=+t,o&&this.io.analogPins.includes(t)?(this.pin=t,i.mode=this.io.MODES.OUTPUT):(this.pin=void 0===r?n:r,i.mode=this.io.MODES[this.board.pins.isPwm(this.pin)?"PWM":"OUTPUT"]),this.io.pinMode(this.pin,i.mode)}},update:{writable:!0,value:function(e){var t=p.get(this),n=void 0!==e?e:t.value,r=t.isAnode?255-o.constrain(n,0,255):n;r=c(r,0,255,0,this.board.RESOLUTION.PWM),r!==this.io.LOW&&r!==this.io.HIGH&&this.mode!==this.io.MODES.PWM&&o.Pins.Error({pin:this.pin,type:"PWM",via:"Led"}),t.mode===this.io.MODES.OUTPUT&&(r=n),this.write(r)}},write:{writable:!0,value:function(e){var t=p.get(this);t.mode===this.io.MODES.OUTPUT&&this.io.digitalWrite(this.pin,e),t.mode===this.io.MODES.PWM&&this.io.analogWrite(this.pin,e)}}}},g=function(e,t){"use strict";function n(e){var t="object"===i(e)?e.pin:e;o.Component.call(this,e=o.Options(e)),o.Controller.call(this,h,e);var n={isAnode:e.isAnode,isOn:!1,isRunning:!1,value:null,direction:1,mode:null,intensity:0,interval:null};p.set(this,n),Object.defineProperties(this,{value:{get:function(){return n.value}},mode:{get:function(){return n.mode}},isOn:{get:function(){return!!n.value}},isRunning:{get:function(){return n.isRunning}},animation:{get:function(){return n.animation}}}),"function"==typeof this.initialize&&this.initialize(e,t)}var r=n.prototype;return r.on=function(){var e=p.get(this);return e.mode===this.io.MODES.OUTPUT&&(e.value=this.io.HIGH),e.mode===this.io.MODES.PWM&&(null===e.value&&(e.value=255),e.interval||(e.value=255),0===e.value&&(e.value=255)),this.update(),this},r.off=function(){return p.get(this).value=0,this.update(),this},r.toggle=function(){return this[this.isOn?"off":"on"]()},r.brightness=function(e){return p.get(this).value=e,this.update(),this},r.intensity=function(e){var t=p.get(this);return 0===arguments.length?t.intensity:(t.intensity=u(e,0,100),this.brightness(d(t.intensity,0,100,0,255)))},r[e]=function(e){var t=p.get(this);return null===e[0]&&(e[0]={value:t.value||0}),e.map((function(e){return null!==e&&("number"==typeof e?e={value:e}:("number"==typeof e.brightness&&(e.value=e.brightness,delete e.brightness),"number"==typeof e.intensity&&(e.value=d(e.intensity,0,100,0,255),delete e.intensity)),e.easing||(e.easing="linear")),e}))},r[t]=function(e){return p.get(this).value=e[0],this.update()},r.pulse=function(e,t){var n=p.get(this);this.stop();var r={duration:"number"==typeof e?e:1e3,keyFrames:[0,255],metronomic:!0,loop:!0,easing:"inOutSine",onloop:function(){"function"==typeof t&&t()}};return"object"===i(e)&&Object.assign(r,e),"function"==typeof e&&(t=e),n.isRunning=!0,n.animation=n.animation||new a(this),n.animation.enqueue(r),this},r.fade=function(e,t,n){var r=p.get(this);this.stop();var o={duration:"number"==typeof t?t:1e3,keyFrames:[null,"number"==typeof e?e:255],easing:"outSine",oncomplete:function(){r.isRunning=!1,"function"==typeof n&&n()}};return"object"===i(e)&&Object.assign(o,e),"function"==typeof e&&(n=e),"object"===i(t)&&Object.assign(o,t),"function"==typeof t&&(n=t),r.isRunning=!0,r.animation=r.animation||new a(this),r.animation.enqueue(o),this},r.fadeIn=function(e,t){return this.fade(255,e||1e3,t)},r.fadeOut=function(e,t){return this.fade(0,e||1e3,t)},r.blink=function(e,t){var n=this,r=p.get(this);return this.stop(),"function"==typeof e&&(t=e,e=null),r.isRunning=!0,r.interval=setInterval((function(){n.toggle(),"function"==typeof t&&t()}),e||100),this},r.stop=function(){var e=p.get(this);return e.interval&&clearInterval(e.interval),e.animation&&e.animation.stop(),e.interval=null,e.isRunning=!1,this},n}(a.normalize,a.render);g.prototype.strobe=g.prototype.blink,r.env.IS_TEST_MODE&&(g.Controllers=h,g.purge=function(){p.clear()}),e.exports=g},2150:(e,t,n)=>{var r=n(107),i=n(683),o=n(2566),a=new Map,l=function(){"use strict";function e(t){i.Component.call(this,t=i.Options(t)),i.Controller.call(this,u,t),this.digitOrder=1,this.isMatrix||(this.colon=t.colon||!1);var n=t.devices||(t.addresses?t.addresses.length:1);this.memory=Array(64).fill(0),t.dims=t.dims||e.MATRIX_DIMENSIONS["8x8"],"string"==typeof t.dims&&(t.dims=e.MATRIX_DIMENSIONS[t.dims]),Array.isArray(t.dims)&&(t.dims={rows:t.dims[0],columns:t.dims[1]});var r={devices:n,digits:t.digits||8,isMatrix:!!t.isMatrix,isBicolor:!!t.isBicolor,rows:t.dims.rows,columns:t.dims.columns};if(8!==r.columns&&16!==r.columns||8!==r.rows&&16!==r.rows||r.columns+r.rows===32)throw new Error("Invalid matrix dimensions specified: must be 8x8, 16x8 or 8x16");Object.defineProperties(this,{devices:{get:function(){return r.devices}},digits:{get:function(){return r.digits}},isMatrix:{get:function(){return r.isMatrix}},isBicolor:{get:function(){return r.isBicolor}},rows:{get:function(){return r.rows}},columns:{get:function(){return r.columns}}}),a.set(this,r),this.initialize(t)}var t=e.prototype;return t.each=function(e){for(var t=0;t<this.devices;t++)e.call(this,t)},t.on=function(t){return void 0===t?this.each((function(e){this.on(e)})):this.send(t,this.OP.SHUTDOWN||e.OP.SHUTDOWN,1),this},t.off=function(t){return void 0===t?this.each((function(e){this.off(e)})):this.send(t,this.OP.SHUTDOWN||e.OP.SHUTDOWN,0),this},t.digit=function(t,n,r){var i,o,a,l,s,u=!1;return arguments.length<3?(i=Array.from(arguments),this.each((function(e){this.digit.apply(this,(i.unshift(e),i))})),this):this.isMatrix?(this.draw.apply(this,arguments),this):(o=t*this.digits,l=String(r),a=n=Number(n),-1===this.digitOrder&&(a=this.digits-a-1),2===l.length&&"."===l[1]&&(u=!0,l=l[0]),(s=e.DIGIT_CHARS[l])||(s=Math.abs(Number(l))),u&&(s|=e.DIGIT_CHARS["."]),this.memory[o+a]=s,this.sendDigit(t,a,s),this)},t.print=function(e,t){var n;if(t=t||{device:0},this.isMatrix)throw new Error("Led.Matrix does not yet support the print method");return"string"!=typeof e&&(e=String(e)),n=e.match(/([0-9A-Za-z][.]|[0-9A-Za-z:]|[\s])/g),this.colon&&n.length>2&&":"!==n[2]&&" "!==n[2]&&n.splice(2,0," "),(n||[]).forEach((function(e,n){this.digit(t.device,n,e)}),this),this},t.brightness=function(t,n){return 1===arguments.length?(n=t,this.each((function(e){this.brightness(e,n)}))):this.send(t,this.OP.BRIGHTNESS||e.OP.BRIGHTNESS,i.map(n,0,100,0,15)),this},t.column=function(e,t,n){var r;if(!this.isMatrix)throw new Error("The `column` method is only supported for Matrix devices");if(2===arguments.length)n=t,t=e,this.each((function(e){this.column(e,t,n)}));else for(var i=0;i<this.rows;i++)r=n>>this.rows-1-i,r&=1,this.led(e,i,t,r);return this},t.draw=function(e,t){var n;if(1===arguments.length)t=e,this.each((function(e){this.draw(e,t)}));else if(this.isMatrix){if(void 0!==(n=Array.isArray(t)?t:o.MATRIX_CHARS[t])){if(n.length!==this.rows&&n.length!==this.columns)throw new Error("Invalid character: ".concat(n));for(var r=n.length,i=0;i<this.rows-r;i++)n.push(0);n.forEach((function(t,n){this.row(e,n,t)}),this)}}else this.digit.apply(this,arguments);return this},t.device=function(t){var n=this,r={};return Object.keys(e.prototype).forEach((function(e){r[e]=n[e].bind(n,t)})),Object.getOwnPropertyNames(this).forEach((function(e){n[e]&&"function"==typeof n[e]&&(r[e]=n[e].bind(n,t))})),r},e}(),s=new Set([112,113,114,115,116,117,118,119]),u={HT16K33:{OP:{value:{SHUTDOWN:32,BRIGHTNESS:224,BLINK:128}},initialize:{writable:!0,value:function(e){var t=a.get(this),n=Array.from(s);if(0===n.length)throw new Error("There are no available HT16K33 controller addresses");this.addresses=e.addresses||(e.address?[e.address]:null),null===this.addresses&&(this.addresses=n.slice(0,t.devices)),this.addresses.forEach((function(e){if(!s.has(e))throw new Error("Invalid HT16K33 controller address: ".concat(e));s.delete(e)})),this.rotation=e.rotation||1,16!==this.columns||e.rotation||(this.rotation=0),this.buffer=Array(this.rows).fill([]),this.isMatrix||(this.colon=!0),e.addresses=this.addresses,this.io.i2cConfig(e),this.each((function(e){this.on(e),this.blink(e,!1),this.brightness(e,100),this.clear(e)}))}},blink:{writable:!0,value:function(e,t){if(1===arguments.length)t=e,this.each((function(e){this.blink(e,t)}));else{var n=null;switch(t){case!1:n=0;break;case"slow":n=6;break;case"normal":n=4;break;case"fast":n=2}if(null==n)return;this.send(e,1|this.OP.BLINK,n)}return this}},clear:{writable:!0,value:function(e){var t;if(void 0===e)this.each((function(e){this.clear(e)}));else{t=e*this.columns;for(var n=0;n<this.rows;n++)this.memory[t+n]=0,this.buffer[e][n]=0;this.writeDisplay(e)}return this}},led:{writable:!0,value:function(e,t,n,r){if(3===arguments.length)return r=n,n=t,t=e,this.each((function(e){this.led(e,t,n,r)})),this;var i,o=n,a=t,s=this.rows,u=this.columns;if(a<0||a>=s)return this;if(o<0||o>=u)return this;switch(this.rotation){case 1:u=this.rows,s=this.columns,i=o,o=a,a=i,o=u-o-1;break;case 2:o=u-o-1,a=s-a-1;break;case 3:u=this.rows,i=o,o=a,a=(s=this.columns)-(a=i)-1}return this.isBicolor?r===l.COLORS.GREEN?(this.buffer[e][a]|=1<<o,this.buffer[e][a]&=~(1<<o+8)):r===l.COLORS.YELLOW?this.buffer[e][a]|=1<<o+8|1<<o:r===l.COLORS.RED?(this.buffer[e][a]|=1<<o+8,this.buffer[e][a]&=~(1<<o)):this.buffer[e][a]&=~(1<<o)&~(1<<o+8):(8===u&&8===s&&(o+=u-1,o%=u),r?this.buffer[e][a]|=1<<o:this.buffer[e][a]&=~(1<<o)),this.writeDisplay(e),this}},writeDisplay:{writable:!0,value:function(e){for(var t=[0],n=0;n<8;n++)t.push(255&this.buffer[e][n]),t.push(this.buffer[e][n]>>8);this.io.i2cWrite(this.addresses[e],t)}},row:{writable:!0,value:function(e,t,n){if(!this.isMatrix)throw new Error("The `row` method is only supported for Matrix devices");if("number"==typeof n&&(n="0000000000000000".concat(parseInt(n,10).toString(2)).substr(0-this.columns,this.columns)),2===arguments.length)n=t,t=e,this.each((function(e){this.row(e,t,n)}));else for(var r=0;r<this.columns;r++)this.led(e,t,r,parseInt(n[r],10));return this}},scanLimit:{writable:!0,value:function(){throw new Error("The `scanLimit` method is not implemented for HT16K33 devices")}},send:{writable:!0,value:function(e,t,n){if(3!==arguments.length)throw new Error("The `send` method expects three arguments: device, opcode, data");return this.io.i2cWrite(this.addresses[e],[t|n]),this}},sendDigit:{writable:!0,value:function(e,t,n){return n>0&&n<255&&(n=(n="00000000".concat(n.toString(2)).slice(-8).split("")).shift()+n.reverse().join(""),n=parseInt(n,2)),this.buffer[e][t]=n,this.writeDisplay(e),this}}},DEFAULT:{OP:{value:{}},initialize:{writable:!0,value:function(e){var t=e.pins;this.pins={data:t.data,clock:t.clock,cs:t.cs||t.latch},["data","clock","cs"].forEach((function(e){this.io.pinMode(this.pins[e],this.io.MODES.OUTPUT)}),this),this.digitOrder=-1,this.digitOrder=-1;for(var n=0;n<this.devices;n++)this.isMatrix&&this.send(n,l.OP.DECODING,0),this.send(n,l.OP.BRIGHTNESS,3),this.send(n,l.OP.SCANLIMIT,7),this.send(n,l.OP.SHUTDOWN,1),this.send(n,l.OP.DISPLAYTEST,0),this.clear(n),this.on(n);return this}},clear:{writable:!0,value:function(e){var t;if(void 0===e)this.each((function(e){this.clear(e)}));else{t=8*e;for(var n=0;n<8;n++)this.memory[t+n]=0,this.send(e,n+1,0)}return this}},sendDigit:{writable:!0,value:function(e,t,n){return this.send(e,t+1,n),this}},led:{writable:!0,value:function(e,t,n,r){var i,o;return 3===arguments.length?(r=n,n=t,t=e,this.each((function(e){this.led(e,t,n,r)}))):(i=e*this.columns,o=128>>n,r?this.memory[i+t]=this.memory[i+t]|o:(o=~o,this.memory[i+t]=this.memory[i+t]&o),this.send(e,t+1,this.memory[i+t])),this}},row:{writable:!0,value:function(e,t,n){if(!this.isMatrix)throw new Error("The `row` method is only supported for Matrix devices");var r;return"string"==typeof n&&(n=parseInt(n,2)),2===arguments.length?(n=t,t=e,this.each((function(e){this.row(e,t,n)}))):(r=e*this.columns,this.memory[r+t]=n,this.send(e,t+1,this.memory[r+t])),this}},scanLimit:{writable:!0,value:function(e,t){return 1===arguments.length?(t=e,this.each((function(e){this.scanLimit(e,t)}))):this.send(e,l.OP.SCANLIMIT,t),this}},send:{writable:!0,value:function(e,t,n){if(3!==arguments.length)throw new Error("`send` expects three arguments: device, opcode, data");var r=2*e,i=2*this.devices,o=[];if(e<this.devices){for(var a=0;a<i;a++)o[a]=0;o[r+1]=t,o[r]=n,this.io.digitalWrite(this.pins.cs,this.io.LOW);for(var l=i;l>0;l--)this.board.shiftOut(this.pins.data,this.pins.clock,o[l-1]);this.io.digitalWrite(this.pins.cs,this.io.HIGH)}return this}}}};l.DEFAULTS={DECODING:0,BRIGHTNESS:3,SCANLIMIT:7,SHUTDOWN:1,DISPLAYTEST:0},Object.freeze(l.DEFAULTS),l.OP={},l.OP.NOOP=0,l.OP.DIGIT0=1,l.OP.DIGIT1=2,l.OP.DIGIT2=3,l.OP.DIGIT3=4,l.OP.DIGIT4=5,l.OP.DIGIT5=6,l.OP.DIGIT6=7,l.OP.DIGIT7=8,l.OP.DECODEMODE=9,l.OP.INTENSITY=10,l.OP.SCANLIMIT=11,l.OP.SHUTDOWN=12,l.OP.DISPLAYTEST=15,l.OP.BRIGHTNESS=l.OP.INTENSITY,l.OP.DECODING=l.OP.DECODEMODE,l.OP.DISPLAY=l.OP.DISPLAYTEST,l.OP.POWERDOWN=l.OP.SHUTDOWN,Object.freeze(l.OP),l.COLORS={RED:1,YELLOW:2,GREEN:3},l.DIRECTIONS={UP:1,RIGHT:2,DOWN:3,LEFT:4,1:"UP",2:"RIGHT",3:"DOWN",4:"LEFT"},Object.freeze(l.DIRECTIONS);for(var c=[[224,160,160,160,160,160,224,0],[64,192,64,64,64,64,224,0],[224,32,32,224,128,128,224,0],[224,32,32,96,32,32,224,0],[32,96,160,224,32,32,32,0],[224,128,128,224,32,32,224,0],[224,128,128,224,160,160,224,0],[224,32,32,32,32,32,32,0],[224,160,160,64,160,160,224,0],[224,160,160,224,32,32,224,0]],d="",f=0;f<10;f++)for(var p=0;p<10;p++){d="".concat(f).concat(p),o.MATRIX_CHARS[d]=[];for(var h=0;h<8;h++)o.MATRIX_CHARS[d][h]=c[f][h]|c[p][h]>>>4}l.MATRIX_DIMENSIONS={"16x8":{rows:16,columns:8},"8x16":{rows:8,columns:16},"8x8":{rows:8,columns:8}},l.MATRIX_CHARS=o.MATRIX_CHARS,l.DIGIT_CHARS=o.DIGIT_CHARS,r.env.IS_TEST_MODE&&(l.Controllers=u,l.purge=function(){s=new Set([112,113,114,115,116,117,118,119]),a.clear()}),e.exports=l},2563:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(1914),s=n(2329),u=n(1105),c=function(e,t,n){"use strict";function r(t){return e.call(this,t)||this}var o,u;u=e,(o=r).prototype=Object.create(u.prototype),o.prototype.constructor=o,a(o,u);var c,d,f,p=r.prototype;return p[t]=function(e){var t=this;return e.map((function(e,n){return null!==e?t[n][l.normalize](e):e}))},p[n]=function(e){return this.each((function(t,n){return t[l.render]([e[n]])}))},c=r,(d=[{key:"type",get:function(){return s}}])&&i(c.prototype,d),f&&i(c,f),Object.defineProperty(c,"prototype",{writable:!1}),c}(u,l.normalize,l.render);u.installMethodForwarding(c.prototype,s.prototype,{skip:[l.normalize,l.render]}),u.installCallbackReconciliation(c.prototype,["pulse","fade","fadeIn","fadeOut","blink"]),s.Collection=c,e.exports=c},2565:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(2150),s=function(e){"use strict";function t(t){return t.isMatrix=!0,e.call(this,t)||this}var n,r,o,s,u;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,a(n,r),o=t,u=[{key:"CHARS",get:function(){return l.MATRIX_CHARS}}],(s=null)&&i(o.prototype,s),u&&i(o,u),Object.defineProperty(o,"prototype",{writable:!1}),o}(l);e.exports=s},2149:(e,t,n)=>{var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=n(683),a=n(1914),l=n(1743),s=n(2560),u=n(740),c=u.constrain,d=u.map,f=new Map,p={DEFAULT:{initialize:{value:function(e){var t=this,n=e.pins,r=e.debug;h.colors.forEach((function(e,i){var a=n[i];r&&!t.board.pins.isPwm(a)&&o.Pins.Error({pin:a,type:"PWM",via:"Led.RGB"}),t.io.pinMode(a,t.io.MODES.PWM),t.pins[i]=a}))}},write:{writable:!0,value:function(e){var t=this,n=f.get(this);h.colors.forEach((function(r,i){var o=t.pins[i],a=e[r];n.isAnode&&(a=255-c(a,0,255)),a=d(a,0,255,0,t.board.RESOLUTION.PWM),t.io.analogWrite(o,a)}))}}},PCA9685:{initialize:{value:function(e){var t=this,n=e.address,r=e.pwmRange,i=e.frequency,o=e.pins,a=f.get(this);this.address=n||64,this.pwmRange=r||[0,4095],this.frequency=i||200,a.expander=l.get({address:this.address,controller:this.controller,bus:this.bus,pwmRange:this.pwmRange,frequency:this.frequency}),h.colors.forEach((function(e,n){t.pins[n]=a.expander.normalize(o[n]),a.expander.analogWrite(t.pins[n],0)}))}},write:{writable:!0,value:function(e){var t=this,n=f.get(this);h.colors.forEach((function(r,i){var o=t.pins[i],a=e[r];n.isAnode&&(a=255-c(a,0,255)),n.expander.analogWrite(o,a)}))}}},BLINKM:{REGISTER:{value:{GO_TO_RGB_COLOR_NOW:110,STOP_SCRIPT:111}},initialize:{value:function(e){this.address=e.address||9,e.address=this.address,this.board.Drivers[this.address]||(this.io.i2cConfig(e),this.board.Drivers[this.address]={initialized:!1},this.io.i2cWrite(this.address,[this.REGISTER.STOP_SCRIPT]),this.board.Drivers[this.address].initialized=!0)}},write:{writable:!0,value:function(e){var t=e.red,n=e.green,r=e.blue;this.io.i2cWrite(this.address,[this.REGISTER.GO_TO_RGB_COLOR_NOW,t,n,r])}}}};p.ESPLORA={initialize:{value:function(e){e.pins=[5,10,9],this.pins=[],p.DEFAULT.initialize.value.call(this,e)}},write:p.DEFAULT.write};var h=function(e,t){"use strict";function n(e){Array.isArray(e)?e={pins:e}:"object"!==i(e.pins)||Array.isArray(e.pins)||(e.pins=[e.pins.red,e.pins.green,e.pins.blue]),o.Component.call(this,e=o.Options(e)),o.Controller.call(this,p,e);var t={red:255,green:255,blue:255,intensity:100,isAnode:e.isAnode||!1,interval:null,isRunning:!1,values:{red:255,green:255,blue:255},prev:{red:255,green:255,blue:255}};f.set(this,t),Object.defineProperties(this,{isOn:{get:function(){return n.colors.some((function(e){return t[e]>0}))}},isRunning:{get:function(){return!!t.interval||t.isRunning}},isAnode:{get:function(){return t.isAnode}},values:{get:function(){return Object.assign({},t.values)}},update:{writable:!0,value:function(e){var t=f.get(this);e=e||this.color(),t.values=n.ToScaledRGB(t.intensity,e),this.write(t.values),Object.assign(t,e)}}}),this.initialize(e),this.off()}var r=n.prototype;return r.color=function(e,t,r){var i,o=f.get(this);if(0===arguments.length)return i=this.isOn?o:o.prev,n.colors.reduce((function(e,t){return e[t]=Math.round(i[t]),e}),{});var a=n.ToRGB(e,t,r);return n.colors.forEach((function(e){var t=a[e];if(null==t)throw new Error("Led.RGB.color: invalid color ([".concat([a.red,a.green,a.blue].join(","),"])"));t=c(t,0,255),a[e]=t})),this.update(a),o.prev=a,this},r.on=function(){var e=f.get(this);return this.isOn?e.isRunning&&(this.stop(),this.update(e.prev)):this.update(e.prev),this},r.off=function(){return this.isOn&&this.update({red:0,green:0,blue:0}),this},r.blink=function(e,t){var n=this,r=f.get(this);return this.stop(),"function"==typeof e&&(t=e,e=null),r.interval=setInterval((function(){n.toggle(),"function"==typeof t&&t()}),e||100),this},r.toggle=function(){return this[this.isOn?"off":"on"]()},r.pulse=function(e,t){var n=f.get(this),r=n.prev;this.stop();var o={duration:"number"==typeof e?e:1e3,keyFrames:[{color:r,intensity:0},{color:r,intensity:100}],metronomic:!0,loop:!0,easing:"inOutSine",onloop:function(){"function"==typeof t&&t()}};return"object"===i(e)&&Object.assign(o,e),"function"==typeof e&&(t=e),n.isRunning=!0,n.animation=n.animation||new a(this),n.animation.enqueue(o),this},r.stop=function(){var e=f.get(this);return e.interval&&clearInterval(e.interval),e.animation&&e.animation.stop(),e.interval=null,this},r.intensity=function(e){var t=f.get(this);return 0===arguments.length?t.intensity:(t.intensity=c(e,0,100),this.update(),this)},r[e]=function(e){var t=f.get(this);return null===e[0]&&(e[0]=t.values),e.reduce((function(e,r){var o=r,a={},l=null,s=t.intensity;if(null!==r){if("number"==typeof o)throw new Error("RGB LEDs expect a complete keyFrame object or hexadecimal string value");"string"==typeof o&&(l=o),Array.isArray(o)?l=o:"object"===i(o)&&(l=void 0!==o.color?o.color:o),"number"==typeof r.intensity&&(s=r.intensity,delete r.intensity),a.easing=r.easing||"linear",a.value=n.ToScaledRGB(s,n.ToRGB(l))}else a=r;return e.push(a),e}),[])},r[t]=function(e){var t=f.get(this);return t.value=e[0],this.update(t.value)},n}(a.normalize,a.render);function g(e){return"string"==typeof e&&e.endsWith("%")}h.colors=["red","green","blue"],h.prototype[a.keys]=h.colors,h.ToScaledRGB=function(e,t){var n=e/100;return h.colors.reduce((function(e,r){return e[r]=Math.round(t[r]*n),e}),{})},h.ToRGB=function(e,t,n){var r,o={},a=0;if(void 0!==e&&(a|=4),void 0!==t&&(a|=2),void 0!==n&&(a|=1),4==(4|a)){if(null==(r=e))throw new Error("Invalid color (".concat(r,")"));if(Array.isArray(r))o={red:r[0],green:r[1],blue:r[2]};else if("object"===i(r))o={red:r.red,green:r.green,blue:r.blue};else if("string"==typeof r)if(/^#?[0-9A-Fa-f]{6}$/.test(r))7===r.length&&"#"===r[0]&&(r=r.slice(1)),o={red:parseInt(r.slice(0,2),16),green:parseInt(r.slice(2,4),16),blue:parseInt(r.slice(4,6),16)};else{if(!/^rgb/.test(r))return h.ToRGB(s.keyword.rgb(r.toLowerCase()));var l=r.match(/^rgba?\(([^)]+)\)$/)[1].split(/[\s,]+/);g(l[0])&&l.forEach((function(e,t){t<=2&&(l[t]=Math.round(parseInt(e,10)/100*255))})),o={red:parseInt(l[0],10),green:parseInt(l[1],10),blue:parseInt(l[2],10)},l.length>3&&(g(l[3])&&(l[3]=parseInt(l[3],10)/100),o=h.ToScaledRGB(100*parseFloat(l[3]),o))}}else o={red:e,green:t,blue:n};return o},h.prototype.strobe=h.prototype.blink,r.env.IS_TEST_MODE&&(h.Controllers=p,h.purge=function(){f.clear()}),e.exports=h},2564:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(1914),s=n(1105),u=n(2149),c=function(e,t,n){"use strict";function r(t){return e.call(this,t)||this}var o,s;s=e,(o=r).prototype=Object.create(s.prototype),o.prototype.constructor=o,a(o,s);var c,d,f,p=r.prototype;return p[t]=function(e){var t=this;return e.map((function(e,n){return null!==e?t[n][l.normalize](e):e}))},p[n]=function(e){return this.each((function(t,n){return t[l.render]([e[n]])}))},c=r,(d=[{key:"type",get:function(){return u}}])&&i(c.prototype,d),f&&i(c,f),Object.defineProperty(c,"prototype",{writable:!1}),c}(s,l.normalize,l.render);s.installMethodForwarding(c.prototype,u.prototype,{skip:[l.normalize,l.render]}),s.installCallbackReconciliation(c.prototype,["blink"]),c.prototype[l.keys]=u.colors,e.exports=c},2568:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(1981),l=n(2072),s=n(740),u=s.uint16,c=s.toFixed,d=s.scale,f=new Map,p={DEFAULT:{initialize:{value:function(e,t){this.io.pinMode(this.pin,this.io.MODES.ANALOG),this.io.analogRead(this.pin,t)}},toIntensityLevel:{value:function(e){return c(d(e,0,1023,0,100)/100,2)}}},EVS_EV3:{initialize:{value:function(e,t){var n=f.get(this);e.mode&&(e.mode=e.mode.toUpperCase()),n.mode="REFLECTED"===e.mode?a.Type_EV3_LIGHT_REFLECTED:a.Type_EV3_LIGHT,n.shield=a.shieldPort(e.pin),n.ev3=new a(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,a.Type_EV3),n.ev3.write(n.shield,129+n.shield.offset,n.mode),n.ev3.read(n.shield,a.Light,a.Light_Bytes,(function(e){var n=e[0]|e[1]<<8;t(n)}))}},toIntensityLevel:{value:function(e){return c(e/100,2)}}},EVS_NXT:{initialize:{value:function(e,t){var n=f.get(this);e.mode&&(e.mode=e.mode.toUpperCase()),n.mode="REFLECTED"===e.mode?a.Type_NXT_LIGHT_REFLECTED:a.Type_NXT_LIGHT,n.shield=a.shieldPort(e.pin),n.ev3=new a(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,n.mode),n.ev3.read(n.shield,n.shield.analog,a.Analog_Bytes,(function(e){t(e[0]|e[1]<<8)}))}},toIntensityLevel:{value:function(e){return c(d(e,0,1023,100,0)/100,2)}}},TSL2561:{ADDRESSES:{value:[41,57,73]},REGISTER:{value:{CONTROL:0,TIMING:1,READ:44}},initialize:{value:function(e,t){var r=this,i=function(e){return 128|e},o=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e),this.io.i2cWriteReg(o,i(this.REGISTER.CONTROL),3);var a=[13,101,402],l=[15,120,450],s=[29975,4071,65536],c=16,d=0,f=a[d],p=0;Object.defineProperties(this,{gain:{get:function(){return c},set:function(e){if(0!==e&&16!==e)throw new RangeError("Invalid gain. Expected one of: 0, 16");c=e,this.io.i2cWriteReg(o,i(this.REGISTER.TIMING),d|c)}},integration:{get:function(){return f},set:function(e){if(-1===(d=a.indexOf(e)))throw new RangeError("Invalid integration. Expected one of: 13, 101, 402");f=e,this.io.i2cWriteReg(o,i(this.REGISTER.TIMING),d|c)}},lux:{get:function(){return p}}}),this.gain=c,this.integration=f;!function e(){setTimeout((function(){r.io.i2cReadOnce(o,i(r.REGISTER.READ),4,(function(n){var r=u(n[1],n[0]),i=u(n[3],n[2]),o=0,a=0,l=s[d];c||(l<<=4),i=i*l>>10;var f=0;(r=r*l>>10)&&(f=(i<<10)/r);var h=(f=Math.round(f))+1>>1;h>=0&&h<=64?(o=498,a=446):h<=128?(o=532,a=721):h<=192?(o=575,a=891):h<=256?(o=624,a=1022):h<=312?(o=367,a=508):h<=410?(o=210,a=251):h<=666?(o=24,a=18):h>666&&(o=0,a=0);var g=r*o-i*a;g<0&&(g=0),t(p=(g+=8192)>>>14),e()}))}),l[d])}()}},toLux:{value:function(e){return e}},toIntensityLevel:{value:function(e){return c(d(e,0,17e3,0,100)/100,2)}}},BH1750:{ADDRESSES:{value:[35,92]},initialize:{value:function(e,t){var r=this,i=n(1094).Drivers.addressResolver(this,e),o=e.mode||16;this.io.i2cConfig(e),this.io.i2cWrite(i,o);!function e(){setTimeout((function(){r.io.i2cReadOnce(i,2,(function(n){t(u(n[0],n[1])),e()}))}),120)}()}},toLux:{value:function(e){return Math.round(e/1.2)}},toIntensityLevel:{value:function(e){return c(d(e/1.2,0,65535,0,100)/100,2)}}}};p.ALSPT19=p["ALS-PT19"]=p.DEFAULT;var h=function(e){"use strict";function t(t){var n;n=e.call(this)||this,o.Component.call(n,t=o.Options(t)),o.Controller.call(n,p,t);var r=0,i=0,a=t.freq,l=void 0===a?25:a;f.set(n,{}),n.toIntensityLevel||(n.toIntensityLevel=t.toIntensityLevel||function(e){return e}),n.toLux||(n.toLux=t.toLux||function(e){return e}),Object.defineProperties(n,{value:{get:function(){return r}},level:{get:function(){return this.toIntensityLevel(r)}}}),"function"==typeof n.initialize&&n.initialize(t,(function(e){return r=e})),void 0===n.lux&&Object.defineProperty(n,"lux",{get:function(){return this.toLux(r)}});var s={level:0,lux:0};return setInterval((function(){s.level=n.level,s.lux=n.lux,n.emit("data",s),r!==i&&(i=r,n.emit("change",s))}),l),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(l);r.env.IS_TEST_MODE&&(h.Controllers=p,h.purge=function(){f.clear()}),e.exports=h},1105:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(453),a=n(769),l=function(){"use strict";function e(e){var t=this.type,n=[];if(this.length=0,Array.isArray(e))n=e;else if(Array.isArray(e.pins)){var r=Object.keys(e).filter((function(e){return"pins"!==e}));n=e.pins.map((function(t){var n={};return Array.isArray(t)?n.pins=t:n.pin=t,r.reduce((function(t,n){return t[n]=e[n],t}),n)}))}if(n.length)for(;n.length;){var i=n.shift();"function"==typeof t&&(i instanceof t||i instanceof this.constructor||(i=new t(i))),this.add(i)}}return e.prototype.slice=function(){return new this.constructor([].slice.apply(this,arguments))},e}();l.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],l.prototype.add=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this.length;1===t.length&&t[0]instanceof this.constructor&&(t=t[0]);for(var i=0;i<t.length;i++)this.type?(t[i]instanceof this.type||t[i]instanceof this.constructor)&&(this[r++]=t[i]):this[r++]=t[i];return this.length=r},l.prototype.each=function(e){for(var t=this.length,n=0;n<t;n++)e.call(this[n],this[n],n);return this},l.prototype.forEach=function(){[].forEach.apply(this,arguments)},l.prototype.includes=function(){return[].includes.apply(this,arguments)},l.prototype.indexOf=function(){return[].indexOf.apply(this,arguments)},l.prototype.map=function(){return[].map.apply(this,arguments)},l.prototype.byId=function(e){return[].find.call(this,(function(t){return void 0!==t.id&&t.id===e}))},l.installMethodForwarding=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skip,r=void 0===n?[]:n,i="apply|arguments|bind|call|caller|constructor|domain|length|name|prototype|toString".split("|");return Object.getOwnPropertyNames(t).reduce((function(e,t){return r.includes(t)||i.includes(t)||(e[t]=function(){for(var e=this.length,n=0;n<e;n++){var r;(r=this[n])[t].apply(r,arguments)}return this}),e}),e)};var s=function(){};l.installCallbackReconciliation=function(e,t){t.forEach((function(t){e[t]=function(e,n){var r=this,i=this.length,o=[];"function"==typeof e&&(n=e,e=1e3),"function"!=typeof n&&(n=s);for(var a=function(n){o.push(new Promise((function(i){return r[n][t](e,(function(){return i()}))})))},l=0;l<i;l++)a(l);return Promise.all(o).then(n),this}}))},l.Emitter=function(e){"use strict";function t(t){var n;n=e.call(this,t)||this;var i=null,o=5;return Array.isArray(t)||"object"!==r(t)||null===t||(o=t.freq||t.period||o,t.frequency&&(o=1/t.frequency*1e3)),Object.defineProperties(n,{period:{get:function(){return o},set:function(e){var t=this;o!==e&&(o=e),i&&clearInterval(i),i=setInterval((function(){t.emit("data",t)}),o)}}}),n.period=o,n.on("newListener",(function(e){"change"!==e&&"data"!==e&&n.forEach((function(t){t.on(e,(function(r){return n.emit(e,t,r)}))}))})),n}var n,o;return o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,i(n,o),t.prototype.add=function(){for(var t,n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];i.length&&((t=e.prototype.add).call.apply(t,[this].concat(i)),i.forEach((function(e){e&&e.on("change",(function(){return n.emit("change",e)}))})));return this.length},t}(l),Object.assign(l.Emitter.prototype,o.prototype,a.prototype),l.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],e.exports=l},769:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){var i;return i=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==r(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var s=n(453),u=new WeakMap,c=function(e){"use strict";function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,l(n,r);var i=t.prototype;return i.pause=function(){u.set(this,o({},this._events)),this._events={__proto__:null}},i.resume=function(){var e=u.get(this);e&&(this._events=o({__proto__:null},e),u.set(this,null))},t}(s);Object.assign(c.prototype,s.prototype),e.exports=c},2072:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var i=function(e){"use strict";function t(){return e.call(this)||this}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),t.prototype.within=function(e,t,n){var r=this;if("number"==typeof e&&(e=[0,e]),!Array.isArray(e))throw new Error("within expected a range array");return"function"==typeof t&&(n=t,t="value"),void 0===this[t]||this.on("data",(function(){var i=r[t];i>=e[0]&&i<=e[1]&&n.call(r,null,i)})),this},t}(n(769));e.exports=i},2570:(e,t,n)=>{var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=n(683),c=n(1105),d=n(769),f=new Map;var p={value:function(e,t){var n=this,r=e.pin,i=f.get(this);this.io.pinMode(r,this.io.MODES.ANALOG),setTimeout((function(){i.isCalibrated=!0,n.emit("calibrated")}),10),this.io.analogRead(r,t)}},h={PIR:{initialize:{value:function(e,t){var n=this,r=f.get(this),i=void 0!==e.calibrationDelay?e.calibrationDelay:2e3;this.io.pinMode(e.pin,this.io.MODES.INPUT),setTimeout((function(){r.isCalibrated=!0,n.emit("calibrated")}),i),this.io.digitalRead(e.pin,t)}},toBoolean:{value:function(e){return!!e}}},GP2Y0D805Z0F:{ADDRESSES:{value:[38]},initialize:{value:function(e,t){var r=this,i=n(1094).Drivers.addressResolver(this,e),o=f.get(this);setTimeout((function(){o.isCalibrated=!0,r.emit("calibrated")}),10),this.io.i2cConfig(e),this.io.i2cWriteReg(i,3,254),this.io.i2cWrite(i,[0]),this.io.i2cRead(i,1,(function(e){t(2&e[0])}))}},toBoolean:{value:function(e){return 0===e}}},GP2Y0D810Z0F:{initialize:p,toBoolean:{value:function(e){return!(e>>9)}}},GP2Y0A60SZLF:{initialize:p,toBoolean:{value:function(e){return e>>9==1}}}};h.GP2Y0D815Z0F=h.GP2Y0D810Z0F,h["HC-SR501"]=h.PIR,h.HCSR501=h.PIR,h["0D805"]=h.GP2Y0D805Z0F,h[805]=h.GP2Y0D805Z0F,h["0D810"]=h.GP2Y0D810Z0F,h[810]=h.GP2Y0D810Z0F,h["0D815"]=h.GP2Y0D815Z0F,h[815]=h.GP2Y0D815Z0F,h["0A60SZLF"]=h.GP2Y0A60SZLF,h["60SZLF"]=h.GP2Y0A60SZLF,h.DEFAULT=h.PIR;var g=function(e){"use strict";function t(t){var n;n=e.call(this)||this,u.Component.call(n,t=u.Options(t)),u.Controller.call(n,h,t);var r=!1,i=t.freq||25,o={value:!1,isCalibrated:!1};return f.set(n,o),Object.defineProperties(n,{detectedMotion:{get:function(){return this.toBoolean(o.value)}},isCalibrated:{get:function(){return o.isCalibrated}}}),"function"==typeof n.initialize&&n.initialize(t,(function(e){return o.value=e})),setInterval((function(){var e=!1,t={timestamp:Date.now(),detectedMotion:n.detectedMotion,isCalibrated:o.isCalibrated};o.isCalibrated&&n.detectedMotion&&!r&&n.emit("motionstart",t),o.isCalibrated&&!n.detectedMotion&&r&&n.emit("motionend",t),r!==n.detectedMotion&&(e=!0),n.emit("data",t),e&&n.emit("change",t),r=n.detectedMotion}),i),n}return l(t,e),t}(d);g.Collection=function(e){"use strict";function t(t){return e.call(this,t)||this}return l(t,e),n=t,(r=[{key:"type",get:function(){return g}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(c.Emitter),c.installMethodForwarding(g.Collection.prototype,g.prototype),r.env.IS_TEST_MODE&&(g.Controllers=h,g.purge=function(){f.clear()}),e.exports=g},2571:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=n(683),c=n(1105),d=n(769),f=n(1981),p=n(1743),h=n(740),g=n(2151),m=n(2330),b=new Map,y=new Map;function v(e){return["clock","data","latch"].reduce((function(t,n){return"".concat(t,".").concat(e[n])}),"")}function _(e,t,n){return n?e|=1<<t:e&=~(1<<t)}var E={DEFAULT:{},ShiftRegister:{initialize:{value:function(e){var t=e.register,n=e.bits,r=v(t);if(!n||void 0===n.a||void 0===n.b)throw new Error("ShiftRegister Motors MUST contain HBRIDGE bits {a, b}");b.get(this).bits=n,y.has(this.board)||y.set(this.board,{}),y.get(this.board)[r]||(y.get(this.board)[r]=new m({board:this.board,pins:t})),this.io.pinMode(this.pins.pwm,this.io.MODES.PWM)}},dir:{value:function(e){var t=this;return this.stop(),function(e,t){var n=v(e.settings.register),r=y.get(e.board)[n],i=r.value,o=b.get(e).bits,a="reverse"!==t;i=_(i,o.a,a),i=_(i,o.b,!a),r.value!==i&&r.send(i)}(this,e.name),this.direction=e,r.nextTick((function(){return t.emit(e.name)})),this}}},PCA9685:{initialize:{value:function(e){var t=this,n=e.address,r=e.pwmRange,i=e.frequency,o=b.get(this);this.address=n||64,this.pwmRange=r||[0,4080],this.frequency=i||50,o.expander=p.get({address:this.address,controller:this.controller,bus:this.bus,pwmRange:this.pwmRange,frequency:this.frequency}),Object.keys(this.pins).forEach((function(e){t.pins[e]=o.expander.normalize(t.pins[e])}))}},setPWM:{writable:!0,value:function(e,t){b.get(this).expander.analogWrite(e,t)}},setPin:{writable:!0,value:function(e,t){b.get(this).expander.digitalWrite(e,t)}}},PCA9685_Hybrid:{initialize:{value:function(e){var t=e.address,n=e.pwmRange,r=e.frequency,i=b.get(this);this.address=t||64,this.pwmRange=n||[0,4080],this.frequency=r||50,i.expander=p.get({address:this.address,controller:"PCA9685",bus:this.bus,pwmRange:this.pwmRange,frequency:this.frequency}),this.pins.pwm=i.expander.normalize(this.pins.pwm)}},setPWM:{writable:!0,value:function(e,t){b.get(this).expander.analogWrite(e,t)}}},EVS_EV3:{initialize:{value:function(e){var t=b.get(this);t.shield=f.shieldPort(e.pin),t.ev3=new f(Object.assign(e,{io:this.io})),this.settings.pins={pwm:e.pin,dir:e.pin}}},setPWM:{value:function(e,t){var n=b.get(this),r=n.shield.motor===f.M1?f.SPEED_M1:f.SPEED_M2,i=0|h.scale(t,0,255,0,100);if(0===t)n.ev3.write(n.shield,f.COMMAND,f.Motor_Reset);else{this.direction.value||(i=-i);var o=[i,0,0,f.CONTROL_SPEED|f.CONTROL_GO];n.ev3.write(n.shield,r,o)}}},setPin:{value:function(e,t){this.setPWM(this.pin,t)}},validatePins:{value:function(){if(void 0===this.settings.pin)throw new Error("Pin must be defined")}}},GROVE_I2C_MOTOR_DRIVER:{REGISTER:{value:{ADDRESS:15}},COMMANDS:{value:{SET_SPEED:130,SET_PWM_FREQUENCY:132,SET_DIRECTION:170,NOOP:1}},initialize:{value:function(e){var t=b.get(this),n=b.get("GROVE_I2C_MOTOR_DRIVER");n||(n={direction:{A:1,B:1},speed:{A:0,B:0}},b.set("GROVE_I2C_MOTOR_DRIVER",n)),t.shared=n,t.pin=e.pin.toUpperCase(),this.settings.pins={pwm:e.pin,dir:e.pin},this.address=e.address||this.REGISTER.ADDRESS,e.address=this.address,this.io.i2cConfig(e)}},setPWM:{value:function(e,t){var n=b.get(this),r=0|u.constrain(t,0,255);n.shared.speed[n.pin]=r,this.io.i2cWrite(this.address,[this.COMMANDS.SET_SPEED,n.shared.speed.A,n.shared.speed.B])}},setPin:{value:function(e,t){var n=b.get(this);n.shared.direction[n.pin]=t?1:2;var r=3&n.shared.direction.A,i=(3&n.shared.direction.B)<<2|r;this.io.i2cWrite(this.address,[this.COMMANDS.SET_DIRECTION,i,this.COMMANDS.NOOP])}},validatePins:{value:function(){if(void 0===this.settings.pin)throw new Error("Pin must be defined")}}}};E.EVS_NXT=E.EVS_EV3;var w={NONDIRECTIONAL:{pins:{get:function(){return this.settings.pin?{pwm:this.settings.pin}:this.settings.pins||{}}},dir:{writable:!0,configurable:!0,value:function(e){return e=e||this.speed(),this}},resume:{value:function(){var e=this.speed();return this.speed({speed:e}),this}}},DIRECTIONAL:{pins:{get:function(){return Array.isArray(this.settings.pins)?{pwm:this.settings.pins[0],dir:this.settings.pins[1]}:this.settings.pins}},dir:{writable:!0,configurable:!0,value:function(e){var t=this;return this.stop(),this.setPin(this.pins.dir,e.value),this.direction=e,r.nextTick((function(){return t.emit(e.name)})),this}}},CDIR:{pins:{get:function(){return Array.isArray(this.settings.pins)?{pwm:this.settings.pins[0],dir:this.settings.pins[1],cdir:this.settings.pins[2]}:this.settings.pins}},dir:{value:function(e){var t=this;return this.stop(),this.direction=e,this.setPin(this.pins.cdir,1^e.value),this.setPin(this.pins.dir,e.value),r.nextTick((function(){return t.emit(e.name)})),this}},brake:{value:function(e){var t=this;return this.speed({speed:0,saveSpeed:!1}),this.setPin(this.pins.dir,1,127),this.setPin(this.pins.cdir,1,128,127),this.speed({speed:255,saveSpeed:!1,braking:!0}),r.nextTick((function(){return t.emit("brake")})),e&&this.board.wait(e,(function(){return t.stop()})),this}}}},A=function(e){"use strict";function t(t){var n,r,i;return n=e.call(this)||this,u.Component.call(n,t=u.Options(t)),n.settings=t,void 0===n.settings.device&&(n.settings.device="DIRECTIONAL",void 0===n.settings.pins&&"object"!==a(n.settings.register)&&(n.settings.device="NONDIRECTIONAL"),n.settings.pins&&(Array.isArray(n.settings.pins)?n.settings.device=["NONDIRECTIONAL","DIRECTIONAL","CDIR"][n.settings.pins.length-1]:(void 0===n.settings.pins.dir?n.settings.device="NONDIRECTIONAL":n.settings.device="DIRECTIONAL",void 0!==n.settings.pins.cdir&&(n.settings.device="CDIR")))),"string"==typeof n.settings.controller&&(n.settings.controller.startsWith("EVS")||n.settings.controller.startsWith("GROVE_I2C"))&&(n.settings.device="DIRECTIONAL"),r="string"==typeof n.settings.device?w[n.settings.device]:n.settings.device,n.threshold=void 0!==n.settings.threshold?n.settings.threshold:30,n.invertPWM=void 0!==n.settings.invertPWM&&n.settings.invertPWM,Object.defineProperties(n,r),n.settings.register&&(n.settings.controller="ShiftRegister"),n.settings.controller&&("string"==typeof n.settings.controller?E[n.settings.controller]:n.settings.controller,u.Controller.call(n,E,t)),n.settings.current&&(n.settings.current.board=n.board,n.current=new g(n.settings.current)),i={isOn:!1,currentSpeed:void 0!==n.settings.speed?n.settings.speed:128,braking:!1,enabled:!1},b.set(n,i),Object.defineProperties(n,{isOn:{get:function(){return i.isOn}},currentSpeed:{get:function(){return i.currentSpeed}},braking:{get:function(){return i.braking}},enabled:{get:function(){return i.enabled}}}),n.direction={value:1},n.initialize&&n.initialize(t),n.validatePins(),n.enable(),n.dir(n.direction),n}return l(t,e),t}(d);A.prototype.initialize=function(){var e=this;this.io.pinMode(this.pins.pwm,this.io.MODES.PWM),["dir","cdir","brake","enable"].forEach((function(t){void 0!==e.pins[t]&&e.io.pinMode(e.pins[t],e.io.MODES.OUTPUT)}))},A.prototype.setPin=function(e,t){this.io.digitalWrite(e,t)},A.prototype.setPWM=function(e,t){this.io.analogWrite(e,h.map(t,0,255,0,this.board.RESOLUTION.PWM))},A.prototype.speed=function(e){var t=b.get(this);return void 0===e?t.currentSpeed:("number"==typeof e&&(e={speed:e}),e.speed=u.constrain(e.speed,0,255),e.saveSpeed=void 0===e.saveSpeed||e.saveSpeed,e.speed<this.threshold&&(e.speed=0),t.isOn=0!==e.speed,e.saveSpeed&&(t.currentSpeed=e.speed),e.braking&&(t.braking=!0),this.invertPWM&&1===this.direction.value&&(e.speed^=255),this.setPWM(this.pins.pwm,e.speed),this)},A.prototype.start=function(e){var t=this;return this.pins.brake&&this.braking&&this.setPin(this.pins.brake,0),e=void 0!==e?e:this.speed(),this.speed({speed:e,braking:!1}),e>0&&r.nextTick((function(){return t.emit("start")})),this},A.prototype.stop=function(){var e=this;return this.speed({speed:0,saveSpeed:!1}),r.nextTick((function(){return e.emit("stop")})),this},A.prototype.brake=function(e){var t=this;if(void 0===this.pins.brake)"Mock"!==this.board.io.name&&console.log("Non-braking motor type"),this.stop();else if(this.setPin(this.pins.brake,1),this.setPin(this.pins.dir,1),this.speed({speed:255,saveSpeed:!1,braking:!0}),r.nextTick((function(){return t.emit("brake")})),e){var n=this;this.board.wait(e,(function(){n.resume()}))}return this},A.prototype.release=function(){var e=this;return this.resume(),r.nextTick((function(){return e.emit("release")})),this},A.prototype.resume=function(){var e=this.speed();return this.dir(this.direction),this.start(e),this},A.prototype.enable=function(){var e=b.get(this);void 0===this.pins.enable||e.enabled||(this.setPin(this.pins.enable,1),e.enabled=!0)},A.prototype.disable=function(){var e=b.get(this);void 0!==this.pins.enable&&e.enabled&&(this.setPin(this.pins.enable,0),e.enabled=!1)},A.prototype.validatePins=function(){if(void 0===this.pins.pwm)throw new Error("PWM pin must be defined");if(void 0===this.pins.dir&&"NONDIRECTIONAL"!==this.settings.device)throw new Error("DIR pin must be defined");if("CDIR"===this.settings.device&&void 0===this.pins.cdir)throw new Error("CDIR pin must be defined for three wire motors")},[{name:"forward",abbr:"fwd",value:1},{name:"reverse",abbr:"rev",value:0}].forEach((function(e){A.prototype[e.name]=A.prototype[e.abbr]=function(t){return this.dir(e),this.start(t),this}})),A.SHIELD_CONFIGS={ADAFRUIT_V1:{M1:{pins:{pwm:11},register:{data:8,clock:4,latch:12},bits:{a:2,b:3}},M2:{pins:{pwm:3},register:{data:8,clock:4,latch:12},bits:{a:1,b:4}},M3:{pins:{pwm:6},register:{data:8,clock:4,latch:12},bits:{a:5,b:7}},M4:{pins:{pwm:5},register:{data:8,clock:4,latch:12},bits:{a:0,b:6}}},ADAFRUIT_V2:{M1:{pins:{pwm:8,dir:9,cdir:10},address:96,controller:"PCA9685"},M2:{pins:{pwm:13,dir:12,cdir:11},address:96,controller:"PCA9685"},M3:{pins:{pwm:2,dir:3,cdir:4},address:96,controller:"PCA9685"},M4:{pins:{pwm:7,dir:6,cdir:5},address:96,controller:"PCA9685"}},SEEED_STUDIO:{A:{pins:{pwm:9,dir:8,cdir:11}},B:{pins:{pwm:10,dir:12,cdir:13}}},FREETRONICS_HBRIDGE:{A:{pins:{pwm:6,dir:4,cdir:7}},B:{pins:{pwm:5,dir:3,cdir:2}}},ARDUINO_MOTOR_SHIELD_R3_1:{A:{pins:{pwm:3,dir:12}},B:{pins:{pwm:11,dir:13}}},ARDUINO_MOTOR_SHIELD_R3_2:{A:{pins:{pwm:3,dir:12,brake:9}},B:{pins:{pwm:11,dir:13,brake:8}}},ARDUINO_MOTOR_SHIELD_R3_3:{A:{pins:{pwm:3,dir:12,brake:9,current:"A0"}},B:{pins:{pwm:11,dir:13,brake:8,current:"A1"}}},DF_ROBOT:{A:{pins:{pwm:6,dir:7}},B:{pins:{pwm:5,dir:4}}},NKC_ELECTRONICS_KIT:{A:{pins:{pwm:9,dir:12}},B:{pins:{pwm:10,dir:13}}},RUGGED_CIRCUITS:{A:{pins:{pwm:3,dir:12}},B:{pins:{pwm:11,dir:13}}},SPARKFUN_ARDUMOTO:{A:{pins:{pwm:3,dir:12}},B:{pins:{pwm:11,dir:13}}},POLOLU_DRV8835_SHIELD:{M1:{pins:{pwm:9,dir:7}},M2:{pins:{pwm:10,dir:8}}},POLOLU_VNH5019_SHIELD:{M1:{pins:{pwm:9,dir:2,cdir:4,enable:6}},M2:{pins:{pwm:10,dir:7,cdir:8,enable:12}}},MICRO_MAGICIAN_V2:{A:{pins:{pwm:6,dir:8},invertPWM:!0},B:{pins:{pwm:5,dir:7},invertPWM:!0}},SPARKFUN_LUDUS:{A:{pins:{pwm:3,dir:4,cdir:5}},B:{pins:{pwm:6,dir:7,cdir:8}}},SPARKFUN_DUAL_HBRIDGE_EDISON_BLOCK:{A:{pins:{pwm:20,dir:33,cdir:46,enable:47}},B:{pins:{pwm:14,dir:48,cdir:36,enable:47}}},PICAR_V:{A:{controller:"PCA9685_Hybrid",pins:{pwm:4,dir:"GPIO17"}},B:{controller:"PCA9685_Hybrid",pins:{pwm:5,dir:"GPIO27"}}}};var C=function(e){"use strict";function t(t){return e.call(this,t)||this}return l(t,e),n=t,(r=[{key:"type",get:function(){return A}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);c.installMethodForwarding(C.prototype,A.prototype),A.Collection=C,r.env.IS_TEST_MODE&&(A.Controllers=E,A.purge=function(){b.clear(),y.clear()}),e.exports=A},2325:(e,t,n)=>{var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var s=n(683),u=n(769),c=new Map,d={BNO055:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BNO055",e).on("data",(function(e){t(e)}))}},toScaledEuler:{value:function(e){var t=e.euler;return{heading:t.heading/16,roll:t.roll/16,pitch:t.pitch/16}}},toScaledQuarternion:{value:function(e){var t=e.quarternion;return{w:t.w*(1/16384),x:t.x*(1/16384),y:t.y*(1/16384),z:t.z*(1/16384)}}},calibration:{get:function(){return c.get(this).calibration}},isCalibrated:{get:function(){return 3==(this.calibration>>6&3)}}}},f=function(e){"use strict";function t(t){var n;n=e.call(this)||this,s.Component.call(n,t=s.Options(t)),s.Controller.call(n,d,t);var r=t.freq||25,i={euler:{heading:0,roll:0,pitch:0},quarternion:{w:0,x:0,y:0,z:0},calibration:0},o=null;return c.set(n,i),n.toScaledQuarternion||(n.toScaledQuarternion=t.toScaledQuarternion||function(e){return e}),n.toScaledEuler||(n.toScaledEuler=t.toScaledEuler||function(e){return e}),"function"==typeof n.initialize&&n.initialize(t,(function(e){return o=e})),setInterval((function(){if(null!==o){var e=!1,t=!1;["heading","roll","pitch"].forEach((function(t){i.euler[t]!==o.orientation.euler[t]&&(e=!0),i.euler[t]=o.orientation.euler[t]})),["w","x","y","z"].forEach((function(t){i.quarternion[t]!==o.orientation.quarternion[t]&&(e=!0),i.quarternion[t]=o.orientation.quarternion[t]})),o.calibration&&(i.calibration!==o.calibration&&(t=!0),i.calibration=o.calibration);var r={euler:n.euler,quarternion:n.quarternion,calibration:n.calibration};n.emit("data",r),e&&n.emit("change",r),t&&n.emit("calibration",n.calibration)}}),r),n}var n,r,i,a,u;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,l(n,r),i=t,(a=[{key:"euler",get:function(){return this.toScaledEuler(c.get(this))}},{key:"quarternion",get:function(){return this.toScaledQuarternion(c.get(this))}}])&&o(i.prototype,a),u&&o(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}(u);r.env.IS_TEST_MODE&&(f.Controllers=d,f.purge=function(){c.clear()}),e.exports=f},2572:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var i=n(683),o=n(2573),a=1e6,l=new Map,s=4;function u(e){return e.timer?(e.timer.clearInterval(),delete e.timer,e):e}var c={DEFAULT:{initialize:{writable:!0,value:function(){this.io.pinMode(this.pin,this.io.MODES.OUTPUT)}},tone:{writable:!0,value:function(e,t){var n=this;if(isNaN(e)||isNaN(t))throw new Error("Piezo.tone: invalid tone or duration");u(this),this.timer=new o;var r=1;return this.timer.setInterval((function(){r=1===r?0:1,n.io.digitalWrite(n.pin,r),n.timer.difTime/1e6>t&&u(n)}),null,"".concat(e,"u"),(function(){})),this}},noTone:{writable:!0,value:function(){return this.io.digitalWrite(this.pin,0),u(this)}}},I2C_BACKPACK:{ADDRESSES:{value:[10]},REGISTER:{value:{NO_TONE:0,TONE:1}},initialize:{writable:!0,value:function(e){var t=n(1094).Drivers.addressResolver(this,e),r=l.get(this);this.io.i2cConfig(e),r.address=t}},tone:{writable:!0,value:function(e,t){var n=l.get(this);if(isNaN(e)||isNaN(t))throw new Error("Piezo.tone: invalid tone or duration");return this.io.i2cWrite(n.address,[this.REGISTER.TONE,this.pin,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t]),this}},noTone:{writable:!0,value:function(){var e=l.get(this);return this.io.i2cWrite(e.address,[this.REGISTER.NO_TONE,this.pin]),this}}}},d=function(){"use strict";function e(e){i.Component.call(this,e=i.Options(e)),i.Controller.call(this,c,e);var t={isPlaying:!1,timeout:null,address:null};l.set(this,t),Object.defineProperties(this,{isPlaying:{get:function(){return t.isPlaying}}}),"function"==typeof this.initialize&&this.initialize(e)}var t=e.prototype;return t.note=function(t,n){return this.frequency(e.Parsers.hzFromInput(t),n)},t.tone=function(t,n){return this.frequency(e.ToFrequency(t),n)},t.frequency=function(t,n){return this.tone(e.ToTone(t),n)},t.play=function(t,n){var i=this;"object"!==r(t)&&(t={song:t}),"string"==typeof t.song&&(t.song=e.ToSong(t.song,t.beats)),t.song&&!Array.isArray(t.song)&&(t.song=[t.song]);var o,a=l.get(this),s=t.tempo||250,u=Math.round(6e4/s),c=t.song||[],d=0;return a.isPlaying=!0,function r(){if(d===c.length)return a.isPlaying=!1,void("function"==typeof n&&n(t));var l=c[d],s=e.Parsers.hzFromInput(l),f=e.Parsers.beatFromNote(l);o=f*u,d++,null===s?i.noTone():i.frequency(s,o),a.timeout=setTimeout(r,o)}(),this},t.off=function(){return this.noTone()},t.stop=function(){var e=l.get(this);return e.timeout&&(clearTimeout(e.timeout),e.timeout=null),this},e}();d.Notes={c0:16,"c#0":17,d0:18,"d#0":19,e0:21,f0:22,"f#0":23,g0:25,"g#0":26,a0:28,"a#0":29,b0:31,c1:33,"c#1":35,d1:37,"d#1":39,e1:41,f1:44,"f#1":47,g1:49,"g#1":52,a1:55,"a#1":58,b1:62,c2:65,"c#2":69,d2:73,"d#2":78,e2:82,f2:87,"f#2":93,g2:98,"g#2":104,a2:110,"a#2":117,b2:124,c3:131,"c#3":139,d3:147,"d#3":156,e3:165,f3:175,"f#3":185,g3:196,"g#3":208,a3:220,"a#3":233,b3:247,c4:262,"c#4":277,d4:294,"d#4":311,e4:330,f4:349,"f#4":370,g4:392,"g#4":415,a4:440,"a#4":466,b4:494,c5:523,"c#5":554,d5:587,"d#5":622,e5:659,f5:698,"f#5":740,g5:784,"g#5":831,a5:880,"a#5":932,b5:988,c6:1047,"c#6":1109,d6:1175,"d#6":1245,e6:1319,f6:1397,"f#6":1480,g6:1568,"g#6":1661,a6:1760,"a#6":1865,b6:1976,c7:2093,"c#7":2217,d7:2349,"d#7":2489,e7:2637,f7:2794,"f#7":2960,g7:3136,"g#7":3322,a7:3520,"a#7":3729,b7:3951,c8:4186,"c#8":4435,d8:4699,"d#8":4978,e8:5274,f8:5588,"f#8":5920,g8:6272,"g#8":6645,a8:7040,"a#8":7459,b8:7902},d.Frequencies=Object.keys(d.Notes).reduce((function(e,t){return e[d.Notes[t]]=t,e}),{}),d.Parsers={},d.Parsers.hzFromInput=function(e){var t=e;return Array.isArray(e)&&(t=e[0]),"number"==typeof t&&d.Frequencies[t]||("string"==typeof t&&(((t=t.toLowerCase().trim()).endsWith("#")||1===t.length)&&(t+=s),t=d.Notes[t]||null),isNaN(t)&&(t=null)),t},d.Parsers.beatFromNote=function(e){var t=1;return Array.isArray(e)&&void 0!==e[1]&&(t=e[1]),t},d.isValidOctave=function(e){return"number"==typeof e&&e>=0&&e<=8},d.defaultOctave=function(e){return d.isValidOctave(e)&&(s=e),s},d.ToFrequency=function(e){var t=2*(e/a);return Math.round(1/t)},d.ToTone=function(e){var t=1/e/2;return Math.round(t*a)},d.ToSong=function(e){for(var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=e.split(" "),o=[];i.length;)t=i.shift(),/^[0-9]+$/.test(t)&&(t=parseInt(t,10)),(n=o[o.length-1])&&n[0]===t?n[1]+=r:o.push([t,r]);return o},e.exports=d},2148:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d=n(683),f=n(769),p=n(1105),h=new Map,g={INPUT:0,OUTPUT:1,ANALOG:2,PWM:3,SERVO:4},m="low",b="high",y="analog",v="digital",_=function(e){"use strict";function t(n){var r;if(r=e.call(this)||this,void 0===n||"object"===s(n)&&void 0===n.addr&&void 0===n.pin)throw new Error("Pins must have a pin number");var i="object"===s(n)?n.addr||n.pin||0:n,o=t.isAnalog(n),a=!1;d.Component.call(r,n=d.Options(n)),n.addr=n.addr||n.pin,r.io.analogPins.includes(i)&&(o=!1,a=!0);var l="object"!==s(n),u=a?i:l?n:n.addr,c=n.type||(o?y:v),f={mode:null,last:null,value:0};return h.set(r,f),Object.defineProperties(r,{type:{get:function(){return c}},addr:{get:function(){return u}},value:{get:function(){return f.value}},mode:{set:function(e){h.get(this).mode=e,this.io.pinMode(this.addr,e)},get:function(){return h.get(this).mode}}}),r.mode=void 0!==n.as?n.as:void 0!==n.mode?n.mode:o?2:1,r.freq=void 0!==n.freq?n.freq:20,0!==r.mode&&2!==r.mode||E(r),c===v&&Object.defineProperties(r,{isHigh:{get:function(){return!!f.value}},isLow:{get:function(){return!f.value}}}),r}u(t,e);var n=t.prototype;return n.query=function(e){var t=this,n=this.addr;return this.type===y&&(n=this.io.analogPins[this.addr]),this.io.queryPinState(n,(function(){return e(t.io.pins[n])})),this},n.high=function(){var e=this.type===y?this.board.RESOLUTION.PWM:1;return t.write(this,e),this.emit(b),this},n.low=function(){return t.write(this,0),this.emit(m),this},t}(f);function E(e){var t=h.get(e);e.io["".concat(e.type,"Read")](e.addr,(function(e){return t.value=e})),setInterval((function(){var n,r;n=t.value?m:b,r=t.value?b:m,t.mode===g.INPUT&&(null===t.last&&(t.last=n),t.last===n&&(t.last=r,e.emit(r,t.value),e.emit("change",t.value))),e.emit("data",t.value)}),e.freq)}Object.entries(g).forEach((function(e){var t=a(e,2),n=t[0],r=t[1];Object.defineProperty(_,n,{value:r})})),_.isAnalog=function(e){return!("string"!=typeof e||!_.isPrefixed(e,["I","A"]))||("object"===s(e)?_.isAnalog(void 0!==e.addr?e.addr:e.pin):void 0)},_.isPrefixed=function(e,t){return e=e[0],t.reduce((function(t,n){return t||n===e}),!1)},_.write=function(e,t){h.get(e).value=t,e.mode=g.OUTPUT,e.io["".concat(e.type,"Write")](e.addr,t),e.emit("write",null,t)},_.read=function(e,t){var n=!1;e.type===v&&0!==e.mode&&(n=!0,e.mode=g.INPUT),e.type===y&&2!==e.mode&&(n=!0,e.mode=g.ANALOG),n&&E(e),e.on("data",(function(){t.call(e,null,e.value)}))},["read","write"].forEach((function(e){_.prototype[e]=function(t){return _[e](this,t),this}}));var w=function(e){"use strict";function t(t){return e.call(this,t)||this}return u(t,e),n=t,(r=[{key:"type",get:function(){return _}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(p.Emitter);p.installMethodForwarding(w.prototype,_.prototype),_.Collection=w,r.env.IS_TEST_MODE&&(_.purge=function(){h.clear()}),e.exports=_},2574:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=n(683),c=n(1105),d=n(1981),f=n(740),p=n(2072),h=u.Pins,g=f.toFixed,m=new Map;function b(e,t){var n=this;this.io.pinMode(this.pin,this.io.MODES.ANALOG),this.io.analogRead(this.pin,(function(e){t.call(n,e)}))}var y={GP2Y0A21YK:{initialize:{value:b},toCm:{value:function(e){return g(12343.85*Math.pow(e,-1.15),2)}}},GP2D120XJ00F:{initialize:{value:b},toCm:{value:function(e){return g(2914/(e+5)-1,2)}}},GP2Y0A02YK0F:{initialize:{value:b},toCm:{value:function(e){return g(10650.08*Math.pow(e,-.935)-10,2)}}},GP2Y0A41SK0F:{initialize:{value:b},toCm:{value:function(e){return g(2076/(e-11),2)}}},GP2Y0A710K0F:{initialize:{value:b},toCm:{value:function(e){return g(38631e4*Math.pow(e,-2.463343),0)}}},SRF10:{ADDRESSES:{value:[112]},initialize:{value:function(e,t){var r=this,i=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e),this.io.i2cWrite(i,[1,16]),this.io.i2cWrite(i,[2,255]);!function e(){r.io.i2cWrite(i,[0,81]),setTimeout((function(){r.io.i2cWrite(i,[2]),r.io.i2cReadOnce(i,2,(function(e){return t(e[0]<<8|e[1])})),e()}),65)}()}},toCm:{value:function(e){return e}}},MB1000:{initialize:{value:b},toCm:{value:function(e){return g(e/2*2.54,2)}}},MB1003:{initialize:{value:b},toCm:{value:function(e){return g(e/2,1)}}},MB1230:{initialize:{value:b},toCm:{value:function(e){return e|0}}},HCSR04:{initialize:{value:function(e,t){var n=this,r=e.pinValue;h.isFirmata(this)&&("string"==typeof r&&r.length>1&&"A"===r[0]&&(r=this.io.analogPins[+r.slice(1)]),r=+r,this.io.analogPins.includes(r)&&(e.pin=r),this.pin=e.pin);var i={pin:e.pin,value:this.io.HIGH,pulseOut:5};!function e(){n.io.pingRead(i,(function(n){t(n),setTimeout(e,65)}))}()}},toCm:{value:function(e){return g(e/29.1/2,1)}}},HCSR04I2CBACKPACK:{ADDRESSES:{value:[39]},initialize:{value:function(e,t){var r=this,i=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e),void 0===e.pin&&(this.pin=8);!function e(){r.io.i2cReadOnce(i,2,(function(n){t((n[0]<<8)+n[1]),setTimeout(e,90)}))}()}},toCm:{value:function(e){return g(e/29.1/2,1)}}},LIDARLITE:{ADDRESSES:{value:[98]},REGISTER:{value:{ENABLE:0,READ:143}},initialize:{value:function(e,t){var r=this,i=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e);!function e(){r.io.i2cWrite(i,r.REGISTER.ENABLE,4),setTimeout((function(){r.io.i2cReadOnce(i,r.REGISTER.READ,2,(function(n){t((n[0]<<8)+n[1]),e()}))}),20)}()}},toCm:{value:function(e){return e|0}}},EVS_EV3_IR:{initialize:{value:function(e,t){var n=m.get(this);n.shield=d.shieldPort(e.pin),n.ev3=new d(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,d.Type_EV3),n.ev3.read(n.shield,d.Proximity,d.Proximity_Bytes,(function(e){return t(e[0]|e[1]<<8)}))}},toCm:{value:function(e){return e}}},EVS_EV3_US:{initialize:{value:function(e,t){var n=m.get(this);n.shield=d.shieldPort(e.pin),n.ev3=new d(Object.assign(e,{io:this.io})),n.ev3.setup(n.shield,d.Type_EV3),n.ev3.read(n.shield,d.Proximity,d.Proximity_Bytes,(function(e){return t(e[0]|e[1]<<8)}))}},toCm:{value:function(e){return e/10}}}};y["2Y0A21"]=y.GP2Y0A21YK,y["2D120X"]=y.GP2D120XJ00F,y["2Y0A02"]=y.GP2Y0A02YK0F,y["0A41"]=y.GP2Y0A41SK0F,y["0A21"]=y.GP2Y0A21YK,y["0A02"]=y.GP2Y0A02YK0F,y["41SK0F"]=y.GP2Y0A41SK0F,y["21YK"]=y.GP2Y0A21YK,y["2YK0F"]=y.GP2Y0A02YK0F,y.MB1010=y.MB1000,y["LV-MaxSonar-EZ"]=y.MB1000,y["LV-MaxSonar-EZ0"]=y.MB1000,y["LV-MaxSonar-EZ1"]=y.MB1010,y["HRLV-MaxSonar-EZ0"]=y.MB1003,y["XL-MaxSonar-EZ3"]=y.MB1230,["HC-SR04","SR04","SRF05","SRF06","PARALLAXPING","SEEEDPING","GROVEPING","PING_PULSE_IN","ULTRASONIC_PING"].forEach((function(e){y[e]=y.HCSR04})),["HCSR04-I2C-BACKPACK","HC-SR04-I2C-BACKPACK","SR04-I2C-BACKPACK","SR04I2CBACKPACK","PINGI2CBACKPACK","PING-I2C-BACKPACK","HCSR04_I2C_BACKPACK","HC_SR04_I2C_BACKPACK","SR04_I2C_BACKPACK","SR04I2CBACKPACK","PINGI2CBACKPACK","PING_I2C_BACKPACK"].forEach((function(e){y[e]=y.HCSR04I2CBACKPACK})),y["LIDAR-Lite"]=y.LIDARLITE,y.DEFAULT=y.GP2Y0A21YK;var v=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var r="object"===a(t)?t.pin:t;u.Component.call(n,t=u.Options(t)),u.Controller.call(n,y,t);var i=t.freq||25,o=0,l=0;return n.toCm||(n.toCm=t.toCm||function(e){return e}),m.set(n,{}),Object.defineProperties(n,{centimeters:{get:function(){return this.toCm(o)}},cm:{get:function(){return this.centimeters}},inches:{get:function(){return g(.39*this.centimeters,2)}},in:{get:function(){return this.inches}}}),"function"==typeof n.initialize&&(t.pinValue=r,n.initialize(t,(function(e){return o=e}))),setInterval((function(){if(void 0!==o){var e={cm:n.cm,centimeters:n.centimeters,in:n.in,inches:n.inches};n.emit("data",e),o!==l&&(l=o,n.emit("change",e))}}),i),n}return l(t,e),t}(p);v.Collection=function(e){"use strict";function t(t){return e.call(this,t)||this}return l(t,e),n=t,(r=[{key:"type",get:function(){return v}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c.Emitter),c.installMethodForwarding(v.Collection.prototype,v.prototype),v.Controllers=Object.keys(y),r.env.IS_TEST_MODE&&(v.Controllers=y,v.purge=function(){m.clear()}),e.exports=v},2575:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var i=n(683),o=n(769),a=n(740),l=n(2328),s=n(2151),u=1e3,c=new Map,d={DEFAULT:{initialize:{value:function(e){var t=this;if(void 0===e.emitter)throw new Error("Emitter pin is required");if(!e.pins||0===e.pins.length)throw new Error("Pins must be defined");var n=c.get(this);n.emitter=new l({board:this.board,pin:e.emitter}),n.sensorStates=e.pins.map((function(e){var r=new s({board:t.board,freq:n.freq,pin:e}),i={sensor:r,rawValue:0,dataReceived:!1};return r.on("data",(function(e){!function(e,t,n){var r=c.get(e);t.dataReceived=!0,t.rawValue=n;var i=r.sensorStates.every((function(e){return e.dataReceived}));i&&(e.emit("data",e.raw),r.autoCalibrate&&f(r.calibration,e.raw),e.isCalibrated&&(e.emit("calibratedData",e.values),e.emit("line",e.line)),r.sensorStates.forEach((function(e){e.dataReceived=!1})))}(t,i,e)})),i}))}}}};function f(e,t){t.forEach((function(t,n){(void 0===e.min[n]||t<e.min[n])&&(e.min[n]=t),(void 0===e.max[n]||t>e.max[n])&&(e.max[n]=t)}))}function p(e,t){return e&&e.max&&e.max.length===t.length&&e.min&&e.min.length===t.length}function h(e){return(e.sensors.length-1)*u}var g=function(e){"use strict";function t(t){var n;n=e.call(this)||this,i.Component.call(n,t=i.Options(t)),i.Controller.call(n,d,t);var r=t,o=r.autoCalibrate,l=void 0!==o&&o,s=r.freq,f={autoCalibrate:l,freq:void 0===s?25:s,lastLine:0,isOn:!1,calibration:{min:[],max:[]}};return c.set(n,f),"function"==typeof n.initialize&&n.initialize(t),Object.defineProperties(n,{isOn:{get:function(){return f.emitter.isOn}},isCalibrated:{get:function(){return p(this.calibration,this.sensors)}},isOnLine:{get:function(){var e=this.line;return e>0&&e<h(this)}},sensors:{get:function(){return f.sensorStates.map((function(e){return e.sensor}))}},calibration:{get:function(){return f.calibration}},raw:{get:function(){return f.sensorStates.map((function(e){return e.rawValue}))}},values:{get:function(){return this.isCalibrated?(e=this).raw.map((function(t,n){return a.constrain(a.scale(t,e.calibration.min[n],e.calibration.max[n],0,u),0,u)})):this.raw;var e}},line:{get:function(){return this.isCalibrated?function(e,t){var n=c.get(e),r=!1,i=0,o=0;if(t=!!t,e.values.forEach((function(e,n){(e=t?u-e:e)>200&&(r=!0),e>50&&(i+=e*n*u,o+=e)})),!r){var a=h(e)+1,l=a/2;return n.lastLine<l?0:a}return n.lastLine=Math.floor(i/o)}(this):0}}}),n}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,r(n,o);var l=t.prototype;return l.enable=function(){return c.get(this).emitter.on(),this},l.disable=function(){return c.get(this).emitter.off(),this},l.calibrate=function(){var e=this;return this.once("data",(function(t){f(c.get(e).calibration,t),e.emit("calibrated")})),this},l.calibrateUntil=function(e){var t=this;return function n(){t.calibrate(),t.once("calibrated",(function(){e()||n()}))}(),this},l.loadCalibration=function(e){if(!p(e,this.sensors))throw new Error("Calibration data not properly set: {min: [], max: []}");return c.get(this).calibration=e,this},t}(o);e.exports=g},2576:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=n(683),u=n(1105),c=s.Pins,d=new Map,f=function(){"use strict";function e(e){var t="object"===l(e)?e.pin:e;s.Component.call(this,e=s.Options(e)),e.type=e.type||"NO";var n={isInverted:"NC"===e.type,isClosed:!1,value:null};d.set(this,n),Object.defineProperties(this,{value:{get:function(){return Number(this.isClosed)}},type:{get:function(){return n.isInverted?"NC":"NO"}},isClosed:{get:function(){return n.isClosed}}}),c.isFirmata(this)&&"string"==typeof t&&"A"===t[0]&&(this.pin=this.io.analogPins[+t.slice(1)],this.io.pinMode(this.pin,this.io.MODES.OUTPUT))}var t=e.prototype;return t.close=function(){var e=d.get(this);return this.io.digitalWrite(this.pin,e.isInverted?this.io.LOW:this.io.HIGH),e.isClosed=!0,this},t.open=function(){var e=d.get(this);return this.io.digitalWrite(this.pin,e.isInverted?this.io.HIGH:this.io.LOW),e.isClosed=!1,this},t.toggle=function(){return d.get(this).isClosed?this.open():this.close(),this},e}(),p=function(e){"use strict";function t(t){return e.call(this,t)||this}var n,r,o,l,s;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,a(n,r),o=t,(l=[{key:"type",get:function(){return f}}])&&i(o.prototype,l),s&&i(o,s),Object.defineProperty(o,"prototype",{writable:!1}),o}(u);u.installMethodForwarding(p.prototype,f.prototype),f.Collection=p,r.env.IS_TEST_MODE&&(f.purge=function(){d.clear()}),e.exports=f},2317:(e,t,n)=>{var r=n(107);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var a=n(769),l=n(2542),s=new Map,u=function(e){"use strict";function t(n){var r;if(t.isActive)return t.ref||i(r);r=e.call(this)||this,t.isActive=!0,r.context={},r.ready=!1;var o={opts:n,board:n.board};return s.set(i(r),o),t.ref=i(r),i(r)}var n,a;a=e,(n=t).prototype=Object.create(a.prototype),n.prototype.constructor=n,o(n,a);var u=t.prototype;return u.initialize=function(e){var t=s.get(this);r.stdin.resume(),r.stdin.setEncoding("utf8");t.board.info("Repl","Initialized");var n=l.start({prompt:">> ",useGlobal:!1});this.ready=!0,this.cmd=n,this.context=n.context,n.on("exit",(function(){t.board.emit("exit"),t.board.warn("Board","Closing.");var e=setTimeout((function(){r.reallyExit()}),1e3),n=setInterval((function(){var i=!1;if(t.board.length){for(var o=0;o<t.board.length;o++)if(t.board[o].io.pending){i=!0;break}}else i=t.board.io.pending;i||(clearInterval(n),clearTimeout(e),r.nextTick(r.reallyExit))}),1)})),this.inject(t.opts),e&&r.nextTick(e)},u.close=function(){this.cmd.emit("exit")},u.inject=function(e){Object.keys(e).forEach((function(t){Object.defineProperty(this.context,t,Object.getOwnPropertyDescriptor(e,t))}),this)},t}(a);u.isActive=!1,u.isBlocked=!1,u.ref=null,e.exports=u},2151:(e,t,n)=>{var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=n(683),c=n(740),d=n(1105),f=n(2072),p=new Map;var h=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var i=1023,o=null,a=-1,l=[];u.Component.call(n,t=u.Options(t)),t.type||(t.type="analog"),n.io.RESOLUTION&&n.io.RESOLUTION.ADC&&n.io.RESOLUTION.ADC!==i&&(i=n.io.RESOLUTION.ADC),n.mode="digital"===t.type?n.io.MODES.INPUT:n.io.MODES.ANALOG,n.io.pinMode(n.pin,n.mode);var s={enabled:void 0===t.enabled||t.enabled,booleanBarrier:"digital"===t.type?0:null,intervalId:null,scale:null,value:0,median:0,freq:t.freq||25,previousFreq:t.freq||25};p.set(n,s),n.range=t.range||[0,i],n.limit=t.limit||null,n.threshold=void 0===t.threshold?1:t.threshold,n.isScaled=!1,n.io["".concat(t.type,"Read")](n.pin,(function(e){o=e,"digital"!==t.type&&l.push(o)}));var d=function(){var e,r,i,u;if(null,"digital"===t.type)return n.emit("data",o),void(a!==o&&(n.emit("change",o),a=o));l.length>0&&(s.median=(r=l.sort((function(e,t){return e-t})),i=r.length,u=Math.floor(i/2),i%2?r[u]:(r[u-1]+r[u])/2));var c=Math.round(s.median);n.emit("data",c),(s.median<=a-n.threshold||s.median>=a+n.threshold)&&(n.emit("change",c),a=s.median),n.limit&&(s.median<=n.limit[0]&&(e="lower"),s.median>=n.limit[1]&&(e="upper"),e&&(n.emit("limit",{boundary:e,value:c}),n.emit("limit:".concat(e),c))),l.length=0};return Object.defineProperties(n,{raw:{get:function(){return o}},analog:{get:function(){return"digital"===t.type?o:null===o?0:0|c.map(this.raw,0,i,0,255)}},constrained:{get:function(){return"digital"===t.type?o:null===o?0:c.constrain(this.raw,0,255)}},boolean:{get:function(){var e=p.get(this),t=e.booleanBarrier,n=e.scale||[0,i];return null===t&&(t=n[0]+(n[1]-n[0])/2),this.value>t}},scaled:{get:function(){var e;return s.scale&&null!==o?"digital"===t.type?s.scale[o]:(e=c.fmap(o,this.range[0],this.range[1],s.scale[0],s.scale[1]),c.constrain(Math.round(e),s.scale[0],s.scale[1])):this.constrained}},freq:{get:function(){return s.freq},set:function(e){s.freq=e,s.intervalId&&clearInterval(s.intervalId),null!==s.freq&&(s.intervalId=setInterval(d,e))}},value:{get:function(){return s.scale?(this.isScaled=!0,this.scaled):o}},resolution:{get:function(){return i}}}),r.env.IS_TEST_MODE&&Object.defineProperties(n,{state:{get:function(){return p.get(this)}}}),s.enabled&&(n.freq=s.freq),n}l(t,e);var n=t.prototype;return n.enable=function(){var e=p.get(this);return e.enabled||(this.freq=e.freq||e.previousFreq),this},n.disable=function(){var e=p.get(this);return e.enabled&&(e.enabled=!1,e.previousFreq=e.freq,this.freq=null),this},n.scale=function(e,t){return this.isScaled=!0,p.get(this).scale=Array.isArray(e)?e:[e,t],this},n.scaleTo=function(e,t){var n=Array.isArray(e)?e:[e,t];return c.map(this.raw,0,this.resolution,n[0],n[1])},n.fscaleTo=function(e,t){var n=Array.isArray(e)?e:[e,t];return c.fmap(this.raw,0,this.resolution,n[0],n[1])},n.booleanAt=function(e){return p.get(this).booleanBarrier=e,this},t}(f),g=function(e){"use strict";function t(t){return e.call(this,t)||this}return l(t,e),n=t,(r=[{key:"type",get:function(){return h}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(d.Emitter);d.installMethodForwarding(g.prototype,h.prototype),h.Collection=g,r.env.IS_TEST_MODE&&(h.purge=function(){p.clear()}),e.exports=h},2577:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=n(683),c=u.Pins,d=n(1743),f=n(1105),p=n(769),h=n(740),g=n(1914),m=new Map,b={PCA9685:{initialize:{value:function(e){var t=e.address,n=e.pwmRange,r=e.frequency,i=e.pin,o=m.get(this);this.address=t||64,this.pwmRange=n||[450,1850],this.frequency=r||50,o.expander=d.get({address:this.address,controller:this.controller,bus:this.bus,pwmRange:this.pwmRange,frequency:this.frequency}),this.pin=o.expander.normalize(i)}},update:{writable:!0,value:function(e){m.get(this).expander.servoWrite(this.pin,e)}}},Standard:{initialize:{value:function(e){var t=e.debug,n=e.pwmRange;t&&!this.board.pins.isServo(this.pin)&&u.Pins.Error({pin:this.pin,type:"PWM",via:"Servo"}),Array.isArray(n)?this.io.servoConfig(this.pin,n[0],n[1]):this.io.pinMode(this.pin,this.mode)}},update:{writable:!0,value:function(e){if(this.last&&this.last.degrees===e)return this;var t=h.map(e,this.degreeRange[0],this.degreeRange[1],this.pwmRange[0],this.pwmRange[1]);t|=0,this.io.servoWrite(this.pin,t)}}}};b.DEFAULT=b.Standard;var y=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var r=[],i="object"===a(t)?t.pin:t;return u.Component.call(n,t=u.Options(t)),n.degreeRange=t.degreeRange||[0,180],n.pwmRange=t.pwmRange||[600,2400],n.range=t.range||n.degreeRange,n.deadband=t.deadband||[90,90],n.fps=t.fps||100,n.offset=t.offset||0,n.range=t.range||[0-n.offset,180-n.offset],n.mode=n.io.MODES.SERVO,n.interval=null,n.value=null,n.type=t.type||"standard",t.isInverted&&console.warn("The 'isInverted' property has been renamed 'invert'"),n.invert=t.isInverted||t.invert||!1,void 0===t.controller&&c.isFirmata(n)&&("string"==typeof i&&i.length>1&&"A"===i[0]&&(i=n.io.analogPins[+i.slice(1)]),i=+i,Number.isNaN(i)||n.pin===i||(n.pin=i)),u.Controller.call(n,b,t),m.set(n,{history:r}),Object.defineProperties(n,{history:{get:function(){return r.slice(-5)}},last:{get:function(){return r[r.length-1]}},position:{get:function(){return r.length?r[r.length-1].degrees:-1}}}),n.initialize(t),void 0!==t.startAt?(n.startAt=t.startAt,n.to(t.startAt)):n.startAt=(n.degreeRange[1]-n.degreeRange[0])/2+n.degreeRange[0],t.center&&n.center(),"continuous"===t.type&&n.stop(),n}l(t,e);var n=t.prototype;return n.to=function(e,t,n){var i=this,o=m.get(this),l={};if("object"===a(e))Object.assign(l,e),l.duration=e.duration||e.interval||1e3,l.cuePoints=e.cuePoints||[0,1],l.keyFrames=e.keyFrames||[null,{value:"number"==typeof e.degrees?e.degrees:this.startAt}],l.oncomplete=function(){r.nextTick((function(){"function"==typeof e.oncomplete&&e.oncomplete(),i.emit("move:complete")}))},o.isRunning=!0,o.animation=o.animation||new g(this),o.animation.enqueue(l);else{var s=e;e=h.constrain(e,this.range[0],this.range[1]),void 0!==t?(l.duration=t,l.keyFrames=[null,{degrees:e}],l.fps=n||this.fps,this.to(l)):(this.value=e,e+=this.offset,this.invert&&(e=h.map(e,this.degreeRange[0],this.degreeRange[1],this.degreeRange[1],this.degreeRange[0])),this.update(e),o.history.length>5&&o.history.shift(),o.history.push({timestamp:Date.now(),degrees:e,target:s}))}return this},n.step=function(e,t){return this.to(this.last.target+e,t)},n.move=function(e,t){return console.warn("Servo.prototype.move has been renamed to Servo.prototype.to"),this.to(e,t)},n.min=function(e,t){return this.to(this.range[0],e,t)},n.max=function(e,t){return this.to(this.range[1],e,t)},n.center=function(e,t){return this.to(Math.abs((this.range[0]+this.range[1])/2),e,t)},n.home=function(){return this.to(this.startAt)},n.sweep=function(e){var t={keyFrames:[{value:this.range[0]},{value:this.range[1]}],metronomic:!0,loop:!0,easing:"inOutSine"};return Array.isArray(e)?t.keyFrames=v(e):"object"===a(e)&&null!==e&&(Object.assign(t,e),Array.isArray(t.range)&&(t.keyFrames=v(t.range))),this.to(t)},n.stop=function(){var e=m.get(this);return e.animation&&e.animation.stop(),"continuous"===this.type?this.to(this.deadband.reduce((function(e,t){return Math.round((e+t)/2)}))):clearInterval(this.interval),this},t}(p);function v(e){return e.map((function(e){return{value:e}}))}y.prototype[g.normalize]=function(e){var t=this.last?this.last.target:this.startAt;return null===e[0]&&(e[0]={value:t}),"number"==typeof e[0]&&(e[0]={value:t+e[0]}),e.map((function(e){return null!==e&&("number"==typeof e?e={step:e}:("number"==typeof e.degrees&&(e.value=e.degrees,delete e.degrees),"number"==typeof e.copyDegrees&&(e.copyValue=e.copyDegrees,delete e.copyDegrees)),e.easing||(e.easing="linear")),e}))},y.prototype[g.render]=function(e){return this.to(e[0])},["clockWise","cw","counterClockwise","ccw"].forEach((function(e){y.prototype[e]=function(t){var n;return t=void 0===t?1:t,"continuous"!==this.type&&this.board.error("Servo","Servo.prototype.".concat(e," is only available for continuous servos")),n="cw"===e||"clockWise"===e?[t,0,1,this.deadband[1]+1,this.range[1]]:[t,0,1,this.deadband[0]-1,this.range[0]],this.to(0|h.scale.apply(null,n))}})),y.Continuous=function(e){"use strict";function t(t){var n={};return"object"===a(t)?Object.assign(n,t):n.pin=t,n.type="continuous",e.call(this,n)||this}return l(t,e),t}(y);var _=function(e,t,n){"use strict";function r(t){return e.call(this,t)||this}l(r,e);var o,a,s,u=r.prototype;return u[t]=function(e){var t=this;return e.map((function(n,i){if(null!==n&&Array.isArray(n)){var o=t[i];o instanceof r&&(o=o[0]);var a=o.last?o.last.target:o.startAt;return null===n[0]&&(n[0]={value:a}),Array.isArray(n)&&null===n[0]&&(e[i][0]={value:a}),t[i][g.normalize](n)}return n&&"number"==typeof n.degrees&&(n.value=n.degrees,delete n.degrees),n}))},u[n]=function(e){return this.each((function(t,n){return t.to(e[n])}))},o=r,(a=[{key:"type",get:function(){return y}}])&&i(o.prototype,a),s&&i(o,s),Object.defineProperty(o,"prototype",{writable:!1}),o}(f,g.normalize,g.render);f.installMethodForwarding(_.prototype,y.prototype,{skip:[g.normalize,g.render]}),y.Collection=_,r.env.IS_TEST_MODE&&(y.Controllers=b,y.purge=function(){m.clear()}),e.exports=y},2330:(e,t,n)=>{var r=n(107);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var s=n(683),u=n(1105),c=new Map,d={cathode:[63,6,91,79,102,109,125,7,127,103],anode:[64,121,36,48,25,18,2,120,0,24]},f=function(){"use strict";function e(t){if(!(this instanceof e))return new e(t);Array.isArray(t)?t={pins:{data:t[0],clock:t[1],latch:t[2],reset:4===t.length?t[3]:null}}:"object"===l(t.pins)&&Array.isArray(t.pins)&&(t.pins={data:t.pins[0],clock:t.pins[1],latch:t.pins[2],reset:4===t.pins.length?t.pins[3]:null}),s.Component.call(this,t=s.Options(t)),this.size=t.size||1,this.pins.reset=void 0!==t.pins.reset?t.pins.reset:null;var n=void 0!==t.isAnode&&t.isAnode,r=n?255:0,i={isAnode:n,value:new Array(this.size).fill(r),encoded:d[n?"anode":"cathode"],clear:r};c.set(this,i),Object.defineProperties(this,{isAnode:{get:function(){return n}},value:{get:function(){return i.value}}})}var t=e.prototype;return t.display=function(e){var t,n=c.get(this);if("number"==typeof e)return this.display(String(e));if("string"==typeof e){var r=e.match(/([0-9]{1}\.*)/g);r&&r.length&&(t=r.map((function(e){return 1===e.length?128|n.encoded[e]:n.encoded[e[0]]})))}return this.send(t),n.value=t,this},t.send=function(e){var t=c.get(this),n=Array.from(arguments);return 1===n.length&&(n=[e]),Array.isArray(e)&&(n=e),this.io.digitalWrite(this.pins.latch,this.io.LOW),n.forEach((function(e){if("string"==typeof e&&(e=e.charCodeAt(0)),this.isAnode&&255!==e&&!t.encoded.includes(e)&&!t.encoded.includes(-129&e)){var n=d.anode.findIndex((function(t){return t===e}));-1!==n&&(e=d.cathode[n])}this.board.shiftOut(this.pins.data,this.pins.clock,!0,e)}),this),this.io.digitalWrite(this.pins.latch,this.io.HIGH),t.value=n,this},t.clear=function(){var e=c.get(this);return this.send(Array(this.size).fill(e.clear))},t.reset=function(){if(null===this.pins.reset)throw new Error("ShiftRegister was not initialized with a reset pin");return this.io.digitalWrite(this.pins.clock,this.io.LOW),this.io.digitalWrite(this.pins.reset,this.io.LOW),this.io.digitalWrite(this.pins.clock,this.io.HIGH),this.io.digitalWrite(this.pins.reset,this.io.HIGH),this},e}(),p=function(e){"use strict";function t(t){return e.call(this,t)||this}var n,r,o,l,s;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,a(n,r),o=t,(l=[{key:"type",get:function(){return f}}])&&i(o.prototype,l),s&&i(o,s),Object.defineProperty(o,"prototype",{writable:!1}),o}(u);u.installMethodForwarding(p.prototype,f.prototype),u.installMethodForwarding(p.prototype,f.prototype),f.Collection=p,r.env.IS_TEST_MODE&&(f.purge=function(){c.clear()}),e.exports=f},1094:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||a(e,t)||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 a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=n(683),u=n(769),c=n(740),d=new Map,f=new Map,p=c.int16,h=c.uint16,g=c.uint24,m=c.s32,b=c.u32,y="accelerometer",v="altimeter",_="barometer",E="gyro",w="hygrometer",A="magnetometer",C="thermometer";function S(e,t){var n,r=this,i=d.get(this),o=Object.create(null),l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw o}}}}(this.components);try{var s=function(){var a=n.value;i[a]=new S[a](Object.assign({controller:t.controller||e,freq:t.freq,board:r.board},t)),o[a]={get:function(){return i[a]}},O[a]&&(o[O[a]]=o[a])};for(l.s();!(n=l.n()).done;)s()}catch(u){l.e(u)}finally{l.f()}Object.defineProperties(this,o)}S.accelerometer=n(2315),S.altimeter=n(2320),S.barometer=n(2321),S.gyro=n(2322),S.hygrometer=n(2323),S.magnetometer=n(2324),S.orientation=n(2325),S.thermometer=n(2326);var O={thermometer:"temperature"},T={SHT31D:{ADDRESSES:{value:[68]},REGISTER:{value:{SOFT_RESET:12450,MEASURE_HIGH_REPEATABILITY:9216}},initialize:{value:function(e,t){var n=this,r=e.io,i=T.addressResolver(this,t);r.i2cConfig(t),r.i2cWrite(i,[this.REGISTER.SOFT_RESET>>8,255&this.REGISTER.SOFT_RESET]);var o={temperature:null,humidity:null};!function e(){r.i2cWrite(i,[n.REGISTER.MEASURE_HIGH_REPEATABILITY>>8,255&n.REGISTER.MEASURE_HIGH_REPEATABILITY]),setTimeout((function(){r.i2cReadOnce(i,6,(function(t){o.temperature=h(t[0],t[1]),o.humidity=h(t[3],t[4]),n.emit("data",o),e()}))}),16)}()}},identifier:{value:function(e){var t=T.addressResolver(T.SHT31D,e);return"sht-31d-".concat(t)}}},HTU21D:{ADDRESSES:{value:[64]},REGISTER:{value:{HUMIDITY:229,TEMPERATURE:227,SOFT_RESET:254}},initialize:{value:function(e,t){var n=this,r=e.io,i=T.addressResolver(this,t);t.delay=5e4,r.i2cConfig(t),r.i2cWrite(i,this.REGISTER.SOFT_RESET);var o={temperature:null,humidity:null},a=0;!function e(){var t=0===a,l=t?n.REGISTER.TEMPERATURE:n.REGISTER.HUMIDITY;r.i2cReadOnce(i,l,2,(function(r){t?o.temperature=h(r[0],r[1]):o.humidity=h(r[0],r[1]),2==++a&&(a=0,n.emit("data",o)),e()}))}()}},identifier:{value:function(e){var t=T.addressResolver(T.HTU21D,e);return"htu-s1d-".concat(t)}}},HIH6130:{ADDRESSES:{value:[39]},initialize:{value:function(e,t){var n=this,r=e.io,i=T.addressResolver(this,t);r.i2cConfig(t);var o={humidity:null,temperature:null},a=36.65;!function e(){r.i2cWrite(i,160,[0,0]),setTimeout((function(){r.i2cWrite(i,128,[0,0]),r.i2cReadOnce(i,4,(function(t){var r=t[0]>>6;o.humidity=p(63&t[0],t[1]),o.temperature=p(t[2],t[3]>>2),0===r&&a--,1===r&&a++,n.emit("data",o),e()}))}),a)}()}},identifier:{value:function(e){var t=T.addressResolver(T.HIH6130,e);return"hih6130-".concat(t)}}},DHT_I2C_NANO_BACKPACK:{ADDRESSES:{value:[10]},REGISTER:{value:{READ:0}},initialize:{value:function(e,t){var n=this,r=e.io,i=11,o=T.addressResolver(this,t);r.i2cConfig(t);var a=/(\d{2})/.exec(t.controller),l=a&&a.length&&a[0];l&&(i=+l,Number.isNaN(i)&&(i=11));var s={temperature:null,humidity:null};r.i2cWrite(o,[2,i]),r.i2cRead(o,4,(function(e){s.humidity=p(e[0],e[1]),s.temperature=p(e[2],e[3]),n.emit("data",s)}))}},identifier:{value:function(e){var t=T.addressResolver(T.DHT_I2C_NANO_BACKPACK,e);return"dht_i2c_nano_backpack-".concat(t)}}},MPU6050:{ADDRESSES:{value:[104,105]},REGISTER:{value:{SETUP:[107,0],READ:59}},initialize:{value:function(e,t){var n=this,r=e.io,i=T.addressResolver(this,t),o={accelerometer:{},temperature:{},gyro:{}};r.i2cConfig(t),r.i2cWrite(i,this.REGISTER.SETUP),r.i2cRead(i,this.REGISTER.READ,14,(function(e){o.accelerometer={x:p(e[0],e[1]),y:p(e[2],e[3]),z:p(e[4],e[5])},o.temperature=p(e[6],e[7]),o.gyro={x:p(e[8],e[9]),y:p(e[10],e[11]),z:p(e[12],e[13])},n.emit("data",o)}))}},identifier:{value:function(e){var t=T.addressResolver(T.MPU6050,e);return"mpu-6050-".concat(t)}}},BNO055:{ADDRESSES:{value:[40,41]},REGISTER:{value:{READ:{ACCEL:8,MAG:14,GYRO:20,EULER:26,QUARTERNION:32,TEMP:52},LENGTH:{ACCEL:6,MAG:6,GYRO:6,EULER:6,QUARTERNION:8,TEMP:1},OPR_MODE_ADDR:61,OPR_MODES:{CONFIG:0,ACCONLY:1,MAGONLY:2,GYRONLY:3,ACCMAG:4,ACCGYRO:5,MAGGYRO:6,AMG:7,IMUPLUS:8,COMPASS:9,M4G:10,NDOF_FMC_OFF:11,NDOF:12},PWR_MODE_ADDR:62,PWR_MODES:{NORMAL:0,LOW:1,SUSPEND:2},PAGE_ID_ADDR:7,PAGE_STATES:{ZERO:0},CALIBRATION:53,SYS_TRIGGER:63,UNIT_SEL_ADDR:59,AXIS_MAP_CONFIG_ADDR:65,AXIS_MAP_SIGN_ADDR:66}},initialize:{value:function(e,t){var n=this,r=e.io,i=t.calibrationMask||192,o=T.addressResolver(this,t),a={accelerometer:{x:null,y:null,z:null},gyro:{x:null,y:null,z:null},magnetometer:{x:null,y:null,z:null},orientation:{euler:{heading:null,roll:null,pitch:null},quarternion:{w:null,x:null,y:null,z:null}},temperature:null,calibration:null};r.i2cConfig(t),r.i2cWriteReg(o,this.REGISTER.OPR_MODE_ADDR,this.REGISTER.OPR_MODES.CONFIG),r.i2cWriteReg(o,this.REGISTER.PAGE_ID_ADDR,this.REGISTER.PAGE_STATES.ZERO),r.i2cWriteReg(o,this.REGISTER.SYS_TRIGGER,32),new Promise((function(e){setTimeout((function(){r.i2cWriteReg(o,n.REGISTER.PWR_MODE_ADDR,n.REGISTER.PWR_MODES.NORMAL),r.i2cWriteReg(o,n.REGISTER.SYS_TRIGGER,t.enableExternalCrystal?128:0);var i=t.axisMap||36;r.i2cWriteReg(o,n.REGISTER.AXIS_MAP_CONFIG_ADDR,i);var a=t.axisSign||0;r.i2cWriteReg(o,n.REGISTER.AXIS_MAP_SIGN_ADDR,a),setTimeout((function(){r.i2cWriteReg(o,n.REGISTER.OPR_MODE_ADDR,n.REGISTER.OPR_MODES.NDOF),e()}),10)}),650)})).then((function(){return new Promise((function(e){!function t(){r.i2cReadOnce(o,n.REGISTER.CALIBRATION,1,(function(r){var o=r[0],l=a.calibration!==o;a.calibration=o,l&&n.emit("calibration",a.calibration),(o&i)===i?(n.emit("calibrated"),e()):t()}))}()}))})).then((function(){r.i2cRead(o,n.REGISTER.READ.TEMP,2,(function(e){a.temperature=e[0];var t=a.calibration!==e[1];a.calibration=e[1],n.emit("data",a),t&&n.emit("calibration",a.calibration)})),r.i2cRead(o,n.REGISTER.READ.ACCEL,18,(function(e){a.accelerometer={x:p(e[1],e[0]),y:p(e[3],e[2]),z:p(e[5],e[4])},a.magnetometer={x:p(e[7],e[6]),y:p(e[9],e[8]),z:p(e[11],e[10])},a.gyro={x:p(e[13],e[12]),y:p(e[15],e[14]),z:p(e[17],e[16])},n.emit("data",a)})),r.i2cRead(o,n.REGISTER.READ.EULER,14,(function(e){a.orientation.euler={heading:p(e[1],e[0]),roll:p(e[3],e[2]),pitch:p(e[5],e[4])},a.orientation.quarternion={w:p(e[7],e[6]),x:p(e[9],e[8]),y:p(e[11],e[10]),z:p(e[13],e[12])},n.emit("data",a)}))}))}},identifier:{value:function(e){var t=T.addressResolver(T.BNO055,e);return"bno055-".concat(t)}}},MPL115A2:{ADDRESSES:{value:[96]},REGISTER:{value:{COEFFICIENTS:4,PADC_MSB:0,CONVERT:18}},initialize:{value:function(e,t){var n=this,r=e.io,i=T.addressResolver(this,t);r.i2cConfig(t);var o={pressure:null,temperature:null},a={a0:null,b1:null,b2:null,c12:null},l=function(e){var t=h(e[0],e[1])>>6,r=h(e[2],e[3])>>6;o.pressure=a.a0+(a.b1+a.c12*r)*t+a.b2*r,o.temperature=r,n.emit("data",o),s()},s=function(){r.i2cWriteReg(i,n.REGISTER.CONVERT,0),r.i2cReadOnce(i,n.REGISTER.PADC_MSB,4,l)};new Promise((function(e){r.i2cReadOnce(i,n.REGISTER.COEFFICIENTS,8,(function(t){var n=p(t[0],t[1]),r=p(t[2],t[3]),i=p(t[4],t[5]),o=p(t[6],t[7])>>2;a.a0=n/8,a.b1=r/8192,a.b2=i/16384,a.c12=o/4194304,e()}))})).then(s)}},identifier:{value:function(e){var t=T.addressResolver(T.MPL115A2,e);return"mpl115a2-".concat(t)}}},MPL3115A2:{ADDRESSES:{value:[96]},REGISTER:{value:{STATUS:0,PRESSURE:1,CONFIG:19,BAR_IN_MSB:20,BAR_IN_LSB:21,CONTROL:38}},MASK:{value:{STATUS:{PRESSURE_DATA_READ:4},CONTROL:{SBYB:1,OS128:56,ALTIMETER:128,PRESSURE:0},CONFIG:{TDEFE:1,PDEFE:2,DREM:4}}},initialize:{value:function(e,t){var n=this,r=e.io,i=!1,o=null,a=0,l=T.addressResolver(this,t),s=0,u={pressure:0,altitude:0,temperature:0};void 0!==t.elevation&&(o=t.elevation),null!==o&&o<=0&&(a=Math.abs(o)+1,o=1);var c=function e(t){r.i2cReadOnce(l,n.REGISTER.STATUS,1,(function(r){r[0]&n.MASK.STATUS.PRESSURE_DATA_READ?t():setTimeout((function(){e(t)}),100)}))},d=function e(){var t=i?n.MASK.CONTROL.PRESSURE:n.MASK.CONTROL.ALTIMETER,o=n.MASK.CONTROL.SBYB|n.MASK.CONTROL.OS128|t;r.i2cWrite(l,n.REGISTER.CONTROL,o),c((function(){r.i2cReadOnce(l,n.REGISTER.PRESSURE,6,(function(t){var r=g(t[1],t[2],t[3])>>4,o=h(t[4],t[5])>>4;if(u.temperature=o,i)u.pressure=r,n.emit("data",u);else{var l=t[1],c=t[2],d=t[3];s=(3*s+((l<<8|c)+(d>>4)/16))/4,u.altitude=s-a}i=!i,e()}))}))},f=[];r.i2cConfig(Object.assign(t,{settings:{stopTX:!0}})),r.i2cWriteReg(l,45,0),r.i2cWriteReg(l,this.REGISTER.BAR_IN_MSB,0),r.i2cWriteReg(l,this.REGISTER.BAR_IN_LSB,0),r.i2cWriteReg(l,this.REGISTER.CONFIG,this.MASK.CONFIG.TDEFE|this.MASK.CONFIG.PDEFE|this.MASK.CONFIG.DREM),null!==o?function e(){r.i2cWrite(l,n.REGISTER.CONTROL,59),r.i2cWrite(l,n.REGISTER.CONTROL,57),setTimeout((function(){r.i2cReadOnce(l,n.REGISTER.PRESSURE,6,(function(t){var i=t[1],a=t[2],u=(t[3]>>4)/4;if(f.push((i<<10|a<<2)+u),4===f.length){var c=(f[0]+f[1]+f[2]+f[3])/4/Math.pow(1-225577e-10*o,5.255);r.i2cWrite(l,n.REGISTER.BAR_IN_MSB,c/2>>8),r.i2cWrite(l,n.REGISTER.BAR_IN_LSB,c/2&255),r.i2cWrite(l,n.REGISTER.CONTROL,187),r.i2cWrite(l,n.REGISTER.CONTROL,185),setTimeout((function(){r.i2cReadOnce(l,n.REGISTER.PRESSURE,6,(function(e){var t=e[1],n=e[2],r=e[3];s=(t<<8|n)+(r>>4)/16,d()}))}),550)}else e()}))}),500)}():d()}},identifier:{value:function(e){var t=T.addressResolver(T.MPL3115A2,e);return"mpl3115a2-".concat(t)}}},BMP180:{ADDRESSES:{value:[119]},REGISTER:{value:{COEFFICIENTS:170,READ:0,READ_START:244,READ_RESULT:246}},initialize:{value:function(e,t){var n=this,r=e.io,i=null,o=0;void 0!==t.elevation&&(i=t.elevation),(null!=i&&i<=0||null==i)&&(o=Math.abs(i)+1,i=1);var a=T.addressResolver(this,t),l=t.mode||3,s=[5,8,14,26][l],u=c.constrain(l,0,3),d={a1:null,a2:null,a3:null,a4:null,a5:null,a6:null,b1:null,b2:null,b5:null,mb:null,mc:null,md:null};r.i2cConfig(t),new Promise((function(e){r.i2cReadOnce(a,n.REGISTER.COEFFICIENTS,22,(function(t){d.a1=p(t[0],t[1]),d.a2=p(t[2],t[3]),d.a3=p(t[4],t[5]),d.a4=h(t[6],t[7]),d.a5=h(t[8],t[9]),d.a6=h(t[10],t[11]),d.b1=p(t[12],t[13]),d.b2=p(t[14],t[15]),d.mb=p(t[16],t[17]),d.mc=p(t[18],t[19]),d.md=p(t[20],t[21]),e()}))})).then((function(){var e={altitude:null,pressure:null,temperature:null},t=0;!function l(){var f=0===t,h=f?46:52+(u<<6),m=f?2:3,b=f?5:s;r.i2cWriteReg(a,n.REGISTER.READ_START,h),setTimeout((function(){r.i2cReadOnce(a,n.REGISTER.READ_RESULT,m,(function(r){var a,s,h,m,b,y,v,_,E,w;if(f)h=((s=p(r[0],r[1]))-d.a6)*d.a5>>15,m=(d.mc<<11)/(h+d.md)|0,d.b5=h+m|0,e.temperature=(d.b5+8>>4)/10;else{s=g(r[0],r[1],r[2])>>8-u,w=(_=d.b5-4e3)*_>>12,b=(h=d.b2*w>>11)+(m=d.a2*_>>11),y=(2+(4*d.a1+b<<u))/4|0,b=(h=d.a3*_>>13)+(m=d.b1*w>>16)+2>>2,v=d.a4*(b+32768)>>15,a=(E=(s-y)*(5e4>>u))<c.POW_2_31?2*E/v:E/v*2,a>>=0,a+=(h=3038*(h=(a>>8)*(a>>8))>>16)+(m=-7357*a>>16)+3791>>4,e.pressure=a;var A=a/Math.pow(1-225577e-10*i,5.255),C=44330*(1-a/Math.pow(A,1/5.255));e.altitude=Math.round(C-o)}2==++t&&(t=0,n.emit("data",e)),l()}))}),b)}()}))}},identifier:{value:function(e){var t=T.addressResolver(T.BMP180,e);return"bmp180-".concat(t)}}},BMP280:{ADDRESSES:{value:[119]},REGISTER:{value:{COEFFICIENTS:136,CONFIG:245,MEASURE:244,PRESSURE:247,TEMPERATURE:250,RESET:224}},initialize:{value:function(e,t){var n=this,r=e.io,i=null,o=0;void 0!==t.elevation&&(i=t.elevation),(null!=i&&i<=0||null==i)&&(o=Math.abs(i)+1,i=1);var a=T.addressResolver(this,t),l={T1:null,T2:null,T3:null,P1:null,P2:null,P3:null,P4:null,P5:null,P6:null,P7:null,P8:null,P9:null};r.i2cConfig(t),r.i2cWrite(a,this.REGISTER.RESET,182),new Promise((function(e){r.i2cReadOnce(a,n.REGISTER.COEFFICIENTS,24,(function(t){l.T1=h(t[1],t[0]),l.T2=p(t[3],t[2]),l.T3=p(t[5],t[4]),l.P1=h(t[7],t[6]),l.P2=p(t[9],t[8]),l.P3=p(t[11],t[10]),l.P4=p(t[13],t[12]),l.P5=p(t[15],t[14]),l.P6=p(t[17],t[16]),l.P7=p(t[19],t[18]),l.P8=p(t[21],t[20]),l.P9=p(t[23],t[22]),e()}))})).then((function(){r.i2cWrite(a,n.REGISTER.MEASURE,63);var e={altitude:null,pressure:null,temperature:null};r.i2cRead(a,n.REGISTER.PRESSURE,6,(function(t){var r,a,s,u=0,d=m(g(t[0],t[1],t[2])),f=m(g(t[3],t[4],t[5]));d>>=4;var p=((f>>=4)>>4)-l.T1;if(r=(a=((f>>3)-(l.T1<<1))*l.T2>>11)+(s=(p*p>>12)*l.T3>>14),e.temperature=(5*r+128>>8)/100,a=void 0,s=void 0,s=(((a=m(r>>1)-64e3)>>2)*(a>>2)>>11)*m(l.P6),s=((s+=a*m(l.P5)<<1)>>2)+(m(l.P4)<<16),a=(l.P3*((a>>2)*(a>>2)>>13)>>3)+(m(l.P2)*a>>1)>>18,0===(a=(c.POW_2_15+a)*m(l.P1)>>15))return 0;u=(u=3125*b(m(c.POW_2_20)-d-(s>>12)))<c.POW_2_31?(u<<1>>>0)/b(a):2*(u/b(a)>>>0);var h=(u=b(u)>>>0)>>3;a=m(l.P9)*m(h*h>>13)>>12,s=m(u>>2)*m(l.P8)>>13,u=b(m(u)+(a+s+l.P7>>4)),e.pressure=u;var y=u/Math.pow(1-225577e-10*i,5.255),v=44330*(1-u/Math.pow(y,1/5.255));e.altitude=Math.round(v-o),n.emit("data",e)}))}))}},identifier:{value:function(e){var t=T.addressResolver(T.BMP280,e);return"bmp280-".concat(t)}}},BME280:{ADDRESSES:{value:[119]},REGISTER:{value:{COEFFICIENTS_TP:136,COEFFICIENTS_H:225,CONFIG:245,MEASURE_H:242,MEASURE_TP:244,PRESSURE:247,TEMPERATURE:250,HUMIDITY:253,RESET:224}},initialize:{value:function(e,t){var n=this,i=e.io,o=null,a=0;void 0!==t.elevation&&(o=t.elevation),(null!=o&&o<=0||null==o)&&(a=Math.abs(o)+1,o=1);var l=T.addressResolver(this,t),s={T1:null,T2:null,T3:null,P1:null,P2:null,P3:null,P4:null,P5:null,P6:null,P7:null,P8:null,P9:null,H1:null,H2:null,H3:null,H4:null,H5:null,H6:null};i.i2cConfig(t),i.i2cWrite(l,this.REGISTER.RESET,182),new Promise((function(e){Promise.all([new Promise((function(e){i.i2cReadOnce(l,136,24,(function(t){s.T1=h(t[1],t[0]),s.T2=p(t[3],t[2]),s.T3=p(t[5],t[4]),s.P1=h(t[7],t[6]),s.P2=p(t[9],t[8]),s.P3=p(t[11],t[10]),s.P4=p(t[13],t[12]),s.P5=p(t[15],t[14]),s.P6=p(t[17],t[16]),s.P7=p(t[19],t[18]),s.P8=m(p(t[21],t[20])),s.P9=m(p(t[23],t[22])),e()}))})),new Promise((function(e){i.i2cReadOnce(l,161,1,(function(t){s.H1=c.u8(t[0]),e()}))})),new Promise((function(e){i.i2cReadOnce(l,225,8,(function(t){s.H2=m(p(t[1],t[0])),s.H3=m(t[2]),s.H4=m(t[3]<<4|15&t[4]),s.H5=m(t[5]<<4|t[4]>>4),s.H6=c.s8(t[6]),e()}))}))]).then(e)})).then((function(){i.i2cWrite(l,n.REGISTER.MEASURE_H,5),i.i2cWrite(l,n.REGISTER.MEASURE_TP,183);var e={altitude:null,pressure:null,humidity:null,temperature:null},t=Date.now();i.i2cRead(l,n.REGISTER.PRESSURE,8,(function(i){if(r.env.IS_TEST_MODE||!(t+1e3>Date.now())){var l,u,d,f,p=0,y=m(g(i[0],i[1],i[2])),v=m(g(i[3],i[4],i[5])),_=m(h(i[6],i[7]));y>>=4;var E=((v>>=4)>>4)-s.T1;if(l=(u=((v>>3)-(s.T1<<1))*s.T2>>11)+(d=(E*E>>12)*s.T3>>14),e.temperature=(5*l+128>>8)/100,u=void 0,d=void 0,d=(((u=m(l>>1)-64e3)>>2)*(u>>2)>>11)*m(s.P6),d=((d+=u*m(s.P5)<<1)>>2)+(m(s.P4)<<16),u=(s.P3*((u>>2)*(u>>2)>>13)>>3)+(m(s.P2)*u>>1)>>18,0===(u=(c.POW_2_15+u)*m(s.P1)>>15))return 0;p=(p=3125*b(m(c.POW_2_20)-y-(d>>12)))<c.POW_2_31?(p<<1>>>0)/b(u):2*(p/b(u)>>>0);var w=(p=b(p)>>>0)>>3;u=m(s.P9)*m(w*w>>13)>>12,d=m(p>>2)*s.P8>>13,p=b(m(p)+(u+d+s.P7>>4)),e.pressure=p;var A=p/Math.pow(1-225577e-10*o,5.255),C=44330*(1-p/Math.pow(A,1/5.255));e.altitude=Math.round(C-a),f=m(l-76800),f=((_<<14)-m(s.H4<<20)-s.H5*f+c.POW_2_14>>15)*((((f*s.H6>>10)*((f*s.H3>>11)+c.POW_2_15)>>10)+c.POW_2_21)*s.H2+c.POW_2_13>>14),f-=((f>>15)*(f>>15)>>7)*m(s.H1)>>4,f=c.constrain(f,0,419430400),e.humidity=b(f>>12),n.emit("data",e)}}))}))}},identifier:{value:function(e){var t=T.addressResolver(T.BME280,e);return"bme280-".concat(t)}}},SI7020:{ADDRESSES:{value:[64]},REGISTER:{value:{HUMIDITY:229,TEMPERATURE:224}},initialize:{value:function(e,t){var n=this,r=e.io,i=T.addressResolver(this,t);t.delay=5e4,r.i2cConfig(t);var o={temperature:null,humidity:null};r.i2cRead(i,this.REGISTER.TEMPERATURE,2,(function(e){o.temperature=h(e[0],e[1]),n.emit("data",o)})),r.i2cRead(i,this.REGISTER.HUMIDITY,2,(function(e){o.humidity=h(e[0],e[1]),n.emit("data",o)}))}},identifier:{value:function(e){var t=T.addressResolver(T.SI7020,e);return"si7020-".concat(t)}}},MS5611:{ADDRESSES:{value:[119]},REGISTER:{value:{COEFFICIENTS:162,READ:0,PRESSURE:64,TEMPERATURE:80,RESET:30}},initialize:{value:function(e,t){var n=this,r=e.io,i=null,o=0;void 0!==t.elevation&&(i=t.elevation),(null!=i&&i<=0||null==i)&&(o=Math.abs(i)+1,i=1);var a=T.addressResolver(this,t),l={altitude:null,pressure:null,temperature:null},s=t.mode||5,u=[1,2,3,4,5,10][s],d={C1:null,C2:null,C3:null,C4:null,C5:null,C6:null},f=Object.keys(d);t.delay=1e3*u,r.i2cConfig(t),r.i2cWrite(a,this.REGISTER.RESET),new Promise((function(e){setTimeout((function(){var t=f.map((function(e,t){var i=n.REGISTER.COEFFICIENTS+2*t;return new Promise((function(t){r.i2cReadOnce(a,i,2,(function(n){d[e]=h(n[0],n[1]),t()}))}))}));Promise.all(t).then(e)}),50)})).then((function(){var e,t,f,p,h,m,b,y,v,_,E=0;!function w(){var A=0===E,C=(A?80:64)+s;r.i2cWrite(a,C),A?(t=0,f=0,p=0,y=0,v=0,_=0):(e=0,h=0,m=0,b=0),setTimeout((function(){r.i2cReadOnce(a,n.REGISTER.READ,3,(function(r){if(A)t=g(r[0],r[1],r[2]),f=t-d.C5*c.POW_2_8,(p=2e3+f*d.C6/c.POW_2_23)<2e3&&(y=Math.pow(f,2)/c.POW_2_31,v=5*Math.pow(p-2e3,2)/2,_=5*Math.pow(p-2e3,2)/c.POW_2_2,p<-1500&&(v+=7*Math.pow(p+1500,2),_+=11*Math.pow(p+1500,2)/2)),p-=y,l.temperature=p/100;else{e=g(r[0],r[1],r[2]),h=d.C2*c.POW_2_16+d.C4*f/c.POW_2_7,m=d.C1*c.POW_2_15+d.C3*f/c.POW_2_8,h-=v,b=(e*(m-=_)/c.POW_2_21-h)/c.POW_2_15,l.pressure=b;var a=b/Math.pow(1-225577e-10*i,5.255),s=44330*(1-b/Math.pow(a,1/5.255));l.altitude=s-o}2==++E&&(E=0,n.emit("data",l)),w()}))}),u)}()}))}},identifier:{value:function(e){var t=T.addressResolver(T.MS5611,e);return"ms5611-".concat(t)}}},TH02:{ADDRESSES:{value:[64]},COMMAND:{value:{MEASURE_HUMIDITY:1,MEASURE_TEMPERATURE:17}},REGISTER:{value:{STATUS:0,READ:1,CONFIG:3}},initialize:{value:function(e,t){var n=this,r=e.io,i=T.addressResolver(this,t),o={temperature:null,humidity:null},a=0;r.i2cConfig(Object.assign(t,{settings:{stopTX:!0}}));!function e(){var t=0===a,l=t?n.COMMAND.MEASURE_TEMPERATURE:n.COMMAND.MEASURE_HUMIDITY;new Promise((function(e){r.i2cWrite(i,n.REGISTER.CONFIG,l);!function t(){r.i2cReadOnce(i,n.REGISTER.STATUS,1,(function(n){1&n[0]?t():e()}))}()})).then((function(){Promise.all([new Promise((function(e){r.i2cReadOnce(i,1,1,(function(t){e(t[0])}))})),new Promise((function(e){r.i2cReadOnce(i,2,1,(function(t){e(t[0])}))}))]).then((function(r){t?o.temperature=(h(r[0],r[1])>>2)/32-50:o.humidity=(h(r[0],r[1])>>4)/16-24,2==++a&&(a=0,n.emit("data",o)),e()}))}))}()}},identifier:{value:function(e){var t=T.addressResolver(T.TH02,e);return"th02-".concat(t)}}},LSM303C:{ADDRESSES:{value:[29,30]},COMMAND:{value:{ACC_SETUP:[4,63,63,63],MAG_SETUP:[216,96,64,216,8,0]}},REGISTER:{value:{ACC_CTRL_SEQ:[35,32,32,32],ACC_STATUS:39,ACC_OUTX_L:40,ACC_OUTX_H:41,ACC_OUTY_L:42,ACC_OUTY_H:43,ACC_OUTZ_L:44,ACC_OUTZ_H:45,MAG_CTRL_SEQ:[32,33,36,32,35,34],MAG_STATUS:39,MAG_OUTX_L:40,MAG_OUTX_H:41,MAG_OUTY_L:42,MAG_OUTY_H:43,MAG_OUTZ_L:44,MAG_OUTZ_H:45,MAG_TEMP_OUT_L:46,MAG_TEMP_OUT_H:47}},initialize:{value:function(e,t){var n=this,r=.06103515625,i=.00048828125,a=e.io,l=this.freq||40,s=o(this.ADDRESSES,2),u=s[0],c=s[1],d={},f={},h={temperature:0,magnetometer:f,accelerometer:d},g=function(e){a.i2cReadOnce(u,n.REGISTER.ACC_OUTX_L,6,(function(t){d.x=p(t[1],t[0])*r,d.y=p(t[3],t[2])*r,d.z=p(t[5],t[4])*r,e()}))},m=function(e){a.i2cReadOnce(c,n.REGISTER.MAG_OUTX_L,6,(function(t){f.x=p(t[1],t[0])*i,f.y=p(t[3],t[2])*i,f.z=p(t[5],t[4])*i,e()}))},b=function(e){a.i2cReadOnce(c,n.REGISTER.MAG_TEMP_OUT_L,2,(function(t){h.temperature=p(t[1],t[0]),e()}))};a.i2cConfig(Object.assign({},t,{address:u})),n.REGISTER.ACC_CTRL_SEQ.forEach((function(e,t){a.i2cWrite(u,e,n.COMMAND.ACC_SETUP[t])})),a.i2cConfig(Object.assign({},t,{address:c})),n.REGISTER.MAG_CTRL_SEQ.forEach((function(e,t){a.i2cWrite(c,e,n.COMMAND.MAG_SETUP[t])})),function e(){Promise.all([new Promise(g),new Promise(m),new Promise(b)]).then((function(){n.emit("data",h),setTimeout(e,l)}))}()}},identifier:{value:function(e){var t=T.addressResolver(T.LSM303C,e);return"lsm303c-".concat(t)}}}};T.BMP085=T.BMP180,T.GY521=T.MPU6050,T.SI7021=T.SI7020,T.DHT11_I2C_NANO_BACKPACK=T.DHT_I2C_NANO_BACKPACK,T.DHT21_I2C_NANO_BACKPACK=T.DHT_I2C_NANO_BACKPACK,T.DHT22_I2C_NANO_BACKPACK=T.DHT_I2C_NANO_BACKPACK,T.get=function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.has(e)||f.set(e,{}),(n=f.get(e))[r=T[t].identifier.value(o)]||(i=new u,Object.defineProperties(i,T[t]),i.initialize(e,o),n[r]=i),n[r]},T.addressResolver=function(e,t){var n=e.ADDRESSES,r=t.address||(Array.isArray(n)?n[0]:n.value[0]);return t.address=r,r},T.clear=function(){f.clear()};var P={MPU6050:{initialize:{value:function(e){S.call(this,"MPU6050",e)}},components:{value:[y,E,C]}},BNO055:{initialize:{value:function(e){var t=this,n="BNO055";d.get(this).calibrationMask=e.calibrationMask||192,T.get(this.board,n,e).on("calibrated",(function(){return t.emit("calibrated")})).on("calibration",(function(e){return t.emit("calibration",e)})),S.call(this,n,e)}},components:{value:[y,E,A,"orientation",C]},calibration:{get:function(){return this.orientation.calibration}},isCalibrated:{get:function(){var e=d.get(this).calibrationMask;return(this.orientation.calibration&e)===e}}},MPL115A2:{initialize:{value:function(e){S.call(this,"MPL115A2",e)}},components:{value:[_,C]}},SHT31D:{initialize:{value:function(e){S.call(this,"SHT31D",e)}},components:{value:[w,C]}},HTU21D:{initialize:{value:function(e){S.call(this,"HTU21D",e)}},components:{value:[w,C]}},HIH6130:{initialize:{value:function(e){S.call(this,"HIH6130",e)}},components:{value:[w,C]}},DHT_I2C_NANO_BACKPACK:{initialize:{value:function(e){S.call(this,"DHT_I2C_NANO_BACKPACK",e)}},components:{value:[w,C]}},MPL3115A2:{initialize:{value:function(e){S.call(this,"MPL3115A2",e)}},components:{value:[v,_,C]}},BMP180:{initialize:{value:function(e){S.call(this,"BMP180",e)}},components:{value:[v,_,C]}},BMP280:{initialize:{value:function(e){S.call(this,"BMP280",e)}},components:{value:[v,_,C]}},BME280:{initialize:{value:function(e){S.call(this,"BME280",e)}},components:{value:[v,_,w,C]}},SI7020:{initialize:{value:function(e){S.call(this,"SI7020",e)}},components:{value:[w,C]}},MS5611:{initialize:{value:function(e){S.call(this,"MS5611",e)}},components:{value:[v,_,C]}},TH02:{initialize:{value:function(e){S.call(this,"TH02",e)}},components:{value:[w,C]}},LSM303C:{initialize:{value:function(e){S.call(this,"LSM303C",e)}},components:{value:[A,C,y]}}};P.BMP085=P.BMP180,P.GY521=P.MPU6050,P.SI7021=P.SI7020,P.DHT11_I2C_NANO_BACKPACK=P.DHT_I2C_NANO_BACKPACK,P.DHT21_I2C_NANO_BACKPACK=P.DHT_I2C_NANO_BACKPACK,P.DHT22_I2C_NANO_BACKPACK=P.DHT_I2C_NANO_BACKPACK;var R=function(e){"use strict";function t(t){var n;n=e.call(this)||this,s.Component.call(n,t=s.Options(t)),s.Controller.call(n,P,t);d.set(n,{}),n.freq=t.freq||20,"function"==typeof n.initialize&&n.initialize(t),n.isReady=!1,setInterval((function(){n.isReady&&n.emit("data",n)}),n.freq);var r=n.components.slice();return n.components&&n.components.length>0&&n.components.forEach((function(e){n[e]instanceof u&&n[e].on("change",(function(){if(r.length){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}r.length||n.isReady||(n.isReady=!0),n.isReady&&n.emit("change",n,e)}))})),n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r),t}(u);R.Drivers=T,r.env.IS_TEST_MODE&&(R.Controllers=P,R.purge=function(){d.clear()}),e.exports=R},2548:(e,t,n)=>{var r=n(107),i={micro:function(e){for(var t,n=r.hrtime(),i=0;e>i;)i=(1e9*(t=r.hrtime(n))[0]+t[1])/1e3},milli:function(e){i.micro(1e3*e)}};e.exports=i},2578:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var i=n(683),o=n(740),a=new Map,l=new Map,s=o.TAU,u=function(){"use strict";function e(e){this.rpm=180,this.direction=-1,this.speed=0,this.accel=0,this.decel=0,this.stepper=e}return e.prototype.move=function(e,t,n,r,i,o){this.stepper.io.stepperStep.apply(this.stepper.io,[this.stepper.id,t,e,n,r,i,o])},e}();function c(e){var t=0;for(e=e.slice();e.length;)this["motor".concat(++t)]=e.shift()}u.PROPERTIES=["rpm","direction","speed","accel","decel"],u.DEFAULTS=[180,-1,0,0,0];var d=function(){"use strict";function e(t){var n,r,o,s,d=this,f=[];if(i.Component.call(this,t=i.Options(t)),r=this.io,o=r.pins,s=r.MODES,!o.some((function(e){return e.supportedModes.includes(s.STEPPER)})))throw new Error("Stepper is not supported");if(!t.pins)throw new Error("Stepper requires a `pins` object or array");if(!t.stepsPerRev)throw new Error("Stepper requires a `stepsPerRev` number value");if(l.set(this.board,l.get(this.board)||[]),this.id=l.get(this.board).length,this.id>=6)throw new Error("Stepper cannot exceed max steppers (".concat(6,")"));if(Array.isArray(this.pins)){if(2===this.pins.length&&!t.type)throw new Error("Stepper requires a `type` number value (DRIVER, TWO_WIRE)");t.type===e.TYPE.DRIVER?this.pins={step:this.pins[0],dir:this.pins[1]}:this.pins=new c(this.pins)}if(t.type||(this.pins.dir?t.type=e.TYPE.DRIVER:this.pins.motor3?t.type=e.TYPE.FOUR_WIRE:t.type=e.TYPE.TWO_WIRE),f.push(this.id,t.type,t.stepsPerRev),t.type===e.TYPE.DRIVER){if(void 0===this.pins.dir||void 0===this.pins.step)throw new Error("Stepper.TYPE.DRIVER expects: `pins.dir`, `pins.step`");f.push(this.pins.dir,this.pins.step)}if(t.type===e.TYPE.TWO_WIRE){if(void 0===this.pins.motor1||void 0===this.pins.motor2)throw new Error("Stepper.TYPE.TWO_WIRE expects: `pins.motor1`, `pins.motor2`");f.push(this.pins.motor1,this.pins.motor2)}if(t.type===e.TYPE.FOUR_WIRE){if(void 0===this.pins.motor1||void 0===this.pins.motor2||void 0===this.pins.motor3||void 0===this.pins.motor4)throw new Error("Stepper.TYPE.FOUR_WIRE expects: `pins.motor1`, `pins.motor2`, `pins.motor3`, `pins.motor4`");f.push(this.pins.motor1,this.pins.motor2,this.pins.motor3,this.pins.motor4)}f.slice(3).forEach((function(e){d.io.pinMode(e,d.io.MODES.STEPPER)})),this.io.stepperConfig.apply(this.io,f),l.get(this.board).push(this),n=u.PROPERTIES.reduce((function(e,n,r){return e[n]=void 0!==t[n]?t[n]:u.DEFAULTS[r],e}),{isRunning:!1,type:t.type,pins:this.pins}),a.set(this,n),Object.defineProperties(this,{type:{get:function(){return n.type}},pins:{get:function(){return n.pins}}})}var t=e.prototype;return t.rpm=function(e){var t=a.get(this);return void 0===e?t.rpm:(t.rpm=e,t.speed=Math.round(e*s*100/60),this)},t.speed=function(e){var t=a.get(this);return void 0===e?t.speed:(t.speed=e,t.rpm=Math.round(e/s/100*60),this)},t.ccw=function(){return this.direction(0)},t.cw=function(){return this.direction(1)},t.step=function(e,t){var n,i,o,l,s,c=this;function d(e){s=!1,t&&t(e)}return n="object"===r(e)?e.steps||0:Math.floor(e),i=new u(this),o=a.get(this),s=!0,(l=[]).push(n),"object"===r(e)&&u.PROPERTIES.forEach((function(t){void 0!==e[t]&&c[t](e[t])})),o.speed||(this.rpm(o.rpm),i.speed=this.speed()),u.PROPERTIES.slice(1).forEach((function(e){l.push(i[e]=c[e]())})),0===n&&d(new Error("Must set a number of steps when calling `step()`")),i.direction<0&&d(new Error("Must set a direction before calling `step()`")),s&&(o.isRunning=!0,l.push((function(e){o.isRunning=!1,t(null,e)})),i.move.apply(i,l)),this},e}();Object.defineProperties(d,{TYPE:{value:Object.freeze({DRIVER:1,TWO_WIRE:2,FOUR_WIRE:4})},RUNSTATE:{value:Object.freeze({STOP:0,ACCEL:1,DECEL:2,RUN:3})},DIRECTION:{value:Object.freeze({CCW:0,CW:1})}}),["direction","accel","decel"].forEach((function(e){d.prototype[e]=function(t){var n=a.get(this);return void 0===t?n[e]:(n[e]=t,this)}})),e.exports=d},2579:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var s=n(683),u=n(1105),c=n(769),d=n(740),f=function(e){"use strict";function t(t){var n;n=e.call(this)||this,s.Component.call(n,t=s.Options(t));var r=d.debounce((function(e){return n.emit(e,n)}),5);t.type=t.type||"NO";var i="NO"===t.type,o=null,a=void 0!==t.invert?t.invert:i||!1,l=1,u=0;return a&&(l^=1,u^=1),n.io.pinMode(n.pin,n.io.MODES.INPUT),i&&n.io.digitalWrite(n.pin,n.io.HIGH),n.io.digitalRead(n.pin,(function(e){o=e,r.call(n,n.isOpen?"open":"close")})),Object.defineProperties(n,{value:{get:function(){return Number(this.isOpen)}},invert:{get:function(){return a},set:function(e){l=(a=e)?0:1,u=a?1:0}},closeValue:{get:function(){return l},set:function(e){l=e,u=1^e}},openValue:{get:function(){return u},set:function(e){u=e,l=1^e}},isOpen:{get:function(){return o===u}},isClosed:{get:function(){return o===l}}}),n}return a(t,e),t}(c),p=function(e){"use strict";function t(t){return e.call(this,t)||this}return a(t,e),n=t,(r=[{key:"type",get:function(){return f}}])&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(u.Emitter);u.installMethodForwarding(p.prototype,f.prototype),f.Collection=p,e.exports=f},2326:(e,t,n)=>{var r=n(107);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=n(683),a=n(453),l=n(2072),s=n(740),u=s.toFixed,c=s.POW_2_16,d=Math.log,f=Math.round,p=Math.trunc,h=273.15;function g(e,t){var n=this,r=e.pin;this.io.pinMode(r,this.io.MODES.ANALOG),this.io.analogRead(r,(function(e){t.call(n,e)}))}var m=new Map,b={MAX31850K:{initialize:{value:function(e,t){var n=this,r=59,i=68,o=190,a=9,l=t.pin,s=t.freq||100,u=function(e){for(var t=0,n=6;n>0;n--)t=256*t+e[n];return t};e.io.sendOneWireConfig(l,!0),e.io.sendOneWireSearch(l,(function(t,c){if(t)n.emit("error",t);else if(n.devices=c.filter((function(e){return e[0]===r}),n),0!==c.length){n.devices.forEach((function(e){n.emit("initialized",u(e))}));var d=function(){return n.addresses?n.devices.filter((function(e){var t=u(e);return this.addresses.includes(t)}),n):[n.devices[0]]};!function t(){var r,c=d(),f=d();f.forEach((function(t){e.io.sendOneWireReset(l),e.io.sendOneWireWrite(l,t,i)}));!function t(n){var r;if(0===c.length)return n();r=c.pop(),e.io.sendOneWireReset(l),e.io.sendOneWireWriteAndRead(l,r,o,a,(function(e,i){if(!i[0]&&(c.push(r),0!==i[1]))return n();t(n)}))}((function i(){var c;0!==f.length?(c=f.pop(),e.io.sendOneWireReset(l),e.io.sendOneWireWriteAndRead(l,c,o,a,(function(e,t){e?n.emit("error",e):(r=t[1]<<8|t[0],n.emit("data",u(c),r),i())}))):setTimeout(t,s)}))}()}else n.emit("error",new Error("FAILED TO FIND TEMPERATURE DEVICE"))}))}},register:{value:function(e){this.addresses||(this.addresses=[]),this.addresses.push(e)}}},DS18B20:{initialize:{value:function(e,t){var n,r,i,o=this,a=40,l=68,s=190,u=2,c=t.pin,d=t.freq||100;n=function(e){var t,n=0;for(t=6;t>0;t--)n=256*n+e[t];return n},e.io.sendOneWireConfig(c,!0),e.io.sendOneWireSearch(c,(function(t,f){t?o.emit("error",t):(o.devices=f.filter((function(e){return e[0]===a}),o),0!==f.length?(o.devices.forEach((function(e){o.emit("initialized",n(e))})),r=function(){var t,a;(t=o.addresses?o.devices.filter((function(e){var t=n(e);return this.addresses.includes(t)}),o):[o.devices[0]]).forEach((function(t){e.io.sendOneWireReset(c),e.io.sendOneWireWrite(c,t,l)})),e.io.sendOneWireDelay(c,1),i=function(){var l;0!==t.length?(l=t.pop(),e.io.sendOneWireReset(c),e.io.sendOneWireWriteAndRead(c,l,s,u,(function(e,t){e?o.emit("error",e):(a=t[1]<<8|t[0],o.emit("data",n(l),a),i())}))):setTimeout(r,d)},i()},r()):o.emit("error",new Error("FAILED TO FIND TEMPERATURE DEVICE")))}))}},register:{value:function(e){this.addresses||(this.addresses=[]),this.addresses.push(e)}}},get:function(e,t,n){var r,i;m.has(e)||m.set(e,{}),r=m.get(e);var o="".concat(t,"_").concat(n.pin);return r[o]||(i=new a,Object.defineProperties(i,b[t]),i.initialize(e,n),r[o]=i),r[o]},clear:function(){m.clear()}},y={ANALOG:{initialize:{value:g}},LM35:{initialize:{value:g},toCelsius:{value:function(e){var t=1e3*this.aref*e/1023;return f(t/10)}}},LM335:{initialize:{value:g},toCelsius:{value:function(e){var t=1e3*this.aref*e/1023;return f(t/10-h)}}},TMP36:{initialize:{value:g},toCelsius:{value:function(e){var t=1e3*this.aref*e/1023;return f(t/10-50)}}},TMP102:{ADDRESSES:{value:[72]},initialize:{value:function(e,t){var r=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e),this.io.i2cRead(r,0,2,(function(e){var n=(e[0]<<8|e[1])>>4;2048&n&&(n|=63488),t(n=n>>15?-1*(1+(65535^n)):n)}))}},toCelsius:{value:function(e){return u(e/16,1)}}},MAX31850K:{initialize:{value:function(e,t){var n=v.get(this),r=e.address,i=b.get(this.board,"MAX31850K",e);r?(n.address=r,i.register(r)):(i.addressless&&this.emit("error","You cannot have more than one MAX31850K without an address"),i.addressless=!0),i.once("initialized",(function(e){n.address||(n.address=e)})),i.on("data",(function(e,n){r&&e!==r||t(n)}))}},toCelsius:{value:function(e){return u(e/16,2)}},address:{get:function(){return v.get(this).address||0}}},DS18B20:{initialize:{value:function(e,t){var n=v.get(this),r=e.address,i=b.get(this.board,"DS18B20",e);r?(n.address=r,i.register(r)):(i.addressless&&this.emit("error","You cannot have more than one DS18B20 without an address"),i.addressless=!0),i.once("initialized",(function(e){n.address||(n.address=e)})),i.on("data",(function(e,n){r&&e!==r||t(n)}))}},toCelsius:{value:function(e){return u(e/16,4)}},address:{get:function(){return v.get(this).address||0}}},SHT31D:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"SHT31D",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e/(c-1)*175-45,3)}}},HTU21D:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"HTU21D",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e/c*175.72-46.85,2)}}},HIH6130:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"HIH6130",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return f(e/1e3)}}},DHT_I2C_NANO_BACKPACK:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"DHT_I2C_NANO_BACKPACK",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return f(e/100)}}},TH02:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"TH02",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e,1)}}},MPU6050:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MPU6050",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return f(e/340+36.53)}}},BNO055:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BNO055",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return p(e)}}},MPL115A2:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MPL115A2",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return p((e-498)/-5.35+25)}}},MPL3115A2:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MPL3115A2",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return f(e/16)}}},MS5611:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"MS5611",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e,2)}}},GROVE:{initialize:{value:g},toCelsius:{value:function(e){var t=1/(d(1e4*(1023-e)/e/1e4)/3975+1/298.15)-h;return f(t)}}},TINKERKIT:{initialize:{value:g},toCelsius:{value:function(e){var t=3950/d(120.6685*(1e4*(1023/e-1)));return f(t-h)}}},BMP180:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BMP180",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e,1)}}},BMP280:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BMP280",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e,2)}}},BME280:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"BME280",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e,2)}}},SI7020:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"SI7020",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(175.72*e/65536-46.85,1)}}},MCP9808:{ADDRESSES:{value:[24]},initialize:{value:function(e,t){var r=n(1094).Drivers.addressResolver(this,e);this.io.i2cConfig(e),this.io.i2cRead(r,5,2,(function(e){var n=(4095&(e[0]<<8|e[1]))/16;4096&n&&(n-=256),t(n)}))}},toCelsius:{value:function(e){return u(e,2)}}},LSM303C:{initialize:{value:function(e,t){n(1094).Drivers.get(this.board,"LSM303C",e).on("data",(function(e){var n=e.temperature;return t(n)}))}},toCelsius:{value:function(e){return u(e/8+25,1)}}}};y.BMP085=y.BMP180,y.GY521=y.MPU6050,y.SI7021=y.SI7020,y.DHT11_I2C_NANO_BACKPACK=y.DHT_I2C_NANO_BACKPACK,y.DHT21_I2C_NANO_BACKPACK=y.DHT_I2C_NANO_BACKPACK,y.DHT22_I2C_NANO_BACKPACK=y.DHT_I2C_NANO_BACKPACK,y.DEFAULT=y.ANALOG;var v=new Map,_=function(e){"use strict";function t(t){var n;n=e.call(this)||this;var r=null,i=null;o.Component.call(n,t=o.Options(t)),o.Controller.call(n,y,t);var a={enabled:void 0===t.enabled||t.enabled,intervalId:null,freq:t.freq||25,previousFreq:t.freq||25};v.set(n,a),n.aref=t.aref||n.io.aref||5,n.toCelsius||(n.toCelsius=t.toCelsius||function(e){return e});var l=function(){if(null!=i){var e={};e.C=e.celsius=n.celsius,e.F=e.fahrenheit=n.fahrenheit,e.K=e.kelvin=n.kelvin,n.emit("data",e),n.celsius!==r&&(r=n.celsius,n.emit("change",e))}},s={celsius:{get:function(){return this.toCelsius(i)}},fahrenheit:{get:function(){return u(9*this.celsius/5+32,2)}},kelvin:{get:function(){return u(this.celsius+h,2)}},freq:{get:function(){return a.freq},set:function(e){a.freq=e,a.intervalId&&clearInterval(a.intervalId),null!==a.freq&&(a.intervalId=setInterval(l,e))}}};return s.C=s.celsius,s.F=s.fahrenheit,s.K=s.kelvin,Object.defineProperties(n,s),"function"==typeof n.initialize&&n.initialize(t,(function(e){return i=e})),a.enabled&&(n.freq=a.freq),n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r);var a=t.prototype;return a.enable=function(){var e=v.get(this);return e.enabled||(this.freq=e.freq||e.previousFreq),this},a.disable=function(){var e=v.get(this);return e.enabled&&(e.enabled=!1,e.previousFreq=e.freq,this.freq=null),this},t}(l);_.Drivers=b,r.env.IS_TEST_MODE&&(_.Controllers=y,_.purge=function(){v.clear()}),e.exports=_},2536:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}e=n.nmd(e);var i=n(2537),o=function(e,t){return function(){var n=e.apply(i,arguments);return"[".concat(n+t,"m")}},a=function(e,t){return function(){var n=e.apply(i,arguments);return"[".concat(38+t,";5;").concat(n,"m")}},l=function(e,t){return function(){var n=e.apply(i,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(var n=0,s=Object.keys(t);n<s.length;n++){for(var u=s[n],c=t[u],d=0,f=Object.keys(c);d<f.length;d++){var p=f[d],h=c[p];t[p]={open:"[".concat(h[0],"m"),close:"[".concat(h[1],"m")},c[p]=t[p],e.set(h[0],h[1])}Object.defineProperty(t,u,{value:c,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}var g=function(e){return e},m=function(e,t,n){return[e,t,n]};t.color.close="[39m",t.bgColor.close="[49m",t.color.ansi={ansi:o(g,0)},t.color.ansi256={ansi256:a(g,0)},t.color.ansi16m={rgb:l(m,0)},t.bgColor.ansi={ansi:o(g,10)},t.bgColor.ansi256={ansi256:a(g,10)},t.bgColor.ansi16m={rgb:l(m,10)};for(var b=0,y=Object.keys(i);b<y.length;b++){var v=y[b];if("object"===r(i[v])){var _=i[v];"ansi16"===v&&(v="ansi"),"ansi16"in _&&(t.color.ansi[v]=o(_.ansi16,0),t.bgColor.ansi[v]=o(_.ansi16,10)),"ansi256"in _&&(t.color.ansi256[v]=a(_.ansi256,0),t.bgColor.ansi256[v]=a(_.ansi256,10)),"rgb"in _&&(t.color.ansi16m[v]=l(_.rgb,0),t.bgColor.ansi16m[v]=l(_.rgb,10))}}return t}})},2316:(e,t,n)=>{var r=n(2538),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var l in a)if(a.hasOwnProperty(l)){if(!("channels"in a[l]))throw new Error("missing channels property: "+l);if(!("labels"in a[l]))throw new Error("missing channel labels property: "+l);if(a[l].labels.length!==a[l].channels)throw new Error("channel and label counts mismatch: "+l);var s=a[l].channels,u=a[l].labels;delete a[l].channels,delete a[l].labels,Object.defineProperty(a[l],"channels",{value:s}),Object.defineProperty(a[l],"labels",{value:u})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),l=Math.max(r,i,o),s=l-a;return l===a?t=0:r===l?t=(i-o)/s:i===l?t=2+(o-r)/s:o===l&&(t=4+(r-i)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+l)/2,[t,100*(l===a?0:n<=.5?s/(l+a):s/(2-l-a)),100*n]},a.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),l=Math.max(r,i,o),s=l-a;return n=0===l?0:s/l*1e3/10,l===a?t=0:r===l?t=(i-o)/s:i===l?t=2+(o-r)/s:o===l&&(t=4+(r-i)/s),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,l/255*1e3/10]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,l=1/0;for(var s in r)if(r.hasOwnProperty(s)){var u=r[s],c=(o=e,a=u,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<l&&(l=c,n=s)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[o=255*s,o,o];t=2*s-(n=s<.5?s*(1+l):s+l-s*l),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*o),s=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,s,a];case 1:return[l,r,a];case 2:return[a,r,s];case 3:return[a,l,r];case 4:return[s,a,r];case 5:return[r,a,l]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,l=Math.max(a,.01);return r=(2-o)*a,n=o*l,[i,100*(n=(n/=(t=(2-o)*l)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,l,s=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),r=6*s-(t=Math.floor(6*s)),1&t&&(r=1-r),i=u+r*((n=1-c)-u),t){default:case 6:case 0:o=n,a=i,l=u;break;case 1:o=i,a=n,l=u;break;case 2:o=u,a=n,l=i;break;case 3:o=u,a=i,l=n;break;case 4:o=i,a=u,l=n;break;case 5:o=n,a=u,l=i}return[255*o,255*a,255*l]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),l=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),l=o-a;return t=l<=0?0:o===n?(r-i)/l%6:o===r?2+(i-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?a/(1-l):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,l=a%1,s=1-l;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},2537:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var i=n(2316),o=n(2539),a={};Object.keys(i).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:i[e].channels}),Object.defineProperty(a[e],"labels",{value:i[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var i=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===r(n))for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),a[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))})),e.exports=a},2539:(e,t,n)=>{var r=n(2316);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),a=o.length,l=0;l<a;l++){var s=o[l],u=t[s];-1===u.distance&&(u.distance=t[i].distance+1,u.parent=i,n.unshift(s))}return t}function o(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),o=r.length,l=0;l<o;l++){var s=r[l];null!==t[s].parent&&(n[s]=a(s,t))}return n}},2534:(e,t,n)=>{"use strict";var r=n(107);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=n(2535),l=n(2536),s=n(2540),u=n(2541),c="win32"===r.platform&&!(r.env.TERM||"").toLowerCase().startsWith("xterm"),d=["ansi","ansi","ansi256","ansi16m"],f=new Set(["gray"]),p=Object.create(null);function h(e,t){t=t||{};var n=s?s.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function g(e){if(!this||!(this instanceof g)||this.template){var t={};return h(t,e),t.template=function(){var e=[].slice.call(arguments);return P.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,g.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=g,t.template}h(this,e)}c&&(l.blue.open="[94m");for(var m=function(){var e=y[b];l[e].closeRe=new RegExp(a(l[e].close),"g"),p[e]={get:function(){var t=l[e];return O.call(this,this._styles?this._styles.concat(t):[t],e)}}},b=0,y=Object.keys(l);b<y.length;b++)m();l.color.closeRe=new RegExp(a(l.color.close),"g");for(var v=function(){var e=E[_];if(f.has(e))return 1;p[e]={get:function(){var t=this.level;return function(){var n={open:l.color[d[t]][e].apply(null,arguments),close:l.color.close,closeRe:l.color.closeRe};return O.call(this,this._styles?this._styles.concat(n):[n],e)}}}},_=0,E=Object.keys(l.color.ansi);_<E.length;_++)v();l.bgColor.closeRe=new RegExp(a(l.bgColor.close),"g");for(var w=function(){var e=C[A];if(f.has(e))return 1;var t="bg"+e[0].toUpperCase()+e.slice(1);p[t]={get:function(){var t=this.level;return function(){var n={open:l.bgColor[d[t]][e].apply(null,arguments),close:l.bgColor.close,closeRe:l.bgColor.closeRe};return O.call(this,this._styles?this._styles.concat(n):[n],e)}}}},A=0,C=Object.keys(l.bgColor.ansi);A<C.length;A++)w();var S=Object.defineProperties((function(){}),p);function O(e,t){var n=function e(){return T.apply(e,arguments)};n._styles=e;var r=this;return Object.defineProperty(n,"level",{enumerable:!0,get:function(){return r.level},set:function(e){r.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:function(){return r.enabled},set:function(e){r.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===t||"grey"===t,n.__proto__=S,n}function T(){var e=arguments,t=e.length,n=String(arguments[0]);if(0===t)return"";if(t>1)for(var r=1;r<t;r++)n+=" "+e[r];if(!this.enabled||this.level<=0||!n)return n;var o=l.dim.open;c&&this.hasGrey&&(l.dim.open="");var a,s=i(this._styles.slice().reverse());try{for(s.s();!(a=s.n()).done;){var u=a.value;n=(n=u.open+n.replace(u.closeRe,u.open)+u.close).replace(/\r?\n/g,"".concat(u.close,"$&").concat(u.open))}}catch(d){s.e(d)}finally{s.f()}return l.dim.open=o,n}function P(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],i=1;i<t.length;i++)r.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[i]));return u(e,r.join(""))}Object.defineProperties(g.prototype,p),e.exports=g(),e.exports.supportsColor=s},2541:e=>{"use strict";function t(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var r=/(?:\\(u[a-f0-9]{4}|x[a-f0-9]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[0-9a-f]{4}|x[0-9a-f]{2}|.)|([^\\])/gi,l={n:"\n",r:"\r",t:"\t",b:"\b",f:"\f",v:"\v",0:"\0","\\":"\\",e:"",a:""};function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):l[e]||e}function u(e,n){var r,i,l=[],u=t(n.trim().split(/\s*,\s*/g));try{for(u.s();!(i=u.n()).done;){var c=i.value;if(isNaN(c)){if(!(r=c.match(o)))throw new Error("Invalid Chalk template style argument: ".concat(c," (in style '").concat(e,"')"));l.push(r[2].replace(a,(function(e,t,n){return t?s(t):n})))}else l.push(Number(c))}}catch(d){u.e(d)}finally{u.f()}return l}function c(e){i.lastIndex=0;for(var t,n=[];null!==(t=i.exec(e));){var r=t[1];if(t[2]){var o=u(r,t[2]);n.push([r].concat(o))}else n.push([r])}return n}function d(e,n){var r,i={},o=t(n);try{for(o.s();!(r=o.n()).done;){var a,l=r.value,s=t(l.styles);try{for(s.s();!(a=s.n()).done;){var u=a.value;i[u[0]]=l.inverse?null:u.slice(1)}}catch(h){s.e(h)}finally{s.f()}}}catch(h){o.e(h)}finally{o.f()}for(var c=e,d=0,f=Object.keys(i);d<f.length;d++){var p=f[d];if(Array.isArray(i[p])){if(!(p in c))throw new Error("Unknown Chalk style: ".concat(p));c=i[p].length>0?c[p].apply(c,i[p]):c[p]}}return c}e.exports=function(e,t){var n=[],i=[],o=[];if(t.replace(r,(function(t,r,a,l,u,f){if(r)o.push(s(r));else if(l){var p=o.join("");o=[],i.push(0===n.length?p:d(e,n)(p)),n.push({inverse:a,styles:c(l)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(d(e,n)(o.join(""))),o=[],n.pop()}else o.push(f)})),i.push(o.join("")),n.length>0){var a="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(a)}return i.join("")}},2327:(e,t,n)=>{var r=n(2561),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o].join()]=o);var a=e.exports={rgb:{channels:3},hsl:{channels:3},hsv:{channels:3},hwb:{channels:3},cmyk:{channels:4},xyz:{channels:3},lab:{channels:3},lch:{channels:3},hex:{channels:1},keyword:{channels:1},ansi16:{channels:1},ansi256:{channels:1},hcg:{channels:3}};for(var l in a)if(a.hasOwnProperty(l)){if(!("channels"in a[l]))throw new Error("missing channels property: "+l);var s=a[l].channels;delete a[l].channels,Object.defineProperty(a[l],"channels",{value:s})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),l=Math.max(r,i,o),s=l-a;return l===a?t=0:r===l?t=(i-o)/s:i===l?t=2+(o-r)/s:o===l&&(t=4+(r-i)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+l)/2,[t,100*(l===a?0:n<=.5?s/(l+a):s/(2-l-a)),100*n]},a.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),l=Math.max(r,i,o),s=l-a;return n=0===l?0:s/l*1e3/10,l===a?t=0:r===l?t=(i-o)/s:i===l?t=2+(o-r)/s:o===l&&(t=4+(r-i)/s),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,l/255*1e3/10]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){return i[e.join()]},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[o=255*s,o,o];t=2*s-(n=s<.5?s*(1+l):s+l-s*l),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100;return 0===r?[0,0,0]:[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*o),s=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,s,a];case 1:return[l,r,a];case 2:return[a,r,s];case 3:return[a,l,r];case 4:return[s,a,r];case 5:return[r,a,l]}},a.hsv.hsl=function(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100;return t=i*o,[r,100*(t=(t/=(n=(2-i)*o)<=1?n:2-n)||0),100*(n/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,l,s=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),r=6*s-(t=Math.floor(6*s)),1&t&&(r=1-r),i=u+r*((n=1-c)-u),t){default:case 6:case 0:o=n,a=i,l=u;break;case 1:o=i,a=n,l=u;break;case 2:o=u,a=n,l=i;break;case 3:o=u,a=i,l=n;break;case 4:o=i,a=u,l=n;break;case 5:o=n,a=u,l=i}return[255*o,255*a,255*l]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i,o=e[0],a=e[1],l=e[2];return o<=8?i=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),i=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(a/500+i-16/116)/7.787:95.047*Math.pow(a/500+i,3),n,r=r/108.883<=.008859?r=108.883*(i-l/200-16/116)/7.787:108.883*Math.pow(i-l/200,3)]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}/i);if(!t)return[0,0,0];var n=parseInt(t[0],16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),l=o-a;return t=l<=0?0:o===n?(r-i)/l%6:o===r?2+(i-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?a/(1-l):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,l=a%1,s=1-l;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]}},2561:e=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2560:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var i=n(2327),o=n(2562),a={};Object.keys(i).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:i[e].channels});var t=o(e);Object.keys(t).forEach((function(n){var i=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===r(n))for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),a[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))})),e.exports=a},2562:(e,t,n)=>{var r=n(2327),i=Object.keys(r);function o(e){var t=function(){for(var e={},t=i.length,n=0;n<t;n++)e[i[n]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var o=n.pop(),a=Object.keys(r[o]),l=a.length,s=0;s<l;s++){var u=a[s],c=t[u];-1===c.distance&&(c.distance=t[o].distance+1,c.parent=o,n.unshift(u))}return t}function a(e,t){return function(n){return t(e(n))}}function l(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),i=a(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){for(var t=o(e),n={},r=Object.keys(t),i=r.length,a=0;a<i;a++){var s=r[a];null!==t[s].parent&&(n[s]=l(s,t))}return n}},2540:e=>{"use strict";e.exports=!1},2319:e=>{"use strict";function t(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports={to7BitArray:function(e){var n,r=0,i=0,o=[],a=t(e);try{for(a.s();!(n=a.n()).done;){var l=n.value;0===r?(o.push(127&l),r++,i=l>>7):(o.push(l<<r&127|i),6===r?(o.push(l>>1),r=0):i=l>>8-++r)}}catch(s){a.e(s)}finally{a.f()}return r>0&&o.push(i),o},from7BitArray:function(e){for(var t=7*e.length>>3,n=[],r=0;r<t;r++){var i=r<<3,o=i/7>>>0,a=i%7;n[r]=e[o]>>a|e[o+1]<<7-a&255}return n}}},2545:(e,t,n)=>{"use strict";var r,i=n(788).Buffer,o=n(107);function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t,n){var r;return r=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==s(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=n(453),f=n(2319),p=n(2546),h=new Map,g=247,m=118,b=115,y=117,v=249,_=96,E=240,w=114,A=98,C=Symbol("sendOneWireSearch"),S=Symbol("sendOneWireRequest"),O=c(c(c({},v,(function(e){e.version.major=e.buffer[1],e.version.minor=e.buffer[2],e.emit("reportversion")})),224,(function(e){var t=15&e.buffer[0],n=e.buffer[1]|e.buffer[2]<<7;e.pins[e.analogPins[t]]&&(e.pins[e.analogPins[t]].value=n),e.emit("analog-read-".concat(t),n),e.emit("analog-read",{pin:t,value:n})})),144,(function(e){for(var t=15&e.buffer[0],n=e.buffer[1]|e.buffer[2]<<7,r=0;r<8;r++){var i=8*t+r,o=e.pins[i],a=1<<r;if(o&&(o.mode===e.MODES.INPUT||o.mode===e.MODES.PULLUP)){o.value=n>>(7&r)&1,o.value?e.ports[t]|=a:e.ports[t]&=~a;var l=o.value;e.emit("digital-read-".concat(i),l),e.emit("digital-read",{pin:i,value:l})}}})),T=(c(c(c(c(c(c(c(c(c(c(r={},121,(function(e){for(var t=e.buffer.length-2,n=i.alloc(Math.round((t-4)/2)),r=0,o=0,a=4;a<t;a+=2)r=255&(127&e.buffer[a]|(127&e.buffer[a+1])<<7),n.writeUInt8(r,o++);e.firmware={name:n.toString(),version:{major:e.buffer[2],minor:e.buffer[3]}},e.emit("queryfirmware")})),108,(function(e){var t,n,r=Object.keys(e.MODES).map((function(t){return e.MODES[t]})),i=0;function o(e){return r.reduce((function(t,n){return e&1<<n&&t.push(n),t}),[])}if(!e.pins.length)for(var a=2,l=0;a<e.buffer.length-1;a++)127!==e.buffer[a]?(0===l&&(t=e.buffer[a],n=(1<<e.buffer[a+1])-1,i|=1<<t,t===e.MODES.ANALOG&&null===e.RESOLUTION.ADC&&(e.RESOLUTION.ADC=n),t===e.MODES.PWM&&null===e.RESOLUTION.PWM&&(e.RESOLUTION.PWM=n)),l^=1):(e.pins.push({supportedModes:o(i),mode:void 0,value:0,report:1}),i=0,l=0);e.emit("capability-query")})),110,(function(e){var t=e.buffer[2];e.pins[t].mode=e.buffer[3],e.pins[t].state=e.buffer[4],e.buffer.length>6&&(e.pins[t].state|=e.buffer[5]<<7),e.buffer.length>7&&(e.pins[t].state|=e.buffer[6]<<14),e.emit("pin-state-".concat(t))})),106,(function(e){for(var t,n=0,r=2;r<e.buffer.length-1;r++)t=e.buffer[r],e.pins[n].analogChannel=t,127!==t&&e.analogPins.push(n),n++;e.emit("analog-mapping-query")})),119,(function(e){for(var t=[],n=127&e.buffer[2]|(127&e.buffer[3])<<7,r=127&e.buffer[4]|(127&e.buffer[5])<<7,i=6,o=e.buffer.length-1;i<o;i+=2)t.push(e.buffer[i]|e.buffer[i+1]<<7);e.emit("I2C-reply-".concat(n,"-").concat(r),t)})),b,(function(e){var t=e.buffer[2];T[t]&&T[t](e)})),66,(function(e){var t=e.buffer[3],n=e.buffer.slice(4,e.buffer.length-1);e.emit("1-wire-search-reply-".concat(t),p.readDevices(n))})),69,(function(e){var t=e.buffer[3],n=e.buffer.slice(4,e.buffer.length-1);e.emit("1-wire-search-alarms-reply-".concat(t),p.readDevices(n))})),67,(function(e){var t=e.buffer.slice(4,e.buffer.length-1),n=f.from7BitArray(t),r=n[1]<<8|n[0];e.emit("1-wire-read-reply-".concat(r),n.slice(2))})),113,(function(e){e.emit("string",i.from(e.buffer.slice(2,-1)).toString().replace(/\0/g,""))})),c(c(c(c(r,y,(function(e){var t=127&e.buffer[2]|(127&e.buffer[3])<<7,n=[127&e.buffer[4]|(127&e.buffer[5])<<7,127&e.buffer[6]|(127&e.buffer[7])<<7,127&e.buffer[8]|(127&e.buffer[9])<<7,127&e.buffer[10]|(127&e.buffer[11])<<7],r=(n[0]<<24)+(n[1]<<16)+(n[2]<<8)+n[3];e.emit("ping-read-".concat(t),r)})),w,(function(e){var t=e.buffer[2];e.emit("stepper-done-".concat(t),!0)})),A,(function(e){var t=e.buffer[2],n=e.buffer[3],r=6===t||10===t?D(e.buffer.slice(4,9)):null;6===t&&e.emit("stepper-position-".concat(n),r),10===t&&e.emit("stepper-done-".concat(n),r),36===t&&e.emit("multi-stepper-done-".concat(n))})),_,(function(e){var t=e.buffer[2]&E,n=15&e.buffer[2],r=[];if(64===t){for(var i=3,o=e.buffer.length;i<o-1;i+=2)r.push(e.buffer[i+1]<<7|e.buffer[i]);e.emit("serial-data-".concat(n),r)}}))),P=null,R=function(e){function t(t,n,r){var i;i=e.call(this)||this,"function"!=typeof n&&void 0!==n||(r=n,n={});var o=i,a=Object.assign({},{reportVersionTimeout:5e3,samplingInterval:19,serialport:{baudRate:57600,highWaterMark:256}},n);if(i.isReady=!1,i.MODES={INPUT:0,OUTPUT:1,ANALOG:2,PWM:3,SERVO:4,SHIFT:5,I2C:6,ONEWIRE:7,STEPPER:8,SERIAL:10,PULLUP:11,IGNORE:127,PING_READ:117,UNKOWN:16},i.I2C_MODES={WRITE:0,READ:1,CONTINUOUS_READ:2,STOP_READING:3},i.STEPPER={TYPE:{DRIVER:1,TWO_WIRE:2,THREE_WIRE:3,FOUR_WIRE:4},STEP_SIZE:{WHOLE:0,HALF:1},RUN_STATE:{STOP:0,ACCEL:1,DECEL:2,RUN:3},DIRECTION:{CCW:0,CW:1}},i.SERIAL_MODES={CONTINUOUS_READ:0,STOP_READING:1},i.SERIAL_PORT_IDs={HW_SERIAL0:0,HW_SERIAL1:1,HW_SERIAL2:2,HW_SERIAL3:3,SW_SERIAL0:8,SW_SERIAL1:9,SW_SERIAL2:16,SW_SERIAL3:17,DEFAULT:8},i.SERIAL_PIN_TYPES={RES_RX0:0,RES_TX0:1,RES_RX1:2,RES_TX1:3,RES_RX2:4,RES_TX2:5,RES_RX3:6,RES_TX3:7},i.RESOLUTION={ADC:null,DAC:null,PWM:null},i.HIGH=1,i.LOW=0,i.pins=[],i.ports=Array(16).fill(0),i.analogPins=[],i.version={},i.firmware={},i.buffer=[],i.versionReceived=!1,i.name="Firmata",i.settings=a,i.pending=0,i.digitalPortQueue=0,"object"===s(t))i.transport=t;else{if(!P)throw new Error("Missing Default Transport");i.transport=new P(t,a.serialport)}function l(){o.isReady=!0,o.emit("ready"),"function"==typeof r&&r()}return i.transport.on("close",(function(e){e&&e.disconnect&&e.disconnected?i.emit("disconnect"):i.emit("close")})),i.transport.on("open",(function(e){i.emit("open",e),i.emit("connect",e)})),i.transport.on("error",(function(e){i.isReady||"function"!=typeof r?i.emit("error",e):r(e)})),i.transport.on("data",(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(0!==i.buffer.length||0!==n){i.buffer.push(n);var r=i.buffer[0],o=i.buffer[i.buffer.length-1];if(r===E&&o===g){var a=T[i.buffer[1]];a&&i.versionReceived&&a(i),i.buffer.length=0}else if(r===E&&i.buffer.length>0){var l=e[t];l>127&&(i.buffer.length=0,i.buffer.push(l))}else if(r!==E){var s=r<E?r&E:r;s!==v&&224!==s&&144!==s&&(i.buffer.length=0)}if(3===i.buffer.length&&r!==E){var u=r<E?r&E:r;O[u]?((i.versionReceived||r===v)&&(i.versionReceived=!0,O[u](i)),i.buffer.length=0):i.buffer.length=0}}}})),i.reportVersionTimeoutId=setTimeout((function(){!1===i.versionReceived&&(i.reportVersion((function(){})),i.queryFirmware((function(){})))}),a.reportVersionTimeout),i.once("reportversion",(function(){clearTimeout(i.reportVersionTimeoutId),i.versionReceived=!0,i.once("queryfirmware",(function(){if(void 0!==n.samplingInterval&&i.setSamplingInterval(n.samplingInterval),a.skipCapabilities){if(i.analogPins=a.analogPins||i.analogPins,i.pins=a.pins||i.pins,!i.pins.length)for(var e=0;e<(a.pinCount||128);e++){var t=i.analogPins.indexOf(e);t<0&&(t=127),i.pins.push({supportedModes:[],analogChannel:t})}i.RESOLUTION.ADC=1023,i.RESOLUTION.PWM=255,l()}else i.queryCapabilities((function(){i.queryAnalogMapping(l)}))}))})),i}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r);var l=t.prototype;return l.reportVersion=function(e){this.once("reportversion",e),x(this,[v])},l.queryFirmware=function(e){this.once("queryfirmware",e),x(this,[E,121,g])},l.analogRead=function(e,t){this.reportAnalogPin(e,1),this.addListener("analog-read-".concat(e),t)},l.pwmWrite=function(e,t){var n;this.pins[e].value=t,e>15?(n=[E,111,e,127&t,t>>7&127],t>16384&&(n[n.length]=t>>14&127),t>2097152&&(n[n.length]=t>>21&127),t>268435456&&(n[n.length]=t>>28&127),n[n.length]=g):n=[224|e,127&t,t>>7&127],x(this,n)},l.servoConfig=function(e,t,n){if("object"===s(e)&&null!==e){var r=e;e=r.pin,t=r.min,n=r.max}if(void 0===e)throw new Error("servoConfig: pin must be specified");if(void 0===t)throw new Error("servoConfig: min must be specified");if(void 0===n)throw new Error("servoConfig: max must be specified");this.pins[e].mode=this.MODES.SERVO,x(this,[E,112,e,127&t,t>>7&127,127&n,n>>7&127,g])},l.servoWrite=function(){this.analogWrite.apply(this,arguments)},l.pinMode=function(e,t){t===this.MODES.ANALOG?this.pins[this.analogPins[e]].mode=t:(this.pins[e].mode=t,x(this,[244,e,t]))},l.digitalWrite=function(e,t,n){var r=this.updateDigitalPort(e,t);n?this.digitalPortQueue|=1<<r:this.writeDigitalPort(r)},l.updateDigitalPort=function(e,t){var n=e>>3,r=1<<(7&e);return this.pins[e].value=t,t?this.ports[n]|=r:this.ports[n]&=~r,n},l.flushDigitalPorts=function(){for(var e=0;e<this.ports.length;e++)this.digitalPortQueue>>e&&this.writeDigitalPort(e);this.digitalPortQueue=0},l.writeDigitalPort=function(e){x(this,[144|e,127&this.ports[e],this.ports[e]>>7&127])},l.digitalRead=function(e,t){this.reportDigitalPin(e,1),this.addListener("digital-read-".concat(e),t)},l.queryCapabilities=function(e){this.once("capability-query",e),x(this,[E,107,g])},l.queryAnalogMapping=function(e){this.once("analog-mapping-query",e),x(this,[E,105,g])},l.queryPinState=function(e,t){this.once("pin-state-".concat(e),t),x(this,[E,109,e,g])},l.sendString=function(e){var t=i.from("".concat(e,"\0"),"utf8"),n=[];n.push(E,113);for(var r=0,o=t.length;r<o;r++)n.push(127&t[r],t[r]>>7&127);n.push(g),x(this,n)},l.sendI2CConfig=function(e){return this.i2cConfig(e)},l.i2cConfig=function(e){var t,n=h.get(this);return n||(n={},h.set(this,n)),"number"==typeof e?t=e:"object"===s(e)&&null!==e&&(t=Number(e.delay),void 0!==e.address&&(n[e.address]||(n[e.address]={stopTX:!0})),void 0!==e.settings&&Object.assign(n[e.address],e.settings)),n.delay=t=t||0,I(this,[E,120,255&t,t>>8&255,g]),this},l.sendI2CWriteRequest=function(e,t){var n=[];t=t||[],n.push(E,m,e,this.I2C_MODES.WRITE<<3);for(var r=0,i=t.length;r<i;r++)n.push(127&t[r],t[r]>>7&127);n.push(g),I(this,n)},l.i2cWrite=function(e,t,n){var r=[E,m,e,this.I2C_MODES.WRITE<<3];if(3===arguments.length&&!Array.isArray(t)&&!Array.isArray(n))return this.i2cWriteReg(e,t,n);2===arguments.length&&(Array.isArray(t)?(n=t.slice(),t=n.shift()):n=[]);for(var o=i.from([t].concat(n)),a=0,l=o.length;a<l;a++)r.push(127&o[a],o[a]>>7&127);return r.push(g),I(this,r),this},l.i2cWriteReg=function(e,t,n){return I(this,[E,m,e,this.I2C_MODES.WRITE<<3,127&t,t>>7&127,127&n,n>>7&127,g]),this},l.sendI2CReadRequest=function(e,t,n){I(this,[E,m,e,this.I2C_MODES.READ<<3,127&t,t>>7&127,g]),this.once("I2C-reply-".concat(e,"-0"),n)},l.i2cRead=function(e,t,n,r){3===arguments.length&&"number"==typeof t&&"function"==typeof n&&(r=n,n=t,t=null);var i=[E,m,e,this.I2C_MODES.CONTINUOUS_READ<<3],o="I2C-reply-".concat(e,"-");return null!==t?i.push(127&t,t>>7&127):t=0,o+=t,i.push(127&n,n>>7&127,g),this.on(o,r),I(this,i),this},l.i2cStop=function(e){var t=this;null!=e&&("number"==typeof e&&(e={address:e}),x(this,[E,m,e.address,this.I2C_MODES.STOP_READING<<3,g]),Object.keys(this._events).forEach((function(n){n.startsWith("I2C-reply-".concat(e.address))&&t.removeAllListeners(n)})))},l.i2cReadOnce=function(e,t,n,r){3===arguments.length&&"number"==typeof t&&"function"==typeof n&&(r=n,n=t,t=null);var i=[E,m,e,this.I2C_MODES.READ<<3],o="I2C-reply-".concat(e,"-");return null!==t?i.push(127&t,t>>7&127):t=0,o+=t,i.push(127&n,n>>7&127,g),this.once(o,r),I(this,i),this},l.sendOneWireConfig=function(e,t){x(this,[E,b,65,e,t?1:0,g])},l.sendOneWireSearch=function(e,t){this[C](64,"1-wire-search-reply-".concat(e),e,t)},l.sendOneWireAlarmsSearch=function(e,t){this[C](68,"1-wire-search-alarms-reply-".concat(e),e,t)},l[C]=function(e,t,n,r){x(this,[E,b,e,n,g]);var i=setTimeout((function(){r(new Error("1-Wire device search timeout - are you running ConfigurableFirmata?"))}),5e3);this.once(t,(function(e){clearTimeout(i),r(null,e)}))},l.sendOneWireRead=function(e,t,n,r){var i=Math.floor(255*Math.random()),o=setTimeout((function(){r(new Error("1-Wire device read timeout - are you running ConfigurableFirmata?"))}),5e3);this[S](e,8,t,n,i,null,null,"1-wire-read-reply-".concat(i),(function(e){clearTimeout(o),r(null,e)}))},l.sendOneWireReset=function(e){this[S](e,1)},l.sendOneWireWrite=function(e,t,n){this[S](e,32,t,null,null,null,Array.isArray(n)?n:[n])},l.sendOneWireDelay=function(e,t){this[S](e,16,null,null,null,t)},l.sendOneWireWriteAndRead=function(e,t,n,r,i){var o=Math.floor(255*Math.random()),a=setTimeout((function(){i(new Error("1-Wire device read timeout - are you running ConfigurableFirmata?"))}),5e3);this[S](e,40,t,r,o,null,Array.isArray(n)?n:[n],"1-wire-read-reply-".concat(o),(function(e){clearTimeout(a),i(null,e)}))},l[S]=function(e,t,n,r,i,o,l,s,u){var c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];(n||r||i||o||l)&&(t|=60),n&&c.splice.apply(c,a([0,8].concat(n))),r&&(c[8]=255&r,c[9]=r>>8&255),i&&(c[10]=255&i,c[11]=i>>8&255),o&&(c[12]=255&o,c[13]=o>>8&255,c[14]=o>>16&255,c[15]=o>>24&255),l&&c.push.apply(c,a(l)),x(this,[E,b,t,e].concat(a(f.to7BitArray(c)),[g])),s&&u&&this.once(s,u)},l.setSamplingInterval=function(e){var t=e<10?10:e>65535?65535:e;this.settings.samplingInterval=t,x(this,[E,122,127&t,t>>7&127,g])},l.getSamplingInterval=function(){return this.settings.samplingInterval},l.reportAnalogPin=function(e,t){0!==t&&1!==t||(this.pins[this.analogPins[e]].report=t,x(this,[192|e,t]))},l.reportDigitalPin=function(e,t){var n=e>>3;0!==t&&1!==t||(this.pins[e].report=t,x(this,[208|n,t]))},l.pingRead=function(e,n){if(!this.pins[e.pin].supportedModes.includes(y))throw new Error("Please upload PingFirmata to the board");var r=e.pin,i=e.value,o=e.pulseOut,l=void 0===o?0:o,s=e.timeout,u=void 0===s?1e6:s;x(this,[E,y,r,i].concat(a(t.encode([l>>24&255,l>>16&255,l>>8&255,255&l])),a(t.encode([u>>24&255,u>>16&255,u>>8&255,255&u])),[g])),this.once("ping-read-".concat(r),n)},l.accelStepperConfig=function(e){var t=e.deviceNum,n=e.invertPins,r=e.motorPin1,i=e.motorPin2,o=e.motorPin3,a=e.motorPin4,l=e.enablePin,s=e.stepSize,u=void 0===s?this.STEPPER.STEP_SIZE.WHOLE:s,c=e.type,d=void 0===c?this.STEPPER.TYPE.FOUR_WIRE:c,f=[E,A,0,t],p=(7&d)<<4|(7&u)<<1,h=0;void 0!==l&&(p|=1),f.push(p),["stepPin","motorPin1","directionPin","motorPin2","motorPin3","motorPin4","enablePin"].forEach((function(t){void 0!==e[t]&&f.push(e[t])})),Array.isArray(n)&&(n.includes(r)&&(h|=1),n.includes(i)&&(h|=2),n.includes(o)&&(h|=4),n.includes(a)&&(h|=8),n.includes(l)&&(h|=16)),f.push(h,g),x(this,f)},l.accelStepperZero=function(e){x(this,[E,A,1,e,g])},l.accelStepperStep=function(e,t,n){x(this,[E,A,2,e].concat(a(k(t)),[g])),n&&this.once("stepper-done-".concat(e),n)},l.accelStepperTo=function(e,t,n){x(this,[E,A,3,e].concat(a(k(t)),[g])),n&&this.once("stepper-done-".concat(e),n)},l.accelStepperEnable=function(e){x(this,[E,A,4,e,1&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]),g])},l.accelStepperStop=function(e){x(this,[E,A,5,e,g])},l.accelStepperReportPosition=function(e,t){x(this,[E,A,6,e,g]),t&&this.once("stepper-position-".concat(e),t)},l.accelStepperAcceleration=function(e,t){x(this,[E,A,8,e].concat(a(j(t)),[g]))},l.accelStepperSpeed=function(e,t){x(this,[E,A,9,e].concat(a(j(t)),[g]))},l.multiStepperConfig=function(e){x(this,[E,A,32,e.groupNum].concat(a(e.devices),[g]))},l.multiStepperTo=function(e,t,n){if(e<0||e>5)throw new RangeError('Invalid "groupNum": '.concat(e,'. Expected "groupNum" between 0-5'));x(this,[E,A,33,e].concat(a(t.reduce((function(e,t){return e.concat.apply(e,a(k(t)))}),[])),[g])),n&&this.once("multi-stepper-done-".concat(e),n)},l.multiStepperStop=function(e){if(e<0||e>5)throw new RangeError('Invalid "groupNum": '.concat(e,'. Expected "groupNum" between 0-5'));x(this,[E,A,35,e,g])},l.stepperConfig=function(e,t,n,r,i,o,l){x(this,[E,w,0,e,t,127&n,n>>7&127,r,i].concat(a(t===this.STEPPER.TYPE.FOUR_WIRE?[o,l]:[]),[g]))},l.stepperStep=function(e,t,n,r,i,o,l){"function"==typeof i&&(l=i,i=0,o=0),x(this,[E,w,1,e,t,127&n,n>>7&127,n>>14&127,127&r,r>>7&127].concat(a(i>0||o>0?[127&i,i>>7&127,127&o,o>>7&127]:[]),[g])),l&&this.once("stepper-done-".concat(e),l)},l.serialConfig=function(e){var t,n,r,i;if("object"===s(e)&&null!==e&&(t=e.portId,n=e.baud,r=e.rxPin,i=e.txPin),void 0===t)throw new Error("portId must be specified, see SERIAL_PORT_IDs for options.");var o=[E,_,16|t,127&(n=n||57600),n>>7&127,n>>14&127];if(t>7&&void 0!==r&&void 0!==i)o.push(r,i);else if(t>7)throw new Error("Both RX and TX pins must be defined when using Software Serial.");o.push(g),x(this,o)},l.serialWrite=function(e,t){for(var n=[E,_,32|e],r=0,i=t.length;r<i;r++)n.push(127&t[r],t[r]>>7&127);n.push(g),t.length>0&&x(this,n)},l.serialRead=function(e,t,n){var r=[E,_,48|e,this.SERIAL_MODES.CONTINUOUS_READ];2===arguments.length&&"function"==typeof t?n=t:r.push(127&t,t>>7&127),r.push(g),x(this,r),this.on("serial-data-".concat(e),n)},l.serialStop=function(e){x(this,[E,_,48|e,this.SERIAL_MODES.STOP_READING,g]),this.removeAllListeners("serial-data-".concat(e))},l.serialClose=function(e){x(this,[E,_,80|e,g])},l.serialFlush=function(e){x(this,[E,_,96|e,g])},l.serialListen=function(e){e<8||x(this,[E,_,112|e,g])},l.sysexResponse=function(e,n){if(t.SYSEX_RESPONSE[e])throw new Error("".concat(e," is not an available SYSEX_RESPONSE byte"));return t.SYSEX_RESPONSE[e]=function(e){return n.call(e,e.buffer.slice(2,-1))},this},l.clearSysexResponse=function(e){t.SYSEX_RESPONSE[e]&&delete t.SYSEX_RESPONSE[e]},l.sysexCommand=function(e){if(!e||!e.length)throw new Error("Sysex Command cannot be empty");return x(this,[E].concat(a(e.slice()),[g])),this},l.reset=function(){x(this,[255])},t.isAcceptablePort=function(e){return!!/usb|acm|^com/i.test(e.path)},t.requestPort=function(e){!P||P&&"function"!=typeof P.list?o.nextTick((function(){e(new Error("No Transport provided"),null)})):P.list().then((function(n){var r=n.find((function(e){return t.isAcceptablePort(e)&&e}));r?e(null,r):e(new Error("No Acceptable Port Found"),null)})).catch((function(t){e(t,null)}))},t.encode=function(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(127&e[r],e[r]>>7&127);return t},t.decode=function(e){var t=[];if(e.length%2!=0)throw new Error("Firmata.decode(data) called with odd number of data bytes");for(;e.length;){var n=e.shift(),r=e.shift();t.push(n|r<<7)}return t},t}(d);function x(e,t){e.pending++,e.transport.write(i.from(t),(function(){return e.pending--}))}function I(e,t){var n=h.get(e);if(!n)throw new Error("I2C is not enabled for this board. To enable, call the i2cConfig() method.");if(t[1]===m){var r=t[2];n[r]||(n[r]={stopTX:!0}),24&t[3]&&(t[3]|=Number(!n[r].stopTX)<<6)}x(e,t)}function k(e){var t=e<0,n=[127&(e=Math.abs(e)),e>>7&127,e>>14&127,e>>21&127,e>>28&7];return t&&(n[n.length-1]|=8),n}function D(e){var t=127&e[0]|(127&e[1])<<7|(127&e[2])<<14|(127&e[3])<<21|(7&e[4])<<28;return e[4]>>3&&(t*=-1),t}R.prototype.analogWrite=R.prototype.pwmWrite,R.Board=R,R.SYSEX_RESPONSE=T,R.MIDI_RESPONSE=O;var M=Math.pow(2,23);function j(e){var t=e<0?1:0;e=Math.abs(e);var n=Math.floor(Math.log10(e)),r=0+n;for(e/=Math.pow(10,n);!Number.isInteger(e)&&e<M;)r-=1,e*=10;for(;e>M;)r+=1,e/=10;return[127&(e=Math.trunc(e)),e>>7&127,e>>14&127,e>>21&3|(15&(r+=11))<<2|(1&t)<<6]}if(o.env.IS_TEST_MODE){var F=null;R.test={i2cPeripheralSettings:function(e){return h.get(e)},get i2cActive(){return h},set transport(e){F=P,P=e},restoreTransport:function(){P=F},encode32BitSignedInteger:k,decode32BitSignedInteger:D,encodeCustomFloat:j,decodeCustomFloat:function(e){var t=(e[3]>>2&15)-11,n=e[3]>>6&1,r=e[0]|e[1]<<7|e[2]<<14|(3&e[3])<<21;return n&&(r*=-1),r*Math.pow(10,t)},writeToTransport:x,symbols:{SYM_sendOneWireRequest:S,SYM_sendOneWireSearch:C}}}var N=function(e){return P=e,R};N.Firmata=R,e.exports=N},2546:(e,t,n)=>{"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o=n(2319),a={crc8:function(e){var t,n=0,i=r(e);try{for(i.s();!(t=i.n()).done;)for(var o=t.value,a=8;a;a--){var l=1&(n^o);n>>=1,l&&(n^=140),o>>=1}}catch(s){i.e(s)}finally{i.f()}return n},readDevices:function(e){for(var t=o.from7BitArray(e),n=[],r=0;r<t.length;r+=8){var i=t.slice(r,r+8);if(8===i.length)a.crc8(i.slice(0,7))!==i[7]&&console.error("ROM invalid!"),n.push(i)}return n}};e.exports=a},2547:(e,t,n)=>{"use strict";var r=n(788).Buffer,i=n(107);function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var a,l,s,u=function(e){function t(t){var n;return(n=e.call(this)||this).isOpen=!0,n.baudRate=0,n.path=t,n}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,o(n,i),t.prototype.write=function(e){r.isBuffer(e)&&(e=Array.from(e)),this.lastWrite=e,this.emit("write",e)},t.list=function(){return Promise.resolve([])},t}(n(453));u.SerialPort=u;try{a=i.env.IS_TEST_MODE?u:s=n(3166)}catch(c){l=c}if(null==a){if(!i.env.IS_TEST_MODE)throw console.log("It looks like serialport didn't install properly."),console.log("More information can be found here https://serialport.io/docs/guide-installation"),console.log("The result of requiring the package is: ".concat(s)),console.log(l),"Missing serialport dependency";a=u}e.exports=a},2147:(e,t,n)=>{"use strict";e.exports=n(2545)(n(2547))},3587:(e,t)=>{"use strict";function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=(e[r]-t[r])*(e[r]-t[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.euclidean=function(e,t){return Math.sqrt(n(e,t))},t.squaredEuclidean=n},2923:(e,t)=>{"use strict";
/*
 * Original code from:
 *
 * k-d Tree JavaScript - V 1.01
 *
 * https://github.com/ubilabs/kd-tree-javascript
 *
 * @author Mircea Pricop <pricop@ubilabs.net>, 2012
 * @author Martin Kleppe <kleppe@ubilabs.net>, 2012
 * @author Ubilabs http://ubilabs.net, 2012
 * @license MIT License <http://www.opensource.org/licenses/mit-license.php>
 */
function n(e,t,n){this.obj=e,this.left=null,this.right=null,this.parent=n,this.dimension=t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){function e(e,t){if(Array.isArray(e)){this.dimensions=new Array(e[0].length);for(var n=0;n<this.dimensions.length;n++)this.dimensions[n]=n;this.root=i(e,0,null,this.dimensions)}else this.dimensions=e.dimensions,this.root=e,o(this.root);this.metric=t}var t=e.prototype;return t.toJSON=function(){var e=r(this.root);return e.dimensions=this.dimensions,e},t.nearest=function(e,t,n){var r,i=this.metric,o=this.dimensions,l=new a((function(e){return-e[1]}));if(n)for(r=0;r<t;r+=1)l.push([null,n]);this.root&&function n(r){var a,s,u,c,d=o[r.dimension],f=i(e,r.obj),p={};function h(e,n){l.push([e,n]),l.size()>t&&l.pop()}for(c=0;c<o.length;c+=1)c===r.dimension?p[o[c]]=e[o[c]]:p[o[c]]=r.obj[o[c]];s=i(p,r.obj),null!==r.right||null!==r.left?(n(a=null===r.right?r.left:null===r.left?r.right:e[d]<r.obj[d]?r.left:r.right),(l.size()<t||f<l.peek()[1])&&h(r,f),(l.size()<t||Math.abs(s)<l.peek()[1])&&null!==(u=a===r.left?r.right:r.left)&&n(u)):(l.size()<t||f<l.peek()[1])&&h(r,f)}(this.root);var s=[];for(r=0;r<Math.min(t,l.content.length);r+=1)l.content[r][0]&&s.push([l.content[r][0].obj,l.content[r][1]]);return s},e}();function r(e){var t=new n(e.obj,e.dimension,null);return e.left&&(t.left=r(e.left)),e.right&&(t.right=r(e.right)),t}function i(e,t,r,o){var a=t%o.length;if(0===e.length)return null;if(1===e.length)return new n(e[0],a,r);e.sort((function(e,t){return e[o[a]]-t[o[a]]}));var l=Math.floor(e.length/2),s=new n(e[l],a,r);return s.left=i(e.slice(0,l),t+1,s,o),s.right=i(e.slice(l+1),t+1,s,o),s}function o(e){e.left&&(e.left.parent=e,o(e.left)),e.right&&(e.right.parent=e,o(e.right))}var a=function(){function e(e){this.content=[],this.scoreFunction=e}var t=e.prototype;return t.push=function(e){this.content.push(e),this.bubbleUp(this.content.length-1)},t.pop=function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.sinkDown(0)),e},t.peek=function(){return this.content[0]},t.size=function(){return this.content.length},t.bubbleUp=function(e){for(var t=this.content[e];e>0;){var n=Math.floor((e+1)/2)-1,r=this.content[n];if(!(this.scoreFunction(t)<this.scoreFunction(r)))break;this.content[n]=t,this.content[e]=r,e=n}},t.sinkDown=function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i=2*(e+1),o=i-1,a=null;if(o<t){var l=this.content[o],s=this.scoreFunction(l);s<r&&(a=o)}if(i<t){var u=this.content[i];this.scoreFunction(u)<(null===a?r:s)&&(a=i)}if(null===a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}},e}();e.exports=t.default},2922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(3587),o=(r=n(2923))&&r.__esModule?r:{default:r};function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.default=function(){function e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!0===e){var r=t;return this.kdTree=new o.default(r.kdTree,n),this.k=r.k,this.classes=new Set(r.classes),void(this.isEuclidean=r.isEuclidean)}for(var a=new Set(t),l=n.distance,s=void 0===l?i.euclidean:l,u=n.k,c=void 0===u?a.size+1:u,d=new Array(e.length),f=0;f<d.length;++f)d[f]=e[f].slice();for(f=0;f<t.length;++f)d[f].push(t[f]);this.kdTree=new o.default(d,s),this.k=c,this.classes=a,this.isEuclidean=s===i.euclidean}e.load=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.euclidean;if("KNN"!==t.name)throw new Error("invalid model: ".concat(t.name));if(!t.isEuclidean&&n===i.euclidean)throw new Error("a custom distance function was used to create the model. Please provide it again");if(t.isEuclidean&&n!==i.euclidean)throw new Error("the model was created with the default distance function. Do not load it with another one");return new e(!0,t,n)};var t=e.prototype;return t.toJSON=function(){return{name:"KNN",kdTree:this.kdTree,k:this.k,classes:Array.from(this.classes),isEuclidean:this.isEuclidean}},t.predict=function(e){if(Array.isArray(e)){if("number"==typeof e[0])return s(this,e);if(Array.isArray(e[0])&&"number"==typeof e[0][0]){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=s(this,e[n]);return t}}throw new TypeError("dataset to predict must be an array or a matrix")},e}();function s(e,t){var n,r=e.kdTree.nearest(t,e.k),i={},o=-1,l=-1,s=r[0][0].length-1,u=a(e.classes);try{for(u.s();!(n=u.n()).done;){i[n.value]=0}}catch(p){u.e(p)}finally{u.f()}for(var c=0;c<r.length;++c){var d=r[c][0][s],f=++i[d];f>l&&(o=d,l=f)}return o}e.exports=t.default},2115:(e,t,n)=>{var r=n(2147),i=n(2114),o=(n(453).EventEmitter,n(2580).hp),a=new Map,l=64;function s(e){var t=e.port;delete e.port,r.Board.call(this,t,e);var n={handlers:{}};a.set(this,n),s.hasRegisteredSysexResponse||(this.on("ready",function(){this.sysexResponse(l,(function(e){var t=r.decode(e),i=t.shift(),o=n.handlers[i];"function"==typeof o&&o(t)}))}.bind(this)),s.hasRegisteredSysexResponse=!0)}s.hasRegisteredSysexResponse=!1,s.prototype=Object.create(r.Board.prototype,{constructor:{value:s}}),s.Pixel={initialize:{value:function(e){}},write:{writable:!0,value:function(e){e.red&=255,e.green&=255,e.blue&=255,this.pin&=127;var t=e.red>>1,n=(1&e.red)<<6|e.green>>2,r=(3&e.green)<<5|e.blue>>3,i=(7&e.blue)<<4;this.io.sysexCommand([l,16,this.pin,t,n,r,i]),this.io.sysexCommand([l,17])}}},s.Piezo={frequency:{value:function(e,t){t=t||0;var n=127&(e&=16383),r=e>>7,i=127&(t&=16383),o=t>>7;this.io.sysexCommand([l,32,n,r,i,o])}},noTone:{value:function(){this.io.sysexCommand([l,33])}}},s.Accelerometer={initialize:{value:function(e,t){var n=this,r=a.get(this.io);r.handlers[54]=function(e){var n=new o(e);t({x:n.readFloatLE(0),y:n.readFloatLE(4),z:n.readFloatLE(8)})},r.handlers[55]=function(e){var t=e[0],r=(48&t)>0,i={};r&&(16&t)>0&&(i.single=!0,n.emit("tap:single")),r&&(32&t)>0&&(i.double=!0,n.emit("tap:double")),r&&n.emit("tap",i)},this.on("newListener",function(e,t){"data"!==e&&"change"!==e||this.io.sysexCommand([l,58]),e.startsWith("tap")&&this.io.sysexCommand([l,56])}.bind(this))}},toGravity:{value:function(e){return e}},stop:{value:function(){var e=this;Object.keys(this._events).forEach((function(t){e.removeAllListeners(t)})),this.io.sysexCommand([l,59])}}};var u={down:["down","press","tap","impact","hit","touch"],up:["up","release"],hold:["hold"]};s.Touchpad={initialize:{value:function(e,t){var n,r=this,s=a.get(this.io),c=[0,1,2,3,6,9,10,12],d=i((function(e,t){var n={type:e,which:t,timestamp:Date.now()};u[e].forEach((function(e){r.listenerCount(e)&&r.emit(e,n)})),r.emit("change",n)}),5),f={touches:(n=8,Array.from({length:n},(function(){return{timeout:null,value:0}}))),timeout:null,pads:c,holdtime:e.holdtime||500};a.set(this,f),e.pads.forEach((function(e){r.io.sysexCommand([l,65,127&e])}));var p=0,h=c.reduce((function(e,t,n){return e[t]=n,e}),{});s.handlers[67]=function(e){var t=e[0],n=h[t];new o(e).readInt16LE(1)>=300?p|=1<<n:p&=~(1<<n),g(p)};var g=function t(n){var i=Date.now(),o=r.toIndices(n),a={down:[],hold:[],up:[]},l=null;t.count||(t.count=0),t.count++;for(var s=0;s<8;s++)l=r.toAlias(s),-1!==e.pads.indexOf(l)&&(o.indexOf(s)>=0?(0===f.touches[s].value?(o.forEach((function(e){return f.touches[e].timeout=i+f.holdtime})),a.down.push(l)):1===f.touches[s].value&&null!==f.touches[s].timeout&&i>=f.touches[s].timeout&&(f.touches[s].timeout=i+f.holdtime,a.hold.push(l)),f.touches[s].value=1):(1===f.touches[s].value&&(f.touches[s].timeout=null,a.up.push(l)),f.touches[s].value=0),null,l=null);Object.keys(a).forEach((function(e){a[e].length&&d(e,a[e])}))}}},toAlias:{value:function(e){return a.get(this).pads[e]}},toIndices:{value:function(e){a.get(this);for(var t=[],n=0;n<8;n++)e&1<<n&&t.push(n);return t}}},s.Thermometer={initialize:{value:function(e,t){this.io.pinMode(0,this.io.MODES.ANALOG),this.io.analogRead(0,t)}},toCelsius:{value:function(e){var t=1023e4/e,n=(t-=1e4)/1e4;return n=Math.log(n),n/=3950,n=1/(n+=1/298.15),n-=273.15,Math.round(n)}}},e.exports=s},3167:(e,t)=>{"use strict";t.byteLength=function(e){return 3*e.length/4-l(e)},t.toByteArray=function(e){var t,n,o,a,s,u,c=e.length;s=l(e),u=new i(3*c/4-s),o=s>0?c-4:c;var d=0;for(t=0,n=0;t<o;t+=4,n+=3)a=r[e.charCodeAt(t)]<<18|r[e.charCodeAt(t+1)]<<12|r[e.charCodeAt(t+2)]<<6|r[e.charCodeAt(t+3)],u[d++]=a>>16&255,u[d++]=a>>8&255,u[d++]=255&a;2===s?(a=r[e.charCodeAt(t)]<<2|r[e.charCodeAt(t+1)]>>4,u[d++]=255&a):1===s&&(a=r[e.charCodeAt(t)]<<10|r[e.charCodeAt(t+1)]<<4|r[e.charCodeAt(t+2)]>>2,u[d++]=a>>8&255,u[d++]=255&a);return u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o="",a=[],l=16383,u=0,c=r-i;u<c;u+=l)a.push(s(e,u,u+l>c?c:u+l));1===i?(t=e[r-1],o+=n[t>>2],o+=n[t<<4&63],o+="=="):2===i&&(t=(e[r-2]<<8)+e[r-1],o+=n[t>>10],o+=n[t>>4&63],o+=n[t<<2&63],o+="=");return a.push(o),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function s(e,t,r){for(var i,o,a=[],l=t;l<r;l+=3)i=(e[l]<<16)+(e[l+1]<<8)+e[l+2],a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2580:(e,t,n)=>{"use strict";var r=n(3167),i=n(3168),o=n(2581);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n);e=l(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(s.isBuffer(t)){var n=0|p(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?l(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=l(e,t<0?0:0|p(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<l;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+s>l&&(n=l-s),o=n;o>=0;o--){for(var d=!0,f=0;f<s;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function _(e,t,n,r){return G(W(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return E(e,t,n,r)}function A(e,t,n,r){return G(U(t),e,n,r)}function C(e,t,n,r){return G(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,l,s,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(s=(31&u)<<6|63&o)>127&&(c=s);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(s=(15&u)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[i+1],a=e[i+2],l=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&l)&&(s=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.hp=s,t.IS=50,s.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),a(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,n){return u(null,e,t,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?l(e,t):void 0!==n?"string"==typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}(null,e,t,n)},s.allocUnsafe=function(e){return d(null,e)},s.allocUnsafeSlow=function(e){return d(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,i){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function x(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=$(e[o]);return i}function I(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function k(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function F(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||F(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||F(e,0,n,8),i.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=s.prototype;else{var i=t-e;n=new s(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},s.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,l=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===l&&0!==this[t+o-1]&&(l=1),this[t+o]=(e/a|0)-l&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,l=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===l&&0!==this[t+o+1]&&(l=1),this[t+o]=(e/a|0)-l&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=s.isBuffer(e)?e:W(new s(e,r).toString()),l=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%l]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function $(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},3168:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,l=8*i-r-1,s=(1<<l)-1,u=s>>1,c=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-c)-1,p>>=-c,c+=l;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,l,s,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+d>=1?f/s:f*Math.pow(2,1-d))*s>=2&&(a++,s/=2),a+d>=c?(l=0,a=c):a+d>=1?(l=(t*s-1)*Math.pow(2,i),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&l,p+=h,l/=256,i-=8);for(a=a<<i|l,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*g}},2581:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},3586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.predict=function(e){if(a.includes(e.selectedTrainer)){var t=i.default.load(e.trainedModel),n=(e.features?e.features.map((function(e){return e.id})):e.selectedFeatures).map((function(t){return function(e,t,n){var r=Object.keys(e).includes(t)?e[t][n]:n;return parseInt(r)}(e.featureNumberKey,t,e.testData[(0,o.stripSpaceAndSpecial)(t)])})),r=t.predict(n),l=e.label?e.label.id:t.labelColumn;return Object.keys(e.featureNumberKey).includes(l)?(s=e.featureNumberKey[l],u=r,Object.keys(s).find((function(e){return s[e]===u}))):parseFloat(r)}return"Error: unknown trainer";var s,u};var r,i=(r=n(2922))&&r.__esModule?r:{default:r},o=n(3129);var a=["knnClassify","knnRegress"]},3129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripSpaceAndSpecial=function(e){return e.replace(/\W/g,"")}},2946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(1)),o=l(n(2733)),a=n(2312);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var c,d,f,p,h=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r),t.prototype.render=function(){var e=(0,a.draggedElementDropPoint)();return i.default.createElement(o.default,{width:this.props.width,height:this.props.height,mouseX:e?e.left:this.props.mouseX,mouseY:e?e.top:this.props.mouseY})},t}(i.default.Component);c=h,d="propTypes",f={width:r.default.number,height:r.default.number,mouseX:r.default.number,mouseY:r.default.number},p=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(d,"string"),(d="symbol"==s(p)?p:p+"")in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,e.exports=t.default},3603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AppLabTooltipOverlay=void 0;var r=p(n(34)),i=p(n(2)),o=p(n(1)),a=n(30),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=h(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2734)),s=n(33),u=n(759),c=n(1083),d=n(2312);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t,n){var r;return r=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==h(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=t.AppLabTooltipOverlay=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return m(t=e.call.apply(e,[this].concat(r))||this,"state",{hoveredControlId:null}),m(t,"onMouseMove",(function(e){t.setState({hoveredControlId:t.getHoveredControlId(e.target)})})),m(t,"getElementIdText",(function(){return"id: "+(0,s.ellipsify)(t.state.hoveredControlId,12)})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,g(n,i);var a=t.prototype;return a.componentDidMount=function(){document.addEventListener("mousemove",this.onMouseMove)},a.componentWillUnmount=function(){document.removeEventListener("mousemove",this.onMouseMove)},a.getHoveredControlId=function(e){return e&&0!==(0,r.default)(e).parents("div.withCrosshair").length?(t=e,(0,r.default)(t).parents("div.screen").length>0&&(0,r.default)(t).hasClass("ui-resizable-handle")&&(e=function(e){var t=(0,r.default)(e).siblings().not(".ui-resizable-handle");if(t.length>0&&t[0].id)return t[0];return null}(e)),this.props.isInDesignMode?(0,c.getId)(e):e.id):null;var t},a.render=function(){var e=(0,d.draggedElementDropPoint)(),t=[(0,l.coordinatesProvider)(!1,this.props.isRtl)];return this.state.hoveredControlId&&t.push(this.getElementIdText),o.default.createElement(l.default,{width:this.props.width,height:this.props.height,mouseX:e?e.left:this.props.mouseX,mouseY:e?e.top:this.props.mouseY,providers:t,tooltipAboveCursor:!!e})},t}(o.default.Component);m(b,"propTypes",{width:i.default.number,height:i.default.number,mouseX:i.default.number,mouseY:i.default.number,isInDesignMode:i.default.bool.isRequired,isRtl:i.default.bool});t.default=(0,a.connect)((function(e){return{isRtl:e.isRtl,isInDesignMode:e.interfaceMode===u.ApplabInterfaceMode.DESIGN}}))(b)},2927:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(2)),i=b(n(1)),o=n(30),a=b(n(3588)),l=b(n(1582)),s=b(n(2928)),u=b(n(2379)),c=b(n(2201)),d=b(n(2125)),f=b(n(3598)),p=n(759),h=b(n(3604)),g=b(n(3605)),m=b(n(2947));function b(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var _,E,w,A,C=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,v(n,r);var o=t.prototype;return o.componentDidMount=function(){this.props.onMount()},o.render=function(){var e=this.props,t=e.interfaceMode,n=e.widgetMode,r=e.isRtl,o=e.isEditingProject,b=e.screenIds,y=e.onScreenCreate,v=e.autogenerateML,_=e.hasDesignMode,E=e.hasDataMode,w=e.handleVersionHistory,A=p.ApplabInterfaceMode.CODE===t,C={};return n&&(C=r?S.widgetInstructionsRtl:S.widgetInstructions),i.default.createElement(d.default,null,i.default.createElement(h.default,null),i.default.createElement(g.default,null),i.default.createElement(a.default,null),i.default.createElement(f.default,{isEditingProject:o,screenIds:b,onScreenCreate:y}),i.default.createElement(l.default,null),i.default.createElement(c.default,{workspaceStyle:C,instructionsStyle:C},i.default.createElement(u.default,{withSettingsCog:!0,style:{display:A?"block":"none"},autogenerateML:v}),_&&i.default.createElement(m.default,null),E&&i.default.createElement(s.default,{handleVersionHistory:w})))},t}(i.default.Component);_=C,E="propTypes",w={handleVersionHistory:r.default.func.isRequired,autogenerateML:r.default.func.isRequired,isEditingProject:r.default.bool.isRequired,screenIds:r.default.arrayOf(r.default.string).isRequired,onScreenCreate:r.default.func.isRequired,onMount:r.default.func.isRequired,hasDataMode:r.default.bool.isRequired,hasDesignMode:r.default.bool.isRequired,interfaceMode:r.default.oneOf([p.ApplabInterfaceMode.CODE,p.ApplabInterfaceMode.DESIGN,p.ApplabInterfaceMode.DATA]).isRequired,isRtl:r.default.bool,widgetMode:r.default.bool},A=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(E,"string"),(E="symbol"==y(A)?A:A+"")in _?Object.defineProperty(_,E,{value:w,enumerable:!0,configurable:!0,writable:!0}):_[E]=w;t.default=(0,o.connect)((function(e){return{hasDataMode:e.pageConstants.hasDataMode||!1,hasDesignMode:e.pageConstants.hasDesignMode||!1,interfaceMode:e.interfaceMode,isRtl:e.isRtl,widgetMode:e.pageConstants.widgetMode}}))(C);var S={widgetInstructions:{left:p.WIDGET_WIDTH},widgetInstructionsRtl:{right:p.WIDGET_WIDTH}};e.exports=t.default},3598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedApplabVisualizationColumn=void 0;var r=E(n(55)),i=E(n(2)),o=E(n(1)),a=n(30),l=E(n(12)),s=_(n(491)),u=E(n(1824)),c=E(n(2585)),d=_(n(1933)),f=E(n(2628)),p=n(1747),h=_(n(25)),g=n(759),m=E(n(2943)),b=E(n(2944)),y=E(n(3601));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function _(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=w(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function E(e){return e&&e.__esModule?e:{default:e}}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var C,S,O,T,P=function(e){function t(){return e.apply(this,arguments)||this}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,A(n,i);var a=t.prototype;return a.getClassNames=function(){var e=this.props,t=e.visualizationHasPadding,n=e.isResponsive,i=e.widgetMode,o=e.hideSource,a=e.pinWorkspaceToBottom,l=e.isShareView,u=s.isMobile()&&!s.isIPad();return(0,r.default)({with_padding:t,responsive:n&&!i,pin_bottom:!o&&a,chromelessShare:u&&l,wireframeShare:!u&&l,widgetWidth:i})},a.getCompletionButtonSyle=function(){return this.props.playspacePhoneFrame||this.props.widgetMode?R.phoneFrameCompletion:R.completion},a.render=function(){var e=this.props,t=e.isIframeEmbed,n=e.isRunning,r=e.playspacePhoneFrame,i=e.isPaused,a=e.screenIds,s=e.awaitingContainedResponse,p=e.onScreenCreate,h=e.isResponsive,v=e.nonResponsiveWidth,_=e.isReadOnlyWorkspace,E=e.isEditingProject,w=e.widgetMode,A=h?{}:{maxWidth:v},C=[o.default.createElement(y.default,{key:"1"}),t&&!n&&o.default.createElement(f.default,{key:"2",appWidth:(0,g.getAppWidth)(this.props),appHeight:g.APP_HEIGHT})];return r&&(C=o.default.createElement(m.default,{isDark:n,showSelector:!n,isPaused:i,screenIds:a,runButtonDisabled:s,onScreenCreate:p},C)),o.default.createElement("div",{id:"visualizationColumn",className:this.getClassNames(),style:A},!_&&o.default.createElement(b.default,{isEditingProject:E,screenIds:a,onScreenCreate:p}),C,t&&!w&&o.default.createElement("div",{style:R.resetButtonWrapper},o.default.createElement(d.ResetButton,{hideText:!0,style:R.resetButton})),o.default.createElement(d.default,{noRunResetButton:r},o.default.createElement("div",{style:this.getCompletionButtonSyle()},o.default.createElement(c.default,null))),s&&o.default.createElement("div",{style:R.containedInstructions},l.default.predictionInstructions()),o.default.createElement(u.default,null))},t}(o.default.Component);C=P,S="propTypes",O={isEditingProject:i.default.bool.isRequired,screenIds:i.default.arrayOf(i.default.string).isRequired,onScreenCreate:i.default.func.isRequired,isReadOnlyWorkspace:i.default.bool.isRequired,visualizationHasPadding:i.default.bool.isRequired,isShareView:i.default.bool.isRequired,isResponsive:i.default.bool.isRequired,nonResponsiveWidth:i.default.number.isRequired,isRunning:i.default.bool.isRequired,hideSource:i.default.bool.isRequired,playspacePhoneFrame:i.default.bool,isIframeEmbed:i.default.bool.isRequired,pinWorkspaceToBottom:i.default.bool.isRequired,isPaused:i.default.bool,awaitingContainedResponse:i.default.bool.isRequired,widgetMode:i.default.bool},T=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(S,"string"),(S="symbol"==w(T)?T:T+"")in C?Object.defineProperty(C,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[S]=O;var R={completion:{display:"inline"},phoneFrameCompletion:{display:"block",width:"100%",marginLeft:"auto",marginRight:"auto",textAlign:"center"},resetButtonWrapper:{position:"absolute",bottom:5,textAlign:"center",width:"100%"},resetButton:{display:"inline-block",backgroundColor:h.dark_charcoal,borderColor:h.dark_charcoal,marginLeft:5,position:"relative",left:2,bottom:2},containedInstructions:{marginTop:10}};t.UnconnectedApplabVisualizationColumn=P,t.default=(0,a.connect)((function(e){return{isReadOnlyWorkspace:e.pageConstants.isReadOnlyWorkspace,visualizationHasPadding:e.pageConstants.visualizationHasPadding,isShareView:e.pageConstants.isShareView,isResponsive:(0,p.isResponsiveFromState)(e),nonResponsiveWidth:e.pageConstants.nonResponsiveVisualizationColumnWidth,isIframeEmbed:e.pageConstants.isIframeEmbed,hideSource:e.pageConstants.hideSource,isRunning:e.runState.isRunning,awaitingContainedResponse:e.runState.awaitingContainedResponse,isPaused:e.runState.isDebuggerPaused,playspacePhoneFrame:e.pageConstants.playspacePhoneFrame,pinWorkspaceToBottom:e.pageConstants.pinWorkspaceToBottom,widgetMode:e.pageConstants.widgetMode}}))(P)},2924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r,i=n(142),o=(r=n(1725))&&r.__esModule?r:{default:r};function a(e,t){this.element_=e,this.callback_=t,this.initialValue_=""}a.prototype.onFocus=function(){this.initialValue_=this.getValue()},a.prototype.onEnter=function(e){this.getValue()!==this.initialValue_&&(this.initialValue_=this.getValue(),this.callback_(e))},a.prototype.onBlur=function(e){this.getValue()!==this.initialValue_&&this.callback_(e)},a.prototype.getValue=function(){var e=o.default.getElementType(this.element_);switch(e){case o.default.ElementType.TEXT_INPUT:return this.element_.value;case o.default.ElementType.TEXT_AREA:return this.element_.textContent;default:throw new Error("ChangeEventHandler: unsupported element type "+e)}},a.addChangeEventHandler=function(e,t){var n=new a(e,t);e.addEventListener("focus",n.onFocus.bind(n)),o.default.getElementType(e)===o.default.ElementType.TEXT_INPUT&&e.addEventListener("keydown",function(e){e.keyCode===i.KeyCodes.ENTER&&this.onEnter(e)}.bind(n)),e.addEventListener("blur",n.onBlur.bind(n))},e.exports=t.default},2626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r,i=n(33),o=(r=n(2627))&&r.__esModule?r:{default:r};function a(e,t){this.document_=e||document,this.appStorage_=t||Applab.storage,this.warnings=[]}a.prototype.warn=function(e){this.warnings.push(new Error(e))},a.prototype.mergeWarnings_=function(e){Array.prototype.push.apply(this.warnings,e)},a.ChartType={BAR:"bar",PIE:"pie",LINE:"line",SCATTER:"scatter"},a.TypeNameToType={bar:o.default.MaterialBarChart,pie:o.default.PieChart,line:o.default.MaterialLineChart,scatter:o.default.MaterialScatterChart},a.getChartTypeNames=function(){return Object.keys(a.TypeNameToType)},a.supportsType=function(e){return-1!==a.getChartTypeNames().indexOf(e.toLowerCase())},a.getChartTypeDropdown=function(){return a.getChartTypeNames().map(i.quote).sort()},a.prototype.drawChart=function(e,t,n,r){try{var i=this.createChart_(e,t),o=a.inferColumnsFromRawData(n);return i.drawChart(n,o,r).then(function(){this.mergeWarnings_(i.warnings)}.bind(this))}catch(l){return Promise.reject(l)}},a.prototype.drawChartFromRecords=function(e,t,n,r,i){try{var o=this.createChart_(e,t);return Promise.all([o.loadDependencies(),this.fetchTableData_(n)]).then(function(e){var t=e[1],l=a.inferColumnsFromRawData(t);return r=this.guessColumnsIfNecessary(r,l,n),this.warnIfColumnsNotFound(r,l,n),o.drawChart(t,r,i)}.bind(this)).then(function(){this.mergeWarnings_(o.warnings)}.bind(this))}catch(l){return Promise.reject(l)}},a.prototype.warnIfColumnsNotFound=function(e,t,n){e.forEach((function(e){-1===t.indexOf(e)&&this.warn("Column "+(0,i.quote)(e)+" not found in table "+(0,i.quote)(n)+".")}),this)},a.prototype.guessColumnsIfNecessary=function(e,t,n){if(!e||e.length<2){if(this.warn("Not enough columns specified; expected at least 2."),0===t.length)throw new Error("No columns found in table "+(0,i.quote)(n)+". Charts require at least 2 columns.");if(t.length<2)throw new Error("Only found "+t.length+" columns in table "+(0,i.quote)(n)+": "+t.map(i.quote).join(", ")+". Charts require at least 2 columns.");e=t.slice(0,2),this.warn("Using columns "+e.map(i.quote).join(" and ")+".  Possible columns for table "+(0,i.quote)(n)+" are "+t.map(i.quote).join(", ")+".")}return e},a.prototype.createChart_=function(e,t){var n=this.getTargetElement_(e);return new(a.getChartTypeByName_(t))(n)},a.prototype.getTargetElement_=function(e){var t=this.document_.getElementById(e);if(!t||"div"!==t.tagName.toLowerCase())throw new Error('Unable to render chart into element "'+e+'".');return t},a.getChartTypeByName_=function(e){if("string"!=typeof e)throw new Error("Unknown chart type.");var t=a.TypeNameToType[e.toLowerCase()];if(!t)throw new Error('Unsupported chart type "'+e+'".');return t},a.prototype.fetchTableData_=function(e){return new Promise(function(t,n){this.appStorage_.readRecords(e,{},t,(function(e){n(new Error(e))}))}.bind(this))},a.inferColumnsFromRawData=function(e){return Object.getOwnPropertyNames(e.reduce((function(e,t){return Object.getOwnPropertyNames(t).forEach((function(t){e[t]=!0})),e}),{}))},e.exports=t.default},2907:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=s(n(25)),a=s(n(2908)),l=s(n(2914));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d,f,p,h,g=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){var e,t={container:{position:"absolute",width:"100%",top:30,bottom:0,backgroundColor:o.default.white,boxSizing:"border-box",borderLeft:"1px solid gray",borderRight:"1px solid gray",borderBottom:"1px solid gray"},designProperties:{position:"absolute",top:0,bottom:0,left:this.props.isToolboxVisible&&!this.props.isRtl?270:0,right:this.props.isToolboxVisible&&this.props.isRtl?270:0,boxSizing:"border-box",padding:10},transparent:{width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.1)",position:"relative",zIndex:1}};return this.props.isDimmed&&(e=i.default.createElement("div",{id:"design-mode-dimmed",style:t.transparent})),i.default.createElement("div",{id:"design-mode-container",style:t.container},i.default.createElement(l.default,{handleDragStart:this.props.handleDragStart,isToolboxVisible:this.props.isToolboxVisible,isRtl:this.props.isRtl,handleScreenChange:this.props.handleScreenChange,themeValue:this.props.currentTheme}),i.default.createElement("div",{id:"design-properties",style:t.designProperties},i.default.createElement(a.default,{element:this.props.element,elementIdList:this.props.elementIdList,handleChange:this.props.handleChange,onCopyElementToScreen:this.props.onCopyElementToScreen,onChangeElement:this.props.onChangeElement,onDepthChange:this.props.onDepthChange,onDuplicate:this.props.onDuplicate,onRestoreThemeDefaults:this.props.onRestoreThemeDefaults,onDelete:this.props.onDelete,onInsertEvent:this.props.onInsertEvent,screenIds:this.props.screenIds,isRtl:this.props.isRtl})),e)},t}(i.default.Component);d=g,f="propTypes",p={element:r.default.instanceOf(HTMLElement),elementIdList:r.default.arrayOf(r.default.string).isRequired,handleChange:r.default.func.isRequired,handleDragStart:r.default.func,isDimmed:r.default.bool.isRequired,isToolboxVisible:r.default.bool.isRequired,isRtl:r.default.bool.isRequired,onCopyElementToScreen:r.default.func.isRequired,onChangeElement:r.default.func.isRequired,onDelete:r.default.func.isRequired,onDepthChange:r.default.func.isRequired,onDuplicate:r.default.func.isRequired,onRestoreThemeDefaults:r.default.func.isRequired,onInsertEvent:r.default.func.isRequired,screenIds:r.default.arrayOf(r.default.string).isRequired,currentTheme:r.default.string.isRequired,handleScreenChange:r.default.func.isRequired},h=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(f,"string"),(f="symbol"==u(h)?h:h+"")in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,e.exports=t.default},2917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(55)),i=g(n(2)),o=g(n(1)),a=g(n(859)),l=g(n(508)),s=g(n(12)),u=g(n(2425)),c=g(n(856)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=m(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1312)),f=g(n(2121)),p=g(n(25));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function g(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==m(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"onToggleToolbox",(function(){return t.props.onToggleToolbox()})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,b(n,i);var h=t.prototype;return h.chevronStyle=function(e){var t={display:"inline-block",position:"absolute",padding:0,margin:0,top:0,left:this.props.isRtl?"":8,right:this.props.isRtl?8:"",border:"none",boxShadow:"none",backgroundColor:"transparent",lineHeight:l.default["workspace-headers-height"]+"px",fontSize:18,cursor:"pointer",color:p.default.neutral_white,":hover":{color:p.default.neutral_dark20}};return e&&(t.transform="scale(-1, 1)"),t},h.hideToolboxIcon=function(){return o.default.createElement("button",{className:"hide-toolbox-icon",type:"button",style:[c.default.hidden,this.chevronStyle(!this.props.isRtl)],onClick:this.onToggleToolbox},o.default.createElement("i",{className:"fa fa-chevron-circle-right"}))},h.showToolboxIcon=function(){return o.default.createElement("button",{type:"button",style:[c.default.hidden,this.chevronStyle(this.props.isRtl)],className:"show-toolbox-icon"},o.default.createElement("i",{className:"fa fa-chevron-circle-right"}))},h.render=function(){var e={toolboxHeader:{display:this.props.isToolboxVisible?"flex":"none",justifyContent:"space-between",width:270,borderLeft:this.props.isRtl?"1px solid gray":"",borderRight:this.props.isRtl?"":"1px solid gray",float:this.props.isRtl?"right":"left"},showToolboxHeader:{float:this.props.isRtl?"right":"left",display:this.props.isToolboxVisible?"none":"flex",justifyContent:"space-between",paddingLeft:this.props.isRtl?"":10,paddingRight:this.props.isRtl?10:""},showToolboxClickable:{marginLeft:this.props.isRtl?"":18,marginRight:this.props.isRtl?18:"",":hover":{color:p.default.white}},iconContainer:{float:this.props.isRtl?"left":"right",marginRight:10,marginLeft:10,height:"100%"},assetsIcon:{fontSize:18,verticalAlign:"middle"},runningVersionHistoryButton:{color:p.default.dark_charcoal}},t=!this.props.isRunning,n=o.default.createElement(u.default,{isRunning:this.props.isRunning,showMakerToggle:this.props.showMakerToggle,runModeIndicators:!0,autogenerateML:this.props.autogenerateML});return o.default.createElement(d.default,{id:"design-headers",dir:this.props.isRtl?"rtl":"ltr",hasFocus:t,style:{color:"white"}},o.default.createElement(d.PaneSection,{id:"design-toolbox-header",className:(0,r.default)("workspace-header",this.props.isRunning&&"is-running"),style:e.toolboxHeader},o.default.createElement("span",null,this.hideToolboxIcon()),o.default.createElement("span",null,a.default.designToolboxHeader()),o.default.createElement("span",null,n)),o.default.createElement(d.PaneSection,{className:(0,r.default)("workspace-header",this.props.isRunning&&"is-running"),style:e.showToolboxHeader},o.default.createElement("span",{key:"show-toolbox-clickable",className:"workspace-header-clickable",style:e.showToolboxClickable,onClick:this.onToggleToolbox},this.showToolboxIcon()),o.default.createElement("span",null,s.default.showToolbox()),o.default.createElement("span",null,n)),o.default.createElement(d.PaneButton,{id:"design-mode-versions-header",style:this.props.isRunning?e.runningVersionHistoryButton:{},iconClass:"fa fa-clock-o",label:s.default.showVersionsHeader(),headerHasFocus:t,isRtl:this.props.isRtl,onClick:this.props.handleVersionHistory}),o.default.createElement(d.PaneSection,{id:"design-workspace-header",className:(0,r.default)("workspace-header",this.props.isRunning&&"is-running")},this.props.showProjectTemplateWorkspaceIcon&&o.default.createElement(f.default,null),o.default.createElement("span",null,a.default.designWorkspaceHeader())))},t}(o.default.Component);y(v,"propTypes",{handleVersionHistory:i.default.func.isRequired,onToggleToolbox:i.default.func.isRequired,isToolboxVisible:i.default.bool.isRequired,showProjectTemplateWorkspaceIcon:i.default.bool.isRequired,isRtl:i.default.bool.isRequired,isRunning:i.default.bool.isRequired,showMakerToggle:i.default.bool.isRequired,autogenerateML:i.default.func}),e.exports=t.default},2914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=s(n(859)),a=s(n(2915)),l=s(n(2916));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d,f,p,h,g="/blockly/media/applab/design_toolbox/",m=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){var e={display:this.props.isToolboxVisible?"block":"none",position:"absolute",top:0,bottom:0,width:270,boxSizing:"border-box",borderRight:this.props.isRtl?"":"1px solid gray",borderLeft:this.props.isRtl?"1px solid gray":"",overflowY:"auto",padding:10,paddingRight:this.props.isRtl?10:0,paddingLeft:this.props.isRtl?0:10};return i.default.createElement("div",{id:"design-toolbox",style:e},i.default.createElement(a.default,{initialValue:this.props.themeValue,handleChange:this.props.handleScreenChange.bind(this,"theme"),description:o.default.designElementTheme(),key:this.props.themeValue}),i.default.createElement("p",null,o.default.designToolboxDescription()),i.default.createElement(l.default,{imageUrl:g+"button.png",desc:o.default.designElement_button(),elementType:"BUTTON",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"input.png",desc:o.default.designElement_textInput(),elementType:"TEXT_INPUT",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"label.png",desc:o.default.designElement_label(),elementType:"LABEL",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"dropdown.png",desc:o.default.designElement_dropdown(),elementType:"DROPDOWN",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"radio.png",desc:o.default.designElement_radioButton(),elementType:"RADIO_BUTTON",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"checkbox.png",desc:o.default.designElement_checkbox(),elementType:"CHECKBOX",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"image.png",desc:o.default.designElement_image(),elementType:"IMAGE",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"canvas.png",desc:o.default.designElement_canvas(),elementType:"CANVAS",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"screen.png",desc:o.default.designElement_screen(),elementType:"SCREEN",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"textarea.png",desc:o.default.designElement_textArea(),elementType:"TEXT_AREA",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"chart.png",desc:o.default.designElement_chart(),elementType:"CHART",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"slider.png",desc:o.default.designElement_slider(),elementType:"SLIDER",handleDragStart:this.props.handleDragStart}),i.default.createElement(l.default,{imageUrl:g+"camera.png",desc:o.default.designElement_photoSelect(),elementType:"PHOTO_SELECT",handleDragStart:this.props.handleDragStart}))},t}(i.default.Component);d=m,f="propTypes",p={handleDragStart:r.default.func.isRequired,isToolboxVisible:r.default.bool.isRequired,isRtl:r.default.bool.isRequired,handleScreenChange:r.default.func.isRequired,themeValue:r.default.string.isRequired},h=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(f,"string"),(f="symbol"==u(h)?h:h+"")in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,e.exports=t.default},2916:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(34)),i=s(n(2)),o=s(n(1)),a=s(n(56)),l=s(n(1725));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d,f,p,h,g=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,c(n,i);var s=t.prototype;return s.render=function(){var e={outerContainer:{width:120,display:"inline-block",textAlign:"center",paddingBottom:15},innerContainer:{textAlign:"center",cursor:"grab"},image:{marginBottom:5}};return o.default.createElement("div",{style:e.outerContainer},o.default.createElement("div",{style:e.innerContainer,"data-element-type":this.props.elementType,className:"new-design-element"},o.default.createElement("img",{src:this.props.imageUrl,className:"design-element-image",style:e.image,alt:this.props.desc}),o.default.createElement("div",null,this.props.desc)))},s.componentDidMount=function(){this.makeDraggable()},s.componentDidUpdate=function(){this.makeDraggable()},s.makeDraggable=function(){(0,r.default)(a.default.findDOMNode(this)).find(".new-design-element").draggable({helper:function(e){var t=this.getAttribute("data-element-type");if(t===l.default.ElementType.SCREEN)return(0,r.default)(this).clone();var n=l.default.createElement(t,0,0,!0);n.style.position="static";var i=document.getElementById("designModeViz"),o=i.getBoundingClientRect().width/i.offsetWidth,a=i.getBoundingClientRect().height/i.offsetHeight,s=(0,r.default)("<div/>").addClass("draggingParent");s[0].style.transform="scale("+o+", "+a+")",s[0].style.webkitTransform="scale("+o+", "+a+")",s[0].style.backgroundColor="transparent";var u=(0,r.default)(n).width()||parseInt(n.getAttribute("width"),10),c=(0,r.default)(n).height()||parseInt(n.getAttribute("height"),10),d=e.offsetY||e.pageY-(0,r.default)(e.target).offset().top;return(0,r.default)(this).draggable("option","cursorAt",{left:u/2,top:Math.min(d,c)}),s.append(n)[0]},containment:"document",appendTo:"#codeApp",revert:"invalid",zIndex:2,start:this.props.handleDragStart})},t}(o.default.Component);d=g,f="propTypes",p={imageUrl:i.default.string.isRequired,desc:i.default.string.isRequired,elementType:i.default.string.isRequired,handleDragStart:i.default.func.isRequired},h=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(f,"string"),(f="symbol"==u(h)?h:h+"")in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,e.exports=t.default},2906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=n(30),a=s(n(2907)),l=s(n(2917));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return d(t=e.call.apply(e,[this].concat(r))||this,"state",{isToolboxVisible:!0}),d(t,"onToggleToolbox",(function(){return t.setState({isToolboxVisible:!t.state.isToolboxVisible})})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){return i.default.createElement("div",{id:"designWorkspaceWrapper"},i.default.createElement(l.default,{handleVersionHistory:this.props.handleVersionHistory,onToggleToolbox:this.onToggleToolbox,isToolboxVisible:this.state.isToolboxVisible,showProjectTemplateWorkspaceIcon:this.props.showProjectTemplateWorkspaceIcon,isRtl:this.props.isRtl,isRunning:this.props.isRunning,showMakerToggle:this.props.showMakerToggle,autogenerateML:this.props.autogenerateML}),i.default.createElement(a.default,{element:this.props.element,elementIdList:this.props.elementIdList,handleChange:this.props.handleChange,handleDragStart:this.props.handleDragStart,isDimmed:this.props.isDimmed,isToolboxVisible:this.state.isToolboxVisible,isRtl:this.props.isRtl,onCopyElementToScreen:this.props.onCopyElementToScreen,onChangeElement:this.props.onChangeElement,onDelete:this.props.onDelete,onDepthChange:this.props.onDepthChange,onDuplicate:this.props.onDuplicate,onRestoreThemeDefaults:this.props.onRestoreThemeDefaults,onInsertEvent:this.props.onInsertEvent,screenIds:this.props.screenIds,currentTheme:this.props.currentTheme,handleScreenChange:this.props.handleScreenChange}))},t}(i.default.Component);d(f,"propTypes",{handleVersionHistory:r.default.func.isRequired,handleDragStart:r.default.func,element:r.default.instanceOf(HTMLElement),elementIdList:r.default.arrayOf(r.default.string).isRequired,handleChange:r.default.func.isRequired,onCopyElementToScreen:r.default.func.isRequired,onChangeElement:r.default.func.isRequired,onDepthChange:r.default.func.isRequired,onDuplicate:r.default.func.isRequired,onRestoreThemeDefaults:r.default.func.isRequired,onDelete:r.default.func.isRequired,onInsertEvent:r.default.func.isRequired,isDimmed:r.default.bool.isRequired,screenIds:r.default.arrayOf(r.default.string).isRequired,currentTheme:r.default.string.isRequired,handleScreenChange:r.default.func.isRequired,autogenerateML:r.default.func,showProjectTemplateWorkspaceIcon:r.default.bool.isRequired,isRunning:r.default.bool.isRequired,isRtl:r.default.bool.isRequired,showMakerToggle:r.default.bool});t.default=(0,o.connect)((function(e){return{showProjectTemplateWorkspaceIcon:!!e.pageConstants.showProjectTemplateWorkspaceIcon,isRtl:e.isRtl,isRunning:!!e.runState.isRunning,showMakerToggle:!!e.pageConstants.showMakerToggle}}))(f);e.exports=t.default},2913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(1)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t,n){var r;return r=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==s(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return c(t=e.call.apply(e,[this].concat(r))||this,"handleChange",(function(e){var n=o.getPrefixedElementById(e.target.value);t.props.onChangeElement(n,null)})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r),t.prototype.render=function(){var e=o.getId(this.props.selected);return i.default.createElement("div",{style:{float:"right",marginRight:"-10px"}},i.default.createElement("select",{value:e,onChange:this.handleChange,style:{width:"150px"}},this.props.elementIdList.map((function(e){return i.default.createElement("option",{key:e},e)}))))},t}(i.default.Component);c(d,"propTypes",{onChangeElement:r.default.func.isRequired,elementIdList:r.default.arrayOf(r.default.string).isRequired,selected:r.default.instanceOf(HTMLElement)}),e.exports=t.default},2925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r,i=(r=n(2926))&&r.__esModule?r:{default:r};function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){this.xScale_=1,this.yScale_=1,this.xOffset_=0,this.yOffset_=0,this.lastMouseMoveEventMap_={}}a.prototype.setTransformFromElement=function(e){this.xScale_=e.getBoundingClientRect().width/e.offsetWidth,this.yScale_=e.getBoundingClientRect().height/e.offsetHeight;for(var t=0,n=0;e;)t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;this.xOffset_=t,this.yOffset_=n},a.prototype.sandboxEvent=function(e){if(null===e||"object"!==o(e))throw new TypeError("Failed to sandbox event: Expected an event object, but got "+e);var t,n={};["altKey","button","charCode","ctrlKey","keyCode","keyIdentifier","keyLocation","location","metaKey","offsetX","offsetY","repeat","shiftKey","type","which"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])}));var r={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"};if(r[e.type]?(n.type=r[e.type],void 0===(t=e.changedTouches[0]).x&&(n.x=(t.clientX-this.xOffset_)/this.xScale_),void 0===t.y&&(n.y=(t.clientY-this.yOffset_)/this.yScale_)):t=e,["clientX","pageX","x"].forEach((function(e){void 0!==t[e]&&(n[e]=(t[e]-this.xOffset_)/this.xScale_)}),this),["clientY","pageY","y"].forEach((function(e){void 0!==t[e]&&(n[e]=(t[e]-this.yOffset_)/this.yScale_)}),this),void 0!==t.movementX&&void 0!==t.movementY)n.movementX=t.movementX,n.movementY=t.movementY;else if("mousemove"===n.type){var a=e.currentTarget&&e.currentTarget.id,l=this.lastMouseMoveEventMap_[a];a&&l?(n.movementX=t.clientX-l.clientX,n.movementY=t.clientY-l.clientY):(n.movementX=0,n.movementY=0),a&&(this.lastMouseMoveEventMap_[a]=t)}["fromElement","srcElement","currentTarget","relatedTarget","target","toElement"].forEach((function(t){e[t]&&(n[t+"Id"]=e[t].id)})),!e.target||("INPUT"!==e.target.tagName||"text"!==e.target.type&&"search"!==e.target.type&&"password"!==e.target.type&&"url"!==e.target.type&&"tel"!==e.target.type)&&"TEXTAREA"!==e.target.tagName||["selectionStart","selectionEnd"].forEach((function(t){void 0!==e.target[t]&&(n[t]=e.target[t])}));var s=function(e,t){void 0!==n[t]&&void 0===n[e]&&(n[e]=n[t])};s("srcElementId","targetId"),-1!==["focusin","mouseenter","mouseover","dragenter"].indexOf(e.type)?(s("toElementId","targetId"),s("fromElementId","relatedTargetId")):-1!==["focusout","mouseleave","mouseout","dragexit"].indexOf(e.type)&&(s("toElementId","relatedTargetId"),s("fromElementId","targetId"));var u=e.charCode?String.fromCharCode(e.charCode):i.default[e.keyCode];return void 0!==u&&(n.key=u),n},a.prototype.clearLastMouseMoveEvent=function(e){var t=e.currentTarget&&e.currentTarget.id;t&&void 0!==this.lastMouseMoveEventMap_[t]&&delete this.lastMouseMoveEventMap_[t]},e.exports=t.default},3609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getAppOptionsFile=T;var r=n(2631),i=b(n(34)),o=b(n(2736)),a=b(n(51)),l=n(1753),s=b(n(487)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=C(e)&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(611)),c=b(n(2208)),d=b(n(373)),f=b(n(3184)),p=b(n(3185)),h=b(n(3186)),g=n(3187);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function b(e){return e&&e.__esModule?e:{default:e}}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),l=new k(r||[]);return i(a,"_invoke",{value:P(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function b(){}function v(){}function _(){}var E={};u(E,a,(function(){return this}));var w=Object.getPrototypeOf,A=w&&w(w(D([])));A&&A!==n&&r.call(A,a)&&(E=A);var S=_.prototype=b.prototype=Object.create(E);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,a,l){var s=d(e[i],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==C(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function P(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(C(t)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=u(_,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},O(T.prototype),u(T.prototype,l,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new T(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||E(e,t)||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 _(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var S={levelGameName:!0,skinId:!0,baseUrl:!0,app:!0,droplet:!0,level:{skin:!0,editCode:!0,embed:!0,isK1:!1,isProjectLevel:!0,skipInstructionsPopup:!0,disableParamEditing:!0,disableVariableEditing:!0,useModalFunctionEditor:!0,useContractEditor:!0,contractHighlight:!0,contractCollapse:!0,examplesHighlight:!0,examplesCollapse:!0,definitionHighlight:!0,definitionCollapse:!0,freePlay:!0,appWidth:!0,appHeight:!0,sliderSpeed:!0,calloutJson:!0,disableExamples:!0,showTurtleBeforeRun:!0,autocompletePaletteApisOnly:!0,textModeAtStart:!0,designModeAtStart:!0,hideDesignMode:!0,beginnerMode:!0,levelId:!0,puzzle_number:!0,lesson_total:!0,iframeEmbed:!0,lastAttempt:!0,submittable:!0},showUnusedBlocks:!0,fullWidth:!0,noHeader:!0,noFooter:!0,smallFooter:!0,codeStudioLogo:!0,hasI18n:!0,callouts:!0,channel:!0,readonlyWorkspace:!0,isLegacyShare:!0,postMilestoneMode:!0,puzzleRatingsUrl:!1,authoredHintViewRequestsUrl:!1,serverLevelId:!1,gameDisplayName:!0,appName:!0,publicCaching:!0,is13Plus:!0,hasContainedLevels:!0,hideSource:!0,share:!0,labUserId:!1,isSignedIn:!0,pinWorkspaceToBottom:!0,hasVerticalScrollbars:!0,showExampleTestButtons:!0,report:{fallback_response:!0,callback:!0,sublevelCallback:!0},isUS:!0,send_to_phone_url:!0,teacherMarkdown:!1,dialog:{skipSound:!0,preTitle:!0,fallbackResponse:!0,callback:!0,sublevelCallback:!0,app:!0,level:!0,shouldShowDialog:!0},locale:!0},O={readonlyWorkspace:!0};function T(){var e=function e(t,n){return t&&n?a.default.reduce(t,(function(t,r,i){return!0===r?t[i]=n[i]:"object"===C(r)&&"object"===C(n[i])&&(t[i]=e(r,n[i])),t}),{}):null}(S,(0,l.getAppOptions)());a.default.merge(e,O);var t=(0,l.getAppOptions)().shareWarningInfo,n=(void 0===t?{}:t).hasDataAPIs;return e.exportUsesDataAPIs=n&&n(),"window.APP_OPTIONS = ".concat(JSON.stringify(e),";")}var P="applab/fa-brands-400.woff2",R="applab/fa-solid-900.woff2",x="applab/fa-regular-400.woff2",I="applab/fa-v4compatibility.woff2";t.default={exportAppToZip:function(e,t,n){return(r=y().mark((function r(){var a,l,u,m,b,E,w,A,C,S,O,M,j,F,N;return y().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=D(n),y=void 0,y=s.default.getShareUrl(),l={path:"".concat(y,"/").concat("export_config?script_call=setExportConfig")},u=(0,p.default)({appName:e,exportConfigPath:l.path,htmlBody:a,faBrandsPath:P,faSolidPath:R,faRegularPath:x,faV4CompatibilityPath:I}),m=(0,h.default)({appName:e}),b="?__cb__="+new String(Math.random()).slice(2),E=[{url:"/blockly/js/en_us/common_locale.js"+b},{url:"/blockly/js/en_us/applab_locale.js"+b},{url:"/blockly/css/applab.css"+b},{url:"/blockly/css/common.css"+b},{dataType:"binary",url:"https://dsco.code.org/assets/font-awesome-pro/1684178876/webfonts/fa-brands-400.woff2"+b},{dataType:"binary",url:"https://dsco.code.org/assets/font-awesome-pro/1684178876/webfonts/fa-solid-900.woff2"+b},{dataType:"binary",url:"https://dsco.code.org/assets/font-awesome-pro/1684178876/webfonts/fa-regular-400.woff2"+b},{dataType:"binary",url:"https://dsco.code.org/assets/font-awesome-pro/1684178876/webfonts/fa-v4compatibility.woff2"+b}],w=k({html:u,code:t,rootRelativeAssetPrefix:"assets/",zipAssetPrefix:e+"/assets/"}),A=e+"/",(C=new o.default).file(e+"/README.txt",m),C.file(A+"index.html",(0,g.rewriteAssetUrls)(w,u)),S=(0,f.default)({fontBrandsPath:P,fontSolidPath:R,fontRegularPath:x,fontV4CompatibilityPath:I}),C.file(A+"style.css",S),C.file(A+"code.js",(0,g.rewriteAssetUrls)(w,t)),j=e+"/"+(M=(O="applab/")+"assets"),F=(0,g.fetchWebpackRuntime)(b),N=new i.default.Deferred,(0,c.default)("/blockly/js/applab-api.min.js"+b,"text").then((function(e,t,n){return N.resolve([e,t,n])}),(function(){return(0,c.default)("/blockly/js/applab-api.js"+b,"text").then((function(e,t,n){return N.resolve([e,t,n])}),(function(){return N.reject(new Error("failed to fetch applab-api.js"))}))})),r.abrupt("return",new Promise((function(t,n){i.default.when.apply(i.default,[F,N].concat(_([].concat(E,_(w)).map((function(e){return(0,c.default)(e.url,e.dataType||"text")}))))).then((function(r,o,a,l,s,u,d,f,p,h){var g=v(r,1)[0],m=v(o,1)[0],b=v(a,1)[0],y=v(l,1)[0],E=v(s,1)[0],S=v(u,1)[0],k=v(d,1)[0],D=v(f,1)[0],F=v(p,1)[0],N=v(h,1)[0],L=T();C.file(e+"/"+O+"applab-api.js",[g,L,b,y,m].join("\n")),C.file(A+P,k),C.file(A+R,D),C.file(A+x,F),C.file(A+I,N);for(var B=arguments.length,$=new Array(B>10?B-10:0),W=10;W<B;W++)$[W-10]=arguments[W];$.forEach((function(e,t){var n=v(e,1)[0];C.file(w[t].zipPath,n,{binary:!0})}));var U=((E=S+E).match(/url\(['"]?\/[^)]+['"]?\)/gi)||[]).map((function(e){var t=e.match(/url\(['"]?(\/[^'")]+)['"]?\)/i);if(t){for(var n=v(t,2),r=n[0],i=n[1];E.indexOf(r)>=0;)E=E.replace(r,'url("assets'.concat(i,'")'));return i}})).filter((function(e){return!!e})).map((function(e){return{url:e,rootRelativePath:M+e,zipPath:j+e}}));C.file(e+"/"+O+"applab.css",E),i.default.when.apply(i.default,_(U.map((function(e){return(0,c.default)(e.url,"binary")})))).then((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((function(e,t){var n=v(e,1)[0];C.file(U[t].zipPath,n,{binary:!0})})),t(C)}),(function(){return n(new Error("failed to fetch css assets"))}))}),(function(){d.default.addPageAction(d.default.PageAction.StaticResourceFetchError,{app:"applab"},.01),n(new Error("failed to fetch assets"))}))})));case 23:case"end":return r.stop()}var y}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){A(o,n,i,a,l,"next",e)}function l(e){A(o,n,i,a,l,"throw",e)}a(void 0)}))})();var r},exportApp:function(e,t,n){return this.exportAppToZip(e,t,n).then((function(t){t.generateAsync({type:"blob"}).then((function(t){(0,r.saveAs)(t,e+".zip")}))}))}};function k(e){var t=e.html,n=void 0===t?"":t,r=e.code,i=void 0===r?"":r,o=e.rootRelativeAssetPrefix,a=void 0===o?"":o,l=e.zipAssetPrefix,s=void 0===l?"":l,c=dashboard.assets.listStore.list().map((function(e){return{url:u.fixPath(e.filename),rootRelativePath:a+e.filename,zipPath:s+e.filename,dataType:"binary",filename:e.filename}})),d=(0,g.extractSoundAssets)({sources:[n,i],rootRelativeAssetPrefix:a,zipAssetPrefix:s});return[].concat(_(c),_(d))}function D(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children[0];return n.id="divApplab",n.style.display="block",n.classList.remove("notRunning"),n.classList.remove("withCrosshair"),n.style.transform="",n.outerHTML}},3588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedExternalRedirectDialog=void 0;var r=h(n(2)),i=h(n(1)),o=n(30),a=n(142),l=h(n(78)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=g(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(780)),u=n(684),c=h(n(12)),d=h(n(416)),f=n(2313);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var b,y,v,_,E=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,m(n,r);var o=t.prototype;return o.handleRedirect=function(e){window.open(e,"_blank","noopener,noreferrer"),this.props.handleClose()},o.render=function(){var e,t,n,r=this;if(!(this.props.redirects&&this.props.redirects.length>0))return null;var o=this.props.redirects[0].response,p=this.props.redirects[0].url;return o===f.REDIRECT_RESPONSE.APPROVED?(e=c.default.redirectTitle(),t=i.default.createElement("div",null,i.default.createElement("h2",{style:w.title},c.default.redirectConfirmation()),i.default.createElement("p",{style:w.url},p),i.default.createElement("p",null,c.default.redirectExplanation(),i.default.createElement("span",null,i.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:(0,u.studio)("/report_abuse")},c.default.reportAbuse())))),n=i.default.createElement(d.default,null,i.default.createElement(l.default,{onClick:this.props.handleClose,text:c.default.goBack(),color:l.default.ButtonColor.gray,style:{margin:0}}),i.default.createElement(l.default,{onClick:function(){return r.handleRedirect(p)},text:c.default.continue(),color:l.default.ButtonColor.brandSecondaryDefault,style:{margin:0}}))):(o===f.REDIRECT_RESPONSE.UNSUPPORTED?(e=c.default.redirectUnsupportedTitle(),t=i.default.createElement("p",null,c.default.redirectUnsupportedExplanation())):(e=c.default.redirectRejectTitle(),t=i.default.createElement("p",null,c.default.redirectRejectExplanation())),n=i.default.createElement(d.default,{rightAlign:!0},i.default.createElement(l.default,{__useDeprecatedTag:!0,onClick:this.props.handleClose,text:c.default.dialogOK(),color:l.default.ButtonColor.gray}))),i.default.createElement(s.default,{title:e,fullWidth:window.innerWidth<a.BASE_DIALOG_WIDTH,isOpen:!0,handleClose:this.props.handleClose},i.default.createElement(s.Body,null,t,n))},t}(i.default.Component);b=E,y="propTypes",v={handleClose:r.default.func,redirects:r.default.array},_=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(y,"string"),(y="symbol"==g(_)?_:_+"")in b?Object.defineProperty(b,y,{value:v,enumerable:!0,configurable:!0,writable:!0}):b[y]=v;var w={title:{display:"inline",wordWrap:"break-word"},url:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",maxWidth:"100%",wordWrap:"break-word",maxHeight:"140px"}},A=t.UnconnectedExternalRedirectDialog=E;t.default=(0,o.connect)((function(e){return{redirects:e.redirectDisplay}}),(function(e){return{handleClose:function(){e(f.actions.dismissRedirectNotice())}}}))(A)},2627:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",c=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new k(r||[]);return o(a,"_invoke",{value:P(e,n,l)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",g="suspendedYield",m="executing",b="completed",y={};function v(){}function _(){}function E(){}var w={};d(w,s,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(D([])));C&&C!==n&&i.call(C,s)&&(w=C);var S=E.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,a,l,s){var u=p(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function P(t,n,r){var i=h;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===b){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?b:g,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=b,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return _.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:_,configurable:!0}),_.displayName=d(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},O(T.prototype),d(T.prototype,u,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new T(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),d(S,c,"Generator"),d(S,s,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(33);var s=t.default=function(){function e(t){e.lib||(e.lib=google),this.targetDiv_=t,this.warnings=[]}var t=e.prototype;return t.loadDependencies=function(){var t=this;return new Promise((function(n,r){try{e.lib.load("visualization","1",{packages:t.getDependencies(),callback:n})}catch(i){r(new Error("Unable to load Charts API.  Please try again later."))}}))},t.drawChart=function(){var t,n=(t=a().mark((function t(n,r){var i,o,l=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=l.length>2&&void 0!==l[2]?l[2]:{},t.next=3,this.loadDependencies();case 3:this.verifyData_({data:n,columns:r}),o=e.dataTableFromRowsAndColumns(n,r),this.render_(o,i);case 6:case"end":return t.stop()}}),t,this)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),t.getDependencies=function(){return["corechart"]},t.warn=function(e){this.warnings.push(new Error(e))},t.verifyData_=function(e){var t=this,n=e.data,r=e.columns,i=e.minColumns,o=void 0===i?2:i,a=e.maxColumns;if(0===n.length&&this.warn("No data."),a&&r.length>a&&this.warn("Too many columns for chart; only using the first ".concat(a,".")),r.length<o)throw new Error("Not enough columns for chart; expected at least ".concat(o,"."));r.forEach((function(e){n.some((function(t){return void 0!==t[e]}))||t.warn('No data found for column "'+e+'".')}))},e.dataTableFromRowsAndColumns=function(t,n){var r=t.map((function(e){return n.map((function(t){return e[t]}))})),i=n.map((function(e){return{label:e}}));return e.lib.visualization.arrayToDataTable([i].concat(r))},t.render_=function(e,t){throw new Error("Rendering unimplemented for chart type.")},e}(),u=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.render_=function(e,t){new s.lib.visualization.PieChart(this.targetDiv_).draw(e,t)},n.verifyData_=function(t){t.minColumns=2,t.maxColumns=2,e.prototype.verifyData_.call(this,t)},t}(s);s.PieChart=u;var c=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.render_=function(e,t){new s.lib.visualization.Histogram(this.targetDiv_).draw(e,t)},n.verifyData_=function(t){t.minColumns=1,t.maxColumns=1,e.prototype.verifyData_.call(this,t)},t}(s);s.Histogram=c;var d=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render_=function(e,t){new s.lib.visualization.BarChart(this.targetDiv_).draw(e,t)},t}(s);s.BarChart=d;var f=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.render_=function(e,t){var n=new s.lib.charts.Bar(this.targetDiv_),r=s.lib.charts.Bar.convertOptions(t);n.draw(e,r)},n.getDependencies=function(){return["bar"]},t}(s);s.MaterialBarChart=f;var p=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render_=function(e,t){new s.lib.visualization.LineChart(this.targetDiv_).draw(e,t)},t}(s);s.LineChart=p;var h=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.render_=function(e,t){var n=new s.lib.charts.Line(this.targetDiv_),r=s.lib.charts.Line.convertOptions(t);n.draw(e,r)},n.getDependencies=function(){return["line"]},t}(s);s.MaterialLineChart=h;var g=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render_=function(e,t){new s.lib.visualization.ScatterChart(this.targetDiv_).draw(e,t)},t}(s);s.ScatterChart=g;var m=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.render_=function(e,t){var n=new s.lib.charts.Scatter(this.targetDiv_),r=s.lib.charts.Scatter.convertOptions(t);n.draw(e,r)},n.getDependencies=function(){return["scatter"]},t}(s);s.MaterialScatterChart=m,e.exports=t.default},3604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ImportProjectDialog=void 0;var r=c(n(2)),i=c(n(1)),o=n(30),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=d(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(780)),l=c(n(25)),s=n(2175);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t,n){var r;return r=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==d(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={url:""},y=t.ImportProjectDialog=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return m(t=e.call.apply(e,[this].concat(r))||this,"state",h({},b)),m(t,"onImport",(function(){t.props.onImport(t.state.url),t.setState(b)})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,g(n,r),t.prototype.render=function(){var e=this;return i.default.createElement(a.default,f({},this.props,{title:"Import screens"}),i.default.createElement(a.Body,null,i.default.createElement("p",{style:v.instructions},'Copy the share link of the app you would like to import screens from. Paste in the URL of that app below and click "Next."'," ",i.default.createElement("a",{href:"".concat(window.dashboard.CODE_ORG_URL,"/applab/docs/import"),target:"_blank",rel:"noopener noreferrer"},"Learn More")),i.default.createElement("div",{style:v.urlInputWrapper},i.default.createElement("input",{type:"text",value:this.state.url,style:v.urlInput,onChange:function(t){return e.setState({url:t.target.value})}})),this.props.error&&i.default.createElement("p",{style:v.errorText},"We can't seem to find this project. Please make sure you've entered a valid App Lab project URL.")),i.default.createElement(a.Buttons,null,i.default.createElement(a.Confirm,{onClick:this.onImport,disabled:this.props.isFetching},this.props.isFetching&&i.default.createElement("span",{className:"fa fa-spin fa-spinner"})," ","Next")))},t}(i.default.Component);m(y,"propTypes",h(h({},a.default.propTypes),{},{onImport:r.default.func.isRequired,isFetching:r.default.bool,error:r.default.bool}));var v={urlInputWrapper:{display:"flex",alignItems:"stretch",width:"100%"},urlInput:{width:"inherit"},instructions:{color:l.default.black},errorText:{color:l.default.red}};t.default=(0,o.connect)((function(e){return{isOpen:e.screens.isImportingScreen&&!e.screens.importProject.fetchedProject,isFetching:e.screens.importProject.isFetchingProject,error:e.screens.importProject.errorFetchingProject}}),(function(e){return{onImport:function(t){e((0,s.fetchProject)(t))},handleClose:function(){e((0,s.toggleImportScreen)(!1))}}}))(y)},3605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ScreenListItem=t.ImportScreensDialog=t.IMPORT_FAILURE_MESSAGE=t.AssetListItem=void 0;var r=b(n(2)),i=b(n(166)),o=b(n(1)),a=n(30),l=m(n(1804)),s=m(n(780)),u=b(n(670)),c=m(n(2735)),d=b(n(25)),f=m(n(759)),p=n(3139),h=n(2175);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=_(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function b(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,A(e,t)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(e,t,n){var r;return r=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==_(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=.1*f.APP_HEIGHT,O=t.IMPORT_FAILURE_MESSAGE="\n  Cannot import the following screens because their IDs or\n  contained design element IDs are already used in your existing\n  project. Fix the IDs in either project so they aren't\n  duplicated between the two projects before trying to import the following.\n",T=function(e){function t(){return e.apply(this,arguments)||this}return w(t,e),t.prototype.render=function(){var e=this.props,t=e.asset,n=e.projectId,r=e.soundPlayer;return o.default.createElement("div",{style:D.assetListItem},o.default.createElement(l.default,{type:t.category,name:t.filename,iconStyle:D.assetThumbnailIcon,style:D.assetThumbnail,projectId:n,soundPlayer:r}),o.default.createElement("div",{style:[D.assetListItemText,D.subtext]},t.filename,t.willReplace&&o.default.createElement("p",{style:D.warning},'Warning: Importing this will replace your existing "',t.filename,'".')))},t}(o.default.Component);C(T,"propTypes",{asset:p.importableAssetShape,projectId:r.default.string,soundPlayer:r.default.object});var P=t.AssetListItem=(0,i.default)(T);function R(e){return e.map((function(e){return'"'.concat(e,'"')})).join(", ")}var x=function(e){function t(){return e.apply(this,arguments)||this}return w(t,e),t.prototype.render=function(){var e=this.props.screen;return o.default.createElement("div",{style:[D.screenListItem,!e.canBeImported&&D.disabledScreenListItem]},o.default.createElement("div",{style:D.miniScreenWrapper},o.default.createElement("div",{dangerouslySetInnerHTML:{__html:e.html},style:D.miniScreen})),o.default.createElement("div",null,e.id,0===e.conflictingIds.length&&e.willReplace&&o.default.createElement("p",{style:D.warning},'Importing this will replace your existing screen: "',e.id,'".'),0===e.conflictingIds.length&&e.assetsToReplace.length>0&&o.default.createElement("p",{style:D.warning},"Importing this will replace your existing assets:"," ",R(e.assetsToReplace),"."),e.conflictingIds.length>0&&o.default.createElement("p",{style:D.warning},"Uses existing element or screen IDs:"," ",R(e.conflictingIds),".")))},t}(o.default.Component);C(x,"propTypes",{screen:p.importableScreenShape});var I=t.ScreenListItem=(0,i.default)(x),k=t.ImportScreensDialog=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return C(t=e.call.apply(e,[this].concat(r))||this,"state",{selectedScreens:[],selectedAssets:[]}),t}w(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sounds=new u.default},n.render=function(){var e=this;if(!this.props.project)return null;var t=this.props.project.screens.filter((function(e){return!e.canBeImported})),n=this.props.project.screens.filter((function(e){return e.canBeImported})),r=n.length>0||this.props.project.otherAssets.length>0?o.default.createElement(s.Buttons,null,o.default.createElement(s.Confirm,{onClick:function(){return e.props.onImport(e.props.project.id,e.state.selectedScreens,e.state.selectedAssets)},disabled:this.props.isImporting},this.props.isImporting&&o.default.createElement("span",{className:"fa fa-spin fa-spinner"}),this.props.isImporting&&" ","Import")):o.default.createElement(s.Buttons,null,o.default.createElement(s.Cancel,{onClick:this.props.handleClose}));return o.default.createElement(s.default,E({title:"Import from Project: ".concat(this.props.project.name),soundPlayer:this.sounds},this.props),o.default.createElement(s.Body,null,o.default.createElement("div",{style:D.scrollable},n.length>0&&o.default.createElement(c.default,{style:D.section,header:"Screens",items:n,selected:this.state.selectedScreens,onChange:function(t){return e.setState({selectedScreens:t})},itemPropName:"screen",disabled:this.props.isImporting},o.default.createElement(I,null)),this.props.project.otherAssets.length>0&&o.default.createElement(c.default,{style:D.section,header:"Other Assets",items:this.props.project.otherAssets,selected:this.state.selectedAssets,onChange:function(t){return e.setState({selectedAssets:t})},itemPropName:"asset",disabled:this.props.isImporting},o.default.createElement(P,{projectId:this.props.project.id,soundPlayer:this.sounds})),t.length>0&&o.default.createElement("div",{style:D.section},o.default.createElement("h2",{style:c.styles.header},"Cannot Import"),o.default.createElement("p",{style:D.subtext},O),o.default.createElement("ul",{style:c.styles.list},t.map((function(e){return o.default.createElement("li",{key:e.id,style:c.styles.listItem},o.default.createElement(I,{screen:e}))})))))),r)},t}(o.default.Component);C(k,"propTypes",v(v({},s.default.propTypes),{},{project:p.importableProjectShape,onImport:r.default.func.isRequired,isImporting:r.default.bool})),C(k,"defaultProps",{isImporting:!1});var D={section:{marginTop:20},warning:{color:d.default.red,fontSize:"smaller",margin:0},subtext:{color:d.default.black},screenListItem:{display:"flex",alignItems:"center",color:d.default.black},disabledScreenListItem:{color:d.default.light_gray},assetListItem:{display:"flex",alignItems:"center"},assetThumbnail:{margin:0,height:S,width:S,color:d.default.black},assetThumbnailIcon:{fontSize:25,margin:0,lineHeight:S+"px"},assetListItemText:{marginLeft:10},miniScreenWrapper:{display:"inline-block",width:.1*f.APP_WIDTH,height:S,border:l.styles.wrapper.border,position:"relative",marginRight:10},miniScreen:{display:"inline-block",position:"absolute",left:0,transform:"scale(".concat(.1,")"),transformOrigin:"top left",width:f.APP_WIDTH},checkbox:{marginRight:10},selectAllCheckbox:{marginRight:10,position:"relative",bottom:4},scrollable:{overflow:"hidden",overflowY:"scroll",maxHeight:"400px"}};t.default=(0,a.connect)((function(e){return{isOpen:!(!e.screens.isImportingScreen||!e.screens.importProject.fetchedProject),project:e.screens.importProject.importableProject}}),(function(e){return{onImport:function(t,n,r){e((0,h.importIntoProject)(t,n,r))},handleClose:function(){e((0,h.toggleImportScreen)(!1))}}}))(k)},2943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(55)),i=d(n(2)),o=d(n(1)),a=d(n(79)),l=n(2585),s=n(1933),u=d(n(2629)),c=d(n(3600));function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h,g,m,b,y=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,p(n,i),t.prototype.render=function(){var e=this.props,t=e.isDark,n=e.screenIds,i=e.showSelector,l=e.isPaused,d=e.onScreenCreate;return o.default.createElement("span",{id:"phoneFrame"},o.default.createElement("div",{id:"phoneFrameWrapper"},o.default.createElement("div",{className:(0,r.default)(c.default.phoneFrame,c.default.phoneFrameTop,t&&c.default.phoneFrameDark)},i&&o.default.createElement("div",{className:c.default.screenSelector},o.default.createElement(u.default,{screenIds:n,onCreate:d})),l&&o.default.createElement("div",{className:(0,r.default)(c.default.centeredInFrame,c.default.paused)},o.default.createElement(a.default,{icon:"pause",className:c.default.pauseIcon}),"PAUSED")),this.props.children,o.default.createElement("div",{className:(0,r.default)(c.default.phoneFrame,c.default.phoneFrameBottom,t&&c.default.phoneFrameDark)},o.default.createElement("div",{className:c.default.centeredInFrame},o.default.createElement(s.RunButton,{hidden:!1,style:v.buttonMinWidth}),o.default.createElement(s.ResetButton,{style:v.buttonMinWidth})))))},t}(o.default.Component);h=y,g="propTypes",m={isDark:i.default.bool.isRequired,screenIds:i.default.array.isRequired,showSelector:i.default.bool.isRequired,isPaused:i.default.bool.isRequired,onScreenCreate:i.default.func.isRequired,children:i.default.node},b=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(g,"string"),(g="symbol"==f(b)?b:b+"")in h?Object.defineProperty(h,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[g]=m;var v={buttonMinWidth:{minWidth:l.styles.phoneFrameButton.minWidth}};e.exports=t.default},2944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(2)),i=d(n(1)),o=n(30),a=d(n(12)),l=d(n(1120)),s=n(759),u=n(2313),c=d(n(2629));function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var h,g,m,b,y=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,p(n,r);var o=t.prototype;return o.render=function(){var e,t,n=this.props.hasDataMode?"160px":"120px";return this.shouldHideToggle()||(e=i.default.createElement(l.default,{selected:this.props.interfaceMode,onChange:this.props.onInterfaceModeChange},i.default.createElement("button",{type:"button",id:"codeModeButton",value:s.ApplabInterfaceMode.CODE},a.default.codeMode()),i.default.createElement("button",{type:"button",id:"designModeButton",value:s.ApplabInterfaceMode.DESIGN},a.default.designMode()),this.props.hasDataMode&&i.default.createElement("button",{type:"button",id:"dataModeButton",value:s.ApplabInterfaceMode.DATA},a.default.dataMode()))),this.props.interfaceMode!==s.ApplabInterfaceMode.DESIGN||this.props.playspacePhoneFrame||(t=i.default.createElement(c.default,{screenIds:this.props.screenIds,onCreate:this.props.onScreenCreate})),i.default.createElement("div",{id:"playSpaceHeader"},i.default.createElement("table",{style:{width:"100%"}},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{style:{width:n}},e),i.default.createElement("td",{style:{maxWidth:0}},t)))))},o.shouldHideToggle=function(){return this.props.isShareView||!this.props.hasDesignMode},t}(i.default.Component);h=y,g="propTypes",m={channelId:r.default.string.isRequired,hasDataMode:r.default.bool.isRequired,hasDesignMode:r.default.bool.isRequired,isEditingProject:r.default.bool.isRequired,isShareView:r.default.bool.isRequired,interfaceMode:r.default.oneOf([s.ApplabInterfaceMode.CODE,s.ApplabInterfaceMode.DESIGN,s.ApplabInterfaceMode.DATA]).isRequired,playspacePhoneFrame:r.default.bool,screenIds:r.default.array.isRequired,onScreenCreate:r.default.func.isRequired,onInterfaceModeChange:r.default.func.isRequired},b=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(g,"string"),(g="symbol"==f(b)?b:b+"")in h?Object.defineProperty(h,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[g]=m;t.default=(0,o.connect)((function(e){return{channelId:e.pageConstants.channelId,hasDataMode:e.pageConstants.hasDataMode,hasDesignMode:e.pageConstants.hasDesignMode,isShareView:e.pageConstants.isShareView,interfaceMode:e.interfaceMode,playspacePhoneFrame:e.pageConstants.playspacePhoneFrame}}),(function(e){return{onInterfaceModeChange:function(t){e(u.actions.changeInterfaceMode(t))}}}))(y);e.exports=t.default},2947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(1)),o=n(30),a=n(759);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var c,d,f,p,h=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r);var o=t.prototype;return o.shouldComponentUpdate=function(e){return Object.keys(e).forEach(function(t){if("interfaceMode"!==t&&e[t]!==this.props[t])throw new Error("Attempting to change key "+t+" in ProtectedDesignWorkspace")}.bind(this)),!0},o.componentWillUnmount=function(){throw new Error("Unmounting ProtectedDesignWorkspace is not allowed.")},o.render=function(){var e=a.ApplabInterfaceMode.DESIGN===this.props.interfaceMode;return i.default.createElement("div",{id:"designWorkspace",style:{display:e?"block":"none"}})},t}(i.default.Component);c=h,d="propTypes",f={interfaceMode:r.default.oneOf([a.ApplabInterfaceMode.CODE,a.ApplabInterfaceMode.DESIGN,a.ApplabInterfaceMode.DATA]).isRequired},p=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(d,"string"),(d="symbol"==s(p)?p:p+"")in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f;t.default=(0,o.connect)((function(e){return{interfaceMode:e.interfaceMode}}))(h);e.exports=t.default},2629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(2)),i=p(n(1)),o=n(30),a=p(n(859)),l=f(n(759)),s=f(n(1083)),u=f(n(2175)),c=p(n(3599));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=h(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t,n){var r;return r=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==h(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return m(t=e.call.apply(e,[this].concat(r))||this,"handleChange",(function(e){var n=e.target.value;if(n===l.NEW_SCREEN)n=t.props.onCreate();else if(n===l.IMPORT_SCREEN)return void t.props.onImport();t.props.onScreenChange(n)})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,g(n,r),t.prototype.render=function(){if(!this.props.hasDesignMode)return null;var e=this.props.screenIds.map((function(e){return i.default.createElement("option",{key:e,value:e},e)})),t=s.getScreens().first().attr("id")||"";e.sort((function(e,n){return e.key===t?-1:n.key===t?1:e.key.localeCompare(n.key)}));var n=this.props.interfaceMode===l.ApplabInterfaceMode.DESIGN;return i.default.createElement("select",{id:"screenSelector",className:c.default.dropdown,value:this.props.currentScreenId||"",onChange:this.handleChange,disabled:this.props.isRunning,"aria-label":a.default.selectScreen()},e,n&&i.default.createElement("option",null,l.IMPORT_SCREEN),n&&i.default.createElement("option",null,l.NEW_SCREEN))},t}(i.default.Component);m(b,"propTypes",{currentScreenId:r.default.string,interfaceMode:r.default.string.isRequired,hasDesignMode:r.default.bool.isRequired,onScreenChange:r.default.func.isRequired,onImport:r.default.func.isRequired,isRunning:r.default.bool.isRequired,screenIds:r.default.array.isRequired,onCreate:r.default.func.isRequired});t.default=(0,o.connect)((function(e){return{currentScreenId:e.screens.currentScreenId,interfaceMode:e.interfaceMode,hasDesignMode:e.pageConstants.hasDesignMode,isRunning:e.runState.isRunning}}),(function(e){return{onScreenChange:function(t){e(u.changeScreen(t))},onImport:function(){e(u.toggleImportScreen(!0))}}}))(b);e.exports=t.default},3601:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedVisualization=void 0;var r=v(n(55)),i=v(n(2)),o=v(n(166)),a=v(n(1)),l=n(30),s=v(n(487)),u=v(n(856)),c=v(n(3602)),d=n(723),f=n(1747),p=v(n(2331)),h=v(n(25)),g=v(n(2946)),m=v(n(3603)),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=_(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(759));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(e,t,n){var r;return r=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==_(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return C(t=e.call.apply(e,[this].concat(i))||this,"handleDisableMaker",(function(){return s.default.setMakerEnabled(null)})),C(t,"handleTryAgain",(function(){(0,d.singleton)().resetButtonClick(),(0,d.singleton)().runButtonClick()})),C(t,"getVisualizationClassNames",(function(){var e=t.props,n=e.widgetMode,i=e.isResponsive,o=e.visualizationHasPadding;return n?(0,r.default)("widgetWidth","widgetHeight"):(0,r.default)({responsive:i,with_padding:o})})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,A(n,i),t.prototype.render=function(){var e=b.getAppWidth(this.props),t=b.APP_HEIGHT-b.FOOTER_HEIGHT;return a.default.createElement("div",{id:f.VISUALIZATION_DIV_ID,className:this.getVisualizationClassNames(),style:[!this.props.isResponsive&&w(w({},O.nonResponsive),{},{width:e}),this.props.isShareView&&O.share,this.props.playspacePhoneFrame&&O.phoneFrame,this.props.playspacePhoneFrame&&this.props.isRunning&&O.phoneFrameRunning]},a.default.createElement("div",{id:"divApplab",className:"appModern"}),a.default.createElement("div",{id:"designModeViz",className:"appModern",style:u.default.hidden}),a.default.createElement(p.default,{width:e,height:t},a.default.createElement(g.default,null),a.default.createElement(m.default,null)),a.default.createElement(c.default,{width:e,height:t,handleDisableMaker:this.handleDisableMaker,handleTryAgain:this.handleTryAgain}),a.default.createElement("div",{style:[w(w({},O.screenBlock),{width:e}),!(this.props.isPaused&&this.props.playspacePhoneFrame)&&u.default.hidden]}))},t}(a.default.Component);C(S,"propTypes",{visualizationHasPadding:i.default.bool.isRequired,isShareView:i.default.bool.isRequired,isPaused:i.default.bool.isRequired,isRunning:i.default.bool.isRequired,playspacePhoneFrame:i.default.bool.isRequired,isResponsive:i.default.bool.isRequired,widgetMode:i.default.bool});var O={nonResponsive:{height:b.APP_HEIGHT-b.FOOTER_HEIGHT},share:{height:b.APP_HEIGHT},phoneFrame:{marginBottom:0,borderColor:h.default.lighter_gray},phoneFrameRunning:{borderColor:h.default.charcoal},screenBlock:{backgroundColor:"rgba(255, 255, 255, 0.5)",height:b.APP_HEIGHT-b.FOOTER_HEIGHT,overflow:"hidden",zIndex:4,position:"absolute",top:0,left:0}};t.UnconnectedVisualization=S,t.default=(0,l.connect)((function(e){return{visualizationHasPadding:e.pageConstants.visualizationHasPadding,isShareView:e.pageConstants.isShareView,isRunning:e.runState.isRunning,isPaused:e.runState.isDebuggerPaused,playspacePhoneFrame:e.pageConstants.playspacePhoneFrame,isResponsive:(0,f.isResponsiveFromState)(e),widgetMode:e.pageConstants.widgetMode}}))((0,o.default)(S))},2622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new Promise((function(t,n){r.default.ajax({url:"/api/v1/ml_models/".concat(e),method:"GET"}).then((function(n){return function(e,t){var n=20,a=0,l=18,s="ml_model_"+e;(0,r.default)("."+s).each((function(e,t){(0,r.default)(t.parentNode).is(".ui-resizable")&&(t=t.parentNode),t.remove()})),o.default.onInsertEvent("var data = {};");var u=[];t.features.forEach((function(e){a+=l;var t,r=o.default.createElement("LABEL",n,a),c=(0,i.stripSpaceAndSpecial)(e.id);if(r.id="design_"+c+"_label",r.className=s,r.style.width="300px",a+=l,e.values){r.textContent=e.id+":",t=c+"_dropdown";var d=o.default.createElement("DROPDOWN",n,a);d.id="design_"+t,d.className=s,d.options.remove(0),d.options.remove(0),e.values.forEach((function(e){var t=document.createElement("option");t.text=e,d.options.add(t)})),a+=l}else{r.textContent=e.id;var f=o.default.createElement("TEXT_INPUT",n,a),p=e.min.toFixed(2),h=e.max.toFixed(2),g="min: ".concat(+p,", max: ").concat(+h);o.default.updateProperty(f,"placeholder",g),t=c+"_input",f.id="design_"+t,f.className=s,a+=l}var m='addPair(data, "'.concat(c,'", getText("').concat(t,'"));');u.push(m)})),a+=2*l;var c=o.default.createElement("LABEL",n,a);c.textContent=t.labelColumn;var d=(0,i.stripSpaceAndSpecial)(t.name);c.id="design_"+d+"_label",c.className=s,c.style.width="300px";var f=d+"_prediction",p=o.default.createElement("BUTTON",n,a);p.textContent="Predict";var h=d+"_predict";o.default.updateProperty(p,"id",h),p.className=s;var g='onEvent("'.concat(h,'", "click", function() {\n    ').concat(u.join("\n\t\t"),'\n    setText("').concat(f,"\", '');\n    getPrediction(\"").concat(t.name,'", "').concat(e,'", data, function(value) {\n      setText("').concat(f,'", value);\n    });\n  });');a+=2.5*l;var m=o.default.createElement("TEXT_INPUT",n,a);m.id="design_"+f,m.className=s,m.readOnly=!0,o.default.onInsertAICode(g)}(e,n),t()})).fail((function(e,t){return alert({message:"An error occurred"})}))}))};var r=a(n(34)),i=n(3129),o=a(n(1750));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3580:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.aiConfig=void 0;var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i}(n(2812));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.aiConfig={blocks:[].concat(a)};var a=[{func:"getPrediction",parent:i,category:"Data",paletteParams:["name","id","data","callback"],params:['"name"','"id"',"data","function (value) {\n \n}"]}]},2812:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPair=function(e,t,n){return Applab.executeCmd(null,"addPair",{object:e,key:t,value:n})},t.arcLeft=function(e,t){return Applab.executeCmd(null,"arcLeft",{degrees:e,radius:t})},t.arcRight=function(e,t){return Applab.executeCmd(null,"arcRight",{degrees:e,radius:t})},t.button=function(e,t){return Applab.executeCmd(null,"button",{elementId:e,text:t})},t.checkbox=function(e,t){return Applab.executeCmd(null,"checkbox",{elementId:e,checked:t})},t.circle=function(e,t,n){return Applab.executeCmd(null,"circle",{x:e,y:t,radius:n})},t.clearCanvas=function(){return Applab.executeCmd(null,"clearCanvas")},t.container=function(e,t){return Applab.executeCmd(null,"container",{elementId:e,html:t})},t.createCanvas=function(e,t,n){return Applab.executeCmd(null,"createCanvas",{elementId:e,width:t,height:n})},t.createRecord=function(e,t,n,r){return Applab.executeCmd(null,"createRecord",{table:e,record:t,onSuccess:n,onError:r})},t.createRecordSync=function(e,t,n){return Applab.executeCmd(null,"createRecord",{table:e,record:t,onSuccess:n,onError:n})},t.deleteElement=function(e){return Applab.executeCmd(null,"deleteElement",{elementId:e})},t.deleteRecord=function(e,t,n,r){return Applab.executeCmd(null,"deleteRecord",{table:e,record:t,onComplete:n,onError:r})},t.deleteRecordSync=function(e,t,n){return Applab.executeCmd(null,"deleteRecord",{table:e,record:t,onComplete:n,onError:n})},t.dot=function(e){return Applab.executeCmd(null,"dot",{radius:e})},t.drawChart=function(e,t,n,r,i){return Applab.executeCmd(null,"drawChart",{chartId:e,chartType:t,chartData:n,options:r,callback:i})},t.drawChartFromRecords=function(e,t,n,r,i,o){return Applab.executeCmd(null,"drawChartFromRecords",{chartId:e,chartType:t,tableName:n,columns:r,options:i,callback:o})},t.drawImage=function(e,t,n,r,i){return Applab.executeCmd(null,"drawImage",{imageId:e,x:t,y:n,width:r,height:i})},t.drawImageURL=function(e,t,n,r,i,o){void 0===n&&void 0===r&&void 0===i&&void 0===o&&(o=t,t=void 0);return Applab.executeCmd(null,"drawImageURL",{url:e,x:t,y:n,width:r,height:i,callback:o})},t.dropdown=function(e){var t=Array.prototype.slice.call(arguments,1);return Applab.executeCmd(null,"dropdown",{elementId:e,optionsArray:t})},t.getAttribute=function(e,t){return Applab.executeCmd(null,"getAttribute",{elementId:e,attribute:t})},t.getChecked=function(e){return Applab.executeCmd(null,"getChecked",{elementId:e})},t.getColumn=function(e,t,n){return Applab.executeCmd(null,"getColumn",{table:e,column:t,callback:n})},t.getDirection=function(){return Applab.executeCmd(null,"getDirection")},t.getImageData=function(e,t,n,r){return Applab.executeCmd(null,"getImageData",{x:e,y:t,width:n,height:r})},t.getImageURL=function(e){return Applab.executeCmd(null,"getImageURL",{elementId:e})},t.getKeyValue=function(e,t,n){return Applab.executeCmd(null,"getKeyValue",{key:e,onSuccess:t,onError:n})},t.getKeyValueSync=function(e,t){return Applab.executeCmd(null,"getKeyValueSync",{key:e,callback:t})},t.getNumber=function(e){return Applab.executeCmd(null,"getNumber",{elementId:e})},t.getPrediction=function(e,t,n,r){return Applab.executeCmd(null,"getPrediction",{modelName:e,modelId:t,testValues:n,callback:r})},t.getProperty=function(e,t){return Applab.executeCmd(null,"getProperty",{elementId:e,property:t})},t.getText=function(e){return Applab.executeCmd(null,"getText",{elementId:e})},t.getUserId=function(){return Applab.executeCmd(null,"getUserId",{})},t.getValue=function(e,t){return Applab.executeCmd(null,"getValue",{object:e,key:t})},t.getX=function(){return Applab.executeCmd(null,"getX")},t.getXPosition=function(e){return Applab.executeCmd(null,"getXPosition",{elementId:e})},t.getY=function(){return Applab.executeCmd(null,"getY")},t.getYPosition=function(e){return Applab.executeCmd(null,"getYPosition",{elementId:e})},t.hide=function(){return Applab.executeCmd(null,"hide")},t.hideElement=function(e){return Applab.executeCmd(null,"hideElement",{elementId:e})},t.image=function(e,t){return Applab.executeCmd(null,"image",{elementId:e,src:t})},t.imageUploadButton=function(e,t){return Applab.executeCmd(null,"imageUploadButton",{elementId:e,text:t})},t.innerHTML=function(e,t){return Applab.executeCmd(null,"innerHTML",{elementId:e,html:t})},t.line=function(e,t,n,r){return Applab.executeCmd(null,"line",{x1:e,y1:t,x2:n,y2:r})},t.move=function(e,t){return Applab.executeCmd(null,"move",{x:e,y:t})},t.moveBackward=function(e){return Applab.executeCmd(null,"moveBackward",{distance:e})},t.moveForward=function(e){return Applab.executeCmd(null,"moveForward",{distance:e})},t.moveTo=function(e,t){return Applab.executeCmd(null,"moveTo",{x:e,y:t})},t.onEvent=function(e,t,n){var r=Array.prototype.slice.call(arguments).slice(3);return Applab.executeCmd(null,"onEvent",{elementId:e,eventName:t,func:n,extraArgs:r})},t.open=function(e){return Applab.executeCmd(null,"openUrl",{url:e})},t.penColor=function(e){return Applab.executeCmd(null,"penColor",{color:e})},t.penDown=function(){return Applab.executeCmd(null,"penDown")},t.penRGB=function(e,t,n,r){return Applab.executeCmd(null,"penRGB",{r:e,g:t,b:n,a:r})},t.penUp=function(){return Applab.executeCmd(null,"penUp")},t.penWidth=function(e){return Applab.executeCmd(null,"penWidth",{width:e})},t.putImageData=function(e,t,n){return Applab.executeCmd(null,"putImageData",{imageData:e,x:t,y:n})},t.radioButton=function(e,t,n){return Applab.executeCmd(null,"radioButton",{elementId:e,checked:t,name:n})},t.readRecords=function(e,t,n,r){return Applab.executeCmd(null,"readRecords",{table:e,searchParams:t,onSuccess:n,onError:r})},t.readRecordsSync=function(e,t){return Applab.executeCmd(null,"readRecords",{table:e,searchParams:{},onSuccess:t,onError:t})},t.rect=function(e,t,n,r){return Applab.executeCmd(null,"rect",{x:e,y:t,width:n,height:r})},t.rgb=function(e,t,n,r){return Applab.executeCmd(null,"rgb",{r:e,g:t,b:n,a:r})},t.setActiveCanvas=function(e){return Applab.executeCmd(null,"setActiveCanvas",{elementId:e})},t.setAttribute=function(e,t,n){return Applab.executeCmd(null,"setAttribute",{elementId:e,attribute:t,value:n})},t.setChecked=function(e,t){return Applab.executeCmd(null,"setChecked",{elementId:e,checked:t})},t.setFillColor=function(e){return Applab.executeCmd(null,"setFillColor",{color:e})},t.setImageURL=function(e,t){return Applab.executeCmd(null,"setImageURL",{elementId:e,src:t})},t.setKeyValue=function(e,t,n,r){return Applab.executeCmd(null,"setKeyValue",{key:e,value:t,onSuccess:n,onError:r})},t.setKeyValueSync=function(e,t,n){return Applab.executeCmd(null,"setKeyValueSync",{key:e,value:t,callback:n})},t.setNumber=function(e,t){return Applab.executeCmd(null,"setNumber",{elementId:e,number:t})},t.setParent=function(e,t){return Applab.executeCmd(null,"setParent",{elementId:e,parentId:t})},t.setPosition=function(e,t,n,r,i){return Applab.executeCmd(null,"setPosition",{elementId:e,left:t,top:n,width:r,height:i})},t.setProperty=function(e,t,n){return Applab.executeCmd(null,"setProperty",{elementId:e,property:t,value:n})},t.setScreen=function(e){return Applab.executeCmd(null,"setScreen",{screenId:e})},t.setSelectionRange=function(e,t,n,r){return Applab.executeCmd(null,"setSelectionRange",{elementId:e,selectionStart:t,selectionEnd:n,selectionDirection:r})},t.setSize=function(e,t,n){return Applab.executeCmd(null,"setSize",{elementId:e,width:t,height:n})},t.setStrokeColor=function(e){return Applab.executeCmd(null,"setStrokeColor",{color:e})},t.setStrokeWidth=function(e){return Applab.executeCmd(null,"setStrokeWidth",{width:e})},t.setStyle=function(e,t){return Applab.executeCmd(null,"setStyle",{elementId:e,style:t})},t.setText=function(e,t){return Applab.executeCmd(null,"setText",{elementId:e,text:t})},t.show=function(){return Applab.executeCmd(null,"show")},t.showElement=function(e){return Applab.executeCmd(null,"showElement",{elementId:e})},t.slider=function(e,t,n,r,i){return Applab.executeCmd(null,"slider",{elementId:e,min:t,max:n,value:r,step:i})},t.speed=function(e){return Applab.executeCmd(null,"speed",{percent:e})},t.startWebRequest=function(e,t){return Applab.executeCmd(null,"startWebRequest",{url:e,func:t})},t.startWebRequestSync=function(e,t){return Applab.executeCmd(null,"startWebRequest",{url:e,func:function(e,n,r){t(r)}})},t.textArea=function(e,t){return Applab.executeCmd(null,"textArea",{elementId:e,text:t})},t.textInput=function(e,t){return Applab.executeCmd(null,"textInput",{elementId:e,text:t})},t.textLabel=function(e,t,n){return Applab.executeCmd(null,"textLabel",{elementId:e,text:t,forId:n})},t.turnLeft=function(e){return Applab.executeCmd(null,"turnLeft",{degrees:e})},t.turnRight=function(e){return Applab.executeCmd(null,"turnRight",{degrees:e})},t.turnTo=function(e){return Applab.executeCmd(null,"turnTo",{direction:e})},t.updateRecord=function(e,t,n,r){return Applab.executeCmd(null,"updateRecord",{table:e,record:t,onComplete:n,onError:r})},t.updateRecordSync=function(e,t,n){return Applab.executeCmd(null,"updateRecord",{table:e,record:t,onComplete:n,onError:n})},t.write=function(e){return Applab.executeCmd(null,"write",{html:e})}},2791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=le(n(34)),i=le(n(51)),o=le(n(1)),a=le(n(56)),l=n(30),s=le(n(859)),u=le(n(2622)),c=ae(n(3580)),d=le(n(1308)),f=n(1217),p=n(25),h=le(n(12)),g=le(n(861)),m=n(1172),b=le(n(1192)),y=le(n(487)),v=le(n(2206)),_=n(142),E=n(1196),w=le(n(491)),A=n(722),C=le(n(3581)),S=le(n(2533)),O=le(n(2427)),T=n(1173),P=le(n(1033)),R=n(1283),x=ae(n(2207)),I=le(n(373)),k=n(1174),D=ae(n(2126)),M=ae(n(3582)),j=n(139),F=n(902),N=n(1227),L=le(n(670)),B=n(1373),$=n(1809),W=n(1560),U=n(1763),G=n(723),V=n(2699),H=n(2331),z=ae(n(2116)),q=n(2813),Y=ae(n(33)),X=le(n(2624)),K=le(n(2927)),Q=le(n(2625)),Z=ae(n(759)),J=ae(n(1083)),ee=le(n(1750)),te=ae(n(3606)),ne=le(n(3609)),re=n(2313),ie=n(2175);function oe(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(oe=function(e){return e?n:t})(e)}function ae(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=ue(e)&&"function"!=typeof e)return{default:e};var n=oe(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function le(e){return e&&e.__esModule?e:{default:e}}function se(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */se=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),l=new x(r||[]);return i(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function b(){}function y(){}function v(){}var _={};u(_,a,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(I([])));w&&w!==n&&r.call(w,a)&&(_=w);var A=v.prototype=b.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,l){var s=d(e[i],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==ue(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=T(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(ue(t)+" is not iterable")}return y.prototype=v,i(A,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,s,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},C(S.prototype),u(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new S(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(A),u(A,s,"Generator"),u(A,a,(function(){return this})),u(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function ce(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e,t,n){var r;return r=function(e,t){if("object"!=ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ue(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe,he,ge=Z.ApplabInterfaceMode,me={},be=(t.default=me,null);me.log=function(e,t){be&&be.log({output:e,fromConsoleLog:!0}),(0,j.getStore)().dispatch(T.actions.appendLog({output:e,fromConsoleLog:!0},t))},v.default.setLogMethod(me.log),me.clear=function(){be&&be.clear(),(0,j.getStore)().dispatch(T.actions.clearLog())},v.default.setClearMethod(me.clear),(0,G.singleton)().setCheckForEmptyBlocks(!0);me.scale={snapRadius:1,stepSpeed:0};var ye={text:s.default.shareApplabTwitterDonor({donor:(0,q.getRandomDonorTwitter)()}),hashtag:"ApplabCode"};function ve(e){return 1500*Math.pow(1-e,2)}function _e(){for(var e in me.timeoutFailureTick=pe.timeoutFailureTick||1/0,me.minWorkspaceHeight=pe.minWorkspaceHeight,me.softButtons_=pe.softButtons||{},me.appWidth=Z.getAppWidth(pe),me.appHeight=Z.APP_HEIGHT,me.footerlessAppHeight=Z.APP_HEIGHT-Z.FOOTER_HEIGHT,pe.scale)me.scale[e]=pe.scale[e]}var Ee=function(){["divApplab","visualizationOverlay","designModeViz"].forEach((function(e){var t=document.getElementById(e);t.style.width=me.appWidth+"px",t.style.height=me.footerlessAppHeight+"px"})),(0,G.singleton)().share&&function(){var e=document.getElementById("divApplab"),t=document.createElement("div");t.setAttribute("id","footerDiv"),e.parentNode.insertBefore(t,e.nextSibling);var n=(0,j.getStore)().getState().pageConstants.isIframeEmbed,i=me.makeFooterMenuItems(n);a.default.render(o.default.createElement(d.default,{i18nDropdownInBase:!1,privacyPolicyInBase:!1,copyrightInBase:!1,baseMoreMenuString:h.default.builtOnCodeStudio(),rowHeight:Z.FOOTER_HEIGHT,style:{fontSize:18},baseStyle:{width:(0,r.default)("#divApplab").width(),paddingLeft:0},className:"dark",menuItems:i,phoneFooter:!0}),t)}()};function we(){var e=ve((0,j.getStore)().getState().runState.stepSpeed);return void 0!==e?e:me.scale.stepSpeed}function Ae(){window.setTimeout(me.onTick,we())}function Ce(e,t,n,r){(0,R.outputError)(n,t,r),me.executionError={err:e,lineNumber:t},me.clearEventHandlersKillTickLoop(),me.onExecutionError&&me.onExecutionError()}function Se(){var e;return e=se().mark((function e(t){var n,r;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me.storage.projectHasData();case 2:if(n=e.sent,t.dataTables&&me.storage.populateTable(t.dataTables).catch(R.outputError),t.dataProperties&&me.storage.populateKeyValue(t.dataProperties,(function(){}),R.outputError),!t.dataLibraryTables){e.next=10;break}return e.next=8,me.storage.getLibraryManifest();case 8:r=e.sent,n||t.dataLibraryTables.split(",").forEach((function(e){(0,B.getDatasetInfo)(e,r.tables)?me.storage.addSharedTable(e):console.warn("unknown table ".concat(e))}));case 10:case"end":return e.stop()}}),e)})),Se=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ce(o,r,i,a,l,"next",e)}function l(e){ce(o,r,i,a,l,"throw",e)}a(void 0)}))},Se.apply(this,arguments)}function Oe(e){(0,r.default)(window).trigger("run_button_pressed");var t=J.getDefaultScreenId();(0,j.getStore)().dispatch((0,ie.changeScreen)(t)),me.changeScreen(t),me.serializeAndSave(e)}me.makeFooterMenuItems=function(e){var t=[window.location.search.indexOf("nosource")<0&&{key:"how-it-works",text:h.default.howItWorks(),link:y.default.getProjectUrl("/view"),newWindow:!0},e&&!w.default.isMobile()&&{text:s.default.makeMyOwnApp(),link:"/projects/applab/new"},{key:"report-abuse",text:h.default.reportAbuse(),link:"/report_abuse",newWindow:!0},{text:h.default.copyright(),link:"#",copyright:!0},{text:h.default.privacyPolicy(),link:"https://code.org/privacy",newWindow:!0}].filter((function(e){return e})),n=y.default.getCurrentId();return(0,f.userAlreadyReportedAbuse)(n)&&i.default.remove(t,(function(e){return"report-abuse"===e.key})),t},me.hasDataStoreAPIs=function(e){return/createRecord/.test(e)||/updateRecord/.test(e)||/setKeyValue/.test(e)},me.setStepSpeed=function(e){(0,j.getStore)().dispatch((0,F.setStepSpeed)(e)),me.scale.stepSpeed=ve(e)},me.getCode=function(){return(0,G.singleton)().getCode()},me.getHtml=function(){return(0,r.default)("#designModeViz").is(":visible")&&ee.default.serializeToLevelHtml(),me.levelHtml},me.setLevelHtml=function(e){me.levelHtml=""===e?"":ee.default.addScreenIfNecessary(e);var t=document.getElementById("designModeViz");ee.default.parseFromLevelHtml(t,!0,Z.DESIGN_ELEMENT_ID_PREFIX),ee.default.loadDefaultScreen(),ee.default.serializeToLevelHtml()},me.onTick=function(){if(me.running){if(me.tickCount++,Ae(),me.tickCount===Z.CAPTURE_TICK_COUNT){var e=document.getElementById("visualization");z.captureThumbnailFromElement(e)}me.JSInterpreter&&me.JSInterpreter.executeInterpreter(1===me.tickCount),Te()&&me.onPuzzleFinish()}},me.initReadonly=function(e){he=e.skin,pe=e.level,e.appMsg=s.default,_e(),(0,G.singleton)().initReadonly(e)},me.init=function(e){if(be=null,z.init(),(0,j.getStore)().dispatch(re.actions.setLevelData({name:e.level.name,isStartMode:e.isStartMode})),(0,G.singleton)().reset=this.reset.bind(this),(0,G.singleton)().runButtonClick=this.runButtonClick.bind(this),e.runButtonClickWrapper=Oe,!e.level.editCode)throw"App Lab requires Droplet";e.level.editBlocks&&(e.level.lastAttempt="",b.default.showLevelBuilderSaveButton((function(){return{start_blocks:me.getCode(),start_html:me.getHtml(),start_libraries:JSON.stringify(y.default.getProjectLibraries())}}))),me.channelId=e.channel,me.storage=(0,U.initStorage)(U.DATABLOCK_STORAGE,{channelId:e.channel}),I.default.setCustomAttribute("channelId",me.channelId),e.usesAssets=!0,me.clearEventHandlersKillTickLoop(),(he=e.skin).smallStaticAvatar=null,he.staticAvatar=null,he.winAvatar=null,he.failureAvatar=null,pe=e.level,me.user={labUserId:e.labUserId,isSignedIn:e.isSignedIn},me.isReadOnlyView=e.readonlyWorkspace,me.onExecutionError=e.onExecutionError,_e(),(0,G.singleton)().hideSource&&(e.level.sliderSpeed=1);var t=!e.hideSource&&!e.level.debuggerDisabled,n=!e.level.debuggerDisabled,i=!e.hideSource,o=e.level.widgetMode&&!e.isStartMode,a=!(e.level.hideDesignMode||o),l=!(e.level.hideViewDataButton||e.level.widgetMode),u=!(e.share||e.level.widgetMode),d=u||o;e.hideSource||(be=new O.default(window.console)),(t||i)&&((0,j.getStore)().dispatch(T.actions.initialize({runApp:me.runButtonClick})),e.level.expandDebugger&&(0,j.getStore)().dispatch(T.actions.open())),w.default.isMobile()&&e.share&&(0,r.default)("#main-logo").hide(),(0,R.injectErrorHandler)(new S.default((function(){return me.JSInterpreter}),me)),e.loadAudio=function(){(0,G.singleton)().loadAudio(he.failureSound,"failure")},e.shareWarningInfo={hasDataAPIs:function(){return me.hasDataStoreAPIs(me.getCode())},onWarningsComplete:function(){e.share&&window.setTimeout(me.runButtonClick.bind((0,G.singleton)()),0)}},e.afterInject=function(){(0,G.singleton)().isUsingBlockly()&&(Blockly.HSV_SATURATION=.6,Blockly.SNAP_RADIUS*=me.scale.snapRadius),Ee(),(!(0,j.getStore)().getState().pageConstants.hasDesignMode||(0,j.getStore)().getState().pageConstants.isEmbedView||(0,j.getStore)().getState().pageConstants.hasContainedLevels)&&(e.level.levelHtml=""),me.setLevelHtml(pe.levelHtml||pe.startHtml||"")},e.afterEditorReady=function(){n&&(0,G.singleton)().enableBreakpoints()},e.afterClearPuzzle=function(){var t;e.level.startLibraries&&(t=JSON.parse(e.level.startLibraries)),y.default.sourceHandler.setInitialLibrariesList(t),ee.default.resetIds(),me.setLevelHtml(e.level.startHtml||""),me.storage.clearAllData((function(){return console.log("success")}),(function(e){return console.log(e)})),(0,G.singleton)().resetButtonClick()},e.twitter=ye,e.makeYourOwn=!1,e.varsInGlobals=!0,e.pinWorkspaceToBottom=!0,e.vizAspectRatio=me.appWidth/me.footerlessAppHeight,e.nativeVizWidth=me.appWidth,e.appMsg=s.default,e.mobileNoPaddingShareWidth=Z.APP_WIDTH,e.enableShowLinesCount=!1,e.wireframeShare=!0,e.noInstructionsWhenCollapsed=!0,e.ignoreLastAttempt=e.embed,e.lockFunctionDropIntoKnownParams=!0;var f=Promise.resolve();(pe.dataTables||pe.dataProperties||pe.dataLibraryTables)&&(f=function(e){return Se.apply(this,arguments)}(pe)),me.handleVersionHistory=(0,G.singleton)().getVersionHistoryHandler(e),e.isStartMode&&delete e.onAttempt;var p,h=function(){(0,G.singleton)().init(e);var t=document.getElementById("finishButton");if(t&&w.default.addClickTouchEvent(t,me.onPuzzleFinish),(0,V.initializeSubmitHelper)({studioApp:(0,G.singleton)(),onPuzzleComplete:this.onPuzzleComplete.bind(this),unsubmitUrl:pe.unsubmitUrl}),function(e){ee.default.setupReduxSubscribers(e);var t={};e.subscribe((function(){var n=t;(t=e.getState()).interfaceMode!==n.interfaceMode&&function(e){var t=e!==ge.DESIGN;if(me.toggleDivApplab(t),e===ge.DESIGN)(0,G.singleton)().resetButtonClick(),ee.default.setAppSpaceClipping(!0);else if(e===ge.CODE)if(setTimeout((function(){return Y.fireResizeEvent()}),0),me.isRunning())me.activeScreen().focus();else{me.serializeAndSave();var n=document.getElementById("divApplab");ee.default.parseFromLevelHtml(n,!1),me.changeScreen((0,j.getStore)().getState().screens.currentScreenId)}requestAnimationFrame((function(){return(0,m.showHideWorkspaceCallouts)()}))}(t.interfaceMode);var r=t.data&&t.data.view,i=n.data&&n.data.view,o=t.interfaceMode===ge.DATA;(o&&r!==i||function(e,t){return e.interfaceMode!==t.interfaceMode&&e.interfaceMode===ge.DATA}(t,n))&&(0,$.loadDataForView)(me.storage,t.data.view,t.data.tableName);var a=n.data&&n.data.isPreviewOpen,l=t.data&&t.data.isPreviewOpen;if(o&&l&&!a){var s=t.data.tableName;me.storage.previewSharedTable(s,(function(e){return(0,j.getStore)().dispatch((0,W.updateTableColumns)(s,e))}),(function(e){return(0,j.getStore)().dispatch((0,W.updateTableRecords)(s,e))}))}n.runState&&t.runState.isRunning===n.runState.isRunning||me.onIsRunningChange()})),e.getState().pageConstants.hasDataMode&&me.storage.getLibraryManifest().then((function(t){return e.dispatch((0,W.setLibraryManifest)(t))}))}((0,j.getStore)()),e.level.watchersPrepopulated)try{JSON.parse(e.level.watchersPrepopulated).forEach((function(e){(0,j.getStore)().dispatch((0,N.add)(e))}))}catch(n){console.warn("Error pre-populating watchers.")}ee.default.addKeyboardHandlers(),ee.default.renderDesignWorkspace(),ee.default.loadDefaultScreen(),ee.default.configureDragAndDrop(),document.getElementById("designModeViz").addEventListener("click",ee.default.onDesignModeVizClick)}.bind(this);if((0,G.singleton)().setPageConstants(e,{playspacePhoneFrame:u,hideRunButton:d,hideResetButton:d,channelId:e.channel,exportApp:me.exportApp,nonResponsiveVisualizationColumnWidth:Z.APP_WIDTH,visualizationHasPadding:!e.noPadding,hasDataMode:l,hasDesignMode:a,isIframeEmbed:!!e.level.iframeEmbed,isProjectLevel:!!e.level.isProjectLevel,isSubmittable:!!e.level.submittable,isSubmitted:!!e.level.submitted,librariesEnabled:!!e.level.librariesEnabled,aiEnabled:!!e.level.aiEnabled,aiModelId:e.level.aiModelId,aiModelName:e.level.aiModelName,showDebugButtons:t,showDebugConsole:i,showDebugSlider:i,showDebugWatch:!!e.level.isProjectLevel||e.level.showDebugWatch,debugConsoleDisabled:e.readonlyWorkspace,showMakerToggle:!!e.level.isProjectLevel||e.level.makerlabEnabled,validationEnabled:!!e.level.validationEnabled,widgetMode:e.level.widgetMode,isCurriculumLevel:(p=e.level.validationEnabled,void 0!==p)}),e.dropletConfig=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},te),e.level.aiEnabled&&(e.dropletConfig=Y.deepMergeConcatArrays(e.dropletConfig,c)),e.level.makerlabEnabled)M.enable(),e.dropletConfig=Y.deepMergeConcatArrays(e.dropletConfig,M.dropletConfig),e.level.makerlabEnabled===k.MB_API?e.dropletConfig=Y.deepMergeConcatArrays(e.dropletConfig,M.configMicrobit):e.dropletConfig=Y.deepMergeConcatArrays(e.dropletConfig,M.configCircuitPlayground);else{var g=Y.deepMergeConcatArrays(M.configCircuitPlayground,M.configMicrobit),v=Y.deepMergeConcatArrays(M.dropletConfig,g),_=(0,A.makeDisabledConfig)(v);e.dropletConfig=Y.deepMergeConcatArrays(e.dropletConfig,_)}var E=pe.codeFunctions?pe.codeFunctions.customFunctions:void 0;return E&&Object.keys(E).map((function(t){E[t].func=t,e.dropletConfig.blocks.push(E[t]),pe.codeFunctions[t]=null})),(0,G.singleton)().loadLibraryBlocks(e),e.level.levelBlocks=e.dropletConfig.blocks,(0,j.getStore)().dispatch(re.actions.changeInterfaceMode(!me.isReadOnlyView&&me.startInDesignMode()?ge.DESIGN:ge.CODE)),me.reactInitialProps_={onMount:h},me.reactMountPoint_=document.getElementById(e.containerId),(0,G.singleton)().loadLibraries(pe.helperLibraries).then((function(){if(me.render(),480===(0,r.default)(".screen").height()){var e=.9375;(0,G.singleton)().share?((0,r.default)("#divApplab").css("transform","scale("+e+", "+e+")"),(0,r.default)(".small-footer-base").css("transform","scale("+e+", 1)")):(0,r.default)("#phoneFrameWrapper").css("transform","scale("+e+", "+e+")")}})).then((function(){(0,j.getStore)().getState().pageConstants.widgetMode&&f.then((function(){me.runButtonClick()}))}))},me.onIsRunningChange=function(){me.setCrosshairCursorForPlaySpace()},me.setCrosshairCursorForPlaySpace=function(){var e=(0,H.shouldOverlaysBeVisible)((0,j.getStore)().getState());(0,r.default)("#divApplab").toggleClass("withCrosshair",e),(0,r.default)("#designModeViz").toggleClass("withCrosshair",!0)},me.reactInitialProps_={},me.reactMountPoint_=null,me.render=function(){var e=Object.assign({},me.reactInitialProps_,{isEditingProject:y.default.isEditing(),screenIds:ee.default.getAllScreenIds(),onScreenCreate:ee.default.createScreen,handleVersionHistory:me.handleVersionHistory,autogenerateML:u.default});a.default.render(o.default.createElement(l.Provider,{store:(0,j.getStore)()},o.default.createElement(K.default,e)),me.reactMountPoint_)},me.exportApp=function(){me.runButtonClick();var e=document.getElementById("divApplab").outerHTML;return(0,G.singleton)().resetButtonClick(),ne.default.exportApp(y.default.getCurrentName()||"my-app",(0,G.singleton)().editor.getValue(),e)},me.appendToEditor=function(e){var t=(0,G.singleton)().editor.addEmptyLine((0,G.singleton)().editor.getValue())+e;(0,G.singleton)().editor.setValue(t)},me.scrollToEnd=function(){(0,G.singleton)().editor.scrollCursorToEndOfDocument()},me.clearEventHandlersKillTickLoop=function(){me.whenRunFunc=null,me.running=!1,(0,r.default)("#headers").removeClass("dimmed"),(0,r.default)("#codeWorkspace").removeClass("dimmed"),me.isReadOnlyView||(0,r.default)(".droplet-main-canvas").css("background-color",p.white),me.tickCount=0},me.isRunning=function(){return(0,G.singleton)().isRunning()},me.toggleDivApplab=function(e){e?((0,r.default)("#divApplab").show(),(0,r.default)("#designModeViz").hide()):((0,r.default)("#divApplab").hide(),(0,r.default)("#designModeViz").show())},me.resetTurtle=function(){me.turtle={},me.turtle.heading=0,me.turtle.x=me.appWidth/2,me.turtle.y=me.appHeight/2,me.turtle.isPenDown=!0},me.reset=function(){me.clearEventHandlersKillTickLoop(),me.message=null,delete me.activeCanvas,me.resetTurtle(),x.clearTimeouts(),x.clearIntervals();for(var e=document.getElementById("divApplab");e.firstChild;)e.removeChild(e.firstChild);L.default.getSingleton().stopAllAudio();var t=e.cloneNode(!0);e.parentNode.replaceChild(t,e),(0,r.default)("#divApplab").toggleClass("running",me.isRunning()),(0,r.default)("#divApplab").toggleClass("notRunning",!me.isRunning());var n=me.isInDesignMode()&&!me.isRunning();me.toggleDivApplab(!n),ee.default.parseFromLevelHtml(t,!1),me.isInDesignMode()&&(ee.default.resetElementTray(n),ee.default.resetPropertyTab()),M.reset(),pe.showTurtleBeforeRun&&X.default.turtleSetVisibility(!0),pe.goal&&(pe.goal.successState={}),(0,j.getStore)().dispatch(T.actions.detach()),be&&be.detach(),me.storage.resetRecordListener(),me.Globals={},me.executionError=null,me.JSInterpreter&&(me.JSInterpreter.deinitialize(),me.JSInterpreter=null)},me.serializeAndSave=function(e){ee.default.serializeToLevelHtml(),(0,r.default)(window).trigger("appModeChanged"),e&&e()},me.runButtonClick=function(){L.default.getSingleton().unmuteURLs(),(0,G.singleton)().toggleRunReset("reset"),(0,G.singleton)().isUsingBlockly()&&Blockly.mainBlockSpace.traceOn(!0),me.execute();var e=document.getElementById("share-cell");e&&(e.className="share-cell-enabled",(0,G.singleton)().onResize()),(0,G.singleton)().editor&&I.default.addPageAction(I.default.PageAction.RunButtonClick,{usingBlocks:(0,G.singleton)().editor.session.currentlyUsingBlocks,app:"applab"},.01),(0,E.postContainedLevelAttempt)((0,G.singleton)())};me.onReportComplete=function(e){me.response=e,me.waitingForReport=!1,(0,G.singleton)().onReportComplete(e),me.waitingForReport||(0,G.singleton)().displayFeedback({feedbackType:me.testResults,executionError:me.executionError,response:me.response,level:pe,showingSharing:!1,tryAgainText:s.default.tryAgainText(),feedbackImage:me.feedbackImage,twitter:ye,message:me.message,appStrings:{reinfFeedbackMsg:s.default.reinfFeedbackMsg(),sharingText:s.default.shareGame()},hideXButton:!0})},me.execute=function(){me.result=_.ResultType.UNSET,me.testResults=_.TestResults.NO_TESTS_RUN,me.waitingForReport=!1,me.response=null,(0,G.singleton)().reset(!1),(0,G.singleton)().clearAndAttachRuntimeAnnotations(),(0,G.singleton)().attempts++;var e="";pe.helperLibraries&&(e+=pe.helperLibraries.map((function(e){return(0,G.singleton)().libraries[e]})).join("\n")+"\n"),e+=(0,G.singleton)().getCode(),me.currentExecutionLog=[],("string"!=typeof e||(me.JSInterpreter=new P.default({studioApp:(0,G.singleton)(),logExecution:!!pe.logConditions,shouldRunAtMaxSpeed:function(){return 0===we()},maxInterpreterStepsPerTick:1e4}),me.JSInterpreter.onExecutionError.register(Ce),be&&be.attachTo(me.JSInterpreter),(0,j.getStore)().dispatch(T.actions.attach(me.JSInterpreter)),me.JSInterpreter.parse({code:e,projectLibraries:pe.projectLibraries,blocks:pe.levelBlocks,blockFilter:pe.executePaletteApisOnly&&pe.codeFunctions,enableEvents:!0}),me.currentExecutionLog=me.JSInterpreter.executionLog,me.JSInterpreter.initialized()))&&(D.isEnabled((0,j.getStore)().getState())?M.connect({interpreter:me.JSInterpreter,onDisconnect:function(){return(0,G.singleton)().resetButtonClick()}}).then(me.beginVisualizationRun).catch((function(e){if(!(e instanceof M.MakerError))return me.log(e),Promise.reject(e)})):me.beginVisualizationRun())},me.beginVisualizationRun=function(){var e=me.getScreens().first().attr("id");me.changeScreen(e),me.running=!0,(0,r.default)("#headers").addClass("dimmed"),(0,r.default)("#codeWorkspace").addClass("dimmed"),me.isReadOnlyView||(0,r.default)(".droplet-main-canvas").css("background-color",p.workspace_running_background),ee.default.renderDesignWorkspace(),Ae()},me.feedbackImage="",me.encodedFeedbackImage="",me.onPuzzleFinish=function(){me.onPuzzleComplete(!1)},me.onPuzzleComplete=function(e){var t=!(0,G.singleton)().validateCodeChanged();me.executionError?me.result=_.ResultType.ERROR:me.result=t?_.ResultType.FAILURE:_.ResultType.SUCCESS;var n,r=me.result===_.ResultType.SUCCESS;if(me.executionError)me.testResults=(0,G.singleton)().getTestResults(r,{executionError:me.executionError});else if(pe.logConditions){var i=C.default.getResultsFromLog(pe.logConditions,me.currentExecutionLog);me.testResults=i.testResult,me.message=i.message}else me.testResults=t?_.TestResults.FREE_PLAY_UNCHANGED_FAIL:e?_.TestResults.SUBMITTED_RESULT:_.TestResults.FREE_PLAY;pe.failOnLintErrors&&g.default.getJSLintAnnotations().length&&me.testResults>_.TestResults.GENERIC_LINT_FAIL&&(me.testResults=_.TestResults.GENERIC_LINT_FAIL),me.clearEventHandlersKillTickLoop(),me.testResults>=_.TestResults.FREE_PLAY?(0,G.singleton)().playAudio("win"):(0,G.singleton)().playAudio("failure");var o=(0,G.singleton)().hasContainedLevels?(0,E.getContainedLevelResultInfo)():null;o?(me.testResults=_.TestResults.ALL_PASS,me.message=o.feedback):n=(0,G.singleton)().getCode(),me.waitingForReport=!0;var a;a=e?V.onSubmitComplete:me.onReportComplete,o?(0,E.runAfterPostContainedLevel)(a):(0,G.singleton)().report({app:"applab",level:pe.id,result:r,testResult:me.testResults,submitted:e,program:encodeURIComponent(n),image:me.encodedFeedbackImage,containedLevelResultsInfo:o,onComplete:a})},me.executeCmd=function(e,t,n){var r={id:e,name:t,opts:n};return me.callCmd(r)},me.callCmd=function(e){var t=!1;return Q.default[e.name]instanceof Function&&((0,G.singleton)().highlight(e.id),t=Q.default[e.name](e.opts)),t},me.timedOut=function(){return me.tickCount>me.timeoutFailureTick};var Te=function(){return pe.goal&&pe.goal.successCondition&&pe.goal.successCondition()?(me.result=_.ResultType.SUCCESS,!0):(pe.goal&&pe.goal.failureCondition&&pe.goal.failureCondition()||!!me.timedOut())&&(me.result=_.ResultType.FAILURE,!0)};function Pe(e,t){return e.id>t.id?1:-1}me.startInDesignMode=function(){return!!pe.designModeAtStart},me.isInDesignMode=function(){var e=(0,j.getStore)().getState().interfaceMode;return ge.DESIGN===e},me.getIdDropdown=function(e){return me.getIdDropdownFromDom_((0,r.default)(document),e)},me.getIdDropdownFromDom_=function(e,t){var n=e.find('#designModeViz [id^="'+Z.DESIGN_ELEMENT_ID_PREFIX+'"]');return t&&(n=n.filter(t)),n.sort(Pe).map((function(e,t){var n='"'+J.getId(t)+'"';return{text:n,display:n}})).get()},me.getIdDropdownForCurrentScreen=function(){return me.getIdDropdownForCurrentScreenFromDom_((0,r.default)("#designModeViz"))},me.getIdDropdownForCurrentScreenFromDom_=function(e){var t=e.find(".screen").filter((function(){return"none"!==this.style.display})).first();return t.find('[id^="'+Z.DESIGN_ELEMENT_ID_PREFIX+'"]').add(t).map((function(e,t){return J.getId(t)})).get()},me.activeScreen=function(){return me.getScreens().filter((function(){return"none"!==this.style.display})).first()[0]},me.changeScreen=function(e){me.getScreens().each((function(){(0,r.default)(this).toggle(this.id===e),this.id===e&&this.focus()})),me.isRunning()||pe.showTurtleBeforeRun&&X.default.turtleSetVisibility(!0)},me.getScreens=function(){return(0,r.default)("#divApplab > .screen")},me.updateProperty=function(e,t,n){return ee.default.updateProperty(e,t,n)},me.readProperty=function(e,t){return ee.default.readProperty(e,t)},me.getAppReducers=function(){return re.reducers},e.exports=t.default},2624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(3584)),i=o(n(2625));function o(e){return e&&e.__esModule?e:{default:e}}var a={};t.default=a;a.getTurtleContext=function(){var e=document.getElementById("turtleCanvas");if(!e){i.default.createCanvas({elementId:"turtleCanvas",turtleCanvas:!0}),e=document.getElementById("turtleCanvas"),Applab.turtle.visible=!0;var t=document.createElement("img");t.src=r.default,t.id="turtleImage",a.updateTurtleImage(t),t.ondragstart=function(){return!1},Applab.activeScreen().appendChild(t)}return e.getContext("2d")},a.updateTurtleImage=function(e){e||(e=document.getElementById("turtleImage")),e.style.left=Applab.turtle.x-12+"px",e.style.top=Applab.turtle.y-12+"px";var t="rotate("+(Applab.turtle.heading+-45)+"deg)";e.style.transform=t,e.style.msTransform=t,e.style.webkitTransform=t},a.turtleSetVisibility=function(e){a.getTurtleContext(),document.getElementById("turtleImage").style.visibility=e?"visible":"hidden"},e.exports=t.default},2625:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=R(n(34)),o=R(n(859)),a=n(1753),l=n(1996),s=n(3585),u=n(2378),c=P(n(3173)),d=n(3176),f=P(n(611)),p=n(1283),h=R(n(373)),g=n(139),m=P(n(33)),b=R(n(2624)),y=R(n(2924)),v=R(n(2626)),_=n(759),E=P(n(1083)),w=R(n(1725)),A=R(n(2925)),C=n(2313),S=R(n(2623)),O=P(n(3177));function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(T=function(e){return e?n:t})(e)}function P(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=T(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function R(e){return e&&e.__esModule?e:{default:e}}var x="//"+location.host+"/xhr",I={},k=(t.default=I,{}),D=new A.default;function M(e,t){var n="validated_active_canvas";if(!e||void 0===e[n]){var r=Boolean(Applab.activeCanvas);r||(0,p.outputWarning)(t+"() called without an active canvas. Call createCanvas() first."),e&&(e[n]=r)}}function j(e,t,n,r,i,o){var a=document.getElementById("divApplab"),l="validated_type_"+n,s="validated_id_"+n;if((0,p.apiValidateType)(e,t,n,r,"string"),e[l]&&void 0===e[s]){var u,c=document.getElementById(r),d=Boolean(c&&a.contains(c)),f={allowCodeElements:!0,allowDesignPrefix:!0,allowDesignElements:!0,allowTurtleCanvas:Boolean(e.turtleCanvas)},h=!0;if(!E.isIdAvailable(r,f))throw u="is already being used outside of App Lab. Please use a different id.",new Error(B(t,n,r,u));if(i===d||o&&o(d)||(h=!1,u=d?"already exists.":"does not exist.",(0,p.outputWarning)(B(t,n,r,u))),-1!==r.search(/\s/)){h=!1;var g=r.replace(/\s+/g,"");u='contains whitespace. Change the id name to ("'.concat(g,'")'),(0,p.outputWarning)(B(t,n,r,u))}e[s]=h}}function F(e,t,n,r){var i="The following lines of HTML were modified or removed:\n"+e+"\noriginal html:\n"+t+"\nmodified html:\n"+n;r.length>0&&(i+="\nwarnings:\n"+r.join("\n")),(0,p.outputWarning)(i)}I.setScreen=function(e){j(e,"setScreen","screenId",e.screenId,!0);var t=document.getElementById(e.screenId),n=document.getElementById("divApplab");t&&t.parentNode===n&&Applab.changeScreen(e.screenId)},I.container=function(e){e.elementId&&j(e,"container","id",e.elementId,!1);var t=document.createElement("div");void 0!==e.elementId&&(t.id=e.elementId);var n=(0,S.default)(e.html,F,!1,!0);return t.innerHTML=n,t.style.position="relative",Boolean(Applab.activeScreen().appendChild(t))},I.write=function(e){return(0,p.apiValidateType)(e,"write","text",e.html,"uistring"),I.container(e)},I.button=function(e){j(e,"button","id",e.elementId,!1),(0,p.apiValidateType)(e,"button","text",e.text,"uistring");var t=document.createElement("button"),n=document.createTextNode(e.text);return t.id=e.elementId,t.style.position="relative",t.style.borderStyle="solid",w.default.setAllPropertiesToCurrentTheme(t,Applab.activeScreen()),Boolean(t.appendChild(n)&&Applab.activeScreen().appendChild(t))},I.image=function(e){j(e,"image","id",e.elementId,!1),(0,p.apiValidateType)(e,"image","id",e.elementId,"string"),(0,p.apiValidateType)(e,"image","url",e.src,"string");var t=document.createElement("img");return _.ICON_PREFIX_REGEX.test(e.src)?(t.src=f.renderIconToString(e.src,t),t.width=t.height=200):t.src=f.fixPath(e.src),t.setAttribute("data-canonical-image-url",e.src),t.id=e.elementId,t.style.position="relative",E.setDefaultBorderStyles(t,{forceDefaults:!0}),Applab.updateProperty(t,"objectFit","contain"),Boolean(Applab.activeScreen().appendChild(t))},I.imageUploadButton=function(e){j(e,"imageUploadButton","id",e.elementId,!1);var t=document.createElement("label"),n=document.createTextNode(e.text);t.id=e.elementId,t.className="img-upload",t.style.position="relative";var r=document.createElement("input");return r.type="file",r.accept="image/*",r.capture="camera",r.style.position="absolute",r.style.left="-9999px",Boolean(t.appendChild(r)&&t.appendChild(n)&&Applab.activeScreen().appendChild(t))},I.show=function(e){b.default.turtleSetVisibility(!0)},I.hide=function(e){b.default.turtleSetVisibility(!1)},I.moveTo=function(e){(0,p.apiValidateType)(e,"moveTo","x",e.x,"number"),(0,p.apiValidateType)(e,"moveTo","y",e.y,"number");var t=b.default.getTurtleContext();t&&(t.beginPath(),t.moveTo(Applab.turtle.x,Applab.turtle.y),Applab.turtle.x=e.x,Applab.turtle.y=e.y,Applab.turtle.isPenDown&&(t.lineTo(Applab.turtle.x,Applab.turtle.y),t.stroke()),b.default.updateTurtleImage())},I.move=function(e){(0,p.apiValidateType)(e,"move","x",e.x,"number"),(0,p.apiValidateType)(e,"move","y",e.y,"number"),e.x+=Applab.turtle.x,e.y+=Applab.turtle.y,I.moveTo(e)},I.moveForward=function(e){(0,p.apiValidateType)(e,"moveForward","pixels",e.distance,"number",p.OPTIONAL);var t={},n=25;void 0!==e.distance&&(n=e.distance),t.x=Applab.turtle.x+n*Math.sin(2*Math.PI*Applab.turtle.heading/360),t.y=Applab.turtle.y-n*Math.cos(2*Math.PI*Applab.turtle.heading/360),I.moveTo(t)},I.moveBackward=function(e){(0,p.apiValidateType)(e,"moveBackward","pixels",e.distance,"number",p.OPTIONAL);var t=-25;void 0!==e.distance&&(t=-e.distance),I.moveForward({distance:t})},I.turnRight=function(e){(0,p.apiValidateType)(e,"turnRight","angle",e.degrees,"number",p.OPTIONAL),b.default.getTurtleContext();var t=90;void 0!==e.degrees&&(t=e.degrees),Applab.turtle.heading+=t,Applab.turtle.heading=(Applab.turtle.heading+360)%360,b.default.updateTurtleImage()},I.turnLeft=function(e){(0,p.apiValidateType)(e,"turnLeft","angle",e.degrees,"number",p.OPTIONAL);var t=-90;void 0!==e.degrees&&(t=-e.degrees),I.turnRight({degrees:t})},I.turnTo=function(e){(0,p.apiValidateType)(e,"turnTo","angle",e.direction,"number");var t=e.direction-Applab.turtle.heading;I.turnRight({degrees:t})},I.arcRight=function(e){(0,p.apiValidateType)(e,"arcRight","angle",e.degrees,"number"),(0,p.apiValidateType)(e,"arcRight","radius",e.radius,"number");var t=e.counterclockwise?-90:90,n=e.counterclockwise?-e.degrees:e.degrees,r=b.default.getTurtleContext();if(r){var i=Applab.turtle.x+e.radius*Math.sin(2*Math.PI*(Applab.turtle.heading+t)/360),o=Applab.turtle.y-e.radius*Math.cos(2*Math.PI*(Applab.turtle.heading+t)/360),a=2*Math.PI*(Applab.turtle.heading+(e.counterclockwise?0:180))/360,l=a+2*Math.PI*n/360;Applab.turtle.isPenDown&&(r.beginPath(),r.arc(i,o,e.radius,a,l,e.counterclockwise),r.stroke()),Applab.turtle.heading=(Applab.turtle.heading+n+360)%360;var s=e.radius*Math.cos(2*Math.PI*Applab.turtle.heading/360),u=e.radius*Math.sin(2*Math.PI*Applab.turtle.heading/360);Applab.turtle.x=i+(e.counterclockwise?s:-s),Applab.turtle.y=o+(e.counterclockwise?u:-u),b.default.updateTurtleImage()}},I.arcLeft=function(e){(0,p.apiValidateType)(e,"arcLeft","angle",e.degrees,"number"),(0,p.apiValidateType)(e,"arcLeft","radius",e.radius,"number"),e.counterclockwise=!0,I.arcRight(e)},I.getX=function(e){return Applab.turtle.x},I.getY=function(e){return Applab.turtle.y},I.getDirection=function(e){return Applab.turtle.heading},I.dot=function(e){(0,p.apiValidateTypeAndRange)(e,"dot","radius",e.radius,"number",1e-4);var t=b.default.getTurtleContext();if(t&&e.radius>0){t.beginPath();var n=t.lineWidth;return t.lineWidth=1,t.arc(Applab.turtle.x,Applab.turtle.y,e.radius,0,2*Math.PI),t.fill(),t.stroke(),t.lineWidth=n,!0}},I.penUp=function(e){Applab.turtle.isPenDown=!1},I.penDown=function(e){Applab.turtle.isPenDown=!0},I.penWidth=function(e){(0,p.apiValidateTypeAndRange)(e,"penWidth","width",e.width,"number",1e-4);var t=b.default.getTurtleContext();t&&(t.lineWidth=e.width)},I.penColorInternal=function(e){var t=b.default.getTurtleContext();t&&(t.strokeStyle=e,t.fillStyle=e)},I.penColor=function(e){(0,p.apiValidateType)(e,"penColor","color",e.color,"color"),I.penColorInternal(e.color)},I.penRGB=function(e){(0,p.apiValidateTypeAndRange)(e,"penRGB","r",e.r,"number",0,255),(0,p.apiValidateTypeAndRange)(e,"penRGB","g",e.g,"number",0,255),(0,p.apiValidateTypeAndRange)(e,"penRGB","b",e.b,"number",0,255),(0,p.apiValidateTypeAndRange)(e,"penRGB","a",e.a,"number",0,1,p.OPTIONAL);var t=void 0===e.a?1:e.a,n="rgba("+e.r+","+e.g+","+e.b+","+t+")";I.penColorInternal(n)},I.speed=function(e){(0,p.apiValidateTypeAndRange)(e,"speed","value",e.percent,"number",0,100),e.percent>=0&&e.percent<=100&&Applab.setStepSpeed(e.percent/100)},I.createCanvas=function(e){j(e,"createCanvas","canvasId",e.elementId,!1),(0,p.apiValidateType)(e,"createCanvas","width",r,"number",p.OPTIONAL),(0,p.apiValidateType)(e,"createCanvas","height",i,"number",p.OPTIONAL);var t=document.createElement("canvas"),n=t.getContext("2d");if(t&&n){t.id=e.elementId;var r=e.width||Applab.appWidth,i=e.height||Applab.footerlessAppHeight;return t.width=r,t.height=i,t.setAttribute("width",r+"px"),t.setAttribute("height",i+"px"),t.style.position="absolute",e.turtleCanvas||(n.fillStyle="rgba(255, 255, 255, 0)"),n.lineCap="round",Applab.activeCanvas||e.turtleCanvas||(Applab.activeCanvas=t),Boolean(Applab.activeScreen().appendChild(t))}return!1},I.setActiveCanvas=function(e){var t=document.getElementById("divApplab");j(e,"setActiveCanvas","canvasId",e.elementId,!0);var n=document.getElementById(e.elementId);return!!t.contains(n)&&(Applab.activeCanvas=n,!0)},I.line=function(e){M(e,"line"),(0,p.apiValidateType)(e,"line","x1",e.x1,"number"),(0,p.apiValidateType)(e,"line","x2",e.x2,"number"),(0,p.apiValidateType)(e,"line","y1",e.y1,"number"),(0,p.apiValidateType)(e,"line","y2",e.y2,"number");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!!t&&(t.beginPath(),t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.stroke(),!0)},I.circle=function(e){M(e,"circle"),(0,p.apiValidateType)(e,"circle","centerX",e.x,"number"),(0,p.apiValidateType)(e,"circle","centerY",e.y,"number"),(0,p.apiValidateType)(e,"circle","radius",e.radius,"number");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!!t&&(t.beginPath(),t.arc(e.x,e.y,e.radius,0,2*Math.PI),t.fill(),t.stroke(),!0)},I.rect=function(e){M(e,"rect"),(0,p.apiValidateType)(e,"rect","upperLeftX",e.x,"number"),(0,p.apiValidateType)(e,"rect","upperLeftY",e.y,"number"),(0,p.apiValidateType)(e,"rect","width",e.width,"number"),(0,p.apiValidateType)(e,"rect","height",e.height,"number");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!!t&&(t.beginPath(),t.rect(e.x,e.y,e.width,e.height),t.fill(),t.stroke(),!0)},I.setStrokeWidth=function(e){M(e,"setStrokeWidth"),(0,p.apiValidateTypeAndRange)(e,"setStrokeWidth","width",e.width,"number",1e-4);var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!!t&&(t.lineWidth=e.width,!0)},I.rgb=function(e){(0,p.apiValidateTypeAndRange)(e,"rgb","number",e.r,"number"),(0,p.apiValidateTypeAndRange)(e,"rgb","number",e.g,"number"),(0,p.apiValidateTypeAndRange)(e,"rgb","number",e.b,"number"),(0,p.apiValidateTypeAndRange)(e,"rgb","number",e.a,"number",0,1,p.OPTIONAL),e.r=Math.min(255,Math.max(0,Math.round(e.r))),e.g=Math.min(255,Math.max(0,Math.round(e.g))),e.b=Math.min(255,Math.max(0,Math.round(e.b)));var t=void 0===e.a?1:e.a;return"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(t,")")},I.setStrokeColor=function(e){M(e,"setStrokeColor"),(0,p.apiValidateType)(e,"setStrokeColor","color",e.color,"color");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!!t&&(t.strokeStyle=String(e.color),!0)},I.setFillColor=function(e){M(e,"setFillColor"),(0,p.apiValidateType)(e,"setFillColor","color",e.color,"color");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!!t&&(t.fillStyle=String(e.color),!0)},I.clearCanvas=function(e){M(e,"clearCanvas");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!!t&&(t.clearRect(0,0,Applab.activeCanvas.width,Applab.activeCanvas.height),!0)},I.drawImage=function(e){var t=document.getElementById("divApplab");M(e,"drawImage"),j(e,"drawImage","id",e.imageId,!0),(0,p.apiValidateType)(e,"drawImage","x",e.x,"number"),(0,p.apiValidateType)(e,"drawImage","y",e.y,"number");var n,r,i=document.getElementById(e.imageId),o=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");return!(!o||!t.contains(i))&&(n=r=1,void 0!==e.width&&((0,p.apiValidateType)(e,"drawImage","width",e.width,"number"),n*=e.width/i.width),void 0!==e.height&&((0,p.apiValidateType)(e,"drawImage","height",e.height,"number"),r*=e.height/i.height),o.save(),o.setTransform(n,0,0,r,e.x,e.y),o.drawImage(i,0,0),o.restore(),!0)},I.drawImageURL=function(e){M(e,"drawImageURL"),(0,p.apiValidateType)(e,"drawImageURL","url",e.url,"string"),(0,p.apiValidateType)(e,"drawImageURL","x",e.x,"number",p.OPTIONAL),(0,p.apiValidateType)(e,"drawImageURL","y",e.y,"number",p.OPTIONAL),(0,p.apiValidateType)(e,"drawImageURL","width",e.width,"number",p.OPTIONAL),(0,p.apiValidateType)(e,"drawImageURL","height",e.height,"number",p.OPTIONAL),(0,p.apiValidateType)(e,"drawImageURL","callback",e.callback,"function",p.OPTIONAL);var t=function(t){"function"==typeof e.callback&&e.callback.call(null,t)},n=new Image;n.src=f.fixPath(e.url),n.onload=function(){var r=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");if(r){var i=m.valueOr(e.x,0),o=m.valueOr(e.y,0),a=m.valueOr(e.width,n.width),l=m.valueOr(e.height,n.height);if(void 0===e.width||void 0===e.height){var s=n.width/n.height;s>1?l=(a=Math.min(Applab.activeCanvas.width,n.width))/s:a=(l=Math.min(Applab.activeCanvas.height,n.height))*s}r.save(),r.setTransform(a/n.width,0,0,l/n.height,i,o),r.drawImage(n,0,0),r.restore(),t(!0)}},n.onerror=function(){t(!1)}},I.getImageData=function(e){M(e,"getImageData"),(0,p.apiValidateType)(e,"getImageData","x",e.x,"number"),(0,p.apiValidateType)(e,"getImageData","y",e.y,"number"),(0,p.apiValidateType)(e,"getImageData","width",e.width,"number"),(0,p.apiValidateType)(e,"getImageData","height",e.height,"number");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");if(t)return t.getImageData(e.x,e.y,e.width,e.height)},I.putImageData=function(e){M(e,"putImageData"),(0,p.apiValidateType)(e,"putImageData","imgData",e.imageData,"object"),(0,p.apiValidateType)(e,"putImageData","x",e.x,"number"),(0,p.apiValidateType)(e,"putImageData","y",e.y,"number");var t=Applab.activeCanvas&&Applab.activeCanvas.getContext("2d");if(t){var n=t.createImageData(e.imageData.width,e.imageData.height);return n.data.set(e.imageData.data),t.putImageData(n,e.x,e.y)}},I.textInput=function(e){j(e,"textInput","id",e.elementId,!1),(0,p.apiValidateType)(e,"textInput","text",e.text,"uistring");var t=document.createElement("input");return t.value=e.text,t.id=e.elementId,t.style.position="relative",t.style.height="30px",t.style.width="200px",t.style.borderStyle="solid",w.default.setAllPropertiesToCurrentTheme(t,Applab.activeScreen()),Boolean(Applab.activeScreen().appendChild(t))},I.textArea=function(e){j(e,"textArea","id",e.elementId,!1);var t=document.createElement("div");t.id=e.elementId;var n=document.createTextNode(e.text);return t.appendChild(n),t.setAttribute("contenteditable",!0),t.style.width="200px",t.style.height="100px",t.style.borderStyle="solid",w.default.setAllPropertiesToCurrentTheme(t,Applab.activeScreen()),(0,i.default)(t).addClass("textArea"),Boolean(Applab.activeScreen().appendChild(t))},I.textLabel=function(e){j(e,"textLabel","id",e.elementId,!1),(0,p.apiValidateType)(e,"textLabel","text",e.text,"uistring"),void 0!==e.forId&&j(e,"textLabel","forId",e.forId,!0);var t=document.createElement("label"),n=document.createTextNode(e.text);t.id=e.elementId,t.style.position="relative",t.style.borderStyle="solid",t.style.textRendering="optimizeSpeed",w.default.setAllPropertiesToCurrentTheme(t,Applab.activeScreen());var r=document.getElementById(e.forId);return r&&Applab.activeScreen().contains(r)&&t.setAttribute("for",e.forId),Boolean(t.appendChild(n)&&Applab.activeScreen().appendChild(t))},I.checkbox=function(e){j(e,"checkbox","id",e.elementId,!1);var t=document.createElement("input");return t.setAttribute("type","checkbox"),t.checked=e.checked,t.id=e.elementId,t.style.position="relative",Boolean(Applab.activeScreen().appendChild(t))},I.radioButton=function(e){j(e,"radioButton","id",e.elementId,!1),(0,p.apiValidateType)(e,"radioButton","group",e.name,"string",p.OPTIONAL);var t=document.createElement("input");return t.setAttribute("type","radio"),t.name=e.name,t.checked=e.checked,t.id=e.elementId,t.style.position="relative",Boolean(Applab.activeScreen().appendChild(t))},I.slider=function(e){j(e,"slider","id",e.elementId,!1);var t=document.createElement("input");return t.id=e.elementId,t.setAttribute("type","range"),t.min=e.min,t.max=e.max,t.defaultValue=e.value,t.step=e.step,t.style.position="relative",t.style.borderStyle="solid",t.style.width=150,t.style.height=24,t.style.margin="0px",t.style.padding="0px",w.default.setAllPropertiesToCurrentTheme(t,Applab.activeScreen()),Boolean(Applab.activeScreen().appendChild(t))},I.dropdown=function(e){j(e,"dropdown","id",e.elementId,!1);var t=document.createElement("select");if(e.optionsArray)for(var n=0;n<e.optionsArray.length;n++){var r=document.createElement("option");(0,p.apiValidateType)(e,"dropdown","option_"+(n+1),e.optionsArray[n],"uistring"),r.text=e.optionsArray[n],t.add(r)}return t.id=e.elementId,t.style.position="relative",t.style.borderStyle="solid",w.default.setAllPropertiesToCurrentTheme(t,Applab.activeScreen()),Boolean(Applab.activeScreen().appendChild(t))},I.getAttribute=function(e){var t=document.getElementById("divApplab"),n=document.getElementById(e.elementId),r=String(e.attribute);return!!t.contains(n)&&String(n[r])};var N=["scrollTop"];function L(e,t,n){var r=document.getElementById(e);document.getElementById("divApplab").contains(r)&&(r.style.width=t+"px",r.style.height=n+"px")}function B(e,t,n,r){return"The ".concat(e,"() ").concat(t,' parameter refers to an id ("').concat(n,'") which ').concat(r)}I.setAttribute=function(e){var t=document.getElementById("divApplab"),n=document.getElementById(e.elementId),r=String(e.attribute);return!(!t.contains(n)||-1===N.indexOf(r))&&(n[r]=e.value,!0)},I.setSelectionRange=function(e){var t=e.elementId,n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection;j(e,"setSelectionRange","elementId",t,!0),(0,p.apiValidateType)(e,"setSelectionRange","start",n,"number"),(0,p.apiValidateType)(e,"setSelectionRange","end",r,"number"),(0,p.apiValidateType)(e,"setSelectionRange","direction",i,"string",p.OPTIONAL);var o=document.getElementById("divApplab"),a=document.getElementById(t);return!!o.contains(a)&&(a.setSelectionRange(n,r,i),!0)},I.getText=function(e){var t=document.getElementById("divApplab");j(e,"getText","id",e.elementId,!0);var n=document.getElementById(e.elementId);return!!t.contains(n)&&("INPUT"===n.tagName||"SELECT"===n.tagName?String(n.value):"IMG"===n.tagName?String(n.alt):I.getElementInnerText_(n))},I.setText=function(e){var t=document.getElementById("divApplab");j(e,"setText","id",e.elementId,!0),(0,p.apiValidateType)(e,"setText","text",e.text,"uistring");var n=document.getElementById(e.elementId);return!!t.contains(n)&&("INPUT"===n.tagName||"SELECT"===n.tagName?n.value=e.text:"IMG"===n.tagName?n.alt=e.text:I.setElementInnerText_(n,e.text),!0)},I.getNumber=function(e){return j(e,"getNumber","id",e.elementId,!0),parseFloat(I.getText(e),10)},I.setNumber=function(e){return j(e,"setNumber","id",e.elementId,!0),(0,p.apiValidateType)(e,"setNumber","value",e.number,"number"),e.text=e.number,I.setText(e)},I.getElementInnerText_=function(e){return m.unescapeText(e.innerHTML)},I.setElementInnerText_=function(e,t){e.innerHTML=m.escapeText(t.toString())},I.getChecked=function(e){var t=document.getElementById("divApplab");j(e,"getChecked","id",e.elementId,!0);var n=document.getElementById(e.elementId);return!(!t.contains(n)||"INPUT"!==n.tagName)&&n.checked},I.setChecked=function(e){var t=document.getElementById("divApplab");j(e,"setChecked","id",e.elementId,!0);var n=document.getElementById(e.elementId);return!(!t.contains(n)||"INPUT"!==n.tagName)&&(n.checked=e.checked,!0)},I.getImageURL=function(e){var t=document.getElementById("divApplab");j(e,"getImageURL","id",e.elementId,!0);var n=document.getElementById(e.elementId);if(t.contains(n)){if("IMG"===n.tagName)return n.getAttribute("data-canonical-image-url");if("LABEL"===n.tagName&&(0,i.default)(n).hasClass("img-upload")){var r=n.children[0].files[0];if(r)return window.URL.createObjectURL(r)}}},I.setImageURL=function(e){var t=document.getElementById("divApplab");j(e,"setImageURL","id",e.elementId,!0),(0,p.apiValidateType)(e,"setImageURL","url",e.src,"string");var n=document.getElementById(e.elementId);if(t.contains(n)&&"IMG"===n.tagName){if(_.ICON_PREFIX_REGEX.test(e.src)?n.src=f.renderIconToString(e.src,n):n.src=f.fixPath(e.src),n.setAttribute("data-canonical-image-url",e.src),!k[n.src])(new Image).src=n.src,k[n.src]=!0;return!0}return!1},I.innerHTML=function(e){var t=document.getElementById("divApplab"),n=document.getElementById(e.elementId);return!!t.contains(n)&&(n.innerHTML=(0,S.default)(e.html,F,!1,!0),!0)},I.deleteElement=function(e){var t=document.getElementById("divApplab");j(e,"deleteElement","id",e.elementId,!0);var n=document.getElementById(e.elementId);return!!t.contains(n)&&((n===Applab.activeCanvas||n.contains(Applab.activeCanvas))&&delete Applab.activeCanvas,Boolean(n.parentElement.removeChild(n)))},I.showElement=function(e){return I.setProperty({elementId:e.elementId,property:"hidden",value:!1})},I.hideElement=function(e){return I.setProperty({elementId:e.elementId,property:"hidden",value:!0})},I.setStyle=function(e){var t=document.getElementById("divApplab"),n=document.getElementById(e.elementId);return!!t.contains(n)&&(n.style.cssText+=e.style,!0)},I.setParent=function(e){var t=document.getElementById("divApplab"),n=document.getElementById(e.elementId),r=document.getElementById(e.parentId);return!(!t.contains(n)||!t.contains(r))&&Boolean(n.parentElement.removeChild(n)&&r.appendChild(n))},I.setPosition=function(e){var t=document.getElementById("divApplab");j(e,"setPosition","id",e.elementId,!0),(0,p.apiValidateType)(e,"setPosition","x",e.left,"number"),(0,p.apiValidateType)(e,"setPosition","y",e.top,"number");var n=document.getElementById(e.elementId);return!!t.contains(n)&&(n.style.position="absolute",n.style.left=e.left+"px",n.style.top=e.top+"px",n.style.margin=0,void 0===e.width&&void 0===e.height||((0,p.apiValidateType)(e,"setPosition","width",e.width,"number",p.OPTIONAL),(0,p.apiValidateType)(e,"setPosition","height",e.height,"number",p.OPTIONAL),L(e.elementId,e.width,e.height)),!0)},I.setSize=function(e){return(0,p.apiValidateType)(e,"setSize","width",e.width,"number"),(0,p.apiValidateType)(e,"setSize","height",e.height,"number"),L(e.elementId,e.width,e.height),!0},I.setProperty=function(e){j(e,"setProperty","id",e.elementId,!0,(function(t){var n="".concat(t?"already exists.":"does not exist."," You should be able to find the list of all the possible ids in the dropdown (unless you created the element inside your code).");return(0,p.outputWarning)(B("setProperty","id",e.elementId,n)),!0})),(0,p.apiValidateType)(e,"setProperty","property",e.property,"string");var t=e.elementId,n=e.property,r=e.value,i=document.getElementById(t);if(i){var o=O.getInternalPropertyInfo(i,n);if(o)(0,p.apiValidateType)(e,"setProperty","value",e.value,o.type)&&Applab.updateProperty(i,o.internalName,r);else(0,p.outputError)('There is no property named "'+n+'" for element "'+t+'". Make sure you choose a property from the dropdown.')}},I.getProperty=function(e){j(e,"getProperty","id",e.elementId,!0),(0,p.apiValidateType)(e,"getProperty","property",e.property,"string");var t=e.elementId,n=e.property,r=document.getElementById(t);if(r){var i=O.getInternalPropertyInfo(r,n);if(i)return Applab.readProperty(r,i.internalName);(0,p.outputError)('Cannot get property "'.concat(n,'" on element "').concat(t,'".'))}},I.getXPosition=function(e){var t=document.getElementById("divApplab");j(e,"getXPosition","id",e.elementId,!0);var n=document.getElementById(e.elementId);if(t.contains(n)){for(var r=n.offsetLeft;n&&n!==t;)(n=n.offsetParent)&&(r+=n.offsetLeft);return r}return 0},I.getYPosition=function(e){var t=document.getElementById("divApplab");j(e,"getYPosition","id",e.elementId,!0);var n=document.getElementById(e.elementId);if(t.contains(n)){for(var r=n.offsetTop;n&&n!==t;)(n=n.offsetParent)&&(r+=n.offsetTop);return r}return 0},I.onEventFired=function(e,t){var n=e.extraArgs;void 0!==t&&(D.setTransformFromElement(document.getElementById("divApplab")),n=[D.sandboxEvent(t)].concat(e.extraArgs));return e.func.apply(null,n)},I.onEvent=function(e){var t=document.getElementById("divApplab");"body"===e.elementId?e.elementId="divApplab":j(e,"onEvent","id",e.elementId,!0),(0,p.apiValidateType)(e,"onEvent","type",e.eventName,"string"),(0,p.apiValidateType)(e,"onEvent","callback",e.func,"function");var n=document.getElementById(e.elementId);if(t.contains(n)){var r=w.default.getElementType(n);if((r===w.default.ElementType.TEXT_INPUT||r===w.default.ElementType.TEXT_AREA)&&"change"===e.eventName){var i=I.onEventFired.bind(this,e);return y.default.addChangeEventHandler(n,i),!0}switch(e.eventName){case"click":case"change":case"keyup":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"keydown":case"keypress":case"input":n.addEventListener(e.eventName,I.onEventFired.bind(this,e)),"mousedown"===e.eventName&&n.addEventListener("touchstart",I.onEventFired.bind(this,e)),"mouseup"===e.eventName&&n.addEventListener("touchend",I.onEventFired.bind(this,e)),"input"===e.eventName&&"INPUT"===n.tagName.toUpperCase()&&"range"===n.type&&n.addEventListener("change",I.onEventFired.bind(this,e));break;case"mousemove":n.addEventListener(e.eventName,I.onEventFired.bind(this,e)),n.addEventListener("touchmove",I.onEventFired.bind(this,e)),n.addEventListener("mouseout",D.clearLastMouseMoveEvent.bind(D));break;default:return!1}return!0}return!1},I.openUrl=function(e){if((0,p.apiValidateType)(e,"openUrl","url",e.url,"string")){var t=e.url;["https://","http://","www."].forEach((function(e){t.startsWith(e)&&(t=t.slice(e.length))}));var n=t.indexOf("/");-1!==n&&(t=t.substr(0,n)),["studio.code.org","code.org"].includes(t)?e.url.startsWith("http")?window.open(e.url):window.open("https://"+e.url):t.startsWith("mailto")?(0,g.getStore)().dispatch(C.actions.addRedirectNotice(C.REDIRECT_RESPONSE.UNSUPPORTED,e.url)):(r=e.url,i.default.ajax({url:"/safe_browsing/",method:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({url:r})}).success((function(e){var t=e.approved?C.REDIRECT_RESPONSE.APPROVED:C.REDIRECT_RESPONSE.REJECTED;(0,g.getStore)().dispatch(C.actions.addRedirectNotice(t,r))})).fail((function(e,t){(0,g.getStore)().dispatch(C.actions.addRedirectNotice(C.REDIRECT_RESPONSE.APPROVED,r))})))}var r},I.onHttpRequestEvent=function(e){4===this.readyState&&e.func.call(null,Number(this.status),String(this.getResponseHeader("content-type")),String(this.responseText))},I.startWebRequest=function(e){(0,p.apiValidateType)(e,"startWebRequest","url",e.url,"string"),(0,p.apiValidateType)(e,"startWebRequest","callback",e.func,"function"),function(e){var t=document.createElement("a");t.href=e;var n=t.hostname;h.default.addPageAction(h.default.PageAction.StartWebRequest,{hostname:n,url:e})}(e.url);var t=new XMLHttpRequest;if(t.onreadystatechange=I.onHttpRequestEvent.bind(t,e),!Applab.channelId)throw new Error("Internal error: A channel id is required to execute startWebRequest.");var n=x+"?u="+encodeURIComponent(e.url)+"&c="+encodeURIComponent(Applab.channelId),r=((0,a.getAppOptions)()||{}).isExported;t.open("GET",r?e.url:n,!0),t.send()},I.createRecord=function(e){(0,p.apiValidateType)(e,"createRecord","table",e.table,"string");var t=(0,p.apiValidateType)(e,"createRecord","record",e.record,"record");if((0,p.apiValidateType)(e,"createRecord","callback",e.onSuccess,"function",p.OPTIONAL),(0,p.apiValidateType)(e,"createRecord","onError",e.onError,"function",p.OPTIONAL),t)if(e.table)if(e.record.id)(0,p.outputError)('record must not have an "id" property');else{var n=I.handleCreateRecord.bind(this,e),r=e.onError||(0,p.getAsyncOutputWarning)();try{(0,d.rateLimit)(),Applab.storage.createRecord(e.table,e.record,n,r)}catch(i){(0,p.outputError)(i.message)}}else(0,p.outputError)('missing required parameter "tableName"')},I.handleCreateRecord=function(e,t){e.onSuccess&&e.onSuccess.call(null,t)},I.getKeyValue=function(e){(0,p.apiValidateType)(e,"getKeyValue","key",e.key,"string"),(0,p.apiValidateType)(e,"getKeyValue","callback",e.onSuccess,"function"),(0,p.apiValidateType)(e,"getKeyValue","onError",e.onError,"function",p.OPTIONAL);var t=I.handleReadValue.bind(this,e),n=e.onError||(0,p.getAsyncOutputWarning)();try{(0,d.rateLimit)(),Applab.storage.getKeyValue(e.key,t,n)}catch(r){(0,p.outputError)(r.message)}},I.handleReadValue=function(e,t){e.onSuccess&&e.onSuccess.call(null,t)},I.getKeyValueSync=function(e){(0,p.apiValidateType)(e,"getKeyValueSync","key",e.key,"string");var t=$.bind(this,e),n=W.bind(this,e);try{(0,d.rateLimit)(),Applab.storage.getKeyValue(e.key,t,n)}catch(r){(0,p.outputError)(r.message)}};var $=function(e,t){e.callback(t)},W=function(e,t){e.callback(),(0,p.outputWarning)(t)};I.setKeyValue=function(e){(0,p.apiValidateType)(e,"setKeyValue","key",e.key,"string"),(0,p.apiValidateType)(e,"setKeyValue","value",e.value,"primitive"),(0,p.apiValidateType)(e,"setKeyValue","callback",e.onSuccess,"function",p.OPTIONAL),(0,p.apiValidateType)(e,"setKeyValue","onError",e.onError,"function",p.OPTIONAL);var t=I.handleSetKeyValue.bind(this,e),n=e.onError||(0,p.getAsyncOutputWarning)();try{(0,d.rateLimit)(),Applab.storage.setKeyValue(e.key,e.value,t,n)}catch(r){(0,p.outputError)(r.message)}},I.handleSetKeyValue=function(e){e.onSuccess&&e.onSuccess.call(null)},I.setKeyValueSync=function(e){(0,p.apiValidateType)(e,"setKeyValueSync","key",e.key,"string"),(0,p.apiValidateType)(e,"setKeyValueSync","value",e.value,"primitive");var t=U.bind(this,e),n=G.bind(this,e);try{(0,d.rateLimit)(),Applab.storage.setKeyValue(e.key,e.value,t,n)}catch(r){(0,p.outputError)(r.message)}};var U=function(e){e.callback(!0)},G=function(e,t){e.callback(!1),(0,p.outputWarning)(t)};I.getColumn=function(e){(0,p.apiValidateType)(e,"getColumn","table",e.table,"string"),(0,p.apiValidateType)(e,"getColumn","column",e.column,"string");try{(0,d.rateLimit)(),Applab.storage.getColumn(e.table,e.column,V.bind(this,e),H.bind(this,e))}catch(t){(0,p.outputError)(t.message)}};var V=function(e,t){var n=e.column,r=e.table;null===t?(0,p.outputError)(o.default.tableDoesNotExistError({tableName:r})):t.every((function(e){return void 0===e}))&&(0,p.outputError)(o.default.columnDoesNotExistError({columnName:n,tableName:r})),e.callback(t)},H=function(e,t){e.callback([]),(0,p.outputWarning)(t)};function z(e){var t=document.getElementById(e);t&&(t.className+=" loading")}function q(e){var t=document.getElementById(e);t&&(t.className=t.className.split(/\s+/).filter((function(e){return!/loading/i.test(e)})).join(" "))}I.readRecords=function(e){if((0,p.apiValidateType)(e,"readRecords","table",e.table,"string"),(0,p.apiValidateType)(e,"readRecords","searchTerms",e.searchParams,"object"),(0,p.apiValidateType)(e,"readRecords","callback",e.onSuccess,"function"),(0,p.apiValidateType)(e,"readRecords","onError",e.onError,"function",p.OPTIONAL),e.table){var t=I.handleReadRecords.bind(this,e),n=e.onError||(0,p.getAsyncOutputWarning)();try{(0,d.rateLimit)(),Applab.storage.readRecords(e.table,e.searchParams,t,n)}catch(r){(0,p.outputError)(r.message)}}else(0,p.outputError)('missing required parameter "tableName"')},I.handleReadRecords=function(e,t){if(null===t){var n=e.table;(0,p.outputError)(o.default.tableDoesNotExistError({tableName:n}))}e.onSuccess&&e.onSuccess.call(null,t)},I.updateRecord=function(e){(0,p.apiValidateType)(e,"updateRecord","table",e.table,"string");var t=(0,p.apiValidateType)(e,"updateRecord","record",e.record,"record");if((0,p.apiValidateTypeAndRange)(e,"updateRecord","record.id",e.record.id,"number",1,1/0),(0,p.apiValidateType)(e,"updateRecord","callback",e.onComplete,"function",p.OPTIONAL),(0,p.apiValidateType)(e,"updateRecord","onError",e.onError,"function",p.OPTIONAL),t)if(e.table)if(void 0!==e.record.id){var n=I.handleUpdateRecord.bind(this,e);try{(0,d.rateLimit)(),Applab.storage.updateRecord(e.table,e.record,n,(function(e){(0,p.getAsyncOutputWarning)()(e),n(null,!1)}))}catch(r){(0,p.outputError)(r.message)}}else(0,p.outputError)('missing required property "id"');else(0,p.outputError)('missing required parameter "tableName"')},I.handleUpdateRecord=function(e,t,n){e.onComplete&&e.onComplete.call(null,t,n)},I.deleteRecord=function(e){(0,p.apiValidateType)(e,"deleteRecord","table",e.table,"string");var t=(0,p.apiValidateType)(e,"deleteRecord","record",e.record,"record");if((0,p.apiValidateTypeAndRange)(e,"deleteRecord","record.id",e.record.id,"number",1,1/0),(0,p.apiValidateType)(e,"deleteRecord","callback",e.onComplete,"function",p.OPTIONAL),(0,p.apiValidateType)(e,"deleteRecord","onError",e.onError,"function",p.OPTIONAL),t)if(e.table)if(void 0!==e.record.id){var n=I.handleDeleteRecord.bind(this,e);try{(0,d.rateLimit)(),Applab.storage.deleteRecord(e.table,e.record,n,(function(e){(0,p.getAsyncOutputWarning)()(e),n(!1)}))}catch(r){(0,p.outputError)(r.message)}}else(0,p.outputError)('missing required property "id"');else(0,p.outputError)('missing required parameter "tableName"')},I.handleDeleteRecord=function(e,t){e.onComplete&&e.onComplete.call(null,t)},I.getUserId=function(e){if(!Applab.user.labUserId)throw new Error("User ID failed to load.");return Applab.user.labUserId},I.drawChart=function(e){(0,p.apiValidateType)(e,"drawChart","chartId",e.chartId,"string"),(0,p.apiValidateType)(e,"drawChart","chartType",e.chartType,"string"),(0,p.apiValidateType)(e,"drawChart","chartData",e.chartData,"array"),(0,p.apiValidateType)(e,"drawChart","options",e.options,"object",p.OPTIONAL),(0,p.apiValidateType)(e,"drawChart","callback",e.callback,"function",p.OPTIONAL),j(e,"drawChart","chartId",e.chartId,!0);var t=new v.default;z(e.chartId),t.drawChart(e.chartId,e.chartType,e.chartData,e.options).then((function(){q(e.chartId),t.warnings.forEach((function(e){(0,p.outputWarning)(e.message)})),"function"==typeof e.callback&&e.callback.call(null)}),(function(t){q(e.chartId),(0,p.outputError)(t.message)}))},I.drawChartFromRecords=function(e){(0,p.apiValidateType)(e,"drawChartFromRecords","chartId",e.chartId,"string"),(0,p.apiValidateType)(e,"drawChartFromRecords","chartType",e.chartType,"string"),(0,p.apiValidateType)(e,"drawChartFromRecords","tableName",e.tableName,"string"),(0,p.apiValidateType)(e,"drawChartFromRecords","columns",e.columns,"array"),(0,p.apiValidateType)(e,"drawChartFromRecords","options",e.options,"object",p.OPTIONAL),(0,p.apiValidateType)(e,"drawChartFromRecords","callback",e.callback,"function",p.OPTIONAL),j(e,"drawChartFromRecords","chartId",e.chartId,!0);var t=new v.default;try{(0,d.rateLimit)(),z(e.chartId),t.drawChartFromRecords(e.chartId,e.chartType,e.tableName,e.columns,e.options).then((function(){q(e.chartId),t.warnings.forEach((function(e){(0,p.outputWarning)(e.message)})),"function"==typeof e.callback&&e.callback.call(null)}),(function(t){q(e.chartId),(0,p.outputError)(t.message)}))}catch(n){(0,p.outputError)(n.message)}},Object.assign(I,l.commands),Object.assign(I,u.commands),Object.assign(I,s.commands),Object.assign(I,c),e.exports=t.default},1751:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(1)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t,n){var r;return r=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==s(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return c(t=e.call.apply(e,[this].concat(r))||this,"state",{isChecked:t.props.initialValue}),c(t,"handleClick",(function(){var e=!t.state.isChecked;t.props.handleChange(e),t.setState({isChecked:e})})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r),t.prototype.render=function(){var e="custom-checkbox fa";return this.state.isChecked?e+=" fa-check-square-o":e+=" fa-square-o",i.default.createElement("div",{style:o.container},i.default.createElement("div",{style:o.description},this.props.desc),i.default.createElement("div",null,i.default.createElement("div",{className:e,style:o.checkbox,onClick:this.handleClick})))},t}(i.default.Component);c(d,"propTypes",{initialValue:r.default.bool.isRequired,handleChange:r.default.func,desc:r.default.node}),e.exports=t.default},2062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=s(n(859)),a=s(n(1946)),l=s(n(1567));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d,f,p,h,g=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){var e=this.props,t=e.element,n=e.handleBorderWidthChange,r=e.handleBorderColorChange,s=e.handleBorderRadiusChange;return i.default.createElement("div",null,i.default.createElement(l.default,{desc:o.default.designElementProperty_borderWidthPx(),isNumber:!0,initialValue:parseInt(t.style.borderWidth,10),handleChange:n}),i.default.createElement(a.default,{desc:o.default.designElementProperty_borderColor(),initialValue:t.style.borderColor,handleChange:r}),i.default.createElement(l.default,{desc:o.default.designElementProperty_borderRadiusPx(),isNumber:!0,initialValue:parseInt(t.style.borderRadius,10),handleChange:s}))},t}(i.default.Component);d=g,f="propTypes",p={element:r.default.instanceOf(HTMLElement).isRequired,handleBorderWidthChange:r.default.func.isRequired,handleBorderColorChange:r.default.func.isRequired,handleBorderRadiusChange:r.default.func.isRequired},h=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(f,"string"),(f="symbol"==u(h)?h:h+"")in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,e.exports=t.default},1946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(1)),o=u(n(3509)),a=u(n(56)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return f(t=e.call.apply(e,[this].concat(r))||this,"state",{colorPickerText:t.props.initialValue,displayColorPicker:!1}),f(t,"handlePageClick",(function(e){if(e.target!==a.default.findDOMNode(t.refs.button)){var n=t.refs.colorPicker;n&&!a.default.findDOMNode(n).contains(e.target)&&t.setState({displayColorPicker:!1})}})),f(t,"handleColorChange",(function(e){1===e.rgb.a?t.changeElementColor(e.hex):t.changeElementColor("rgba(".concat(e.rgb.r,",").concat(e.rgb.g,",").concat(e.rgb.b,",").concat(e.rgb.a,")"))})),f(t,"toggleColorPicker",(function(){t.setState({displayColorPicker:!t.state.displayColorPicker})})),t}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r);var s=t.prototype;return s.componentDidMount=function(){window.addEventListener("mousedown",this.handlePageClick)},s.componentWillUnmount=function(){window.removeEventListener("mousedown",this.handlePageClick)},s.UNSAFE_componentWillReceiveProps=function(e){var t=e.initialValue;this.props.initialValue!==t&&this.setState({colorPickerText:t})},s.changeElementColor=function(e){this.props.handleChange(e),this.setState({colorPickerText:e})},s.render=function(){var e=this,t={backgroundColor:this.state.colorPickerText,verticalAlign:"top"},n=this.state.displayColorPicker?i.default.createElement(o.default,{ref:"colorPicker",color:this.state.colorPickerText,onChangeComplete:this.handleColorChange}):null;return i.default.createElement("div",{style:l.container},i.default.createElement("div",{style:l.description},this.props.desc),i.default.createElement("div",null,i.default.createElement("input",{value:this.state.colorPickerText,onChange:function(t){return e.setState({colorPickerText:t.target.value})},onBlur:function(t){return e.changeElementColor(t.target.value)},style:l.input}),i.default.createElement("button",{ref:"button",type:"button",className:""===this.state.colorPickerText?"rainbow-gradient":void 0,style:t,onClick:this.toggleColorPicker}),n))},t}(i.default.Component);f(p,"propTypes",{initialValue:r.default.string.isRequired,handleChange:r.default.func,desc:r.default.node}),e.exports=t.default},2909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(982)),i=d(n(2)),o=d(n(1)),a=n(30),l=d(n(859)),s=d(n(856)),u=d(n(1742)),c=d(n(3565));function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t,n){var r;return r=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==f(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return m(t=e.call.apply(e,[this].concat(r))||this,"state",{opened:!1,menuTop:0,menuLeft:0,currWindowWidth:window.innerWidth}),m(t,"updateMenuLocation",(function(){t.setState(t.getMenuLocation())})),m(t,"handleDropdownClick",(function(e){e.stopPropagation(),t.setState({opened:!t.state.opened})})),m(t,"handleMenuClick",(function(e){t.closeMenu(),t.props.handleCopyElementToScreen(e)})),m(t,"onClose",(function(){t.closeMenu()})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,g(n,i);var a=t.prototype;return a.setState=function(t){if(t.opened&&!this.resizeListener){this.resizeListener=(0,r.default)(this.updateMenuLocation,50),window.addEventListener("resize",this.resizeListener);var n=this.getMenuLocation();t.menuTop=n.menuTop,t.menuLeft=n.menuLeft}else!t.opened&&this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null);e.prototype.setState.call(this,t)},a.getMenuLocation=function(){var e=this.element.firstChild.getBoundingClientRect();return{menuTop:e.bottom+window.pageYOffset,menuLeft:e.left+window.pageXOffset}},a.closeMenu=function(){this.state.opened&&this.setState({opened:!1})},a.render=function(){var e=this,t={top:this.state.menuTop,left:this.state.menuLeft},n=this.props.screenIds.filter((function(t){return t!==e.props.currentScreenId})).map((function(t){return o.default.createElement(u.default.Item,{key:t,onClick:function(){return e.handleMenuClick(t)}},t)}));return o.default.createElement("div",{className:c.default.main,ref:function(t){return e.element=t}},o.default.createElement("button",{type:"button",style:h({},s.default.button),className:c.default.copyElementToScreenButton,onClick:this.handleDropdownClick},l.default.designWorkspace_copyToScreenButton(),o.default.createElement("i",{className:"fa fa-chevron-down"})),this.state.opened&&o.default.createElement(u.default,{isOpen:this.state.opened,targetPoint:t,offset:{x:0,y:0},onClose:this.onClose,className:c.default.menu},n))},t}(o.default.Component);m(b,"propTypes",{currentScreenId:i.default.string.isRequired,handleCopyElementToScreen:i.default.func.isRequired,screenIds:i.default.arrayOf(i.default.string).isRequired});t.default=(0,a.connect)((function(e){return{currentScreenId:e.screens.currentScreenId}}))(b);e.exports=t.default},2902:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(1)),o=u(n(859)),a=u(n(25)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return f(t=e.call.apply(e,[this].concat(r))||this,"handleMakeDefault",(function(e){return t.props.handleChange(!0)})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r),t.prototype.render=function(){if(l.getId(l.getScreens()[0])===this.props.screenId)return!1;var e=Object.assign({},{paddingTop:"5px",paddingBottom:"5px",fontSize:"14px"},{backgroundColor:"#0aa",color:a.default.white});return i.default.createElement("div",{style:{marginLeft:15}},i.default.createElement("button",{type:"button",style:e,onClick:this.handleMakeDefault},o.default.designWorkspace_makeDefaultButton()))},t}(i.default.Component);f(p,"propTypes",{handleChange:r.default.func.isRequired,screenId:r.default.string}),e.exports=t.default},2910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(55)),i=u(n(2)),o=u(n(1)),a=u(n(12)),l=u(n(856)),s=u(n(3566));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return f(t=e.call.apply(e,[this].concat(r))||this,"state",{confirming:!1}),f(t,"handleDeleteInternal",(function(e){t.props.shouldConfirm?t.setState({confirming:!0}):t.finishDelete()})),f(t,"finishDelete",(function(){return t.props.handleDelete()})),f(t,"abortDelete",(function(e){return t.setState({confirming:!1})})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,d(n,i),t.prototype.render=function(){return this.state.confirming?o.default.createElement("div",{className:(0,r.default)(s.default.right,s.default.confirming)},a.default.deleteConfirm(),o.default.createElement("button",{type:"button",className:s.default.red,style:l.default.button,onClick:this.finishDelete},a.default.yes()),o.default.createElement("button",{type:"button",style:l.default.button,onClick:this.abortDelete},a.default.no())):o.default.createElement("div",null,o.default.createElement("button",{type:"button",style:l.default.button,className:(0,r.default)(s.default.red,s.default.right),onClick:this.handleDeleteInternal},a.default.delete()))},t}(o.default.Component);f(p,"propTypes",{shouldConfirm:i.default.bool.isRequired,handleDelete:i.default.func.isRequired});t.default=p;e.exports=t.default},2911:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=s(n(12)),a=s(n(856)),l=s(n(3567));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function d(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return d(t=e.call.apply(e,[this].concat(r))||this,"handleDuplicate",(function(e){return t.props.handleDuplicate()})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){return i.default.createElement("div",null,i.default.createElement("button",{type:"button",className:l.default.duplicateButton,style:a.default.button,onClick:this.handleDuplicate},o.default.duplicate()))},t}(i.default.Component);d(f,"propTypes",{handleDuplicate:r.default.func.isRequired});t.default=f;e.exports=t.default},2397:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(1)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t,n){var r;return r=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==s(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return c(t=e.call.apply(e,[this].concat(r))||this,"state",{selectedValue:t.props.initialValue}),c(t,"handleChange",(function(e){t.props.handleChange(e.target.value),t.setState({selectedValue:e.target.value})})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r),t.prototype.render=function(){var e=this.props,t=e.options,n=e.displayOptions,r=void 0===n?[]:n,a=e.desc,l=this.state.selectedValue,s=t.map((function(e,t){return i.default.createElement("option",{key:t,value:e},r[t]||e)}));return i.default.createElement("div",{style:this.props.containerStyle||o.container},i.default.createElement("div",{style:o.description},a),i.default.createElement("select",{className:"form-control",style:o.enumInput,value:l,onChange:this.handleChange},s))},t}(i.default.Component);c(d,"propTypes",{initialValue:r.default.string.isRequired,displayOptions:r.default.arrayOf(r.default.string),options:r.default.arrayOf(r.default.string).isRequired,handleChange:r.default.func.isRequired,desc:r.default.node,containerStyle:r.default.object}),e.exports=t.default},1726:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=u(n(1)),o=u(n(859)),a=u(n(25)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(n(1913));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){var e=Object.assign({},l.container,l.maxWidth,{color:a.default.charcoal});return i.default.createElement("div",{style:e},o.default.addEventHeader())},t}(i.default.Component);e.exports=t.default},1727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(1)),o=u(n(859)),a=u(n(25)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f,p,h,g,m=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r),t.prototype.render=function(){var e={container:Object.assign({},l.container,l.maxWidth),name:{color:a.default.dark_charcoal,fontWeight:"bold",fontSize:15},desc:{color:a.default.light_gray,fontStyle:"italic"}};return i.default.createElement("div",{style:e.container},i.default.createElement("div",{style:e.name},this.props.name),i.default.createElement("div",{style:e.desc},this.props.desc),i.default.createElement("div",null,i.default.createElement("a",{onClick:this.props.handleInsert,className:"hover-pointer"},o.default.designWorkspace_eventInsertButton())))},t}(i.default.Component);f=m,p="propTypes",h={name:r.default.string.isRequired,desc:r.default.string.isRequired,handleInsert:r.default.func.isRequired},g=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(p,"string"),(p="symbol"==c(g)?g:g+"")in f?Object.defineProperty(f,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[p]=h,e.exports=t.default},2167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(859)),i=n(759),o=a(n(2397));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u,c,d,f,p=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,s(n,r),t}(o.default);u=p,c="defaultProps",d={desc:r.default.designElementProperty_fontFamily(),initialValue:i.fontFamilyOptions[0],options:i.fontFamilyOptions},f=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(c,"string"),(c="symbol"==l(f)?f:f+"")in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d,e.exports=t.default},2398:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(1)),o=u(n(12)),a=n(139),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return f(t=e.call.apply(e,[this].concat(r))||this,"state",{value:t.props.initialValue,lastEdit:0}),f(t,"handleChangeInternal",(function(e){var n=e.target.value;t.changeUnlessEditing(n),t.setState({value:n,lastEdit:Date.now()}),setTimeout(function(){this.changeUnlessEditing(this.state.value)}.bind(t),1500)})),f(t,"handleButtonClick",(function(){dashboard.assets.showAssetManager(t.changeImage,"image",null,{showUnderageWarning:!(0,a.getStore)().getState().pageConstants.is13Plus,elementId:t.props.elementId,currentValue:t.state.value,currentImageType:t.props.currentImageType})})),f(t,"changeImage",(function(e,n){t.props.handleChange(e,n),t.isMounted_&&t.setState({value:e})})),t}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r);var s=t.prototype;return s.componentDidMount=function(){this.isMounted_=!0},s.componentWillUnmount=function(){this.isMounted_=!1},s.changeUnlessEditing=function(e){Date.now()-this.state.lastEdit>=1500&&this.changeImage(e)},s.render=function(){return i.default.createElement("div",{style:l.container},i.default.createElement("div",{style:l.description},this.props.desc),i.default.createElement("div",null,i.default.createElement("input",{className:"imagePickerInput",value:this.state.value,onChange:this.handleChangeInternal,style:l.input})," ",i.default.createElement("a",{style:l.link,onClick:this.handleButtonClick},o.default.choosePrefix())))},t}(i.default.Component);f(p,"propTypes",{initialValue:r.default.string.isRequired,handleChange:r.default.func,desc:r.default.node,elementId:r.default.string,currentImageType:r.default.string}),e.exports=t.default},2896:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(1)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t,n){var r;return r=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==s(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=t.default=function(e){function t(t){var n;c(n=e.call(this,t)||this,"handleChangeInternal",(function(e){var t=e.target.value,r=t.split("\n").filter((function(e){return""!==e}));n.props.handleChange(r),n.setState({value:t})}));for(var r=t.element,i="",o=0;o<r.children.length;o++)i+=r.children[o].textContent+"\n";return n.state={value:i},n}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r),t.prototype.render=function(){var e=Object.assign({},o.input,{height:40});return i.default.createElement("div",{style:o.container},i.default.createElement("div",{style:o.description},this.props.desc),i.default.createElement("div",null,i.default.createElement("textarea",{onChange:this.handleChangeInternal,value:this.state.value,style:e})))},t}(i.default.Component);c(d,"propTypes",{element:r.default.instanceOf(HTMLSelectElement).isRequired,handleChange:r.default.func,desc:r.default.node}),e.exports=t.default},1567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(2)),i=d(n(1)),o=d(n(25)),a=c(n(33)),l=c(n(1083)),s=c(n(1913));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=f(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t,n){var r;return r=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==f(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=a.makeEnum("LOCKED","UNLOCKED"),m=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return h(t=e.call.apply(e,[this].concat(r))||this,"state",{value:t.props.initialValue,isValidValue:!0}),h(t,"handleChangeInternal",(function(e){var n=t.props.isIdRow,r=e.target.value;n&&(r=r.replace(/\s+/g,""));var i=!n||t.isIdAvailable(r);t.setValue(r,i)})),h(t,"handleClickLock",(function(){t.props.lockState===g.LOCKED?t.props.handleLockChange(g.UNLOCKED):t.props.lockState===g.UNLOCKED&&t.props.handleLockChange(g.LOCKED)})),h(t,"onIdRowBlur",(function(){if(!t.state.isValidValue){var e=t.props.initialValue;t.setValue(e)}})),t}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,p(n,r);var u=t.prototype;return u.UNSAFE_componentWillReceiveProps=function(e){this.setState({value:e.initialValue,isValidValue:!0})},u.isIdAvailable=function(e){if(e===this.props.initialValue)return!0;return l.isIdAvailable(e,{allowCodeElements:!0,allowDesignElements:!1,allowDesignPrefix:!1})},u.setValue=function(e,t){t=a.valueOr(t,!0),this.setState({value:e,isValidValue:t}),t&&this.props.handleChange(e)},u.render=function(){var e,t=Object.assign({},s.container,s.maxWidth,{backgroundColor:o.default.light_purple,paddingBottom:10}),n=Object.assign({},s.input,{backgroundColor:this.state.isValidValue?null:"#ffcccc"});if(this.props.isMultiLine)e=i.default.createElement("textarea",{value:this.state.value,onChange:this.handleChangeInternal});else{var r=this.state.value;this.props.isNumber&&isNaN(r)&&(r=""),e=i.default.createElement("input",{type:this.props.isNumber?"number":void 0,value:r,onChange:this.handleChangeInternal,onBlur:this.props.isIdRow?this.onIdRowBlur:null,style:n})}var a;if(this.props.lockState){var l="fa fa-"+(this.props.lockState===g.LOCKED?"lock":"unlock");a=i.default.createElement("i",{className:l,style:{marginLeft:"5px"},onClick:this.handleClickLock})}return i.default.createElement("div",{style:this.props.isIdRow?t:s.container},i.default.createElement("div",{style:s.description},this.props.desc),i.default.createElement("div",null,e,a))},t}(i.default.Component);h(m,"propTypes",{desc:r.default.string.isRequired,initialValue:r.default.oneOfType([r.default.string,r.default.number]).isRequired,isNumber:r.default.bool,lockState:r.default.oneOf([g.LOCKED,g.UNLOCKED,void 0]),isMultiLine:r.default.bool,handleChange:r.default.func,handleLockChange:r.default.func,isIdRow:r.default.bool}),h(m,"LockState",g),e.exports=t.default},2912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=s(n(859)),a=s(n(856)),l=s(n(3568));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,f(n,r),t.prototype.render=function(){var e=this.props.handleRestore;return i.default.createElement("button",{type:"button",style:d({},a.default.button),className:l.default.restoreButton,onClick:e},o.default.designWorkspace_restoreThemeButton())},t}(i.default.Component);p(h,"propTypes",{handleRestore:r.default.func.isRequired});t.default=h;e.exports=t.default},2311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_ALIGNMENT_RIGHT=t.TEXT_ALIGNMENT_LEFT=t.TEXT_ALIGNMENT_JUSTIFY=t.TEXT_ALIGNMENT_CENTER=void 0,t.default=u;var r=l(n(2)),i=l(n(1)),o=l(n(859)),a=l(n(2397));function l(e){return e&&e.__esModule?e:{default:e}}var s=[t.TEXT_ALIGNMENT_LEFT="left",t.TEXT_ALIGNMENT_RIGHT="right",t.TEXT_ALIGNMENT_CENTER="center",t.TEXT_ALIGNMENT_JUSTIFY="justify"];function u(e){return i.default.createElement(a.default,{desc:o.default.designElementProperty_textAlignment(),initialValue:e.initialValue,options:s,displayOptions:s.map((function(e){return o.default["designElementProperty_textAlignment_".concat(e)]()})),handleChange:e.handleChange})}u.propTypes={initialValue:r.default.string,handleChange:r.default.func.isRequired}},2915:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(1)),o=u(n(1292)),a=u(n(859)),l=u(n(79)),s=n(759);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(1122);var p=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return f(t=e.call.apply(e,[this].concat(r))||this,"state",{selectedValue:t.props.initialValue}),f(t,"handleChange",(function(e){var n=e?e.value:s.themeOptionsForSelect[s.DEFAULT_THEME_INDEX].option;t.props.handleChange(n),t.setState({selectedValue:n})})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r),t.prototype.render=function(){var e=this.props.description,t=this.state.selectedValue,n=s.themeOptionsForSelect.map((function(e){return{value:e.option,label:i.default.createElement("div",{className:"theme-dropdown-label",style:h.dropdownLabel},i.default.createElement("img",{style:h.icon,src:e.icon,alt:a.default.iconForTheme({selectedTheme:e.option})}),i.default.createElement("div",{style:h.label},a.default["designElementTheme_".concat(e.option)]()),i.default.createElement("div",{className:"checkbox"},t===e.option&&i.default.createElement(l.default,{icon:"check"})))}}));return i.default.createElement("div",{style:h.outerContainer,className:"theme-dropdown"},i.default.createElement("div",{style:h.description},e),i.default.createElement(o.default,{className:"form-control",value:t,onChange:this.handleChange,options:n,placeholder:"",clearable:!1}))},t}(i.default.Component);f(p,"propTypes",{initialValue:r.default.string.isRequired,handleChange:r.default.func.isRequired,description:r.default.node});var h={outerContainer:{marginBottom:8,width:240},description:{paddingLeft:2,paddingBottom:2},label:{paddingLeft:4},icon:{marginTop:4,marginBottom:4},dropdownLabel:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingRight:"10px",cursor:"pointer"}};e.exports=t.default},1752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(2)),i=c(n(1)),o=c(n(859)),a=c(n(79)),l=c(n(25)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=d(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p,h,g,m,b=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,f(n,r),t.prototype.render=function(){var e=this.props.element,t=e.parentNode,n=Array.prototype.indexOf.call(t.parentNode.children,t),r=0===n,u=n+1===t.parentNode.children.length,c={width:42,height:42,marginLeft:0,marginRight:10,backgroundColor:l.default.cyan},d={width:42,height:42,marginLeft:0,marginRight:10};return i.default.createElement("div",{style:s.container},i.default.createElement("div",{style:s.description},o.default.designElementProperty_zOrder()),i.default.createElement("div",null,i.default.createElement("button",{type:"button",style:r?d:c,onClick:this.props.onDepthChange.bind(this,e,"toBack"),disabled:r,title:o.default.designElementProperty_zOrder_backButton()},i.default.createElement(a.default,{icon:"angle-double-left"})),i.default.createElement("button",{type:"button",style:r?d:c,onClick:this.props.onDepthChange.bind(this,e,"backward"),disabled:r,title:o.default.designElementProperty_zOrder_backwardButton()},i.default.createElement(a.default,{icon:"angle-left"})),i.default.createElement("button",{type:"button",style:u?d:c,onClick:this.props.onDepthChange.bind(this,e,"forward"),disabled:u,title:o.default.designElementProperty_zOrder_forwardButton()},i.default.createElement(a.default,{icon:"angle-right"})),i.default.createElement("button",{type:"button",style:u?d:c,onClick:this.props.onDepthChange.bind(this,e,"toFront"),disabled:u,title:o.default.designElementProperty_zOrder_frontButton()},i.default.createElement(a.default,{icon:"angle-double-right"}))))},t}(i.default.Component);p=b,h="propTypes",g={element:r.default.instanceOf(HTMLElement).isRequired,onDepthChange:r.default.func.isRequired},m=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(h,"string"),(h="symbol"==d(m)?m:m+"")in p?Object.defineProperty(p,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[h]=g,e.exports=t.default},2890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=C(n(34)),i=C(n(2)),o=C(n(1)),a=C(n(859)),l=n(759),s=C(n(1750)),u=C(n(2071)),c=C(n(1751)),d=C(n(2062)),f=C(n(1946)),p=A(n(1083)),h=C(n(1726)),g=C(n(1727)),m=C(n(2167)),b=C(n(2398)),y=C(n(1725)),v=C(n(1567)),_=A(n(2311)),E=C(n(1752));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function A(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=S(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function C(e){return e&&e.__esModule?e:{default:e}}function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,T(e,t)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function P(e,t,n){var r;return r=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==S(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return P(t=e.call.apply(e,[this].concat(r))||this,"handleIconColorChange",(function(e){t.props.handleChange("icon-color",e),t.props.handleChange("image",t.props.element.getAttribute("data-canonical-image-url"))})),t}return O(t,e),t.prototype.render=function(){var e,t=this.props.element,n=t.getAttribute("data-canonical-image-url");return l.ICON_PREFIX_REGEX.test(n)&&(e=o.default.createElement(f.default,{desc:a.default.designElementProperty_iconColor(),initialValue:t.getAttribute("data-icon-color")||"#000000",handleChange:this.handleIconColorChange})),o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(v.default,{desc:a.default.designElementProperty_id(),initialValue:p.getId(t),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(v.default,{desc:a.default.designElementProperty_text(),initialValue:(0,r.default)(t).text(),handleChange:this.props.handleChange.bind(this,"text")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(t.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(t.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(t.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(t.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(f.default,{desc:a.default.designElementProperty_textColor(),initialValue:t.style.color,handleChange:this.props.handleChange.bind(this,"textColor")}),o.default.createElement(f.default,{desc:a.default.designElementProperty_backgroundColor(),initialValue:t.style.backgroundColor,handleChange:this.props.handleChange.bind(this,"backgroundColor")}),o.default.createElement(m.default,{initialValue:s.default.fontFamilyOptionFromStyle(t.style.fontFamily),handleChange:this.props.handleChange.bind(this,"fontFamily")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_fontSizePx(),isNumber:!0,initialValue:parseInt(t.style.fontSize,10),handleChange:this.props.handleChange.bind(this,"fontSize")}),o.default.createElement(_.default,{initialValue:t.style.textAlign||_.TEXT_ALIGNMENT_CENTER,handleChange:this.props.handleChange.bind(this,"textAlign")}),o.default.createElement(b.default,{desc:a.default.designElementProperty_image(),initialValue:t.getAttribute("data-canonical-image-url")||"",currentImageType:t.getAttribute("data-image-type")||"",handleChange:this.props.handleChange.bind(this,"image"),elementId:p.getId(t)}),e,o.default.createElement(d.default,{element:t,handleBorderWidthChange:this.props.handleChange.bind(this,"borderWidth"),handleBorderColorChange:this.props.handleChange.bind(this,"borderColor"),handleBorderRadiusChange:this.props.handleChange.bind(this,"borderRadius")}),o.default.createElement(c.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(t).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(E.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);P(R,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return P(t=e.call.apply(e,[this].concat(r))||this,"insertClick",(function(){return t.props.onInsertEvent(t.getClickEventCode())})),t}O(t,e);var n=t.prototype;return n.getClickEventCode=function(){var e=p.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' clicked!");\n}');return'onEvent("'.concat(e,'", "click", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(v.default,{desc:a.default.designElementProperty_id(),initialValue:p.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(h.default,null),o.default.createElement(g.default,{name:a.default.designElementEvent_click(),desc:a.default.designElement_button_clickEventDesc(),handleInsert:this.insertClick}))},t}(o.default.Component);P(x,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:R,EventTab:x,themeValues:u.default.button,create:function(){var e=document.createElement("button");e.appendChild(document.createTextNode("Button")),e.style.padding="0px",e.style.margin="0px",e.style.borderStyle="solid";var t=y.default.getCurrentTheme(s.default.activeScreen()),n=this.themeValues.fontSize[t]<=14;return e.style.height=n?"30px":"40px",e.style.width=n?"80px":"100px",y.default.setAllPropertiesToCurrentTheme(e,s.default.activeScreen()),e},onDeserialize:function(e,t){var n=e.getAttribute("data-canonical-image-url");n&&t(e,"image",n),p.setDefaultBorderStyles(e),p.setDefaultFontFamilyStyle(e)}};e.exports=t.default},2900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(34)),i=h(n(2)),o=h(n(1)),a=h(n(859)),l=h(n(1751)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=g(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083)),u=h(n(1726)),c=h(n(1727)),d=h(n(1567)),f=h(n(1752));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){return e.apply(this,arguments)||this}return m(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(d.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.getAttribute("width"),10),handleChange:this.props.handleChange.bind(this,"width")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.getAttribute("height"),10),handleChange:this.props.handleChange.bind(this,"height")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(l.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(f.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);y(v,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var _=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"insertClick",(function(){return t.props.onInsertEvent(t.getClickEventCode())})),t}m(t,e);var n=t.prototype;return n.getClickEventCode=function(){var e=s.getId(this.props.element),t=['console.log("'.concat(e,' clicked at x: " + event.offsetX + " y: " + event.offsetY);'),'setActiveCanvas("'.concat(e,'");'),"circle(event.offsetX, event.offsetY, 10);"],n="function(event) {\n\t".concat(t.join("\n\t"),"\n}");return'onEvent("'.concat(e,'", "click", ').concat(n,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(u.default,null),o.default.createElement(c.default,{name:a.default.designElementEvent_click(),desc:a.default.designElement_canvas_clickEventDesc(),handleInsert:this.insertClick}))},t}(o.default.Component);y(_,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:v,EventTab:_,create:function(){var e=document.createElement("canvas");return e.setAttribute("width","100px"),e.setAttribute("height","100px"),e}};e.exports=t.default},2903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(34)),i=h(n(2)),o=h(n(1)),a=h(n(859)),l=h(n(1751)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=g(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083)),u=h(n(1726)),c=h(n(1727)),d=h(n(1567)),f=h(n(1752));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){return e.apply(this,arguments)||this}return m(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(d.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(l.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(f.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);y(v,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var _=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"insertDrawChart",(function(){t.props.onInsertEvent(t.getDrawChartCode())})),y(t,"insertDrawChartFromRecords",(function(){t.props.onInsertEvent(t.getDrawChartFromRecordsCode())})),t}m(t,e);var n=t.prototype;return n.getDrawChartCode=function(){return'drawChart("'+s.getId(this.props.element)+'", "bar", [\n\t{ label: "Row 1", value: 1 },\n\t{ label: "Row 2", value: 2 }\n]);\n'},n.getDrawChartFromRecordsCode=function(){return'drawChartFromRecords("'+s.getId(this.props.element)+'", "bar", "tableName", ["columnOne", "columnTwo"]);\n'},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(u.default,null),o.default.createElement(c.default,{name:a.default.designElement_chart_drawEvent(),desc:a.default.designElement_chart_drawEventDesc(),handleInsert:this.insertDrawChart}),o.default.createElement(c.default,{name:a.default.designElement_chart_drawFromRecordsEvent(),desc:a.default.designElement_chart_drawFromRecordsEventDesc(),handleInsert:this.insertDrawChartFromRecords}))},t}(o.default.Component);y(_,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:v,EventTab:_,create:function(){var e=document.createElement("div");return e.setAttribute("class","chart"),e.style.height="100px",e.style.width="100px",e}};e.exports=t.default},2894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(34)),i=h(n(2)),o=h(n(1)),a=h(n(859)),l=h(n(1751)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=g(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083)),u=h(n(1726)),c=h(n(1727)),d=h(n(1567)),f=h(n(1752));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){return e.apply(this,arguments)||this}return m(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(d.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(l.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(l.default,{desc:a.default.designElementProperty_checked(),initialValue:e.checked,handleChange:this.props.handleChange.bind(this,"checked")}),o.default.createElement(f.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);y(v,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var _=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"insertChange",(function(){t.props.onInsertEvent(t.getChangeEventCode())})),t}m(t,e);var n=t.prototype;return n.getChangeEventCode=function(){var e=s.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' checked? " + getChecked("').concat(e,'"));\n}');return'onEvent("'.concat(e,'", "change", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(u.default,null),o.default.createElement(c.default,{name:a.default.designElementEvent_change(),desc:a.default.designElement_checkbox_changeEventDesc(),handleInsert:this.insertChange}))},t}(o.default.Component);y(_,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:v,EventTab:_,create:function(){var e=document.createElement("input");return e.type="checkbox",e.style.width="12px",e.style.height="12px",e.style.margin="0px",this.onDeserialize(e),e},onDeserialize:function(e){(0,r.default)(e).on("click",(function(t){Applab.isRunning()||(e.checked=!e.checked)}))}};e.exports=t.default},2895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=C(n(34)),i=C(n(2)),o=C(n(1)),a=C(n(169)),l=C(n(859)),s=C(n(1750)),u=A(n(2071)),c=C(n(1751)),d=C(n(2062)),f=C(n(1946)),p=A(n(1083)),h=C(n(1726)),g=C(n(1727)),m=C(n(2167)),b=C(n(1725)),y=C(n(2896)),v=C(n(1567)),_=A(n(2311)),E=C(n(1752));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function A(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=S(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function C(e){return e&&e.__esModule?e:{default:e}}function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,T(e,t)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function P(e,t,n){var r;return r=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==S(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e){function t(){return e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(v.default,{desc:l.default.designElementProperty_id(),initialValue:p.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(y.default,{desc:l.default.designElementProperty_options(),element:e,handleChange:this.props.handleChange.bind(this,"options")}),o.default.createElement(v.default,{desc:l.default.designElementProperty_index(),isNumber:!0,initialValue:parseInt(e.selectedIndex,10),handleChange:this.props.handleChange.bind(this,"index")}),o.default.createElement(v.default,{desc:l.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(v.default,{desc:l.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(v.default,{desc:l.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(v.default,{desc:l.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(f.default,{desc:l.default.designElementProperty_textColor(),initialValue:e.style.color,handleChange:this.props.handleChange.bind(this,"textColor")}),o.default.createElement(f.default,{desc:l.default.designElementProperty_backgroundColor(),initialValue:e.style.backgroundColor,handleChange:this.props.handleChange.bind(this,"backgroundColor")}),o.default.createElement(m.default,{initialValue:s.default.fontFamilyOptionFromStyle(e.style.fontFamily),handleChange:this.props.handleChange.bind(this,"fontFamily")}),o.default.createElement(v.default,{desc:l.default.designElementProperty_fontSizePx(),isNumber:!0,initialValue:parseInt(e.style.fontSize,10),handleChange:this.props.handleChange.bind(this,"fontSize")}),o.default.createElement(_.default,{initialValue:e.style.textAlign||_.TEXT_ALIGNMENT_CENTER,handleChange:this.props.handleChange.bind(this,"textAlign")}),o.default.createElement(d.default,{element:e,handleBorderWidthChange:this.props.handleChange.bind(this,"borderWidth"),handleBorderColorChange:this.props.handleChange.bind(this,"borderColor"),handleBorderRadiusChange:this.props.handleChange.bind(this,"borderRadius")}),o.default.createElement(c.default,{desc:l.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(E.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);P(R,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return P(t=e.call.apply(e,[this].concat(r))||this,"insertChange",(function(){t.props.onInsertEvent(t.getChangeEventCode())})),t}O(t,e);var n=t.prototype;return n.getChangeEventCode=function(){var e=p.getId(this.props.element),t='function( ) {\n\tconsole.log("Selected option: " + getText("'.concat(e,'"));\n}');return'onEvent("'.concat(e,'", "change", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(v.default,{desc:l.default.designElementProperty_id(),initialValue:p.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(h.default,null),o.default.createElement(g.default,{name:l.default.designElementEvent_change(),desc:l.default.designElement_dropdown_changeEventDesc(),handleInsert:this.insertChange}))},t}(o.default.Component);P(x,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});var I=function(e){return"url(data:image/svg+xml;charset=US-ASCII,".concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 448" enable-background="new 0 0 256 448"><style type="text/css">.arrow{fill:'.concat(e,';}</style><path class="arrow" d="M255.9 168c0-4.2-1.6-7.9-4.8-11.2-3.2-3.2-6.9-4.8-11.2-4.8H16c-4.2 0-7.9 1.6-11.2 4.8S0 163.8 0 168c0 4.4 1.6 8.2 4.8 11.4l112 112c3.1 3.1 6.8 4.6 11.2 4.6 4.4 0 8.2-1.5 11.4-4.6l112-112c3-3.2 4.5-7 4.5-11.4z"/></svg>')),")")};t.default={PropertyTab:R,EventTab:x,themeValues:u.default.dropdown,create:function(){var e=document.createElement("select");e.style.width="200px",e.style.height="30px",e.style.margin="0",e.style.borderStyle="solid",b.default.setAllPropertiesToCurrentTheme(e,s.default.activeScreen());var t=document.createElement("option");t.innerHTML="Option 1",e.appendChild(t);var n=document.createElement("option");return n.innerHTML="Option 2",e.appendChild(n),e},onDeserialize:function(e){p.setDefaultBorderStyles(e),p.setDefaultFontFamilyStyle(e),e.style.backgroundImage||(e.style.backgroundImage=I(new a.default(e.style.color).toHex())),""===e.style.padding&&(e.style.padding=u.CLASSIC_DROPDOWN_PADDING),(0,r.default)(e).on("mousedown",(function(e){Applab.isRunning()||(e.preventDefault(),this.blur(),window.focus())}))},onPropertyChange:function(e,t,n){switch(t){case"value":case"text":e.value=n;break;case"textColor":e.style.backgroundImage=I(new a.default(e.style.color).toHex());break;case"index":e.selectedIndex=n;break;default:return!1}return!0},readProperty:function(e,t){switch(t){case"value":return e.value;case"index":return e.selectedIndex;default:throw"unknown property name ".concat(t)}}};e.exports=t.default},1083:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addIdPrefix=function(e,t){t=o.valueOr(t,""),f(e,e.getAttribute("id"),t)},t.calculatePadding=function(e){for(var t,n,r=(e||"").split(/\s+/).map((function(e){return parseInt(e,10)})),i=0;i<r.length&&!isNaN(r[i]);i++);switch(i){case 1:t=n=2*r[0];break;case 2:n=2*r[0],t=2*r[1];break;case 3:n=r[0]+r[2],t=2*r[1];break;case 4:n=r[0]+r[2],t=r[1]+r[3];break;default:t=n=0}return{horizontalPadding:t,verticalPadding:n}},t.getDefaultScreenId=function(){return d(m()[0])},t.getId=d,t.getPrefixedElementById=p,t.getScreens=m,t.isIdAvailable=function(e,t){if(t=t||{},!e)return!1;if(-1!==h.indexOf(e))return!1;if(!t.allowTurtleCanvas&&g===e)return!1;if(!t.allowDesignPrefix&&0===e.indexOf(a.DESIGN_ELEMENT_ID_PREFIX))return!1;if(!t.allowDesignElements&&p(e))return!1;var n=document.getElementById(e);if(n&&!(0,i.default)("#divApplab").find(n)[0])return!1;var r=Boolean(n&&(0,i.default)("#divApplab").find(n)[0]);if(!t.allowCodeElements&&r)return!1;return!0},t.removeIdPrefix=function(e){e.setAttribute("id",d(e))},t.rgb2hex=function(e){if(""===e)return e;var t=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(null===t)return e;function n(e){return("0"+parseInt(e).toString(16)).slice(-2)}return"#"+n(t[1])+n(t[2])+n(t[3])},t.setDefaultBorderStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.textInput,r=t.forceDefaults;e.style.borderStyle="solid",(r||""===e.style.borderWidth)&&(e.style.borderWidth=n?"1px":"0px");(r||""===e.style.borderColor)&&(e.style.borderColor=n?l.default.textInput.borderColor.classic:l.default.dropdown.borderColor.classic);(r||""===e.style.borderRadius)&&(e.style.borderRadius="0px")},t.setDefaultFontFamilyStyle=function(e){""===e.style.fontFamily&&(e.style.fontFamily=a.fontFamilyStyles[0])},t.setId=f;var i=c(n(34)),o=u(n(33)),a=u(n(759)),l=c(n(2071));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=e.getAttribute("id");return null===n?null:(function(e,t){if(e.id.substr(0,t.length)!==t)throw new Error('element.id "'+e.id+'" does not start with prefix "'+t+'".')}(e,t=o.valueOr(t,a.DESIGN_ELEMENT_ID_PREFIX)),n.substr(t.length))}function f(e,t,n){null!==t&&(n=o.valueOr(n,a.DESIGN_ELEMENT_ID_PREFIX),e.setAttribute("id",n+t))}function p(e,t){return t=void 0===t?a.DESIGN_ELEMENT_ID_PREFIX:t,document.getElementById(t+e)}var h=["finishButton","submitButton","unsubmitButton","turtleImage","prompt-icon","bubble"],g="turtleCanvas";function m(){return(0,i.default)("#designModeViz > .screen")}},2899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(34)),i=_(n(2676)),o=_(n(2)),a=_(n(1)),l=_(n(859)),s=n(759),u=_(n(1751)),c=_(n(2062)),d=_(n(1946)),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=E(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083)),p=_(n(2397)),h=_(n(1726)),g=_(n(1727)),m=_(n(2398)),b=_(n(1567)),y=_(n(1752));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function _(e){return e&&e.__esModule?e:{default:e}}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,A(e,t)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(e,t,n){var r;return r=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==E(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return C(t=e.call.apply(e,[this].concat(r))||this,"handleIconColorChange",(function(e){t.props.handleChange("icon-color",e),t.props.handleChange("picture",t.props.element.getAttribute("data-canonical-image-url"))})),t}return w(t,e),t.prototype.render=function(){var e,t=this.props.element,n=t.getAttribute("data-canonical-image-url");return s.ICON_PREFIX_REGEX.test(n)&&(e=a.default.createElement(d.default,{desc:l.default.designElementProperty_iconColor(),initialValue:t.getAttribute("data-icon-color")||"#000000",handleChange:this.handleIconColorChange})),a.default.createElement("div",{id:"propertyRowContainer"},a.default.createElement(b.default,{desc:l.default.designElementProperty_id(),initialValue:f.getId(t),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),a.default.createElement(b.default,{desc:l.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(t.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),a.default.createElement(b.default,{desc:l.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(t.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),a.default.createElement(b.default,{desc:l.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(t.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),a.default.createElement(b.default,{desc:l.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(t.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),a.default.createElement(m.default,{desc:l.default.designElementProperty_image(),initialValue:t.getAttribute("data-canonical-image-url")||"",currentImageType:t.getAttribute("data-image-type")||"",handleChange:this.props.handleChange.bind(this,"picture"),elementId:f.getId(t)}),e,a.default.createElement(p.default,{desc:l.default.designElementProperty_fitImage(),initialValue:t.style.objectFit||"fill",options:["fill","cover","contain","none"],displayOptions:[l.default.designElementProperty_fitImage_fill(),l.default.designElementProperty_fitImage_cover(),l.default.designElementProperty_fitImage_contain(),l.default.designElementProperty_fitImage_none()],handleChange:this.props.handleChange.bind(this,"objectFit")}),a.default.createElement(c.default,{element:t,handleBorderWidthChange:this.props.handleChange.bind(this,"borderWidth"),handleBorderColorChange:this.props.handleChange.bind(this,"borderColor"),handleBorderRadiusChange:this.props.handleChange.bind(this,"borderRadius")}),a.default.createElement(u.default,{desc:l.default.designElementProperty_hidden(),initialValue:(0,r.default)(t).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),a.default.createElement(y.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(a.default.Component);C(S,"propTypes",{element:o.default.instanceOf(HTMLElement).isRequired,handleChange:o.default.func.isRequired,onDepthChange:o.default.func.isRequired});var O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return C(t=e.call.apply(e,[this].concat(r))||this,"insertClick",(function(){t.props.onInsertEvent(t.getClickEventCode())})),t}w(t,e);var n=t.prototype;return n.getClickEventCode=function(){var e=f.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' clicked!");\n}');return'onEvent("'.concat(e,'", "click", ').concat(t,");")},n.render=function(){var e=this.props.element;return a.default.createElement("div",{id:"eventRowContainer"},a.default.createElement(b.default,{desc:l.default.designElementProperty_id(),initialValue:f.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),a.default.createElement(h.default,null),a.default.createElement(g.default,{name:l.default.designElementEvent_click(),desc:l.default.designElement_image_clickEventDesc(),handleInsert:this.insertClick}))},t}(a.default.Component);function T(e,t,n){e.style.objectFit=t,e.style.fontFamily="'object-fit: ".concat(t,";'"),n&&(0,i.default)(e)}C(O,"propTypes",{element:o.default.instanceOf(HTMLElement).isRequired,handleChange:o.default.func.isRequired,onInsertEvent:o.default.func.isRequired});t.default={PropertyTab:S,EventTab:O,create:function(){var e=document.createElement("img");return e.style.height="100px",e.style.width="100px",f.setDefaultBorderStyles(e,{forceDefaults:!0}),e.setAttribute("src","/blockly/media/1x1.gif"),e.setAttribute("data-canonical-image-url",""),e.setAttribute("data-image-type",""),e.setAttribute("data-object-fit","contain"),T(e,"contain",!0),e},onDeserialize:function(e,t){f.setDefaultBorderStyles(e);var n=e.getAttribute("data-canonical-image-url")||"";n?t(e,"picture",n):(e.setAttribute("src","/blockly/media/1x1.gif"),e.setAttribute("data-canonical-image-url",""));var r=e.getAttribute("data-object-fit");r&&T(e,r)},onPropertyChange:function(e,t,n){return"objectFit"===t&&(e.setAttribute("data-object-fit",n),T(e,n,!0),!0)},readProperty:function(e,t){if("objectFit"===t)return e.getAttribute("data-object-fit");throw"unknown property name ".concat(t)}};e.exports=t.default},2892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=C(n(34)),i=C(n(2)),o=C(n(1)),a=C(n(859)),l=A(n(759)),s=C(n(1750)),u=A(n(2312)),c=C(n(2071)),d=C(n(1751)),f=C(n(2062)),p=C(n(1946)),h=A(n(1083)),g=C(n(1726)),m=C(n(1727)),b=C(n(2167)),y=C(n(1725)),v=C(n(1567)),_=A(n(2311)),E=C(n(1752));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function A(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=S(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function C(e){return e&&e.__esModule?e:{default:e}}function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,T(e,t)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function P(e,t,n){var r;return r=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==S(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e){function t(){return e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(v.default,{desc:a.default.designElementProperty_id(),initialValue:h.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(v.default,{desc:a.default.designElementProperty_text(),initialValue:(0,r.default)(e).text(),handleChange:this.props.handleChange.bind(this,"text")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,lockState:(0,r.default)(e).data("lock-width")||v.default.LockState.UNLOCKED,handleLockChange:this.props.handleChange.bind(this,"lock-width"),initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,lockState:(0,r.default)(e).data("lock-height")||v.default.LockState.UNLOCKED,handleLockChange:this.props.handleChange.bind(this,"lock-height"),initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(p.default,{desc:a.default.designElementProperty_textColor(),initialValue:e.style.color,handleChange:this.props.handleChange.bind(this,"textColor")}),o.default.createElement(p.default,{desc:a.default.designElementProperty_backgroundColor(),initialValue:e.style.backgroundColor,handleChange:this.props.handleChange.bind(this,"backgroundColor")}),o.default.createElement(b.default,{initialValue:s.default.fontFamilyOptionFromStyle(e.style.fontFamily),handleChange:this.props.handleChange.bind(this,"fontFamily")}),o.default.createElement(v.default,{desc:a.default.designElementProperty_fontSizePx(),isNumber:!0,initialValue:parseInt(e.style.fontSize,10),handleChange:this.props.handleChange.bind(this,"fontSize")}),o.default.createElement(_.default,{initialValue:e.style.textAlign||_.TEXT_ALIGNMENT_LEFT,handleChange:this.props.handleChange.bind(this,"textAlign")}),o.default.createElement(f.default,{element:e,handleBorderWidthChange:this.props.handleChange.bind(this,"borderWidth"),handleBorderColorChange:this.props.handleChange.bind(this,"borderColor"),handleBorderRadiusChange:this.props.handleChange.bind(this,"borderRadius")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(E.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);P(R,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return P(t=e.call.apply(e,[this].concat(r))||this,"insertClick",(function(){t.props.onInsertEvent(t.getClickEventCode())})),t}O(t,e);var n=t.prototype;return n.getClickEventCode=function(){var e=h.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' clicked!");\n}');return'onEvent("'.concat(e,'", "click", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(v.default,{desc:a.default.designElementProperty_id(),initialValue:h.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(g.default,null),o.default.createElement(m.default,{name:a.default.designElementEvent_click(),desc:a.default.designElement_label_clickEventDesc(),handleInsert:this.insertClick}))},t}(o.default.Component);P(x,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:R,EventTab:x,themeValues:c.default.label,create:function(){var e=document.createElement("label");return e.style.margin="0px",e.style.lineHeight="1",e.style.overflow="hidden",e.style.wordWrap="break-word",e.textContent="text",e.style.maxWidth=l.APP_WIDTH+"px",e.style.borderStyle="solid",e.style.textRendering="optimizeSpeed",y.default.setAllPropertiesToCurrentTheme(e,s.default.activeScreen()),this.resizeToFitText(e),e},onDeserialize:function(e){e.style.backgroundColor||(e.style.backgroundColor=c.default.label.backgroundColor.classic),e.style.textRendering||(e.style.textRendering="optimizeSpeed"),h.setDefaultBorderStyles(e),h.setDefaultFontFamilyStyle(e)},getCurrentSize:function(e){return{width:parseInt(e.style.width,10),height:parseInt(e.style.height,10)}},getBestSize:function(e){var t=this.getCurrentSize(e),n=(0,r.default)(e).data("lock-width")===v.default.LockState.LOCKED,i=(0,r.default)(e).data("lock-height")===v.default.LockState.LOCKED;if(e.textContent){var o;if("center"===e.style.textAlign)o=l.APP_WIDTH;else{var a=parseInt(e.style.left||"0",10);o="right"===e.style.textAlign?a+t.width:l.APP_WIDTH-a}var s=(0,r.default)(e).clone().css({position:"absolute",visibility:"hidden",width:"auto",height:"auto",maxWidth:o+"px"}).appendTo((0,r.default)(document.body)),u=h.calculatePadding(e.style.padding),c=u.horizontalPadding,d=u.verticalPadding;n||(t.width=Math.min(s.width()+1+c+2*parseInt(e.style.borderWidth),o)),i||(t.height=s.height()+1+d+2*parseInt(e.style.borderWidth)),s.remove()}else n||i||(t.width=t.height=15);return t},resizeToFitText:function(e){var t=this.getBestSize(e);if("center"===e.style.textAlign||"right"===e.style.textAlign){var n=parseInt(e.style.left,10),r=parseInt(e.style.width,10),i=t.width-r;"right"===e.style.textAlign?n-=i:n-=i/2,e.style.left=Math.max(0,n)+"px",u.isDraggableContainer(e.parentNode)&&(e.parentNode.style.left=e.style.left)}e.style.width=t.width+"px",e.style.height=t.height+"px"},_lastFitsExactly:{},beforePropertyChange:function(e,t,n){switch(t){case"padding":case"text":case"fontFamily":case"fontSize":var r=this._lastFitsExactly,i=r.batchId,o=void 0===i?-1:i,a=r.previouslyFitExactly;if(o===n)return a;var l=this.getCurrentSize(e),s=this.getBestSize(e),u=Math.abs(l.width-s.width)<5&&Math.abs(l.height-s.height)<5;return this._lastFitsExactly=n?{batchId:n,previouslyFitExactly:u}:{},u;default:return null}},onPropertyChange:function(e,t,n,i){switch(t){case"text":case"fontFamily":case"fontSize":case"padding":i&&this.resizeToFitText(e);break;case"lock-width":(0,r.default)(e).data("lock-width",n);break;case"lock-height":(0,r.default)(e).data("lock-height",n);break;default:return!1}return!0}};e.exports=t.default},1725:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=d(n(34)),o=c(n(33)),a=n(759),l=d(n(1750)),s=c(n(1083));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function d(e){return e&&e.__esModule?e:{default:e}}var f={},p=o.makeEnum("BUTTON","LABEL","TEXT_INPUT","CHECKBOX","DROPDOWN","RADIO_BUTTON","TEXT_AREA","IMAGE","CANVAS","SCREEN","CHART","SLIDER","PHOTO_SELECT"),h={};h[p.BUTTON]=n(2890),h[p.LABEL]=n(2892),h[p.TEXT_INPUT]=n(2893),h[p.CHECKBOX]=n(2894),h[p.DROPDOWN]=n(2895),h[p.RADIO_BUTTON]=n(2897),h[p.TEXT_AREA]=n(2898),h[p.IMAGE]=n(2899),h[p.CANVAS]=n(2900),h[p.SCREEN]=n(2901),h[p.CHART]=n(2903),h[p.SLIDER]=n(2904),h[p.PHOTO_SELECT]=n(2905);t.default={ElementType:p,elements:h,getUnusedElementId:function(e){for(var t=f[e]||1;s.getPrefixedElementById(e+t);)t++;return f[e]=t+1,e+t},resetIds:function(){f={}},createElement:function(e,t,n,r){var i=h[e];if(!i)throw new Error("Unknown elementType: "+e);var o=i.create(r);return r||s.setId(o,this.getUnusedElementId(e.toLowerCase())),e!==p.SCREEN&&(o.style.position="absolute",o.style.left=t+"px",o.style.top=n+"px",o.style.margin="0px"),o},getElementPropertyTab:function(e){return h[e].PropertyTab},getElementEventTab:function(e){return h[e].EventTab},getElementType:function(e,t){switch(e.tagName.toLowerCase()){case"button":return p.BUTTON;case"label":return(0,i.default)(e).hasClass("img-upload")?p.PHOTO_SELECT:p.LABEL;case"select":return p.DROPDOWN;case"div":return(0,i.default)(e).hasClass("screen")?p.SCREEN:(0,i.default)(e).hasClass("chart")?p.CHART:p.TEXT_AREA;case"img":return p.IMAGE;case"canvas":return p.CANVAS;case"input":switch(e.getAttribute("type")){case"checkbox":return p.CHECKBOX;case"radio":return p.RADIO_BUTTON;case"range":return p.SLIDER;default:return p.TEXT_INPUT}}var n="Project contains an element with an unknown type"+"\nType: ".concat(e.tagName)+"\nId: ".concat(e.id)+"\nClass: ".concat(e.className);if(t)return console.warn(n),null;throw new Error(n)},getThemeValues:function(e){var t=this.getElementType(e);return(h[t]||{}).themeValues},getCurrentTheme:function(e){return e&&e.getAttribute("data-theme")||a.themeOptions[a.DEFAULT_THEME_INDEX]},setAllPropertiesToCurrentTheme:function(e,t){var n=this.getCurrentTheme(t),r=this.getThemeValues(e);for(var i in r){var o=r[i][n];l.default.updateProperty(e,i,o)}},onDeserialize:function(e,t,n){var r=this.getElementType(e,n);r&&h[r]&&h[r].onDeserialize&&h[r].onDeserialize(e,t)},getPreChangeData:function(e,t,n){var r=this.getElementType(e);return h[r].beforePropertyChange?h[r].beforePropertyChange(e,t,n):null},typeSpecificPropertyChange:function(e,t,n,r){var i=this.getElementType(e);return!!h[i].onPropertyChange&&h[i].onPropertyChange(e,t,n,r)},typeSpecificPropertyRead:function(e,t){var n=this.getElementType(e);if(h[n].readProperty)return h[n].readProperty(e,t);throw"unknown property type ".concat(t)}};e.exports=t.default},2905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(34)),i=v(n(2)),o=v(n(1)),a=v(n(859)),l=v(n(1750)),s=v(n(2071)),u=v(n(1751)),c=v(n(2062)),d=v(n(1946)),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=_(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083)),p=v(n(1726)),h=v(n(1727)),g=v(n(1725)),m=v(n(1567)),b=v(n(1752));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function v(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function E(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,w(e,t)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function A(e,t,n){var r;return r=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==_(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){function t(){return e.apply(this,arguments)||this}return E(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(m.default,{desc:a.default.designElementProperty_id(),initialValue:f.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(m.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(m.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(m.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(m.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_backgroundColor(),initialValue:e.style.backgroundColor,handleChange:this.props.handleChange.bind(this,"backgroundColor")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_iconColor(),initialValue:e.style.color||"#000000",handleChange:this.props.handleChange.bind(this,"textColor")}),o.default.createElement(m.default,{desc:a.default.designElementProperty_iconSizePx(),isNumber:!0,initialValue:parseInt(e.style.fontSize,10),handleChange:this.props.handleChange.bind(this,"fontSize")}),o.default.createElement(c.default,{element:e,handleBorderWidthChange:this.props.handleChange.bind(this,"borderWidth"),handleBorderColorChange:this.props.handleChange.bind(this,"borderColor"),handleBorderRadiusChange:this.props.handleChange.bind(this,"borderRadius")}),o.default.createElement(u.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(b.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);A(C,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var S=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return A(t=e.call.apply(e,[this].concat(r))||this,"insertPhotoSelected",(function(){return t.props.onInsertEvent(t.getPhotoSelectedEventCode())})),t}E(t,e);var n=t.prototype;return n.getPhotoSelectedEventCode=function(){var e=f.getId(this.props.element),t=['console.log("'.concat(e,' photo selected!");'),'console.log(getImageURL("'.concat(e,'"));')],n="function( ) {\n\t".concat(t.join("\n\t"),"\n}");return'onEvent("'.concat(e,'", "change", ').concat(n,");")},n.render=function(){var e=this.props.element,t=a.default.designElementPhotoSelectClickName(),n=a.default.designElementPhotoSelectClickDescription();return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(m.default,{desc:a.default.designElementProperty_id(),initialValue:f.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(p.default,null),o.default.createElement(h.default,{name:t,desc:n,handleInsert:this.insertPhotoSelected}))},t}(o.default.Component);A(S,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:C,EventTab:S,themeValues:s.default.photoSelect,create:function(){var e=document.createElement("label");e.setAttribute("class","img-upload fa fa-camera"),e.style.margin="0",e.style.borderStyle="solid",e.style.overflow="hidden",g.default.setAllPropertiesToCurrentTheme(e,l.default.activeScreen()),e.style.padding="0",e.style.textAlign="center",e.style.fontSize="32px",e.style.width="75px",e.style.height="50px",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center";var t=document.createElement("input");return t.type="file",t.accept="image/*",t.capture="camera",t.hidden=!0,e.appendChild(t),e},onDeserialize:function(e,t){(0,r.default)(e).on("click",(function(){e.childNodes[0].disabled=!Applab.isRunning()}))}};e.exports=t.default},2897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(34)),i=h(n(2)),o=h(n(1)),a=h(n(859)),l=h(n(1751)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=g(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083)),u=h(n(1726)),c=h(n(1727)),d=h(n(1567)),f=h(n(1752));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v="radio_group",_=function(e){function t(){return e.apply(this,arguments)||this}return m(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(d.default,{desc:a.default.designElementProperty_groupId(),initialValue:e.getAttribute("name")||"",handleChange:this.props.handleChange.bind(this,"groupId")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(l.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(l.default,{desc:a.default.designElementProperty_checked(),initialValue:e.checked,handleChange:this.props.handleChange.bind(this,"checked")}),o.default.createElement(f.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);y(_,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"insertChange",(function(){t.props.onInsertEvent(t.getChangeEventCode())})),t}m(t,e);var n=t.prototype;return n.getChangeEventCode=function(){var e=s.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' checked? " + getChecked("').concat(e,'"));\n}');return'onEvent("'.concat(e,'", "change", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(u.default,null),o.default.createElement(c.default,{name:a.default.designElementEvent_change(),desc:a.default.designElement_radioButton_changeEventDesc(),handleInsert:this.insertChange}))},t}(o.default.Component);function w(){var e,t=(e=(0,r.default)("#designModeViz .screen:visible").first().find("input[type=radio]").last()).length>0?e[0]:null;return t&&t.getAttribute("name")&&""!==t.getAttribute("name").trim()?t.getAttribute("name"):function(){var e=1;for(;(0,r.default)("input[name="+v+e+"]").length>0;)e++;return v+e}()}y(E,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:_,EventTab:E,create:function(e){var t=document.createElement("input");return t.type="radio",t.style.width="12px",t.style.height="12px",t.style.margin="0px",e||(t.name=w()),this.onDeserialize(t),t},onDeserialize:function(e){(0,r.default)(e).on("click",(function(t){Applab.isRunning()||(e.checked=!e.checked)}))}};e.exports=t.default},1913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxWidth=t.link=t.input=t.enumInput=t.description=t.container=t.checkbox=void 0;var r,i=(r=n(25))&&r.__esModule?r:{default:r};t.input={display:"inline-block",height:20,padding:"4px 6px",marginBottom:0,marginLeft:0,fontSize:14,lineHeight:"20px",color:i.default.charcoal,WebkitBorderRadius:4,MozBorderRadius:4,borderRadius:4,border:"1px solid "+i.default.light_gray,verticalAlign:"middle"},t.enumInput={marginBottom:0,border:"1px solid "+i.default.light_gray},t.container={paddingLeft:20,marginBottom:8},t.maxWidth={maxWidth:245},t.description={paddingLeft:2},t.checkbox={width:20,height:20,fontSize:20,paddingLeft:2},t.link={cursor:"pointer"}},2901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(2)),i=_(n(1)),o=_(n(859)),a=n(139),l=v(n(759)),s=_(n(1750)),u=_(n(2071)),c=_(n(1946)),d=_(n(2902)),f=v(n(1083)),p=_(n(1726)),h=_(n(1727)),g=_(n(2398)),m=_(n(1725)),b=_(n(1567));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=E(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function _(e){return e&&e.__esModule?e:{default:e}}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,A(e,t)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(e,t,n){var r;return r=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==E(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return C(t=e.call.apply(e,[this].concat(r))||this,"handleIconColorChange",(function(e){t.props.handleChange("icon-color",e),t.props.handleChange("screen-image",t.props.element.getAttribute("data-canonical-image-url"))})),t}return w(t,e),t.prototype.render=function(){var e,t=this.props.element,n=t.getAttribute("data-canonical-image-url");return l.ICON_PREFIX_REGEX.test(n)&&(e=i.default.createElement(c.default,{desc:o.default.designElementProperty_iconColor(),initialValue:t.getAttribute("data-icon-color")||"#000000",handleChange:this.handleIconColorChange})),i.default.createElement("div",{id:"propertyRowContainer"},i.default.createElement(b.default,{desc:o.default.designElementProperty_id(),initialValue:f.getId(t),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),i.default.createElement(c.default,{desc:o.default.designElementProperty_backgroundColor(),initialValue:t.style.backgroundColor,handleChange:this.props.handleChange.bind(this,"backgroundColor")}),i.default.createElement(g.default,{desc:o.default.designElementProperty_image(),initialValue:t.getAttribute("data-canonical-image-url")||"",currentImageType:t.getAttribute("data-image-type")||"",handleChange:this.props.handleChange.bind(this,"screen-image"),elementId:f.getId(t)}),e,i.default.createElement(d.default,{screenId:f.getId(t),handleChange:this.props.handleChange.bind(this,"is-default")}))},t}(i.default.Component);C(S,"propTypes",{element:r.default.instanceOf(HTMLElement).isRequired,handleChange:r.default.func.isRequired});var O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return C(t=e.call.apply(e,[this].concat(r))||this,"insertClick",(function(){t.props.onInsertEvent(t.getClickEventCode())})),C(t,"insertKey",(function(){t.props.onInsertEvent(t.getKeyEventCode())})),t}w(t,e);var n=t.prototype;return n.getClickEventCode=function(){var e=f.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' clicked!");\n}');return'onEvent("'.concat(e,'", "click", ').concat(t,");")},n.getKeyEventCode=function(){var e=f.getId(this.props.element);return'onEvent("'.concat(e,'", "keydown", ').concat('function(event) {\n\tconsole.log("Key pressed: " + event.key);\n}',");")},n.render=function(){var e=this.props.element;return i.default.createElement("div",{id:"eventRowContainer"},i.default.createElement(b.default,{desc:o.default.designElementProperty_id(),initialValue:f.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),i.default.createElement(p.default,null),i.default.createElement(h.default,{name:o.default.designElementEvent_click(),desc:o.default.designElement_screen_clickEventDesc(),handleInsert:this.insertClick}),i.default.createElement(h.default,{name:o.default.designElementEvent_key(),desc:o.default.designElement_screen_keyEventDesc(),handleInsert:this.insertKey}))},t}(i.default.Component);C(O,"propTypes",{element:r.default.instanceOf(HTMLElement).isRequired,handleChange:r.default.func.isRequired,onInsertEvent:r.default.func.isRequired});t.default={PropertyTab:S,EventTab:O,themeValues:u.default.screen,create:function(){var e=l.getAppWidth((0,a.getStore)().getState().pageConstants),t=document.createElement("div");t.setAttribute("class","screen"),t.setAttribute("tabIndex","1"),t.style.display="block",t.style.height=l.APP_HEIGHT-l.FOOTER_HEIGHT+"px",t.style.width=e+"px",t.style.left="0px",t.style.top="0px",t.style.position="absolute",t.style.zIndex=0;var n=m.default.getCurrentTheme(s.default.activeScreen());return t.setAttribute("data-theme",n),m.default.setAllPropertiesToCurrentTheme(t,t),t},onDeserialize:function(e,t){var n=e.getAttribute("data-canonical-image-url");n&&t(e,"screen-image",n),e.style.position="absolute",e.style.zIndex=0,e.setAttribute("tabIndex","1"),e.getAttribute("data-theme")||e.setAttribute("data-theme",l.themeOptions[l.CLASSIC_THEME_INDEX]),""===e.style.backgroundColor&&(e.style.backgroundColor=this.themeValues.backgroundColor[l.themeOptions[l.CLASSIC_THEME_INDEX]])},readProperty:function(e,t){if("theme"===t)return e.getAttribute("data-theme");throw"unknown property name ".concat(t)},onPropertyChange:function(e,t,n){return"theme"===t&&(s.default.changeThemeForScreen(e,n),!0)}};e.exports=t.default},2904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(34)),i=h(n(2)),o=h(n(1)),a=h(n(859)),l=h(n(1751)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=g(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1083)),u=h(n(1726)),c=h(n(1727)),d=h(n(1567)),f=h(n(1752));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){return e.apply(this,arguments)||this}return m(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(d.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_value(),isNumber:!0,initialValue:e.defaultValue,handleChange:this.props.handleChange.bind(this,"defaultValue")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_minimumValue(),isNumber:!0,initialValue:parseInt(e.min,10),handleChange:this.props.handleChange.bind(this,"min")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_maximumValue(),isNumber:!0,initialValue:parseInt(e.max,10),handleChange:this.props.handleChange.bind(this,"max")}),o.default.createElement(d.default,{desc:a.default.designElementProperty_stepSize(),isNumber:!0,initialValue:parseInt(e.step,10),handleChange:this.props.handleChange.bind(this,"step")}),o.default.createElement(l.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(f.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);y(v,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var _=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"insertInput",(function(){t.props.onInsertEvent(t.getInputEventCode())})),t}m(t,e);var n=t.prototype;return n.getInputEventCode=function(){var e=s.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' value: " + getNumber("').concat(e,'"));\n}');return'onEvent("'.concat(e,'", "input", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(d.default,{desc:a.default.designElementProperty_id(),initialValue:s.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(u.default,null),o.default.createElement(c.default,{name:a.default.designElementEvent_input(),desc:a.default.designElement_slider_inputEventDesc(),handleInsert:this.insertInput}))},t}(o.default.Component);y(_,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:v,EventTab:_,create:function(){var e=document.createElement("input");return e.type="range",e.style.margin="0px",e.style.padding="0px",e.style.width="150px",e.style.height="24px",e.defaultValue=50,e.min=0,e.max=100,e.step=1,e},onPropertyChange:function(e,t,n){switch(t){case"defaultValue":e.defaultValue=n;break;case"sliderValue":e.value=n;break;case"min":e.min=n;break;case"max":e.max=n;break;case"step":e.step=n;break;default:return!1}return!0},readProperty:function(e,t){switch(t){case"defaultValue":return e.defaultValue;case"sliderValue":return parseInt(e.value,10);case"min":return parseInt(e.min,10);case"max":return parseInt(e.max,10);case"step":return parseInt(e.step,10);default:throw"unknown property name ".concat(t)}}};e.exports=t.default},2893:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=A(n(34)),i=A(n(2)),o=A(n(1)),a=A(n(859)),l=n(759),s=A(n(1750)),u=w(n(2071)),c=A(n(1751)),d=A(n(2062)),f=A(n(1946)),p=w(n(1083)),h=A(n(1726)),g=A(n(1727)),m=A(n(2167)),b=A(n(1725)),y=A(n(1567)),v=w(n(2311)),_=A(n(1752));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=C(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function A(e){return e&&e.__esModule?e:{default:e}}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,O(e,t)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function T(e,t,n){var r;return r=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==C(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(e){function t(){return e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(y.default,{desc:a.default.designElementProperty_id(),initialValue:p.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(y.default,{desc:a.default.designElementProperty_placeholder(),initialValue:e.getAttribute("placeholder")||"",handleChange:this.props.handleChange.bind(this,"placeholder")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(f.default,{desc:a.default.designElementProperty_textColor(),initialValue:e.style.color,handleChange:this.props.handleChange.bind(this,"textColor")}),o.default.createElement(f.default,{desc:a.default.designElementProperty_backgroundColor(),initialValue:e.style.backgroundColor,handleChange:this.props.handleChange.bind(this,"backgroundColor")}),o.default.createElement(m.default,{initialValue:s.default.fontFamilyOptionFromStyle(e.style.fontFamily),handleChange:this.props.handleChange.bind(this,"fontFamily")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_fontSizePx(),isNumber:!0,initialValue:parseInt(e.style.fontSize,10),handleChange:this.props.handleChange.bind(this,"fontSize")}),o.default.createElement(v.default,{initialValue:e.style.textAlign||v.TEXT_ALIGNMENT_LEFT,handleChange:this.props.handleChange.bind(this,"textAlign")}),o.default.createElement(d.default,{element:e,handleBorderWidthChange:this.props.handleChange.bind(this,"borderWidth"),handleBorderColorChange:this.props.handleChange.bind(this,"borderColor"),handleBorderRadiusChange:this.props.handleChange.bind(this,"borderRadius")}),o.default.createElement(c.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(_.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);T(P,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var R=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return T(t=e.call.apply(e,[this].concat(r))||this,"insertChange",(function(){t.props.onInsertEvent(t.getChangeEventCode())})),T(t,"insertInput",(function(){t.props.onInsertEvent(t.getInputEventCode())})),t}S(t,e);var n=t.prototype;return n.getChangeEventCode=function(){var e=p.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' entered text: " + getText("').concat(e,'"));\n}');return'onEvent("'.concat(e,'", "change", ').concat(t,");")},n.getInputEventCode=function(){var e=p.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' current text: " + getText("').concat(e,'"));\n}');return'onEvent("'.concat(e,'", "input", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(y.default,{desc:a.default.designElementProperty_id(),initialValue:p.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(h.default,null),o.default.createElement(g.default,{name:a.default.designElementEvent_change(),desc:a.default.designElement_textInput_changeEventDesc(),handleInsert:this.insertChange}),o.default.createElement(g.default,{name:a.default.designElementEvent_input(),desc:a.default.designElement_textInput_inputEventDesc(),handleInsert:this.insertInput}))},t}(o.default.Component);T(R,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:P,EventTab:R,themeValues:u.default.textInput,create:function(){var e=document.createElement("input");return e.style.margin="0px",e.style.width="200px",e.style.height="30px",e.style.borderStyle="solid",b.default.setAllPropertiesToCurrentTheme(e,s.default.activeScreen()),e},onDeserialize:function(e){p.setDefaultBorderStyles(e,{textInput:!0}),p.setDefaultFontFamilyStyle(e),""===e.style.padding&&(e.style.padding=u.CLASSIC_TEXT_INPUT_PADDING),""===e.style.backgroundColor&&(e.style.backgroundColor=this.themeValues.backgroundColor[l.themeOptions[l.CLASSIC_THEME_INDEX]]),(0,r.default)(e).on("mousedown",(function(e){Applab.isRunning()||e.preventDefault()})),(0,r.default)(e).on("keydown",(function(e){Applab.isRunning()||e.preventDefault()}))},onPropertyChange:function(e,t,n){switch(t){case"value":case"text":e.value=n;break;default:return!1}return!0},readProperty:function(e,t){if("value"===t)return e.value;throw"unknown property name ".concat(t)}};e.exports=t.default},2898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=A(n(34)),i=A(n(2)),o=A(n(1)),a=A(n(859)),l=w(n(33)),s=A(n(1750)),u=w(n(2071)),c=A(n(1751)),d=A(n(2062)),f=A(n(1946)),p=w(n(1083)),h=A(n(1726)),g=A(n(1727)),m=A(n(2167)),b=A(n(1725)),y=A(n(1567)),v=w(n(2311)),_=A(n(1752));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=C(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function A(e){return e&&e.__esModule?e:{default:e}}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,O(e,t)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function T(e,t,n){var r;return r=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==C(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(e){function t(){return e.apply(this,arguments)||this}return S(t,e),t.prototype.render=function(){var e=this.props.element,t="";return t="textArea"===e.parentElement.className?l.unescapeText(e.parentElement.innerHTML):l.unescapeText(e.innerHTML),o.default.createElement("div",{id:"propertyRowContainer"},o.default.createElement(y.default,{desc:a.default.designElementProperty_id(),initialValue:p.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(y.default,{desc:a.default.designElementProperty_text(),isMultiLine:!0,initialValue:t,handleChange:this.props.handleChange.bind(this,"text")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_widthPx(),isNumber:!0,initialValue:parseInt(e.style.width,10),foo:parseInt(e.style.width,10),handleChange:this.props.handleChange.bind(this,"style-width")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_heightPx(),isNumber:!0,initialValue:parseInt(e.style.height,10),handleChange:this.props.handleChange.bind(this,"style-height")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_xPositionPx(),isNumber:!0,initialValue:parseInt(e.style.left,10),handleChange:this.props.handleChange.bind(this,"left")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_yPositionPx(),isNumber:!0,initialValue:parseInt(e.style.top,10),handleChange:this.props.handleChange.bind(this,"top")}),o.default.createElement(f.default,{desc:a.default.designElementProperty_textColor(),initialValue:e.style.color,handleChange:this.props.handleChange.bind(this,"textColor")}),o.default.createElement(f.default,{desc:a.default.designElementProperty_backgroundColor(),initialValue:e.style.backgroundColor,handleChange:this.props.handleChange.bind(this,"backgroundColor")}),o.default.createElement(m.default,{initialValue:s.default.fontFamilyOptionFromStyle(e.style.fontFamily),handleChange:this.props.handleChange.bind(this,"fontFamily")}),o.default.createElement(y.default,{desc:a.default.designElementProperty_fontSizePx(),isNumber:!0,initialValue:parseInt(e.style.fontSize,10),handleChange:this.props.handleChange.bind(this,"fontSize")}),o.default.createElement(v.default,{initialValue:e.style.textAlign||v.TEXT_ALIGNMENT_LEFT,handleChange:this.props.handleChange.bind(this,"textAlign")}),o.default.createElement(d.default,{element:e,handleBorderWidthChange:this.props.handleChange.bind(this,"borderWidth"),handleBorderColorChange:this.props.handleChange.bind(this,"borderColor"),handleBorderRadiusChange:this.props.handleChange.bind(this,"borderRadius")}),o.default.createElement(c.default,{desc:a.default.designElementProperty_readOnly(),initialValue:!e.isContentEditable,handleChange:this.props.handleChange.bind(this,"readonly")}),o.default.createElement(c.default,{desc:a.default.designElementProperty_hidden(),initialValue:(0,r.default)(e).hasClass("design-mode-hidden"),handleChange:this.props.handleChange.bind(this,"hidden")}),o.default.createElement(_.default,{element:this.props.element,onDepthChange:this.props.onDepthChange}))},t}(o.default.Component);T(P,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onDepthChange:i.default.func.isRequired});var R=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return T(t=e.call.apply(e,[this].concat(r))||this,"insertChange",(function(){t.props.onInsertEvent(t.getChangeEventCode())})),t}S(t,e);var n=t.prototype;return n.getChangeEventCode=function(){var e=p.getId(this.props.element),t='function( ) {\n\tconsole.log("'.concat(e,' entered text: " + getText("').concat(e,'"));\n}');return'onEvent("'.concat(e,'", "change", ').concat(t,");")},n.render=function(){var e=this.props.element;return o.default.createElement("div",{id:"eventRowContainer"},o.default.createElement(y.default,{desc:a.default.designElementProperty_id(),initialValue:p.getId(e),handleChange:this.props.handleChange.bind(this,"id"),isIdRow:!0}),o.default.createElement(h.default,null),o.default.createElement(g.default,{name:a.default.designElementEvent_change(),desc:a.default.designElement_textArea_changeEventDesc(),handleInsert:this.insertChange}))},t}(o.default.Component);T(R,"propTypes",{element:i.default.instanceOf(HTMLElement).isRequired,handleChange:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired});t.default={PropertyTab:P,EventTab:R,themeValues:u.default.textArea,create:function(){var e=document.createElement("div");return e.setAttribute("contenteditable",!0),e.style.width="200px",e.style.height="100px",e.style.borderStyle="solid",b.default.setAllPropertiesToCurrentTheme(e,s.default.activeScreen()),(0,r.default)(e).addClass("textArea"),this.onDeserialize(e),e},onDeserialize:function(e){p.setDefaultBorderStyles(e,{textInput:!0}),p.setDefaultFontFamilyStyle(e),""===e.style.padding&&(e.style.padding=u.CLASSIC_TEXT_AREA_PADDING),(0,r.default)(e).addClass("textArea"),(0,r.default)(e).on("mousedown",(function(e){Applab.isRunning()||e.preventDefault()})),(0,r.default)(e).on("keydown",(function(e){Applab.isRunning()||e.preventDefault()}))}};e.exports=t.default},1750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=x(n(34));n(3500),n(3131),n(3506),n(3507);var i=x(n(2676)),o=x(n(1)),a=x(n(56)),l=n(30),s=x(n(169)),u=x(n(2622)),c=x(n(783)),d=R(n(611)),f=n(1111),p=x(n(487)),h=n(142),g=x(n(373)),m=x(n(140)),b=n(139),y=n(723),v=R(n(33)),_=R(n(759)),E=R(n(1083)),w=x(n(1725)),A=x(n(2906)),C=R(n(2312)),S=n(2313),O=R(n(2175)),T=x(n(2623));function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function R(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=D(e)&&"function"!=typeof e)return{default:e};var n=P(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function x(e){return e&&e.__esModule?e:{default:e}}function I(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}var M={},j=(t.default=M,_.ICON_PREFIX),F=_.ICON_PREFIX_REGEX,N=_.ABSOLUTE_REGEXP,L=_.DATA_URL_PREFIX_REGEX,B=null,$=null,W=null,U=_.ApplabInterfaceMode,G=_.ANIMATION_LENGTH_MS;function V(e){if(/px/.test(e))return e;var t=parseInt(e);return isNaN(t)||"object"===D(e)?"":t+"px"}M.setupReduxSubscribers=function(e){var t;e.subscribe((function(){var n,i=t;t=e.getState(),i&&t.screens.currentScreenId===i.screens.currentScreenId||(n=t.screens.currentScreenId,Applab.changeScreen((0,b.getStore)().getState().screens.currentScreenId),E.getScreens().each((function(){(0,r.default)(this).toggle(E.getId(this)===n)})),M.editElementProperties(E.getPrefixedElementById(n)),Applab.render())}))},M.onDesignModeVizClick=function(e){if(Applab.isInDesignMode()&&!(0,r.default)("#resetButton").is(":visible")){e.preventDefault();var t=e.target;"designModeViz"===t.id&&(t=M.activeScreen()),(0,r.default)(t).is(".ui-resizable")?t=Q(t):(0,r.default)(t).is(".ui-resizable-handle")?t=Q(t.parentNode):void 0===(0,r.default)(t).attr("class")&&(0,r.default)(t.parentNode).is(".textArea")&&(t=Q(t.parentNode.parentNode)),(0,r.default)("#designModeViz").focus(),M.editElementProperties(t)}},M.activeScreen=function(){return E.getScreens().filter((function(){return"none"!==this.style.display})).first()[0]},M.createElement=function(e,t,n){var r=w.default.createElement(e,t,n);return M.attachElement(r),r},M.attachElement=function(e){var t=(0,r.default)(e).hasClass("screen");(t?document.getElementById("designModeViz"):M.activeScreen()).appendChild(e),t||Z((0,r.default)(e)),M.editElementProperties(e)},M.editElementProperties=function(e){re(e),B=e,M.renderDesignWorkspace(e)},M.resetPropertyTab=function(){var e=B||M.activeScreen();M.editElementProperties(e),Applab.render()},M.resetElementTray=function(e){(0,r.default)("#design-toolbox .new-design-element").each((function(){(0,r.default)(this).draggable(e?"enable":"disable")}))},M.appendPx=V,M.fontFamilyStyleFromOption=function(e){var t=_.fontFamilyOptions.indexOf(e);return _.fontFamilyStyles[-1===t?0:t]},M.fontFamilyOptionFromStyle=function(e){var t=_.fontFamilyStyles.indexOf(e);return _.fontFamilyOptions[-1===t?0:t]},M.assignImageType=function(e,t){return F.test(t)?f.ImageMode.ICON:N.test(t)?f.ImageMode.URL:""===t?f.ImageMode.DEFAULT:f.ImageMode.FILE},M.onPropertyChange=function(e,t,n,r){M.updateProperty(e,t,n,r),M.editElementProperties(e)},M.updateProperty=function(e,t,n,i,o){var a,l=w.default.getPreChangeData(e,t,o),s=!0,u="";switch(i&&(u="?t=".concat(new Date(i).valueOf())),t){case"id":E.setId(e,n),w.default.getElementType(e)===w.default.ElementType.SCREEN&&M.changeScreen(n);break;case"left":var c=V(n);e.style.left=c,C.isDraggableContainer(e.parentNode)&&(e.parentNode.style.left=c);break;case"top":var f=V(n);e.style.top=f,C.isDraggableContainer(e.parentNode)&&(e.parentNode.style.top=f);break;case"width":e.setAttribute("width",V(n));break;case"height":e.setAttribute("height",V(n));break;case"style-width":var p=V(n);e.style.width=p,C.isDraggableContainer(e.parentNode)&&(e.parentNode.style.width=p);break;case"style-height":var h=V(n);e.style.height=h,C.isDraggableContainer(e.parentNode)&&(e.parentNode.style.height=h);break;case"text":"SELECT"!==e.nodeName&&(e.innerHTML=v.escapeText(n));break;case"textColor":e.style.color=n;break;case"backgroundColor":e.style.backgroundColor=n;break;case"borderWidth":e.style.borderWidth=V(n);break;case"borderColor":e.style.borderColor=n;break;case"borderRadius":e.style.borderRadius=V(n);break;case"padding":e.style.padding=n;break;case"fontFamily":e.style.fontFamily=M.fontFamilyStyleFromOption(n);break;case"fontSize":e.style.fontSize=V(n);break;case"textAlign":e.style.textAlign=n;break;case"icon-color":e.setAttribute("data-icon-color",n);var g=e.getAttribute("data-canonical-image-url");if(F.test(g)){var m=d.renderIconToString(g,e);"IMG"===e.nodeName?e.src=m:e.style.backgroundImage="url("+m+")"}break;case"image":var b=e.getAttribute("data-canonical-image-url");e.setAttribute("data-canonical-image-url",n),a=M.assignImageType(e,n),e.setAttribute("data-image-type",a);var y=function(){e.style.backgroundSize="contain",e.style.backgroundPosition="50% 50%",e.style.backgroundRepeat="no-repeat",B===e&&M.editElementProperties(e)};if(F.test(n)){e.style.backgroundImage="url("+d.renderIconToString(n,e)+")",y();break}var A=new Image;A.src="".concat(d.fixPath(n)).concat(u),e.style.backgroundImage='url("'+A.src+'")',n!==b&&(A.onload=y);break;case"screen-image":e.setAttribute("data-canonical-image-url",n),a=M.assignImageType(e,n),e.setAttribute("data-image-type",a);var S,O=parseInt(e.style.width,10),T=parseInt(e.style.height,10);if(e.style.backgroundSize=O+"px "+T+"px",F.test(n))S=d.renderIconToString(n,e);else{var P=new Image;P.src="".concat(d.fixPath(n)).concat(u),S=P.src}e.style.backgroundImage='url("'+S+'")';break;case"picture":b=e.getAttribute("data-canonical-image-url"),e.setAttribute("data-canonical-image-url",n),a=M.assignImageType(e,n),e.setAttribute("data-image-type",a),F.test(n)?e.src=d.renderIconToString(n,e):L.test(n)?e.src=n:e.src=""===n?"/blockly/media/1x1.gif":"".concat(d.fixPath(n)).concat(u);break;case"hidden":(0,r.default)(e).toggleClass("design-mode-hidden",!0===n);break;case"checked":if(e.checked=n,n){var R=e.getAttribute("name");if(R){var x=document.getElementsByName(R);Array.prototype.forEach.call(x,(function(e){"radio"===e.type&&e.removeAttribute("checked")}))}e.setAttribute("checked","checked")}else e.removeAttribute("checked");break;case"options":for(var I=0;I<n.length;I++){var k=e.children[I];k||(k=document.createElement("option"),e.appendChild(k)),k.textContent=n[I]}for(;e.children[I];)e.removeChild(e.children[I]);break;case"groupId":e.setAttribute("name",n);break;case"placeholder":e.setAttribute("placeholder",n);break;case"rows":case"cols":e.setAttribute("rows",n);break;case"readonly":e.setAttribute("contenteditable",!n);break;case"is-default":if(!0===n){(0,r.default)("#designModeViz").prepend(e);var D=(0,r.default)("#screenSelector option"),j=_.NEW_SCREEN,N=E.getId(e);D.sort((function(e,t){return e.text===N?-1:t.text===N||e.text===j?1:t.text===j?-1:e.text.localeCompare(t.text)})),(0,r.default)("#screenSelector").html(D),(0,r.default)("#screenSelector")[0].selectedIndex=0}break;default:s=!1}if(w.default.typeSpecificPropertyChange(e,t,n,l)&&(s=!0),!s)throw"unknown property name "+t},M.readProperty=function(e,t){switch(t){case"left":return parseFloat(e.style.left);case"top":return parseFloat(e.style.top);case"width":return parseFloat(e.getAttribute("width"));case"height":return parseFloat(e.getAttribute("height"));case"style-width":return parseFloat(e.style.width);case"style-height":return parseFloat(e.style.height);case"text":return e.innerHTML&&"SELECT"!==e.nodeName?v.escapeText(e.innerHTML):v.escapeText(e.value);case"textColor":return e.style.color;case"backgroundColor":return e.style.backgroundColor;case"borderWidth":return parseFloat(e.style.borderWidth);case"borderColor":return e.style.borderColor;case"borderRadius":return parseFloat(e.style.borderRadius);case"padding":return e.style.padding;case"fontFamily":return M.fontFamilyOptionFromStyle(e.style.fontFamily);case"fontSize":return parseFloat(e.style.fontSize);case"textAlign":return e.style.textAlign;case"icon-color":return e.getAttribute("data-icon-color");case"image":case"screen-image":case"picture":return e.getAttribute("data-canonical-image-url");case"hidden":return(0,r.default)(e).hasClass("design-mode-hidden");case"checked":return!!e.checked;case"options":return(0,r.default)(e).children().map((function(e,t){return t.text})).get();case"groupId":return e.getAttribute("name");case"placeholder":return e.getAttribute("placeholder");case"readonly":return"true"!==e.getAttribute("contenteditable");default:return w.default.typeSpecificPropertyRead(e,t)}};var H="applab",z="design_mode";M.onDuplicate=function(e,t,n){if((0,r.default)(e).hasClass("screen")){var i=function(e){m.default.putRecord({study:H,study_group:z,event:"duplicate_screen",project_id:p.default.getCurrentId(),data_json:JSON.stringify({elementId:e.id})});var t=(0,r.default)(e),n=E.getId(e),i=M.createScreen(),a=E.getPrefixedElementById(i),l=E.getPrefixedElementById(n),s="backgroundColor";M.updateProperty(a,s,M.readProperty(l,s));var u="screen-image",c=M.readProperty(l,u);c&&M.updateProperty(a,u,c);M.changeScreen(i);var d=ne(t.children());t.children().each((function(){var e=(0,r.default)(this).clone()[0],t=w.default.getElementType(e);E.setId(e,w.default.getUnusedElementId(t.toLowerCase())),M.attachElement(e)})),d&&Z(t.children());var f={textAlign:"center"},g=o.default.createElement("div",{style:f},"Duplicated ",o.default.createElement("b",null,n)," to ",o.default.createElement("b",null,i));return(0,y.singleton)().displayPlayspaceAlert(h.NOTIFICATION_ALERT_TYPE,g),i}(e);return E.getPrefixedElementById(i)}m.default.putRecord({study:H,study_group:z,event:"duplicate_element",project_id:p.default.getCurrentId(),data_json:JSON.stringify({elementId:e.id,elementTag:e.tagName,elementClass:e.className})});var a=(0,r.default)(e).clone()[0],l=J(parseInt(e.style.left,10)+10,parseInt(e.style.top,10)+10,parseInt(e.style.width,10),parseInt(e.style.height,10));a.style.left=V(l.left),a.style.top=V(l.top);var s=w.default.getElementType(e);return E.setId(a,w.default.getUnusedElementId(s.toLowerCase())),t&&M.changeThemeForElement(a,t,w.default.getCurrentTheme(M.activeScreen())),M.attachElement(a),a.focus(),M.editElementProperties(a),a},M.hasCustomizedThemeProperties=function(e){var t=w.default.getCurrentTheme(M.activeScreen()),n=w.default.getThemeValues(e);for(var r in n){var i=n[r],o=i[t],a=M.readProperty(e,r);if("color"===i.type){if(new s.default(a).toHex()!==new s.default(o).toHex())return!0}else if(a!==o)return!0}return!1};var q=1;function Y(e){m.default.putRecord({study:H,study_group:z,event:"delete_element",project_id:p.default.getCurrentId(),data_json:JSON.stringify({elementId:e.id,elementTag:e.tagName,elementClass:e.className})});var t=(0,r.default)(e).hasClass("screen");(0,r.default)(e.parentNode).is(".ui-resizable")&&(e=e.parentNode),(0,r.default)(e).remove(),t?M.loadDefaultScreen():M.editElementProperties(E.getPrefixedElementById((0,b.getStore)().getState().screens.currentScreenId))}function X(e){return e.replace(/^https?:\/\//i,"//")}function K(e){return function(t,n,r){var i="The following lines of HTML were modified or removed:\n"+t+"\noriginal html:\n"+n+"\nmodified html:\n"+r+"\ntarget: "+e;console.log(i),g.default.addPageAction(g.default.PageAction.SanitizedLevelHtml,{removedHtml:t,unsafeHtml:n,safeHtml:r,sanitizationTarget:e})}}function Q(e){return e.children[0]}function Z(e){e.each((function(){var e=(0,r.default)(this),t=e.wrap("<div>").parent().resizable({create:function(){(0,r.default)(this).children().css("z-index","")},start:function(){re(e[0])},resize:function(t,n){var i=te(),o=n.size.width-n.originalSize.width,a=n.size.height-n.originalSize.height,l=n.originalSize.width+o/i,s=n.originalSize.height+a/i;l=C.snapToGridSize(l),s=C.snapToGridSize(s);var u=function(e,t,n,i,o){var a=(0,r.default)("#designModeViz"),l=a.outerWidth()-e,s=a.outerHeight()-t,u=Math.min(n,l);u=Math.max(u,20);var c=Math.min(i,s);if(c=Math.max(c,20),o){var d=Math.min(u/n,c/i);u=n*d,c=i*d}return{width:u,height:c}}(n.position.left,n.position.top,l,s,!1);n.element.outerWidth(u.width),n.element.outerHeight(u.height),e.is("canvas")&&(e.attr("width",u.width+"px"),e.attr("height",u.height+"px")),e.outerWidth(u.width),e.outerHeight(u.height),M.renderDesignWorkspace(e[0])}}).draggable({cancel:!1,start:function(){re(e[0]),M.setAppSpaceClipping(!1)},drag:function(t,n){var r=te(),i=n.position.left/r,o=n.position.top/r;i=C.snapToGridSize(i),o=C.snapToGridSize(o),n.position.left=i,n.position.top=o,e.css({left:i,top:o}),ee(t)?e.removeClass("toDelete"):e.addClass("toDelete"),M.renderDesignWorkspace(e[0])},stop:function(t,n){ee(t)?M.renderDesignWorkspace(e[0]):n.helper.hide("drop",{direction:"down"},G,(function(){Y(e[0])})),M.setAppSpaceClipping(!0)}}).css({position:"absolute",lineHeight:"0px"});t.css({top:e.css("top"),left:e.css("left")});var n=t.parent().height();t.parent().height(n+1),t.parent().height(n),"DIV"===this.tagName&&setTimeout((function(){t.hide().show(0)}),0),e.css("position","static")})),setTimeout((function(){return(0,i.default)()}),0)}function J(e,t,n,i){var o=(0,r.default)("#designModeViz"),a=o.outerWidth()-n,l=o.outerHeight()-i,s=Math.min(e,a);s=Math.max(s,0);var u=Math.min(t,l);return{left:s,top:u=Math.max(u,0)}}function ee(e){var t=(0,r.default)("#designModeViz");return C.isMouseEventInBounds(e,t)}function te(){var e=document.getElementById("designModeViz");return e.getBoundingClientRect().width/e.offsetWidth}function ne(e){var t=!1;return e.each((function(){var e=(0,r.default)(this),n=(0,r.default)(Q(this));e.hasClass("ui-draggable")&&(t=!0,e.resizable("destroy").draggable("destroy"),n.css("position","absolute"),n.unwrap())})),t}function re(e){(0,r.default)("#designModeViz .ui-draggable").css({outlineStyle:"",outlineWidth:""}),(0,r.default)(e).is('#designModeViz img[src!=""], #designModeViz label')&&(0,r.default)(e).parent().css({outlineStyle:"dashed",outlineWidth:"1px"})}M.onRestoreThemeDefaults=function(e){m.default.putRecord({study:H,study_group:z,event:"restore_theme_defaults",project_id:p.default.getCurrentId(),data_json:JSON.stringify({elementId:e.id,elementTag:e.tagName,elementClass:e.className})});var t=w.default.getCurrentTheme(M.activeScreen()),n=w.default.getThemeValues(e),r=!1;for(var i in q++,n){var o="data-mod-".concat(i),a=n[i],l=a[t],u=M.readProperty(e,i);("color"===a.type?new s.default(u).toHex()!==new s.default(l).toHex():u!==l)&&(M.updateProperty(e,i,l,null,q),r=!0),e.removeAttribute(o)}r&&M.renderDesignWorkspace(e)},M.changeThemeForElement=function(e,t,n){var r=w.default.getThemeValues(e),i=!1;for(var o in q++,r){var a="data-mod-".concat(o);if(!e.getAttribute(a)){var l=r[o],u=l[t],c=l[n],d=M.readProperty(e,o),f=l.type;""===d||("color"===f?new s.default(d).toHex()===new s.default(u).toHex():d===u)?(M.updateProperty(e,o,c,null,q),i=!0):e.setAttribute(a,1)}}i&&M.renderDesignWorkspace(e)},M.changeThemeForScreen=function(e,t){if(!_.themeOptions.includes(t))throw new Error("Invalid themeValue: ".concat(t));var n=w.default.getCurrentTheme(e);e.setAttribute("data-theme",t);var i=(0,r.default)(e),o=ne(i.children());[i[0]].concat(I(i.children().toArray())).forEach((function(e){return M.changeThemeForElement(e,n,t)})),o&&Z(i.children())},M.onCopyElementToScreen=function(e,t){m.default.putRecord({study:H,study_group:z,event:"copy_to_screen",project_id:p.default.getCurrentId(),data_json:JSON.stringify({elementId:e.id,elementTag:e.tagName,elementClass:e.className,destinationScreen:t})});var n=(0,r.default)(e),i=w.default.getCurrentTheme(M.activeScreen());M.changeScreen(t);var a=ne(n.children()),l=n.clone()[0],s=w.default.getElementType(l);E.setId(l,w.default.getUnusedElementId(s.toLowerCase())),M.changeThemeForElement(l,i,w.default.getCurrentTheme(M.activeScreen())),M.attachElement(l),a&&Z(n.children());var u=o.default.createElement("div",{style:{textAlign:"center"}},"Copied ",o.default.createElement("b",null,E.getId(e))," to ",o.default.createElement("b",null,t)," as"," ",o.default.createElement("b",null,E.getId(l)));(0,y.singleton)().displayPlayspaceAlert(h.NOTIFICATION_ALERT_TYPE,u)},M.onDeletePropertiesButton=function(e,t){Y(e)},M.onDepthChange=function(e,t){var n,r=e.parentNode,i=r.parentNode,o=Array.prototype.indexOf.call(i.children,r);switch("forward"===t&&o+2>=i.children.length&&(t="toFront"),t){case"forward":var a=r.nextSibling.nextSibling;n=i.removeChild(r),i.insertBefore(n,a);break;case"toFront":n=i.removeChild(r),i.appendChild(n);break;case"backward":var l=r.previousSibling;if(!l)return;n=i.removeChild(r),i.insertBefore(n,l);break;case"toBack":if(1===i.children.length)return;n=i.removeChild(r),i.insertBefore(n,i.children[0]);break;default:throw new Error("unknown depthDirection: "+t)}e.focus(),M.editElementProperties(e)},M.onInsertEvent=function(e){Applab.appendToEditor(e),(0,b.getStore)().dispatch(S.actions.changeInterfaceMode(U.CODE)),Applab.scrollToEnd()},M.onInsertAICode=function(e){Applab.appendToEditor(e),(0,b.getStore)().dispatch(S.actions.changeInterfaceMode(U.DESIGN)),(0,b.getStore)().dispatch(S.actions.changeInterfaceMode(U.CODE)),Applab.scrollToEnd()},M.serializeToLevelHtml=function(){var e=(0,r.default)("#designModeViz"),t=ne(e.children().children()),n=e.clone();(0,r.default)(n).removeClass("withCrosshair"),n.children().each((function(){E.removeIdPrefix(this)})),n.children().children().each((function(){if(E.removeIdPrefix(this),"IMG"===this.nodeName){this.style.objectFit="",this.style.backgroundPosition="",this.style.backgroundImage="",this.style.backgroundRepeat="",this.style.backgroundOrigin="",this.style.backgroundSize="",this.style.fontFamily="",this.removeAttribute("data-ofi-undefined");var e=this.getAttribute("data-ofi-src");e&&(this.src=X(e),this.removeAttribute("data-ofi-src"))}})),n.find('[data-canonical-image-url^="'+j+'"]').each((function(){this.removeAttribute("src"),this.style.backgroundImage=""}));var i=n[0]?n[0].outerHTML:"";return t&&Z(e.children().children()),Applab.levelHtml=i,i},M.makeUrlProtocolRelative=X,M.parseScreenFromLevelHtml=function(e,t,n,i){var o=(0,r.default)(e);return E.addIdPrefix(o[0],n),o.children().each((function(){E.addIdPrefix(this,n)})),t&&Z(o.children()),w.default.onDeserialize(o[0],M.updateProperty.bind(this)),o.children().each((function(){var e=(0,r.default)(this).hasClass("ui-draggable")?this.firstChild:this;w.default.onDeserialize(e,M.updateProperty.bind(e),i)})),o[0]},M.parseFromLevelHtml=function(e,t,n){if(e){for(;e.firstChild;)e.removeChild(e.firstChild);if(Applab.levelHtml){var i=K(e.id),o=r.default.parseHTML((0,T.default)(Applab.levelHtml,i,!0));!function(e){for(var t=[],n=0,i=["#codeApp","#visualizationColumn","#visualizationResizeBar","#null",".editor-column"];n<i.length;n++){var o=i[n];(0,r.default)(e).find(o).length>0&&(t.push(o),(0,r.default)(e).find(o).remove())}t.length>0&&c.default.logWarning({message:"Invalid HTML detected in App Lab project",channelId:Applab.channelId,selectors:t})}(o);var a=(0,r.default)(o).children();a.each((function(){M.parseScreenFromLevelHtml(this,t,n,!0)})),a.appendTo(e)}}},M.setAppSpaceClipping=function(e){var t=(0,r.default)("#designModeViz");e?t.delay(G).addClass("clip-content",G):t.removeClass("clip-content")},M.configureDragAndDrop=function(){(0,r.default)("#visualization").droppable({accept:".new-design-element",activate:function(e,t){M.setAppSpaceClipping(!1)},deactivate:function(e,t){M.setAppSpaceClipping(!0)},drop:function(e,t){var n=t.draggable[0].getAttribute("data-element-type"),i=C.scaledDropPoint(t.helper),o=M.createElement(n,i.left,i.top);if(n===w.default.ElementType.SCREEN&&M.changeScreen(E.getId(o)),function(e){if(0===(0,r.default)(e).parent(".ui-draggable").length)return;var t=parseFloat((0,r.default)(e).css("width")),n=parseFloat((0,r.default)(e).css("height")),i=(0,r.default)(e).parent(".ui-draggable"),o=parseFloat(i.css("left")),a=parseFloat(i.css("top")),l=J(o,a,t,n);i.animate({left:l.left,top:l.top},G),(0,r.default)(e).css({left:l.left,top:l.top})}(o),n===w.default.ElementType.IMAGE){var a=(0,r.default)(o).parent();if(0===a.width()){var l=a.css("left");a.css("visibility","hidden"),a.css("left","0px"),setTimeout((function(){a.css("left",l),a.css("visibility","")}),1)}}M.renderDesignWorkspace(o)}})},M.createScreen=function(){var e=w.default.createElement("SCREEN",0,0);return(0,r.default)("#designModeViz").append(e),E.getId(e)},M.changeScreen=function(e){(0,b.getStore)().dispatch(O.changeScreen(e))},M.getAllScreenIds=function(){return E.getScreens().get().map((function(e){return E.getId(e)}))},M.loadDefaultScreen=function(){var e;e=0===E.getScreens().length?M.createScreen():E.getDefaultScreenId(),M.changeScreen(e)},M.renderDesignWorkspace=function(e){var t=document.getElementById("designWorkspace");if(t){var n={handleDragStart:function(){(0,r.default)("#resetButton").is(":visible")&&(0,y.singleton)().resetButtonClick()},element:e||null,elementIdList:Applab.getIdDropdownForCurrentScreen(),handleChange:M.onPropertyChange.bind(this,e),onCopyElementToScreen:M.onCopyElementToScreen.bind(this,e),onChangeElement:M.editElementProperties.bind(this),onDepthChange:M.onDepthChange,onDuplicate:M.onDuplicate.bind(this,e,null),onRestoreThemeDefaults:M.onRestoreThemeDefaults.bind(this,e),onDelete:M.onDeletePropertiesButton.bind(this,e),onInsertEvent:M.onInsertEvent.bind(this),handleVersionHistory:Applab.handleVersionHistory,isDimmed:Applab.running,screenIds:M.getAllScreenIds(),currentTheme:w.default.getCurrentTheme(M.activeScreen()),handleScreenChange:M.onPropertyChange.bind(this,M.activeScreen()),autogenerateML:u.default};a.default.render(o.default.createElement(l.Provider,{store:(0,b.getStore)()},o.default.createElement(A.default,n)),t)}},M.addScreenIfNecessary=function(e){var t=K("levelHtml");e=(0,T.default)(e,t,!0);var n=(0,r.default)(e);if(0===n.children().length||n.children().eq(0).hasClass("screen"))return e;var i=w.default.createElement(w.default.ElementType.SCREEN);return n.children().appendTo(i),n.append(i),n[0].outerHTML},M.setAsClipboardElement=function(e){if(e){var t,n=(0,r.default)(e),i=n.hasClass("screen");i&&(t=ne(n.children())),$=n.clone()[0],W=w.default.getCurrentTheme(M.activeScreen()),i&&t&&Z(n.children())}},M.addKeyboardHandlers=function(){(0,r.default)("#designModeViz").keydown((function(e){if(Applab.isInDesignMode()&&!Applab.isRunning()){if(e.altKey||e.ctrlKey||e.metaKey)switch(e.which){case h.KeyCodes.COPY:M.setAsClipboardElement(B);break;case h.KeyCodes.PASTE:if($){var t=M.onDuplicate($,W);M.setAsClipboardElement(t)}break;default:return}if(B&&!(0,r.default)(B).hasClass("screen")){var n,i;switch(e.which){case h.KeyCodes.LEFT:i=parseInt(B.style.left,10)-1,n="left";break;case h.KeyCodes.RIGHT:i=parseInt(B.style.left,10)+1,n="left";break;case h.KeyCodes.UP:i=parseInt(B.style.top,10)-1,n="top";break;case h.KeyCodes.DOWN:i=parseInt(B.style.top,10)+1,n="top";break;default:return}M.onPropertyChange(B,n,i)}}}))},M.resetIds=function(){w.default.resetIds()},e.exports=t.default},2908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(34)),i=g(n(2)),o=g(n(1)),a=g(n(859)),l=g(n(25)),s=g(n(2909)),u=g(n(2910)),c=g(n(2911)),d=g(n(1725)),f=g(n(2912)),p=g(n(1750)),h=g(n(2913));function g(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==m(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=0,_=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"state",{selectedTab:E.PROPERTIES}),y(t,"handleTabClick",(function(e){return t.setState({selectedTab:e})})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,b(n,i),t.prototype.render=function(){if(!this.props.element||!this.props.element.parentNode)return o.default.createElement("p",null,a.default.designWorkspaceDescription());var e=(0,r.default)(this.props.element).data("key");e||(e=v++,(0,r.default)(this.props.element).data("key",e));var t=p.default.hasCustomizedThemeProperties(this.props.element),n=d.default.getElementType(this.props.element),i=d.default.getElementPropertyTab(n),g=d.default.getElementEventTab(n),m=n===d.default.ElementType.SCREEN,b=1===this.props.screenIds.length,y=m&&b,_=l.default.lighter_gray,w=l.default.lightest_gray,A={borderColor:_,borderStyle:"solid",boxSizing:"border-box",height:35,padding:"0 10px"},C={activeTab:Object.assign({},A,{backgroundColor:w,borderTopWidth:1,borderRightWidth:1,borderBottomWidth:0,borderLeftWidth:0,float:"left"}),inactiveTab:Object.assign({},A,{borderTopWidth:1,borderRightWidth:1,borderBottomWidth:1,borderLeftWidth:0,float:"left"}),emptyTab:Object.assign({},A,{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:1,borderLeftWidth:0,width:"100%"}),workspaceDescription:{height:28,overflow:"hidden"},workspaceDescriptionText:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},workspaceTabs:{borderColor:_,borderStyle:"solid",borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftWidth:1},tabLabel:{lineHeight:"35px",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},workspaceBody:{height:"calc(100% - 83px)",padding:"10px 10px 10px 0",borderColor:_,borderStyle:"solid",borderTopWidth:0,borderRightWidth:1,borderBottomWidth:1,borderLeftWidth:1,backgroundColor:w},activeBody:{height:"100%",overflowY:"scroll"},inactiveBody:{display:"none",height:"100%",overflowY:"scroll"}};return o.default.createElement("div",{style:{height:"100%"}},o.default.createElement("div",{id:"designDescription",style:C.workspaceDescription},o.default.createElement("p",{style:C.workspaceDescriptionText,title:a.default.designWorkspaceDescription()},a.default.designWorkspaceDescription())),o.default.createElement("div",{id:"designWorkspaceTabs",style:C.workspaceTabs},o.default.createElement("div",{id:"propertiesTab",style:this.state.selectedTab===E.PROPERTIES?C.activeTab:C.inactiveTab,className:"hover-pointer",onClick:this.handleTabClick.bind(this,E.PROPERTIES)},o.default.createElement("span",{style:C.tabLabel},a.default.designWorkspace_propertiesTab())),o.default.createElement("div",{id:"eventsTab",style:this.state.selectedTab===E.EVENTS?C.activeTab:C.inactiveTab,className:"hover-pointer",onClick:this.handleTabClick.bind(this,E.EVENTS)},o.default.createElement("span",{style:C.tabLabel},a.default.designWorkspace_eventsTab())),o.default.createElement("div",{id:"emptyTab",style:C.emptyTab},o.default.createElement(h.default,{onChangeElement:this.props.onChangeElement,elementIdList:this.props.elementIdList,selected:this.props.element}))),o.default.createElement("div",{id:"designWorkspaceBody",style:C.workspaceBody},o.default.createElement("div",{id:"propertiesBody",style:this.state.selectedTab===E.PROPERTIES?C.activeBody:C.inactiveBody},o.default.createElement("div",{key:e},o.default.createElement("div",{style:{float:this.props.isRtl?"left":"right"}},!y&&o.default.createElement(u.default,{shouldConfirm:m,handleDelete:this.props.onDelete}),o.default.createElement(c.default,{handleDuplicate:this.props.onDuplicate}),t&&o.default.createElement(f.default,{handleRestore:this.props.onRestoreThemeDefaults}),!b&&!m&&o.default.createElement(s.default,{handleCopyElementToScreen:this.props.onCopyElementToScreen,screenIds:this.props.screenIds})),o.default.createElement(i,{element:this.props.element,handleChange:this.props.handleChange,onDepthChange:this.props.onDepthChange}))),o.default.createElement("div",{id:"eventsBody",style:this.state.selectedTab===E.EVENTS?C.activeBody:C.inactiveBody},o.default.createElement(g,{element:this.props.element,handleChange:this.props.handleChange,onInsertEvent:this.props.onInsertEvent}))))},t}(o.default.Component);y(_,"propTypes",{element:i.default.instanceOf(HTMLElement),elementIdList:i.default.arrayOf(i.default.string).isRequired,handleChange:i.default.func.isRequired,onCopyElementToScreen:i.default.func.isRequired,onChangeElement:i.default.func.isRequired,onDepthChange:i.default.func.isRequired,onDuplicate:i.default.func.isRequired,onRestoreThemeDefaults:i.default.func.isRequired,onDelete:i.default.func.isRequired,onInsertEvent:i.default.func.isRequired,screenIds:i.default.arrayOf(i.default.string).isRequired,isRtl:i.default.bool.isRequired});var E={PROPERTIES:"properties",EVENTS:"events"};_.TabType=E,e.exports=t.default},3606:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.showParamDropdowns=t.showExamplesLink=t.categories=t.blocks=void 0;var i=A(n(34)),o=w(n(1996)),a=A(n(2630)),l=w(n(2378)),s=w(n(1805)),u=n(3607),c=A(n(2332)),d=A(n(2206)),f=A(n(1772)),p=n(722),h=n(139),g=A(n(25)),m=w(n(2812)),b=A(n(2626)),y=w(n(759)),v=w(n(1083)),_=n(3177);function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function A(e){return e&&e.__esModule?e:{default:e}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){var i;return i=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==r(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var R=y.APP_WIDTH.toString(),x=(y.APP_HEIGHT-y.FOOTER_HEIGHT).toString();function I(e,t){dashboard.assets.showAssetManager(t,e,null,{showUnderageWarning:!(0,h.getStore)().getState().pageConstants.is13Plus})}function k(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=Applab.executeCmd).call.apply(e,[Applab].concat(n))}function D(e){return function(){return Applab.getIdDropdown(e)}}o.injectExecuteCmd(k),l.injectExecuteCmd(k),s.injectExecuteCmd(k);var M={0:D()};t.blocks=[{func:"onEvent",parent:m,category:"UI controls",paletteParams:["id","type","callback"],params:['"id"','"click"',"function( ) {\n  \n}"],allowFunctionDrop:{2:!0},dropdown:{0:D(),1:['"click"','"change"','"keyup"','"keydown"','"keypress"','"mousemove"','"mousedown"','"mouseup"','"mouseover"','"mouseout"','"input"']}},{func:"button",parent:m,category:"UI controls",paletteParams:["id","text"],params:['"id"','"text"']},{func:"textInput",parent:m,category:"UI controls",paletteParams:["id","text"],params:['"id"','"text"']},{func:"textLabel",parent:m,category:"UI controls",paletteParams:["id","text"],params:['"id"','"text"']},{func:"textArea",parent:m,category:"UI controls",params:['"id"','"text"']},{func:"dropdown",parent:m,category:"UI controls",paramButtons:{minArgs:1},paletteParams:["id","option1","etc"],params:['"id"','"option1"','"etc"']},{func:"getText",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:M,type:"value"},{func:"setText",parent:m,category:"UI controls",paletteParams:["id","text"],params:['"id"','"text"'],dropdown:M},{func:"getNumber",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:M,type:"value"},{func:"setNumber",parent:m,category:"UI controls",paletteParams:["id","number"],params:['"id"',"0"],dropdown:M},{func:"checkbox",parent:m,category:"UI controls",paletteParams:["id","checked"],params:['"id"',"false"],dropdown:{1:["true","false"]}},{func:"radioButton",parent:m,category:"UI controls",paramButtons:{minArgs:2,maxArgs:3},paletteParams:["id","checked"],params:['"id"',"false",'"group"'],dropdown:{1:["true","false"]}},{func:"slider",parent:m,category:"UI controls",params:['"id"',"0","100","50","1"]},{func:"getChecked",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],type:"value"},{func:"setChecked",parent:m,category:"UI controls",paletteParams:["id","checked"],params:['"id"',"true"],dropdown:{1:["true","false"]}},{func:"image",parent:m,category:"UI controls",paletteParams:["id","url"],params:['"id"','"https://code.org/images/logo.png"'],dropdown:{1:function(){return(0,c.default)("image")}},assetTooltip:{1:I.bind(null,"image")}},{func:"getImageURL",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:{0:function(){return[].concat(T(D("img")()),T(D(".img-upload")()))}},type:"value"},{func:"setImageURL",parent:m,category:"UI controls",paletteParams:["id","url"],params:['"id"','"https://code.org/images/logo.png"'],dropdown:{0:D("img"),1:function(){return(0,c.default)("image")}},assetTooltip:{1:I.bind(null,"image")}},S(S({},a.default.playSound),{},{category:"UI controls"}),S(S({},a.default.stopSound),{},{category:"UI controls"}),S(S({},a.default.playSpeech),{},{category:"UI controls"}),{func:"showElement",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:M},{func:"hideElement",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:M},{func:"deleteElement",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:M},{func:"setPosition",parent:m,category:"UI controls",paramButtons:{minArgs:3,maxArgs:5},paletteParams:["id","x","y","width","height"],params:['"id"',"0","0","100","100"],dropdown:M},{func:"setSize",parent:m,category:"UI controls",paletteParams:["id","width","height"],params:['"id"',"100","100"],dropdown:M},{func:"setProperty",parent:m,category:"UI controls",paletteParams:["id","property","value"],params:['"id"','"width"',"100"],dropdown:{0:D(),1:(0,_.setPropertyDropdown)(!0),2:(0,_.setPropertyValueSelector)()}},{func:"getProperty",parent:m,category:"UI controls",paletteParams:["id","property"],params:['"id"','"width"'],dropdown:{0:D(),1:(0,_.setPropertyDropdown)(!1)},type:"value"},{func:"write",parent:m,category:"UI controls",paletteParams:["text"],params:['"text"']},{func:"getXPosition",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:M,type:"value"},{func:"getYPosition",parent:m,category:"UI controls",paletteParams:["id"],params:['"id"'],dropdown:M,type:"value"},{func:"setScreen",parent:m,category:"UI controls",paletteParams:["screenId"],params:['"screen1"'],dropdown:{0:function(){var e=v.getScreens().map((function(){return'"'+v.getId(this)+'"'}));return i.default.makeArray(e)}}},{func:"rgb",parent:m,category:"UI controls",paramButtons:{minArgs:3,maxArgs:4},paletteParams:["r","g","b","a"],params:["250","0","75","0.5"],type:"value"},{func:"open",parent:m,category:"UI controls",paletteParams:["url"],params:['"https://code.org"']},{func:"createCanvas",parent:m,category:"Canvas",paramButtons:{minArgs:1,maxArgs:3},paletteParams:["id","width","height"],params:['"id"',R,x]},{func:"setActiveCanvas",parent:m,category:"Canvas",paletteParams:["id"],params:['"id"'],dropdown:{0:D("canvas")}},{func:"line",parent:m,category:"Canvas",paletteParams:["x1","y1","x2","y2"],params:["0","0",R/2,x/2]},{func:"circle",parent:m,category:"Canvas",paletteParams:["x","y","radius"],params:[R/2,x/2,"100"]},{func:"rect",parent:m,category:"Canvas",paletteParams:["x","y","width","height"],params:["80","120",R/2,x/2]},{func:"setStrokeWidth",parent:m,category:"Canvas",paletteParams:["width"],params:["3"]},{func:"setStrokeColor",parent:m,category:"Canvas",paletteParams:["color"],params:['"red"'],dropdown:{0:['"red"',"rgb(255,0,0)","rgb(255,0,0,0.5)",'"#FF0000"']}},{func:"setFillColor",parent:m,category:"Canvas",paletteParams:["color"],params:['"yellow"'],dropdown:{0:['"yellow"',"rgb(255,255,0)","rgb(255,255,0,0.5)",'"#FFFF00"']}},{func:"drawImage",parent:m,category:"Canvas",paletteParams:["id","x","y"],params:['"id"',"0","0"],dropdown:{0:D("img")},noAutocomplete:!0},{func:"drawImageURL",parent:m,category:"Canvas",paramButtons:{minArgs:1,maxArgs:6},paletteParams:["url"],params:['"https://code.org/images/logo.png"'],allowFunctionDrop:{1:!0,5:!0}},{func:"getImageData",parent:m,category:"Canvas",paletteParams:["x","y","width","height"],params:["0","0",R,x],type:"value"},{func:"putImageData",parent:m,category:"Canvas",paletteParams:["imgData","x","y"],params:["imgData","0","0"]},{func:"clearCanvas",parent:m,category:"Canvas"},{func:"getRed",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y"],params:["imgData","0","0"],type:"value",dontMarshal:!0},{func:"getGreen",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y"],params:["imgData","0","0"],type:"value",dontMarshal:!0},{func:"getBlue",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y"],params:["imgData","0","0"],type:"value",dontMarshal:!0},{func:"getAlpha",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y"],params:["imgData","0","0"],type:"value",dontMarshal:!0},{func:"setRed",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y","r"],params:["imgData","0","0","255"],dontMarshal:!0},{func:"setGreen",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y","g"],params:["imgData","0","0","255"],dontMarshal:!0},{func:"setBlue",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y","b"],params:["imgData","0","0","255"],dontMarshal:!0},{func:"setAlpha",parent:f.default,category:"Canvas",paletteParams:["imgData","x","y","a"],params:["imgData","0","0","255"],dontMarshal:!0},{func:"setRGB",parent:f.default,category:"Canvas",paramButtons:{minArgs:6,maxArgs:7},paletteParams:["imgData","x","y","r","g","b"],params:["imgData","0","0","255","255","255"],dontMarshal:!0},{func:"getColumn",parent:m,category:"Data",paletteParams:["table","column"],params:['"mytable"','"mycolumn"'],nativeIsAsync:!0,type:"value",dropdown:{0:(0,u.getTables)(),1:(0,u.getColumns)()}},{func:"startWebRequest",parent:m,category:"Data",paletteParams:["url","callback"],params:['"https://en.wikipedia.org/w/api.php?origin=*&action=parse&format=json&prop=text&page=computer&section=1&disablelimitreport=true"',"function(status, type, content) {\n  \n}"],allowFunctionDrop:{1:!0}},{func:"startWebRequestSync",parent:m,category:"Data",paletteParams:["url"],params:['"https://en.wikipedia.org/w/api.php?origin=*&action=parse&format=json&prop=text&page=computer&section=1&disablelimitreport=true"'],nativeIsAsync:!0,noAutocomplete:!0},{func:"setKeyValue",parent:m,category:"Data",paletteParams:["key","value","callback"],params:['"key"','"value"',"function () {\n  \n}"],allowFunctionDrop:{2:!0,3:!0}},{func:"setKeyValueSync",parent:m,category:"Data",paletteParams:["key","value"],params:['"key"','"value"'],nativeIsAsync:!0,noAutocomplete:!0},{func:"getKeyValue",parent:m,category:"Data",paletteParams:["key","callback"],params:['"key"',"function (value) {\n  \n}"],allowFunctionDrop:{1:!0,2:!0}},{func:"getKeyValueSync",parent:m,category:"Data",paletteParams:["key"],params:['"key"'],type:"value",nativeIsAsync:!0,noAutocomplete:!0},{func:"createRecord",parent:m,category:"Data",paletteParams:["table","record","callback"],params:['"mytable"',"{name:'Alice'}","function(record) {\n  \n}"],allowFunctionDrop:{2:!0,3:!0}},{func:"createRecordSync",parent:m,category:"Data",paletteParams:["table","record"],params:['"mytable"',"{name:'Alice'}"],allowFunctionDrop:{2:!0},nativeIsAsync:!0,type:"either"},{func:"readRecords",parent:m,category:"Data",paletteParams:["table","terms","callback"],params:['"mytable"',"{}","function(records) {\n  for (var i =0; i < records.length; i++) {\n    console.log(records[i].id + ': ' + records[i].name);\n  }\n}"],allowFunctionDrop:{2:!0,3:!0}},{func:"readRecordsSync",parent:m,category:"Data",paletteParams:["table"],params:['"mytable"'],nativeIsAsync:!0,type:"either"},{func:"updateRecord",parent:m,category:"Data",paletteParams:["table","record","callback"],params:['"mytable"',"{id:1, name:'Bob'}","function(record, success) {\n  \n}"],allowFunctionDrop:{2:!0,3:!0}},{func:"updateRecordSync",parent:m,category:"Data",paletteParams:["table","record"],params:['"mytable"',"{id:1, name:'Bob'}"],allowFunctionDrop:{2:!0},nativeIsAsync:!0,type:"either"},{func:"deleteRecord",parent:m,category:"Data",paletteParams:["table","record","callback"],params:['"mytable"',"{id:1}","function(success) {\n  \n}"],allowFunctionDrop:{2:!0,3:!0}},{func:"deleteRecordSync",parent:m,category:"Data",paletteParams:["table","record"],params:['"mytable"',"{id:1}"],allowFunctionDrop:{2:!0},nativeIsAsync:!0,type:"either"},{func:"getUserId",parent:m,category:"Data",type:"value"},{func:"drawChart",parent:m,category:"Data",paramButtons:{minArgs:3,maxArgs:5},paletteParams:["chartId","chartType","chartData"],params:['"chartId"','"bar"','[\n\t{ label: "Row 1", value: 1 },\n\t{ label: "Row 2", value: 2 }\n]'],allowFunctionDrop:{4:!0},dropdown:{0:D(".chart"),1:b.default.getChartTypeDropdown}},{func:"drawChartFromRecords",parent:m,category:"Data",paramButtons:{minArgs:4,maxArgs:6},paletteParams:["chartId","chartType","tableName","columns"],params:['"chartId"','"bar"','"mytable"','["columnOne", "columnTwo"]'],allowFunctionDrop:{5:!0},dropdown:{0:D(".chart"),1:b.default.getChartTypeDropdown}},{func:"moveForward",parent:m,category:"Turtle",paletteParams:["pixels"],params:["25"],dropdown:{0:["25","50","100","200"]}},{func:"moveBackward",parent:m,category:"Turtle",paletteParams:["pixels"],params:["25"],dropdown:{0:["25","50","100","200"]}},{func:"move",parent:m,category:"Turtle",paletteParams:["x","y"],params:["25","25"],dropdown:{0:["25","50","100","200"],1:["25","50","100","200"]}},{func:"moveTo",parent:m,category:"Turtle",paletteParams:["x","y"],params:["0","0"]},{func:"dot",parent:m,category:"Turtle",paletteParams:["radius"],params:["5"],dropdown:{0:["1","5","10"]}},{func:"turnRight",parent:m,category:"Turtle",paramButtons:{minArgs:0,maxArgs:1},paletteParams:["angle"],params:["90"],dropdown:{0:["30","45","60","90"]}},{func:"turnLeft",parent:m,category:"Turtle",paramButtons:{minArgs:0,maxArgs:1},paletteParams:["angle"],params:["90"],dropdown:{0:["30","45","60","90"]}},{func:"turnTo",parent:m,category:"Turtle",paletteParams:["angle"],params:["0"],dropdown:{0:["0","90","180","270"]}},{func:"arcRight",parent:m,category:"Turtle",paletteParams:["angle","radius"],params:["90","25"],dropdown:{0:["30","45","60","90"],1:["25","50","100","200"]}},{func:"arcLeft",parent:m,category:"Turtle",paletteParams:["angle","radius"],params:["90","25"],dropdown:{0:["30","45","60","90"],1:["25","50","100","200"]}},{func:"getX",parent:m,category:"Turtle",type:"value"},{func:"getY",parent:m,category:"Turtle",type:"value"},{func:"getDirection",parent:m,category:"Turtle",type:"value"},{func:"penUp",parent:m,category:"Turtle"},{func:"penDown",parent:m,category:"Turtle"},{func:"penWidth",parent:m,category:"Turtle",paletteParams:["width"],params:["3"],dropdown:{0:["1","3","5"]}},{func:"penColor",parent:m,category:"Turtle",paletteParams:["color"],params:['"red"'],dropdown:{0:['"red"',"rgb(255,0,0)","rgb(255,0,0,0.5)",'"#FF0000"']}},{func:"penRGB",parent:m,category:"Turtle",paramButtons:{minArgs:3,maxArgs:4},paletteParams:["r","g","b"],params:["120","180","200"]},{func:"show",parent:m,category:"Turtle"},{func:"hide",parent:m,category:"Turtle"},{func:"speed",parent:m,category:"Turtle",paletteParams:["value"],params:["50"],dropdown:{0:["25","50","75","100"]}},S({},l.dropletConfig.setTimeout),S({},l.dropletConfig.clearTimeout),S({},l.dropletConfig.setInterval),S({},l.dropletConfig.clearInterval),S({},l.dropletConfig.timedLoop),S({},l.dropletConfig.stopTimedLoop),{func:"console.log",parent:d.default,category:"Variables",paletteParams:["message"],params:['"message"']},{func:"console.clear",parent:d.default,category:"Variables"}].concat(T(p.dropletStringBlocks),T(p.dropletArrayBlocks),[{func:"imageUploadButton",parent:m,category:"Advanced",params:['"id"','"text"']},{func:"container",parent:m,category:"Advanced",params:['"id"','"html"']},{func:"innerHTML",parent:m,category:"Advanced",params:['"id"','"html"']},{func:"setParent",parent:m,category:"Advanced",params:['"id"','"parentId"']},{func:"setStyle",parent:m,category:"Advanced",params:['"id"','"color:red;"']},{func:"getAttribute",parent:m,category:"Advanced",params:['"id"','"scrollHeight"'],type:"value",noAutocomplete:!0},{func:"setAttribute",parent:m,category:"Advanced",params:['"id"','"scrollHeight"',"200"],noAutocomplete:!0},{func:"setSelectionRange",parent:m,category:"Advanced",paletteParams:["id","start","end"],params:['"id"',"0","0"],paramButtons:{minArgs:3,maxArgs:4}},{func:"comment_Goals_1",block:"// Goal 1",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_2",block:"// Goal 2",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_3",block:"// Goal 3",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_4",block:"// Goal 4",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_5",block:"// Goal 5",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_6",block:"// Goal 6",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_7",block:"// Goal 7",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_8",block:"// Goal 8",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_9",block:"// Goal 9",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_10",block:"// Goal 10",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_11",block:"// Goal 11",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_12",block:"// Goal 12",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_13",block:"// Goal 13",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_14",block:"// Goal 14",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_15",block:"// Goal 15",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_16",block:"// Goal 16",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_17",block:"// Goal 17",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_18",block:"// Goal 18",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_19",block:"// Goal 19",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"comment_Goals_20",block:"// Goal 20",docFunc:"comment",category:"Goals",noAutocomplete:!0},{func:"getPrediction",parent:m,category:"Data",paletteParams:["name","id","data","callback"],params:['"name"','"id"',"data","function (value) {\n \n}"]},{func:"declareAssign_object",block:'var object = {"key": "value"};',category:"Variables",noAutocomplete:!0},{func:"getValue",parent:f.default,category:"Variables",paletteParams:["object",'"key"'],params:['{"key": "value"}','"key"'],dontMarshal:!0},{func:"addPair",parent:f.default,category:"Variables",paletteParams:["object",'"key"','"value"'],params:["object",'"key"','"value"'],dontMarshal:!0}]),t.categories={"UI controls":{id:"uicontrols",color:"yellow",rgb:g.default.droplet_yellow,blocks:[]},Canvas:{id:"canvas",color:"red",rgb:g.default.droplet_red,blocks:[]},Data:{id:"data",color:"lightgreen",rgb:g.default.droplet_light_green,blocks:[]},Turtle:{id:"turtle",color:"cyan",rgb:g.default.droplet_cyan,blocks:[]},Advanced:{id:"advanced",color:"blue",rgb:g.default.droplet_bright_blue,blocks:[]},Goals:{id:"goals",color:"deeppurple",blocks:[]}},t.showExamplesLink=!0,t.showParamDropdowns=!0},3139:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getImportableProject=function(e){if(!e)return null;var t=e.channel,n=e.sources,r=e.assets,o=e.existingAssets,a=[];(0,i.default)(n.html).find(".screen").css("position","inherit").css("display","block").each((function(e,t){a.push(function(e){var t=e.id,n=u.default.getAllScreenIds().includes(t),r=[];n||s.isIdAvailable(t)||r.push(t);Array.from(e.children).forEach((function(e){if(!s.isIdAvailable(e.id)){var n=s.getPrefixedElementById(e.id);if(n){var o=(0,i.default)(n).parents(".screen")[0];(0,i.default)(n).hasClass("screen")&&(o=n),s.getId(o)!==t&&r.push(e.id)}}}));var o=[],a=(0,i.default)("[data-canonical-image-url]",e).toArray().map((function(e){return(0,i.default)(e).attr("data-canonical-image-url")}));(0,i.default)(e).is("[data-canonical-image-url]")&&a.push((0,i.default)(e).attr("data-canonical-image-url"));return a=a.filter((function(e){return!((0,i.default)('#designModeViz [data-canonical-image-url="'.concat(e,'"]')).length>0)||(o.push(e),!1)})),{id:t,willReplace:n,assetsToReplace:o,assetsToImport:a,conflictingIds:r,html:e.outerHTML,canBeImported:0===r.length}}(t))}));var l={};a.forEach((function(e){return e.assetsToImport.concat(e.assetsToReplace).forEach((function(e){return l[e]=!0}))}));var c={};o.forEach((function(e){return c[e.filename]=!0}));var d=r.filter((function(e){return!l[e.filename]})).map((function(e){return{filename:e.filename,category:e.category,willReplace:!!c[e.filename]}}));return{id:t.id,name:t.name,screens:a,otherAssets:d}},t.importScreensAndAssets=function(e,t,n){return new Promise((function(r,i){var o={};function c(e){t.forEach((function(e){var t=e.html,n=s.getPrefixedElementById(e.id);u.default.attachElement(u.default.parseScreenFromLevelHtml(t,!0,l.DESIGN_ELEMENT_ID_PREFIX)),n&&u.default.onDeletePropertiesButton(n)})),u.default.resetPropertyTab(),r(e)}n.forEach((function(e){return o[e.filename]=!0})),t.forEach((function(e){e.assetsToReplace.forEach((function(e){return o[e]=!0})),e.assetsToImport.forEach((function(e){return o[e]=!0}))})),(o=(o=Object.keys(o)).filter((function(e){return!p.test(e)}))).length>0?a.assets.copyAssets(e,o,c,(function(e){console.error("Failed to copy assets:",e),i(e)})):c()}))},t.importableScreenShape=t.importableProjectShape=t.importableAssetShape=void 0;var i=f(n(34)),o=f(n(2)),a=n(427),l=d(n(759)),s=d(n(1083)),u=f(n(1750));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function f(e){return e&&e.__esModule?e:{default:e}}var p=l.DATA_URL_PREFIX_REGEX,h=t.importableScreenShape=o.default.shape({id:o.default.string.isRequired,willReplace:o.default.bool.isRequired,assetsToReplace:o.default.arrayOf(o.default.string).isRequired,assetsToImport:o.default.arrayOf(o.default.string).isRequired,conflictingIds:o.default.arrayOf(o.default.string).isRequired,html:o.default.string.isRequired,canBeImported:o.default.bool.isRequired}),g=t.importableAssetShape=o.default.shape({filename:o.default.string.isRequired,category:o.default.string.isRequired,willReplace:o.default.bool.isRequired});t.importableProjectShape=o.default.shape({id:o.default.string.isRequired,name:o.default.string.isRequired,screens:o.default.arrayOf(h).isRequired,otherAssets:o.default.arrayOf(g).isRequired})},2926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Esc",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",91:"OS",92:"OS",93:"Menu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:":",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};e.exports=t.default},2948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(859)),i=n(3610),o=n(3611),a=u(n(700)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(33));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=a.default.createToolbox,g=a.default.blockOfType,m=a.default.createCategory,b={};t.default=b;b.simple={requiredBlocks:[],scale:{snapRadius:2},freePlay:!0,toolbox:h('<block type="applab_container" inline="true">         <value name="ID"><block type="text"><title name="TEXT">id</title></block></value>         <value name="HTML"><block type="text"><title name="TEXT">html</title></block></value></block>'),startBlocks:'<block type="when_run" deletable="false" x="20" y="20"></block>'},b.custom={freePlay:!0,editCode:!0,sliderSpeed:1,codeFunctions:i.ApplabBlocks},b.ec_simple=l.extend(b.custom,{}),b.ec_goals=l.extend(b.custom,{codeFunctions:f(f({},i.ApplabBlocks),o.ApplabGoalBlocks)}),b.full_sandbox={scrollbars:!0,requiredBlocks:[],scale:{snapRadius:2},softButtons:["leftButton","rightButton","downButton","upButton"],minWorkspaceHeight:1400,freePlay:!0,toolbox:h(m(r.default.catActions(),'<block type="applab_createHtmlBlock" inline="true">           <value name="ID"><block type="text"><title name="TEXT">id</title></block></value>           <value name="HTML"><block type="text"><title name="TEXT">html</title></block></value></block>')+m(r.default.catControl(),g("controls_whileUntil")+'<block type="controls_for">                           <value name="FROM">                             <block type="math_number">                               <title name="NUM">1</title>                             </block>                           </value>                           <value name="TO">                             <block type="math_number">                               <title name="NUM">10</title>                             </block>                           </value>                           <value name="BY">                             <block type="math_number">                               <title name="NUM">1</title>                             </block>                           </value>                         </block>'+g("controls_flow_statements"))+m(r.default.catLogic(),g("controls_if")+g("logic_compare")+g("logic_operation")+g("logic_negate")+g("logic_boolean"))+m(r.default.catMath(),g("math_number")+'<block type="math_change">                           <value name="DELTA">                             <block type="math_number">                               <title name="NUM">1</title>                             </block>                           </value>                         </block><block type="math_random_int">                           <value name="FROM">                             <block type="math_number">                               <title name="NUM">1</title>                             </block>                           </value>                           <value name="TO">                             <block type="math_number">                               <title name="NUM">100</title>                             </block>                           </value>                         </block>'+g("math_arithmetic"))+m(r.default.catText(),g("text")+g("text_join")+'<block type="text_append">                           <value name="TEXT">                             <block type="text"></block>                           </value>                         </block>')+m(r.default.catVariables(),"","VARIABLE")+m(r.default.catProcedures(),"","PROCEDURE")),startBlocks:'<block type="when_run" deletable="false" x="20" y="20"></block>'},e.exports=t.default},859:(e,t,n)=>{"use strict";var r=i(n(175));function i(e){return e&&e.__esModule?e:{default:e}}var o=(0,i(n(176)).default)("applab_locale");o=(0,r.default)(o,"applab"),e.exports=o},2313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reducers=t.actions=t.REDIRECT_RESPONSE=void 0;var r=n(1173),i=n(2126),o=s(n(1560)),a=n(759),l=s(n(2175));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.REDIRECT_RESPONSE={APPROVED:"approved",REJECTED:"rejected",UNSUPPORTED:"unsupported"};var p="applab/CHANGE_INTERFACE_MODE",h="applab/ADD_REDIRECT_NOTICE",g="applab/DISMISS_REDIRECT_NOTICE",m="applab/SET_LEVEL_DATA";t.actions={changeInterfaceMode:function(e){if(!e)throw new Error("Expected an interace mode!");return{type:p,interfaceMode:e}},addRedirectNotice:function(e,t){return{type:h,response:e,url:t}},dismissRedirectNotice:function(){return{type:g}},setLevelData:function(e){return{type:m,data:e}}};t.reducers=d(d({},r.reducers),{},{maker:i.reducer,data:o.default,interfaceMode:function(e,t){return e=e||a.ApplabInterfaceMode.CODE,t.type===p?t.interfaceMode:e},redirectDisplay:function(e,t){switch(e=e||[],t.type){case h:return[{response:t.response,url:t.url}].concat(e);case g:return e.length>0?e.slice(1):e;default:return e}},screens:l.default,level:function(e,t){return e=e||{},t.type===m?d(d({},e),t.data):e}})},2175:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.changeScreen=void 0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;return(e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c:return e.set("currentScreenId",t.screenId);case d:return e.set("isImportingScreen",t.importing);case f.SCREENS.FINISHED_IMPORTING:return e.set("isImportingScreen",!1);default:return e}}(e,t)).set("importProject",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new p,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case d:return new p;case f.PROJECT.START_FETCHING:return e.set("isFetchingProject",!0);case f.PROJECT.FINISHED_FETCHING:return e.merge({isFetchingProject:!1,errorFetchingProject:null}).set("fetchedProject",t.project).set("importableProject",l.getImportableProject(t.project));case f.PROJECT.FAILED_FETCHING:return e.merge({isFetchingProject:!1,errorFetchingProject:!0});case f.SCREENS.START_IMPORTING:return e.set("isImportingProject",!0);case f.SCREENS.FINISHED_IMPORTING:return new p;case f.SCREENS.FAILED_IMPORTING:return e.merge({isImportingProject:!1,errorImportingProject:!0});default:return e}}(e.importProject,t))},t.fetchProject=function(e){return function(t){var n,r,i,l,s=function(){return t({type:f.PROJECT.FAILED_FETCHING,url:e})},u=function(){n&&r&&i&&l&&t({type:f.PROJECT.FINISHED_FETCHING,url:e,project:{channel:r,sources:n,assets:i,existingAssets:l}})},c=function(e){a.assets.getFiles((function(e){l=e.files,u()}),s),a.assets.withProjectId(e).getFiles((function(e){i=e.files,u()}),s),a.channels.withProjectId(e).ajax("GET","",(function(e){r=JSON.parse(e.response),u()}),s),a.sources.withProjectId(e).ajax("GET","main.json",(function(e){n=JSON.parse(e.response),u()}),s)};t({type:f.PROJECT.START_FETCHING,url:e});var d=m(e);d?c(d):o.default.get("/redirected_url?u="+encodeURIComponent(e),(function(e){var t=m(e);t?c(t):s()})).fail(s)}},t.importIntoProject=function(e,t,n){return function(r){r({type:f.SCREENS.START_IMPORTING,screens:t,assets:n}),l.importScreensAndAssets(e,t,n).then((function(){if(r({type:f.SCREENS.FINISHED_IMPORTING}),t.length>0){var e=t[t.length-1];r(g(e.id))}}),(function(){return r({type:f.SCREENS.FAILED_IMPORTING})}))}},t.toggleImportScreen=void 0;var i=u(n(374)),o=u(n(34)),a=n(427),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(n(3139));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}var c="screens/CHANGE_SCREEN",d="screens/TOGGLE_IMPORT_SCREEN",f={PROJECT:{START_FETCHING:"screens/importProject/START_FETCHING",FAILED_FETCHING:"screens/importProject/FAILED_FETCHING",FINISHED_FETCHING:"screens/importProject/FINISHED_FETCHING"},SCREENS:{START_IMPORTING:"screens/importScreens/START_IMPORTING",FAILED_IMPORTING:"screens/importScreens/FAILED_IMPORTING",FINISHED_IMPORTING:"screens/importScreens/FINISHED_IMPORTING"}},p=i.default.Record({isFetchingProject:!1,errorFetchingProject:!1,fetchedProject:null,importableProject:null,isImportingProject:!1,errorImportingProject:!1}),h=new(i.default.Record({currentScreenId:null,isImportingScreen:!1,importProject:void 0}));var g=t.changeScreen=function(e){return{type:c,screenId:e}};t.toggleImportScreen=function(e){return{type:d,importing:e}};function m(e){var t=e.match(/projects\/applab\/([^\/]+)/);if(t)return t[1]}},2623:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){var i=[],l=["id","class","data-*","height","spellcheck","style","title","width"],s=["b","br","canvas","em","font","h1","h2","h3","h4","h5","h6","hr","i","label","li","ol","option","p","strong","table","td","th","tr","u","ul"];n||s.push("span");var u={};s.forEach((function(e){u[e]=l}));var c={button:l.concat(["data-canonical-image-url"]),div:l.concat(["contenteditable","data-canonical-image-url","data-theme","tabindex","xmlns"]),img:l.concat(["data-canonical-image-url","src"]),input:l.concat(["autocomplete","checked","max","min","name","placeholder","step","type","value","accept","hidden","capture","readonly"]),select:l.concat(["multiple","size"])},d=Object.keys(c),f=o.default.defaults.allowedTags.concat(s).concat(d),p=Object.assign({},o.default.defaults.allowedAttributes,u,c),h=(0,o.default)(e,{allowedTags:f,allowedAttributes:p,allowedSchemes:o.default.defaults.allowedSchemes.concat(["data"]),transformTags:{"*":function(e,t){return r&&t.id&&!function(e){var t={allowCodeElements:!1,allowDesignElements:!0,allowDesignPrefix:!0};if(!a.isIdAvailable(e,t))return!1;return!0}(t.id)&&(i.push("element id is already in use: "+t.id),delete t.id),"password"===t.type&&"input"===e&&(i.push("for security reasons, input type can not be: "+t.type),delete t.type),{tagName:e,attribs:t}}}});"function"==typeof t&&h!==e&&function(e,t,n,r){var i=[];i.indexOf=function(){return 0};var a=["pmbx_context","kl_vkbd_parsed","kl_virtual_keyboard_secure_input","vk_16761","vk_19391","vk_197cd","_vkenabled","abp"],l=["grammarly-btn"],s=(0,o.default)(t,{allowedTags:!1,allowedAttributes:!1,allowedSchemes:i,transformTags:{"*":function(e,t){for(var n=0;n<a.length;n++){var r=a[n];t[r]&&delete t[r]}return{tagName:e,attribs:t}}},exclusiveFilter:function(e){return-1!==l.indexOf(e.tag)}});s!==n&&e(function(e,t){for(var n=e.replace(/</gi,"\n<").split("\n"),r=t.replace(/</gi,"\n<").split("\n"),i={},o=0;o<r.length;o++)i[r[o]]=!0;return n.filter((function(e){return!i[e]})).join("\n")}(s,n),t,n,r)}(t,e,h,i);return h};var i,o=(i=n(3140))&&i.__esModule?i:{default:i},a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(n(1083));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}e.exports=t.default},3177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__TestInterface=void 0,t.getInternalPropertyInfo=function(e,t){var n,r=l.default.getElementType(e,!0);r&&(n=g[r].infoForFriendlyName[t]);return n},t.setPropertyDropdown=function(e){return function(t){var n,r,i,a=(r=this.parent,i=t,(0,o.getFirstParam)("setProperty",r,i));if(a){var s=v(a),u=document.querySelector("#divApplab #"+s);u&&(n=l.default.getElementType(u,!0))}return _(e,n,this.parent)}},t.setPropertyValueSelector=function(){return function(e){var t=function(e,t){return(0,o.getSecondParam)("setProperty",e,t)}(this.parent,e);return E(t)}};var r=s(n(51)),i=s(n(2332)),o=n(722),a=n(759),l=s(n(1725));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||c(e,t)||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 c(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=l.default.ElementType,p={width:{friendlyName:"width",internalName:"style-width",type:"number",defaultValue:"100"},height:{friendlyName:"height",internalName:"style-height",type:"number",defaultValue:"100"},canvasWidth:{friendlyName:"width",internalName:"width",type:"number",defaultValue:"100"},canvasHeight:{friendlyName:"height",internalName:"height",type:"number",defaultValue:"100"},x:{friendlyName:"x",internalName:"left",type:"number",defaultValue:"100"},y:{friendlyName:"y",internalName:"top",type:"number",defaultValue:"100"},textColor:{friendlyName:"text-color",internalName:"textColor",type:"string",defaultValue:'"red"'},backgroundColor:{friendlyName:"background-color",internalName:"backgroundColor",type:"string",defaultValue:'"red"'},borderWidth:{friendlyName:"border-width",internalName:"borderWidth",type:"number",defaultValue:"0"},borderColor:{friendlyName:"border-color",internalName:"borderColor",type:"string",defaultValue:'"black"'},borderRadius:{friendlyName:"border-radius",internalName:"borderRadius",type:"number",defaultValue:"0"},fontFamily:{friendlyName:"font-family",internalName:"fontFamily",type:"string",defaultValue:'"'.concat(a.fontFamilyOptions[0],'"')},fontSize:{friendlyName:"font-size",internalName:"fontSize",type:"number",defaultValue:"14"},textAlign:{friendlyName:"text-align",internalName:"textAlign",type:"string",defaultValue:'"left"'},hidden:{friendlyName:"hidden",internalName:"hidden",type:"boolean",defaultValue:"true"},text:{friendlyName:"text",internalName:"text",type:"uistring",defaultValue:'"text"'},placeholder:{friendlyName:"placeholder",internalName:"placeholder",type:"uistring",defaultValue:'"text"'},image:{friendlyName:"image",internalName:"image",type:"string",defaultValue:'"https://code.org/images/logo.png"'},screenImage:{friendlyName:"image",internalName:"screen-image",type:"string",defaultValue:'"https://code.org/images/logo.png"'},pictureImage:{friendlyName:"image",internalName:"picture",type:"string",defaultValue:'"https://code.org/images/logo.png"'},picture:{friendlyName:"picture",internalName:"picture",type:"string",alias:!0,defaultValue:'"https://code.org/images/logo.png"'},iconColor:{friendlyName:"icon-color",internalName:"icon-color",type:"string",defaultValue:'"red"'},photoSelectIconColor:{friendlyName:"icon-color",internalName:"textColor",type:"string",defaultValue:'"red"'},groupId:{friendlyName:"group-id",internalName:"groupId",type:"string",defaultValue:'"text"'},checked:{friendlyName:"checked",internalName:"checked",type:"boolean",defaultValue:"true"},readonly:{friendlyName:"readonly",internalName:"readonly",type:"boolean",defaultValue:"true"},options:{friendlyName:"options",internalName:"options",type:"array",defaultValue:'["option1", "etc"]'},sliderValue:{friendlyName:"value",internalName:"sliderValue",type:"number",defaultValue:"100"},min:{friendlyName:"min",internalName:"min",type:"number",defaultValue:"100"},max:{friendlyName:"max",internalName:"max",type:"number",defaultValue:"100"},step:{friendlyName:"step",internalName:"step",type:"number",defaultValue:"100"},value:{friendlyName:"value",internalName:"value",type:"uistring",defaultValue:'"text"'},fit:{friendlyName:"fit",internalName:"objectFit",type:"string",defaultValue:'"fill"'},index:{friendlyName:"index",internalName:"index",type:"number",defaultValue:"0"}},h=r.default.uniqBy(Object.keys(p).map((function(e){return y(e)})).filter((function(e){return e})),(function(e){return e.text})),g={};for(var m in g[f.BUTTON]={propertyNames:["text","width","height","x","y","textColor","backgroundColor","fontFamily","fontSize","textAlign","image","iconColor","hidden","borderWidth","borderColor","borderRadius"]},g[f.TEXT_INPUT]={propertyNames:["text","placeholder","width","height","x","y","textColor","backgroundColor","fontFamily","fontSize","textAlign","hidden","value","borderWidth","borderColor","borderRadius"]},g[f.LABEL]={propertyNames:["text","width","height","x","y","textColor","backgroundColor","fontFamily","fontSize","textAlign","hidden","borderWidth","borderColor","borderRadius"]},g[f.DROPDOWN]={propertyNames:["text","options","index","width","height","x","y","textColor","backgroundColor","fontFamily","fontSize","textAlign","hidden","value","borderWidth","borderColor","borderRadius"]},g[f.RADIO_BUTTON]={propertyNames:["text","groupId","width","height","x","y","hidden","checked"]},g[f.CHECKBOX]={propertyNames:["text","width","height","x","y","hidden","checked"]},g[f.IMAGE]={propertyNames:["text","width","height","x","y","pictureImage","picture","iconColor","hidden","fit","borderWidth","borderColor","borderRadius"]},g[f.CANVAS]={propertyNames:["text","canvasWidth","canvasHeight","x","y","hidden"]},g[f.SCREEN]={propertyNames:["backgroundColor","screenImage","iconColor"]},g[f.TEXT_AREA]={propertyNames:["text","width","height","x","y","textColor","backgroundColor","fontFamily","fontSize","textAlign","readonly","hidden","borderWidth","borderColor","borderRadius"]},g[f.CHART]={propertyNames:["text","width","height","x","y","hidden"]},g[f.SLIDER]={propertyNames:["text","width","height","x","y","sliderValue","min","max","step","hidden"]},g[f.PHOTO_SELECT]={propertyNames:["width","height","x","y","iconColor","backgroundColor","hidden","borderWidth","borderColor","borderRadius"]},g){var b=g[m];b.dropdownOptions=[],b.infoForFriendlyName={},b.propertyNames.forEach((function(e){var t=p[e].friendlyName;if(b.infoForFriendlyName[t])throw new Error("Multiple props for friendlyName: "+t+" in elementType: "+m);m===f.PHOTO_SELECT&&"icon-color"===t?b.infoForFriendlyName[t]=p.photoSelectIconColor:b.infoForFriendlyName[t]=p[e];var n=y(e);n&&b.dropdownOptions.push(n)}))}function y(e){var t=p[e];if(t&&!t.alias){var n=t.friendlyName,r=t.defaultValue;if(n&&r)return{text:'"'+n+'"',display:'"'+n+'"',setValueParam:r}}}function v(e){var t=e.match(/^(['"])(.*)\1$/);return t?t[2]:e}function _(e,t,n){var r=h.slice();if(t in g&&(r=g[t].dropdownOptions.slice()),!e)return r;var i,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(r.entries());try{var l,s=function(){var e=u(i.value,2),t=e[0],a=e[1];a.setValueParam&&((l=Object.assign({},a)).click=function(e){e(a.text),(0,o.setParamAtIndex)(2,a.setValueParam,n)},r[t]=l)};for(a.s();!(i=a.n()).done;)s()}catch(d){a.e(d)}finally{a.f()}return r}function E(e){var t=["0","25","50","75","100","150","200"];if(!e)return t;switch(v(e)){case"image":case"picture":return(0,i.default)("image");case"text-color":case"background-color":case"border-color":case"icon-color":return['"white"','"red"','"green"','"blue"','"yellow"',"rgb(255,0,0)","rgb(255,0,0,0.5)",'"#FF0000"'];case"border-radius":case"border-width":return["0","1","2","5","10"];case"font-family":return a.fontFamilyOptions.map((function(e){return'"'.concat(e,'"')}));case"text-align":return['"left"','"right"','"center"','"justify"'];case"fit":return['"fill"','"cover"','"contain"','"none"'];case"font-size":return["8","10","12","14","18","24","36","72"];case"hidden":case"checked":case"readonly":return["true","false"];case"text":case"placeholder":case"group-id":return['"text"'];case"options":return['["option1", "etc"]'];default:return t}}t.__TestInterface={stripQuotes:v,getDropdownProperties:_,getPropertyValueDropdown:E}},2737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.load=function(e,t){return i.default.load(e,t)};var r,i=(r=n(1075))&&r.__esModule?r:{default:r}},2071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CLASSIC_TEXT_INPUT_PADDING=t.CLASSIC_TEXT_AREA_PADDING=t.CLASSIC_DROPDOWN_PADDING=void 0;var n="2px 15px",r="5px 15px",i="0 30px 0 15px",o="5px 15px",a={default:13,orange:13,citrus:13,ketchupAndMustard:13,lemonade:13,forest:13,watermelon:13,area51:13,polar:13,glowInTheDark:13,bubblegum:13,millennial:13,robot:13,classic:14,coralReef:13,mintChip:13,lavender:13,cherryVanilla:13,berryPatch:13,cucumber:13,crushedVelvet:13,playtime:13,underTheSea:13,blueAndGold:13,blueSteel:13,darkscheme:13,twoTone:13,pastel:13,peachy:13},l={type:"color",default:"#4D575F",orange:"#FFFFFF",citrus:"#69883D",ketchupAndMustard:"#FFFFFF",lemonade:"#193A55",forest:"#000000",watermelon:"#578B2E",area51:"#D8FFA7",polar:"#FFFFFF",glowInTheDark:"#FFFFFF",bubblegum:"#000000",millennial:"#FFFFFF",robot:"#353C42",classic:"rgb(153, 153, 153)",coralReef:"#D75D52",mintChip:"#3D95A1",lavender:"#8875B1",cherryVanilla:"#A51928",berryPatch:"#DF6589",cucumber:"#209864",crushedVelvet:"#69396D",playtime:"#18BC3C",underTheSea:"#096A6A",blueAndGold:"#FFD662",blueSteel:"#353B51",darkscheme:"#B22D2D",twoTone:"#000000",pastel:"#C87FDB",peachy:"#DF6C06"},s={screen:{backgroundColor:{type:"color",default:"#FFFFFF",orange:"#FFA400",citrus:"#96C257",ketchupAndMustard:"#EB5757",lemonade:"#FFE049",forest:"#23782B",watermelon:"#C5E255",area51:"#362F49",polar:"#AEE2F4",glowInTheDark:"#7D6CA6",bubblegum:"#FFC3E6",millennial:"#FEDBD0",robot:"#D8E0E3",classic:"#FFFFFF",coralReef:"#5BA0ED",mintChip:"#5CC8D7",lavender:"#A189BA",cherryVanilla:"#FFF5F5",berryPatch:"#64337D",cucumber:"#AAEBDF",crushedVelvet:"#46154A",playtime:"#FCFF5E",underTheSea:"#078282",blueAndGold:"#00539C",blueSteel:"#4B526B",darkscheme:"#000000",twoTone:"#FFFFFF",pastel:"#89BFEC",peachy:"#FFBE7B"}},label:{textColor:{type:"color",default:"#4D575F",orange:"#FFFFFF",citrus:"#F7EC60",ketchupAndMustard:"#FFFFFF",lemonade:"#5BB7E7",forest:"#004624",watermelon:"#E2F0AA",area51:"#D8FFA7",polar:"#EFFAFF",glowInTheDark:"#D9FFD9",bubblegum:"#000000",millennial:"#442C2E",robot:"#F5F5F6",classic:"#333333",coralReef:"#FDF995",mintChip:"#E9FCFF",lavender:"#5E4D83",cherryVanilla:"#A51928",berryPatch:"#3C1053",cucumber:"#209864",crushedVelvet:"#FFFFFF",playtime:"#FFFFFF",underTheSea:"#096A6A",blueAndGold:"#00539C",blueSteel:"#FFFFFF",darkscheme:"#FFFFFF",twoTone:"#000000",pastel:"#A065AF",peachy:"#DF6C06"},backgroundColor:{type:"color",default:"rgba(0, 0, 0, 0)",orange:"#4D3100",citrus:"#69883D",ketchupAndMustard:"#A53D3D",lemonade:"rgba(0, 0, 0, 0)",forest:"rgba(0, 0, 0, 0)",watermelon:"#578B2E",area51:"#221D30",polar:"#0094CA",glowInTheDark:"#635982",bubblegum:"#FFD4ED",millennial:"#FEEAE6",robot:"#80A7B9",classic:"rgba(0, 0, 0, 0)",coralReef:"#FC766A",mintChip:"#4EB4C2",lavender:"#CCB9E1",cherryVanilla:"#F1E2D4",berryPatch:"#FFDBE6",cucumber:"#EFFFF9",crushedVelvet:"#69396D",playtime:"#6AA4FC",underTheSea:"#95DBE5",blueAndGold:"#D1D1D1",blueSteel:"#71788E",darkscheme:"#707070",twoTone:"#FFFFFF",pastel:"#D1F3DF",peachy:"#FBEFB4"},borderColor:l,borderRadius:{default:0,orange:0,citrus:2,ketchupAndMustard:10,lemonade:0,forest:2,watermelon:0,area51:10,polar:2,glowInTheDark:0,bubblegum:10,millennial:4,robot:0,classic:0,coralReef:10,mintChip:10,lavender:10,cherryVanilla:25,berryPatch:30,cucumber:30,crushedVelvet:5,playtime:10,underTheSea:30,blueAndGold:30,blueSteel:30,darkscheme:30,twoTone:30,pastel:30,peachy:30},borderWidth:{default:0,orange:0,citrus:0,ketchupAndMustard:0,lemonade:0,forest:0,watermelon:0,area51:0,polar:0,glowInTheDark:0,bubblegum:0,millennial:0,robot:0,classic:0,coralReef:2,mintChip:2,lavender:1,cherryVanilla:0,berryPatch:2,cucumber:1,crushedVelvet:1,playtime:2,underTheSea:2,blueAndGold:2,blueSteel:0,darkscheme:0,twoTone:0,pastel:2,peachy:1},fontFamily:{default:"Arial Black",orange:"Arial",citrus:"Georgia",ketchupAndMustard:"Georgia",lemonade:"Arial Black",forest:"Verdana",watermelon:"Georgia",area51:"Trebuchet",polar:"Verdana",glowInTheDark:"Tahoma",bubblegum:"Georgia",millennial:"Arial",robot:"Tahoma",classic:"Arial",coralReef:"Arial",mintChip:"Verdana",lavender:"Georgia",cherryVanilla:"Trebuchet",berryPatch:"Trebuchet",cucumber:"Verdana",crushedVelvet:"Verdana",playtime:"Verdana",underTheSea:"Trebuchet",blueAndGold:"Trebuchet",blueSteel:"Trebuchet",darkscheme:"Trebuchet",twoTone:"Trebuchet",pastel:"Trebuchet",peachy:"Verdana"},fontSize:a,padding:{default:n,orange:n,citrus:n,ketchupAndMustard:n,lemonade:n,forest:n,watermelon:n,area51:n,polar:n,glowInTheDark:n,bubblegum:n,millennial:n,robot:n,classic:"2px",coralReef:n,mintChip:n,lavender:n,cherryVanilla:n,berryPatch:n,cucumber:n,crushedVelvet:n,playtime:n,underTheSea:n,blueAndGold:n,blueSteel:n,darkscheme:n,twoTone:n,pastel:n,peachy:n}},textInput:{textColor:{type:"color",default:"#4D575F",orange:"#FFFFFF",citrus:"#000000",ketchupAndMustard:"#FFFFFF",lemonade:"#00A8FF",forest:"#FFFFFF",watermelon:"#151F00",area51:"#D8FFA7",polar:"#442C2E",glowInTheDark:"#D9FFD9",bubblegum:"#000000",millennial:"#442C2E",robot:"#353C42",classic:"#000000",coralReef:"#5BA0ED",mintChip:"#E5F4F6",lavender:"#5E4D83",cherryVanilla:"#A51928",berryPatch:"#3C1053",cucumber:"#209864",crushedVelvet:"#FFFFFF",playtime:"#FFFFFF",underTheSea:"#096A6A",blueAndGold:"#00539C",blueSteel:"#FFFFFF",darkscheme:"#FFFFFF",twoTone:"#000000",pastel:"#A065AF",peachy:"#DF6C06"},backgroundColor:{type:"color",default:"#F2F2F2",orange:"#B37300",citrus:"#FFFFFF",ketchupAndMustard:"#A53D3D",lemonade:"#FFFFFF",forest:"#004624",watermelon:"#E2F0AA",area51:"#221D30",polar:"#ACCFDE",glowInTheDark:"#4D575F",bubblegum:"#FFD4ED",millennial:"#FEDBD0",robot:"#FFFFFF",classic:"#FFFFFF",coralReef:"#FDF995",mintChip:"#4EB4C2",lavender:"#CCB9E1",cherryVanilla:"#F1E2D4",berryPatch:"#FFDBE6",cucumber:"#EFFFF9",crushedVelvet:"#2D0A30",playtime:"#3EE061",underTheSea:"#95DBE5",blueAndGold:"#D1D1D1",blueSteel:"#71788E",darkscheme:"#707070",twoTone:"#FFFFFF",pastel:"#D1F3DF",peachy:"#FBEFB4"},borderColor:l,borderRadius:{default:4,orange:0,citrus:4,ketchupAndMustard:5,lemonade:4,forest:4,watermelon:0,area51:10,polar:4,glowInTheDark:0,bubblegum:4,millennial:4,robot:0,classic:0,coralReef:10,mintChip:10,lavender:10,cherryVanilla:5,berryPatch:30,cucumber:30,crushedVelvet:5,playtime:10,underTheSea:30,blueAndGold:30,blueSteel:30,darkscheme:30,twoTone:30,pastel:30,peachy:30},borderWidth:{default:1,orange:1,citrus:1,ketchupAndMustard:1,lemonade:1,forest:1,watermelon:2,area51:1,polar:1,glowInTheDark:1,bubblegum:1,millennial:2,robot:1,classic:1,coralReef:2,mintChip:2,lavender:1,cherryVanilla:1,berryPatch:2,cucumber:1,crushedVelvet:1,playtime:2,underTheSea:2,blueAndGold:2,blueSteel:2,darkscheme:2,twoTone:1,pastel:2,peachy:1},fontFamily:{default:"Arial",orange:"Arial",citrus:"Palatino",ketchupAndMustard:"Tahoma",lemonade:"Arial",forest:"Arial",watermelon:"Georgia",area51:"Trebuchet",polar:"Verdana",glowInTheDark:"Tahoma",bubblegum:"Trebuchet",millennial:"Arial",robot:"Tahoma",classic:"Arial",coralReef:"Arial",mintChip:"Verdana",lavender:"Georgia",cherryVanilla:"Trebuchet",berryPatch:"Trebuchet",cucumber:"Verdana",crushedVelvet:"Verdana",playtime:"Verdana",underTheSea:"Trebuchet",blueAndGold:"Trebuchet",blueSteel:"Trebuchet",darkscheme:"Trebuchet",twoTone:"Trebuchet",pastel:"Trebuchet",peachy:"Verdana"},fontSize:a,padding:{default:r,orange:r,citrus:r,ketchupAndMustard:r,lemonade:r,forest:r,watermelon:r,area51:r,polar:r,glowInTheDark:r,bubblegum:r,millennial:r,robot:r,classic:t.CLASSIC_TEXT_INPUT_PADDING="5px",coralReef:r,mintChip:r,lavender:r,cherryVanilla:r,berryPatch:r,cucumber:r,crushedVelvet:r,playtime:r,underTheSea:r,blueAndGold:r,blueSteel:r,darkscheme:r,twoTone:r,pastel:r,peachy:r}},dropdown:{backgroundColor:{type:"color",default:"#FFFFFF",orange:"#FFFFFF",citrus:"#F7EC60",ketchupAndMustard:"#F9DD54",lemonade:"#5BB7E7",forest:"#A46C15",watermelon:"#FF8660",area51:"#362F49",polar:"#EFFAFF",glowInTheDark:"#D9FFD9",bubblegum:"#FF7CD0",millennial:"#FFFFFF",robot:"#B2D9EB",classic:"#1ABC9C",coralReef:"#FC766A",mintChip:"#A77D72",lavender:"#8875B1",cherryVanilla:"#A51928",berryPatch:"#DF6589",cucumber:"#52C794",crushedVelvet:"#69396D",playtime:"#6AA4FC",underTheSea:"#096A6A",blueAndGold:"#FFD662",blueSteel:"#353B51",darkscheme:"#B22D2D",twoTone:"#000000",pastel:"#C87FDB",peachy:"#FFA351"},textColor:{type:"color",default:"#4D575F",orange:"#000000",citrus:"#000000",ketchupAndMustard:"#193A55",lemonade:"#FFFFFF",forest:"#FFFFFF",watermelon:"#151F00",area51:"#D8FFA7",polar:"#0094CA",glowInTheDark:"#000000",bubblegum:"#FFFFFF",millennial:"#442C2E",robot:"#353C42",classic:"#FFFFFF",coralReef:"#FDF995",mintChip:"#E9FCFF",lavender:"#FFFFFF",cherryVanilla:"#FFF5F5",berryPatch:"#FFFFFF",cucumber:"#EFFFF9",crushedVelvet:"#FFFFFF",playtime:"#FFFFFF",underTheSea:"#FFFFFF",blueAndGold:"#00539C",blueSteel:"#FFFFFF",darkscheme:"#FFFFFF",twoTone:"#FFFFFF",pastel:"#FFFFFF",peachy:"#FFFFFF"},borderColor:{type:"color",default:"#000000",orange:"#000000",citrus:"#69883D",ketchupAndMustard:"#193A55",lemonade:"#ACCFDE",forest:"#482F08",watermelon:"#578B2E",area51:"#B394FF",polar:"#ACCFDE",glowInTheDark:"#5EFF5E",bubblegum:"#FFFFFF",millennial:"#442C2E",robot:"#80A7B9",classic:"#000000",coralReef:"#D75D52",mintChip:"#B1624E",lavender:"#CCB9E1",cherryVanilla:"#CECECC",berryPatch:"#FFDBE5",cucumber:"#EFFFF9",crushedVelvet:"#2D0A30",playtime:"#4B85DD",underTheSea:"#95DBE5",blueAndGold:"#D1D1D1",blueSteel:"#71788E",darkscheme:"#000000",twoTone:"#000000",pastel:"#D1F3DF",peachy:"#DF6C06"},borderRadius:{default:4,orange:0,citrus:2,ketchupAndMustard:5,lemonade:6,forest:6,watermelon:20,area51:10,polar:20,glowInTheDark:10,bubblegum:20,millennial:20,robot:0,classic:0,coralReef:10,mintChip:10,lavender:10,cherryVanilla:25,berryPatch:30,cucumber:30,crushedVelvet:30,playtime:10,underTheSea:30,blueAndGold:30,blueSteel:30,darkscheme:30,twoTone:30,pastel:30,peachy:30},borderWidth:{default:1,orange:2,citrus:2,ketchupAndMustard:0,lemonade:0,forest:2,watermelon:4,area51:2,polar:2,glowInTheDark:2,bubblegum:2,millennial:0,robot:2,classic:0,coralReef:0,mintChip:0,lavender:0,cherryVanilla:0,berryPatch:0,cucumber:1,crushedVelvet:1,playtime:2,underTheSea:0,blueAndGold:0,blueSteel:0,darkscheme:0,twoTone:0,pastel:0,peachy:0},fontFamily:{default:"Arial",orange:"Verdana",citrus:"Georgia",ketchupAndMustard:"Georgia",lemonade:"Arial",forest:"Verdana",watermelon:"Georgia",area51:"Arial Black",polar:"Verdana",glowInTheDark:"Tahoma",bubblegum:"Georgia",millennial:"Verdana",robot:"Arial Black",classic:"Arial",coralReef:"Arial",mintChip:"Verdana",lavender:"Georgia",cherryVanilla:"Trebuchet",berryPatch:"Trebuchet",cucumber:"Verdana",crushedVelvet:"Verdana",playtime:"Verdana",underTheSea:"Trebuchet",blueAndGold:"Trebuchet",blueSteel:"Trebuchet",darkscheme:"Trebuchet",twoTone:"Trebuchet",pastel:"Trebuchet",peachy:"Verdana"},fontSize:a,padding:{default:i,orange:i,citrus:i,ketchupAndMustard:i,lemonade:i,forest:i,watermelon:i,area51:i,polar:i,glowInTheDark:i,bubblegum:i,millennial:i,robot:i,classic:t.CLASSIC_DROPDOWN_PADDING="0 30px 0 10px",coralReef:i,mintChip:i,lavender:i,cherryVanilla:i,berryPatch:i,cucumber:i,crushedVelvet:i,playtime:i,underTheSea:i,blueAndGold:i,blueSteel:i,darkscheme:i,twoTone:i,pastel:i,peachy:i}},photoSelect:{backgroundColor:{type:"color",default:"#FFA400",orange:"#4BC6D0",citrus:"#F7EC60",ketchupAndMustard:"#F9DD54",lemonade:"#5BB7E7",forest:"#A46C15",watermelon:"#FF8660",area51:"#362F49",polar:"#EFFAFF",glowInTheDark:"#D9FFD9",bubblegum:"#FF7CD0",millennial:"#442C2E",robot:"#B2D9EB",classic:"#1ABC9C",coralReef:"#FC766A",mintChip:"#A77D72",lavender:"#8875B1",cherryVanilla:"#A51928",berryPatch:"#DF6589",cucumber:"#52C794",crushedVelvet:"#69396D",playtime:"#FF7B70",underTheSea:"#096A6A",blueAndGold:"#FFD662",blueSteel:"#353B51",darkscheme:"#B22D2D",twoTone:"#000000",pastel:"#C87FDB",peachy:"#FFA351"},textColor:{type:"color",default:"#FFFFFF",orange:"#FFFFFF",citrus:"#000000",ketchupAndMustard:"#193A55",lemonade:"#FFFFFF",forest:"#FFFFFF",watermelon:"#151F00",area51:"#D8FFA7",polar:"#0094CA",glowInTheDark:"#000000",bubblegum:"#FFFFFF",millennial:"#FFFFFF",robot:"#353C42",classic:"#FFFFFF",coralReef:"#FDF995",mintChip:"#E9FCFF",lavender:"#FFFFFF",cherryVanilla:"#FFF5F5",berryPatch:"#FFFFFF",cucumber:"#FFFFFF",crushedVelvet:"#FFFFFF",playtime:"#FFFFFF",underTheSea:"#FFFFFF",blueAndGold:"#00539C",blueSteel:"#FFFFFF",darkscheme:"#FFFFFF",twoTone:"#FFFFFF",pastel:"#FFFFFF",peachy:"#FFFFFF"},borderColor:{type:"color",default:"#4D575F",orange:"#FFFFFF",citrus:"#69883D",ketchupAndMustard:"#193A55",lemonade:"#ACCFDE",forest:"#482F08",watermelon:"#578B2E",area51:"#B394FF",polar:"#ACCFDE",glowInTheDark:"#5EFF5E",bubblegum:"#FFFFFF",millennial:"#FFFFFF",robot:"#80A7B9",classic:"#000000",coralReef:"#FDF995",mintChip:"#D75D52",lavender:"#CCB9E1",cherryVanilla:"#CECECC",berryPatch:"#FFDBE5",cucumber:"#EFFFF9",crushedVelvet:"#2D0A30",playtime:"#DA5145",underTheSea:"#95DBE5",blueAndGold:"#D1D1D1",blueSteel:"#71788E",darkscheme:"#000000",twoTone:"#000000",pastel:"#D1F3DF",peachy:"#DF6C06"},borderRadius:{default:4,orange:0,citrus:2,ketchupAndMustard:5,lemonade:6,forest:6,watermelon:20,area51:10,polar:20,glowInTheDark:10,bubblegum:20,millennial:20,robot:0,classic:0,coralReef:10,mintChip:10,lavender:10,cherryVanilla:25,berryPatch:30,cucumber:30,crushedVelvet:30,playtime:10,underTheSea:30,blueAndGold:30,blueSteel:30,darkscheme:30,twoTone:30,pastel:30,peachy:30},borderWidth:{default:1,orange:2,citrus:2,ketchupAndMustard:0,lemonade:0,forest:2,watermelon:4,area51:2,polar:2,glowInTheDark:2,bubblegum:2,millennial:0,robot:2,classic:0,coralReef:2,mintChip:0,lavender:0,cherryVanilla:0,berryPatch:0,cucumber:1,crushedVelvet:2,playtime:2,underTheSea:0,blueAndGold:2,blueSteel:2,darkscheme:0,twoTone:0,pastel:0,peachy:0}},button:{backgroundColor:{type:"color",default:"#FFA400",orange:"#4BC6D0",citrus:"#F7EC60",ketchupAndMustard:"#F9DD54",lemonade:"#5BB7E7",forest:"#A46C15",watermelon:"#FF8660",area51:"#362F49",polar:"#EFFAFF",glowInTheDark:"#D9FFD9",bubblegum:"#FF7CD0",millennial:"#442C2E",robot:"#B2D9EB",classic:"#1ABC9C",coralReef:"#FC766A",mintChip:"#A77D72",lavender:"#8875B1",cherryVanilla:"#A51928",berryPatch:"#DF6589",cucumber:"#52C794",crushedVelvet:"#69396D",playtime:"#FF7B70",underTheSea:"#096A6A",blueAndGold:"#FFD662",blueSteel:"#353B51",darkscheme:"#B22D2D",twoTone:"#000000",pastel:"#C87FDB",peachy:"#FFA351"},textColor:{type:"color",default:"#FFFFFF",orange:"#FFFFFF",citrus:"#000000",ketchupAndMustard:"#193A55",lemonade:"#FFFFFF",forest:"#FFFFFF",watermelon:"#151F00",area51:"#D8FFA7",polar:"#0094CA",glowInTheDark:"#000000",bubblegum:"#FFFFFF",millennial:"#FFFFFF",robot:"#353C42",classic:"#FFFFFF",coralReef:"#FDF995",mintChip:"#E9FCFF",lavender:"#FFFFFF",cherryVanilla:"#FFF5F5",berryPatch:"#FFFFFF",cucumber:"#FFFFFF",crushedVelvet:"#FFFFFF",playtime:"#FFFFFF",underTheSea:"#FFFFFF",blueAndGold:"#00539C",blueSteel:"#FFFFFF",darkscheme:"#FFFFFF",twoTone:"#FFFFFF",pastel:"#FFFFFF",peachy:"#FFFFFF"},borderColor:{type:"color",default:"#4D575F",orange:"#FFFFFF",citrus:"#69883D",ketchupAndMustard:"#193A55",lemonade:"#ACCFDE",forest:"#482F08",watermelon:"#578B2E",area51:"#B394FF",polar:"#ACCFDE",glowInTheDark:"#5EFF5E",bubblegum:"#FFFFFF",millennial:"#FFFFFF",robot:"#80A7B9",classic:"#000000",coralReef:"#FDF995",mintChip:"#D75D52",lavender:"#CCB9E1",cherryVanilla:"#CECECC",berryPatch:"#FFDBE5",cucumber:"#EFFFF9",crushedVelvet:"#2D0A30",playtime:"#DA5145",underTheSea:"#95DBE5",blueAndGold:"#D1D1D1",blueSteel:"#71788E",darkscheme:"#000000",twoTone:"#000000",pastel:"#D1F3DF",peachy:"#DF6C06"},borderRadius:{default:4,orange:0,citrus:2,ketchupAndMustard:5,lemonade:6,forest:6,watermelon:20,area51:10,polar:20,glowInTheDark:10,bubblegum:20,millennial:20,robot:0,classic:0,coralReef:10,mintChip:10,lavender:10,cherryVanilla:25,berryPatch:30,cucumber:30,crushedVelvet:30,playtime:10,underTheSea:30,blueAndGold:30,blueSteel:30,darkscheme:30,twoTone:30,pastel:30,peachy:30},borderWidth:{default:1,orange:2,citrus:2,ketchupAndMustard:0,lemonade:0,forest:2,watermelon:4,area51:2,polar:2,glowInTheDark:2,bubblegum:2,millennial:0,robot:2,classic:0,coralReef:2,mintChip:0,lavender:0,cherryVanilla:0,berryPatch:0,cucumber:1,crushedVelvet:2,playtime:2,underTheSea:0,blueAndGold:2,blueSteel:2,darkscheme:0,twoTone:0,pastel:0,peachy:0},fontFamily:{default:"Arial Black",orange:"Verdana",citrus:"Georgia",ketchupAndMustard:"Georgia",lemonade:"Arial",forest:"Verdana",watermelon:"Georgia",area51:"Arial Black",polar:"Verdana",glowInTheDark:"Tahoma",bubblegum:"Georgia",millennial:"Verdana",robot:"Arial Black",classic:"Arial",coralReef:"Arial Black",mintChip:"Verdana",lavender:"Georgia",cherryVanilla:"Trebuchet",berryPatch:"Trebuchet",cucumber:"Verdana",crushedVelvet:"Verdana",playtime:"Verdana",underTheSea:"Trebuchet",blueAndGold:"Trebuchet",blueSteel:"Trebuchet",darkscheme:"Trebuchet",twoTone:"Trebuchet",pastel:"Trebuchet",peachy:"Verdana"},fontSize:{default:15,orange:15,citrus:15,ketchupAndMustard:15,lemonade:15,forest:15,watermelon:15,area51:15,polar:15,glowInTheDark:15,bubblegum:15,millennial:15,robot:15,classic:14,coralReef:15,mintChip:15,lavender:15,cherryVanilla:15,berryPatch:15,cucumber:15,crushedVelvet:15,playtime:15,underTheSea:15,blueAndGold:15,blueSteel:15,darkscheme:15,twoTone:15,pastel:15,peachy:15}},textArea:{backgroundColor:{type:"color",default:"#F2F2F2",orange:"#4D3100",citrus:"#FFFFFF",ketchupAndMustard:"#FFFFFF",lemonade:"#FFFFFF",forest:"#FFD18A",watermelon:"#E2F0AA",area51:"#221D30",polar:"#0094CA",glowInTheDark:"#262B2F",bubblegum:"#FFFFFF",millennial:"#FEEAE6",robot:"#F5F5F6",classic:"#FFFFFF",coralReef:"#FDF995",mintChip:"#4EB4C2",lavender:"#CCB9E1",cherryVanilla:"#F1E2D4",berryPatch:"#FFDBE6",cucumber:"#EFFFF9",crushedVelvet:"#2D0A30",playtime:"#3EE061",underTheSea:"#95DBE5",blueAndGold:"#D1D1D1",blueSteel:"#71788E",darkscheme:"#707070",twoTone:"#FFFFFF",pastel:"#D1F3DF",peachy:"#FBEFB4"},textColor:{type:"color",default:"#4D575F",orange:"#FFFFFF",citrus:"#000000",ketchupAndMustard:"#193A55",lemonade:"#00A8FF",forest:"#482F08",watermelon:"#151F00",area51:"#C4ABFF",polar:"#EFFAFF",glowInTheDark:"#D9FFD9",bubblegum:"#000000",millennial:"#442C2E",robot:"#353C42",classic:"#000000",coralReef:"#5BA0ED",mintChip:"#E5F4F6",lavender:"#5E4D83",cherryVanilla:"#A51928",berryPatch:"#3C1053",cucumber:"#209864",crushedVelvet:"#FFFFFF",playtime:"#FFFFFF",underTheSea:"#096A6A",blueAndGold:"#00539C",blueSteel:"#FFFFFF",darkscheme:"#FFFFFF",twoTone:"#000000",pastel:"#A065AF",peachy:"#DF6C06"},borderColor:{type:"color",default:"#FFFFFF",orange:"#FFFFFF",citrus:"#69883D",ketchupAndMustard:"#193A55",lemonade:"#193A55",forest:"#000000",watermelon:"#578B2E",area51:"#C4ABFF",polar:"#FFFFFF",glowInTheDark:"#FFFFFF",bubblegum:"#000000",millennial:"#FFFFFF",robot:"#80A7B9",classic:"rgb(153, 153, 153)",coralReef:"#D75D52",mintChip:"#D75D52",lavender:"#CECECC",cherryVanilla:"#CECECC",berryPatch:"#CECECC",cucumber:"#209864",crushedVelvet:"#69396D",playtime:"#18BC3C",underTheSea:"#096A6A",blueAndGold:"#FFD662",blueSteel:"#4B526B",darkscheme:"#000000",twoTone:"#000000",pastel:"#C87FDB",peachy:"#CECECC"},borderRadius:{default:2,orange:2,citrus:4,ketchupAndMustard:5,lemonade:6,forest:5,watermelon:20,area51:20,polar:8,glowInTheDark:0,bubblegum:8,millennial:8,robot:0,classic:0,coralReef:10,mintChip:10,lavender:10,cherryVanilla:5,berryPatch:30,cucumber:30,crushedVelvet:5,playtime:10,underTheSea:30,blueAndGold:30,blueSteel:30,darkscheme:30,twoTone:30,pastel:30,peachy:30},borderWidth:{default:1,orange:0,citrus:0,ketchupAndMustard:2,lemonade:0,forest:0,watermelon:0,area51:0,polar:2,glowInTheDark:0,bubblegum:0,millennial:0,robot:1,classic:1,coralReef:0,mintChip:0,lavender:0,cherryVanilla:0,berryPatch:0,cucumber:0,crushedVelvet:1,playtime:0,underTheSea:0,blueAndGold:0,blueSteel:0,darkscheme:1,twoTone:1,pastel:0,peachy:0},fontFamily:{default:"Arial",orange:"Arial",citrus:"Palatino",ketchupAndMustard:"Tahoma",lemonade:"Arial",forest:"Arial",watermelon:"Georgia",area51:"Trebuchet",polar:"Arial",glowInTheDark:"Tahoma",bubblegum:"Trebuchet",millennial:"Arial",robot:"Tahoma",classic:"Arial",coralReef:"Arial",mintChip:"Verdana",lavender:"Georgia",cherryVanilla:"Trebuchet",berryPatch:"Trebuchet",cucumber:"Verdana",crushedVelvet:"Verdana",playtime:"Verdana",underTheSea:"Trebuchet",blueAndGold:"Trebuchet",blueSteel:"Trebuchet",darkscheme:"Trebuchet",twoTone:"Trebuchet",pastel:"Trebuchet",peachy:"Verdana"},fontSize:a,padding:{default:o,orange:o,citrus:o,ketchupAndMustard:o,lemonade:o,forest:o,watermelon:o,area51:o,polar:o,glowInTheDark:o,bubblegum:o,millennial:o,robot:o,classic:t.CLASSIC_TEXT_AREA_PADDING="5px",coralReef:o,mintChip:o,lavender:o,cherryVanilla:o,berryPatch:o,cucumber:o,crushedVelvet:o,playtime:o,underTheSea:o,blueAndGold:o,blueSteel:o,darkscheme:o,twoTone:o,pastel:o,peachy:o}}};t.default=s},3581:(e,t,n)=>{"use strict";var r=n(142),i=n(33);function o(e,t){var n=e.split(":");if(n.length<2)return e===t;var r=t.split(":"),i=Number(r[1]);return isNaN(i)&&(i=0),n[0]===r[0]&&n[1]>=i}e.exports.getResultsFromLog=function(e,t){t=t||[];var n={testResult:r.TestResults.ALL_PASS};return e.forEach((function(e,a){var l,s=r.TestResults.LOG_CONDITION_FAIL;switch(e.minTimes=e.minTimes||0,e.maxTimes=i.valueOr(e.maxTimes,1/0),e.matchType){case"exact":l=!0;case"inexact":for(var u=0,c=0,d=0;d<t.length;d++)if(o(t[d],e.entries[u])){if(++u>=e.entries.length&&(u=0,++c>=e.minTimes&&e.maxTimes===1/0||c>e.maxTimes))break}else l&&(u=0);c>=e.minTimes&&c<=e.maxTimes&&(s=r.TestResults.ALL_PASS);break;default:s=r.TestResults.ALL_PASS}s<n.testResult&&(n.testResult=s,n.message=e.message)})),n}},1962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),i=l(n(166)),o=l(n(1)),a=l(n(79));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var c,d,f,p,h=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,u(n,r),t.prototype.render=function(){var e=this.props.isPending?[this.props.style,this.props.pendingStyle]:this.props.style;return o.default.createElement("button",{type:"button",id:this.props.id,style:e,className:this.props.className,onClick:this.props.isPending?function(){}:this.props.onClick},this.props.isPending?o.default.createElement("span",null,this.props.pendingText," ",o.default.createElement(a.default,{icon:"spinner",className:"fa-spin"})):this.props.text)},t}(o.default.Component);c=h,d="propTypes",f={className:r.default.string,id:r.default.string,isPending:r.default.bool.isRequired,onClick:r.default.func.isRequired,pendingStyle:r.default.any,pendingText:r.default.string.isRequired,style:r.default.any,text:r.default.string.isRequired},p=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(d,"string"),(d="symbol"==s(p)?p:p+"")in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f;t.default=(0,i.default)(h);e.exports=t.default},2921:(e,t)=>{"use strict";function n(e){this.message=e,this.name=this.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,e.exports=t.default},3585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.commands=void 0;var i,o=(i=n(34))&&i.__esModule?i:{default:i},a=n(3586);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new k(r||[]);return o(a,"_invoke",{value:P(e,n,l)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",g="suspendedYield",m="executing",b="completed",y={};function v(){}function _(){}function E(){}var w={};d(w,s,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(D([])));C&&C!==n&&i.call(C,s)&&(w=C);var S=E.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,a,l,s){var u=p(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function P(t,n,r){var i=h;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===b){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?b:g,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=b,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return _.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:_,configurable:!0}),_.displayName=d(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},O(T.prototype),d(T.prototype,u,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new T(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),d(S,c,"Generator"),d(S,s,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){var i;return i=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==r(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}t.commands={getPrediction:function(e){return(t=l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){o.default.ajax({url:"/api/v1/ml_models/"+e.modelId,method:"GET"}).then((function(n){var r=u(u({},n),{},{testData:e.testValues}),i=(0,a.predict)(r);return e.callback(i),t()})).fail((function(t,r){return e.callback("Error: prediction failed"),n({message:"An error occurred"})}))})));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){d(o,r,i,a,l,"next",e)}function l(e){d(o,r,i,a,l,"throw",e)}a(void 0)}))})();var t}}},3174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnsupportedBrowserError=t.ConnectionFailedError=t.ConnectionCanceledError=void 0,t.wrapKnownMakerErrors=function(e){if(e.message.includes("A timeout occurred while connecting to the Board"))return new s(e.message);return e};var r,i=(r=n(2921))&&r.__esModule?r:{default:r};function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var l=t.default=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(i.default),s=(t.UnsupportedBrowserError=function(e){function t(){return e.call(this,"Unsupported Browser.")||this}return o(t,e),t}(l),t.ConnectionCanceledError=function(e){function t(){return e.call(this,"Connection attempt canceled.")||this}return o(t,e),t}(l),t.ConnectionFailedError=function(e){function t(t){var n;return(n=e.call(this,"Failed to establish a board connection.")||this).reason=t,n}return o(t,e),t}(l))},2251:(e,t,n)=>{"use strict";var r=n(788).Buffer;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(453),a=n(1995);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new k(r||[]);return o(a,"_invoke",{value:P(e,n,l)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",g="suspendedYield",m="executing",b="completed",y={};function v(){}function _(){}function E(){}var w={};d(w,s,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(D([])));C&&C!==n&&r.call(C,s)&&(w=C);var S=E.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,a,l,s){var u=p(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==i(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function P(t,n,r){var i=h;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===b){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?b:g,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=b,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(i(t)+" is not iterable")}return _.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:_,configurable:!0}),_.displayName=d(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},O(T.prototype),d(T.prototype,u,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new T(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),d(S,c,"Generator"),d(S,s,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,l,"next",e)}function l(e){s(o,r,i,a,l,"throw",e)}a(void 0)}))}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}t.default=function(e){function t(t){var n;if((n=e.call(this)||this).port=t,n.portOpen=!1,t){var r=t.getInfo();n.vendorId=r.usbVendorId,n.productId=r.usbProductId}return n.writer=null,n.reader=null,n}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,c(n,i);var o=t.prototype;return o.list=function(){},o.openMBPort=function(){var e=u(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.portOpen){e.next=2;break}throw new Error("Requested port is already open.");case 2:return e.prev=2,e.next=5,this.port.open({baudRate:a.SERIAL_BAUD});case 5:this.portOpen=!0,this.writer=this.port.writable.getWriter(),this.reader=this.port.readable.getReader(),this.emit("open"),this.readLoop(),e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(2),e.abrupt("return",Promise.reject("Failure to open port: "+e.t0));case 15:case"end":return e.stop()}}),e,this,[[2,12]])})));return function(){return e.apply(this,arguments)}}(),o.openCPPort=function(){var e=u(l().mark((function e(){var t=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.portOpen){e.next=2;break}throw new Error("Requested port is already open.");case 2:this.port.open({baudRate:a.SERIAL_BAUD}).then((function(){t.portOpen=!0,t.writer=t.port.writable.getWriter(),t.reader=t.port.readable.getReader(),t.emit("open"),t.readLoop()})).catch((function(e){return Promise.reject("Failure to open port: "+e)}));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),o.readLoop=function(){var e=u(l().mark((function e(){var t,n,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this.port.readable)||void 0===t||!t.locked){e.next=19;break}return e.prev=1,e.next=4,this.reader.read();case 4:if(n=e.sent,i=n.value,!n.done){e.next=10;break}return this.reader.releaseLock(),e.abrupt("break",19);case 10:this.emit("data",r.from(i)),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),console.error(e.t0),19===e.t0.code&&this.emit("disconnect");case 17:e.next=0;break;case 19:case"end":return e.stop()}}),e,this,[[1,13]])})));return function(){return e.apply(this,arguments)}}(),o.write=function(e,t,n){if(!this.portOpen)throw new Error("Requested port cannot be written to until it is open");return e=e instanceof ArrayBuffer?e:new Uint8Array(e),this.writer.write(e).then((function(){return n?n():null})).catch((function(e){return Promise.reject("Failure to write to port: "+e)}))},o.close=function(){var e=u(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.portOpen){e.next=2;break}return e.abrupt("return");case 2:if(!this.port.readable||!this.port.readable.locked){e.next=7;break}return e.next=5,this.reader.cancel();case 5:return e.next=7,this.reader.releaseLock();case 7:return e.next=9,this.writer.releaseLock();case 9:return e.next=11,this.port.close();case 11:this.portOpen=!1;case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t}(o.EventEmitter);e.exports=t.default},2919:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n(453),a=(i=n(51))&&i.__esModule?i:{default:i},l=n(1107);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){var i;return i=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==r(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}t.default=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.connect=function(){return Promise.resolve()},n.destroy=function(){return Promise.resolve()},n.reset=function(){},n.installOnInterpreter=function(e){var t={Led:p,Board:f,NeoPixel:h,PlaygroundButton:_,Switch:m,Piezo:g,Sensor:b,Thermometer:y,Pin:f,Accelerometer:v,Animation:f,Servo:f,TouchSensor:f};for(var n in t){var r=t[n];e.addCustomMarshalObject({instance:r}),e.createGlobalProperty(n,r)}var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({board:new f,colorLeds:a.default.range(l.N_COLOR_LEDS).map((function(){return new h})),led:new p,toggleSwitch:new m,buzzer:new g,soundSensor:new b,lightSensor:new b,tempSensor:new y,accelerometer:new v,buttonL:new _,buttonR:new _},l.J5_CONSTANTS);for(var o in i){var c=i[o];e.createGlobalProperty(o,c)}},n.pinMode=function(e,t){},n.digitalWrite=function(e,t){},n.digitalRead=function(e,t){setTimeout((function(){return t(0)}),0)},n.analogWrite=function(e,t){},n.analogRead=function(e,t){setTimeout((function(){return t(0)}),0)},n.boardConnected=function(){return!1},n.createLed=function(e){return new p},n.createButton=function(e){return new _},t}(o.EventEmitter);var f=function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t}(o.EventEmitter),p=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.on=function(){},n.off=function(){},n.blink=function(){},n.toggle=function(){},n.pulse=function(){},t}(f),h=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.stop=function(){},n.intensity=function(){},n.color=function(){},t}(p),g=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.frequency=function(){},n.note=function(){},n.stop=function(){},n.play=function(){},n.playNotes=function(){},n.playSong=function(){},t}(f),m=function(e){function t(){var t;return(t=e.call(this)||this).isOpen=!1,t}return c(t,e),t}(f),b=function(e){function t(){var t;return(t=e.call(this)||this).value=0,t.threshold=0,t}c(t,e);var n=t.prototype;return n.start=function(){},n.setScale=function(){},t}(f),y=function(e){function t(){var t;return(t=e.call(this)||this).F=32,t.C=0,t}return c(t,e),t}(f),v=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.start=function(){},n.getAcceleration=function(){return 0},n.getOrientation=function(){return 0},t}(f),_=function(e){function t(){var t;return(t=e.call(this)||this).isPressed=!1,t.holdtime=0,t}return c(t,e),t}(f);e.exports=t.default},2920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(453),i=n(3583);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}t.default=function(e){function t(){var t;return(t=e.call(this)||this).boardClient_=new i.MBFirmataClientStub,t}o(t,e);var n=t.prototype;return n.connect=function(){return Promise.resolve()},n.destroy=function(){return Promise.resolve()},n.reset=function(){},n.openWebSerial=function(){},n.installOnInterpreter=function(e){var t={MicroBitButton:f,LedScreen:s,Accelerometer:d,MicroBitThermometer:c,Compass:p,LightSensor:u,ExternalButton:g,ExternalLed:h,CapacitiveTouchSensor:m};for(var n in t){var r=t[n];e.addCustomMarshalObject({instance:r}),e.createGlobalProperty(n,r)}var i={buttonA:new f,buttonB:new f,ledScreen:new s,tempSensor:new c,accelerometer:new d,lightSensor:new u,compass:new p,board:new b};for(var o in i){var a=i[o];e.createGlobalProperty(o,a)}},n.pinMode=function(e,t){},n.digitalWrite=function(e,t){},n.digitalRead=function(e,t){setTimeout((function(){return t(0)}),0)},n.analogWrite=function(e,t){},n.analogRead=function(e,t){setTimeout((function(){return t(0)}),0)},n.boardConnected=function(){return!1},n.createLed=function(e){return new h},n.createButton=function(e){return new g},n.createCapacitiveTouchSensor=function(){return new m},t}(r.EventEmitter);var l=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(r.EventEmitter),s=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.on=function(){},n.off=function(){},n.toggle=function(){},n.clear=function(){},n.display=function(){},n.scrollNumber=function(){},n.scrollString=function(){},t}(l),u=function(e){function t(){var t;return(t=e.call(this)||this).value=0,t.threshold=0,t}o(t,e);var n=t.prototype;return n.start=function(){},n.setScale=function(){},t}(l),c=function(e){function t(){var t;return(t=e.call(this)||this).F=32,t.C=0,t}return o(t,e),t}(l),d=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.start=function(){},n.getAcceleration=function(){return 0},n.getOrientation=function(){return 0},t}(l),f=function(e){function t(){var t;return(t=e.call(this)||this).isPressed=!1,t.holdtime=0,t}return o(t,e),t}(l),p=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.start=function(){},n.getHeading=function(){},t}(l),h=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.on=function(){},n.off=function(){},n.blink=function(){},n.toggle=function(){},n.pulse=function(){},t}(l),g=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(f),m=function(e){function t(){var t;return(t=e.call(this)||this).isPressed=!1,t}return o(t,e),t}(l),b=function(){};e.exports=t.default},2252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r,i=(r=n(1744))&&r.__esModule?r:{default:r};n(33);var o=n(1107);function a(e){var t=this;e.pullup=o.EXTERNAL_PINS.includes(e.pin),i.default.Button.call(this,e),Object.defineProperty(this,"isPressed",{get:function(){return 1===t.value}})}a.inherits(i.default.Button),e.exports=t.default},2464:(e,t,n)=>{"use strict";var r=n(107);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=m(n(1744)),a=n(453),l=m(n(2147)),s=m(n(51)),u=m(n(2115)),c=n(1995),d=n(2314),f=m(n(2252)),p=m(n(2253)),h=n(3169),g=n(1107);function m(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){var r;return r=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==i(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}r.hrtime=n(2582);var E={A0:12,A1:6,A2:9,A3:10,A4:3,A5:2,A6:0,A7:1};t.default=function(e){function t(t){var n;return(n=e.call(this)||this).port_=t,n.serialPort_=null,n.fiveBoard_=null,n.prewiredComponents_=null,n.dynamicComponents_=[],n.boardType_=c.BOARD_TYPE.OTHER,n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,_(n,r);var i=t.prototype;return i.connect=function(){var e=this;return Promise.resolve().then((function(){return e.connectToFirmware()})).then((function(){return e.initializeComponents()})).then((function(){return e.initializeEventForwarding()}))},i.connectToFirmware=function(){var e=this;return new Promise((function(n,r){t.openWebSerial(e.port_).then((function(t){e.initializePlaygroundAndBoard(t,n,r)}))}))},i.initializePlaygroundAndBoard=function(e,n,r){var i=this,a=t.makePlaygroundTransport(e),l=new o.default.Board({io:a,repl:!1,debug:!1});l.once("ready",(function(){i.serialPort_=e,i.fiveBoard_=l,i.fiveBoard_.samplingInterval(100),i.boardType_=(0,c.detectBoardTypeFromPort)(i.port_),i.boardType_===c.BOARD_TYPE.EXPRESS&&(i.fiveBoard_.isExpressBoard=!0),n()})),l.on("error",r),a.on("error",r)},i.detectFirmwareVersion=function(e){e.queryFirmware((function(){console.log(e.firmware.version.major+"."+e.firmware.version.minor)}))},i.initializeComponents=function(){var e=this;if(!this.fiveBoard_)throw new Error("Cannot initialize components: Not connected to board firmware.");return(0,h.createCircuitPlaygroundComponents)(this.fiveBoard_).then((function(t){e.prewiredComponents_=y(y({board:e.fiveBoard_},t),g.J5_CONSTANTS)}))},i.initializeEventForwarding=function(){var e=this;if(!this.fiveBoard_)throw new Error("Cannot initialize event forwarding: Not connected to board firmware.");this.fiveBoard_.on("disconnect",(function(){return e.emit("disconnect")}))},i.enableComponents=function(){this.prewiredComponents_&&(0,h.enableCircuitPlaygroundComponents)(this.prewiredComponents_)},i.resetDynamicComponents=function(){this.dynamicComponents_.forEach((function(e){if(e instanceof p.default)e.off();else if(!(e instanceof o.default.Button))throw new Error("Added an unsupported component to dynamic components")})),this.dynamicComponents_.length=0},i.destroy=function(){var e=this;return this.resetDynamicComponents(),this.prewiredComponents_&&(0,h.cleanupCircuitPlaygroundComponents)(this.prewiredComponents_,!0),this.prewiredComponents_=null,this.fiveBoard_&&this.fiveBoard_.io.reset(),this.fiveBoard_=null,l.default.SYSEX_RESPONSE&&delete l.default.SYSEX_RESPONSE[g.CP_COMMAND],delete u.default.hasRegisteredSysexResponse,new Promise((function(t){setTimeout((function(){e.serialPort_&&"function"==typeof e.serialPort_.close&&e.serialPort_.close(),e.serialPort_=null,t()}),50)}))},i.installOnInterpreter=function(e){var t=this;Object.keys(h.componentConstructors).forEach((function(t){e.addCustomMarshalObject({instance:h.componentConstructors[t]}),e.createGlobalProperty(t,h.componentConstructors[t])})),Object.keys(this.prewiredComponents_).forEach((function(n){e.createGlobalProperty(n,t.prewiredComponents_[n])}))},i.reset=function(){this.serialPort_&&(this.serialPort_.queue=[]),this.prewiredComponents_&&(0,h.cleanupCircuitPlaygroundComponents)(this.prewiredComponents_,!1),this.resetDynamicComponents()},i.celebrateSuccessfulConnection=function(){var e=this.prewiredComponents_,t=e.buzzer,n=e.colorLeds;function r(e,t){return new Promise((function(r){n.forEach((function(n,r){setTimeout((function(){return e(n)}),t*(r+1))})),setTimeout(r,t*n.length)}))}var i=s.default.sample([{notes:g.SONG_CHARGE,tempo:104},{notes:g.SONG_LEVEL_COMPLETE,tempo:80},{notes:g.SONG_ASCENDING,tempo:180},{notes:g.SONG_CONCLUSION,tempo:130}]);return Promise.resolve().then((function(){return t.play(i.notes,i.tempo)})).then((function(){return r((function(e){return e.color("green")}),80)})).then((function(){return r((function(e){return e.off()}),80)}))},i.mappedPin=function(e){return Object.prototype.hasOwnProperty.call(E,e)?E[e]:e},i.pinMode=function(e,t){this.fiveBoard_.pinMode(this.mappedPin(e),t)},i.digitalWrite=function(e,t){this.fiveBoard_.digitalWrite(this.mappedPin(e),t)},i.digitalRead=function(e,t){this.fiveBoard_.digitalRead(this.mappedPin(e),t)},i.analogWrite=function(e,t){this.fiveBoard_.analogWrite(this.mappedPin(e),t)},i.analogRead=function(e,t){this.fiveBoard_.analogRead(this.mappedPin(e),t)},i.createLed=function(e){e=this.mappedPin(e);var t=new p.default({board:this.fiveBoard_,pin:e});return this.dynamicComponents_.push(t),t},i.createButton=function(e){e=this.mappedPin(e);var t=new f.default({board:this.fiveBoard_,pin:e});return this.dynamicComponents_.push(t),t},i.boardConnected=function(){return!!this.fiveBoard_},t.openWebSerial=function(e){var t=this;return e.openCPPort().then((function(){return t.createPendingQueue(e),e}))},t.createPendingQueue=function(e){if(!(0,d.isChromeOS)()){e.queue=[];var t=!1,n=e.write,r=function r(i){if(i&&e.queue.push(i),!(t||0===e.queue.length||e.queue.length>512)){var o=e.queue.shift();t=!0,n.call(e,o,"binary",(function(){t=!1,0!==e.queue.length&&r()}))}};e.write=function(){return r.apply(void 0,arguments)}}},t.makePlaygroundTransport=function(e){var t=new u.default({port:e});return t.on("open",(function(){t.reportVersion((function(){})),t.queryFirmware((function(){}))})),t},t}(a.EventEmitter);e.exports=t.default},2253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(1744))&&r.__esModule?r:{default:r};function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r);var i=t.prototype;return i.on=function(){return this.stop(),e.prototype.on.call(this)},i.off=function(){return this.stop(),e.prototype.off.call(this)},i.toggle=function(){return this.isOn?e.prototype.off.call(this):e.prototype.on.call(this)},t}(i.default.Led);e.exports=t.default},2465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(1744))&&r.__esModule?r:{default:r};function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r);var i=t.prototype;return i.on=function(){return this.stop(),e.prototype.on.call(this)},i.off=function(){return this.stop(),e.prototype.off.call(this)},i.toggle=function(){return this.isOn?e.prototype.off.call(this):e.prototype.on.call(this)},t}(i.default.Led.RGB);e.exports=t.default},2466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r,i=(r=n(1744))&&r.__esModule?r:{default:r};function o(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=i.default.Piezo).call.apply(e,[this].concat(n))}n(33),o.inherits(i.default.Piezo),o.prototype.play=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;i.default.Piezo.prototype.play.call(this,{song:e.map((function(e){return"string"==typeof e?[e,1/4]:e})),tempo:t})},o.prototype.playNotes=o.prototype.play,o.prototype.playSong=o.prototype.play,o.prototype.stop=function(){i.default.Piezo.prototype.stop.call(this),i.default.Piezo.prototype.off.call(this)},o.prototype.off=o.prototype.stop,e.exports=t.default},3169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanupCircuitPlaygroundComponents=function(e,t){e.colorLeds&&e.colorLeds.forEach((function(e){e.color("white"),e.intensity(100),e.off()}));e.led&&(e.led.intensity(0),e.led.off());e.buzzer&&(e.buzzer.off(),e.buzzer.stop());e.soundSensor&&(e.soundSensor.disable(),e.soundSensor._events={});e.lightSensor&&(e.lightSensor.disable(),e.lightSensor._events={});e.tempSensor&&(e.tempSensor.disable(),e.tempSensor._events={});e.accelerometer&&(e.accelerometer.stop(),e.accelerometer._events={});t&&(delete e.colorLeds,delete e.led,delete e.toggleSwitch,delete e.buzzer,delete e.soundSensor,delete e.lightSensor,delete e.tempSensor,delete e.accelerometer,delete e.buttonL,delete e.buttonR)},t.componentConstructors=void 0,t.createCircuitPlaygroundComponents=function(e){return Promise.all([b(e),y(e),_(e)]).then((function(t){var n,r,i=(r=3,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(n,r)||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.")}()),s=i[0],c=i[1],f=i[2];return{colorLeds:m(e),led:new l.default({board:e,pin:13}),toggleSwitch:new d.default(e),buzzer:new u.default({board:e,pin:5,controller:o.default.Piezo}),soundSensor:s,lightSensor:c,tempSensor:f,accelerometer:E(e),buttonL:new a.default({board:e,pin:4}),buttonR:new a.default({board:e,pin:19})}}))},t.enableCircuitPlaygroundComponents=function(e){e.soundSensor&&e.soundSensor.enable();e.lightSensor&&e.lightSensor.enable();e.tempSensor&&e.tempSensor.enable();e.accelerometer&&e.accelerometer.start()};var r=h(n(1744)),i=h(n(51)),o=h(n(2115)),a=h(n(2252)),l=h(n(2253)),s=h(n(2465)),u=h(n(2466)),c=n(1107),d=h(n(3170)),f=h(n(2467)),p=h(n(2468));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.componentConstructors={Led:l.default,Board:r.default.Board,NeoPixel:s.default,PlaygroundButton:a.default,Switch:d.default,Piezo:u.default,Sensor:r.default.Sensor,Thermometer:r.default.Thermometer,Pin:r.default.Pin,Accelerometer:r.default.Accelerometer,Animation:r.default.Animation,Servo:r.default.Servo,TouchSensor:p.default};function m(e){return i.default.range(c.N_COLOR_LEDS).map((function(t){return function(e,t){return new s.default({board:e,controller:o.default.Pixel,pin:t})}(e,t)}))}function b(e){return new Promise((function(t){var n=new r.default.Sensor({board:e,pin:"A4",freq:100});v(r.default.Board.fmap,n),n.once("data",(function(){return t(n)}))}))}function y(e){return new Promise((function(t){var n=new r.default.Sensor({board:e,pin:"A5",freq:100});v(r.default.Board.fmap,n),n.once("data",(function(){return t(n)}))}))}function v(e,t){t.setScale=function(e,n){t.scale(e,n)}}function _(e){return new Promise((function(t){var n=new r.default.Thermometer({board:e,controller:f.default,pin:"A0",freq:100});n.once("data",(function(){return t(n)}))}))}function E(e){var t=new r.default.Accelerometer({board:e,controller:o.default.Accelerometer});return t.start=function(){t.io.sysexCommand([c.CP_COMMAND,c.CP_ACCEL_STREAM_ON])},t.getOrientation=function(n){if(void 0===n)return[t.getOrientation("x"),t.getOrientation("y"),t.getOrientation("z")];if(e.isExpressBoard){if("pitch"===n)return t.roll;if("roll"===n)return-1*t.pitch}return t[n]},t.getAcceleration=function(e){return void 0===e?[t.getAcceleration("x"),t.getAcceleration("y"),t.getAcceleration("z")]:"total"===e?t.acceleration:t[e]},t}},3170:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.READ_WRITE_PROPERTIES=t.READ_ONLY_PROPERTIES=void 0;var i=l(n(1744)),o=n(453),a=l(n(51));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){var i;return i=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==r(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f=t.READ_ONLY_PROPERTIES=["isOpen","isClosed","board","pin","value"],p=t.READ_WRITE_PROPERTIES=["closeValue","invert","openValue"];t.default=function(e){function t(n){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;r=e.call(this)||this;var o=t._constructFiveSwitchController(n,i),l=void 0,s=(0,a.default)(f).map((function(e){return[e,{get:function(){return o[e]}}]})).fromPairs().value(),c=(0,a.default)(p).map((function(e){return[e,{get:function(){return o[e]},set:function(t){return o[e]=t}}]})).fromPairs().value();return Object.defineProperties(r,u(u({},s),c)),o.on("open",(function(){l===o.closeValue&&(r.emit("open"),r.emit("change",o.openValue)),l=o.openValue})),o.on("close",(function(){l===o.openValue&&(r.emit("close"),r.emit("change",o.closeValue)),l=o.closeValue})),r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r),t._constructFiveSwitchController=function(e,t){return new i.default.Switch({board:e,pin:t})},t}(o.EventEmitter)},2467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o=(r=n(2115))&&r.__esModule?r:{default:r};var a={initialize:{value:function(){o.default.Thermometer.initialize.value.apply(this,arguments);var e={enumerable:!0,get:function(){return i}};Object.prototype.hasOwnProperty.call(this,"raw")||Object.defineProperty(this,"raw",e),Object.prototype.hasOwnProperty.call(this,"value")||Object.defineProperty(this,"value",e)}},toCelsius:{value:function(e){return i=e,o.default.Thermometer.toCelsius.value(e)}}};t.default=a;e.exports=t.default},2468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(453);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}t.default=function(e){function t(t,n){var r;return(r=e.call(this)||this).pinIndex_=t,r.touchpadsController_=n,r.start(),r}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r);var o=t.prototype;return o.start=function(){var e=this;this.removeAllListeners(),this.downHandler=function(t){t.which.includes(e.pinIndex_)&&e.emit("down")},this.touchpadsController_.on("down",this.downHandler),this.upHandler=function(t){t.which.includes(e.pinIndex_)&&e.emit("up")},this.touchpadsController_.on("up",this.upHandler)},o.stop=function(){this.downHandler&&(this.touchpadsController_.removeListener("down",this.downHandler),this.downHandler=null),this.upHandler&&(this.touchpadsController_.removeListener("up",this.upHandler),this.upHandler=null),this.start()},t}(r.EventEmitter);e.exports=t.default},2469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(453),i=n(2583),o=n(1174);function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e){var t=9.81*(e/1e3);return(0,o.roundToHundredth)(t)}t.default=function(e){function t(t){var n;return(n=e.call(this)||this).state={x:0,y:0,z:0},n.board=t,n.board.mb.addFirmataUpdateListener((function(){n.emit("data"),n.state.x===n.board.mb.analogChannel[o.SENSOR_CHANNELS.accelX]&&n.state.y===n.board.mb.analogChannel[o.SENSOR_CHANNELS.accelY]&&n.state.z===n.board.mb.analogChannel[o.SENSOR_CHANNELS.accelZ]||(n.state.x=n.board.mb.analogChannel[o.SENSOR_CHANNELS.accelX],n.state.y=n.board.mb.analogChannel[o.SENSOR_CHANNELS.accelY],n.state.z=n.board.mb.analogChannel[o.SENSOR_CHANNELS.accelZ],n.emit("change"))})),n.board.mb.addFirmataEventListener((function(e,t){i.ACCEL_EVENT_ID===e&&11===t&&n.emit("shake")})),n.start(),Object.defineProperties(n,{roll:{get:function(){var e=Math.atan2(this.x,Math.hypot(this.y,this.z));return(0,o.roundToHundredth)(e*(180/Math.PI))}},pitch:{get:function(){var e=Math.atan2(this.y,Math.hypot(this.x,this.z));return(0,o.roundToHundredth)(e*(180/Math.PI))}},inclination:{get:function(){var e=Math.atan2(this.y,this.x);return(0,o.roundToHundredth)(e*(180/Math.PI))}},x:{get:function(){return l(this.board.mb.analogChannel[o.SENSOR_CHANNELS.accelX])}},y:{get:function(){return l(this.board.mb.analogChannel[o.SENSOR_CHANNELS.accelY])}},z:{get:function(){return l(this.board.mb.analogChannel[o.SENSOR_CHANNELS.accelZ])}},acceleration:{get:function(){return(0,o.roundToHundredth)(Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z))}}}),n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,a(n,r);var s=t.prototype;return s.start=function(){this.board.mb.streamAnalogChannel(o.SENSOR_CHANNELS.accelX),this.board.mb.streamAnalogChannel(o.SENSOR_CHANNELS.accelY),this.board.mb.streamAnalogChannel(o.SENSOR_CHANNELS.accelZ)},s.getOrientation=function(e){switch(e){case"pitch":return this.pitch;case"roll":return this.roll;case"inclination":return this.inclination}},s.getAcceleration=function(e){if(void 0===e)return[this.x,this.y,this.z];if("total"===e)return this.acceleration;switch(e){case"x":return this.x;case"y":return this.y;case"z":return this.z}},s.stop=function(){this.board.mb.stopStreamingAnalogChannel(o.SENSOR_CHANNELS.accelX),this.board.mb.stopStreamingAnalogChannel(o.SENSOR_CHANNELS.accelY),this.board.mb.stopStreamingAnalogChannel(o.SENSOR_CHANNELS.accelZ)},t}(r.EventEmitter);e.exports=t.default},2254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(453);function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}t.default=function(e){function t(t){var n;return(n=e.call(this)||this).board=t,n.connected=!1,n.releaseReading=200,n.connectedDelta=200,n.allowanceDelta=100,n.readSensorTimer=null,n.board.mb.setPinMode(n.board.pin,2),n.board.mb.clearChannelData(),n.start(),Object.defineProperties(n,{isPressed:{get:function(){return this.connected}}}),n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,i(n,r);var o=t.prototype;return o.start=function(){var e=this;this.board.mb.streamAnalogChannel(this.board.pin),this.readSensorTimer=setInterval((function(){var t=e.board.mb.analogChannel[e.board.pin];255!==e.board.mb.analogChannel[e.board.pin]&&(t>e.releaseReading+e.connectedDelta&&!e.connected?(e.emit("down"),e.connected=!0):t<e.releaseReading+e.allowanceDelta&&e.connected&&(e.emit("up"),e.connected=!1))}),50)},o.stop=function(){this.board.mb.stopStreamingAnalogChannel(this.board.pin),clearInterval(this.readSensorTimer),this.readSensorTimer=null},t}(r.EventEmitter);e.exports=t.default},2470:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(453),i=n(1174);function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){function t(t){var n;return(n=e.call(this)||this).state={x:0,y:0},n.board=t,n.board.mb.addFirmataUpdateListener((function(){n.emit("data"),n.state.x===n.board.mb.analogChannel[i.SENSOR_CHANNELS.magX]&&n.state.y===n.board.mb.analogChannel[i.SENSOR_CHANNELS.magY]||(n.state.x=n.board.mb.analogChannel[i.SENSOR_CHANNELS.magX],n.state.y=n.board.mb.analogChannel[i.SENSOR_CHANNELS.magY],n.emit("change"))})),n.start(),Object.defineProperties(n,{heading:{get:function(){var e=this.board.mb.analogChannel[i.SENSOR_CHANNELS.magX],t=this.board.mb.analogChannel[i.SENSOR_CHANNELS.magY],n=Math.round(Math.atan2(t,e)*(180/Math.PI));return n>360?n-360:n<0?n+360:n}}}),n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r);var a=t.prototype;return a.getHeading=function(){return this.heading},a.start=function(){this.board.mb.streamAnalogChannel(i.SENSOR_CHANNELS.magX),this.board.mb.streamAnalogChannel(i.SENSOR_CHANNELS.magY)},a.stop=function(){this.board.mb.stopStreamingAnalogChannel(i.SENSOR_CHANNELS.magX),this.board.mb.stopStreamingAnalogChannel(i.SENSOR_CHANNELS.magY)},t}(r.EventEmitter);e.exports=t.default},2255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(453);function i(e){var t=this;this.board=e,this.board.mb.trackDigitalPin(this.board.pin),this.connect=!1,this.board.mb.trackDigitalComponent(this.board.pin,(function(e,n){t.board.pin===e&&(1!==n||t.connect?2===n&&t.connect&&(t.emit("up"),t.connect=!1):(t.emit("down"),t.connect=!0))})),Object.defineProperties(this,{isPressed:{get:function(){return!this.board.mb.digitalInput[this.board.pin]}}})}n(33),i.inherits(r.EventEmitter),e.exports=t.default},2256:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){function e(e){this.board=e.board,this.pin=e.pin,this.isOn=!1,this.blinkIntervalID=null}var t=e.prototype;return t.on=function(){clearInterval(this.blinkIntervalID),this.setDigitalOutputOn()},t.off=function(){clearInterval(this.blinkIntervalID),this.setDigitalOutputOff()},t.toggle=function(){return this.isOn?this.off():this.on()},t.blink=function(e){var t=this;this.off(),this.blinkIntervalID=setInterval(function(){return t.isOn?t.setDigitalOutputOff():t.setDigitalOutputOn()}.bind(this),e)},t.setDigitalOutputOff=function(){this.board.setDigitalOutput(this.pin,0),this.isOn=!1},t.setDigitalOutputOn=function(){this.board.setDigitalOutput(this.pin,1),this.isOn=!0},e}();e.exports=t.default},2257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){function e(e){this.board=e,this.screen=[[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0]]}var t=e.prototype;return t.display=function(e){this.board.mb.displayShow(!1,e)},t.scrollString=function(e){this.board.mb.scrollString(e)},t.scrollNumber=function(e){this.board.mb.scrollInteger(e)},t.on=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;this.board.mb.displayPlot(e,t,n),this.screen[e][t]=1},t.off=function(e,t){this.board.mb.displayPlot(e,t,0),this.screen[e][t]=0},t.toggle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;this.screen[e][t]>0?this.off(e,t):this.on(e,t,n)},t.clear=function(){this.board.mb.displayClear()},e}();e.exports=t.default},2471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(453),i=n(1174);function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){function t(t){var n;return(n=e.call(this)||this).state={threshold:128,rangeMin:0,rangeMax:i.MAX_LIGHT_SENSOR_VALUE,currentReading:0,buffer:new Float32Array(i.MAX_SENSOR_BUFFER_DURATION/i.SAMPLE_INTERVAL),currentBufferWriteIndex:0},n.board=t,n.board.mb.addFirmataUpdateListener((function(){n.state.buffer[n.state.currentBufferWriteIndex%n.state.buffer.length]=n.board.mb.analogChannel[i.SENSOR_CHANNELS.lightSensor],n.state.currentBufferWriteIndex++,(n.board.mb.analogChannel[i.SENSOR_CHANNELS.lightSensor]>=n.state.threshold||n.state.currentReading>=n.state.threshold)&&(n.emit("data"),n.state.currentReading!==n.board.mb.analogChannel[i.SENSOR_CHANNELS.lightSensor]&&n.emit("change")),n.state.currentReading=n.board.mb.analogChannel[i.SENSOR_CHANNELS.lightSensor]})),n.start(),Object.defineProperties(n,{value:{get:function(){return e=this.board.mb.analogChannel[i.SENSOR_CHANNELS.lightSensor],t=this.state.rangeMin,n=this.state.rangeMax,r=e/i.MAX_LIGHT_SENSOR_VALUE,Math.round(t+r*(n-t));var e,t,n,r}},threshold:{set:function(e){this.state.threshold=e},get:function(e){return this.state.threshold}}}),n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r);var a=t.prototype;return a.start=function(){this.board.mb.enableLightSensor(),this.board.mb.streamAnalogChannel(i.SENSOR_CHANNELS.lightSensor)},a.stop=function(){this.board.mb.stopStreamingAnalogChannel(i.SENSOR_CHANNELS.lightSensor)},a.reset=function(){this.state.threshold=128,this.state.rangeMin=0,this.state.rangeMax=i.MAX_LIGHT_SENSOR_VALUE,this.state.currentReading=0,this.state.currentBufferWriteIndex=0,this.state.buffer&&this.state.buffer.fill(0)},a.setScale=function(e,t){this.state.rangeMin=e,this.state.rangeMax=t},t}(r.EventEmitter);e.exports=t.default},2583:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ACCEL_EVENT_ID=void 0;var i,o=(i=n(2584))&&i.__esModule?i:{default:i},a=n(1995),l=n(1174);function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new k(r||[]);return o(a,"_invoke",{value:P(e,n,l)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",g="suspendedYield",m="executing",b="completed",y={};function v(){}function _(){}function E(){}var w={};d(w,l,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(D([])));C&&C!==n&&i.call(C,l)&&(w=C);var S=E.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,a,l,s){var u=p(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function P(t,n,r){var i=h;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===b){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=p(t,n,r);if("normal"===u.type){if(i=r.done?b:g,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=b,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return _.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:_,configurable:!0}),_.displayName=d(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},O(T.prototype),d(T.prototype,u,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new T(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),d(S,c,"Generator"),d(S,l,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function u(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}t.ACCEL_EVENT_ID=13,t.default=function(e){function t(t){var n;return(n=e.call(this,t)||this).digitalCallbacks=[],n.serialPortWebSerial=null,n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r);var i=t.prototype;return i.connectBoard=function(e){var t=this;return Promise.resolve().then((function(){return t.setSerialPort(e)})).then((function(){return t.setAnalogSamplingInterval(l.SAMPLE_INTERVAL)})).catch((function(){return Promise.reject("Couldn't connect to board")}))},i.dataReceived=function(e){this.inbufCount+e.length<this.inbuf.length&&(this.inbuf.set(e,this.inbufCount),this.inbufCount+=e.length,this.processFirmatMessages())},i.setSerialPort=function(t){return(0,a.isWebSerialPort)(t)?(this.myPort=t,this.serialPortWebSerial=t.port,this.myPort.on("data",this.dataReceived.bind(this)),this.requestFirmataVersion(),this.requestFirmwareVersion(),Promise.resolve()):e.prototype.setSerialPort.call(this,t)},i.getBoardClientWithoutPort=function(){var e=Object.assign({},this);return delete e.serialPortWebSerial,delete e.myPort,e},i.disconnect=function(){var t,n=(t=s().mark((function t(){var n=this;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((0,a.isWebSerialPort)(this.myPort)){t.next=4;break}e.prototype.disconnect.call(this),t.next=5;break;case 4:return t.abrupt("return",new Promise((function(e){setTimeout((function(){n.serialPortWebSerial&&"function"==typeof n.serialPortWebSerial.close&&n.myPort.close(),n.webSerialSerialPort=null,e()}),50)})));case 5:case"end":return t.stop()}}),t,this)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){u(o,r,i,a,l,"next",e)}function l(e){u(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}(),i.setPinMode=function(t,n){0===n?this.trackDigitalPin(t):2===n&&this.streamAnalogChannel(t),e.prototype.setPinMode.call(this,t,n)},i.digitalRead=function(e,t){t(this.digitalInput[e])},i.analogRead=function(e,t){t(this.analogChannel[e])},i.reset=function(){this.myPort&&this.myPort.write([this.SYSTEM_RESET])},i.trackDigitalComponent=function(e,t){this.digitalCallbacks.push({pin:e,callback:t})},i.receivedDigitalUpdate=function(t,n){e.prototype.receivedDigitalUpdate.call(this,t,n);for(var r=0;r<this.digitalCallbacks.length;r++){var i=this.digitalCallbacks[r].pin;(0,this.digitalCallbacks[r].callback)(i,this.digitalInput[i]+1)}},t}(o.default)},2366:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(453),o=n(1195),a=g(n(140)),l=n(1995),s=g(n(2254)),u=g(n(2255)),c=g(n(2256)),d=g(n(2257)),f=g(n(2583)),p=n(3172),h=n(1174);function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e,t,n){var i;return i=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==r(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}t.default=function(e){function t(t){var n;return(n=e.call(this)||this).port=t,n.prewiredComponents_=null,n.boardClient_=new f.default(navigator.serial),n.dynamicComponents_=[],n.interpreterReference_=null,n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,y(n,r);var i=t.prototype;return i.connect=function(){var e=this;return Promise.resolve().then((function(){return e.checkExpectedFirmware()})).then((function(){return e.initializeComponents()}))},i.openWebSerial=function(e){return e.openMBPort().then((function(){return e}))},i.checkExpectedFirmware=function(){var e=this;return this.openWebSerial(this.port).then((function(t){return e.boardClient_.connectBoard(t)})).then((function(){return(0,l.delayPromise)(250)})).then((function(){return e.boardClient_.firmwareVersion.includes(h.MICROBIT_FIRMWARE_VERSION)?Promise.resolve():(""===e.boardClient_.firmwareVersion&&(a.default.putRecord({study:o.MAKER_TOOLKIT,study_group:h.MICROBIT,event:h.FIRMWARE_VERSION_TIMEOUT}),console.warn("Firmware version not detected in time. Try refreshing the page.")),Promise.reject("Incorrect firmware detected"))})).catch((function(e){return Promise.reject(e)}))},i.initializeComponents=function(){var e=this;return(0,p.createMicroBitComponents)(this.boardClient_).then((function(t){e.prewiredComponents_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({board:e.boardClient_.getBoardClientWithoutPort()},t)}))},i.enableComponents=function(){this.prewiredComponents_&&(0,p.enableMicroBitComponents)(this.prewiredComponents_)},i.boardConnected=function(){return!!this.boardClient_.myPort},i.celebrateSuccessfulConnection=function(){var e=this;function t(e,t){return new Promise((function(n){h.CHECKMARK_LEDS.forEach((function(t){setTimeout((function(){return e.on(t[0],t[1])}))})),setTimeout(n,t)}))}function n(e,t){return new Promise((function(n){h.ALL_LEDS.forEach((function(t){setTimeout((function(){return e.off(t[0],t[1])}))})),setTimeout(n,t)}))}this.initializeComponents().then((function(){var r=new d.default({mb:e.boardClient_}),i=200;return Promise.resolve().then((function(){return function(e,t,n){return new Promise((function(r){h.SQUARE_LEDS.forEach((function(n,r){setTimeout((function(){return e.on(n[0],n[1])}),t*(r+1))})),setTimeout(r,t*h.SQUARE_LEDS.length+n)}))}(r,70,i)})).then((function(){return n(r,i)})).then((function(){return t(r,i)})).then((function(){return n(r,i)})).then((function(){return t(r,i)})).then((function(){return n(r,i)})).then((function(){return t(r,i)}))}))},i.pinMode=function(e,t){this.boardClient_.setPinMode(e,t)},i.digitalWrite=function(e,t){this.boardClient_.digitalWrite(e,t)},i.digitalRead=function(e,t){this.boardClient_.digitalRead(e,t)},i.analogWrite=function(e,t){this.boardClient_.analogWrite(e,t)},i.analogRead=function(e,t){this.boardClient_.analogRead(e,t)},i.createLed=function(e){var t=new c.default({board:this.boardClient_,pin:e});return this.dynamicComponents_.push(t),t},i.createButton=function(e){var t=new u.default({mb:this.boardClient_,pin:e});return this.dynamicComponents_.push(t),t},i.createCapacitiveTouchSensor=function(e){var t=new s.default({mb:this.boardClient_,pin:e});return this.interpreterReference_&&(this.interpreterReference_.addCustomMarshalObject({instance:s.default}),this.interpreterReference_.createGlobalProperty("CapacitiveTouchSensor",s.default)),this.dynamicComponents_.push(t),t},i.destroy=function(){return this.resetDynamicComponents(),this.dynamicComponents_.length=0,this.prewiredComponents_&&(0,p.cleanupMicroBitComponents)(this.prewiredComponents_,this.dynamicComponents_,!0),this.prewiredComponents_=null,this.boardClient_&&(this.boardClient_.disconnect(),this.boardClient_.reset()),this.boardClient_=null,Promise.resolve()},i.installOnInterpreter=function(e){var t=this;this.interpreterReference_=e,Object.keys(p.componentConstructors).forEach((function(t){e.addCustomMarshalObject({instance:p.componentConstructors[t]}),e.createGlobalProperty(t,p.componentConstructors[t])})),Object.keys(this.prewiredComponents_).forEach((function(n){e.createGlobalProperty(n,t.prewiredComponents_[n])}))},i.resetDynamicComponents=function(){this.dynamicComponents_.forEach((function(e){if(e instanceof c.default)e.off();else if(!(e instanceof u.default))throw new Error("Added an unsupported component to dynamic components")})),this.dynamicComponents_.length=0},i.reset=function(){this.resetDynamicComponents(),(0,p.cleanupMicroBitComponents)(this.prewiredComponents_,this.dynamicComponents_,!1)},t}(i.EventEmitter);e.exports=t.default},2472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(453);function i(e){var t=this;this.buttonEvents=new Array(6).fill(0),this.board=e,this.holdThreshold=500,this.holdTimer=null,this.board.mb.addFirmataEventListener((function(e,n){t.board.pin===e&&(t.buttonEvents[n]++,1===n?(t.emit("down"),t.holdTimer=setInterval((function(){t.emit("hold")}),t.holdThreshold)):2===n&&(t.emit("up"),t.holdTimer&&(clearInterval(t.holdTimer),t.holdTimer=null)))})),Object.defineProperties(this,{isPressed:{get:function(){return this.buttonEvents[1]>this.buttonEvents[2]}},holdtime:{get:function(){return this.holdThreshold}}})}n(33),i.inherits(r.EventEmitter),e.exports=t.default},3172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanupMicroBitComponents=function(e,t,n){e.ledScreen&&e.ledScreen.clear();e.tempSensor&&(e.tempSensor.stop(),e.tempSensor.currentTemp=0);e.accelerometer&&(e.accelerometer.state={x:0,y:0,z:0},e.accelerometer.stop());e.compass&&(e.compass.state={x:0,y:0},e.compass.stop());e.lightSensor&&(e.lightSensor.stop(),e.lightSensor.reset());t.forEach((function(e){e instanceof i.default&&(e.stop(),e.connected=!1)})),n&&(delete e.ledScreen,delete e.buttonA,delete e.buttonB,delete e.accelerometer,delete e.tempSensor,delete e.compass,delete e.lightSensor)},t.componentConstructors=void 0,t.createMicroBitComponents=function(e){return Promise.resolve({buttonA:new c.default({mb:e,pin:1}),buttonB:new c.default({mb:e,pin:2}),ledScreen:new s.default({mb:e}),tempSensor:new d.default({mb:e}),accelerometer:new r.default({mb:e}),compass:new o.default({mb:e}),lightSensor:new u.default({mb:e})})},t.enableMicroBitComponents=function(e){e.accelerometer&&e.accelerometer.start();e.tempSensor&&e.tempSensor.start();e.compass&&e.compass.start();e.lightSensor&&e.lightSensor.start()};var r=f(n(2469)),i=f(n(2254)),o=f(n(2470)),a=f(n(2255)),l=f(n(2256)),s=f(n(2257)),u=f(n(2471)),c=f(n(2472)),d=f(n(2473));function f(e){return e&&e.__esModule?e:{default:e}}t.componentConstructors={MicroBitButton:c.default,LedScreen:s.default,Accelerometer:r.default,MicroBitThermometer:d.default,Compass:o.default,LightSensor:u.default,ExternalButton:a.default,ExternalLed:l.default,CapacitiveTouchSensor:i.default}},2473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(453),i=n(1174);function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){function t(t){var n;return(n=e.call(this)||this).currentTemp=0,n.board=t,n.board.mb.addFirmataUpdateListener((function(){n.emit("data"),n.currentTemp!==n.board.mb.analogChannel[i.SENSOR_CHANNELS.tempSensor]&&(n.currentTemp=n.board.mb.analogChannel[i.SENSOR_CHANNELS.tempSensor],n.emit("change"))})),n.start(),Object.defineProperties(n,{raw:{get:function(){return this.board.mb.analogChannel[i.SENSOR_CHANNELS.tempSensor]}},celsius:{get:function(){return this.raw}},fahrenheit:{get:function(){var e=9*this.celsius/5+32;return(0,i.roundToHundredth)(e)}},C:{get:function(){return this.celsius}},F:{get:function(){return this.fahrenheit}}}),n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r);var a=t.prototype;return a.start=function(){this.board.mb.streamAnalogChannel(i.SENSOR_CHANNELS.tempSensor)},a.stop=function(){this.board.mb.stopStreamingAnalogChannel(i.SENSOR_CHANNELS.tempSensor)},t}(r.EventEmitter);e.exports=t.default},3173:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.analogRead=function(e){if(!(0,o.apiValidateType)(e,"analogRead","pin",e.pin,"pinid",null,s(i)))return;return i.analogRead(e.pin,e.callback)},t.analogWrite=function(e){if(!(0,o.apiValidateType)(e,"analogWrite","pin",e.pin,"pinid",null,s(i)))return;(0,o.apiValidateTypeAndRange)(e,"analogWrite","value",e.value,"number",0,255),i.analogWrite(e.pin,e.value)},t.boardConnected=function(){return i.boardConnected()},t.createButton=function(e){if(!(0,o.apiValidateType)(e,"createButton","pin",e.pin,"pinid",null,s(i)))return;return i.createButton(e.pin)},t.createCapacitiveTouchSensor=function(e){return(0,o.apiValidateTypeAndRange)(e,"createCapacitiveTouchSensor","pin",e.pin,"pinid",0,2),i.createCapacitiveTouchSensor(e.pin)},t.createLed=function(e){if(!(0,o.apiValidateType)(e,"createLed","pin",e.pin,"pinid",null,s(i)))return;return i.createLed(e.pin)},t.digitalRead=function(e){if(!(0,o.apiValidateType)(e,"digitalRead","pin",e.pin,"pinid",null,s(i)))return;return i.digitalRead(e.pin,e.callback)},t.digitalWrite=function(e){if(!(0,o.apiValidateType)(e,"digitalWrite","pin",e.pin,"pinid",null,s(i)))return;(0,o.apiValidateTypeAndRange)(e,"digitalWrite","value",e.value,"number",0,1),i.digitalWrite(e.pin,e.value)},t.injectBoardController=function(e){i=e},t.onBoardEvent=function(e){var t=e.component,n=e.event,r=e.callback;!a.BOARD_EVENT_ALIASES[n]||i instanceof l.default||(n=a.BOARD_EVENT_ALIASES[n]);t.on(n,r)},t.pinMode=function(e){if(!(0,o.apiValidateType)(e,"pinMode","pin",e.pin,"pinid",null,s(i)))return;i.pinMode(e.pin,{input:0,output:1,analog:2,pwm:3,servo:4}[e.mode])};var r,i,o=n(1283),a=n(1107),l=(r=n(2366))&&r.__esModule?r:{default:r};function s(e){return!!e.boardClient_}},3164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MICROBIT_VID=t.MICROBIT_PID=t.CIRCUIT_PLAYGROUND_PID=t.CIRCUIT_PLAYGROUND_EXPRESS_PID=t.ADAFRUIT_VID=void 0;t.ADAFRUIT_VID=9114,t.CIRCUIT_PLAYGROUND_PID=32785,t.CIRCUIT_PLAYGROUND_EXPRESS_PID=32792,t.MICROBIT_VID=3368,t.MICROBIT_PID=516},3582:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MakerError",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"configCircuitPlayground",{enumerable:!0,get:function(){return h.configCircuitPlayground}}),Object.defineProperty(t,"configMicrobit",{enumerable:!0,get:function(){return h.configMicrobit}}),t.connect=function(e){var t=e.interpreter,n=e.onDisconnect;if(!m.isEnabled((0,l.getStore)().getState()))return Promise.reject(new Error("Attempted to connect to a maker board, but Maker Toolkit is not enabled."));var r=_ instanceof d.default||_ instanceof f.default;if(_&&!r)return p.injectBoardController(_),_.installOnInterpreter(t),_.enableComponents(),Promise.resolve();var i=(0,l.getStore)(),a=i.dispatch.bind(i);return a(m.startConnecting()),function(){return(0,o.shouldUseWebSerial)()?Promise.resolve():Promise.reject(new g.UnsupportedBrowserError("Unsupported browser"))}().then(E).then((function(e){return w()?(_=e).connect():Promise.reject(new g.ConnectionCanceledError)})).then((function(){if(!w())return Promise.reject(new g.ConnectionCanceledError);p.injectBoardController(_),_.installOnInterpreter(t),"function"==typeof n&&_.once("disconnect",(function(){n(),function(){if(!m.isEnabled((0,l.getStore)().getState()))return;var e=function(){_=null,(0,l.getStore)().dispatch(m.disconnect)};_?_.destroy().then(e):e()}()})),a(m.reportConnected())})).catch((function(e){return e instanceof g.ConnectionCanceledError||(e=(0,g.wrapKnownMakerErrors)(e),a(m.reportConnectionError(e))),Promise.reject(e)}))},Object.defineProperty(t,"dropletConfig",{enumerable:!0,get:function(){return h.default}}),t.enable=function(){if(!m.isAvailable((0,l.getStore)().getState()))throw new g.default("Maker cannot be enabled: Its reducer was not registered.");(0,l.getStore)().dispatch(m.enable())},t.reset=function(){_&&_.reset()};var i=n(1753),o=n(1995),a=v(n(2251)),l=n(139),s=v(n(2464)),u=v(n(2366)),c=n(1174),d=v(n(2919)),f=v(n(2920)),p=y(n(3173)),h=y(n(1774)),g=y(n(3174)),m=y(n(2126));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function v(e){return e&&e.__esModule?e:{default:e}}var _=null;function E(){var e,t=null===(e=(0,i.getAppOptions)().level)||void 0===e?void 0:e.makerlabEnabled,n=t===c.MB_API?u.default:s.default;return m.shouldRunWithVirtualBoard((0,l.getStore)().getState())?t===c.MB_API?Promise.resolve(new f.default):Promise.resolve(new d.default):navigator.serial.getPorts().then((function(e){if(e.length){var t=e[0],r=new a.default(t);return new n(r)}return navigator.serial.requestPort({filters:o.WEB_SERIAL_FILTERS}).then((function(e){var t=new a.default(e);return new n(t)}))}))}function w(){return m.isConnecting((0,l.getStore)().getState())}},3602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedMakerStatusOverlay=void 0;var r=h(n(2)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=g(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1)),o=n(30),a=h(n(859)),l=h(n(79)),s=n(1757),u=h(n(25)),c=n(3174),d=n(2126),f=h(n(2945));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_(e,t)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function E(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={width:r.default.number.isRequired,height:r.default.number.isRequired,scale:r.default.number},A=t.UnconnectedMakerStatusOverlay=function(e){function t(){return e.apply(this,arguments)||this}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.scale,o=e.isConnecting,a=e.isWrongBrowser,l=e.hasConnectionError,s=e.handleTryAgain,u=e.handleOpenSetupPage,c={width:t,height:n,scale:r};return o?i.default.createElement(O,c):a?i.default.createElement(T,c):l?i.default.createElement(P,y({},c,{handleTryAgain:s,useVirtualBoardOnNextRun:this.props.useVirtualBoardOnNextRun,handleOpenSetupPage:u})):null},t}(i.Component);E(A,"propTypes",b(b({},w),{},{isConnecting:r.default.bool.isRequired,isWrongBrowser:r.default.bool.isRequired,hasConnectionError:r.default.bool.isRequired,handleTryAgain:r.default.func.isRequired,useVirtualBoardOnNextRun:r.default.func.isRequired,handleOpenSetupPage:r.default.func.isRequired}));t.default=(0,o.connect)((function(e){return{scale:(0,s.getVisualizationScale)(e),isConnecting:(0,d.isConnecting)(e),isWrongBrowser:(0,d.getConnectionError)(e)instanceof c.UnsupportedBrowserError,hasConnectionError:(0,d.hasConnectionError)(e),handleOpenSetupPage:function(){window.open("/maker/setup","_blank","noopener,noreferrer")}}}),{useVirtualBoardOnNextRun:d.useVirtualBoardOnNextRun})(A);var C={root:{position:"absolute",top:0,left:0,zIndex:4,overflow:"hidden",outline:"none",display:"flex",flexDirection:"column",alignItems:"center",color:u.default.charcoal,backgroundColor:u.default.lighter_gray},padding:{flex:"1 0 auto"},content:{flex:"0 0 auto",padding:"1em",textAlign:"center"},icon:{display:"block"},text:{margin:"1em"}},S=function(e){function t(){return e.apply(this,arguments)||this}return v(t,e),t.prototype.render=function(){var e=b(b({},C.root),{},{width:this.props.width,height:this.props.height});if("number"==typeof this.props.scale){var t="scale(".concat(this.props.scale,")");e.transform=t,e.msTransform=t,e.WebkitTransform=t}return i.default.createElement("div",{style:e},i.default.createElement("div",{style:C.padding}),i.default.createElement("div",{style:C.content},this.props.children),i.default.createElement("div",{style:C.padding}))},t}(i.Component);E(S,"propTypes",b(b({},w),{},{children:r.default.any}));var O=function(e){function t(){return e.apply(this,arguments)||this}return v(t,e),t.prototype.render=function(){return i.default.createElement(S,this.props,i.default.createElement(I,{icon:"cog",spin:!0}),i.default.createElement(x,null,a.default.makerWaitingForConnect()))},t}(i.Component);E(O,"propTypes",w);var T=function(e){function t(){return e.apply(this,arguments)||this}return v(t,e),t.prototype.render=function(){return i.default.createElement(S,this.props,i.default.createElement(I,{icon:"exclamation-triangle"}),i.default.createElement(x,null,a.default.makerLevelRequires(),i.default.createElement("br",null),a.default.makerSupportedBrowsers()))},t}(i.Component);E(T,"propTypes",b({},w));var P=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return E(t=e.call.apply(e,[this].concat(r))||this,"handleRunWithoutBoard",(function(){t.props.useVirtualBoardOnNextRun(),t.props.handleTryAgain()})),t}return v(t,e),t.prototype.render=function(){return i.default.createElement(S,this.props,i.default.createElement(I,{icon:"exclamation-triangle"}),i.default.createElement(x,null,a.default.makerCheckPluggedIn()),i.default.createElement(R,null,i.default.createElement(f.default,{primary:!0,text:a.default.makerTryAgain(),className:"try-again",onClick:this.props.handleTryAgain}),i.default.createElement(f.default,{text:a.default.makerRunWithoutBoard(),className:"run-without-board",onClick:this.handleRunWithoutBoard}),i.default.createElement(f.default,{text:a.default.makerSetupInstructions(),className:"setup-instructions",onClick:this.props.handleOpenSetupPage})))},t}(i.Component);function R(e){var t=e.children;return i.default.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"}},i.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},t))}function x(e){var t=e.children;return i.default.createElement("div",{style:C.text},t)}function I(e){var t=e.icon,n=e.spin,r=["fa-5x"];return void 0!==n&&n&&r.push("fa-spin"),i.default.createElement(l.default,{icon:t,className:r.join(" "),style:C.icon})}E(P,"propTypes",b(b({},w),{},{handleTryAgain:r.default.func.isRequired,useVirtualBoardOnNextRun:r.default.func.isRequired,handleOpenSetupPage:r.default.func.isRequired})),R.propTypes={children:r.default.any},x.propTypes={children:r.default.any},I.propTypes={icon:r.default.string.isRequired,spin:r.default.bool}},2945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),i=u(n(166)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1)),a=u(n(105)),l=u(n(25));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=p(p({height:40,paddingLeft:30,paddingRight:30,boxSizing:"border-box",overflow:"hidden"},a.default["main-font-regular"]),{},{fontSize:12,fontWeight:"bold",color:l.default.charcoal,textDecoration:"none",backgroundColor:"transparent",borderStyle:"solid",borderColor:l.default.charcoal,borderWidth:1,borderRadius:3,outline:"none",":hover":{color:l.default.charcoal,borderColor:l.default.white,backgroundColor:l.default.white,cursor:"pointer",boxShadow:"none"}}),m={backgroundColor:l.default.charcoal,borderColor:l.default.charcoal,color:l.default.lighter_gray},b=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,d(n,r),t.prototype.render=function(){var e=p(p({},g),this.props.primary&&m);return o.default.createElement("button",{type:"button",className:this.props.className,style:e,onClick:this.props.onClick},this.props.text)},t}(o.Component);h(b,"propTypes",{className:r.default.string,primary:r.default.bool,text:r.default.string.isRequired,onClick:r.default.func.isRequired});t.default=(0,i.default)(b);e.exports=t.default},1995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayPromise=t.WEB_SERIAL_FILTERS=t.SERIAL_BAUD=t.BOARD_TYPE=void 0,t.detectBoardTypeFromPort=function(e){var t=s.OTHER;if(e){var n=e.vendorId,r=e.productId,i=n?parseInt(n,16):null,o=r?parseInt(r,16):null;n===a.ADAFRUIT_VID&&r===a.CIRCUIT_PLAYGROUND_PID||i===a.ADAFRUIT_VID&&o===a.CIRCUIT_PLAYGROUND_PID?t=s.CLASSIC:n===a.ADAFRUIT_VID&&r===a.CIRCUIT_PLAYGROUND_EXPRESS_PID||i===a.ADAFRUIT_VID&&o===a.CIRCUIT_PLAYGROUND_EXPRESS_PID?t=s.EXPRESS:(n===a.MICROBIT_VID&&r===a.MICROBIT_PID||i===a.MICROBIT_VID&&o===a.MICROBIT_PID)&&(t=s.MICROBIT)}return t},t.isWebSerialPort=function(e){return e instanceof o.default},t.shouldUseWebSerial=function(){var e="serial"in navigator;return(0,l.isChromeOS)()&&(0,l.getChromeVersion)()>=i.MIN_CHROME_VERSION||e};var r,i=n(1195),o=(r=n(2251))&&r.__esModule?r:{default:r},a=n(3164),l=n(2314);var s=t.BOARD_TYPE={CLASSIC:"classic",EXPRESS:"express",MICROBIT:"microbit",OTHER:"other"};t.SERIAL_BAUD=57600,t.WEB_SERIAL_FILTERS=[{usbVendorId:a.ADAFRUIT_VID,usbProductId:a.CIRCUIT_PLAYGROUND_PID},{usbVendorId:a.ADAFRUIT_VID,usbProductId:a.CIRCUIT_PLAYGROUND_EXPRESS_PID},{usbVendorId:a.MICROBIT_VID,usbProductId:a.MICROBIT_PID}],t.delayPromise=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},2314:(e,t)=>{"use strict";function n(){return/\bCrOS\b/.test(navigator.userAgent)}Object.defineProperty(t,"__esModule",{value:!0}),t.getChromeVersion=function(){var e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return!!e&&parseInt(e[2],10)},t.isChrome=function(){return!!window.chrome},t.isChromeOS=n,t.isCodeOrgBrowser=function(){return!!window.MakerBridge},t.isLinux=function(){return/^Linux/.test(navigator.platform)&&!n()},t.isOSX=function(){return/^Mac/.test(navigator.platform)},t.isWindows=function(){return/^Win/.test(navigator.platform)}},3583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MBFirmataClientStub=void 0,t.makeCPBoardStub=function(){return new r.default.Board({io:new i.default({}),debug:!1,repl:!1})};var r=o(n(1744)),i=o(n(2115));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.MBFirmataClientStub=function(){function e(){this.eventListeners=[],this.updateListeners=[],this.analogChannel=new Array(16).fill(0),this.myPort=null}var t=e.prototype;return t.connect=function(){this.myPort=!0},t.pinMode=function(e,t){},t.setPinMode=function(e,t){},t.digitalWrite=function(e,t){},t.digitalRead=function(e,t){t()},t.analogWrite=function(e,t){},t.analogRead=function(e,t){t()},t.displayShow=function(){},t.displayPlot=function(){},t.displayClear=function(){},t.scrollString=function(){},t.scrollInteger=function(){},t.receivedEvent=function(e,t){var n,r=a(this.eventListeners);try{for(r.s();!(n=r.n()).done;){n.value.call(null,e,t)}}catch(i){r.e(i)}finally{r.f()}},t.receivedAnalogUpdate=function(){var e,t=a(this.updateListeners);try{for(t.s();!(e=t.n()).done;){e.value.call()}}catch(n){t.e(n)}finally{t.f()}},t.trackDigitalPin=function(){},t.addFirmataEventListener=function(e){this.eventListeners.push(e)},t.addFirmataUpdateListener=function(e){this.updateListeners.push(e)},t.streamAnalogChannel=function(e){},t.stopStreamingAnalogChannel=function(e){},t.setDigitalOutput=function(e,t){},t.getBoardClientWithoutPort=function(){return{}},t.disconnect=function(){},t.reset=function(){},t.trackDigitalComponent=function(){},t.enableLightSensor=function(){},t.connectBoard=function(){this.connect()},t.clearChannelData=function(){},e}()},2542:e=>{e.exports={}},1112:(e,t,n)=>{var r=n(25);e.exports={dialog:{maxWidth:1e3,marginLeft:0,transform:"translate(-50%, 0)"},title:{color:r.purple,textAlign:"center",margin:0,fontSize:"140%",lineHeight:"140%"}}},1742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.STANDARD_PADDING=t.MenuBubble=t.MenuBreak=void 0;var r=d(n(2)),i=d(n(166)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=f(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1)),a=n(1002),l=d(n(105)),s=d(n(12)),u=d(n(25));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){var r;return r=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==f(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=u.default.white,v=u.default.light_gray,_=t.STANDARD_PADDING=20,E={position:"absolute",zIndex:20,border:"1px solid ".concat(v),backgroundColor:y,borderRadius:2,boxShadow:"3px 3px 3px gray",textAlign:"left",maxWidth:300},w={position:"absolute",bottom:"100%",left:_,marginLeft:-7,borderTopWidth:0,borderBottomWidth:12,borderLeftWidth:7,borderRightWidth:7,borderStyle:"solid",borderColor:"transparent transparent ".concat(v," transparent")},A=m(m({},w),{},{bottom:"calc(100% - 2px)",borderColor:"transparent transparent ".concat(y," transparent")}),C=t.default=function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return this.props.isOpen&&o.default.createElement(a.PortalWithState,{closeOnOutsideClick:!0,closeOnEsc:!0,onClose:this.props.onClose,defaultOpen:this.props.isOpen},(function(t){t.openPortal,t.closePortal,t.isOpen;var n=t.portal;return o.default.createElement("div",null,n(o.default.createElement(O,{targetPoint:e.props.targetPoint,offset:e.props.offset,className:e.props.className,showTail:e.props.showTail,style:e.props.style},e.props.children)))}))},t}(o.Component);b(C,"propTypes",{targetPoint:r.default.shape({top:r.default.number.isRequired,left:r.default.number.isRequired}).isRequired,offset:r.default.shape({x:r.default.number.isRequired,y:r.default.number.isRequired}),children:r.default.any,className:r.default.string,isOpen:r.default.bool,onClose:r.default.func,showTail:r.default.bool,style:r.default.object});var S=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n.renderMenuItems=function(){var e=this.props.children;Array.isArray(e)&&(e=e.filter((function(e){return e})));var t=o.Children.count(e);return 0===t?o.default.createElement("div",null,o.default.createElement("em",null,s.default.noMenuItemsAvailable())):o.default.createElement("div",null,o.Children.map(e,(function(e,n){return e?o.default.cloneElement(e,{first:0===n,last:n===t-1}):e})))},n.render=function(){var e=this.props,t=e.targetPoint,n=e.className,r=this.props.offset?this.props.offset.y:12,i=this.props.offset?this.props.offset.x:-_,a=m(m(m(m({},E),this.props.style),t),{},{marginTop:r,marginLeft:i});return o.default.createElement("div",{style:a,className:n},this.renderMenuItems(),this.props.showTail&&o.default.createElement("span",{style:w}),this.props.showTail&&o.default.createElement("span",{style:A}))},t}(o.Component);b(S,"propTypes",{targetPoint:r.default.shape({top:r.default.number.isRequired,left:r.default.number.isRequired}).isRequired,offset:r.default.shape({x:r.default.number.isRequired,y:r.default.number.isRequired}),children:r.default.any,className:r.default.string,showTail:r.default.bool,style:r.default.object});var O=t.MenuBubble=(0,i.default)(S),T=(t.MenuBreak=function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e={borderTop:"1px solid "+u.default.lighter_gray,marginTop:_/2,marginBottom:_/2,marginLeft:_,marginRight:_};return o.default.createElement("div",{style:e})},t}(o.Component),function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this.props,t=e.first,n=e.last,r=e.onClick,i=e.children,a=e.href,s=e.openInNewTab,c=e.className,d=e.style,f=e.hrefOnClick,p="pop-up-menu-item",h=c?"".concat(p," ").concat(c):p;if(!a&&!r)throw new Error("Expect at least one of href/onClick");var g=m(m({},{marginTop:t?_*(3/4):void 0,marginBottom:n?_*(3/4):void 0,paddingTop:_/4,paddingBottom:_/4,paddingLeft:_,paddingRight:_,cursor:"pointer",":hover":{backgroundColor:u.default.lightest_gray}}),d),b=m({color:this.props.color?this.props.color:u.default.dark_charcoal,textDecoration:"none"},l.default["main-font-regular"]),y=s?"_blank":"";return o.default.createElement("div",{style:g},this.props.href&&o.default.createElement("a",{className:h,href:a,style:m(m({},b),{display:"block"}),target:y,onClick:f},i),!this.props.href&&o.default.createElement("div",{className:h,style:b,onClick:r},i))},t}(o.Component));b(T,"propTypes",{children:r.default.node.isRequired,onClick:r.default.func,href:r.default.string,first:r.default.bool,last:r.default.bool,color:r.default.string,openInNewTab:r.default.bool,className:r.default.string,style:r.default.object,hrefOnClick:r.default.func}),C.Item=(0,i.default)(T)},2889:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.skinsModule=l,e.blocksModule={},(0,i.default)(o.default,a.default,e)};var i=u(n(1945)),o=u(n(2791)),a=u(n(2948)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(n(2737));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}window.Applab=o.default,void 0!==n.g&&(n.g.Applab=window.Applab),e.exports=t.default},4978:(e,t,n)=>{"use strict";var r=o(n(1753)),i=o(n(2889));function o(e){return e&&e.__esModule?e:{default:e}}(0,r.default)().then(i.default)},3608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ParamType=void 0;var r=c(n(2)),i=c(n(1)),o=c(n(105)),a=n(139),l=c(n(170)),s=c(n(12)),u=c(n(25));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,n){var r;return r=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==p(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=t.ParamType={TABLE:"TABLE",COLUMN:"COLUMN"},b=t.default=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return g(t=e.call.apply(e,[this].concat(r))||this,"state",{columns:[]}),t}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,h(n,r);var o=t.prototype;return o.componentDidMount=function(){var e=this;this.props.param===m.COLUMN&&Applab.storage.getColumnsForTable(this.props.table).then((function(t){return e.setState({columns:t})}))},o.chooseOption=function(e){return this.props.onChoose(e),this.props.onClose(),!1},o.render=function(){var e=this,t=(0,a.getStore)().getState(),n=[],r="",o="";switch(this.props.param){case m.TABLE:n=Object.keys(t.data.tableListMap),r=s.default.chooseTable(),o=s.default.noTablesInProject();break;case m.COLUMN:n=this.state.columns,r=s.default.chooseColumn({table:this.props.table}),o=s.default.noColumnsInTable({table:this.props.table})}return i.default.createElement(l.default,{isOpen:!0,useUpdatedStyles:!0,handleClose:this.props.onClose},i.default.createElement("h1",{style:y.title},r),i.default.createElement("div",null,0===n.length?i.default.createElement("p",{style:y.error},o):n.map((function(t){return i.default.createElement("p",{key:t},i.default.createElement("a",{href:"#",onClick:function(){return e.chooseOption(t)},style:y.option},t))}))))},t}(i.default.Component);g(b,"propTypes",{param:r.default.oneOf(Object.values(m)).isRequired,table:r.default.string,onClose:r.default.func.isRequired,onChoose:r.default.func.isRequired});var y={title:f(f({paddingLeft:"15px"},o.default["main-font-bold"]),{},{color:u.default.teal}),option:f(f({paddingLeft:"30px"},o.default["main-font-bold"]),{},{color:u.default.purple}),error:{padding:"30px"}}},1579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WarningType=t.DataView=void 0;var r=n(33);t.DataView=(0,r.makeEnum)("OVERVIEW","PROPERTIES","TABLE"),t.WarningType=(0,r.makeEnum)("CANNOT_CONVERT_COLUMN_TYPE","DUPLICATE_TABLE_NAME","IMPORT_FAILED","KEY_INVALID","KEY_RENAMED","MAX_TABLES_EXCEEDED","TABLE_NAME_INVALID","TABLE_RENAMED")},2934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(55)),i=p(n(2)),o=p(n(1)),a=p(n(12)),l=p(n(1962)),s=n(1579),u=n(1763),c=n(1373),d=n(1809),f=p(n(1187));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t,n){var r;return r=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==h(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={isAdding:!1,key:"",value:""},v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return b(t=e.call.apply(e,[this].concat(r))||this,"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},y)),b(t,"handleKeyChange",(function(e){t.setState({key:e.target.value})})),b(t,"handleValueChange",(function(e){t.setState({value:e.target.value})})),b(t,"handleAdd",(function(){if(t.state.key){t.props.hideError();try{t.setState({isAdding:!0});var e=(0,c.castValue)(t.state.value,!1);(0,u.storageBackend)().setKeyValue(t.state.key,e,(function(){t.setState(y),(0,d.refreshCurrentDataView)()}),(function(e){e.type===s.WarningType.KEY_INVALID||e.type===s.WarningType.KEY_RENAMED?t.props.onShowWarning(e.msg):console.warn(e.msg?e.msg:e),t.setState(y)}))}catch(n){t.setState({isAdding:!1}),t.props.showError()}}})),b(t,"handleKeyUp",(function(e){"Enter"===e.key?t.handleAdd():"Escape"===e.key&&t.setState(y)})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,m(n,i),t.prototype.render=function(){return o.default.createElement("tr",{id:"uitest-addKeyValuePairRow",className:f.default.row},o.default.createElement("td",{className:f.default.cell},o.default.createElement("input",{className:f.default.input,onChange:this.handleKeyChange,onKeyUp:this.handleKeyUp,placeholder:a.default.enterText(),value:this.state.key||""})),o.default.createElement("td",{className:f.default.cell},o.default.createElement("input",{className:f.default.input,onChange:this.handleValueChange,onKeyUp:this.handleKeyUp,placeholder:a.default.enterText(),value:this.state.value||""})),o.default.createElement("td",{className:(0,r.default)(f.default.cell,f.default.addButton)},o.default.createElement(l.default,{isPending:this.state.isAdding,onClick:this.handleAdd,pendingText:a.default.addingToTable(),className:(0,r.default)(f.default.button,f.default.buttonBlue),text:a.default.addPairToTable()})))},t}(o.default.Component);b(v,"propTypes",{onShowWarning:i.default.func.isRequired,showError:i.default.func.isRequired,hideError:i.default.func.isRequired});t.default=v;e.exports=t.default},2931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(55)),i=s(n(2)),o=s(n(1)),a=s(n(12)),l=s(n(1187));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={newTableName:""},h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return f(t=e.call.apply(e,[this].concat(r))||this,"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p)),f(t,"handleAdd",(function(){t.state.newTableName&&(t.props.onTableAdd(t.state.newTableName),t.setState(p))})),f(t,"handleInputChange",(function(e){t.setState({newTableName:e.target.value})})),f(t,"handleKeyUp",(function(e){"Enter"===e.key?t.handleAdd():"Escape"===e.key&&t.setState(p)})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,d(n,i),t.prototype.render=function(){return o.default.createElement("tr",{className:l.default.row},o.default.createElement("td",{className:l.default.cell},o.default.createElement("input",{className:(0,r.default)("uitest-add-table-input",l.default.input),placeholder:a.default.dataTableNamePlaceholder(),value:this.state.newTableName,onChange:this.handleInputChange,onKeyUp:this.handleKeyUp})),o.default.createElement("td",{className:l.default.cell},o.default.createElement("button",{className:(0,r.default)("uitest-add-table-btn",l.default.button,l.default.buttonBlue),type:"button",onClick:this.handleAdd},a.default.add())))},t}(o.default.Component);f(h,"propTypes",{onTableAdd:i.default.func.isRequired});t.default=h;e.exports=t.default},2477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(55)),i=p(n(51)),o=p(n(2)),a=p(n(1)),l=p(n(12)),s=p(n(1962)),u=n(1763),c=n(1373),d=n(1809),f=p(n(1187));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t,n){var r;return r=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==h(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={isAdding:!1,newInput:{}},v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return b(t=e.call.apply(e,[this].concat(r))||this,"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},y)),b(t,"handleAdd",(function(){try{t.props.hideError();var e=i.default.mapValues(t.state.newInput,(function(e){return(0,c.castValue)(e,!1)}));t.setState({isAdding:!0}),(0,u.storageBackend)().createRecord(t.props.tableName,e,(function(){(0,d.refreshCurrentDataView)(),t.setState(y)}),(function(e){return console.warn(e)}))}catch(n){t.setState({isSaving:!1}),t.props.showError()}})),b(t,"handleKeyUp",(function(e){"Enter"===e.key?t.handleAdd():"Escape"===e.key&&t.setState(y)})),t}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,m(n,o);var p=t.prototype;return p.handleChange=function(e,t){var n=Object.assign({},this.state.newInput,b({},e,t.target.value));this.setState({newInput:n})},p.render=function(){var e=this;return a.default.createElement("tr",{className:f.default.row,id:"addDataTableRow"},this.props.columnNames.map((function(t){return a.default.createElement("td",{key:t,className:f.default.cell},"id"===t?a.default.createElement("span",{style:{color:"darkgray"}},"#"):a.default.createElement("input",{className:f.default.input,value:e.state.newInput[t]||"",placeholder:l.default.enterText(),onChange:function(n){return e.handleChange(t,n)},onKeyUp:e.handleKeyUp}))})),a.default.createElement("td",{className:f.default.cell}),a.default.createElement("td",{className:(0,r.default)(f.default.cell,f.default.addButton)},a.default.createElement(s.default,{isPending:this.state.isAdding,onClick:this.handleAdd,pendingText:l.default.addingToTable(),className:(0,r.default)(f.default.button,f.default.buttonBlue),text:l.default.addRowToTable()})))},t}(a.default.Component);b(v,"propTypes",{columnNames:o.default.array.isRequired,tableName:o.default.string.isRequired,showError:o.default.func.isRequired,hideError:o.default.func.isRequired});t.default=v;e.exports=t.default},2478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(55)),i=p(n(2)),o=p(n(1)),a=p(n(780)),l=p(n(79)),s=p(n(25)),u=n(33),c=p(n(2479)),d=p(n(3179)),f=p(n(1187));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==h(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={newName:void 0,hasEnteredText:!1,isDialogOpen:!1},_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"state",m({},v)),y(t,"handleBlur",(function(){return t.handleRenameConfirm()})),y(t,"handleChange",(function(e){t.setState({newName:e.target.value,hasEnteredText:!0})})),y(t,"handleClose",(function(){return t.setState({isDialogOpen:!1})})),y(t,"handleDelete",(function(){return t.setState({isDialogOpen:!0})})),y(t,"handleConfirmDelete",(function(){t.setState({isDialogOpen:!1}),t.props.deleteColumn(t.props.columnName)})),y(t,"handleKeyUp",(function(e){"Enter"===e.key?t.handleRenameConfirm():"Escape"===e.key&&t.props.editColumn(null)})),y(t,"handleRename",(function(){return t.props.editColumn(t.props.columnName)})),y(t,"coerceColumn",(function(e){return t.props.coerceColumn(t.props.columnName,e)})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,b(n,i);var p=t.prototype;return p.componentDidMount=function(){this.props.isEditing&&this.input.select()},p.UNSAFE_componentWillReceiveProps=function(e){!this.props.isEditing&&e.isEditing&&this.setState(v)},p.componentDidUpdate=function(e,t){this.props.isEditing&&!this.state.hasEnteredText&&this.input.select()},p.handleRenameConfirm=function(){if(this.props.isEditing){var e=this.props.columnName,t=this.state.newName||this.props.columnName;t!==e&&this.props.columnNames.includes(t)?this.props.editColumn(null):this.props.renameColumn(e,t)}},p.isInputValid=function(){var e=this.state.newName;return this.props.columnName===e||!this.props.columnNames.includes(e)},p.render=function(){var e=this,t=m({},{display:this.props.isEditing?null:"none",backgroundColor:this.isInputValid()?null:s.default.lightest_red,minWidth:80});return o.default.createElement("th",{className:(0,r.default)(f.default.headerCell,"uitest-data-table-column")},o.default.createElement("div",{className:(0,r.default)(d.default.container,this.props.isEditing&&d.default.containerIsEditing)},o.default.createElement("div",{className:(0,r.default)(d.default.columnName,"test-tableNameDiv")},this.props.columnName),!this.props.readOnly&&o.default.createElement("div",{className:d.default.iconWrapper},this.props.isPending?o.default.createElement(l.default,{icon:"spinner",className:(0,r.default)("fa-spin",d.default.icon)}):o.default.createElement(c.default,{coerceColumn:this.coerceColumn,handleDelete:this.handleDelete,handleRename:this.handleRename,isEditable:this.props.isEditable}))),o.default.createElement(a.default,{body:"Are you sure you want to delete this entire column? You cannot undo this action.",cancelText:"Cancel",confirmText:"Delete",confirmType:"danger",isOpen:this.state.isDialogOpen,handleClose:this.handleClose,onCancel:this.handleClose,onConfirm:this.handleConfirmDelete,title:"Delete column"}),o.default.createElement("input",{ref:function(t){return e.input=t},className:f.default.input,style:t,value:(0,u.valueOr)(this.state.newName,this.props.columnName),onBlur:this.handleBlur,onChange:this.handleChange,onKeyUp:this.handleKeyUp}))},t}(o.default.Component);y(_,"propTypes",{coerceColumn:i.default.func.isRequired,columnName:i.default.string.isRequired,columnNames:i.default.array.isRequired,deleteColumn:i.default.func.isRequired,editColumn:i.default.func.isRequired,isEditable:i.default.bool.isRequired,isEditing:i.default.bool.isRequired,isPending:i.default.bool.isRequired,readOnly:i.default.bool,renameColumn:i.default.func.isRequired});t.default=_;e.exports=t.default},2479:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=s(n(12)),a=s(n(79)),l=n(1373);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d,f,p,h,g=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){var e=this,t={visibility:this.props.isEditable?null:"hidden"};return i.default.createElement("span",{className:"dropdown pull-right",style:t},i.default.createElement("a",{className:"dropdown-toggle","data-toggle":"dropdown"},i.default.createElement(a.default,{icon:"cog",style:m.icon})),i.default.createElement("ul",{className:"dropdown-menu dropdown-menu-right",style:{minWidth:0}},i.default.createElement("li",{style:{cursor:"pointer"}},i.default.createElement("a",{onClick:this.props.handleRename},o.default.rename())),i.default.createElement("li",{style:{cursor:"pointer"}},i.default.createElement("a",{onClick:this.props.handleDelete},o.default.delete())),i.default.createElement("li",{style:{cursor:"pointer"}},i.default.createElement("a",{onClick:function(){return e.props.coerceColumn(l.ColumnType.STRING)}},o.default.dataTableConvertToString())),i.default.createElement("li",{style:{cursor:"pointer"}},i.default.createElement("a",{onClick:function(){return e.props.coerceColumn(l.ColumnType.NUMBER)}},o.default.dataTableConvertToNumber())),i.default.createElement("li",{style:{cursor:"pointer"}},i.default.createElement("a",{onClick:function(){return e.props.coerceColumn(l.ColumnType.BOOLEAN)}},o.default.dataTableConvertToBoolean()))))},t}(i.default.Component);d=g,f="propTypes",p={coerceColumn:r.default.func.isRequired,handleDelete:r.default.func.isRequired,handleRename:r.default.func.isRequired,isEditable:r.default.bool.isRequired},h=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(f,"string"),(f="symbol"==u(h)?h:h+"")in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p;var m={icon:{color:"white",cursor:"pointer"}};e.exports=t.default},2163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(55)),i=c(n(2)),o=c(n(1)),a=c(n(12)),l=c(n(780)),s=c(n(1187)),u=["confirmText"];function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t,n){var r;return r=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==d(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return b(t=e.call.apply(e,[this].concat(r))||this,"state",{open:!1}),b(t,"handleClose",(function(){return t.setState({open:!1})})),b(t,"handleConfirm",(function(){t.setState({open:!1}),t.props.onConfirmDelete()})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,m(n,i),t.prototype.render=function(){var e=this,t=this.props,n=t.confirmText,i=g(t,u);return n=n||a.default.delete(),o.default.createElement("div",{style:h(h({},{display:"inline-block"}),this.props.containerStyle)},o.default.createElement(l.default,f({cancelText:a.default.cancel(),confirmText:n,confirmType:"danger",isOpen:!!this.state&&this.state.open,handleClose:this.handleClose,onCancel:this.handleClose,onConfirm:this.handleConfirm},i)),o.default.createElement("button",{type:"button",id:this.props.buttonId,onClick:function(){return e.setState({open:!0})},className:(0,r.default)(s.default.button,s.default.buttonRed)},this.props.buttonText))},t}(o.default.Component);b(y,"propTypes",{title:i.default.string.isRequired,body:i.default.string.isRequired,buttonId:i.default.string,buttonText:i.default.string.isRequired,confirmText:i.default.string,containerStyle:i.default.any,onConfirmDelete:i.default.func.isRequired});t.default=y;e.exports=t.default},2481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(55)),i=c(n(2)),o=c(n(1)),a=c(n(12)),l=c(n(780)),s=c(n(1962)),u=c(n(1187));function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,n){var r;return r=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==d(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={isConfirmDialogOpen:!1,isImporting:!1},b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return g(t=e.call.apply(e,[this].concat(r))||this,"state",p({},m)),g(t,"handleClose",(function(){t.setState({isConfirmDialogOpen:!1}),t.importFileInput.value=""})),g(t,"handleConfirm",(function(){t.setState({isConfirmDialogOpen:!1,isImporting:!0}),t.uploadFile()})),g(t,"handleImportComplete",(function(){return t.setState(m)})),g(t,"handleSelectImportFile",(function(){t.importFileInput.value&&t.setState({isConfirmDialogOpen:!0})})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,h(n,i);var c=t.prototype;return c.uploadFile=function(){var e=this,t=this.importFileInput.files[0],n=new FileReader;n.onload=function(t){e.props.importCsv(t.target.result,e.handleImportComplete),e.importFileInput.value=""},n.readAsText(t)},c.render=function(){var e=this;return o.default.createElement("span",{style:p(p({},{display:"inline-block"}),this.props.containerStyle)},o.default.createElement("input",{ref:function(t){return e.importFileInput=t},type:"file",style:{display:"none"},accept:"text/csv",onChange:this.handleSelectImportFile}),o.default.createElement(l.default,{body:a.default.confirmImportOverwrite(),cancelText:a.default.cancel(),confirmText:a.default.yes(),confirmType:"danger",isOpen:!!this.state.isConfirmDialogOpen,handleClose:this.handleClose,onCancel:this.handleClose,onConfirm:this.handleConfirm,title:a.default.confirmImportOverwriteTitle()}),o.default.createElement(s.default,{isPending:this.state.isImporting,onClick:function(){return e.importFileInput.click()},pendingText:a.default.importingWithEllipsis(),className:(0,r.default)(u.default.button,u.default.buttonWhite),text:a.default.importCSV()}))},t}(o.default.Component);g(b,"propTypes",{importCsv:i.default.func.isRequired,containerStyle:i.default.any});t.default=b;e.exports=t.default},2930:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(55)),i=g(n(2)),o=g(n(1)),a=n(30),l=g(n(12)),s=n(1579),u=n(1560),c=g(n(2931)),d=g(n(2932)),f=g(n(3589)),p=g(n(3590)),h=g(n(1187));function g(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){var r;return r=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==m(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=124,_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return y(t=e.call.apply(e,[this].concat(r))||this,"state",{selectedTab:E.DATA_TABLES}),y(t,"handleTabClick",(function(e){t.setState({selectedTab:e}),e===E.DATA_TABLES&&t.props.onViewChange(s.DataView.OVERVIEW),e===E.KEY_VALUE_PAIRS&&t.props.onViewChange(s.DataView.PROPERTIES)})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,b(n,i),t.prototype.render=function(){var e=this;return o.default.createElement("div",{style:{height:"100%"}},o.default.createElement("div",{id:"dataBrowserTabs",className:p.default.workspaceTabs},o.default.createElement("div",{id:"dataTablesTab",className:(0,r.default)(p.default.tab,this.state.selectedTab===E.DATA_TABLES?p.default.tabActive:p.default.tabInactive),onClick:this.handleTabClick.bind(this,E.DATA_TABLES)},o.default.createElement("span",{className:p.default.tabLabel},l.default.dataTableHeader())),o.default.createElement("div",{id:"keyValuePairsTab",className:(0,r.default)(p.default.tab,this.state.selectedTab===E.KEY_VALUE_PAIRS?p.default.tabActive:p.default.tabInactive),onClick:this.handleTabClick.bind(this,E.KEY_VALUE_PAIRS)},o.default.createElement("span",{className:p.default.tabLabel},l.default.keyValuePairsHeader())),o.default.createElement("div",{id:"emptyTab",className:(0,r.default)(p.default.tab,p.default.tabEmpty)})),o.default.createElement("div",{id:"dataBrowserBody",className:p.default.workspaceBody},o.default.createElement("div",{id:"dataTablesBody",className:(0,r.default)(this.state.selectedTab===E.DATA_TABLES?p.default.activeBody:p.default.inactiveBody)},o.default.createElement("span",null," ",l.default.createTableHeader()," "),o.default.createElement("table",null,o.default.createElement("colgroup",null,o.default.createElement("col",{width:276}),o.default.createElement("col",{width:v})),o.default.createElement("tbody",null,o.default.createElement(c.default,{onTableAdd:this.props.onTableAdd}))),o.default.createElement("br",null),o.default.createElement("table",null,o.default.createElement("colgroup",null,o.default.createElement("col",{width:276}),o.default.createElement("col",{width:v})),o.default.createElement("tbody",null,o.default.createElement("tr",null,o.default.createElement("th",{className:h.default.headerCell},l.default.dataTableNamePlaceholder()),o.default.createElement("th",{className:h.default.headerCell},l.default.actions())),Object.keys(this.props.tableListMap).map((function(t){return o.default.createElement(d.default,{key:t,tableName:t,tableType:e.props.tableListMap[t],onViewChange:function(){return e.props.onViewChange(s.DataView.TABLE,t)}})}))))),o.default.createElement("div",{id:"keyValuePairsBody",className:(0,r.default)(this.state.selectedTab===E.KEY_VALUE_PAIRS?p.default.activeBody:p.default.inactiveBody)},o.default.createElement(f.default,null))))},t}(o.default.Component);y(_,"propTypes",{onTableAdd:i.default.func.isRequired,tableListMap:i.default.object.isRequired,view:i.default.oneOf(Object.keys(s.DataView)),onShowWarning:i.default.func.isRequired,onViewChange:i.default.func.isRequired});var E={DATA_TABLES:"dataTables",KEY_VALUE_PAIRS:"keyValuePairs"};_.TabType=E;t.default=(0,a.connect)((function(e){return{view:e.data.view,tableListMap:e.data.tableListMap||{}}}),(function(e){return{onShowWarning:function(t,n){e((0,u.showWarning)(t,n))},onViewChange:function(t,n){e((0,u.changeView)(t,n))}}}))(_);e.exports=t.default},2367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=s(n(12)),a=s(n(177)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,f(n,r),t.prototype.render=function(){return this.props.isVisible?i.default.createElement("div",{style:g.bottom},i.default.createElement("div",{style:d(d({},g.container),g.visible)},i.default.createElement(a.default,{markdown:o.default.invalidDataEntryTypeError()}))):i.default.createElement("div",{style:d(d({},g.container),g.bottom)})},t}(i.default.Component);p(h,"propTypes",{isVisible:r.default.bool.isRequired});var g={container:{height:40,paddingTop:12},visible:{background:l.default.lighter_yellow,paddingLeft:12,paddingRight:12,paddingBottom:0},bottom:{paddingBottom:8}};t.default=h;e.exports=t.default},2936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(51)),i=v(n(2)),o=v(n(1)),a=n(30),l=v(n(1014)),s=v(n(177)),u=v(n(12)),c=v(n(138)),d=n(1579),f=n(1560),p=n(1763),h=n(1373),g=v(n(2475)),m=n(1809),b=v(n(2937)),y=v(n(3591));function v(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function w(e,t,n){var r;return r=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==_(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return w(t=e.call.apply(e,[this].concat(r))||this,"state",{search:""}),w(t,"onError",(function(e){e.type!==d.WarningType.DUPLICATE_TABLE_NAME&&e.type!==d.WarningType.MAX_TABLES_EXCEEDED||t.props.onShowWarning(e.msg)})),w(t,"importTable",(function(e){return(0,p.storageBackend)().addSharedTable(e.name).then((function(){return(0,m.refreshCurrentDataView)()}))})),w(t,"search",(function(e){var n="";void 0!==e&&(n=e.target.value.toLowerCase()),t.setState({search:n})})),w(t,"filterCategories",(function(e){var n=new RegExp("(?:\\s+|^)"+t.state.search,"i");return e.reduce((function(e,r){return r.datasets=r.datasets.filter((function(e){var r=(0,h.getDatasetInfo)(e,t.props.libraryManifest.tables);return n.test(e)||n.test(r.description)})),r.datasets.length>0&&e.push(r),e}),[])})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,E(n,i),t.prototype.render=function(){var e=this,t=c.default.isEnabled(c.default.SHOW_UNPUBLISHED_DATASET_TABLES),n=(this.props.libraryManifest.categories||[]).filter((function(e){return t||e.published}));return n=this.filterCategories(r.default.cloneDeep(n)),o.default.createElement("div",{className:y.default.container},o.default.createElement(s.default,{markdown:u.default.dataLibraryDescription(),openExternalLinksInNewTab:!0}),o.default.createElement(l.default,{placeholderText:u.default.dataLibrarySearchPlacholder(),onChange:this.search,clearButton:this.state.search.length>0}),o.default.createElement("hr",{className:y.default.divider}),n.map((function(t){return o.default.createElement(g.default,{key:t.name,name:t.name,datasets:t.datasets,description:t.description,importTable:e.importTable,forceExpanded:e.state.search.length>0})})),o.default.createElement(b.default,{importTable:this.importTable}))},t}(o.default.Component);w(A,"propTypes",{libraryManifest:i.default.object.isRequired,onShowWarning:i.default.func.isRequired});t.default=(0,a.connect)((function(e){return{libraryManifest:e.data.libraryManifest||{}}}),(function(e){return{onShowWarning:function(t,n){e((0,f.showWarning)(t,n))}}}))(A);e.exports=t.default},2929:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(55)),i=h(n(2)),o=h(n(1)),a=n(30),l=n(1579),s=n(1560),u=n(1763),c=h(n(2930)),d=h(n(2936)),f=n(1809),p=h(n(3592));function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return b(t=e.call.apply(e,[this].concat(r))||this,"onTableAdd",(function(e){(0,u.storageBackend)().createTable(e,(function(){(0,f.refreshCurrentDataView)(),t.props.onViewChange(l.DataView.TABLE,e)}),(function(e){!e.type||e.type!==l.WarningType.MAX_TABLES_EXCEEDED&&e.type!==l.WarningType.TABLE_NAME_INVALID&&e.type!==l.WarningType.TABLE_RENAMED&&e.type!==l.WarningType.DUPLICATE_TABLE_NAME?console.warn(e.msg?e.msg:e):t.props.onShowWarning(e.msg)}))})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,m(n,i),t.prototype.render=function(){return o.default.createElement("div",{id:"data-library-container",className:(0,r.default)(p.default.container,(this.props.view===l.DataView.OVERVIEW||this.props.view===l.DataView.PROPERTIES)&&p.default.containerDisplay)},o.default.createElement(d.default,null),o.default.createElement("div",{id:"data-browser",className:p.default.dataBrowser},o.default.createElement(c.default,{onTableAdd:this.onTableAdd})))},t}(o.default.Component);b(y,"propTypes",{tableListMap:i.default.object.isRequired,view:i.default.oneOf(Object.keys(l.DataView)),onShowWarning:i.default.func.isRequired,onViewChange:i.default.func.isRequired});t.default=(0,a.connect)((function(e){return{view:e.data.view,tableListMap:e.data.tableListMap||{}}}),(function(e){return{onShowWarning:function(t,n){e((0,s.showWarning)(t,n))},onViewChange:function(t,n){e((0,s.changeView)(t,n))}}}))(y);e.exports=t.default},2701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedDataTable=void 0;var r=_(n(55)),i=_(n(2)),o=_(n(1)),a=n(30),l=_(n(12)),s=_(n(79)),u=_(n(1216)),c=n(1579),d=n(1560),f=n(1763),p=_(n(2477)),h=_(n(2478)),g=_(n(2367)),m=_(n(2480)),b=n(1809),y=_(n(1187)),v=_(n(3180));function _(e){return e&&e.__esModule?e:{default:e}}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function w(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function O(e,t,n){var r;return r=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==E(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T={editingColumn:null,pendingAdd:!1,pendingColumn:null,currentPage:0,showError:!1},P=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return O(t=e.call.apply(e,[this].concat(r))||this,"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},T)),O(t,"showError",(function(){return t.setState({showError:!0})})),O(t,"hideError",(function(){return t.setState({showError:!1})})),O(t,"addColumn",(function(){var e=t.getNextColumnName();t.setState({pendingAdd:!0}),setTimeout((function(){(0,f.storageBackend)().addColumn(t.props.tableName,e,(function(){(0,b.refreshCurrentDataView)(),t.setState({editingColumn:e,pendingAdd:!1})}),(function(e){console.warn(e),t.resetColumnState()}))}),0)})),O(t,"deleteColumn",(function(e){t.setState({pendingColumn:e}),setTimeout((function(){(0,f.storageBackend)().deleteColumn(t.props.tableName,e,t.onColumnChanged,(function(e){console.warn(e),t.resetColumnState()}))}),0)})),O(t,"editColumn",(function(e){return t.setState({editingColumn:e})})),O(t,"renameColumn",(function(e,n){t.setState({editingColumn:null,pendingColumn:e}),setTimeout((function(){t.props.tableName?(0,f.storageBackend)().renameColumn(t.props.tableName,e,n,t.onColumnChanged,(function(e){console.warn(e),t.resetColumnState()})):t.resetColumnState()}),0)})),O(t,"onColumnChanged",(function(){(0,b.refreshCurrentDataView)(),t.resetColumnState()})),O(t,"resetColumnState",(function(){t.setState({editingColumn:null,pendingAdd:!1,pendingColumn:null})})),O(t,"coerceColumn",(function(e,n){t.setState({editingColumn:null,pendingColumn:e}),setTimeout((function(){(0,f.storageBackend)().coerceColumn(t.props.tableName,e,n,t.onColumnChanged,(function(e){e.type===c.WarningType.CANNOT_CONVERT_COLUMN_TYPE?t.props.onShowWarning(e.msg):console.warn(e.msg?e.msg:e)}))}),0)})),O(t,"onChangePageNumber",(function(e){t.setState({currentPage:e-1})})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,S(n,i);var a=t.prototype;return a.UNSAFE_componentWillReceiveProps=function(e){this.props.tableName!==e.tableName&&this.setState(T)},a.getNextColumnName=function(){for(var e=this.props.tableColumns.length;this.props.tableColumns.includes("column".concat(e));)e++;return"column".concat(e)},a.getRowsForCurrentPage=function(e){return this.props.tableRecords.slice(this.state.currentPage*e,(this.state.currentPage+1)*e)},a.render=function(){var e=this,t=w(this.props.tableColumns),n=this.state.editingColumn,i=this.props.rowsPerPage||500,a=Math.max(1,Math.ceil(this.props.tableRecords.length/i)),c=this.getRowsForCurrentPage(i);return 1===t.length&&(n=this.getNextColumnName(),t.push(n)),o.default.createElement("div",null,o.default.createElement(g.default,{isVisible:this.state.showError}),o.default.createElement("div",{style:{overflow:"auto",height:"calc(100vh - 300px)"}},o.default.createElement("table",{className:(0,r.default)(v.default.table,"uitest-data-table-content")},o.default.createElement("tbody",null,o.default.createElement("tr",null,t.map((function(r){return o.default.createElement(h.default,{key:r,coerceColumn:e.coerceColumn,columnName:r,columnNames:t,deleteColumn:e.deleteColumn,editColumn:e.editColumn,isEditable:!("id"===r||e.state.pendingColumn&&e.state.pendingColumn!==r||e.state.pendingAdd),isEditing:n===r,isPending:e.state.pendingColumn===r,readOnly:e.props.readOnly,renameColumn:e.renameColumn})})),!this.props.readOnly&&o.default.createElement("th",{className:(0,r.default)(v.default.addColumnHeader,y.default.headerCell)},this.state.pendingAdd?o.default.createElement(s.default,{icon:"spinner",className:"fa-spin"}):o.default.createElement(s.default,{id:"addColumnButton",icon:"plus",className:v.default.plusIcon,onClick:this.addColumn})),!this.props.readOnly&&o.default.createElement("th",{className:y.default.headerCell},l.default.actions())),!this.props.readOnly&&o.default.createElement(p.default,{tableName:this.props.tableName,columnNames:t,showError:this.showError,hideError:this.hideError}),Object.keys(c).map((function(n){return o.default.createElement(m.default,{columnNames:t,tableName:e.props.tableName,record:JSON.parse(c[n]),key:n,readOnly:e.props.readOnly,showError:e.showError,hideError:e.hideError})}))))),a>1&&o.default.createElement("div",null,o.default.createElement(u.default,{totalPages:a,currentPage:this.state.currentPage+1,onChangePage:this.onChangePageNumber,label:l.default.paginationLabel()})))},t}(o.default.Component);O(P,"propTypes",{readOnly:i.default.bool,rowsPerPage:i.default.number,tableColumns:i.default.arrayOf(i.default.string).isRequired,tableName:i.default.string.isRequired,tableRecords:i.default.array.isRequired,onShowWarning:i.default.func.isRequired});t.UnconnectedDataTable=P,t.default=(0,a.connect)((function(e){return{tableColumns:e.data.tableColumns||[],tableRecords:e.data.tableRecords||[],tableName:e.data.tableName||""}}),(function(e){return{onShowWarning:function(t,n){e((0,d.showWarning)(t,n))}}}))(P)},3593:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedDataTableView=void 0;var r=y(n(55)),i=y(n(2)),o=y(n(1)),a=n(30),l=y(n(12)),s=y(n(79)),u=n(1579),c=n(1560),d=n(1763),f=y(n(2701)),p=n(1809),h=y(n(2938)),g=y(n(2196)),m=y(n(1187)),b=y(n(3597));function y(e){return e&&e.__esModule?e:{default:e}}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function A(e,t,n){var r;return r=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==v(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C={showDebugView:!1},S=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return A(t=e.call.apply(e,[this].concat(r))||this,"state",E({},C)),A(t,"importCsv",(function(e,n){(0,d.storageBackend)().importCsv(t.props.tableName,e,(function(){(0,p.refreshCurrentDataView)(),t.setState(C),n()}),(function(e){e.type===u.WarningType.IMPORT_FAILED?t.props.onShowWarning(e.msg):console.warn(e.msg?e.msg:e),n()}))})),A(t,"exportCsv",(function(){location.href=(0,d.storageBackend)().exportCsvUrl(t.props.tableName)})),A(t,"clearTable",(function(){(0,d.storageBackend)().clearTable(t.props.tableName,p.refreshCurrentDataView,(function(e){return console.warn(e)}))})),A(t,"toggleDebugView",(function(){var e=!t.state.showDebugView;t.setState({showDebugView:e})})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,w(n,i);var a=t.prototype;return a.UNSAFE_componentWillReceiveProps=function(e){this.props.tableName!==e.tableName&&this.setState(C)},a.getTableJson=function(){var e=[];return this.props.tableRecords.forEach((function(t){return e.push(JSON.parse(t))})),JSON.stringify(e,null,2)},a.render=function(){var e=this.props,t=e.view,n=e.tableListMap,i=e.tableName,a=e.onViewChange,d=e.libraryManifest,p=e.isRtl,y=u.DataView.TABLE===t,v=E({},{display:this.state.showDebugView?"":"none"}),_=n[i]===c.tableType.SHARED;return o.default.createElement("div",{id:"dataTable",className:(0,r.default)(b.default.container,y?"":b.default.containerHidden)},o.default.createElement("div",{className:b.default.viewHeader},o.default.createElement("span",{className:b.default.backLink},o.default.createElement("a",{id:"tableBackToOverview",className:m.default.link,onClick:function(){return a(u.DataView.OVERVIEW)}},o.default.createElement(s.default,{icon:"arrow-circle-left"})," ",l.default.backToData())),o.default.createElement("span",{className:p?b.default.debugLinkRtl:b.default.debugLink},o.default.createElement("a",{id:"uitest-tableDebugLink",className:m.default.link,onClick:this.toggleDebugView},this.state.showDebugView?l.default.dataTableTableView():l.default.dataTableDebugView()))),o.default.createElement(h.default,{isRtl:p,clearTable:this.clearTable,importCsv:this.importCsv,exportCsv:this.exportCsv,tableName:i,readOnly:_}),d.tables&&o.default.createElement(g.default,{tableName:i,libraryTables:d.tables}),o.default.createElement("div",{className:b.default.debugData,style:v},this.getTableJson()),!this.state.showDebugView&&o.default.createElement(f.default,{readOnly:_}))},t}(o.default.Component);A(S,"propTypes",{isRtl:i.default.bool.isRequired,tableColumns:i.default.arrayOf(i.default.string).isRequired,tableName:i.default.string.isRequired,tableListMap:i.default.object.isRequired,tableRecords:i.default.array.isRequired,view:i.default.oneOf(Object.keys(u.DataView)),libraryManifest:i.default.object.isRequired,onShowWarning:i.default.func.isRequired,onViewChange:i.default.func.isRequired});t.UnconnectedDataTableView=S,t.default=(0,a.connect)((function(e){return{isRtl:e.isRtl,view:e.data.view,tableColumns:e.data.tableColumns||[],tableRecords:e.data.tableRecords||[],tableName:e.data.tableName||"",tableListMap:e.data.tableListMap||{},libraryManifest:e.data.libraryManifest||{}}}),(function(e){return{onShowWarning:function(t,n){e((0,c.showWarning)(t,n))},onViewChange:function(t){e((0,c.changeView)(t))}}}))(S)},2928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(2)),i=m(n(1)),o=n(30),a=m(n(12)),l=n(759),s=m(n(780)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=b(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1312)),c=m(n(25)),d=n(1579),f=n(1560),p=m(n(2929)),h=m(n(3593));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e){return e&&e.__esModule?e:{default:e}}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var v,_,E,w,A=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,y(n,r),t.prototype.render=function(){var e={display:this.props.isVisible?"block":"none"};return i.default.createElement("div",{id:"dataWorkspaceWrapper",style:e},i.default.createElement(u.default,{id:"headers",dir:this.props.isRtl?"rtl":"ltr",hasFocus:!this.props.isRunning,className:this.props.isRunning?"is-running":""},(this.props.view===d.DataView.OVERVIEW||this.props.view===d.DataView.PROPERTIES)&&i.default.createElement(u.PaneSection,{id:"library-header",style:C.libraryHeader},i.default.createElement("span",{id:"library-header-span"},a.default.dataLibraryHeader())),i.default.createElement("div",{id:"dataModeHeaders"},i.default.createElement(u.PaneButton,{id:"data-mode-versions-header",iconClass:"fa fa-clock-o",label:a.default.showVersionsHeader(),headerHasFocus:!this.props.isRunning,isRtl:this.props.isRtl,onClick:this.props.handleVersionHistory}),i.default.createElement(u.PaneSection,{id:"workspace-header"},i.default.createElement("span",{id:"workspace-header-span"},a.default.dataWorkspaceHeader())))),i.default.createElement("div",{id:"data-mode-container",style:C.container},i.default.createElement(p.default,null),i.default.createElement(h.default,null)),i.default.createElement(s.default,{body:this.props.warningMsg,confirmText:"Ok",isOpen:this.props.isWarningDialogOpen,handleClose:this.props.onClearWarning,onConfirm:this.props.onClearWarning,title:this.props.warningTitle}))},t}(i.default.Component);v=A,_="propTypes",E={isRtl:r.default.bool.isRequired,handleVersionHistory:r.default.func.isRequired,isRunning:r.default.bool.isRequired,isVisible:r.default.bool.isRequired,warningMsg:r.default.string.isRequired,warningTitle:r.default.string.isRequired,isWarningDialogOpen:r.default.bool.isRequired,view:r.default.oneOf(Object.keys(d.DataView)),onClearWarning:r.default.func.isRequired},w=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(_,"string"),(_="symbol"==b(w)?w:w+"")in v?Object.defineProperty(v,_,{value:E,enumerable:!0,configurable:!0,writable:!0}):v[_]=E;var C={container:{position:"absolute",top:30,bottom:0,left:0,right:0,padding:0,backgroundColor:c.default.white,boxSizing:"border-box",borderLeft:"1px solid gray",borderRight:"1px solid gray",borderBottom:"1px solid gray",overflowY:"auto"},libraryHeader:{display:"block",width:270,borderRight:"1px solid gray",float:"left"}};t.default=(0,o.connect)((function(e){return{isRtl:e.isRtl,isRunning:!!e.runState.isRunning,isVisible:l.ApplabInterfaceMode.DATA===e.interfaceMode,warningMsg:e.data.warningMsg,warningTitle:e.data.warningTitle||"",isWarningDialogOpen:e.data.isWarningDialogOpen,view:e.data.view}}),(function(e){return{onClearWarning:function(){e((0,f.clearWarning)())}}}))(A);e.exports=t.default},2935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(55)),i=f(n(2)),o=f(n(1)),a=f(n(12)),l=f(n(1962)),s=n(1763),u=n(1373),c=n(1809),d=f(n(1187));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t,n){var r;return r=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==p(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={isDeleting:!1,isEditing:!1,isSaving:!1,newValue:""},y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return m(t=e.call.apply(e,[this].concat(r))||this,"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b)),m(t,"handleChange",(function(e){return t.setState({newValue:e.target.value})})),m(t,"handleEdit",(function(){return t.setState({isEditing:!0,newValue:(0,u.editableValue)(t.props.value)})})),m(t,"handleSave",(function(){t.props.hideError();try{t.setState({isSaving:!0});var e=(0,u.castValue)(t.state.newValue,!1);(0,s.storageBackend)().setKeyValue(t.props.keyName,e,t.onKeyValueChanged,(function(e){return console.warn(e)}))}catch(n){t.setState({isSaving:!1}),t.props.showError()}})),m(t,"onKeyValueChanged",(function(){t.isMounted_&&t.setState(b),(0,c.refreshCurrentDataView)()})),m(t,"handleDelete",(function(){t.setState({isDeleting:!0}),(0,s.storageBackend)().deleteKeyValue(t.props.keyName,t.onKeyValueChanged,(function(e){return console.warn(e)}))})),m(t,"handleKeyUp",(function(e){"Enter"===e.key?t.handleSave():"Escape"===e.key&&t.setState(b)})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,g(n,i);var f=t.prototype;return f.componentDidMount=function(){this.isMounted_=!0},f.componentWillUnmount=function(){this.isMounted_=!1},f.render=function(){return o.default.createElement("tr",{className:(0,r.default)(d.default.row,"uitest-kv-table-row")},o.default.createElement("td",{className:d.default.cell},JSON.stringify(this.props.keyName)),o.default.createElement("td",{className:d.default.cell},this.state.isEditing?o.default.createElement("input",{className:d.default.input,value:this.state.newValue||"",onChange:this.handleChange,onKeyUp:this.handleKeyUp}):(0,u.displayableValue)(this.props.value)),o.default.createElement("td",{className:(0,r.default)(d.default.cell,d.default.editButton)},!this.state.isDeleting&&(this.state.isEditing?o.default.createElement(l.default,{isPending:this.state.isSaving,onClick:this.handleSave,pendingText:a.default.saving(),className:(0,r.default)(d.default.button,d.default.buttonBlue,d.default.buttonBlueSave),text:a.default.save()}):o.default.createElement("button",{type:"button",className:(0,r.default)(d.default.button,d.default.buttonWhite,d.default.buttonWhiteEdit),onClick:this.handleEdit},a.default.edit())),!this.state.isSaving&&o.default.createElement(l.default,{isPending:this.state.isDeleting,onClick:this.handleDelete,pendingStyle:{float:"right"},pendingText:a.default.deletingWithEllipsis(),className:(0,r.default)(d.default.button,d.default.buttonRed),text:a.default.delete()})))},t}(o.default.Component);m(y,"propTypes",{keyName:i.default.string.isRequired,value:i.default.any,showError:i.default.func.isRequired,hideError:i.default.func.isRequired});t.default=y;e.exports=t.default},2933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(2)),i=a(n(1)),o=a(n(1187));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u,c,d,f,p=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,s(n,r),t.prototype.render=function(){return i.default.createElement("a",{className:o.default.link,onClick:this.props.onClick},this.props.name)},t}(i.default.Component);u=p,c="propTypes",d={name:r.default.string.isRequired,onClick:r.default.func.isRequired},f=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(c,"string"),(c="symbol"==l(f)?f:f+"")in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d;t.default=p;e.exports=t.default},2932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(2)),i=f(n(1)),o=f(n(12)),a=n(1579),l=n(1763),s=f(n(2163)),u=f(n(2933)),c=n(1809),d=f(n(1187));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,n){var r;return r=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==p(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return g(t=e.call.apply(e,[this].concat(r))||this,"handleEdit",(function(){t.props.onViewChange(a.DataView.TABLE,t.props.tableName)})),g(t,"handleDelete",(function(){return(0,l.storageBackend)().deleteTable(t.props.tableName,c.refreshCurrentDataView)})),t}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,h(n,r),t.prototype.render=function(){return i.default.createElement("tr",{className:d.default.row},i.default.createElement("td",{className:d.default.cell},i.default.createElement(u.default,{name:this.props.tableName,onClick:this.handleEdit})),i.default.createElement("td",{className:d.default.cell},i.default.createElement(s.default,{title:o.default.deleteTable(),body:o.default.deleteTableConfirm(),buttonText:o.default.delete(),containerStyle:{whiteSpace:"normal",width:103},onConfirmDelete:this.handleDelete})))},t}(i.default.Component);g(m,"propTypes",{onViewChange:r.default.func.isRequired,tableName:r.default.string.isRequired,tableType:r.default.string});t.default=m;e.exports=t.default},2480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(55)),i=p(n(51)),o=p(n(2)),a=p(n(1)),l=p(n(12)),s=p(n(1962)),u=n(1763),c=n(1373),d=n(1809),f=p(n(1187));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t,n){var r;return r=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==h(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={isDeleting:!1,isEditing:!1,isSaving:!1,newInput:{}},v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return b(t=e.call.apply(e,[this].concat(r))||this,"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},y)),b(t,"handleSave",(function(){t.props.hideError();try{var e=i.default.mapValues(t.state.newInput,(function(e){return(0,c.castValue)(e,!1)}));t.setState({isSaving:!0}),(0,u.storageBackend)().updateRecord(t.props.tableName,e,t.onRecordChanged,(function(e){return console.warn(e)}))}catch(n){t.setState({isSaving:!1}),t.props.showError()}})),b(t,"onRecordChanged",(function(){t.isMounted_&&t.setState(y),(0,d.refreshCurrentDataView)()})),b(t,"handleEdit",(function(){t.setState({isEditing:!0,newInput:i.default.mapValues(t.props.record,c.editableValue)})})),b(t,"handleDelete",(function(){t.setState({isDeleting:!0}),(0,u.storageBackend)().deleteRecord(t.props.tableName,t.props.record,t.onRecordChanged,(function(e){return console.warn(e)}))})),b(t,"handleKeyUp",(function(e){"Enter"===e.key?t.handleSave():"Escape"===e.key&&t.setState(y)})),t}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,m(n,o);var p=t.prototype;return p.componentDidMount=function(){this.isMounted_=!0},p.componentWillUnmount=function(){this.isMounted_=!1},p.shouldComponentUpdate=function(e,t){var n=!i.default.isEqual(this.props,e),r=!i.default.isEqual(this.state,t);return n||r},p.handleChange=function(e,t){var n=Object.assign({},this.state.newInput,b({},e,t.target.value));this.setState({newInput:n})},p.render=function(){var e=this;return a.default.createElement("tr",{className:(0,r.default)(f.default.row,"uitest-data-table-row")},this.props.columnNames.map((function(t){return a.default.createElement("td",{key:t,className:f.default.cell},e.state.isEditing&&"id"!==t?a.default.createElement("input",{className:f.default.input,value:e.state.newInput[t]||"",onChange:function(n){return e.handleChange(t,n)},onKeyUp:e.handleKeyUp}):(0,c.displayableValue)(e.props.record[t]))})),!this.props.readOnly&&a.default.createElement("td",{className:f.default.cell}),!this.props.readOnly&&a.default.createElement("td",{className:(0,r.default)(f.default.cell,f.default.editButton)},!this.state.isDeleting&&(this.state.isEditing?a.default.createElement(s.default,{isPending:this.state.isSaving,onClick:this.handleSave,pendingText:l.default.saving(),className:(0,r.default)(f.default.button,f.default.buttonBlue,f.default.buttonBlueSave),text:l.default.save()}):a.default.createElement("button",{type:"button",className:(0,r.default)(f.default.button,f.default.buttonWhite,f.default.buttonWhiteEdit),onClick:this.handleEdit},l.default.edit())),!this.state.isSaving&&a.default.createElement(s.default,{isPending:this.state.isDeleting,onClick:this.handleDelete,pendingStyle:{float:"right"},pendingText:l.default.deletingWithEllipsis(),className:(0,r.default)(f.default.button,f.default.buttonRed),text:l.default.delete()})))},t}(a.default.Component);b(v,"propTypes",{columnNames:o.default.array.isRequired,tableName:o.default.string.isRequired,record:o.default.object.isRequired,readOnly:o.default.bool,showError:o.default.func.isRequired,hideError:o.default.func.isRequired});t.default=v;e.exports=t.default},3589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedKVPairs=void 0;var r=h(n(51)),i=h(n(2)),o=h(n(1)),a=n(30),l=h(n(12)),s=n(1579),u=n(1560),c=h(n(2934)),d=h(n(2367)),f=h(n(2935)),p=h(n(1187));function h(e){return e&&e.__esModule?e:{default:e}}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t,n){var r;return r=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return b(t=e.call.apply(e,[this].concat(r))||this,"state",{showDebugView:!1,showError:!1}),b(t,"showError",(function(){return t.setState({showError:!0})})),b(t,"hideError",(function(){return t.setState({showError:!1})})),b(t,"toggleDebugView",(function(){var e=!t.state.showDebugView;t.setState({showDebugView:e})})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,m(n,i);var a=t.prototype;return a.getKeyValueJson=function(){var e=r.default.mapValues(this.props.keyValueData,JSON.parse);return JSON.stringify(e,null,2)},a.render=function(){var e=this,t={display:this.state.showDebugView?"none":""},n=o.default.createElement("table",{style:t,className:"uitest-kv-table"},o.default.createElement("tbody",null,o.default.createElement("tr",null,o.default.createElement("th",{className:p.default.headerCell},l.default.dataTableKey()),o.default.createElement("th",{className:p.default.headerCell},l.default.dataTableValue()),o.default.createElement("th",{className:p.default.headerCell},l.default.actions())),o.default.createElement(c.default,{onShowWarning:this.props.onShowWarning,showError:this.showError,hideError:this.hideError}),Object.keys(this.props.keyValueData).map((function(t){return o.default.createElement(f.default,{key:t,keyName:t,value:JSON.parse(e.props.keyValueData[t]),showError:e.showError,hideError:e.hideError})}))));return o.default.createElement("div",null,o.default.createElement(d.default,{isVisible:this.state.showError}),n)},t}(o.default.Component);b(y,"propTypes",{view:i.default.oneOf(Object.keys(s.DataView)),keyValueData:i.default.object.isRequired,onShowWarning:i.default.func.isRequired,onViewChange:i.default.func.isRequired});t.UnconnectedKVPairs=y,t.default=(0,a.connect)((function(e){return{view:e.data.view,keyValueData:e.data.keyValueData||{}}}),(function(e){return{onShowWarning:function(t,n){e((0,u.showWarning)(t,n))},onViewChange:function(t){e((0,u.changeView)(t))}}}))(y)},2475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(55)),i=u(n(2)),o=u(n(1)),a=u(n(79)),l=u(n(2476)),s=u(n(3178));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return f(t=e.call.apply(e,[this].concat(r))||this,"state",{collapsed:!0}),f(t,"toggleCollapsed",(function(){return t.setState({collapsed:!t.state.collapsed})})),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,d(n,i);var u=t.prototype;return u.UNSAFE_componentWillReceiveProps=function(e){(e.forceExpanded&&this.state.collapsed||!e.forceExpanded&&!this.state.collapsed)&&this.toggleCollapsed()},u.render=function(){var e=this,t=this.state.collapsed?"caret-right":"caret-down";return o.default.createElement("div",null,o.default.createElement("a",{className:(0,r.default)(s.default.categoryName,"uitest-dataset-category"),onClick:this.toggleCollapsed},o.default.createElement(a.default,{className:"fa fa-fw",icon:t}),o.default.createElement("span",null,this.props.name),o.default.createElement("span",{className:s.default.tableNumber},this.props.datasets.length," ",1===this.props.datasets.length?"table":"tables")),!this.state.collapsed&&o.default.createElement("div",{className:s.default.collapsibleContainer},this.props.description&&o.default.createElement("span",{className:s.default.categoryDescription},this.props.description),this.props.datasets.map((function(t){return o.default.createElement(l.default,{key:t,name:t,importTable:e.props.importTable})}))))},t}(o.default.Component);f(p,"propTypes",{name:i.default.string.isRequired,datasets:i.default.arrayOf(i.default.string).isRequired,description:i.default.string,importTable:i.default.func.isRequired,forceExpanded:i.default.bool});t.default=p;e.exports=t.default},2476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(168)),i=g(n(2)),o=g(n(1)),a=n(30),l=g(n(105)),s=g(n(12)),u=g(n(79)),c=g(n(25)),d=g(n(138)),f=n(1560),p=n(1373),h=g(n(2196));function g(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function _(e,t,n){var r;return r=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==m(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return _(t=e.call.apply(e,[this].concat(r))||this,"state",{collapsed:!0}),_(t,"toggleCollapsed",(function(){return t.setState({collapsed:!t.state.collapsed})})),t}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,v(n,i),t.prototype.render=function(){var e=this,t=this.props,n=t.name,i=t.libraryManifest,a=t.locale,l=t.onShowPreview,c=t.importTable,f=this.state.collapsed?"caret-right":"caret-down",g=(0,p.getDatasetInfo)(n,i.tables);return g&&(g.published||d.default.isEnabled(d.default.SHOW_UNPUBLISHED_DATASET_TABLES))?(a&&r.default.locale(a),o.default.createElement("div",null,o.default.createElement("a",{style:w.tableName,onClick:this.toggleCollapsed,className:"uitest-dataset-table-link"},o.default.createElement(u.default,{className:"fa fa-fw",icon:f}),o.default.createElement("span",null,n)),!this.state.collapsed&&o.default.createElement("div",{style:w.collapsibleContainer},o.default.createElement("div",{style:w.tableDescription},g.lastUpdated&&o.default.createElement("span",{style:w.lastUpdated},s.default.lastUpdatedWithTime({time:(0,r.default)(g.lastUpdated).fromNow()})),o.default.createElement(h.default,{tableName:n,libraryTables:i.tables}),g.sourceUrl&&o.default.createElement("span",{style:{display:"block"}},s.default.dataSource()+": ",o.default.createElement("a",{href:g.sourceUrl},g.sourceText||g.sourceUrl))),o.default.createElement("div",null,o.default.createElement("button",{style:w.preview,type:"button",onClick:function(){return l(e.props.name)},className:"uitest-dataset-preview-btn"},s.default.preview()),o.default.createElement("button",{style:w.import,type:"button",onClick:function(){return c(g)}},s.default.import()))))):null},t}(o.default.Component);_(E,"propTypes",{name:i.default.string.isRequired,importTable:i.default.func.isRequired,libraryManifest:i.default.object.isRequired,locale:i.default.string,onShowPreview:i.default.func.isRequired});var w={tableName:y(y({},l.default["main-font-bold"]),{},{cursor:"pointer",color:c.default.dark_charcoal}),tableDescription:y(y({},l.default["main-font-regular"]),{},{color:c.default.dark_charcoal,wordBreak:"break-word"}),preview:y(y({backgroundColor:c.default.background_gray,borderColor:c.default.lighter_gray},l.default["main-font-regular"]),{},{fontSize:"14px",padding:"1px 7px 2px",height:"30px",width:"90px",margin:10,marginLeft:0}),import:y(y({backgroundColor:c.default.orange,border:"none"},l.default["main-font-semi-bold"]),{},{fontSize:"14px",color:c.default.white,padding:"1px 7px 2px",height:"30px",width:"90px",margin:10,marginRight:0}),collapsibleContainer:{paddingLeft:"16px"},lastUpdated:y(y({},l.default["main-font-regular"]),{},{fontSize:"12px",color:c.default.light_gray,display:"inline-block"})};t.default=(0,a.connect)((function(e){return{libraryManifest:e.data.libraryManifest||{},locale:e.pageConstants&&e.pageConstants.locale}}),(function(e){return{onShowPreview:function(t){e((0,f.showPreview)(t))}}}))(E);e.exports=t.default},2937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(2)),i=f(n(1)),o=n(30),a=f(n(170)),l=f(n(12)),s=n(1560),u=f(n(2701)),c=n(1373),d=f(n(2196));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var g,m,b,y,v=function(e){function t(){return e.apply(this,arguments)||this}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,h(n,r);var o=t.prototype;return o.importTable=function(e){this.props.importTable(e),this.props.onClose()},o.render=function(){var e=this,t=this.props,n=t.isPreviewOpen,r=t.tableName,o=t.libraryManifest,s=t.onClose;if(!n)return null;var f=(0,c.getDatasetInfo)(r,o.tables);return i.default.createElement(a.default,{isOpen:!0,handleClose:s,fullWidth:!0,fullHeight:!0},i.default.createElement("h1",null,r),i.default.createElement(d.default,{tableName:r,libraryTables:o.tables}),i.default.createElement("div",{style:{overflow:"scroll",maxHeight:"70%"}},i.default.createElement(u.default,{readOnly:!0,rowsPerPage:100})),i.default.createElement("button",{id:"ui-test-import-table-btn",type:"button",onClick:function(){return e.importTable(f)}},l.default.import()))},t}(i.default.Component);g=v,m="propTypes",b={importTable:r.default.func.isRequired,libraryManifest:r.default.object.isRequired,isPreviewOpen:r.default.bool.isRequired,tableName:r.default.string.isRequired,onClose:r.default.func.isRequired},y=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(m,"string"),(m="symbol"==p(y)?y:y+"")in g?Object.defineProperty(g,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[m]=b;t.default=(0,o.connect)((function(e){return{isPreviewOpen:e.data.isPreviewOpen,tableName:e.data.tableName||"",libraryManifest:e.data.libraryManifest||{}}}),(function(e){return{onClose:function(){e((0,s.hidePreview)())}}}))(v);e.exports=t.default},2938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(55)),i=f(n(2)),o=f(n(1)),a=f(n(12)),l=f(n(2163)),s=f(n(2481)),u=f(n(3594)),c=f(n(1187)),d=f(n(3596));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var g,m,b,y,v=function(e){function t(){return e.apply(this,arguments)||this}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,h(n,i),t.prototype.render=function(){return o.default.createElement("div",{className:d.default.container},o.default.createElement("div",{className:d.default.tableNameWrapper},o.default.createElement("span",{className:d.default.tableName},this.props.tableName))," ",o.default.createElement("div",{className:d.default.buttonWrapper},o.default.createElement(u.default,{key:this.props.tableName}),!this.props.readOnly&&o.default.createElement(l.default,{body:a.default.confirmClearTable(),buttonText:a.default.clearTable(),containerStyle:{width:103,marginLeft:10},buttonId:"clearTableButton",onConfirmDelete:this.props.clearTable,title:a.default.clearTable()}),!this.props.readOnly&&o.default.createElement(s.default,{importCsv:this.props.importCsv,containerStyle:{marginLeft:10}}),o.default.createElement("button",{type:"button",onClick:this.props.exportCsv,className:(0,r.default)(d.default.exportButton,c.default.button,c.default.buttonWhite,this.props.isRtl?d.default.exportButtonRtl:{})},a.default.exportToCSV())),o.default.createElement("div",{className:d.default.clearfix}))},t}(o.default.Component);g=v,m="propTypes",b={isRtl:i.default.bool.isRequired,clearTable:i.default.func.isRequired,exportCsv:i.default.func.isRequired,importCsv:i.default.func.isRequired,tableName:i.default.string.isRequired,readOnly:i.default.bool.isRequired},y=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(m,"string"),(m="symbol"==p(y)?y:y+"")in g?Object.defineProperty(g,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[m]=b;t.default=v;e.exports=t.default},2196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(804),i=s(n(2)),o=s(n(1)),a=n(1373),l=s(n(12));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d,f,p,h,g=t.default=function(e){function t(){return e.apply(this,arguments)||this}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,c(n,i),t.prototype.render=function(){var e=this.props,t=e.tableName,n=e.libraryTables,i=(0,a.getDatasetInfo)(t,n);return i?o.default.createElement("div",null,o.default.createElement("p",null,i.description),i.docUrl&&o.default.createElement(r.Link,{href:i.docUrl,openInNewTab:!0,external:!0},l.default.moreInfo())):null},t}(o.default.Component);d=g,f="propTypes",p={tableName:i.default.string.isRequired,libraryTables:i.default.array.isRequired},h=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(f,"string"),(f="symbol"==u(h)?h:h+"")in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,e.exports=t.default},1373:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnType=t.ChartType=void 0,t.castValue=function(e,t){if(""===(e=e.trim()))return;if("undefined"===e)return;if("null"===e)return null;try{var r=JSON.parse(e);if("object"===n(r))throw new Error("Invalid entry type: object");return r}catch(i){if(i instanceof SyntaxError&&t)return e;throw i}},t.displayableValue=function(e){return null===e?"null":void 0===e?"undefined":JSON.stringify(e)},t.editableValue=function(e){if(void 0===e)return"undefined";return JSON.stringify(e)},t.getDatasetInfo=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).find((function(t){return t.name===e}))},t.ignoreMissingValues=function(e,t){var n=e=e||[];return(t=t||[]).forEach((function(e){n=n.filter((function(t){return!r(t[e])}))})),n},t.isBlank=r,t.isBoolean=function(e){return!0===e||!1===e||"true"===e||"false"===e},t.isNumber=function(e){return!isNaN(e)&&!isNaN(parseFloat(e))},t.toBoolean=function(e){if(!0===e||"true"===e)return!0;if(!1===e||"false"===e)return!1;throw new Error("Unable to convert to boolean")};t.ColumnType={STRING:"string",NUMBER:"number",BOOLEAN:"boolean"},t.ChartType={NONE:0,BAR_CHART:1,HISTOGRAM:2,SCATTER_PLOT:3,CROSS_TAB:4};function r(e){return void 0===e||""===e||null===e}},3182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_CROSSTAB_ROWS=t.MAX_CROSSTAB_COLUMNS=t.MAX_CROSSTAB_CELLS=void 0,t.createPivotTable=E,t.default=_,t.getColorForValue=w;var r=c(n(2)),i=c(n(1)),o=c(n(105)),a=c(n(12)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=d(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(25)),s=n(2702);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){var r;return r=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==d(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=t.MAX_CROSSTAB_COLUMNS=150,y=t.MAX_CROSSTAB_ROWS=1e4,v=t.MAX_CROSSTAB_CELLS=1e4;function _(e){if(!e.records||!e.selectedColumn1||!e.selectedColumn2)return null;var t=E(e.records,e.numericColumns,e.selectedColumn1,e.selectedColumn2),n=t.chartData,r=t.columns,o=[];n.forEach((function(t){Object.entries(t).forEach((function(t){var n=t[0],r=t[1];"number"==typeof r&&n!==e.selectedColumn1&&o.push(r)}))}));var l=99/(r.length-1)+"%",u=o.reduce((function(e,t){return{min:Math.min(t,e.min),max:Math.max(t,e.max)}}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),c=u.min,d=u.max;return r.length>b?i.default.createElement("div",null,a.default.crossTabTooMuchYData()):n.length>y?i.default.createElement("div",null,a.default.crossTabTooMuchXData()):r.length*n.length>v?i.default.createElement("div",null,a.default.crossTabTooManyCellsData()):i.default.createElement("div",{id:s.CROSS_TAB_CHART_AREA,style:A},i.default.createElement("h1",{style:C},e.chartTitle),i.default.createElement("table",{style:S},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",null," "),i.default.createElement("td",{style:g(g({},T),x),colSpan:r.length-1},e.selectedColumn2)),i.default.createElement("tr",null,r.map((function(e,t){return i.default.createElement("td",{key:e,style:0===t?g(g({},P),x):T},e)}))),n.map((function(t){return i.default.createElement("tr",{key:t[e.selectedColumn1]},r.map((function(e,n){var r=t[e],o=0===n?g({},P):g(g({},R),{},{width:l,backgroundColor:w(r,c,d)});return i.default.createElement("td",{key:e,style:o},r)})))})))))}function E(e,t,n,r){var i,o={},a=new Set(e.map((function(e){return e[r]})));return e.forEach((function(e){var t=e[n],i=e[r];o[t]||(o[t]=m({},n,t),a.forEach((function(e){return o[t][e]=0}))),o[t][i]++})),(i=t.includes(r)?f(a).sort((function(e,t){return e-t})):f(a).sort()).unshift(n),{chartData:Object.values(o).sort((function(e,t){return e[n]>t[n]?1:-1})),columns:i}}function w(e,t,n){if("number"!=typeof e)return"white";return"hsl(217, 89%, ".concat(100-(e-t)/(n-t)*44,"%)")}_.propTypes={records:r.default.array.isRequired,numericColumns:r.default.arrayOf(r.default.string).isRequired,chartTitle:r.default.string,selectedColumn1:r.default.string,selectedColumn2:r.default.string};var A={width:"100%"},C=g(g({},o.default["main-font-bold"]),{},{fontSize:16,lineHeight:"16px",color:"black"}),S={width:"100%"},O={height:"2em",border:"1px solid black",textAlign:"center"},T=g(g({},O),{},{backgroundColor:l.lightest_gray,color:"black"}),P=g(g({},O),{},{backgroundColor:l.dark_charcoal,color:"white",padding:"0 1em",whiteSpace:"nowrap"}),R=g(g({},O),{},{overflow:"hidden"}),x=g({},o.default["main-font-semi-bold"])},2939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=n(1373),a=s(n(3182)),l=s(n(2940));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var d,f,p,h,g=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,c(n,r),t.prototype.render=function(){return this.props.chartType===o.ChartType.CROSS_TAB?i.default.createElement(a.default,{records:(0,o.ignoreMissingValues)(this.props.records,[this.props.selectedColumn1,this.props.selectedColumn2]),numericColumns:this.props.numericColumns,chartTitle:this.props.chartTitle,selectedColumn1:this.props.selectedColumn1,selectedColumn2:this.props.selectedColumn2}):i.default.createElement(l.default,{style:{height:"100%"},records:this.props.records,numericColumns:this.props.numericColumns,chartType:this.props.chartType,bucketSize:this.props.bucketSize,chartTitle:this.props.chartTitle,selectedColumn1:this.props.selectedColumn1,selectedColumn2:this.props.selectedColumn2})},t}(i.default.Component);d=g,f="propTypes",p={records:r.default.array.isRequired,numericColumns:r.default.arrayOf(r.default.string).isRequired,chartType:r.default.number.isRequired,bucketSize:r.default.string,chartTitle:r.default.string,selectedColumn1:r.default.string,selectedColumn2:r.default.string},h=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(f,"string"),(f="symbol"==u(h)?h:h+"")in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p;t.default=g;e.exports=t.default},2941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),i=s(n(1)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=u(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913)),a=s(n(12));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t,n){var r;return r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){return e.apply(this,arguments)||this}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,f(n,r),t.prototype.render=function(){var e=this,t=this.props.inlineLabel?d(d({},o.description),{},{float:"left",marginTop:"5px",paddingRight:"5px"}):o.description,n={paddingLeft:this.props.inlineLabel?10:20,float:"left",marginBottom:8};return i.default.createElement("div",{style:n},i.default.createElement("label",{style:t},this.props.displayName),i.default.createElement("select",{value:this.props.value,onChange:this.props.onChange},i.default.createElement("option",{value:""},a.default.select()),this.props.options.map((function(t){return i.default.createElement("option",{key:t,disabled:e.props.disabledOptions&&e.props.disabledOptions.includes(t),value:t},e.props.getDisplayNameForOption?e.props.getDisplayNameForOption(t):t)}))))},t}(i.default.Component);p(h,"propTypes",{displayName:r.default.string.isRequired,onChange:r.default.func.isRequired,options:r.default.array.isRequired,disabledOptions:r.default.array,getDisplayNameForOption:r.default.func,value:r.default.oneOfType([r.default.string,r.default.number]),inlineLabel:r.default.bool});t.default=h;e.exports=t.default},2940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(51)),i=c(n(2)),o=c(n(1)),a=c(n(2627)),l=c(n(12)),s=n(1373),u=n(2702);function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t,n){var r;return r=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==d(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return p(t=e.call.apply(e,[this].concat(i))||this,"chartArea",null),p(t,"aggregateRecordsByColumn",(function(e,n){var i=r.default.countBy(e,(function(e){return e[n]})),o=t.props.numericColumns.includes(n),a=r.default.map(i,(function(e,t){return p(p({},n,o?parseFloat(t):t),"count",e)}));return r.default.sortBy(a,n)})),p(t,"debouncedUpdate",r.default.debounce((function(){return t.updateChart()}),50)),t}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,f(n,i);var c=t.prototype;return c.componentDidMount=function(){this.updateChart(),window.addEventListener("resize",this.debouncedUpdate)},c.componentDidUpdate=function(){this.updateChart()},c.componentWillUnmount=function(){window.removeEventListener("resize",this.debouncedUpdate)},c.updateChart=function(){if(this.chartArea){var e,t,n,r={title:this.props.chartTitle||"",legend:{position:"none"},hAxis:{format:"#.#"},vAxis:{format:"#.#"}};switch(this.props.chartType){case s.ChartType.BAR_CHART:if(this.props.selectedColumn1){e=new a.default.MaterialBarChart(this.chartArea);var i=(0,s.ignoreMissingValues)(this.props.records,[this.props.selectedColumn1]);t=this.aggregateRecordsByColumn(i,this.props.selectedColumn1),r.hAxis.title=this.props.selectedColumn1,r.vAxis.title=l.default.count(),n=[this.props.selectedColumn1,"count"]}break;case s.ChartType.HISTOGRAM:this.props.selectedColumn1&&this.props.bucketSize&&(r.histogram={bucketSize:this.props.bucketSize},e=new a.default.Histogram(this.chartArea),t=(0,s.ignoreMissingValues)(this.props.records,[this.props.selectedColumn1]),r.hAxis.title=this.props.selectedColumn1,r.hAxis.titleTextStyle={italic:!1},r.vAxis.title=l.default.count(),r.vAxis.titleTextStyle={italic:!1},n=[this.props.selectedColumn1]);break;case s.ChartType.SCATTER_PLOT:this.props.selectedColumn1&&this.props.selectedColumn2&&(e=new a.default.MaterialScatterChart(this.chartArea),t=(0,s.ignoreMissingValues)(this.props.records,[this.props.selectedColumn1,this.props.selectedColumn2]),r.hAxis.title=this.props.selectedColumn1,r.vAxis.title=this.props.selectedColumn2,n=[this.props.selectedColumn1,this.props.selectedColumn2]);break;default:console.warn("unknown Google Chart type: ".concat(this.props.chartType))}e&&t&&e.drawChart(t,n,r)}},c.render=function(){var e=this;return o.default.createElement("div",{id:u.GOOGLE_CHART_AREA,ref:function(t){return e.chartArea=t},style:this.props.style})},t}(o.default.Component);p(h,"propTypes",{style:i.default.object,records:i.default.array.isRequired,numericColumns:i.default.arrayOf(i.default.string).isRequired,chartType:i.default.number.isRequired,bucketSize:i.default.string,chartTitle:i.default.string,selectedColumn1:i.default.string,selectedColumn2:i.default.string});t.default=h;e.exports=t.default},2942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(55)),i=b(n(168)),o=b(n(2)),a=b(n(1)),l=n(30),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=y(e)&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(377)),u=b(n(1962)),c=b(n(170)),d=n(2428),f=b(n(12)),p=n(1373),h=n(2702),g=b(n(1187));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function b(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),l=new k(r||[]);return i(a,"_invoke",{value:P(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function b(){}function _(){}function E(){}var w={};u(w,a,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(D([])));C&&C!==n&&r.call(C,a)&&(w=C);var S=E.prototype=b.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,a,l){var s=d(e[i],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==y(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function P(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?g:p,u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(y(t)+" is not iterable")}return _.prototype=E,i(S,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:_,configurable:!0}),_.displayName=u(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},O(T.prototype),u(T.prototype,l,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new T(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),u(S,s,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return l.type="throw",l.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function _(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}function E(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){_(o,r,i,a,l,"next",e)}function l(e){_(o,r,i,a,l,"throw",e)}a(void 0)}))}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(e,t,n){var r;return r=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==y(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S={isSnapshotOpen:!1,isCopyPending:!1,isSavePending:!1,imageSrc:n(3183)},O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return C(t=e.call.apply(e,[this].concat(r))||this,"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},S)),C(t,"handleOpen",(function(){t.setState({isSnapshotOpen:!0}),t.getImageFromChart()})),C(t,"handleClose",(function(){return t.setState(S)})),C(t,"getImageFromChart",(function(){t.props.chartType===p.ChartType.CROSS_TAB?t.getImageFromCrossTab():t.getImageFromGoogleChart()})),C(t,"getImageFromCrossTab",(function(){var e=document.getElementById(h.CROSS_TAB_CHART_AREA);if(e){(0,d.html2canvas)(e,{background:"#fff"}).then((function(e){var n=e.toDataURL("image/png");t.isMounted_&&t.setState({imageSrc:n})}))}})),C(t,"getImageFromGoogleChart",(function(){var e=document.getElementById(h.GOOGLE_CHART_AREA),n=e&&e.querySelectorAll("svg"),r=n&&n[0];r&&s.svgToDataURI(r,"image/png",{renderer:"native"}).then((function(e){t.isMounted_&&t.setState({imageSrc:e})}))})),C(t,"getPngBlob",E(v().mark((function e(){var n,r,i,o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.refs.snapshot){e.next=3;break}return e.abrupt("return");case 3:return r={background:"#fff"},e.next=6,(0,d.html2canvas)(n,r);case 6:return i=e.sent,e.next=9,new Promise((function(e){return i.toBlob(e)}));case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)})))),C(t,"copy",E(v().mark((function e(){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({isCopyPending:!0}),e.next=3,t.getPngBlob();case 3:return n=e.sent,e.next=6,navigator.clipboard.write([new ClipboardItem({"image/png":n})]);case 6:t.setState({isCopyPending:!1});case 7:case"end":return e.stop()}}),e)})))),C(t,"save",E(v().mark((function e(){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({isSavePending:!0}),e.next=3,t.getPngBlob();case 3:n=e.sent,s.downloadBlobAsPng(n),t.setState({isSavePending:!1});case 6:case"end":return e.stop()}}),e)})))),t}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,A(n,o);var l=t.prototype;return l.componentDidMount=function(){this.isMounted_=!0},l.componentWillUnmount=function(){this.isMounted_=!1},l.render=function(){return a.default.createElement("div",null,a.default.createElement("button",{type:"button",className:(0,r.default)(g.default.button,g.default.buttonGray),onClick:this.handleOpen},f.default.dataVisualizerViewSnapshot()),a.default.createElement(c.default,{isOpen:this.state.isSnapshotOpen,handleClose:this.handleClose,fullWidth:!0,fullHeight:!0},a.default.createElement("div",{ref:"snapshot"},a.default.createElement("h1",null,this.props.chartTitle),a.default.createElement("img",{style:{maxHeight:"50vh"},src:this.state.imageSrc,alt:f.default.dataVisualizerAltText({chartType:this.props.chartTypeName,values:this.props.selectedOptions,title:this.props.chartTitle})}),a.default.createElement("p",null,f.default.dataVisualizerSnapshotDescription({date:(0,i.default)().format("YYYY/MM/DD"),table:this.props.tableName,project:this.props.projectName})),a.default.createElement("p",null,this.props.selectedOptions)),a.default.createElement(u.default,{isPending:this.state.isCopyPending,onClick:this.copy,pendingText:"Please Wait",className:(0,r.default)(g.default.button,g.default.buttonBlue),text:"Copy"}),a.default.createElement(u.default,{isPending:this.state.isSavePending,onClick:this.save,pendingText:"Please Wait",className:(0,r.default)(g.default.button,g.default.buttonBlue),text:"Save"})))},t}(a.default.Component);C(O,"propTypes",{chartType:o.default.oneOf(Object.values(p.ChartType)).isRequired,chartTypeName:o.default.string.isRequired,chartTitle:o.default.string.isRequired,selectedOptions:o.default.string.isRequired,tableName:o.default.string.isRequired,projectName:o.default.string.isRequired});t.default=(0,l.connect)((function(e){return{tableName:e.data.tableName||"",projectName:e.project.projectName||""}}))(O);e.exports=t.default},3594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedVisualizerModal=t.OperatorType=t.INITIAL_STATE=void 0;var r=A(n(55)),i=A(n(51)),o=A(n(2814)),a=A(n(2)),l=A(n(1)),s=n(3181),u=n(30),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=C(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1913)),d=A(n(105)),f=A(n(170)),p=A(n(12)),h=A(n(25)),g=n(1373),m=n(3182),b=A(n(2939)),y=A(n(2941)),v=A(n(3183)),_=A(n(2942)),E=A(n(1187));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function A(e){return e&&e.__esModule?e:{default:e}}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function P(e,t,n){var r;return r=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==C(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=t.OperatorType={EQUAL:0,LESS_THAN:1,LESS_THAN_OR_EQUAL:2,GREATER_THAN:3,GREATER_THAN_OR_EQUAL:4},x=t.INITIAL_STATE={isVisualizerOpen:!1,chartTitle:"",chartType:g.ChartType.NONE,bucketSize:"",selectedColumn1:"",selectedColumn2:"",filterColumn:"",filterOperator:R.EQUAL,filterValue:"",screen:""},I=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return P(t=e.call.apply(e,[this].concat(r))||this,"state",O({},x)),P(t,"handleOpen",(function(){return t.setState({isVisualizerOpen:!0})})),P(t,"handleClose",(function(){return t.setState({isVisualizerOpen:!1})})),P(t,"canDisplayChart",(function(){switch(t.state.chartType){case g.ChartType.BAR_CHART:return!!t.state.selectedColumn1;case g.ChartType.HISTOGRAM:return!(!t.state.selectedColumn1||!t.state.bucketSize);case g.ChartType.SCATTER_PLOT:case g.ChartType.CROSS_TAB:return!(!t.state.selectedColumn1||!t.state.selectedColumn2);default:return!1}})),P(t,"parseRecords",(0,o.default)((function(e){var t=[];return e.forEach((function(e){e&&t.push(JSON.parse(e))})),t}))),P(t,"findNumericColumns",(0,o.default)((function(e,t){var n=function(e,t){return e.every((function(e){return n=e[t],(0,g.isBlank)(n)||"number"==typeof n;var n}))};return t.filter((function(t){return n(e,t)}))}))),P(t,"getValuesForFilterColumn",(0,o.default)((function(e,t,n){var r=[];return r=Array.from(new Set(e.map((function(e){return e[t]})))),n?r.sort((function(e,t){return e-t})):r.sort(),r=r.map((function(e){return"string"==typeof e?'"'.concat(e,'"'):"".concat(e)}))}))),P(t,"filterRecords",(0,o.default)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R.EQUAL;switch(e=(0,g.isNumber)(r)?parseFloat(r):(0,g.isBoolean)(r)?(0,g.toBoolean)(r):"undefined"===r?void 0:"null"===r?null:r.slice(1,-1),i){case R.GREATER_THAN:return t.filter((function(t){return t[n]>e}));case R.GREATER_THAN_OR_EQUAL:return t.filter((function(t){return t[n]>=e}));case R.LESS_THAN:return t.filter((function(t){return t[n]<e}));case R.LESS_THAN_OR_EQUAL:return t.filter((function(t){return t[n]<=e}));default:return t.filter((function(t){return t[n]===e}))}}))),P(t,"getValuesByColumn",(0,o.default)((function(e,t,n){return n!==g.ChartType.CROSS_TAB?void 0:e.reduce((function(e,n){return t.forEach((function(t){e[t]||(e[t]=new Set),e[t].add(n[t])})),e}),new Set)}))),P(t,"tooBigColumns",(0,o.default)((function(e,t,n){if(t){var r=n?t[n].size:0;return e.filter((function(e){return t[e].size>=m.MAX_CROSSTAB_COLUMNS||r*t[e].size>=m.MAX_CROSSTAB_CELLS}))}return[]}))),t}var n,a;a=e,(n=t).prototype=Object.create(a.prototype),n.prototype.constructor=n,T(n,a);var u=t.prototype;return u.getDisplayNameForChartType=function(e){switch(e){case g.ChartType.BAR_CHART:return p.default.barChart();case g.ChartType.HISTOGRAM:return p.default.histogram();case g.ChartType.SCATTER_PLOT:return p.default.scatterPlot();case g.ChartType.CROSS_TAB:return p.default.crossTab();default:return""}},u.getDisplayNameForOperator=function(e){switch(e){case R.GREATER_THAN:return p.default.greaterThan();case R.GREATER_THAN_OR_EQUAL:return p.default.greaterThanOrEqualTo();case R.LESS_THAN:return p.default.lessThan();case R.LESS_THAN_OR_EQUAL:return p.default.lessThanOrEqualTo();default:return p.default.equalTo()}},u.chartOptionsToString=function(e){var t=[];switch(e){case g.ChartType.BAR_CHART:t.push("".concat(p.default.dataVisualizerValues(),": ").concat(this.state.selectedColumn1));break;case g.ChartType.HISTOGRAM:t.push("".concat(p.default.dataVisualizerValues(),": ").concat(this.state.selectedColumn1)),t.push("".concat(p.default.dataVisualizerBucketSize(),": ").concat(this.state.bucketSize));break;case g.ChartType.SCATTER_PLOT:case g.ChartType.CROSS_TAB:t.push("".concat(p.default.dataVisualizerXValues(),": ").concat(this.state.selectedColumn1)),t.push("".concat(p.default.dataVisualizerYValues(),": ").concat(this.state.selectedColumn2))}return this.state.filterColumn&&this.state.filterValue&&t.push(p.default.dataVisualizerFilterDescription({column:this.state.filterColumn,value:this.state.filterValue})),t.join(", ")},u.render=function(){var e=this,t=this.parseRecords(this.props.tableRecords),n=t;""!==this.state.filterColumn&&""!==this.state.filterValue&&(n=this.filterRecords(t,this.state.filterColumn,this.state.filterValue,this.state.filterOperator));var o=this.findNumericColumns(t,this.props.tableColumns),a=this.getValuesByColumn(n,this.props.tableColumns,this.state.chartType),u=[];[g.ChartType.SCATTER_PLOT,g.ChartType.HISTOGRAM].includes(this.state.chartType)&&(u=i.default.difference(this.props.tableColumns,o));var d=[g.ChartType.SCATTER_PLOT,g.ChartType.CROSS_TAB].includes(this.state.chartType),h=o.includes(this.state.filterColumn);return l.default.createElement("span",{style:this.props.isRtl?O(O({},k.container),k.containerRtl):k.container},l.default.createElement("button",{type:"button",className:(0,r.default)(E.default.button,E.default.buttonWhite),onClick:this.handleOpen},p.default.visualizeData()),l.default.createElement(f.default,{isOpen:this.state.isVisualizerOpen,handleClose:this.handleClose,fullWidth:!0,fullHeight:!0},l.default.createElement("div",{style:k.modalBody},l.default.createElement("div",null,l.default.createElement("h2",{style:k.h2}," ",p.default.exploreDataset({datasetName:this.props.tableName})," "),l.default.createElement("div",null,l.default.createElement("div",{style:k.input},l.default.createElement("label",{style:c.description},p.default.dataVisualizerChartTitle()),l.default.createElement(s.DebounceInput,{style:c.input,minLength:1,debounceTimeout:500,value:this.state.chartTitle,onChange:function(t){return e.setState({chartTitle:t.target.value})}}))),l.default.createElement(y.default,{displayName:p.default.dataVisualizerChartType(),options:[g.ChartType.BAR_CHART,g.ChartType.HISTOGRAM,g.ChartType.SCATTER_PLOT,g.ChartType.CROSS_TAB],getDisplayNameForOption:this.getDisplayNameForChartType,value:this.state.chartType,onChange:function(t){return e.setState({chartType:parseFloat(t.target.value),selectedColumn1:"",selectedColumn2:""})}}),this.state.chartType===g.ChartType.HISTOGRAM&&l.default.createElement("div",{style:k.input},l.default.createElement("label",{style:c.description},p.default.dataVisualizerBucketSize()),l.default.createElement("input",{style:c.input,value:this.state.bucketSize,onChange:function(t){return e.setState({bucketSize:t.target.value})}})),l.default.createElement(y.default,{displayName:d?p.default.dataVisualizerXValues():p.default.dataVisualizerValues(),options:this.props.tableColumns,disabledOptions:i.default.union(u,this.tooBigColumns(this.props.tableColumns,a)),value:this.state.selectedColumn1,onChange:function(t){return e.setState({selectedColumn1:t.target.value})}}),d&&l.default.createElement(y.default,{displayName:p.default.dataVisualizerYValues(),options:this.props.tableColumns,disabledOptions:i.default.union(u,this.tooBigColumns(this.props.tableColumns,a,this.state.selectedColumn1)),value:this.state.selectedColumn2,onChange:function(t){return e.setState({selectedColumn2:t.target.value})}})),l.default.createElement("div",{style:O(O({},k.chartArea),{},{overflow:this.state.chartType===g.ChartType.CROSS_TAB?"auto":"hidden"})},this.canDisplayChart()?l.default.createElement(b.default,{records:n,numericColumns:o,chartType:this.state.chartType,bucketSize:this.state.bucketSize,chartTitle:this.state.chartTitle,selectedColumn1:this.state.selectedColumn1,selectedColumn2:this.state.selectedColumn2}):l.default.createElement("div",{style:k.placeholderContainer},l.default.createElement("div",{style:k.placeholderText},p.default.dataVisualizerPlaceholderText()))),l.default.createElement("div",{style:{paddingTop:20}},l.default.createElement(y.default,{displayName:p.default.filter(),options:this.props.tableColumns,disabledOptions:[],value:this.state.filterColumn,onChange:function(t){return e.setState({filterColumn:t.target.value,filterOperator:R.EQUAL,filterValue:""})},inlineLabel:!0}),h&&l.default.createElement(y.default,{displayName:p.default.by(),options:[R.GREATER_THAN,R.GREATER_THAN_OR_EQUAL,R.EQUAL,R.LESS_THAN_OR_EQUAL,R.LESS_THAN],getDisplayNameForOption:this.getDisplayNameForOperator,disabledOptions:[],value:this.state.filterOperator,onChange:function(t){return e.setState({filterOperator:parseFloat(t.target.value)})},inlineLabel:!0}),l.default.createElement(y.default,{displayName:h?"":p.default.by(),options:this.getValuesForFilterColumn(t,this.state.filterColumn,h),disabledOptions:[],value:this.state.filterValue,onChange:function(t){return e.setState({filterValue:t.target.value})},inlineLabel:!0})),l.default.createElement(_.default,{chartType:this.state.chartType,chartTypeName:this.getDisplayNameForChartType(this.state.chartType),chartTitle:this.state.chartTitle,selectedOptions:this.chartOptionsToString(this.state.chartType)}))))},t}(l.default.Component);P(I,"propTypes",{isRtl:a.default.bool.isRequired,tableColumns:a.default.arrayOf(a.default.string).isRequired,tableName:a.default.string.isRequired,tableRecords:a.default.array.isRequired});var k={container:{display:"inline-block"},containerRtl:{marginLeft:"10px"},modalBody:{display:"flex",flexDirection:"column",height:"100%"},h2:{margin:"0 0 10px 0"},input:O(O({},c.container),{},{float:"left"}),chartArea:{flexGrow:1},placeholderContainer:{position:"relative",height:"100%",textAlign:"center",backgroundImage:"url('".concat(v.default,"')"),backgroundRepeat:"no-repeat",backgroundPosition:"center"},placeholderText:O(O({position:"absolute",width:"100%",bottom:"50%"},d.default["main-font-semi-bold"]),{},{fontSize:20,color:h.default.dark_charcoal})};t.UnconnectedVisualizerModal=I,t.default=(0,u.connect)((function(e){return{isRtl:e.isRtl,tableColumns:e.data.tableColumns||[],tableRecords:e.data.tableRecords||[],tableName:e.data.tableName||""}}))(I)},2702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GOOGLE_CHART_AREA=t.CROSS_TAB_CHART_AREA=void 0;t.GOOGLE_CHART_AREA="google-chart-area",t.CROSS_TAB_CHART_AREA="cross-tab-chart-area"},1809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadDataForView=u,t.refreshCurrentDataView=function(){u(o,r,i)};var r,i,o,a=n(139),l=n(1579),s=n(1560);function u(e,t,n){if(r=t,i=n,o=e,!(0,a.getStore)().getState().pageConstants.hasDataMode)throw new Error("onDataViewChange triggered without data mode enabled");switch(t){case l.DataView.PROPERTIES:return void e.getKeyValuePairs((function(e){(0,a.getStore)().dispatch((0,s.updateKeyValueData)(e))}));case l.DataView.TABLE:return void e.loadTable(n,(function(e){return(0,a.getStore)().dispatch((0,s.updateTableColumns)(n,e))}),(function(e){return(0,a.getStore)().dispatch((0,s.updateTableRecords)(n,e))}));case l.DataView.OVERVIEW:return void e.getTableNames().then((function(e){var t=Object.fromEntries(e.map((function(e){return[e,s.tableType.PROJECT]})));(0,a.getStore)().dispatch((0,s.updateTableList)(t))}));default:return}}},3607:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.__TestInterface=void 0,t.getColumns=function(){return function(e){var t=p(this,e);return[{text:a.default.choosePrefix(),display:'<span class="chooseAssetDropdownOption">'+a.default.choosePrefix()+"</a>",click:function(e){return f(u.ParamType.COLUMN,e,t)}}]}},t.getTables=function(){return function(){return[{text:a.default.choosePrefix(),display:'<span class="chooseAssetDropdownOption">'+a.default.choosePrefix()+"</a>",click:function(e){return f(u.ParamType.TABLE,e)}}]}};var i=d(n(1)),o=d(n(56)),a=d(n(12)),l=n(722),s=n(33),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(n(3608));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){var r=document.createElement("div");r.setAttribute("id","modalDiv"),document.body.appendChild(r),o.default.render(i.default.createElement(u.default,{param:e,table:n,onChoose:function(e){return t('"'.concat(e,'"'))},onClose:function(){var e=document.getElementById("modalDiv");e.parentNode.removeChild(e)}}),document.querySelector("#modalDiv"))}function p(e,t){var n=(0,l.getFirstParam)("getColumn",e.parent,t);return(0,s.stripEncapsulatingDoubleQuotes)(n)}t.__TestInterface={getTableNameFromColumnSocket:p}},1560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearWarning=t.changeView=t.addTableName=void 0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a:return e.set("tableListMap",t.tableListMap);case l:return e.set("tableListMap",Object.assign({},e.tableListMap,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t.tableName,t.tableType)));case s:return t.view!==i.DataView.TABLE&&(e=e.set("tableRecords",[])),e.set("view",t.view).set("tableName",t.tableName);case u:var n=Object.assign({},e.tableListMap);return delete n[t.tableName],e.set("tableListMap",n);case f:return e.set("keyValueData",Object.assign({},t.keyValueData));case c:return e.tableName===t.tableName?e.set("tableColumns",t.tableColumns):e;case d:if(e.tableName===t.tableName){if(!t.tableRecords)return e.set("tableRecords",[]);var r=Array.isArray(t.tableRecords)?t.tableRecords:Object.values(t.tableRecords);return r=r.filter((function(e){return void 0!==e})),e.set("tableRecords",r)}return e;case p:return e.set("warningMsg",t.warningMsg).set("warningTitle",t.warningTitle).set("isWarningDialogOpen",!0);case h:return e.set("warningMsg","").set("warningTitle","").set("isWarningDialogOpen",!1);case g:return e.set("isPreviewOpen",!0).set("tableName",t.tableName);case m:return e.set("isPreviewOpen",!1).set("tableName","").set("tableRecords",[]).set("tableColumns",[]);case b:return e.set("libraryManifest",t.libraryManifest);default:return e}},t.updateTableRecords=t.updateTableList=t.updateTableColumns=t.updateKeyValueData=t.tableType=t.showWarning=t.showPreview=t.setLibraryManifest=t.hidePreview=t.deleteTableName=void 0;var r=n(374),i=n(1579);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a="data/UPDATE_TABLE_LIST",l="data/ADD_TABLE_NAME",s="data/CHANGE_VIEW",u="data/DELETE_TABLE_NAME",c="data/UPDATE_TABLE_COLUMNS",d="data/UPDATE_TABLE_RECORDS",f="data/UPDATE_KEY_VALUE_DATA",p="data/SHOW_WARNING",h="data/CLEAR_WARNING",g="data/SHOW_PREVIEW",m="data/HIDE_PREVIEW",b="data/SET_LIBRARY_MANIFEST",y=(t.tableType={SHARED:"shared",PROJECT:"project"},new((0,r.Record)({view:i.DataView.OVERVIEW,tableListMap:{},tableName:"",tableColumns:[],tableRecords:[],keyValueData:{},warningTitle:"",warningMsg:"",isWarningDialogOpen:!1,isPreviewOpen:!1,libraryManifest:{}})));t.updateTableList=function(e){return{type:a,tableListMap:e}},t.addTableName=function(e,t){return{type:l,tableName:e,tableType:t}},t.changeView=function(e,t){return{type:s,view:e,tableName:t}},t.deleteTableName=function(e){return{type:u,tableName:e}},t.updateKeyValueData=function(e){return{type:f,keyValueData:e}},t.updateTableColumns=function(e,t){return{type:c,tableName:e,tableColumns:t}},t.updateTableRecords=function(e,t){return{type:d,tableName:e,tableRecords:t}},t.showWarning=function(e,t){return{type:p,warningMsg:e,warningTitle:t}},t.clearWarning=function(){return{type:h}},t.showPreview=function(e){return{type:g,tableName:e}},t.hidePreview=function(){return{type:m}},t.setLibraryManifest=function(e){return{type:b,libraryManifest:e}}},2735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.styles=t.default=void 0;var r=u(n(374)),i=u(n(51)),o=u(n(2)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(1)),l=u(n(25));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=t.styles={header:{color:l.default.purple,fontWeight:"normal",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:l.default.purple},checkbox:{marginRight:10,marginTop:0},selectAllCheckbox:{position:"relative",bottom:4},list:{marginLeft:0},listItem:{listStyleType:"none",display:"flex",alignItems:"center",marginBottom:10}},y=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return m(t=e.call.apply(e,[this].concat(o))||this,"areAllSelected",(function(){return r.default.Set(t.props.selected).isSuperset(t.props.items)})),m(t,"toggleSelectAll",(function(){t.areAllSelected()?t.props.onChange([]):t.props.onChange(t.props.items.slice())})),m(t,"toggle",(function(e){if(t.props.checkById){var n=[];n=i.default.map(t.props.selected,"id").includes(e.id)?i.default.remove(t.props.selected,(function(t){return t.id!==e.id})):i.default.concat(t.props.selected,e),t.props.onChange(n,e)}else{var r=t.props.selected.indexOf(e);r>=0?t.props.onChange([].concat(p(t.props.selected.slice(0,r)),p(t.props.selected.slice(r+1)))):t.props.onChange(t.props.selected.concat([e]))}})),m(t,"checked",(function(e){return t.props.checkById?i.default.map(t.props.selected,"id").includes(e.id):t.props.selected.includes(e)})),t}var n,o;return o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,g(n,o),t.prototype.render=function(){var e=this;return a.default.createElement("div",{style:this.props.style},!this.props.noHeader&&a.default.createElement("h2",{style:b.header},a.default.createElement("input",{type:"checkbox",style:f(f({},b.checkbox),b.selectAllCheckbox),checked:this.areAllSelected(),onChange:this.toggleSelectAll,disabled:this.props.disabled}),this.props.header),a.default.createElement("ul",{style:b.list},this.props.items.map((function(t,n){return a.default.createElement("li",{style:b.listItem,key:n},a.default.createElement("input",{style:b.checkbox,type:"checkbox",checked:e.checked(t),onChange:function(){return e.toggle(t)},disabled:e.props.disabled}),a.default.cloneElement(e.props.children,m({},e.props.itemPropName,t)))}))))},t}(a.Component);m(y,"propTypes",{header:o.default.node,selected:o.default.array,items:o.default.array,onChange:o.default.func,children:o.default.element,itemPropName:o.default.string,style:o.default.any,disabled:o.default.bool,noHeader:o.default.bool,checkById:o.default.bool}),m(y,"defaultProps",{itemPropName:"item",selected:[],items:[],onChange:function(){},disabled:!1});t.default=y},1216:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1354),i=c(n(2)),o=u(n(166)),a=u(n(1)),l=c(n(25));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=d(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p,h,g,m,b=function(e){function t(){return e.apply(this,arguments)||this}var n,i;return i=e,(n=t).prototype=Object.create(i.prototype),n.prototype.constructor=n,f(n,i),t.prototype.render=function(){return a.default.createElement("div",{className:"paginationControl"},a.default.createElement(o.Style,{scopeSelector:".pagination",rules:{listStyleType:"none",display:"inline",padding:0,margin:0,li:{display:"inline"},a:{float:"left",paddingLeft:12,textDecoration:"none",color:l.default.cyan},".active a":{color:l.default.default_text},"a:hover":{color:l.default.default_text}}}),this.props.label&&a.default.createElement("span",{style:y.label},this.props.label),a.default.createElement(r.Pagination,{bsSize:"small",items:this.props.totalPages,activePage:this.props.currentPage,onSelect:this.props.onChangePage,maxButtons:10}))},t}(a.Component);p=b,h="propTypes",g={totalPages:i.default.number.isRequired,currentPage:i.default.number.isRequired,onChangePage:i.default.func.isRequired,label:i.default.string},m=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(h,"string"),(h="symbol"==d(m)?m:m+"")in p?Object.defineProperty(p,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[h]=g;var y={label:{float:"left"}};t.default=(0,o.default)(b);e.exports=t.default},2584:(e,t,n)=>{var r,i,o,a=n(788).Buffer;function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}"undefined"!=typeof window&&window.TextEncoder?(i=window.TextEncoder,o=window.TextDecoder):(i=n(378).TextEncoder,o=n(378).TextDecoder);var u=function(){"use strict";function e(e){r=e||n(3171),this.addConstants(),this.myPort=null,this.inbuf=new Uint8Array(1e3),this.inbufCount=0,this.boardVersion="",this.firmataVersion="",this.firmwareVersion="",this.buttonAPressed=!1,this.buttonBPressed=!1,this.isScrolling=!1,this.digitalInput=new Array(21).fill(!1),this.analogChannel=new Array(16).fill(0),this.eventListeners=new Array,this.updateListeners=new Array,this.analogUpdateCount=0,this.channelUpdateCounts=new Array(16).fill(0)}var t=e.prototype;return t.addConstants=function(){this.STREAM_ANALOG=192,this.STREAM_DIGITAL=208,this.ANALOG_UPDATE=224,this.DIGITAL_UPDATE=144,this.SYSEX_START=240,this.SET_PIN_MODE=244,this.SET_DIGITAL_PIN=245,this.SYSEX_END=247,this.FIRMATA_VERSION=249,this.SYSTEM_RESET=255,this.EXTENDED_ANALOG_WRITE=111,this.REPORT_FIRMWARE=121,this.SAMPLING_INTERVAL=122,this.MB_DISPLAY_CLEAR=1,this.MB_DISPLAY_SHOW=2,this.MB_DISPLAY_PLOT=3,this.MB_SCROLL_STRING=4,this.MB_SCROLL_INTEGER=5,this.MB_SET_TOUCH_MODE=6,this.MB_DISPLAY_ENABLE=7,this.MB_COMPASS_CALIBRATE=8,this.MB_REPORT_EVENT=13,this.MB_DEBUG_STRING=14,this.MB_EXTENDED_SYSEX=15,this.DIGITAL_INPUT=0,this.DIGITAL_OUTPUT=1,this.ANALOG_INPUT=2,this.PWM=3,this.INPUT_PULLUP=11,this.INPUT_PULLDOWN=15},t.connect=function(){var e=this;return r.list().then((function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.vendorId&&"0d28"==n.vendorId.toLowerCase()&&"0204"==n.productId)return n.comName}return null})).then((function(t){return t?(console.log("Opening",t),e.setSerialPort(new r(t,{baudRate:57600}))):(console.log("No micro:bit found; is your board plugged in?"),null)}))},t.setSerialPort=function(e){var t=this;return this.myPort=e,this.myPort.on("data",function(e){this.inbufCount+e.length<this.inbuf.length&&(this.inbuf.set(e,this.inbufCount),this.inbufCount+=e.length,this.processFirmatMessages())}.bind(this)),this.requestFirmataVersion(),this.requestFirmwareVersion(),this.boardVersion="",r.list().then((function(e){for(var n=0;n<e.length;n++){var r=e[n];r.comName==t.myPort.path&&(t.boardVersion=t.boardVersionFromSerialNumber(r.serialNumber))}return null}))},t.isConnected=function(){return this.myPort?(console.log("Is Connected True",this.myPort.path),!0):(console.log("Is Connected False",this.myPort.path),!1)},t.disconnect=function(){this.myPort&&(console.log("Closing",this.myPort.path),this.myPort.close(),this.myPort=null)},t.boardVersionFromSerialNumber=function(e){var t=e.slice(0,4);return"9900"==t?"1.3":"9901"==t?"1.5":"unrecognized board"},t.requestFirmataVersion=function(){this.myPort.write([this.FIRMATA_VERSION,0,0])},t.requestFirmwareVersion=function(){this.myPort.write([this.SYSEX_START,this.REPORT_FIRMWARE,this.SYSEX_END])},t.processFirmatMessages=function(){if(this.inbufCount)for(var e=0;;){if((e=this.findCmdByte(e))<0)return void(this.inbufCount=0);var t=this.dispatchCommand(e);if(t<0){if(0==e)return;var n=this.inbufCount-e;return this.inbuf.copyWithin(0,e,e+n),void(this.inbufCount=n)}e+=t}},t.findCmdByte=function(e){for(var t=e;t<this.inbufCount;t++)if(128&this.inbuf[t])return t;return-1},t.dispatchCommand=function(e){var t=this.inbuf[e],n=240&t,r=0,i=this.findCmdByte(e+1);if(i<0){if(this.SYSEX_START==t)return-1;var o=2;if(255==t&&(o=0),192!=n&&208!=n||(o=1),(r=this.inbufCount-(e+1))<o)return-1}else r=i-(e+1);if(this.SYSEX_START==t)return this.SYSEX_END!=this.inbuf[e+r+1]?r+1:(this.dispatchSysexCommand(e+1,r-1),r+2);var a=15&t,l=r>0?this.inbuf[e+1]:0,s=r>1?this.inbuf[e+2]:0;return this.DIGITAL_UPDATE==n&&this.receivedDigitalUpdate(a,l|s<<7),this.ANALOG_UPDATE==n&&this.receivedAnalogUpdate(a,l|s<<7),this.FIRMATA_VERSION==t&&this.receivedFirmataVersion(l,s),r+1},t.dispatchSysexCommand=function(e,t){switch(this.inbuf[e]){case this.MB_REPORT_EVENT:this.receivedEvent(e,t);break;case this.MB_DEBUG_STRING:var n=this.inbuf.slice(e+1,e+1+t);console.log("DB: "+(new o).decode(n));break;case this.REPORT_FIRMWARE:this.receivedFirmwareVersion(e,t)}},t.receivedFirmataVersion=function(e,t){this.firmataVersion="Firmata Protocol "+e+"."+t},t.receivedFirmwareVersion=function(e,t){for(var n=this.inbuf[e+1],r=this.inbuf[e+2],i=new Array,l=e+3;l<=t;l+=2)i.push(this.inbuf[l]|this.inbuf[l+1]<<7);var s=(new o).decode(a.from(i));this.firmwareVersion=s+" "+n+"."+r},t.receivedDigitalUpdate=function(e,t){for(var n=8*e,r=0;r<8;r++){var i=!!(t&1<<r);n<21&&(this.digitalInput[n]=i),n++}},t.receivedAnalogUpdate=function(e,t){t>8191&&(t-=16384),this.analogChannel[e]=t,this.analogUpdateCount++,this.channelUpdateCounts[e]++;var n,r=l(this.updateListeners);try{for(r.s();!(n=r.n()).done;){n.value.call()}}catch(i){r.e(i)}finally{r.f()}},t.receivedEvent=function(e,t){var n=this.inbuf[e+3]<<14|this.inbuf[e+2]<<7|this.inbuf[e+1],r=this.inbuf[e+6]<<14|this.inbuf[e+5]<<7|this.inbuf[e+4];1==n&&(1==r&&(this.buttonAPressed=!0),2==r&&(this.buttonAPressed=!1)),2==n&&(1==r&&(this.buttonBPressed=!0),2==r&&(this.buttonBPressed=!1)),6==n&&1==r&&(this.isScrolling=!1);var i,o=l(this.eventListeners);try{for(o.s();!(i=o.n()).done;){i.value.call(null,n,r)}}catch(a){o.e(a)}finally{o.f()}},t.enableDisplay=function(e){var t=e?1:0;this.myPort.write([this.SYSEX_START,this.MB_DISPLAY_ENABLE,t,this.SYSEX_END])},t.displayClear=function(){this.isScrolling=!1,this.myPort.write([this.SYSEX_START,this.MB_DISPLAY_CLEAR,this.SYSEX_END])},t.displayShow=function(e,t){this.isScrolling=!1,this.myPort.write([this.SYSEX_START,this.MB_DISPLAY_SHOW]),this.myPort.write([e?1:0]);for(var n=0;n<5;n++)for(var r=0;r<5;r++){var i=t[n][r];i>1&&(i/=2),this.myPort.write([127&i])}this.myPort.write([this.SYSEX_END])},t.displayPlot=function(e,t,n){this.isScrolling=!1,this.myPort.write([this.SYSEX_START,this.MB_DISPLAY_PLOT,e,t,n/2&127,this.SYSEX_END])},t.scrollString=function(e,t){this.isScrolling=!0,null==t&&(t=120),e.length>100&&(e=e.slice(0,100));var n=(new i).encode(e);this.myPort.write([this.SYSEX_START,this.MB_SCROLL_STRING,t]);for(var r=0;r<n.length;r++){var o=n[r];this.myPort.write([127&o,o>>7&127])}this.myPort.write([this.SYSEX_END])},t.scrollInteger=function(e,t){this.isScrolling=!0,null==t&&(t=120),this.myPort.write([this.SYSEX_START,this.MB_SCROLL_INTEGER,t,127&e,e>>7&127,e>>14&127,e>>21&127,e>>28&127,this.SYSEX_END])},t.setPinMode=function(e,t){e<0||e>20||this.myPort.write([this.SET_PIN_MODE,e,t])},t.trackDigitalPin=function(e,t){if(!(e<0||e>20)){var n=e>>3,r=this.DIGITAL_INPUT;0==t&&(r=this.DIGITAL_INPUT),1==t&&(r=this.INPUT_PULLUP),2==t&&(r=this.INPUT_PULLDOWN),this.myPort.write([this.SET_PIN_MODE,e,r]),this.myPort.write([this.STREAM_DIGITAL|n,1])}},t.stopTrackingDigitalPins=function(){for(var e=0;e<3;e++)this.myPort.write([this.STREAM_DIGITAL|e,0])},t.clearChannelData=function(){this.analogChannel.fill(0),this.analogUpdateCount=0,this.channelUpdateCounts.fill(0)},t.streamAnalogChannel=function(e){e<0||e>15||this.myPort.write([this.STREAM_ANALOG|e,1])},t.stopStreamingAnalogChannel=function(e){e<0||e>15||this.myPort.write([this.STREAM_ANALOG|e,0])},t.setAnalogSamplingInterval=function(e){e<1||e>16383||this.myPort.write([this.SYSEX_START,this.SAMPLING_INTERVAL,127&e,e>>7&127,this.SYSEX_END])},t.compassCalibration=function(){this.myPort.write([this.SYSEX_START,this.MB_COMPASS_CALIBRATE,this.SYSEX_END])},t.enableLightSensor=function(){this.myPort.write([this.SET_PIN_MODE,11,this.ANALOG_INPUT])},t.setTouchMode=function(e,t){if(!(e<0||e>2)){var n=t?1:0;this.myPort.write([this.SYSEX_START,this.MB_SET_TOUCH_MODE,e,n,this.SYSEX_END])}},t.addFirmataEventListener=function(e){this.eventListeners.push(e)},t.addFirmataUpdateListener=function(e){this.updateListeners.push(e)},t.removeAllFirmataListeners=function(){this.eventListeners=[],this.updateListeners=[]},t.setDigitalOutput=function(e,t){e<0||e>20||(this.myPort.write([this.SET_PIN_MODE,e,this.DIGITAL_OUTPUT]),this.digitalWrite(e,t?1:0))},t.digitalWrite=function(e,t){e<0||e>20||this.myPort.write([this.SET_DIGITAL_PIN,e,t])},t.setAnalogOutput=function(e,t){e<0||e>20||(this.myPort.write([this.SET_PIN_MODE,e,this.PWM]),this.analogWrite(e,t))},t.analogWrite=function(e,t){e<0||e>20||this.myPort.write([this.SYSEX_START,this.EXTENDED_ANALOG_WRITE,e,127&t,t>>7&127,this.SYSEX_END])},t.turnOffOutput=function(e){e<0||e>20||this.myPort.write([this.SET_PIN_MODE,e,this.DIGITAL_INPUT])},e}();e.exports=u},2582:(e,t,n)=>{var r=n(107);e.exports=r.hrtime||function(e){var t=.001*o.call(i),n=Math.floor(t),r=Math.floor(t%1*1e9);e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9));return[n,r]};var i=n.g.performance||{},o=i.now||i.mozNow||i.msNow||i.oNow||i.webkitNow||function(){return(new Date).getTime()}},2544:(e,t,n)=>{"use strict";var r=n(107),i=n(788).Buffer,o=n(453).EventEmitter,a=n(378),l=[7,8],s=[1,2],u=["none","even","mark","odd","space"],c=["RTSCTS"],d=9600,f="none",p=!1,h=8,g=1,m=256;function b(e,t,n,i){o.call(this);var a,b=this,y=Array.prototype.slice.call(arguments);if("function"!=typeof(i=y.pop())&&(i=null),n=null==n||n,i=i||function(e){e&&b.emit("error",e)},(t="function"!=typeof t&&t||{}).baudRate=t.baudRate||t.baudrate||d,t.dataBits=t.dataBits||t.databits||h,-1===l.indexOf(t.dataBits))return a=new Error('Invalid "databits": '+t.dataBits),void i(a);if(t.stopBits=t.stopBits||t.stopbits||g,-1===s.indexOf(t.stopBits))return a=new Error('Invalid "stopbits": '+t.stopbits),void i(a);if(t.parity=t.parity||f,-1===u.indexOf(t.parity))return a=new Error('Invalid "parity": '+t.parity),void i(a);if(!e)return a=new Error("Invalid port specified: "+e),void i(a);if(t.rtscts=p,t.flowControl||t.flowcontrol){var v=t.flowControl||t.flowcontrol;if("boolean"==typeof v)t.rtscts=!0;else{var _=v.every((function(e){var n=e.toUpperCase(),r=c.indexOf(n);if(r<0){var o=new Error('Invalid "flowControl": '+n+". Valid options: "+c.join(", "));return i(o),!1}if(0===r)t.rtscts=!0;return!0}));if(!_)return}}if(t.bufferSize=t.bufferSize||t.buffersize||m,t.serial=t.serial||"undefined"!=typeof chrome&&chrome.serial,!t.serial)throw new Error("No access to serial ports. Try loading as a Chrome Application.");this.options=function(e){switch(e.dataBits){case 7:e.dataBits="seven";break;case 8:e.dataBits="eight"}switch(e.stopBits){case 1:e.stopBits="one";break;case 2:e.stopBits="two"}"none"===e.parity&&(e.parity="no");return e}(t),this.options.serial.onReceiveError.addListener((function(e){switch(e.error){case"disconnected":case"device_lost":case"system_error":a=new Error("Disconnected"),b.options.disconnectedCallback?b.options.disconnectedCallback(a):b.emit("disconnect",a),b.connectionId>=0&&b.close()}})),this.path=e,n&&r.nextTick((function(){b.open(i)}))}function y(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e[r];return t}function v(e){for(var t=new i(e.byteLength),n=new Uint8Array(e),r=0;r<t.length;++r)t[r]=n[r];return t}a.inherits(b,o),b.prototype.connectionId=-1,b.prototype.open=function(e){var t={bitrate:parseInt(this.options.baudRate,10),dataBits:this.options.dataBits,parityBit:this.options.parity,stopBits:this.options.stopBits,ctsFlowControl:this.options.rtscts};this.options.serial.connect(this.path,t,this.proxy("onOpen",e))},b.prototype.onOpen=function(e,t){chrome.runtime.lastError?"function"==typeof e?e(chrome.runtime.lastError):this.emit("error",chrome.runtime.lastError):(this.connectionId=t.connectionId,-1!==this.connectionId?(this.emit("open",t),this._reader=this.proxy("onRead"),this.options.serial.onReceive.addListener(this._reader),"function"==typeof e&&e(chrome.runtime.lastError,t)):this.emit("error",new Error("Could not open port.")))},b.prototype.onRead=function(e){e&&this.connectionId===e.connectionId&&(this.options.dataCallback?this.options.dataCallback(v(e.data)):this.emit("data",v(e.data)))},b.prototype.write=function(e,t){if(this.connectionId<0){var n=new Error("Serialport not open.");"function"==typeof t?t(n):this.emit("error",n)}else"string"==typeof e&&(e=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return t}(e)),e instanceof ArrayBuffer==!1&&(e=y(e)),this.options.serial.send(this.connectionId,e,(function(e){"function"==typeof t&&t(chrome.runtime.lastError,e)}))},b.prototype.close=function(e){if(this.connectionId<0){var t=new Error("Serialport not open.");"function"==typeof e?e(t):this.emit("error",t)}else this.options.serial.disconnect(this.connectionId,this.proxy("onClose",e))},b.prototype.onClose=function(e,t){this.connectionId=-1,this.emit("close"),this.removeAllListeners(),this._reader&&(this.options.serial.onReceive.removeListener(this._reader),this._reader=null),"function"==typeof e&&e(chrome.runtime.lastError,t)},b.prototype.flush=function(e){if(this.connectionId<0){var t=new Error("Serialport not open.");"function"==typeof e?e(t):this.emit("error",t)}else{var n=this;this.options.serial.flush(this.connectionId,(function(t){chrome.runtime.lastError?"function"==typeof e?e(chrome.runtime.lastError,t):n.emit("error",chrome.runtime.lastError):e(null,t)}))}},b.prototype.drain=function(e){if(this.connectionId<0){var t=new Error("Serialport not open.");"function"==typeof e?e(t):this.emit("error",t)}else"function"==typeof e&&e()},b.prototype.proxy=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.splice(0,1)[0];return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=t.concat(n);e[r].apply(e,o)}},b.prototype.set=function(e,t){this.options.serial.setControlSignals(this.connectionId,e,(function(e){t(chrome.runtime.lastError,e)}))},e.exports={SerialPort:b,list:function(e){"undefined"!=typeof chrome&&chrome.serial?chrome.serial.getDevices((function(t){for(var n=new Array(t.length),r=0;r<t.length;r++)n[r]={comName:t[r].path,manufacturer:t[r].displayName,serialNumber:"",pnpId:"",locationId:"",vendorId:"0x"+(t[r].vendorId||0).toString(16),productId:"0x"+(t[r].productId||0).toString(16)};e(chrome.runtime.lastError,n)})):e(new Error("No access to serial ports. Try loading as a Chrome Application."),null)},buffer2ArrayBuffer:y,used:[]}},2538:e=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},3406:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".zNECB_z65Uj0WdXLqKpM{background-color:#0aa;color:#fff;float:right}.oduIyx6FqKVhXaBtgkie{max-height:200px;overflow-y:auto}","",{version:3,sources:["webpack://./src/applab/designElements/copy-element-to-screen-button.module.scss"],names:[],mappings:"AAAA,sBACE,qBAAA,CACA,UAAA,CACA,WAAA,CAGF,sBACE,gBAAA,CACA,eAAA",sourcesContent:[".copyElementToScreenButton {\n  background-color: #0aa;\n  color: white;\n  float: right;\n}\n\n.menu {\n  max-height: 200px;\n  overflow-y: auto;\n}\n"],sourceRoot:""}]),a.locals={copyElementToScreenButton:"zNECB_z65Uj0WdXLqKpM",menu:"oduIyx6FqKVhXaBtgkie"};const l=a},3407:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".kq4SeHEFOa_NUjPnp_pL{float:right}.Bbs6iF2b1QCzG26X6QJV{margin-left:20px}.Lx995Q_1DgFxfkVfnTJg{background-color:#c00;color:#fff}","",{version:3,sources:["webpack://./src/applab/designElements/delete-element-button.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAEA,sBACE,WAAA,CAGF,sBACE,gBAAA,CAGF,sBACE,qBCyDI,CDxDJ,UCOM",sourcesContent:['@import "color.scss";\n\n.right {\n  float: right;\n}\n\n.confirming {\n  margin-left: 20px;\n}\n\n.red {\n  background-color: $red;\n  color: $white;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={right:"kq4SeHEFOa_NUjPnp_pL",confirming:"Bbs6iF2b1QCzG26X6QJV",red:"Lx995Q_1DgFxfkVfnTJg"};const l=a},3408:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".gtgOGMJYLkUrpajK7sSG{background-color:#0aa;color:#fff;float:right}","",{version:3,sources:["webpack://./src/applab/designElements/duplicate-element-button.module.scss"],names:[],mappings:"AAAA,sBACE,qBAAA,CACA,UAAA,CACA,WAAA",sourcesContent:[".duplicateButton {\n  background-color: #0aa;\n  color: white;\n  float: right;\n}\n"],sourceRoot:""}]),a.locals={duplicateButton:"gtgOGMJYLkUrpajK7sSG"};const l=a},3409:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".uaLW1kyMjsFGurhbdXyY{background-color:#0aa;color:#fff;float:right}","",{version:3,sources:["webpack://./src/applab/designElements/restore-theme-defaults-button.module.scss"],names:[],mappings:"AAAA,sBACE,qBAAA,CACA,UAAA,CACA,WAAA",sourcesContent:[".restoreButton {\n  background-color: #0aa;\n  color: white;\n  float: right;\n}\n"],sourceRoot:""}]),a.locals={restoreButton:"uaLW1kyMjsFGurhbdXyY"};const l=a},3417:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".gdZHdKVKWRVFcZpoGQg3{display:block;height:60px;background-color:#c6cacd}.xw7dQsz7Sz8FhaRwmlHw{background-color:#5b6770}.kV_Ouz4dki1cRKoIkvYr{border-radius:30px 30px 0 0;display:flex;align-items:center;justify-content:center}.UDeKGbHNIrhBQxf69nrj{border-radius:0 0 30px 30px}.w1ELLxXUXSFjxys_OcVA{width:80%}.Kbn3Levpos4iWvI0Zyj0{margin-left:auto;margin-right:auto;width:100%;text-align:center;display:flex;align-items:center;justify-content:center;height:60px}.NZeKuzlGyjC1Bsf5_P7n{color:#fff;font-size:20px}.yjCCDAlBI3gmj0ZBlVJP{margin-right:5px}","",{version:3,sources:["webpack://./src/applab/phone-frame.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAMA,sBACE,aAAA,CACA,WAJa,CAKb,wBCMa,CDJb,sBACE,wBCCO,CDET,sBACE,2BAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAGF,sBACE,2BAAA,CAIJ,sBACE,SAAA,CAGF,sBACE,gBAAA,CACA,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,WAnCa,CAsCf,sBACE,UCxBM,CDyBN,cAAA,CAGF,sBACE,gBAAA",sourcesContent:['@use "sass:math";\n@use "color.scss";\n\n$border-radius: 30px;\n$frame-height: 60px;\n\n.phoneFrame {\n  display: block;\n  height: $frame-height;\n  background-color: color.$lighter_gray;\n\n  &Dark {\n    background-color: color.$charcoal;\n  }\n\n  &Top {\n    border-radius: $border-radius $border-radius 0 0;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n  }\n\n  &Bottom {\n    border-radius: 0 0 $border-radius $border-radius;\n  }\n}\n\n.screenSelector {\n  width: 80%;\n}\n\n.centeredInFrame {\n  margin-left: auto;\n  margin-right: auto;\n  width: 100%;\n  text-align: center;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: $frame-height;\n}\n\n.paused {\n  color: color.$white;\n  font-size: 20px;\n}\n\n.pauseIcon {\n  margin-right: 5px;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={phoneFrame:"gdZHdKVKWRVFcZpoGQg3",phoneFrameDark:"xw7dQsz7Sz8FhaRwmlHw",phoneFrameTop:"kV_Ouz4dki1cRKoIkvYr",phoneFrameBottom:"UDeKGbHNIrhBQxf69nrj",screenSelector:"w1ELLxXUXSFjxys_OcVA",centeredInFrame:"Kbn3Levpos4iWvI0Zyj0",paused:"NZeKuzlGyjC1Bsf5_P7n",pauseIcon:"yjCCDAlBI3gmj0ZBlVJP"};const l=a},3416:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".xxqVuVFUpVO__WcbadRy{width:100%;height:28px;margin:0;border-color:#949ca2}","",{version:3,sources:["webpack://./src/applab/screen-selector.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAEA,sBACE,UAAA,CACA,WAAA,CACA,QAAA,CACA,oBCQW",sourcesContent:['@use "color.scss";\n\n.dropdown {\n  width: 100%;\n  height: 28px;\n  margin: 0;\n  border-color: color.$light_gray;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={dropdown:"xxqVuVFUpVO__WcbadRy"};const l=a},2861:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".tAnb0bBXCUZvyBrrkXuw{display:inline-block;max-width:350px;overflow:hidden;white-space:nowrap}.OrsXFecTOreX5aQL7I3j{justify-content:space-between;padding:6px 0;display:flex}.dkadH113fyqnjTBszRya{display:none}.gaA0IZHi8gZ4H179jcG9{align-self:flex-end;padding-left:5px}.fVuhMIjgfjTObI7CnihS{color:#fff;cursor:pointer}","",{version:3,sources:["webpack://./src/storage/dataBrowser/column-header.module.scss"],names:[],mappings:"AAEA,sBACE,oBAAA,CACA,eAJe,CAKf,eAAA,CACA,kBAAA,CAGF,sBACE,6BAAA,CACA,aAAA,CACA,YAAA,CACA,sBACE,YAAA,CAIJ,sBACE,mBAAA,CACA,gBAAA,CAGF,sBACE,UAAA,CACA,cAAA",sourcesContent:["$max-cell-width: 350px;\n\n.columnName {\n  display: inline-block;\n  max-width: $max-cell-width;\n  overflow: hidden;\n  white-space: nowrap;\n}\n\n.container {\n  justify-content: space-between;\n  padding: 6px 0;\n  display: flex;\n  &IsEditing {\n    display: none;\n  }\n}\n\n.iconWrapper {\n  align-self: flex-end;\n  padding-left: 5px;\n}\n\n.icon {\n  color: white;\n  cursor: pointer;\n}\n"],sourceRoot:""}]),a.locals={columnName:"tAnb0bBXCUZvyBrrkXuw",container:"OrsXFecTOreX5aQL7I3j",containerIsEditing:"dkadH113fyqnjTBszRya",iconWrapper:"gaA0IZHi8gZ4H179jcG9",icon:"fVuhMIjgfjTObI7CnihS"};const l=a},3411:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".wESIYoD_rsPOiHYjSZ6w{border-color:#c6cacd;border-style:solid;box-sizing:border-box;height:35px;padding:0 10px}.cKTvnw6dE_LzsrXm0qxJ{background-color:#e7e8ea;border-top-width:1px;border-right-width:1px;border-bottom-width:0;border-left-width:0;float:left}.lgXyOuPAMr_rw7iKvCty{border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:0;float:left}.M424UtBa0jHzyM_s05_A{border-top-width:0;border-right-width:0;border-bottom-width:1px;border-left-width:0;width:100%}.roJ82PCgGItxWR0QkIBx{height:28;overflow:hidden}.XvrkTsuURcWcQX5oFF4N{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ZnqGOSJ3hRX0yaa34n6w{border-color:#c6cacd;border-style:solid;border-top-width:0;border-right-width:0;border-bottom-width:0;border-left-width:1px}.JzW4iAXWEBN9JpKhA5ME{line-height:35px;user-select:none}.te554wK2ITiflt4m7s1z{height:calc(100% - 83px);padding:10px 10px 10px 0;border-color:#c6cacd;border-style:solid;border-top-width:0;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;background-color:#e7e8ea}.Bn5zqwJL9lsq0dIoL5Iw{height:100%;overflow-y:auto;padding:10px;width:100%}.OzNcrPoGDPJ_lRwYv1LQ{display:none;height:100%;overflow-y:auto}","",{version:3,sources:["webpack://./src/storage/dataBrowser/data-browser.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAMA,sBACE,oBCQa,CDPb,kBAAA,CACA,qBAAA,CACA,WARW,CASX,cAAA,CACA,sBACE,wBCGY,CDFZ,oBAAA,CACA,sBAAA,CACA,qBAAA,CACA,mBAAA,CACA,UAAA,CAEF,sBACE,oBAAA,CACA,sBAAA,CACA,uBAAA,CACA,mBAAA,CACA,UAAA,CAGF,sBACE,kBAAA,CACA,oBAAA,CACA,uBAAA,CACA,mBAAA,CACA,UAAA,CAIJ,sBACE,SAAA,CACA,eAAA,CAGF,sBACE,eAAA,CACA,sBAAA,CACA,kBAAA,CAGF,sBACE,oBClCa,CDmCb,kBAAA,CACA,kBAAA,CACA,oBAAA,CACA,qBAAA,CACA,qBAAA,CAGF,sBACE,gBAxDW,CAyDX,gBAAA,CAGF,sBACE,wBAAA,CACA,wBAAA,CACA,oBClDa,CDmDb,kBAAA,CACA,kBAAA,CACA,sBAAA,CACA,uBAAA,CACA,qBAAA,CACA,wBCvDc,CD0DhB,sBACE,WAAA,CACA,eAAA,CACA,YAAA,CACA,UAAA,CAGF,sBACE,YAAA,CACA,WAAA,CACA,eAAA",sourcesContent:['@import "color.scss";\n\n$tab-height: 35px;\n$border-color: $lighter_gray;\n$bg-color: $lightest_gray;\n\n.tab {\n  border-color: $border-color;\n  border-style: solid;\n  box-sizing: border-box;\n  height: $tab-height;\n  padding: 0 10px;\n  &Active {\n    background-color: $bg-color;\n    border-top-width: 1px;\n    border-right-width: 1px;\n    border-bottom-width: 0;\n    border-left-width: 0;\n    float: left;\n  }\n  &Inactive {\n    border-top-width: 1px;\n    border-right-width: 1px;\n    border-bottom-width: 1px;\n    border-left-width: 0;\n    float: left;\n  }\n  // This tab should fill the remaining horizontal space.\n  &Empty {\n    border-top-width: 0;\n    border-right-width: 0;\n    border-bottom-width: 1px;\n    border-left-width: 0;\n    width: 100%;\n  }\n}\n\n.workspaceDescription {\n  height: 28;\n  overflow: hidden;\n}\n\n.workspaceDescriptionText {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.workspaceTabs {\n  border-color: $border-color;\n  border-style: solid;\n  border-top-width: 0;\n  border-right-width: 0;\n  border-bottom-width: 0;\n  border-left-width: 1px;\n}\n\n.tabLabel {\n  line-height: $tab-height;\n  user-select: none;\n}\n\n.workspaceBody {\n  height: calc(100% - 83px);\n  padding: 10px 10px 10px 0;\n  border-color: $border-color;\n  border-style: solid;\n  border-top-width: 0;\n  border-right-width: 1px;\n  border-bottom-width: 1px;\n  border-left-width: 1px;\n  background-color: $bg-color;\n}\n\n.activeBody {\n  height: 100%;\n  overflow-y: auto;\n  padding: 10px;\n  width: 100%;\n}\n\n.inactiveBody {\n  display: none;\n  height: 100%;\n  overflow-y: auto;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={tab:"wESIYoD_rsPOiHYjSZ6w",tabActive:"cKTvnw6dE_LzsrXm0qxJ",tabInactive:"lgXyOuPAMr_rw7iKvCty",tabEmpty:"M424UtBa0jHzyM_s05_A",workspaceDescription:"roJ82PCgGItxWR0QkIBx",workspaceDescriptionText:"XvrkTsuURcWcQX5oFF4N",workspaceTabs:"ZnqGOSJ3hRX0yaa34n6w",tabLabel:"JzW4iAXWEBN9JpKhA5ME",workspaceBody:"te554wK2ITiflt4m7s1z",activeBody:"Bn5zqwJL9lsq0dIoL5Iw",inactiveBody:"OzNcrPoGDPJ_lRwYv1LQ"};const l=a},3412:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".WAir43QT7naCGFGJbj05{position:absolute;top:0;bottom:0;left:0;width:270px;box-sizing:border-box;border-right:1px solid gray;overflow-y:auto;padding:10px}.Ih4T_5J8t1aX_kZHFxm6{border-color:#949ca2;margin:5px 0 10px 0}","",{version:3,sources:["webpack://./src/storage/dataBrowser/data-library-pane.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAEA,sBACE,iBAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,WAAA,CACA,qBAAA,CACA,2BAAA,CACA,eAAA,CACA,YAAA,CAGF,sBACE,oBCDW,CDEX,mBAAA",sourcesContent:['@import "color.scss";\n\n.container {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  width: 270px;\n  box-sizing: border-box;\n  border-right: 1px solid gray;\n  overflow-y: auto;\n  padding: 10px;\n}\n\n.divider {\n  border-color: $light_gray;\n  margin: 5px 0 10px 0;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={container:"WAir43QT7naCGFGJbj05",divider:"Ih4T_5J8t1aX_kZHFxm6"};const l=a},3413:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".ADklXzZ9IuasxkQyqv6S{width:400px;margin-top:10px;margin-bottom:10px}.wMwhchR1u8EYcDZoSg34{position:absolute;width:100%;top:0;bottom:0;background-color:#fff;display:none}.QP35Uwopk2PZuJhGA_62{display:block}.nZcG_z_km07QrYdFdZmQ{position:absolute;top:0;bottom:0;left:270px;right:0;padding:10px}","",{version:3,sources:["webpack://./src/storage/dataBrowser/data-overview.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAIA,sBACE,WAHY,CAIZ,eAAA,CACA,kBAAA,CAGF,sBACE,iBAAA,CACA,UAAA,CACA,KAAA,CACA,QAAA,CACA,qBCIM,CDHN,YAAA,CACA,sBACE,aAAA,CAIJ,sBACE,iBAAA,CACA,KAAA,CACA,QAAA,CACA,UAAA,CACA,OAAA,CACA,YAAA",sourcesContent:['@import "color.scss";\n\n$table-width: 400px;\n\n.table {\n  width: $table-width;\n  margin-top: 10px;\n  margin-bottom: 10px;\n}\n\n.container {\n  position: absolute;\n  width: 100%;\n  top: 0;\n  bottom: 0;\n  background-color: $white;\n  display: none;\n  &Display {\n    display: block;\n  }\n}\n\n.dataBrowser {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 270px;\n  right: 0;\n  padding: 10px;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={table:"ADklXzZ9IuasxkQyqv6S",container:"wMwhchR1u8EYcDZoSg34",containerDisplay:"QP35Uwopk2PZuJhGA_62",dataBrowser:"nZcG_z_km07QrYdFdZmQ"};const l=a},2618:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,'.uYItL77TWcU0wtVbhTfw{height:45px}.hzi4zAQLtOeALKbcN1HF{padding:10px;border:1px solid gray;font-size:14px;max-width:350px;overflow:hidden}.hzi4zAQLtOeALKbcN1HF.pEv7nG0FjvBfyWDiVoGw{background-color:#d9f3f5}.hzi4zAQLtOeALKbcN1HF.QFx0DJcXsNZPlS6OSqkP{background-color:#d9f3f5;width:142px}.QJTdjytrQErkwBhyZuMb{background-color:#0093a4;border:1px solid gray;max-width:350px;padding:6px 10px;white-space:nowrap}.aL4qZazwqcLIPHl9fJFo{font-family:"Metropolis","Noto Sans","Noto Sans Math","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Bengali","Noto Sans SC","Noto Sans TC","Noto Sans Devanagari","Noto Sans Georgian","Noto Sans Hebrew","Noto Sans JP","Noto Sans Kannada","Noto Sans Khmer","Noto Sans KR","Noto Sans Myanmar","Noto Sans Sinhala","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai","Noto Sans Thaana",sans-serif;font-weight:700;font-style:normal;color:#8c52ba;cursor:pointer}.vhcuGCSnanVtqh5MHMXu{display:inline-block;font-size:14px;line-height:20px;margin:0;padding:4px 12px;text-align:center;vertical-align:middle}.zehBIP29hpzIXp82knQ8{background-color:#fff;color:#000}.amzC_L72ues1STeirgwv{margin-right:10px;min-width:60px}.ymtkCADAvOyMnTc9TWB0{background-color:#d9534f;color:#fff}.Y34eEaDAmZWf41x33l5I{background-color:#337ab7;color:#fff}.aN85sU65aHSMhw7cqksL{margin-right:10px;min-width:60px}.k6pRSfcUhlMOgNeyKeSi{margin-left:5px;background-color:#f2f2f2}.IjgyOPtpufaXlzS3sObU{width:calc(100% - 14px);height:20px;border:1px solid gray;border-radius:5px;padding:4px 6px}',"",{version:3,sources:["webpack://./src/storage/dataBrowser/data-styles.module.scss","webpack://./../shared/css/color.scss","webpack://./../shared/css/font.scss"],names:[],mappings:"AAWA,sBACE,WANW,CASb,sBACE,YATa,CAUb,qBAAA,CACA,cAAA,CACA,eAVe,CAWf,eAAA,CAEA,2CACE,wBCKY,CDFd,2CACE,wBCCY,CAAA,WDpBS,CAwBzB,sBACE,wBCVK,CDWL,qBAAA,CACA,eA1Be,CA2Bf,gBAAA,CACA,kBAAA,CAGF,sBEqDE,8YA/EU,CAgFV,eAxEiB,CAyEjB,iBAAA,CFrDA,aCXO,CDYP,cAAA,CAGF,sBACE,oBAAA,CACA,cAAA,CACA,gBAAA,CACA,QAAA,CACA,gBAAA,CACA,iBAAA,CACA,qBAAA,CAEA,sBACE,qBAAA,CACA,UAAA,CAEA,sBACE,iBAAA,CACA,cAAA,CAIJ,sBACE,wBC6CmB,CD5CnB,UAAA,CAGF,sBACE,wBCuCoB,CDtCpB,UAAA,CAEA,sBACE,iBAAA,CACA,cAAA,CAIJ,sBACE,eAAA,CACA,wBCjEc,CDqElB,sBACE,uBAAA,CACA,WAAA,CACA,qBAAA,CACA,iBAAA,CACA,eAAA",sourcesContent:["/**\n * @file Styles shared by various react components in the applab data browser.\n */\n\n@import 'color', 'font';\n\n$row-height: 45px;\n$cell-padding: 10px;\n$edit-button-cell-width: 142px;\n$max-cell-width: 350px;\n\n.row {\n  height: $row-height;\n}\n\n.cell {\n  padding: $cell-padding;\n  border: 1px solid gray;\n  font-size: 14px;\n  max-width: $max-cell-width;\n  overflow: hidden;\n\n  &.addButton {\n    background-color: $lightest_teal;\n  }\n\n  &.editButton {\n    background-color: $lightest_teal;\n    width: $edit-button-cell-width;\n  }\n}\n\n.headerCell {\n  background-color: $teal;\n  border: 1px solid gray;\n  max-width: $max-cell-width;\n  padding: 6px 10px;\n  white-space: nowrap;\n}\n\n.link {\n  @include main-font-bold;\n  color: $purple;\n  cursor: pointer;\n}\n\n.button {\n  display: inline-block;\n  font-size: 14px;\n  line-height: 20px;\n  margin: 0;\n  padding: 4px 12px;\n  text-align: center;\n  vertical-align: middle;\n\n  &White {\n    background-color: white;\n    color: black;\n\n    &Edit {\n      margin-right: 10px;\n      min-width: 60px;\n    }\n  }\n\n  &Red {\n    background-color: $bootstrap_button_red;\n    color: white;\n  }\n\n  &Blue {\n    background-color: $bootstrap_button_blue;\n    color: white;\n\n    &Save {\n      margin-right: 10px;\n      min-width: 60px;\n    }\n  }\n\n  &Gray {\n    margin-left: 5px;\n    background-color: $background_gray;\n  }\n}\n\n.input {\n  width: calc(100% - 14px);\n  height: 20px;\n  border: 1px solid gray;\n  border-radius: 5px;\n  padding: 4px 6px;\n}\n","// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n","// Common site-wide fonts, put here for easy access from all scss files\n\n// Please note (!): use only single quotes (' ') for strings (!) to allow our custom converter to work properly.\n// This file is being transpiled to js object.\n// (So it can be used in jsx/tsx files for inline styles. This is made mostly for legacy.\n// Try to avoid use of inline styles if you're creating new component).\n// Keeping that in mind -\n\n$metropolis-font: 'Metropolis';\n$noto-sans-fonts: 'Noto Sans', 'Noto Sans Math', 'Noto Sans Arabic', 'Noto Sans Armenian', 'Noto Sans Bengali',\n'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Devanagari', 'Noto Sans Georgian', 'Noto Sans Hebrew', 'Noto Sans JP',\n'Noto Sans Kannada', 'Noto Sans Khmer', 'Noto Sans KR', 'Noto Sans Myanmar', 'Noto Sans Sinhala',\n'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Thai', 'Noto Sans Thaana';\n\n$main-font: $metropolis-font, $noto-sans-fonts, sans-serif;\n\n$thin-font-weight: 100;\n$extra-light-font-weight: 200;\n$light-font-weight: 300;\n$regular-font-weight: 400;\n$medium-font-weight: 500;\n$semi-bold-font-weight: 600;\n$bold-font-weight: 700;\n$extra-bold-font-weight: 800;\n$black-font-weight: 900;\n\n@mixin main-font-thin {\n  font-family: $main-font;\n  font-weight: $thin-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-thin-italic {\n  @include main-font-thin;\n  font-style: italic;\n}\n\n@mixin main-font-extra-light {\n  font-family: $main-font;\n  font-weight: $extra-light-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-extra-light-italic {\n  @include main-font-extra-light;\n  font-style: italic;\n}\n\n@mixin main-font-light {\n  font-family: $main-font;\n  font-weight: $light-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-light-italic {\n  @include main-font-light;\n  font-style: italic;\n}\n\n@mixin main-font-regular {\n  font-family: $main-font;\n  font-weight: $regular-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-regular-italic {\n  @include main-font-regular;\n  font-style: italic;\n}\n\n@mixin main-font-medium {\n  font-family: $main-font;\n  font-weight: $medium-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-medium-italic {\n  @include main-font-medium;\n  font-style: italic;\n}\n\n@mixin main-font-semi-bold {\n  font-family: $main-font;\n  font-weight: $semi-bold-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-semi-bold-italic {\n  @include main-font-semi-bold;\n  font-style: italic;\n}\n\n@mixin main-font-bold {\n  font-family: $main-font;\n  font-weight: $bold-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-bold-italic {\n  @include main-font-bold;\n  font-style: italic;\n}\n\n@mixin main-font-extra-bold {\n  font-family: $main-font;\n  font-weight: $extra-bold-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-extra-bold-italic {\n  @include main-font-extra-bold;\n  font-style: italic;\n}\n\n@mixin main-font-black {\n  font-family: $main-font;\n  font-weight: $black-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-black-italic {\n  @include main-font-black;\n  font-style: italic;\n}\n\n$barlowSemiCondensed-semibold: 'Barlow Semi Condensed Semibold', $noto-sans-fonts, sans-serif;\n$barlowSemiCondensed-medium: 'Barlow Semi Condensed Medium', $noto-sans-fonts, sans-serif;\n\n$code-font: 'Source Code Pro', Monaco, 'Bitstream Vera Sans Mono', 'Lucida Console', Terminal, monospace;\n\n/*\n   Font Awesome S3 Bucket URLs\n   Current version: 6.6.0\n   If you are changing the location of these files,\n   see the readme in this directory for more detail on manual steps to take when uploading new files.\n */\n$font-awesome-core-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/fontawesome.min.css';\n$font-awesome-brands-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/brands.min.css';\n$font-awesome-solid-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/solid.min.css';\n$font-awesome-regular-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/regular.min.css';\n$font-awesome-v4-fonts-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/v4-font-face.min.css';\n$font-awesome-v4-shims-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/v4-shims.min.css';\n$font-awesome-v4-shims-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/v4-shims.min.css';\n$font-awesome-duotone-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/duotone.min.css';\n$font-awesome-custom-icons-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/custom-icons.min.css';\n"],sourceRoot:""}]),a.locals={row:"uYItL77TWcU0wtVbhTfw",cell:"hzi4zAQLtOeALKbcN1HF",addButton:"pEv7nG0FjvBfyWDiVoGw",editButton:"QFx0DJcXsNZPlS6OSqkP",headerCell:"QJTdjytrQErkwBhyZuMb",link:"aL4qZazwqcLIPHl9fJFo",button:"vhcuGCSnanVtqh5MHMXu",buttonWhite:"zehBIP29hpzIXp82knQ8",buttonWhiteEdit:"amzC_L72ues1STeirgwv",buttonRed:"ymtkCADAvOyMnTc9TWB0",buttonBlue:"Y34eEaDAmZWf41x33l5I",buttonBlueSave:"aN85sU65aHSMhw7cqksL",buttonGray:"k6pRSfcUhlMOgNeyKeSi",input:"IjgyOPtpufaXlzS3sObU"};const l=a},3415:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".wxpLZ0RrwUeQEFqxPlrl{flex-direction:column;height:99%;min-width:600px;max-width:99%;padding-left:8px;padding-right:8px;display:inline-flex}.QLcJYPMvi3M0DnFFf6OX{display:none}.oxXdLuHCoDsRwKNXb0z1{font-size:24px}.tgBCCZQP5H4IOqA4WVrf{float:right}.xhXB5dJmVs9mppSIqEC7{float:left}.x5hmBOhXgPZSbDEPDai6{background-color:#e7e8ea;border-radius:10px;border:1px solid #949ca2;flex-grow:1;font-family:monospace;overflow:scroll;padding:10px;white-space:pre-wrap}.QGYHli1u0U4L4ajccGCL{margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0}","",{version:3,sources:["webpack://./src/storage/dataBrowser/data-table-view.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAIA,sBACE,qBAAA,CACA,UAAA,CACA,eALgB,CAMhB,aAAA,CACA,gBAAA,CACA,iBAAA,CACA,mBAAA,CACA,sBACE,YAAA,CAIJ,sBACE,cAAA,CAGF,sBACE,WAAA,CAGF,sBACE,UAAA,CAGF,sBACE,wBCdc,CDed,kBAAA,CACA,wBAAA,CACA,WAAA,CACA,qBAAA,CACA,eAAA,CACA,YAAA,CACA,oBAAA,CAGF,sBACE,eAAA,CACA,kBAAA,CACA,aAAA,CACA,cAAA",sourcesContent:['@import "color.scss";\n\n$min-table-width: 600px;\n\n.container {\n  flex-direction: column;\n  height: 99%;\n  min-width: $min-table-width;\n  max-width: 99%;\n  padding-left: 8px;\n  padding-right: 8px;\n  display: inline-flex;\n  &Hidden {\n    display: none;\n  }\n}\n\n.backLink {\n  font-size: 24px;\n}\n\n.debugLink {\n  float: right;\n}\n\n.debugLinkRtl {\n  float: left;\n}\n\n.debugData {\n  background-color: $lightest_gray;\n  border-radius: 10px;\n  border: 1px solid $light_gray;\n  flex-grow: 1;\n  font-family: monospace;\n  overflow: scroll;\n  padding: 10px;\n  white-space: pre-wrap;\n}\n\n.viewHeader {\n  margin-top: 10px;\n  margin-bottom: 10px;\n  margin-left: 0;\n  margin-right: 0;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={container:"wxpLZ0RrwUeQEFqxPlrl",containerHidden:"QLcJYPMvi3M0DnFFf6OX",backLink:"oxXdLuHCoDsRwKNXb0z1",debugLink:"tgBCCZQP5H4IOqA4WVrf",debugLinkRtl:"xhXB5dJmVs9mppSIqEC7",debugData:"x5hmBOhXgPZSbDEPDai6",viewHeader:"QGYHli1u0U4L4ajccGCL"};const l=a},2862:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,".NB3p1U6hze3MllyxXFNT{width:19px}.U6FhwS92KlIRE9SlAfhP{min-width:600px}.D7fR37Ei66Ez_zevJHag{align-items:center;border-radius:2px;background-color:#fff;color:#0093a4;cursor:pointer;display:inline-flex;height:18px;justify-content:center;width:18px}","",{version:3,sources:["webpack://./src/storage/dataBrowser/data-table.module.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAIA,sBACE,UAAA,CAGF,sBACE,eAPgB,CAUlB,sBACE,kBAAA,CACA,iBAAA,CACA,qBAAA,CACA,aCOK,CDNL,cAAA,CACA,mBAAA,CACA,WAAA,CACA,sBAAA,CACA,UAAA",sourcesContent:['@import "color.scss";\n\n$min-table-width: 600px;\n\n.addColumnHeader {\n  width: 19px;\n}\n\n.table {\n  min-width: $min-table-width;\n}\n\n.plusIcon {\n  align-items: center;\n  border-radius: 2px;\n  background-color: white;\n  color: $teal;\n  cursor: pointer;\n  display: inline-flex;\n  height: 18px;\n  justify-content: center;\n  width: 18px;\n}\n',"// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={addColumnHeader:"NB3p1U6hze3MllyxXFNT",table:"U6FhwS92KlIRE9SlAfhP",plusIcon:"D7fR37Ei66Ez_zevJHag"};const l=a},2860:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,'.NGS3plsLqqRqt11jpgSE{font-family:"Metropolis","Noto Sans","Noto Sans Math","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Bengali","Noto Sans SC","Noto Sans TC","Noto Sans Devanagari","Noto Sans Georgian","Noto Sans Hebrew","Noto Sans JP","Noto Sans Kannada","Noto Sans Khmer","Noto Sans KR","Noto Sans Myanmar","Noto Sans Sinhala","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai","Noto Sans Thaana",sans-serif;font-weight:700;font-style:normal;cursor:pointer;color:#4d575f}.zv6IrB3NKKxsGonOids5{font-family:"Metropolis","Noto Sans","Noto Sans Math","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Bengali","Noto Sans SC","Noto Sans TC","Noto Sans Devanagari","Noto Sans Georgian","Noto Sans Hebrew","Noto Sans JP","Noto Sans Kannada","Noto Sans Khmer","Noto Sans KR","Noto Sans Myanmar","Noto Sans Sinhala","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai","Noto Sans Thaana",sans-serif;font-weight:400;font-style:normal;float:right;color:#949ca2}.HjFN6FjzkRNHnr04eB_0{font-family:"Metropolis","Noto Sans","Noto Sans Math","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Bengali","Noto Sans SC","Noto Sans TC","Noto Sans Devanagari","Noto Sans Georgian","Noto Sans Hebrew","Noto Sans JP","Noto Sans Kannada","Noto Sans Khmer","Noto Sans KR","Noto Sans Myanmar","Noto Sans Sinhala","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai","Noto Sans Thaana",sans-serif;font-weight:400;font-style:normal;color:#4d575f}._pIzhypWAAaohvibldJi{font-family:"Metropolis","Noto Sans","Noto Sans Math","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Bengali","Noto Sans SC","Noto Sans TC","Noto Sans Devanagari","Noto Sans Georgian","Noto Sans Hebrew","Noto Sans JP","Noto Sans Kannada","Noto Sans Khmer","Noto Sans KR","Noto Sans Myanmar","Noto Sans Sinhala","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai","Noto Sans Thaana",sans-serif;font-weight:600;font-style:normal;color:#0094ca}.zOVjdSjX3Kg2L3UeEBbw{padding-left:16px}',"",{version:3,sources:["webpack://./src/storage/dataBrowser/library-category.module.scss","webpack://./../shared/css/font.scss","webpack://./../shared/css/color.scss"],names:[],mappings:"AAEA,sBC2FE,8YA/EU,CAgFV,eAxEiB,CAyEjB,iBAAA,CD3FA,cAAA,CACA,aEOc,CFJhB,sBCoDE,8YA9CU,CA+CV,eA1CoB,CA2CpB,iBAAA,CDpDA,WAAA,CACA,aEGW,CAAA,sBD8CX,8YA9CU,CA+CV,eA1CoB,CA2CpB,iBAAA,CD9CA,aEJc,CFOhB,sBC+DE,8YApEU,CAqEV,eA9DsB,CA+DtB,iBAAA,CD/DA,aEeK,CFZP,sBACE,iBAAA",sourcesContent:["@import 'color', 'font';\n\n.categoryName {\n  @include main-font-bold;\n  cursor: pointer;\n  color: $dark_charcoal;\n}\n\n.tableNumber {\n  @include main-font-regular;\n  float: right;\n  color: $light_gray;\n}\n\n.categoryDescription {\n  @include main-font-regular;\n  color: $dark_charcoal;\n}\n\n.tableName {\n  @include main-font-semi-bold;\n  color: $cyan;\n}\n\n.collapsibleContainer {\n  padding-left: 16px;\n}\n","// Common site-wide fonts, put here for easy access from all scss files\n\n// Please note (!): use only single quotes (' ') for strings (!) to allow our custom converter to work properly.\n// This file is being transpiled to js object.\n// (So it can be used in jsx/tsx files for inline styles. This is made mostly for legacy.\n// Try to avoid use of inline styles if you're creating new component).\n// Keeping that in mind -\n\n$metropolis-font: 'Metropolis';\n$noto-sans-fonts: 'Noto Sans', 'Noto Sans Math', 'Noto Sans Arabic', 'Noto Sans Armenian', 'Noto Sans Bengali',\n'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Devanagari', 'Noto Sans Georgian', 'Noto Sans Hebrew', 'Noto Sans JP',\n'Noto Sans Kannada', 'Noto Sans Khmer', 'Noto Sans KR', 'Noto Sans Myanmar', 'Noto Sans Sinhala',\n'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Thai', 'Noto Sans Thaana';\n\n$main-font: $metropolis-font, $noto-sans-fonts, sans-serif;\n\n$thin-font-weight: 100;\n$extra-light-font-weight: 200;\n$light-font-weight: 300;\n$regular-font-weight: 400;\n$medium-font-weight: 500;\n$semi-bold-font-weight: 600;\n$bold-font-weight: 700;\n$extra-bold-font-weight: 800;\n$black-font-weight: 900;\n\n@mixin main-font-thin {\n  font-family: $main-font;\n  font-weight: $thin-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-thin-italic {\n  @include main-font-thin;\n  font-style: italic;\n}\n\n@mixin main-font-extra-light {\n  font-family: $main-font;\n  font-weight: $extra-light-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-extra-light-italic {\n  @include main-font-extra-light;\n  font-style: italic;\n}\n\n@mixin main-font-light {\n  font-family: $main-font;\n  font-weight: $light-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-light-italic {\n  @include main-font-light;\n  font-style: italic;\n}\n\n@mixin main-font-regular {\n  font-family: $main-font;\n  font-weight: $regular-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-regular-italic {\n  @include main-font-regular;\n  font-style: italic;\n}\n\n@mixin main-font-medium {\n  font-family: $main-font;\n  font-weight: $medium-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-medium-italic {\n  @include main-font-medium;\n  font-style: italic;\n}\n\n@mixin main-font-semi-bold {\n  font-family: $main-font;\n  font-weight: $semi-bold-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-semi-bold-italic {\n  @include main-font-semi-bold;\n  font-style: italic;\n}\n\n@mixin main-font-bold {\n  font-family: $main-font;\n  font-weight: $bold-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-bold-italic {\n  @include main-font-bold;\n  font-style: italic;\n}\n\n@mixin main-font-extra-bold {\n  font-family: $main-font;\n  font-weight: $extra-bold-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-extra-bold-italic {\n  @include main-font-extra-bold;\n  font-style: italic;\n}\n\n@mixin main-font-black {\n  font-family: $main-font;\n  font-weight: $black-font-weight;\n  font-style: normal;\n}\n\n@mixin main-font-black-italic {\n  @include main-font-black;\n  font-style: italic;\n}\n\n$barlowSemiCondensed-semibold: 'Barlow Semi Condensed Semibold', $noto-sans-fonts, sans-serif;\n$barlowSemiCondensed-medium: 'Barlow Semi Condensed Medium', $noto-sans-fonts, sans-serif;\n\n$code-font: 'Source Code Pro', Monaco, 'Bitstream Vera Sans Mono', 'Lucida Console', Terminal, monospace;\n\n/*\n   Font Awesome S3 Bucket URLs\n   Current version: 6.6.0\n   If you are changing the location of these files,\n   see the readme in this directory for more detail on manual steps to take when uploading new files.\n */\n$font-awesome-core-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/fontawesome.min.css';\n$font-awesome-brands-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/brands.min.css';\n$font-awesome-solid-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/solid.min.css';\n$font-awesome-regular-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/regular.min.css';\n$font-awesome-v4-fonts-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/v4-font-face.min.css';\n$font-awesome-v4-shims-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/v4-shims.min.css';\n$font-awesome-v4-shims-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/v4-shims.min.css';\n$font-awesome-duotone-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/duotone.min.css';\n$font-awesome-custom-icons-url: 'https://dsco.code.org/assets/font-awesome-pro/1728421354/css/custom-icons.min.css';\n","// colors from https://www.dropbox.com/s/ycjiwt8vxlmv2ih/Code.org_stylesheet_v2_09.05.13.pdf\n\n// Please keep this file simple; it should only contain color definitions\n//   and aliases.  Variables defined in this file are exported to\n//   apps/src/util/color.js during the apps build process.\n\n$black: #000;\n$background_black: #121416;\n$dark_gray: #2D3139;\n$darkest_gray: #292F36;\n$dark_slate_gray: #282c34;\n$darkest_slate_gray: #25292d;\n$dark_charcoal: #4d575f;\n$charcoal: #5b6770;\n$light_gray: #949ca2;\n$lighter_gray: #c6cacd;\n$lightest_gray: #e7e8ea;\n$background_gray: #f2f2f2;\n$dimgray: #696969;\n$white: #fff;\n$default_blue: #3670b3;\n\n$dark_teal: #0094a3;\n$teal: #0093a4;\n$applab_button_teal: #1abc9c;\n$light_teal: #59cad3;\n$lightish_teal: #80d6de;\n$lighter_teal: #a6e3e8;\n$lightest_teal: #d9f3f5;\n$ai_rubric_cyan: #3cfff8;\n\n$purple: #8c52ba;\n$light_purple: #a69bc1;\n$lighter_purple: #cfc9de;\n$lightest_purple: #ebe8f1;\n\n$cyan: #0094ca;\n$light_cyan: #59b9dc;\n$lighter_cyan: #a6daed;\n$lightest_cyan: #d9eff7;\n$almost_white_cyan: #f5fcff;\n\n$orange: #ffa400;\n$light_orange: #ffc459;\n$lighter_orange: #ffe0a6;\n$lightest_orange: #fff2d9;\n$dark_orange: #ff8600;\n\n$green: #b9bf15;\n$light_green: #d1d567;\n$lighter_green: #e7e9ad;\n$lightest_green: #f5f5dc;\n$highlight_green: #8afc9b;\n\n$yellow: #ffb81d;\n$light_yellow: #ffdb74;\n$lighter_yellow: #ffebb5;\n$lightest_yellow: #fff7df;\n\n$goldenrod: #daa520;\n\n$header_text: $white;\n$bkgnd_color: $teal;\n$inset_color: $lighter_gray;\n$dark_color: $purple;\n$hdr_color: $purple;\n\n// Some extra colors.\n$red: #c00;\n$lightest_red: #fcc;\n$dark_red: #d62911;\n$realgreen: #008000;\n$realyellow: #ff0;\n$mustardyellow: #efcd1c;\n$twitter_blue: #00aced;\n$facebook_blue: #3b5998;\n$linkedin_blue: #0077B5;\n$dark_blue: #00647f;\n$blockly_flyout_gray: #ddd;\n$default_text: #333;\n$border_gray: #bbb;\n$border_light_gray: #d8d8d8;\n$table_header: #ececec;\n$table_light_row: #fcfcfc;\n$table_dark_row: #f4f4f4;\n\n// Progress colors.\n$level_submitted: $purple;\n$level_perfect: rgb(14, 190, 14);\n$level_passed: rgb(159, 212, 159);\n$level_attempted: $realyellow;\n$level_not_tried: #fefefe;\n$level_current: $orange;\n$level_review_rejected: $red;\n$level_review_accepted: rgb(11, 142, 11); // TODO: $level_passed;\n$assessment: $cyan;\n$workspace_running_background: #e5e5e5;\n\n// Experimental Sprite Lab validation colors.\n$dark_purple: #682A77;\n$bright_green: #0ebe0e;\n$neon_pink: #e9118f;\n\n// Links (used in apps).\n$link_color: #0596ce;\n\n// Shadow.\n$shadow: rgba(0, 0, 0, 0.3);\n\n// Colors that are taken from bootstrap, and not necessarily part of our core theme.\n$bootstrap_button_blue: #337ab7;\n$bootstrap_button_red: #d9534f;\n$bootstrap_error_background: #f2dede;\n$bootstrap_error_text: #b94a48;\n$bootstrap_v3_error_text: #a94442;\n$bootstrap_error_border: #ebccd1;\n$bootstrap_warning_background: #fcf8e3;\n$bootstrap_warning_text: #c09853;\n$bootstrap_warning_border: #faebcc;\n$bootstrap_border_color: #cccccc;\n$bootstrap_success_background: #dff0d8;\n$bootstrap_success_text: #468847;\n$bootstrap_success_border: #d6e9c6;\n\n// Colors taken from droplet, not part of our core theme.\n$droplet_light_green: #d3e965;\n$droplet_blue: #64b5f6;\n$droplet_bright_blue: #19c3e1;\n$droplet_yellow: #fff176;\n$droplet_orange: #ffb74d;\n$droplet_red: #f78183;\n$droplet_cyan: #4dd0e1;\n$droplet_pink: #f57ac6;\n$droplet_purple: #bb77c7;\n$droplet_green: #68d995;\n$droplet_white: $white;\n\n// Oceans: deep blue background.\n$oceans_deep_blue: rgb(2, 0, 28);\n\n// Dark theme background (used by default in Music Lab)\n$dark_black: #121212;\n\n// ===----===----===---- Phase 1 Colors: ----===----===----===\n// Brand\n$brand_primary_light: #E0F8F9;\n$brand_primary_default: #009EB0;\n$brand_primary_dark: #007785;\n\n$brand_secondary_light: #E0D1EC;\n$brand_secondary_default: #8C52BA;\n$brand_secondary_dark: #6C468A;\n\n$brand_accent_default: #ED6060;\n\n$brand_teal_5: #DFF2F4;\n\n//Product\n$product_affirmative_default: #3EA33E;\n\n$product_negative_light: #FDEBE9;\n$product_negative_default: #E5311A;\n$product_negative_dark: #AA2513;\n\n$product_caution_default: #F9CB28;\n\n$product_information_default: #007ACC;\n\n// Neutral\n$neutral_white: #FFFFFF;\n$neutral_light: #F7F8FA;\n$neutral_gray10: #EAEBEB;\n$neutral_dark10: #EAECEF;\n$neutral_dark20: #D1D4D8;\n$neutral_dark30: #BEC2C7;\n$neutral_dark40: #ABB0B6;\n$neutral_dark50: #989EA5;\n$neutral_dark60: #858C94;\n$neutral_dark70: #727A83;\n$neutral_dark80: #5F6872;\n$neutral_dark90: #4C5661;\n$neutral_dark: #292F36;\n\n//Brands\n$google_brand_color: #0F9D58;\n$microsoft_brand_color: #FFB900;\n$facebook_brand_color: #3B5998;\n$clever_brand_color: #1464FF;\n\n// ===----===----===---- Design system colors: ----===----===----===\n\n$light_primary_100: #BFE4E8;\n$light_primary_500: #0093A4;\n$light_primary_700: #007785;\n\n$light_secondary_100: #E2D4EE;\n$light_secondary_500: #8C52BA;\n$light_secondary_700: #6C468A;\n\n$light_gray_50: #F7F8FA;\n$light_gray_100: #EAECEF;\n$light_gray_200: #D1D4D8;\n$light_gray_300: #BEC2C7;\n$light_gray_400: #ABB0B6;\n$light_gray_500: #989EA5;\n$light_gray_600: #858C94;\n$light_gray_700: #727A83;\n$light_gray_800: #5F6872;\n$light_gray_900: #4C5661;\n$light_gray_950: #394450;\n\n$light_affirmative_100: #E2F1E2;\n$light_affirmative_500: #3EA33E;\n$light_affirmative_700: #2D742D;\n\n$light_negative_100: #FBE0DD;\n$light_negative_500: #E5311A;\n$light_negative_700: #B24949;\n\n$light_caution_100: #FEF7DF;\n$light_caution_500: #F9CB28;\n$light_caution_700: #C7A220;\n\n$light_accent_100: #FAD7D7;\n$light_accent_500: #ED6060;\n$light_accent_700: #D84C4C;\n\n$light_aqua_100: #CEFFFD;\n$light_aqua_500: #3CFFF8;\n$light_aqua_700: #30CCC6;\n\n$light_orange_100: #FFEDCC;\n$light_orange_500: #FFA400;\n$light_orange_700: #CC8300;\n\n$light_info_100: #DCEFFB;\n$light_info_500: #1892E3;\n$light_info_700: #1375B6;\n\n$light_white: #FFFFFF;\n\n$light_black: #292F36;\n\n$light_black_opacity_90: rgba(41, 47, 54, 0.90);\n$light_black_opacity-80: rgba(41, 47, 54, 0.80);\n$light_black_opacity-70: rgba(41, 47, 54, 0.70);\n$light_black_opacity-60: rgba(41, 47, 54, 0.60);\n$light_black_opacity-50: rgba(41, 47, 54, 0.50);\n$light_black_opacity-40: rgba(41, 47, 54, 0.40);\n$light_black_opacity-30: rgba(41, 47, 54, 0.30);\n$light_black_opacity-20: rgba(41, 47, 54, 0.20);\n$light_black_opacity-10: rgba(41, 47, 54, 0.10);\n"],sourceRoot:""}]),a.locals={categoryName:"NGS3plsLqqRqt11jpgSE",tableNumber:"zv6IrB3NKKxsGonOids5",categoryDescription:"HjFN6FjzkRNHnr04eB_0",tableName:"_pIzhypWAAaohvibldJi",collapsibleContainer:"zOVjdSjX3Kg2L3UeEBbw"};const l=a},3414:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57),i=n.n(r),o=n(58),a=n.n(o)()(i());a.push([e.id,'.JUz7bvMsCD64YzQs9JJX{display:inline-block;margin-bottom:10px;margin-top:10px}.YKKOcV8d6S0FjvBjErLy{content:"";display:inline-block;width:100%;height:0;font-size:0;line-height:0px}.OuOFoVqjBWXFQ_X31Ns7{margin-bottom:-28px;margin-top:-10px;padding-top:0;padding-bottom:10px;padding-left:0;padding-right:0;text-align:justify}.LHtWhw3Ds79AVCaklnWh{width:120px;margin-left:10px}.l0ad064ZGJAGAfKDRKfl{margin-left:0}.qVOvxyVKD_q5Q2hZY46t{font-size:18px}.Y2P6Nqd2Qw5kBTQ5SKz_{align-items:flex-end;display:inline-flex;height:30px;margin-right:10px;vertical-align:middle}',"",{version:3,sources:["webpack://./src/storage/dataBrowser/table-controls.module.scss"],names:[],mappings:"AAAA,sBACE,oBAAA,CACA,kBAAA,CACA,eAAA,CAGF,sBACE,UAAA,CACA,oBAAA,CACA,UAAA,CACA,QAAA,CACA,WAAA,CACA,eAAA,CAGF,sBAEE,mBAAA,CAEA,gBAAA,CACA,aAAA,CACA,mBAAA,CACA,cAAA,CACA,eAAA,CAGA,kBAAA,CAGF,sBACE,WAAA,CACA,gBAAA,CAGF,sBACE,aAAA,CAGF,sBACE,cAAA,CAGF,sBACE,oBAAA,CACA,mBAAA,CACA,WAAA,CACA,iBAAA,CACA,qBAAA",sourcesContent:['.buttonWrapper {\n  display: inline-block;\n  margin-bottom: 10px;\n  margin-top: 10px;\n}\n\n.clearfix {\n  content: "";\n  display: inline-block;\n  width: 100%;\n  height: 0;\n  font-size: 0;\n  line-height: 0px;\n}\n\n.container {\n  // subtract the height of the clearfix element\n  margin-bottom: -28px;\n  // subtract the top margin of the buttonWrapper\n  margin-top: -10px;\n  padding-top: 0;\n  padding-bottom: 10px;\n  padding-left: 0;\n  padding-right: 0;\n  // make the buttons align right usually, but align left if they\n  // are forced to wrap onto the next line by a very long table name.\n  text-align: justify;\n}\n\n.exportButton {\n  width: 120px;\n  margin-left: 10px;\n}\n\n.exportButtonRtl {\n  margin-left: 0;\n}\n\n.tableName {\n  font-size: 18px;\n}\n\n.tableNameWrapper {\n  align-items: flex-end;\n  display: inline-flex;\n  height: 30px;\n  margin-right: 10px;\n  vertical-align: middle;\n}\n'],sourceRoot:""}]),a.locals={buttonWrapper:"JUz7bvMsCD64YzQs9JJX",clearfix:"YKKOcV8d6S0FjvBjErLy",container:"OuOFoVqjBWXFQ_X31Ns7",exportButton:"LHtWhw3Ds79AVCaklnWh",exportButtonRtl:"l0ad064ZGJAGAfKDRKfl",tableName:"qVOvxyVKD_q5Q2hZY46t",tableNameWrapper:"Y2P6Nqd2Qw5kBTQ5SKz_"};const l=a},3157:(e,t,n)=>{var r=n(3158),i=n(3574),o={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var l={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",i=0;i<e.length;i++){var o=e[i];"root"===o.type?n+=s(o.children,t):r.isTag(o)?n+=u(o,t):o.type===r.Directive?n+=c(o):o.type===r.Comment?n+=p(o):o.type===r.CDATA?n+=f(o):n+=d(o,t)}return n};function u(e,t){"svg"===e.name&&(t={decodeEntities:t.decodeEntities,xmlMode:!0});var n="<"+e.name,r=function(e,t){if(e){var n,r="";for(var a in e)r&&(r+=" "),!(n=e[a])&&o[a]?r+=a:r+=a+'="'+(t.decodeEntities?i.encodeXML(n):n)+'"';return r}}(e.attribs,t);return r&&(n+=" "+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=s(e.children,t)),l[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function c(e){return"<"+e.data+">"}function d(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in a||(n=i.encodeXML(n)),n}function f(e){return"<![CDATA["+e.children[0].data+"]]>"}function p(e){return"\x3c!--"+e.data+"--\x3e"}},3158:e=>{e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},2176:e=>{e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},3155:(e,t,n)=>{var r=e.exports;[n(3156),n(3576),n(3577),n(3160),n(3578),n(3579)].forEach((function(e){Object.keys(e).forEach((function(t){r[t]=e[t].bind(r)}))}))},3579:(e,t)=>{t.removeSubsets=function(e){for(var t,n,r,i=e.length;--i>-1;){for(t=n=e[i],e[i]=null,r=!0;n;){if(e.indexOf(n)>-1){r=!1,e.splice(i,1);break}n=n.parent}r&&(e[i]=t)}return e};var n=1,r=2,i=4,o=8,a=16,l=t.compareDocumentPosition=function(e,t){var l,s,u,c,d,f,p=[],h=[];if(e===t)return 0;for(l=e;l;)p.unshift(l),l=l.parent;for(l=t;l;)h.unshift(l),l=l.parent;for(f=0;p[f]===h[f];)f++;return 0===f?n:(u=(s=p[f-1]).children,c=p[f],d=h[f],u.indexOf(c)>u.indexOf(d)?s===t?i|a:i:s===e?r|o:r)};t.uniqueSort=function(e){var t,n,o=e.length;for(e=e.slice();--o>-1;)t=e[o],(n=e.indexOf(t))>-1&&n<o&&e.splice(o,1);return e.sort((function(e,t){var n=l(e,t);return n&r?-1:n&i?1:0})),e}},3578:(e,t,n)=>{var r=n(2176),i=t.isTag=r.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if("tag_name"===n){if(!i(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(i(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1}else;return!0};var o={tag_name:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.name)}:"*"===e?i:function(t){return i(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!i(t)&&e(t.data)}:function(t){return!i(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function l(e,t){return function(n){return e(n)||t(n)}}t.getElements=function(e,t,n,r){var i=Object.keys(e).map((function(t){var n=e[t];return t in o?o[t](n):a(t,n)}));return 0===i.length?[]:this.filter(i.reduce(l),t,n,r)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==n)},t.getElementsByTagName=function(e,t,n,r){return this.filter(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return this.filter(o.tag_type(e),t,n,r)}},3577:(e,t)=>{t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},3160:(e,t,n)=>{var r=n(2176).isTag;function i(e,t,n,r){for(var o,a=[],l=0,s=t.length;l<s&&!(e(t[l])&&(a.push(t[l]),--r<=0))&&(o=t[l].children,!(n&&o&&o.length>0&&(o=i(e,o,n,r),a=a.concat(o),(r-=o.length)<=0)));l++);return a}e.exports={filter:function(e,t,n,r){Array.isArray(t)||(t=[t]);"number"==typeof r&&isFinite(r)||(r=1/0);return i(e,t,!1!==n,r)},find:i,findOneChild:function(e,t){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return t[n];return null},findOne:function e(t,n){for(var i=null,o=0,a=n.length;o<a&&!i;o++)r(n[o])&&(t(n[o])?i=n[o]:n[o].children.length>0&&(i=e(t,n[o].children)));return i},existsOne:function e(t,n){for(var i=0,o=n.length;i<o;i++)if(r(n[i])&&(t(n[i])||n[i].children.length>0&&e(t,n[i].children)))return!0;return!1},findAll:function e(t,n){for(var i=[],o=0,a=n.length;o<a;o++)r(n[o])&&(t(n[o])&&i.push(n[o]),n[o].children.length>0&&(i=i.concat(e(t,n[o].children))));return i}}},3156:(e,t,n)=>{var r=n(2176),i=n(3157),o=r.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map((function(e){return i(e,t)})).join(""):""},getOuterHTML:i,getText:function e(t){return Array.isArray(t)?t.map(e).join(""):o(t)||t.type===r.CDATA?e(t.children):t.type===r.Text?t.data:""}}},3576:(e,t)=>{var n=t.getChildren=function(e){return e.children},r=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=r(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},3574:(e,t,n)=>{var r=n(3575),i=n(3159);t.decode=function(e,t){return(!t||t<=0?i.XML:i.HTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?i.XML:i.HTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.XML:r.HTML)(e)},t.encodeXML=r.XML,t.encodeHTML4=t.encodeHTML5=t.encodeHTML=r.HTML,t.decodeXML=t.decodeXMLStrict=i.XML,t.decodeHTML4=t.decodeHTML5=t.decodeHTML=i.HTML,t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=i.HTMLStrict,t.escape=r.escape},3159:(e,t,n)=>{var r=n(2690),i=n(3141),o=n(2691),a=n(2689),l=u(o),s=u(r);function u(e){var t=Object.keys(e).join("|"),n=f(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}var c=function(){for(var e=Object.keys(i).sort(d),t=Object.keys(r).sort(d),n=0,o=0;n<t.length;n++)e[o]===t[n]?(t[n]+=";?",o++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),l=f(r);function s(e){return";"!==e.substr(-1)&&(e+=";"),l(e)}return function(e){return String(e).replace(a,s)}}();function d(e,t){return e<t?1:-1}function f(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?a(parseInt(t.substr(3),16)):a(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}e.exports={XML:l,HTML:c,HTMLStrict:s}},2689:(e,t,n)=>{var r=n(3569);e.exports=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in r&&(e=r[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},3575:(e,t,n)=>{var r=l(n(2691)),i=s(r);t.XML=p(r,i);var o=l(n(2690)),a=s(o);function l(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function s(e){var t=[],n=[];return Object.keys(e).forEach((function(e){1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.HTML=p(o,a);var u=/[^\0-\x7F]/g,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function d(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function f(e){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function p(e,t){function n(t){return e[t]}return function(e){return e.replace(t,n).replace(c,f).replace(u,d)}}var h=s(r);t.escape=function(e){return e.replace(h,d).replace(c,f).replace(u,d)}},2551:function(e,t,n){var r,i,o=n(107);r=function(){"use strict";var e,t=Function.call.bind(Function.apply),r=Function.call.bind(Function.call),i=Array.isArray,a=Object.keys,l=function(e){return function(){return!t(e,this,arguments)}},s=function(e){try{return e(),!1}catch(t){return!0}},u=function(e){try{return e()}catch(t){return!1}},c=l(s),d=function(){return!s((function(){Object.defineProperty({},"x",{get:function(){}})}))},f=!!Object.defineProperty&&d(),p="foo"===function(){}.name,h=Function.call.bind(Array.prototype.forEach),g=Function.call.bind(Array.prototype.reduce),m=Function.call.bind(Array.prototype.filter),b=Function.call.bind(Array.prototype.some),y=function(e,t,n,r){!r&&t in e||(f?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n}):e[t]=n)},v=function(e,t,n){h(a(t),(function(r){var i=t[r];y(e,r,i,!!n)}))},_=Function.call.bind(Object.prototype.toString),E=function(e){return"function"==typeof e},w={getter:function(e,t,n){if(!f)throw new TypeError("getters require true ES5 support");Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:n})},proxy:function(e,t,n){if(!f)throw new TypeError("getters require true ES5 support");var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,{configurable:r.configurable,enumerable:r.enumerable,get:function(){return e[t]},set:function(n){e[t]=n}})},redefine:function(e,t,n){if(f){var r=Object.getOwnPropertyDescriptor(e,t);r.value=n,Object.defineProperty(e,t,r)}else e[t]=n},defineByDescriptor:function(e,t,n){f?Object.defineProperty(e,t,n):"value"in n&&(e[t]=n.value)},preserveToString:function(e,t){t&&E(t.toString)&&y(e,"toString",t.toString.bind(t),!0)}},A=Object.create||function(e,t){var n=function(){};n.prototype=e;var r=new n;return void 0!==t&&a(t).forEach((function(e){w.defineByDescriptor(r,e,t[e])})),r},C=function(e,t){return!!Object.setPrototypeOf&&u((function(){var n=function t(n){var r=new e(n);return Object.setPrototypeOf(r,t.prototype),r};return Object.setPrototypeOf(n,e),n.prototype=A(e.prototype,{constructor:{value:n}}),t(n)}))},S=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}(),O=S.isFinite,T=Function.call.bind(String.prototype.indexOf),P=Function.apply.bind(Array.prototype.indexOf),R=Function.call.bind(Array.prototype.concat),x=Function.call.bind(String.prototype.slice),I=Function.call.bind(Array.prototype.push),k=Function.apply.bind(Array.prototype.push),D=Function.call.bind(Array.prototype.shift),M=Math.max,j=Math.min,F=Math.floor,N=Math.abs,L=Math.exp,B=Math.log,$=Math.sqrt,W=Function.call.bind(Object.prototype.hasOwnProperty),U=function(){},G=S.Symbol||{},V=G.species||"@@species",H=Number.isNaN||function(e){return e!=e},z=Number.isFinite||function(e){return"number"==typeof e&&O(e)},q=E(Math.sign)?Math.sign:function(e){var t=Number(e);return 0===t||H(t)?t:t<0?-1:1},Y=function(e){return"[object Arguments]"===_(e)},X=function(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==_(e)&&"[object Function]"===_(e.callee)},K=Y(arguments)?Y:X,Q={primitive:function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},string:function(e){return"[object String]"===_(e)},regex:function(e){return"[object RegExp]"===_(e)},symbol:function(e){return"function"==typeof S.Symbol&&"symbol"==typeof e}},Z=function(e,t,n){var r=e[t];y(e,t,n,!0),w.preserveToString(e[t],r)},J="function"==typeof G&&"function"==typeof G.for&&Q.symbol(G()),ee=Q.symbol(G.iterator)?G.iterator:"_es6-shim iterator_";S.Set&&"function"==typeof(new S.Set)["@@iterator"]&&(ee="@@iterator"),S.Reflect||y(S,"Reflect",{},!0);var te,ne=S.Reflect,re=String,ie={Call:function(e,n){var r=arguments.length>2?arguments[2]:[];if(!ie.IsCallable(e))throw new TypeError(e+" is not a function");return t(e,n,r)},RequireObjectCoercible:function(e,t){if(null==e)throw new TypeError(t||"Cannot call method on "+e);return e},TypeIsObject:function(e){return null!=e&&!0!==e&&!1!==e&&("function"==typeof e||"object"==typeof e)},ToObject:function(e,t){return Object(ie.RequireObjectCoercible(e,t))},IsCallable:E,IsConstructor:function(e){return ie.IsCallable(e)},ToInt32:function(e){return 0|ie.ToNumber(e)},ToUint32:function(e){return ie.ToNumber(e)>>>0},ToNumber:function(e){if("[object Symbol]"===_(e))throw new TypeError("Cannot convert a Symbol value to a number");return+e},ToInteger:function(e){var t=ie.ToNumber(e);return H(t)?0:0!==t&&z(t)?(t>0?1:-1)*F(N(t)):t},ToLength:function(e){var t=ie.ToInteger(e);return t<=0?0:t>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t},SameValue:function(e,t){return e===t?0!==e||1/e==1/t:H(e)&&H(t)},SameValueZero:function(e,t){return e===t||H(e)&&H(t)},IsIterable:function(e){return ie.TypeIsObject(e)&&(void 0!==e[ee]||K(e))},GetIterator:function(t){if(K(t))return new e(t,"value");var n=ie.GetMethod(t,ee);if(!ie.IsCallable(n))throw new TypeError("value is not an iterable");var r=ie.Call(n,t);if(!ie.TypeIsObject(r))throw new TypeError("bad iterator");return r},GetMethod:function(e,t){var n=ie.ToObject(e)[t];if(null!=n){if(!ie.IsCallable(n))throw new TypeError("Method not callable: "+t);return n}},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var n=ie.GetMethod(e,"return");if(void 0!==n){var r,i;try{r=ie.Call(n,e)}catch(o){i=o}if(!t){if(i)throw i;if(!ie.TypeIsObject(r))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!ie.TypeIsObject(t))throw new TypeError("bad iterator");return t},IteratorStep:function(e){var t=ie.IteratorNext(e);return!ie.IteratorComplete(t)&&t},Construct:function(e,t,n,r){var i=void 0===n?e:n;if(!r&&ne.construct)return ne.construct(e,t,i);var o=i.prototype;ie.TypeIsObject(o)||(o=Object.prototype);var a=A(o),l=ie.Call(e,a,t);return ie.TypeIsObject(l)?l:a},SpeciesConstructor:function(e,t){var n=e.constructor;if(void 0===n)return t;if(!ie.TypeIsObject(n))throw new TypeError("Bad constructor");var r=n[V];if(null==r)return t;if(!ie.IsConstructor(r))throw new TypeError("Bad @@species");return r},CreateHTML:function(e,t,n,r){var i=ie.ToString(e),o="<"+t;return""!==n&&(o+=" "+n+'="'+ie.ToString(r).replace(/"/g,"&quot;")+'"'),o+">"+i+"</"+t+">"},IsRegExp:function(e){if(!ie.TypeIsObject(e))return!1;var t=e[G.match];return void 0!==t?!!t:Q.regex(e)},ToString:function(e){return re(e)}};if(f&&J){var oe=function(e){if(Q.symbol(G[e]))return G[e];var t=G.for("Symbol."+e);return Object.defineProperty(G,e,{configurable:!1,enumerable:!1,writable:!1,value:t}),t};if(!Q.symbol(G.search)){var ae=oe("search"),le=String.prototype.search;y(RegExp.prototype,ae,(function(e){return ie.Call(le,e,[this])}));var se=function(e){var t=ie.RequireObjectCoercible(this);if(null!=e){var n=ie.GetMethod(e,ae);if(void 0!==n)return ie.Call(n,e,[t])}return ie.Call(le,t,[ie.ToString(e)])};Z(String.prototype,"search",se)}if(!Q.symbol(G.replace)){var ue=oe("replace"),ce=String.prototype.replace;y(RegExp.prototype,ue,(function(e,t){return ie.Call(ce,e,[this,t])}));var de=function(e,t){var n=ie.RequireObjectCoercible(this);if(null!=e){var r=ie.GetMethod(e,ue);if(void 0!==r)return ie.Call(r,e,[n,t])}return ie.Call(ce,n,[ie.ToString(e),t])};Z(String.prototype,"replace",de)}if(!Q.symbol(G.split)){var fe=oe("split"),pe=String.prototype.split;y(RegExp.prototype,fe,(function(e,t){return ie.Call(pe,e,[this,t])}));var he=function(e,t){var n=ie.RequireObjectCoercible(this);if(null!=e){var r=ie.GetMethod(e,fe);if(void 0!==r)return ie.Call(r,e,[n,t])}return ie.Call(pe,n,[ie.ToString(e),t])};Z(String.prototype,"split",he)}var ge=Q.symbol(G.match),me=ge&&((te={})[G.match]=function(){return 42},42!=="a".match(te));if(!ge||me){var be=oe("match"),ye=String.prototype.match;y(RegExp.prototype,be,(function(e){return ie.Call(ye,e,[this])}));var ve=function(e){var t=ie.RequireObjectCoercible(this);if(null!=e){var n=ie.GetMethod(e,be);if(void 0!==n)return ie.Call(n,e,[t])}return ie.Call(ye,t,[ie.ToString(e)])};Z(String.prototype,"match",ve)}}var _e=function(e,t,n){w.preserveToString(t,e),Object.setPrototypeOf&&Object.setPrototypeOf(e,t),f?h(Object.getOwnPropertyNames(e),(function(r){r in U||n[r]||w.proxy(e,r,t)})):h(Object.keys(e),(function(r){r in U||n[r]||(t[r]=e[r])})),t.prototype=e.prototype,w.redefine(e.prototype,"constructor",t)},Ee=function(){return this},we=function(e){f&&!W(e,V)&&w.getter(e,V,Ee)},Ae=function(e,t){var n=t||function(){return this};y(e,ee,n),!e[ee]&&Q.symbol(ee)&&(e[ee]=n)},Ce=function(e,t,n){f?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t,n){if(Ce(e,t,n),!ie.SameValue(e[t],n))throw new TypeError("property is nonconfigurable")},Oe=function(e,t,n,r){if(!ie.TypeIsObject(e))throw new TypeError("Constructor requires `new`: "+t.name);var i=t.prototype;ie.TypeIsObject(i)||(i=n);var o=A(i);for(var a in r)if(W(r,a)){var l=r[a];y(o,a,l,!0)}return o};if(String.fromCodePoint&&1!==String.fromCodePoint.length){var Te=String.fromCodePoint;Z(String,"fromCodePoint",(function(e){return ie.Call(Te,this,arguments)}))}var Pe={fromCodePoint:function(e){for(var t,n=[],r=0,i=arguments.length;r<i;r++){if(t=Number(arguments[r]),!ie.SameValue(t,ie.ToInteger(t))||t<0||t>1114111)throw new RangeError("Invalid code point "+t);t<65536?I(n,String.fromCharCode(t)):(t-=65536,I(n,String.fromCharCode(55296+(t>>10))),I(n,String.fromCharCode(t%1024+56320)))}return n.join("")},raw:function(e){var t=ie.ToObject(e,"bad callSite"),n=ie.ToObject(t.raw,"bad raw value"),r=n.length,i=ie.ToLength(r);if(i<=0)return"";for(var o,a,l,s,u=[],c=0;c<i&&(o=ie.ToString(c),l=ie.ToString(n[o]),I(u,l),!(c+1>=i));)a=c+1<arguments.length?arguments[c+1]:"",s=ie.ToString(a),I(u,s),c+=1;return u.join("")}};String.raw&&"xy"!==String.raw({raw:{0:"x",1:"y",length:2}})&&Z(String,"raw",Pe.raw),v(String,Pe);var Re=function e(t,n){if(n<1)return"";if(n%2)return e(t,n-1)+t;var r=e(t,n/2);return r+r},xe=1/0,Ie={repeat:function(e){var t=ie.ToString(ie.RequireObjectCoercible(this)),n=ie.ToInteger(e);if(n<0||n>=xe)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Re(t,n)},startsWith:function(e){var t=ie.ToString(ie.RequireObjectCoercible(this));if(ie.IsRegExp(e))throw new TypeError('Cannot call method "startsWith" with a regex');var n,r=ie.ToString(e);arguments.length>1&&(n=arguments[1]);var i=M(ie.ToInteger(n),0);return x(t,i,i+r.length)===r},endsWith:function(e){var t=ie.ToString(ie.RequireObjectCoercible(this));if(ie.IsRegExp(e))throw new TypeError('Cannot call method "endsWith" with a regex');var n,r=ie.ToString(e),i=t.length;arguments.length>1&&(n=arguments[1]);var o=void 0===n?i:ie.ToInteger(n),a=j(M(o,0),i);return x(t,a-r.length,a)===r},includes:function(e){if(ie.IsRegExp(e))throw new TypeError('"includes" does not accept a RegExp');var t,n=ie.ToString(e);return arguments.length>1&&(t=arguments[1]),-1!==T(this,n,t)},codePointAt:function(e){var t=ie.ToString(ie.RequireObjectCoercible(this)),n=ie.ToInteger(e),r=t.length;if(n>=0&&n<r){var i=t.charCodeAt(n);if(i<55296||i>56319||n+1===r)return i;var o=t.charCodeAt(n+1);return o<56320||o>57343?i:1024*(i-55296)+(o-56320)+65536}}};if(String.prototype.includes&&!1!=="a".includes("a",1/0)&&Z(String.prototype,"includes",Ie.includes),String.prototype.startsWith&&String.prototype.endsWith){var ke=s((function(){"/a/".startsWith(/a/)})),De=u((function(){return!1==="abc".startsWith("a",1/0)}));ke&&De||(Z(String.prototype,"startsWith",Ie.startsWith),Z(String.prototype,"endsWith",Ie.endsWith))}J&&(u((function(){var e=/a/;return e[G.match]=!1,"/a/".startsWith(e)}))||Z(String.prototype,"startsWith",Ie.startsWith),u((function(){var e=/a/;return e[G.match]=!1,"/a/".endsWith(e)}))||Z(String.prototype,"endsWith",Ie.endsWith),u((function(){var e=/a/;return e[G.match]=!1,"/a/".includes(e)}))||Z(String.prototype,"includes",Ie.includes)),v(String.prototype,Ie);var Me=["\t\n\v\f\r   ᠎    ","         　\u2028","\u2029\ufeff"].join(""),je=new RegExp("(^["+Me+"]+)|(["+Me+"]+$)","g"),Fe=function(){return ie.ToString(ie.RequireObjectCoercible(this)).replace(je,"")},Ne=["","​","￾"].join(""),Le=new RegExp("["+Ne+"]","g"),Be=/^[\-+]0x[0-9a-f]+$/i,$e=Ne.trim().length!==Ne.length;y(String.prototype,"trim",Fe,$e);var We=function(e){return{value:e,done:0===arguments.length}},Ue=function(e){ie.RequireObjectCoercible(e),this._s=ie.ToString(e),this._i=0};Ue.prototype.next=function(){var e=this._s,t=this._i;if(void 0===e||t>=e.length)return this._s=void 0,We();var n,r,i=e.charCodeAt(t);return r=i<55296||i>56319||t+1===e.length||(n=e.charCodeAt(t+1))<56320||n>57343?1:2,this._i=t+r,We(e.substr(t,r))},Ae(Ue.prototype),Ae(String.prototype,(function(){return new Ue(this)}));var Ge={from:function(e){var t,n,i,o,a,l,s=this;if(arguments.length>1&&(t=arguments[1]),void 0===t)n=!1;else{if(!ie.IsCallable(t))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(i=arguments[2]),n=!0}if(void 0!==(K(e)||ie.GetMethod(e,ee))){a=ie.IsConstructor(s)?Object(new s):[];var u,c,d=ie.GetIterator(e);for(l=0;!1!==(u=ie.IteratorStep(d));){c=u.value;try{n&&(c=void 0===i?t(c,l):r(t,i,c,l)),a[l]=c}catch(h){throw ie.IteratorClose(d,!0),h}l+=1}o=l}else{var f,p=ie.ToObject(e);for(o=ie.ToLength(p.length),a=ie.IsConstructor(s)?Object(new s(o)):new Array(o),l=0;l<o;++l)f=p[l],n&&(f=void 0===i?t(f,l):r(t,i,f,l)),Se(a,l,f)}return a.length=o,a},of:function(){for(var e=arguments.length,t=this,n=i(t)||!ie.IsCallable(t)?new Array(e):ie.Construct(t,[e]),r=0;r<e;++r)Se(n,r,arguments[r]);return n.length=e,n}};v(Array,Ge),we(Array),v((e=function(e,t){this.i=0,this.array=e,this.kind=t}).prototype,{next:function(){var t=this.i,n=this.array;if(!(this instanceof e))throw new TypeError("Not an ArrayIterator");if(void 0!==n)for(var r=ie.ToLength(n.length);t<r;t++){var i,o=this.kind;return"key"===o?i=t:"value"===o?i=n[t]:"entry"===o&&(i=[t,n[t]]),this.i=t+1,We(i)}return this.array=void 0,We()}}),Ae(e.prototype),Array.of===Ge.of||function(){var e=function(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&2===t.length}()||Z(Array,"of",Ge.of);var Ve={copyWithin:function(e,t){var n,r=ie.ToObject(this),i=ie.ToLength(r.length),o=ie.ToInteger(e),a=ie.ToInteger(t),l=o<0?M(i+o,0):j(o,i),s=a<0?M(i+a,0):j(a,i);arguments.length>2&&(n=arguments[2]);var u=void 0===n?i:ie.ToInteger(n),c=u<0?M(i+u,0):j(u,i),d=j(c-s,i-l),f=1;for(s<l&&l<s+d&&(f=-1,s+=d-1,l+=d-1);d>0;)s in r?r[l]=r[s]:delete r[l],s+=f,l+=f,d-=1;return r},fill:function(e){var t,n;arguments.length>1&&(t=arguments[1]),arguments.length>2&&(n=arguments[2]);var r=ie.ToObject(this),i=ie.ToLength(r.length);t=ie.ToInteger(void 0===t?0:t);for(var o=(n=ie.ToInteger(void 0===n?i:n))<0?i+n:n,a=t<0?M(i+t,0):j(t,i);a<i&&a<o;++a)r[a]=e;return r},find:function(e){var t=ie.ToObject(this),n=ie.ToLength(t.length);if(!ie.IsCallable(e))throw new TypeError("Array#find: predicate must be a function");for(var i,o=arguments.length>1?arguments[1]:null,a=0;a<n;a++)if(i=t[a],o){if(r(e,o,i,a,t))return i}else if(e(i,a,t))return i},findIndex:function(e){var t=ie.ToObject(this),n=ie.ToLength(t.length);if(!ie.IsCallable(e))throw new TypeError("Array#findIndex: predicate must be a function");for(var i=arguments.length>1?arguments[1]:null,o=0;o<n;o++)if(i){if(r(e,i,t[o],o,t))return o}else if(e(t[o],o,t))return o;return-1},keys:function(){return new e(this,"key")},values:function(){return new e(this,"value")},entries:function(){return new e(this,"entry")}};if(Array.prototype.keys&&!ie.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!ie.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[ee]&&(v(Array.prototype,{values:Array.prototype[ee]}),Q.symbol(G.unscopables)&&(Array.prototype[G.unscopables].values=!0)),p&&Array.prototype.values&&"values"!==Array.prototype.values.name){var He=Array.prototype.values;Z(Array.prototype,"values",(function(){return ie.Call(He,this,arguments)})),y(Array.prototype,ee,Array.prototype.values,!0)}v(Array.prototype,Ve),1/[!0].indexOf(!0,-0)<0&&y(Array.prototype,"indexOf",(function(e){var t=P(this,arguments);return 0===t&&1/t<0?0:t}),!0),Ae(Array.prototype,(function(){return this.values()})),Object.getPrototypeOf&&Ae(Object.getPrototypeOf([].values()));var ze,qe=u((function(){return 0===Array.from({length:-1}).length})),Ye=1===(ze=Array.from([0].entries())).length&&i(ze[0])&&0===ze[0][0]&&0===ze[0][1];if(qe&&Ye||Z(Array,"from",Ge.from),!u((function(){return Array.from([0],void 0)}))){var Xe=Array.from;Z(Array,"from",(function(e){return arguments.length>1&&void 0!==arguments[1]?ie.Call(Xe,this,arguments):r(Xe,this,e)}))}var Ke=-(Math.pow(2,32)-1),Qe=function(e,t){var n={length:Ke};return n[t?(n.length>>>0)-1:0]=!0,u((function(){return r(e,n,(function(){throw new RangeError("should not reach here")}),[]),!0}))};if(!Qe(Array.prototype.forEach)){var Ze=Array.prototype.forEach;Z(Array.prototype,"forEach",(function(e){return ie.Call(Ze,this.length>=0?this:[],arguments)}),!0)}if(!Qe(Array.prototype.map)){var Je=Array.prototype.map;Z(Array.prototype,"map",(function(e){return ie.Call(Je,this.length>=0?this:[],arguments)}),!0)}if(!Qe(Array.prototype.filter)){var et=Array.prototype.filter;Z(Array.prototype,"filter",(function(e){return ie.Call(et,this.length>=0?this:[],arguments)}),!0)}if(!Qe(Array.prototype.some)){var tt=Array.prototype.some;Z(Array.prototype,"some",(function(e){return ie.Call(tt,this.length>=0?this:[],arguments)}),!0)}if(!Qe(Array.prototype.every)){var nt=Array.prototype.every;Z(Array.prototype,"every",(function(e){return ie.Call(nt,this.length>=0?this:[],arguments)}),!0)}if(!Qe(Array.prototype.reduce)){var rt=Array.prototype.reduce;Z(Array.prototype,"reduce",(function(e){return ie.Call(rt,this.length>=0?this:[],arguments)}),!0)}if(!Qe(Array.prototype.reduceRight,!0)){var it=Array.prototype.reduceRight;Z(Array.prototype,"reduceRight",(function(e){return ie.Call(it,this.length>=0?this:[],arguments)}),!0)}var ot=8!==Number("0o10"),at=2!==Number("0b10"),lt=b(Ne,(function(e){return 0===Number(e+0+e)}));if(ot||at||lt){var st=Number,ut=/^0b[01]+$/i,ct=/^0o[0-7]+$/i,dt=ut.test.bind(ut),ft=ct.test.bind(ct),pt=function(e){var t;if("function"==typeof e.valueOf&&(t=e.valueOf(),Q.primitive(t)))return t;if("function"==typeof e.toString&&(t=e.toString(),Q.primitive(t)))return t;throw new TypeError("No default value")},ht=Le.test.bind(Le),gt=Be.test.bind(Be),mt=function(){var e=function(t){var n;"string"==typeof(n=arguments.length>0?Q.primitive(t)?t:pt(t,"number"):0)&&(n=ie.Call(Fe,n),dt(n)?n=parseInt(x(n,2),2):ft(n)?n=parseInt(x(n,2),8):(ht(n)||gt(n))&&(n=NaN));var r=this,i=u((function(){return st.prototype.valueOf.call(r),!0}));return r instanceof e&&!i?new st(n):st(n)};return e}();_e(st,mt,{}),v(mt,{NaN:st.NaN,MAX_VALUE:st.MAX_VALUE,MIN_VALUE:st.MIN_VALUE,NEGATIVE_INFINITY:st.NEGATIVE_INFINITY,POSITIVE_INFINITY:st.POSITIVE_INFINITY}),Number=mt,w.redefine(S,"Number",mt)}var bt=Math.pow(2,53)-1;v(Number,{MAX_SAFE_INTEGER:bt,MIN_SAFE_INTEGER:-bt,EPSILON:2220446049250313e-31,parseInt:S.parseInt,parseFloat:S.parseFloat,isFinite:z,isInteger:function(e){return z(e)&&ie.ToInteger(e)===e},isSafeInteger:function(e){return Number.isInteger(e)&&N(e)<=Number.MAX_SAFE_INTEGER},isNaN:H}),y(Number,"parseInt",S.parseInt,Number.parseInt!==S.parseInt),[,1].find((function(e,t){return 0===t}))||Z(Array.prototype,"find",Ve.find),0!==[,1].findIndex((function(e,t){return 0===t}))&&Z(Array.prototype,"findIndex",Ve.findIndex);var yt,vt,_t,Et=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),wt=function(e,t){f&&Et(e,t)&&Object.defineProperty(e,t,{enumerable:!1})},At=function(){for(var e=Number(this),t=arguments.length,n=t-e,r=new Array(n<0?0:n),i=e;i<t;++i)r[i-e]=arguments[i];return r},Ct=function(e){return function(t,n){return t[n]=e[n],t}},St=function(e,t){var n,r=a(Object(t));return ie.IsCallable(Object.getOwnPropertySymbols)&&(n=m(Object.getOwnPropertySymbols(Object(t)),Et(t))),g(R(r,n||[]),Ct(t),e)},Ot={assign:function(e,t){var n=ie.ToObject(e,"Cannot convert undefined or null to object");return g(ie.Call(At,1,arguments),St,n)},is:function(e,t){return ie.SameValue(e,t)}};if(Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}}()&&Z(Object,"assign",Ot.assign),v(Object,Ot),f){var Tt={setPrototypeOf:function(e,t){var n,i=function(e,t){if(!ie.TypeIsObject(e))throw new TypeError("cannot set prototype on a non-object");if(null!==t&&!ie.TypeIsObject(t))throw new TypeError("can only set prototype to an object or null"+t)},o=function(e,t){return i(e,t),r(n,e,t),e};try{n=e.getOwnPropertyDescriptor(e.prototype,t).set,r(n,{},null)}catch(a){if(e.prototype!=={}[t])return;n=function(e){this[t]=e},o.polyfill=o(o({},null),e.prototype)instanceof e}return o}(Object,"__proto__")};v(Object,Tt)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&(yt=Object.create(null),vt=Object.getPrototypeOf,_t=Object.setPrototypeOf,Object.getPrototypeOf=function(e){var t=vt(e);return t===yt?null:t},Object.setPrototypeOf=function(e,t){return _t(e,null===t?yt:t)},Object.setPrototypeOf.polyfill=!1),s((function(){Object.keys("foo")}))){var Pt=Object.keys;Z(Object,"keys",(function(e){return Pt(ie.ToObject(e))})),a=Object.keys}if(s((function(){Object.keys(/a/g)}))){var Rt=Object.keys;Z(Object,"keys",(function(e){if(Q.regex(e)){var t=[];for(var n in e)W(e,n)&&I(t,n);return t}return Rt(e)})),a=Object.keys}if(Object.getOwnPropertyNames&&s((function(){Object.getOwnPropertyNames("foo")}))){var xt="object"==typeof window?Object.getOwnPropertyNames(window):[],It=Object.getOwnPropertyNames;Z(Object,"getOwnPropertyNames",(function(e){var t=ie.ToObject(e);if("[object Window]"===_(t))try{return It(t)}catch(n){return R([],xt)}return It(t)}))}if(Object.getOwnPropertyDescriptor&&s((function(){Object.getOwnPropertyDescriptor("foo","bar")}))){var kt=Object.getOwnPropertyDescriptor;Z(Object,"getOwnPropertyDescriptor",(function(e,t){return kt(ie.ToObject(e),t)}))}if(Object.seal&&s((function(){Object.seal("foo")}))){var Dt=Object.seal;Z(Object,"seal",(function(e){return ie.TypeIsObject(e)?Dt(e):e}))}if(Object.isSealed&&s((function(){Object.isSealed("foo")}))){var Mt=Object.isSealed;Z(Object,"isSealed",(function(e){return!ie.TypeIsObject(e)||Mt(e)}))}if(Object.freeze&&s((function(){Object.freeze("foo")}))){var jt=Object.freeze;Z(Object,"freeze",(function(e){return ie.TypeIsObject(e)?jt(e):e}))}if(Object.isFrozen&&s((function(){Object.isFrozen("foo")}))){var Ft=Object.isFrozen;Z(Object,"isFrozen",(function(e){return!ie.TypeIsObject(e)||Ft(e)}))}if(Object.preventExtensions&&s((function(){Object.preventExtensions("foo")}))){var Nt=Object.preventExtensions;Z(Object,"preventExtensions",(function(e){return ie.TypeIsObject(e)?Nt(e):e}))}if(Object.isExtensible&&s((function(){Object.isExtensible("foo")}))){var Lt=Object.isExtensible;Z(Object,"isExtensible",(function(e){return!!ie.TypeIsObject(e)&&Lt(e)}))}if(Object.getPrototypeOf&&s((function(){Object.getPrototypeOf("foo")}))){var Bt=Object.getPrototypeOf;Z(Object,"getPrototypeOf",(function(e){return Bt(ie.ToObject(e))}))}var $t,Wt=f&&(($t=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))&&ie.IsCallable($t.get));if(f&&!Wt){var Ut=function(){if(!ie.TypeIsObject(this))throw new TypeError("Method called on incompatible type: must be an object.");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e};w.getter(RegExp.prototype,"flags",Ut)}var Gt,Vt=f&&u((function(){return"/a/i"===String(new RegExp(/a/g,"i"))})),Ht=J&&f&&((Gt=/./)[G.match]=!1,RegExp(Gt)===Gt),zt=u((function(){return"/abc/"===RegExp.prototype.toString.call({source:"abc"})})),qt=zt&&u((function(){return"/a/b"===RegExp.prototype.toString.call({source:"a",flags:"b"})}));if(!zt||!qt){var Yt=RegExp.prototype.toString;y(RegExp.prototype,"toString",(function(){var e=ie.RequireObjectCoercible(this);return Q.regex(e)?r(Yt,e):"/"+re(e.source)+"/"+re(e.flags)}),!0),w.preserveToString(RegExp.prototype.toString,Yt)}if(f&&(!Vt||Ht)){var Xt=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get,Kt=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{},Qt=function(){return this.source},Zt=ie.IsCallable(Kt.get)?Kt.get:Qt,Jt=RegExp,en=function e(t,n){var r=ie.IsRegExp(t);return this instanceof e||!r||void 0!==n||t.constructor!==e?Q.regex(t)?new e(ie.Call(Zt,t),void 0===n?ie.Call(Xt,t):n):(r&&(t.source,void 0===n&&t.flags),new Jt(t,n)):t};_e(Jt,en,{$input:!0}),RegExp=en,w.redefine(S,"RegExp",en)}if(f){var tn={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};h(a(tn),(function(e){e in RegExp&&!(tn[e]in RegExp)&&w.getter(RegExp,tn[e],(function(){return RegExp[e]}))}))}we(RegExp);var nn=1/Number.EPSILON,rn=function(e){return e+nn-nn},on=Math.pow(2,-23),an=Math.pow(2,127)*(2-on),ln=Math.pow(2,-126),sn=Math.E,un=Math.LOG2E,cn=Math.LOG10E,dn=Number.prototype.clz;delete Number.prototype.clz;var fn={acosh:function(e){var t=Number(e);return H(t)||e<1?NaN:1===t?0:t===1/0?t:B(t/sn+$(t+1)*$(t-1)/sn)+1},asinh:function e(t){var n=Number(t);return 0!==n&&O(n)?n<0?-e(-n):B(n+$(n*n+1)):n},atanh:function(e){var t=Number(e);return H(t)||t<-1||t>1?NaN:-1===t?-1/0:1===t?1/0:0===t?t:.5*B((1+t)/(1-t))},cbrt:function(e){var t=Number(e);if(0===t)return t;var n,r=t<0;return r&&(t=-t),n=t===1/0?1/0:(t/((n=L(B(t)/3))*n)+2*n)/3,r?-n:n},clz32:function(e){var t=Number(e),n=ie.ToUint32(t);return 0===n?32:dn?ie.Call(dn,n):31-F(B(n+.5)*un)},cosh:function(e){var t=Number(e);return 0===t?1:H(t)?NaN:O(t)?(t<0&&(t=-t),t>21?L(t)/2:(L(t)+L(-t))/2):1/0},expm1:function(e){var t=Number(e);if(t===-1/0)return-1;if(!O(t)||0===t)return t;if(N(t)>.5)return L(t)-1;for(var n=t,r=0,i=1;r+n!==r;)r+=n,n*=t/(i+=1);return r},hypot:function(e,t){for(var n=0,r=0,i=0;i<arguments.length;++i){var o=N(Number(arguments[i]));r<o?(n*=r/o*(r/o),n+=1,r=o):n+=o>0?o/r*(o/r):o}return r===1/0?1/0:r*$(n)},log2:function(e){return B(e)*un},log10:function(e){return B(e)*cn},log1p:function(e){var t=Number(e);return t<-1||H(t)?NaN:0===t||t===1/0?t:-1===t?-1/0:1+t-1==0?t:t*(B(1+t)/(1+t-1))},sign:q,sinh:function(e){var t=Number(e);return O(t)&&0!==t?N(t)<1?(Math.expm1(t)-Math.expm1(-t))/2:(L(t-1)-L(-t-1))*sn/2:t},tanh:function(e){var t=Number(e);return H(t)||0===t?t:t>=20?1:t<=-20?-1:(Math.expm1(t)-Math.expm1(-t))/(L(t)+L(-t))},trunc:function(e){var t=Number(e);return t<0?-F(-t):F(t)},imul:function(e,t){var n=ie.ToUint32(e),r=ie.ToUint32(t),i=65535&n,o=65535&r;return i*o+((n>>>16&65535)*o+i*(r>>>16&65535)<<16>>>0)|0},fround:function(e){var t=Number(e);if(0===t||t===1/0||t===-1/0||H(t))return t;var n=q(t),r=N(t);if(r<ln)return n*rn(r/ln/on)*ln*on;var i=(1+on/Number.EPSILON)*r,o=i-(i-r);return o>an||H(o)?n*(1/0):n*o}};v(Math,fn),y(Math,"log1p",fn.log1p,-1e-17!==Math.log1p(-1e-17)),y(Math,"asinh",fn.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),y(Math,"tanh",fn.tanh,-2e-17!==Math.tanh(-2e-17)),y(Math,"acosh",fn.acosh,Math.acosh(Number.MAX_VALUE)===1/0),y(Math,"cbrt",fn.cbrt,Math.abs(1-Math.cbrt(1e-300)/1e-100)/Number.EPSILON>8),y(Math,"sinh",fn.sinh,-2e-17!==Math.sinh(-2e-17));var pn=Math.expm1(10);y(Math,"expm1",fn.expm1,pn>22025.465794806718||pn<22025.465794806718);var hn=Math.round,gn=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(Number.EPSILON/3.99-.5),mn=[nn+1,2*nn-1].every((function(e){return Math.round(e)===e}));y(Math,"round",(function(e){var t=F(e);return e-t<.5?t:-1===t?-0:t+1}),!gn||!mn),w.preserveToString(Math.round,hn);var bn=Math.imul;-5!==Math.imul(4294967295,5)&&(Math.imul=fn.imul,w.preserveToString(Math.imul,bn)),2!==Math.imul.length&&Z(Math,"imul",(function(e,t){return ie.Call(bn,Math,arguments)}));var yn,vn,_n=function(){var e=S.setTimeout;if("function"==typeof e||"object"==typeof e){ie.IsPromise=function(e){return!!ie.TypeIsObject(e)&&void 0!==e._promise};var t,n=function(e){if(!ie.IsConstructor(e))throw new TypeError("Bad promise constructor");var t=this,n=function(e,n){if(void 0!==t.resolve||void 0!==t.reject)throw new TypeError("Bad Promise implementation!");t.resolve=e,t.reject=n};if(t.resolve=void 0,t.reject=void 0,t.promise=new e(n),!ie.IsCallable(t.resolve)||!ie.IsCallable(t.reject))throw new TypeError("Bad promise constructor")};"undefined"!=typeof window&&ie.IsCallable(window.postMessage)&&(t=function(){var e=[],t="zero-timeout-message",n=function(n){I(e,n),window.postMessage(t,"*")},r=function(n){if(n.source===window&&n.data===t){if(n.stopPropagation(),0===e.length)return;D(e)()}};return window.addEventListener("message",r,!0),n});var i,a,l=function(){var e=S.Promise,t=e&&e.resolve&&e.resolve();return t&&function(e){return t.then(e)}},s=ie.IsCallable(S.setImmediate)?S.setImmediate:"object"==typeof o&&o.nextTick?o.nextTick:l()||(ie.IsCallable(t)?t():function(t){e(t,0)}),u=function(e){return e},c=function(e){throw e},d=0,f=1,p=2,h=0,g=1,m=2,b={},y=function(e,t,n){s((function(){_(e,t,n)}))},_=function(e,t,n){var r,i;if(t===b)return e(n);try{r=e(n),i=t.resolve}catch(o){r=o,i=t.reject}i(r)},E=function(e,t){var n=e._promise,r=n.reactionLength;if(r>0&&(y(n.fulfillReactionHandler0,n.reactionCapability0,t),n.fulfillReactionHandler0=void 0,n.rejectReactions0=void 0,n.reactionCapability0=void 0,r>1))for(var i=1,o=0;i<r;i++,o+=3)y(n[o+h],n[o+m],t),e[o+h]=void 0,e[o+g]=void 0,e[o+m]=void 0;n.result=t,n.state=f,n.reactionLength=0},w=function(e,t){var n=e._promise,r=n.reactionLength;if(r>0&&(y(n.rejectReactionHandler0,n.reactionCapability0,t),n.fulfillReactionHandler0=void 0,n.rejectReactions0=void 0,n.reactionCapability0=void 0,r>1))for(var i=1,o=0;i<r;i++,o+=3)y(n[o+g],n[o+m],t),e[o+h]=void 0,e[o+g]=void 0,e[o+m]=void 0;n.result=t,n.state=p,n.reactionLength=0},A=function(e){var t=!1;return{resolve:function(n){var r;if(!t){if(t=!0,n===e)return w(e,new TypeError("Self resolution"));if(!ie.TypeIsObject(n))return E(e,n);try{r=n.then}catch(i){return w(e,i)}if(!ie.IsCallable(r))return E(e,n);s((function(){O(e,n,r)}))}},reject:function(n){if(!t)return t=!0,w(e,n)}}},C=function(e,t,n,i){e===a?r(e,t,n,i,b):r(e,t,n,i)},O=function(e,t,n){var r=A(e),i=r.resolve,o=r.reject;try{C(n,t,i,o)}catch(a){o(a)}},T=function(){var e=function(t){if(!(this instanceof e))throw new TypeError('Constructor Promise requires "new"');if(this&&this._promise)throw new TypeError("Bad construction");if(!ie.IsCallable(t))throw new TypeError("not a valid resolver");var n=Oe(this,e,i,{_promise:{result:void 0,state:d,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}}),r=A(n),o=r.reject;try{t(r.resolve,o)}catch(a){o(a)}return n};return e}();i=T.prototype;var P=function(e,t,n,r){var i=!1;return function(o){i||(i=!0,t[e]=o,0==--r.count&&(0,n.resolve)(t))}},R=function(e,t,n){for(var r,i,o=e.iterator,a=[],l={count:1},s=0;;){try{if(!1===(r=ie.IteratorStep(o))){e.done=!0;break}i=r.value}catch(d){throw e.done=!0,d}a[s]=void 0;var u=t.resolve(i),c=P(s,a,n,l);l.count+=1,C(u.then,u,c,n.reject),s+=1}return 0==--l.count&&(0,n.resolve)(a),n.promise},x=function(e,t,n){for(var r,i,o,a=e.iterator;;){try{if(!1===(r=ie.IteratorStep(a))){e.done=!0;break}i=r.value}catch(l){throw e.done=!0,l}o=t.resolve(i),C(o.then,o,n.resolve,n.reject)}return n.promise};return v(T,{all:function(e){var t=this;if(!ie.TypeIsObject(t))throw new TypeError("Promise is not object");var r,i,o=new n(t);try{return r=ie.GetIterator(e),R(i={iterator:r,done:!1},t,o)}catch(l){var a=l;if(i&&!i.done)try{ie.IteratorClose(r,!0)}catch(s){a=s}return(0,o.reject)(a),o.promise}},race:function(e){var t=this;if(!ie.TypeIsObject(t))throw new TypeError("Promise is not object");var r,i,o=new n(t);try{return r=ie.GetIterator(e),x(i={iterator:r,done:!1},t,o)}catch(l){var a=l;if(i&&!i.done)try{ie.IteratorClose(r,!0)}catch(s){a=s}return(0,o.reject)(a),o.promise}},reject:function(e){var t=this;if(!ie.TypeIsObject(t))throw new TypeError("Bad promise constructor");var r=new n(t);return(0,r.reject)(e),r.promise},resolve:function(e){var t=this;if(!ie.TypeIsObject(t))throw new TypeError("Bad promise constructor");if(ie.IsPromise(e)&&e.constructor===t)return e;var r=new n(t);return(0,r.resolve)(e),r.promise}}),v(i,{catch:function(e){return this.then(null,e)},then:function(e,t){var r=this;if(!ie.IsPromise(r))throw new TypeError("not a promise");var i,o=ie.SpeciesConstructor(r,T);i=arguments.length>2&&arguments[2]===b&&o===T?b:new n(o);var a,l=ie.IsCallable(e)?e:u,s=ie.IsCallable(t)?t:c,v=r._promise;if(v.state===d){if(0===v.reactionLength)v.fulfillReactionHandler0=l,v.rejectReactionHandler0=s,v.reactionCapability0=i;else{var _=3*(v.reactionLength-1);v[_+h]=l,v[_+g]=s,v[_+m]=i}v.reactionLength+=1}else if(v.state===f)a=v.result,y(l,i,a);else{if(v.state!==p)throw new TypeError("unexpected Promise state");a=v.result,y(s,i,a)}return i.promise}}),b=new n(T),a=i.then,T}}();if(S.Promise&&(delete S.Promise.accept,delete S.Promise.defer,delete S.Promise.prototype.chain),"function"==typeof _n){v(S,{Promise:_n});var En=C(S.Promise,(function(e){return e.resolve(42).then((function(){}))instanceof e})),wn=!s((function(){S.Promise.reject(42).then(null,5).then(null,U)})),An=s((function(){S.Promise.call(3,U)})),Cn=function(e){var t=e.resolve(5);t.constructor={};var n=e.resolve(t);try{n.then(null,U).then(null,U)}catch(r){return!0}return t===n}(S.Promise),Sn=f&&(yn=0,vn=Object.defineProperty({},"then",{get:function(){yn+=1}}),Promise.resolve(vn),1===yn),On=function e(t){var n=new Promise(t);t(3,(function(){})),this.then=n.then,this.constructor=e};On.prototype=Promise.prototype,On.all=Promise.all;var Tn=u((function(){return!!On.all([1,2])}));if(En&&wn&&An&&!Cn&&Sn&&!Tn||(Promise=_n,Z(S,"Promise",_n)),1!==Promise.all.length){var Pn=Promise.all;Z(Promise,"all",(function(e){return ie.Call(Pn,this,arguments)}))}if(1!==Promise.race.length){var Rn=Promise.race;Z(Promise,"race",(function(e){return ie.Call(Rn,this,arguments)}))}if(1!==Promise.resolve.length){var xn=Promise.resolve;Z(Promise,"resolve",(function(e){return ie.Call(xn,this,arguments)}))}if(1!==Promise.reject.length){var In=Promise.reject;Z(Promise,"reject",(function(e){return ie.Call(In,this,arguments)}))}wt(Promise,"all"),wt(Promise,"race"),wt(Promise,"resolve"),wt(Promise,"reject"),we(Promise)}var kn,Dn,Mn=function(e){var t=a(g(e,(function(e,t){return e[t]=!0,e}),{}));return e.join(":")===t.join(":")},jn=Mn(["z","a","bb"]),Fn=Mn(["z",1,"a","3",2]);if(f){var Nn=function(e){return jn?null==e?"^"+ie.ToString(e):"string"==typeof e?"$"+e:"number"==typeof e?Fn?e:"n"+e:"boolean"==typeof e?"b"+e:null:null},Ln=function(){return Object.create?Object.create(null):{}},Bn=function(e,t,n){if(i(n)||Q.string(n))h(n,(function(e){if(!ie.TypeIsObject(e))throw new TypeError("Iterator value "+e+" is not an entry object");t.set(e[0],e[1])}));else if(n instanceof e)r(e.prototype.forEach,n,(function(e,n){t.set(n,e)}));else{var o,a;if(null!=n){if(a=t.set,!ie.IsCallable(a))throw new TypeError("bad map");o=ie.GetIterator(n)}if(void 0!==o)for(;;){var l=ie.IteratorStep(o);if(!1===l)break;var s=l.value;try{if(!ie.TypeIsObject(s))throw new TypeError("Iterator value "+s+" is not an entry object");r(a,t,s[0],s[1])}catch(u){throw ie.IteratorClose(o,!0),u}}}},$n=function(e,t,n){if(i(n)||Q.string(n))h(n,(function(e){t.add(e)}));else if(n instanceof e)r(e.prototype.forEach,n,(function(e){t.add(e)}));else{var o,a;if(null!=n){if(a=t.add,!ie.IsCallable(a))throw new TypeError("bad set");o=ie.GetIterator(n)}if(void 0!==o)for(;;){var l=ie.IteratorStep(o);if(!1===l)break;var s=l.value;try{r(a,t,s)}catch(u){throw ie.IteratorClose(o,!0),u}}}},Wn={Map:function(){var e={},t=function(e,t){this.key=e,this.value=t,this.next=null,this.prev=null};t.prototype.isRemoved=function(){return this.key===e};var n,i=function(e){return!!e._es6map},o=function(e,t){if(!ie.TypeIsObject(e)||!i(e))throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+ie.ToString(e))},a=function(e,t){o(e,"[[MapIterator]]"),this.head=e._head,this.i=this.head,this.kind=t};a.prototype={next:function(){var e,t=this.i,n=this.kind,r=this.head;if(void 0===this.i)return We();for(;t.isRemoved()&&t!==r;)t=t.prev;for(;t.next!==r;)if(!(t=t.next).isRemoved())return e="key"===n?t.key:"value"===n?t.value:[t.key,t.value],this.i=t,We(e);return this.i=void 0,We()}},Ae(a.prototype);var l=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var r=Oe(this,e,n,{_es6map:!0,_head:null,_storage:Ln(),_size:0}),i=new t(null,null);return i.next=i.prev=i,r._head=i,arguments.length>0&&Bn(e,r,arguments[0]),r};return n=l.prototype,w.getter(n,"size",(function(){if(void 0===this._size)throw new TypeError("size method called on incompatible Map");return this._size})),v(n,{get:function(e){o(this,"get");var t=Nn(e);if(null!==t){var n=this._storage[t];return n?n.value:void 0}for(var r=this._head,i=r;(i=i.next)!==r;)if(ie.SameValueZero(i.key,e))return i.value},has:function(e){o(this,"has");var t=Nn(e);if(null!==t)return void 0!==this._storage[t];for(var n=this._head,r=n;(r=r.next)!==n;)if(ie.SameValueZero(r.key,e))return!0;return!1},set:function(e,n){o(this,"set");var r,i=this._head,a=i,l=Nn(e);if(null!==l){if(void 0!==this._storage[l])return this._storage[l].value=n,this;r=this._storage[l]=new t(e,n),a=i.prev}for(;(a=a.next)!==i;)if(ie.SameValueZero(a.key,e))return a.value=n,this;return r=r||new t(e,n),ie.SameValue(-0,e)&&(r.key=0),r.next=this._head,r.prev=this._head.prev,r.prev.next=r,r.next.prev=r,this._size+=1,this},delete:function(t){o(this,"delete");var n=this._head,r=n,i=Nn(t);if(null!==i){if(void 0===this._storage[i])return!1;r=this._storage[i].prev,delete this._storage[i]}for(;(r=r.next)!==n;)if(ie.SameValueZero(r.key,t))return r.key=r.value=e,r.prev.next=r.next,r.next.prev=r.prev,this._size-=1,!0;return!1},clear:function(){o(this,"clear"),this._size=0,this._storage=Ln();for(var t=this._head,n=t,r=n.next;(n=r)!==t;)n.key=n.value=e,r=n.next,n.next=n.prev=t;t.next=t.prev=t},keys:function(){return o(this,"keys"),new a(this,"key")},values:function(){return o(this,"values"),new a(this,"value")},entries:function(){return o(this,"entries"),new a(this,"key+value")},forEach:function(e){o(this,"forEach");for(var t=arguments.length>1?arguments[1]:null,n=this.entries(),i=n.next();!i.done;i=n.next())t?r(e,t,i.value[1],i.value[0],this):e(i.value[1],i.value[0],this)}}),Ae(n,n.entries),l}(),Set:function(){var e,t=function(e){return e._es6set&&void 0!==e._storage},n=function(e,n){if(!ie.TypeIsObject(e)||!t(e))throw new TypeError("Set.prototype."+n+" called on incompatible receiver "+ie.ToString(e))},i=function t(){if(!(this instanceof t))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var n=Oe(this,t,e,{_es6set:!0,"[[SetData]]":null,_storage:Ln()});if(!n._es6set)throw new TypeError("bad set");return arguments.length>0&&$n(t,n,arguments[0]),n};e=i.prototype;var o=function(e){var t=e;if("^null"===t)return null;if("^undefined"!==t){var n=t.charAt(0);return"$"===n?x(t,1):"n"===n?+x(t,1):"b"===n?"btrue"===t:+t}},l=function(e){if(!e["[[SetData]]"]){var t=e["[[SetData]]"]=new Wn.Map;h(a(e._storage),(function(e){var n=o(e);t.set(n,n)})),e["[[SetData]]"]=t}e._storage=null};return w.getter(i.prototype,"size",(function(){return n(this,"size"),this._storage?a(this._storage).length:(l(this),this["[[SetData]]"].size)})),v(i.prototype,{has:function(e){var t;return n(this,"has"),this._storage&&null!==(t=Nn(e))?!!this._storage[t]:(l(this),this["[[SetData]]"].has(e))},add:function(e){var t;return n(this,"add"),this._storage&&null!==(t=Nn(e))?(this._storage[t]=!0,this):(l(this),this["[[SetData]]"].set(e,e),this)},delete:function(e){var t;if(n(this,"delete"),this._storage&&null!==(t=Nn(e))){var r=W(this._storage,t);return delete this._storage[t]&&r}return l(this),this["[[SetData]]"].delete(e)},clear:function(){n(this,"clear"),this._storage&&(this._storage=Ln()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return n(this,"values"),l(this),this["[[SetData]]"].values()},entries:function(){return n(this,"entries"),l(this),this["[[SetData]]"].entries()},forEach:function(e){n(this,"forEach");var t=arguments.length>1?arguments[1]:null,i=this;l(i),this["[[SetData]]"].forEach((function(n,o){t?r(e,t,o,o,i):e(o,o,i)}))}}),y(i.prototype,"keys",i.prototype.values,!0),Ae(i.prototype,i.prototype.values),i}()};if(S.Map||S.Set){if(!u((function(){return 2===new Map([[1,2]]).get(1)}))){var Un=S.Map;S.Map=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=new Un;return arguments.length>0&&Bn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,S.Map.prototype),t},S.Map.prototype=A(Un.prototype),y(S.Map.prototype,"constructor",S.Map,!0),w.preserveToString(S.Map,Un)}var Gn=new Map,Vn=((Dn=new Map([[1,0],[2,0],[3,0],[4,0]])).set(-0,Dn),Dn.get(0)===Dn&&Dn.get(-0)===Dn&&Dn.has(0)&&Dn.has(-0)),Hn=Gn.set(1,2)===Gn;if(!Vn||!Hn){var zn=Map.prototype.set;Z(Map.prototype,"set",(function(e,t){return r(zn,this,0===e?0:e,t),this}))}if(!Vn){var qn=Map.prototype.get,Yn=Map.prototype.has;v(Map.prototype,{get:function(e){return r(qn,this,0===e?0:e)},has:function(e){return r(Yn,this,0===e?0:e)}},!0),w.preserveToString(Map.prototype.get,qn),w.preserveToString(Map.prototype.has,Yn)}var Xn=new Set,Kn=((kn=Xn).delete(0),kn.add(-0),!kn.has(0)),Qn=Xn.add(1)===Xn;if(!Kn||!Qn){var Zn=Set.prototype.add;Set.prototype.add=function(e){return r(Zn,this,0===e?0:e),this},w.preserveToString(Set.prototype.add,Zn)}if(!Kn){var Jn=Set.prototype.has;Set.prototype.has=function(e){return r(Jn,this,0===e?0:e)},w.preserveToString(Set.prototype.has,Jn);var er=Set.prototype.delete;Set.prototype.delete=function(e){return r(er,this,0===e?0:e)},w.preserveToString(Set.prototype.delete,er)}var tr=C(S.Map,(function(e){var t=new e([]);return t.set(42,42),t instanceof e})),nr=Object.setPrototypeOf&&!tr,rr=function(){try{return!(S.Map()instanceof S.Map)}catch(e){return e instanceof TypeError}}();if(0!==S.Map.length||nr||!rr){var ir=S.Map;S.Map=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=new ir;return arguments.length>0&&Bn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,e.prototype),t},S.Map.prototype=ir.prototype,y(S.Map.prototype,"constructor",S.Map,!0),w.preserveToString(S.Map,ir)}var or=C(S.Set,(function(e){var t=new e([]);return t.add(42,42),t instanceof e})),ar=Object.setPrototypeOf&&!or,lr=function(){try{return!(S.Set()instanceof S.Set)}catch(e){return e instanceof TypeError}}();if(0!==S.Set.length||ar||!lr){var sr=S.Set;S.Set=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');var t=new sr;return arguments.length>0&&$n(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,e.prototype),t},S.Set.prototype=sr.prototype,y(S.Set.prototype,"constructor",S.Set,!0),w.preserveToString(S.Set,sr)}var ur=new S.Map,cr=!u((function(){return ur.keys().next().done}));if(("function"!=typeof S.Map.prototype.clear||0!==(new S.Set).size||0!==ur.size||"function"!=typeof S.Map.prototype.keys||"function"!=typeof S.Set.prototype.keys||"function"!=typeof S.Map.prototype.forEach||"function"!=typeof S.Set.prototype.forEach||c(S.Map)||c(S.Set)||"function"!=typeof ur.keys().next||cr||!tr)&&v(S,{Map:Wn.Map,Set:Wn.Set},!0),S.Set.prototype.keys!==S.Set.prototype.values&&y(S.Set.prototype,"keys",S.Set.prototype.values,!0),Ae(Object.getPrototypeOf((new S.Map).keys())),Ae(Object.getPrototypeOf((new S.Set).keys())),p&&"has"!==S.Set.prototype.has.name){var dr=S.Set.prototype.has;Z(S.Set.prototype,"has",(function(e){return r(dr,this,e)}))}}v(S,Wn),we(S.Map),we(S.Set)}var fr=function(e){if(!ie.TypeIsObject(e))throw new TypeError("target must be an object")},pr={apply:function(){return ie.Call(ie.Call,null,arguments)},construct:function(e,t){if(!ie.IsConstructor(e))throw new TypeError("First argument must be a constructor.");var n=arguments.length>2?arguments[2]:e;if(!ie.IsConstructor(n))throw new TypeError("new.target must be a constructor.");return ie.Construct(e,t,n,"internal")},deleteProperty:function(e,t){if(fr(e),f){var n=Object.getOwnPropertyDescriptor(e,t);if(n&&!n.configurable)return!1}return delete e[t]},has:function(e,t){return fr(e),t in e}};Object.getOwnPropertyNames&&Object.assign(pr,{ownKeys:function(e){fr(e);var t=Object.getOwnPropertyNames(e);return ie.IsCallable(Object.getOwnPropertySymbols)&&k(t,Object.getOwnPropertySymbols(e)),t}});var hr=function(e){return!s(e)};if(Object.preventExtensions&&Object.assign(pr,{isExtensible:function(e){return fr(e),Object.isExtensible(e)},preventExtensions:function(e){return fr(e),hr((function(){Object.preventExtensions(e)}))}}),f){var gr=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(!r){var i=Object.getPrototypeOf(e);if(null===i)return;return gr(i,t,n)}return"value"in r?r.value:r.get?ie.Call(r.get,n):void 0},mr=function(e,t,n,i){var o=Object.getOwnPropertyDescriptor(e,t);if(!o){var a=Object.getPrototypeOf(e);if(null!==a)return mr(a,t,n,i);o={value:void 0,writable:!0,enumerable:!0,configurable:!0}}return"value"in o?!!o.writable&&!!ie.TypeIsObject(i)&&(Object.getOwnPropertyDescriptor(i,t)?ne.defineProperty(i,t,{value:n}):ne.defineProperty(i,t,{value:n,writable:!0,enumerable:!0,configurable:!0})):!!o.set&&(r(o.set,i,n),!0)};Object.assign(pr,{defineProperty:function(e,t,n){return fr(e),hr((function(){Object.defineProperty(e,t,n)}))},getOwnPropertyDescriptor:function(e,t){return fr(e),Object.getOwnPropertyDescriptor(e,t)},get:function(e,t){return fr(e),gr(e,t,arguments.length>2?arguments[2]:e)},set:function(e,t,n){return fr(e),mr(e,t,n,arguments.length>3?arguments[3]:e)}})}if(Object.getPrototypeOf){var br=Object.getPrototypeOf;pr.getPrototypeOf=function(e){return fr(e),br(e)}}if(Object.setPrototypeOf&&pr.getPrototypeOf){var yr=function(e,t){for(var n=t;n;){if(e===n)return!0;n=pr.getPrototypeOf(n)}return!1};Object.assign(pr,{setPrototypeOf:function(e,t){if(fr(e),null!==t&&!ie.TypeIsObject(t))throw new TypeError("proto must be an object or null");return t===ne.getPrototypeOf(e)||!(ne.isExtensible&&!ne.isExtensible(e))&&!yr(e,t)&&(Object.setPrototypeOf(e,t),!0)}})}var vr=function(e,t){ie.IsCallable(S.Reflect[e])?u((function(){return S.Reflect[e](1),S.Reflect[e](NaN),S.Reflect[e](!0),!0}))&&Z(S.Reflect,e,t):y(S.Reflect,e,t)};Object.keys(pr).forEach((function(e){vr(e,pr[e])}));var _r=S.Reflect.getPrototypeOf;if(p&&_r&&"getPrototypeOf"!==_r.name&&Z(S.Reflect,"getPrototypeOf",(function(e){return r(_r,S.Reflect,e)})),S.Reflect.setPrototypeOf&&u((function(){return S.Reflect.setPrototypeOf(1,{}),!0}))&&Z(S.Reflect,"setPrototypeOf",pr.setPrototypeOf),S.Reflect.defineProperty&&(u((function(){var e=!S.Reflect.defineProperty(1,"test",{value:1}),t="function"!=typeof Object.preventExtensions||!S.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t}))||Z(S.Reflect,"defineProperty",pr.defineProperty)),S.Reflect.construct&&(u((function(){var e=function(){};return S.Reflect.construct((function(){}),[],e)instanceof e}))||Z(S.Reflect,"construct",pr.construct)),"Invalid Date"!==String(new Date(NaN))){var Er=Date.prototype.toString,wr=function(){var e=+this;return e!=e?"Invalid Date":ie.Call(Er,this)};Z(Date.prototype,"toString",wr)}var Ar={anchor:function(e){return ie.CreateHTML(this,"a","name",e)},big:function(){return ie.CreateHTML(this,"big","","")},blink:function(){return ie.CreateHTML(this,"blink","","")},bold:function(){return ie.CreateHTML(this,"b","","")},fixed:function(){return ie.CreateHTML(this,"tt","","")},fontcolor:function(e){return ie.CreateHTML(this,"font","color",e)},fontsize:function(e){return ie.CreateHTML(this,"font","size",e)},italics:function(){return ie.CreateHTML(this,"i","","")},link:function(e){return ie.CreateHTML(this,"a","href",e)},small:function(){return ie.CreateHTML(this,"small","","")},strike:function(){return ie.CreateHTML(this,"strike","","")},sub:function(){return ie.CreateHTML(this,"sub","","")},sup:function(){return ie.CreateHTML(this,"sup","","")}};h(Object.keys(Ar),(function(e){var t=String.prototype[e],n=!1;if(ie.IsCallable(t)){var i=r(t,"",' " '),o=R([],i.match(/"/g)).length;n=i!==i.toLowerCase()||o>2}else n=!0;n&&Z(String.prototype,e,Ar[e])}));var Cr=function(){if(!J)return!1;var e="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!e)return!1;if(void 0!==e(G()))return!0;if("[null]"!==e([G()]))return!0;var t={a:G()};return t[G()]=!0,"{}"!==e(t)}(),Sr=u((function(){return!J||"{}"===JSON.stringify(Object(G()))&&"[{}]"===JSON.stringify([Object(G())])}));if(Cr||!Sr){var Or=JSON.stringify;Z(JSON,"stringify",(function(e){if("symbol"!=typeof e){var t;arguments.length>1&&(t=arguments[1]);var n=[e];if(i(t))n.push(t);else{var o=ie.IsCallable(t)?t:null,a=function(e,t){var n=o?r(o,this,e,t):t;if("symbol"!=typeof n)return Q.symbol(n)?Ct({})(n):n};n.push(a)}return arguments.length>2&&n.push(arguments[2]),Or.apply(this,n)}}))}return S},void 0===(i="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=i)},2535:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},3161:(e,t,n)=>{function r(e){this._cbs=e||{},this.events=[]}e.exports=r;var i=n(2161).EVENTS;Object.keys(i).forEach((function(e){if(0===i[e])e="on"+e,r.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,r.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==i[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}})),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var n=this.events[e].length;1===n?this._cbs[this.events[e][0]]():2===n?this._cbs[this.events[e][0]](this.events[e][1]):this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}},3144:(e,t,n)=>{var r=n(2161),i=r.DomHandler,o=r.DomUtils;function a(e,t){this.init(e,t)}function l(e,t){return o.getElementsByTagName(e,t,!0)}function s(e,t){return o.getElementsByTagName(e,t,!0,1)[0]}function u(e,t,n){return o.getText(o.getElementsByTagName(e,t,n,1)).trim()}function c(e,t,n,r,i){var o=u(n,r,i);o&&(e[t]=o)}n(433)(a,i),a.prototype.init=i;var d=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};a.prototype.onend=function(){var e,t,n={},r=s(d,this.dom);r&&("feed"===r.name?(t=r.children,n.type="atom",c(n,"id","id",t),c(n,"title","title",t),(e=s("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),c(n,"description","subtitle",t),(e=u("updated",t))&&(n.updated=new Date(e)),c(n,"author","email",t,!0),n.items=l("entry",t).map((function(e){var t,n={};return c(n,"id","id",e=e.children),c(n,"title","title",e),(t=s("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),(t=u("summary",e)||u("content",e))&&(n.description=t),(t=u("updated",e))&&(n.pubDate=new Date(t)),n}))):(t=s("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",c(n,"title","title",t),c(n,"link","link",t),c(n,"description","description",t),(e=u("lastBuildDate",t))&&(n.updated=new Date(e)),c(n,"author","managingEditor",t,!0),n.items=l("item",r.children).map((function(e){var t,n={};return c(n,"id","guid",e=e.children),c(n,"title","title",e),c(n,"link","link",e),c(n,"description","description",e),(t=u("pubDate",e))&&(n.pubDate=new Date(t)),n})))),this.dom=n,i.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},e.exports=a},2687:(e,t,n)=>{var r=n(2688),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},o={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},l=/\s|\//;function s(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(433)(s,n(453).EventEmitter),s.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},s.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},s.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in o)for(var t;(t=this._stack[this._stack.length-1])in o[e];this.onclosetag(t));!this._options.xmlMode&&e in a||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},s.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},s.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},s.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},s.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},s.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},s.prototype.onattribdata=function(e){this._attribvalue+=e},s.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},s.prototype._getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},s.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},s.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},s.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},s.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},s.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},s.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},s.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},s.prototype.parseComplete=function(e){this.reset(),this.end(e)},s.prototype.write=function(e){this._tokenizer.write(e)},s.prototype.end=function(e){this._tokenizer.end(e)},s.prototype.pause=function(){this._tokenizer.pause()},s.prototype.resume=function(){this._tokenizer.resume()},s.prototype.parseChunk=s.prototype.write,s.prototype.done=s.prototype.end,e.exports=s},3154:(e,t,n)=>{function r(e){this._cbs=e||{}}e.exports=r;var i=n(2161).EVENTS;Object.keys(i).forEach((function(e){if(0===i[e])e="on"+e,r.prototype[e]=function(){this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,r.prototype[e]=function(t){this._cbs[e]&&this._cbs[e](t)};else{if(2!==i[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this._cbs[e]&&this._cbs[e](t,n)}}}))},3145:(e,t,n)=>{e.exports=i;var r=n(2693);function i(e){r.call(this,new o(this),e)}function o(e){this.scope=e}n(433)(i,r),i.prototype.readable=!0;var a=n(2161).EVENTS;Object.keys(a).forEach((function(e){if(0===a[e])o.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===a[e])o.prototype["on"+e]=function(t){this.scope.emit(e,t)};else{if(2!==a[e])throw Error("wrong number of arguments!");o.prototype["on"+e]=function(t,n){this.scope.emit(e,t,n)}}}))},2688:(e,t,n)=>{e.exports=ye;var r,i,o=n(2689),a=n(2690),l=n(3141),s=n(2691),u=0,c=u++,d=u++,f=u++,p=u++,h=u++,g=u++,m=u++,b=u++,y=u++,v=u++,_=u++,E=u++,w=u++,A=u++,C=u++,S=u++,O=u++,T=u++,P=u++,R=u++,x=u++,I=u++,k=u++,D=u++,M=u++,j=u++,F=u++,N=u++,L=u++,B=u++,$=u++,W=u++,U=u++,G=u++,V=u++,H=u++,z=u++,q=u++,Y=u++,X=u++,K=u++,Q=u++,Z=u++,J=u++,ee=u++,te=u++,ne=u++,re=u++,ie=u++,oe=u++,ae=u++,le=u++,se=u++,ue=u++,ce=u++,de=0,fe=de++,pe=de++,he=de++;function ge(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function me(e,t,n){var r=e.toLowerCase();return e===r?function(e){e===r?this._state=t:(this._state=n,this._index--)}:function(i){i===r||i===e?this._state=t:(this._state=n,this._index--)}}function be(e,t){var n=e.toLowerCase();return function(r){r===n||r===e?this._state=t:(this._state=f,this._index--)}}function ye(e,t){this._state=c,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=c,this._special=fe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ye.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=d,this._sectionStart=this._index):this._decodeEntities&&this._special===fe&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=c,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeTagName=function(e){"/"===e?this._state=h:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==fe||ge(e)?this._state=c:"!"===e?(this._state=C,this._sectionStart=this._index+1):"?"===e?(this._state=O,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?f:$,this._sectionStart=this._index)},ye.prototype._stateInTagName=function(e){("/"===e||">"===e||ge(e))&&(this._emitToken("onopentagname"),this._state=b,this._index--)},ye.prototype._stateBeforeCloseingTagName=function(e){ge(e)||(">"===e?this._state=c:this._special!==fe?"s"===e||"S"===e?this._state=W:(this._state=c,this._index--):(this._state=g,this._sectionStart=this._index))},ye.prototype._stateInCloseingTagName=function(e){(">"===e||ge(e))&&(this._emitToken("onclosetag"),this._state=m,this._index--)},ye.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=c,this._sectionStart=this._index+1)},ye.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=c,this._sectionStart=this._index+1):"/"===e?this._state=p:ge(e)||(this._state=y,this._sectionStart=this._index)},ye.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=c,this._sectionStart=this._index+1):ge(e)||(this._state=b,this._index--)},ye.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||ge(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=v,this._index--)},ye.prototype._stateAfterAttributeName=function(e){"="===e?this._state=_:"/"===e||">"===e?(this._cbs.onattribend(),this._state=b,this._index--):ge(e)||(this._cbs.onattribend(),this._state=y,this._sectionStart=this._index)},ye.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=E,this._sectionStart=this._index+1):"'"===e?(this._state=w,this._sectionStart=this._index+1):ge(e)||(this._state=A,this._sectionStart=this._index,this._index--)},ye.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueNoQuotes=function(e){ge(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeDeclaration=function(e){this._state="["===e?I:"-"===e?T:S},ye.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=c,this._sectionStart=this._index+1)},ye.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=c,this._sectionStart=this._index+1)},ye.prototype._stateBeforeComment=function(e){"-"===e?(this._state=P,this._sectionStart=this._index+1):this._state=S},ye.prototype._stateInComment=function(e){"-"===e&&(this._state=R)},ye.prototype._stateAfterComment1=function(e){this._state="-"===e?x:P},ye.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=c,this._sectionStart=this._index+1):"-"!==e&&(this._state=P)},ye.prototype._stateBeforeCdata1=me("C",k,S),ye.prototype._stateBeforeCdata2=me("D",D,S),ye.prototype._stateBeforeCdata3=me("A",M,S),ye.prototype._stateBeforeCdata4=me("T",j,S),ye.prototype._stateBeforeCdata5=me("A",F,S),ye.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=N,this._sectionStart=this._index+1):(this._state=S,this._index--)},ye.prototype._stateInCdata=function(e){"]"===e&&(this._state=L)},ye.prototype._stateAfterCdata1=(r="]",i=B,function(e){e===r&&(this._state=i)}),ye.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=c,this._sectionStart=this._index+1):"]"!==e&&(this._state=N)},ye.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=U:"t"===e||"T"===e?this._state=Z:(this._state=f,this._index--)},ye.prototype._stateBeforeSpecialEnd=function(e){this._special!==pe||"c"!==e&&"C"!==e?this._special!==he||"t"!==e&&"T"!==e?this._state=c:this._state=ne:this._state=q},ye.prototype._stateBeforeScript1=be("R",G),ye.prototype._stateBeforeScript2=be("I",V),ye.prototype._stateBeforeScript3=be("P",H),ye.prototype._stateBeforeScript4=be("T",z),ye.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||ge(e))&&(this._special=pe),this._state=f,this._index--},ye.prototype._stateAfterScript1=me("R",Y,c),ye.prototype._stateAfterScript2=me("I",X,c),ye.prototype._stateAfterScript3=me("P",K,c),ye.prototype._stateAfterScript4=me("T",Q,c),ye.prototype._stateAfterScript5=function(e){">"===e||ge(e)?(this._special=fe,this._state=g,this._sectionStart=this._index-6,this._index--):this._state=c},ye.prototype._stateBeforeStyle1=be("Y",J),ye.prototype._stateBeforeStyle2=be("L",ee),ye.prototype._stateBeforeStyle3=be("E",te),ye.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||ge(e))&&(this._special=he),this._state=f,this._index--},ye.prototype._stateAfterStyle1=me("Y",re,c),ye.prototype._stateAfterStyle2=me("L",ie,c),ye.prototype._stateAfterStyle3=me("E",oe,c),ye.prototype._stateAfterStyle4=function(e){">"===e||ge(e)?(this._special=fe,this._state=g,this._sectionStart=this._index-5,this._index--):this._state=c},ye.prototype._stateBeforeEntity=me("#",le,se),ye.prototype._stateBeforeNumericEntity=me("X",ce,ue),ye.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?s:a;t.hasOwnProperty(e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},ye.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(l.hasOwnProperty(n))return this._emitPartial(l[n]),void(this._sectionStart+=t+1);t--}},ye.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==c?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ye.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),i=parseInt(r,t);this._emitPartial(o(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ye.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ye.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ye.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===c?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ye.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ye.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);this._state===c?this._stateText(e):this._state===d?this._stateBeforeTagName(e):this._state===f?this._stateInTagName(e):this._state===h?this._stateBeforeCloseingTagName(e):this._state===g?this._stateInCloseingTagName(e):this._state===m?this._stateAfterCloseingTagName(e):this._state===p?this._stateInSelfClosingTag(e):this._state===b?this._stateBeforeAttributeName(e):this._state===y?this._stateInAttributeName(e):this._state===v?this._stateAfterAttributeName(e):this._state===_?this._stateBeforeAttributeValue(e):this._state===E?this._stateInAttributeValueDoubleQuotes(e):this._state===w?this._stateInAttributeValueSingleQuotes(e):this._state===A?this._stateInAttributeValueNoQuotes(e):this._state===C?this._stateBeforeDeclaration(e):this._state===S?this._stateInDeclaration(e):this._state===O?this._stateInProcessingInstruction(e):this._state===T?this._stateBeforeComment(e):this._state===P?this._stateInComment(e):this._state===R?this._stateAfterComment1(e):this._state===x?this._stateAfterComment2(e):this._state===I?this._stateBeforeCdata1(e):this._state===k?this._stateBeforeCdata2(e):this._state===D?this._stateBeforeCdata3(e):this._state===M?this._stateBeforeCdata4(e):this._state===j?this._stateBeforeCdata5(e):this._state===F?this._stateBeforeCdata6(e):this._state===N?this._stateInCdata(e):this._state===L?this._stateAfterCdata1(e):this._state===B?this._stateAfterCdata2(e):this._state===$?this._stateBeforeSpecial(e):this._state===W?this._stateBeforeSpecialEnd(e):this._state===U?this._stateBeforeScript1(e):this._state===G?this._stateBeforeScript2(e):this._state===V?this._stateBeforeScript3(e):this._state===H?this._stateBeforeScript4(e):this._state===z?this._stateBeforeScript5(e):this._state===q?this._stateAfterScript1(e):this._state===Y?this._stateAfterScript2(e):this._state===X?this._stateAfterScript3(e):this._state===K?this._stateAfterScript4(e):this._state===Q?this._stateAfterScript5(e):this._state===Z?this._stateBeforeStyle1(e):this._state===J?this._stateBeforeStyle2(e):this._state===ee?this._stateBeforeStyle3(e):this._state===te?this._stateBeforeStyle4(e):this._state===ne?this._stateAfterStyle1(e):this._state===re?this._stateAfterStyle2(e):this._state===ie?this._stateAfterStyle3(e):this._state===oe?this._stateAfterStyle4(e):this._state===ae?this._stateBeforeEntity(e):this._state===le?this._stateBeforeNumericEntity(e):this._state===se?this._stateInNamedEntity(e):this._state===ue?this._stateInNumericEntity(e):this._state===ce?this._stateInHexEntity(e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},ye.prototype.pause=function(){this._running=!1},ye.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},ye.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},ye.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},ye.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);this._state===N||this._state===L||this._state===B?this._cbs.oncdata(e):this._state===P||this._state===R||this._state===x?this._cbs.oncomment(e):this._state!==se||this._xmlMode?this._state!==ue||this._xmlMode?this._state!==ce||this._xmlMode?this._state!==f&&this._state!==b&&this._state!==_&&this._state!==v&&this._state!==y&&this._state!==w&&this._state!==E&&this._state!==A&&this._state!==g&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},ye.prototype.reset=function(){ye.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},ye.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},ye.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},ye.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},ye.prototype._emitPartial=function(e){this._baseState!==c?this._cbs.onattribdata(e):this._cbs.ontext(e)}},2693:(e,t,n)=>{e.exports=l;var r=n(2687),i=n(3146).Writable||n(3572).Writable,o=n(3573).I,a=n(788).Buffer;function l(e,t){var n=this._parser=new r(e,t),a=this._decoder=new o;i.call(this,{decodeStrings:!1}),this.once("finish",(function(){n.end(a.end())}))}n(433)(l,i),i.prototype._write=function(e,t,n){e instanceof a&&(e=this._decoder.write(e)),this._parser.write(e),n()}},2161:(e,t,n)=>{var r=n(2687),i=n(3142);function o(t,n){return delete e.exports[t],e.exports[t]=n,n}e.exports={Parser:r,Tokenizer:n(2688),ElementType:n(2176),DomHandler:i,get FeedHandler(){return o("FeedHandler",n(3144))},get Stream(){return o("Stream",n(3145))},get WritableStream(){return o("WritableStream",n(2693))},get ProxyHandler(){return o("ProxyHandler",n(3154))},get DomUtils(){return o("DomUtils",n(3155))},get CollectingHandler(){return o("CollectingHandler",n(3161))},DefaultHandler:i,get RssHandler(){return o("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new i(t);return new r(n,t).end(e),n.dom},parseFeed:function(t,n){var i=new e.exports.FeedHandler(n);return new r(i,n).end(t),i.dom},createDomStream:function(e,t,n){var o=new i(e,t,n);return new r(o,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},3142:(e,t,n)=>{var r=n(2176),i=/\s+/g,o=n(2692),a=n(3143);function l(e,t,n){"object"==typeof e?(n=t,t=e,e=null):"function"==typeof t&&(n=t,t=s),this._callback=e,this._options=t||s,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var s={normalizeWhitespace:!1,withStartIndices:!1};l.prototype.onparserinit=function(e){this._parser=e},l.prototype.onreset=function(){l.call(this,this._callback,this._options,this._elementCB)},l.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},l.prototype._handleCallback=l.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},l.prototype.onclosetag=function(){var e=this._tagStack.pop();this._elementCB&&this._elementCB(e)},l.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withDomLvl1&&(e.__proto__="tag"===e.type?a:o),r?(e.prev=r,r.next=e):e.prev=null,n.push(e),e.parent=t||null},l.prototype.onopentag=function(e,t){var n={type:"script"===e?r.Script:"style"===e?r.Style:r.Tag,name:e,attribs:t,children:[]};this._addDomElement(n),this._tagStack.push(n)},l.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===r.Text||this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===r.Text?n?t.data=(t.data+e).replace(i," "):t.data+=e:(n&&(e=e.replace(i," ")),this._addDomElement({data:e,type:r.Text}))},l.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===r.Comment)t.data+=e;else{var n={data:e,type:r.Comment};this._addDomElement(n),this._tagStack.push(n)}},l.prototype.oncdatastart=function(){var e={children:[{data:"",type:r.Text}],type:r.CDATA};this._addDomElement(e),this._tagStack.push(e)},l.prototype.oncommentend=l.prototype.oncdataend=function(){this._tagStack.pop()},l.prototype.onprocessinginstruction=function(e,t){this._addDomElement({name:e,data:t,type:r.Directive})},e.exports=l},3143:(e,t,n)=>{var r=n(2692),i=e.exports=Object.create(r),o={tagName:"name"};Object.keys(o).forEach((function(e){var t=o[e];Object.defineProperty(i,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})}))},2692:e=>{var t=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return r[this.type]||r.element}},n={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},r={element:1,text:3,cdata:4,comment:8};Object.keys(n).forEach((function(e){var r=n[e];Object.defineProperty(t,e,{get:function(){return this[r]||null},set:function(e){return this[r]=e,e}})}))},3502:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI :data 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){return e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(n){return!!e.data(n,t)}})):function(t,n,r){return!!e.data(t,r[3])}})})?r.apply(t,i):r)||(e.exports=o)},3508:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Disable Selection 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){return e.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var t})?r.apply(t,i):r)||(e.exports=o)},3130:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Effects 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){var t,n="ui-effects-",r="ui-effects-style",i="ui-effects-animated",o=e;return e.effects={effect:{}},
/*!
 * jQuery Color Animations v2.1.2
 * https://github.com/jquery/jquery-color
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Wed Jan 16 08:47:09 2013 -0600
 */
function(e,t){var n,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",i=/^([\-+])=\s*(\d+\.?\d*)/,o=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],a=e.Color=function(t,n,r,i){return new e.Color.fn.parse(t,n,r,i)},l={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=a.support={},c=e("<p>")[0],d=e.each;function f(e,t,n){var r=s[t.type]||{};return null==e?n||!t.def?null:t.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?t.def:r.mod?(e+r.mod)%r.mod:0>e?0:r.max<e?r.max:e)}function p(t){var r=a(),i=r._rgba=[];return t=t.toLowerCase(),d(o,(function(e,n){var o,a=n.re.exec(t),s=a&&n.parse(a),u=n.space||"rgba";if(s)return o=r[u](s),r[l[u].cache]=o[l[u].cache],i=r._rgba=o._rgba,!1})),i.length?("0,0,0,0"===i.join()&&e.extend(i,n.transparent),r):n[t]}function h(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}c.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=c.style.backgroundColor.indexOf("rgba")>-1,d(l,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),a.fn=e.extend(a.prototype,{parse:function(r,i,o,s){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(i),i=t);var u=this,c=e.type(r),h=this._rgba=[];return i!==t&&(r=[r,i,o,s],c="array"),"string"===c?this.parse(p(r)||n._default):"array"===c?(d(l.rgba.props,(function(e,t){h[t.idx]=f(r[t.idx],t)})),this):"object"===c?(d(l,r instanceof a?function(e,t){r[t.cache]&&(u[t.cache]=r[t.cache].slice())}:function(t,n){var i=n.cache;d(n.props,(function(e,t){if(!u[i]&&n.to){if("alpha"===e||null==r[e])return;u[i]=n.to(u._rgba)}u[i][t.idx]=f(r[e],t,!0)})),u[i]&&e.inArray(null,u[i].slice(0,3))<0&&(u[i][3]=1,n.from&&(u._rgba=n.from(u[i])))}),this):void 0},is:function(e){var t=a(e),n=!0,r=this;return d(l,(function(e,i){var o,a=t[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],d(i.props,(function(e,t){if(null!=a[t.idx])return n=a[t.idx]===o[t.idx]}))),n})),n},_space:function(){var e=[],t=this;return d(l,(function(n,r){t[r.cache]&&e.push(n)})),e.pop()},transition:function(e,t){var n=a(e),r=n._space(),i=l[r],o=0===this.alpha()?a("transparent"):this,u=o[i.cache]||i.to(o._rgba),c=u.slice();return n=n[i.cache],d(i.props,(function(e,r){var i=r.idx,o=u[i],a=n[i],l=s[r.type]||{};null!==a&&(null===o?c[i]=a:(l.mod&&(a-o>l.mod/2?o+=l.mod:o-a>l.mod/2&&(o-=l.mod)),c[i]=f((a-o)*t+o,r)))})),this[r](c)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=a(t)._rgba;return a(e.map(n,(function(e,t){return(1-r)*i[t]+r*e})))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,(function(e,t){return null==e?t>2?1:0:e}));return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),a.fn.parse.prototype=a.fn,l.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=e[3],l=Math.max(r,i,o),s=Math.min(r,i,o),u=l-s,c=l+s,d=.5*c;return t=s===l?0:r===l?60*(i-o)/u+360:i===l?60*(o-r)/u+120:60*(r-i)/u+240,n=0===u?0:d<=.5?u/c:u/(2-c),[Math.round(t)%360,n,d,null==a?1:a]},l.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],o=r<=.5?r*(1+n):r+n-r*n,a=2*r-o;return[Math.round(255*h(a,o,t+1/3)),Math.round(255*h(a,o,t)),Math.round(255*h(a,o,t-1/3)),i]},d(l,(function(n,r){var o=r.props,l=r.cache,s=r.to,u=r.from;a.fn[n]=function(n){if(s&&!this[l]&&(this[l]=s(this._rgba)),n===t)return this[l].slice();var r,i=e.type(n),c="array"===i||"object"===i?n:arguments,p=this[l].slice();return d(o,(function(e,t){var n=c["object"===i?e:t.idx];null==n&&(n=p[t.idx]),p[t.idx]=f(n,t)})),u?((r=a(u(p)))[l]=p,r):a(p)},d(o,(function(t,r){a.fn[t]||(a.fn[t]=function(o){var a,l=e.type(o),s="alpha"===t?this._hsla?"hsla":"rgba":n,u=this[s](),c=u[r.idx];return"undefined"===l?c:("function"===l&&(o=o.call(this,c),l=e.type(o)),null==o&&r.empty?this:("string"===l&&(a=i.exec(o))&&(o=c+parseFloat(a[2])*("+"===a[1]?1:-1)),u[r.idx]=o,this[s](u)))})}))})),a.hook=function(t){var n=t.split(" ");d(n,(function(t,n){e.cssHooks[n]={set:function(t,r){var i,o,l="";if("transparent"!==r&&("string"!==e.type(r)||(i=p(r)))){if(r=a(i||r),!u.rgba&&1!==r._rgba[3]){for(o="backgroundColor"===n?t.parentNode:t;(""===l||"transparent"===l)&&o&&o.style;)try{l=e.css(o,"backgroundColor"),o=o.parentNode}catch(s){}r=r.blend(l&&"transparent"!==l?l:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(s){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=a(t.elem,n),t.end=a(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},a.hook(r),e.cssHooks.borderColor={expand:function(e){var t={};return d(["Top","Right","Bottom","Left"],(function(n,r){t["border"+r+"Color"]=e})),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(o),function(){var t,n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(t){var n,r,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(r=i.length;r--;)"string"==typeof i[n=i[r]]&&(o[e.camelCase(n)]=i[n]);else for(n in i)"string"==typeof i[n]&&(o[n]=i[n]);return o}function a(t,n){var i,o,a={};for(i in n)o=n[i],t[i]!==o&&(r[i]||!e.fx.step[i]&&isNaN(parseFloat(o))||(a[i]=o));return a}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(o.style(e.elem,n,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,r,o,l){var s=e.speed(r,o,l);return this.queue((function(){var r,o=e(this),l=o.attr("class")||"",u=s.children?o.find("*").addBack():o;u=u.map((function(){return{el:e(this),start:i(this)}})),(r=function(){e.each(n,(function(e,n){t[n]&&o[n+"Class"](t[n])}))})(),u=u.map((function(){return this.end=i(this.el[0]),this.diff=a(this.start,this.end),this})),o.attr("class",l),u=u.map((function(){var t=this,n=e.Deferred(),r=e.extend({},s,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()})),e.when.apply(e,u.get()).done((function(){r(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),s.complete.call(o[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(n,r,i,o){return r?e.effects.animateClass.call(this,{add:n},r,i,o):t.apply(this,arguments)}),removeClass:function(t){return function(n,r,i,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},r,i,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,r,i,o,a){return"boolean"==typeof r||void 0===r?i?e.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},r,i,o)}}(e.fn.toggleClass),switchClass:function(t,n,r,i,o){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,o)}})}(),function(){var t;function o(t,n,r,i){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),e.isFunction(n)&&(i=n,r=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(i=r,r=n,n={}),e.isFunction(r)&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:"number"==typeof r?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function a(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||!!e.isFunction(t)||"object"==typeof t&&!t.effect}function l(e,t){var n=t.outerWidth(),r=t.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=(t=e.expr.filters.animated,function(n){return!!e(n).data(i)||t(n)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var r=0,i=t.length;r<i;r++)null!==t[r]&&e.data(n+t[r],e[0].style[t[r]])},restore:function(e,t){for(var r,i=0,o=t.length;i<o;i++)null!==t[i]&&(r=e.data(n+t[i]),e.css(t[i],r))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},r=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return t.wrap(r),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),r=t.parent(),"static"===t.css("position")?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,n,r){return r||(r=n,n="effect"),e.effects.effect[t]=r,e.effects.effect[t].mode=n,r},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(t||100)/100:1,i="vertical"!==n?(t||100)/100:1;return{height:e.height()*i,width:e.width()*r,outerHeight:e.outerHeight()*i,outerWidth:e.outerWidth()*r}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var r=e.queue();t>1&&r.splice.apply(r,[1,0].concat(r.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(r,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(r)||"",e.removeData(r)},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createPlaceholder:function(t){var r,i=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",r=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(n+"placeholder",r)),t.css({position:i,left:o.left,top:o.top}),r},removePlaceholder:function(e){var t=n+"placeholder",r=e.data(t);r&&(r.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,r,i){return i=i||{},e.each(n,(function(e,n){var o=t.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])})),i}}),e.fn.extend({effect:function(){var t=o.apply(this,arguments),n=e.effects.effect[t.effect],r=n.mode,a=t.queue,l=a||"fx",s=t.complete,u=t.mode,c=[],d=function(t){var n=e(this),o=e.effects.mode(n,u)||r;n.data(i,!0),c.push(o),r&&("show"===o||o===r&&"hide"===o)&&n.show(),r&&"none"===o||e.effects.saveStyle(n),e.isFunction(t)&&t()};if(e.fx.off||!n)return u?this[u](t.duration,s):this.each((function(){s&&s.call(this)}));function f(o){var a=e(this);function l(){a.removeData(i),e.effects.cleanUp(a),"hide"===t.mode&&a.hide(),d()}function d(){e.isFunction(s)&&s.call(a[0]),e.isFunction(o)&&o()}t.mode=c.shift(),!1===e.uiBackCompat||r?"none"===t.mode?(a[u](),d()):n.call(a[0],t,l):(a.is(":hidden")?"hide"===u:"show"===u)?(a[u](),d()):n.call(a[0],t,d)}return!1===a?this.each(d).each(f):this.queue(l,d).queue(l,f)},show:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(t){if(a(t)||"boolean"==typeof t)return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],(function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])})),r},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):l(this.css("clip"),this)},transfer:function(t,n){var r=e(this),i=e(t.to),o="fixed"===i.css("position"),a=e("body"),l=o?a.scrollTop():0,s=o?a.scrollLeft():0,u=i.offset(),c={top:u.top-l,left:u.left-s,height:i.innerHeight(),width:i.innerWidth()},d=r.offset(),f=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:d.top-l,left:d.left-s,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(c,t.duration,t.easing,(function(){f.remove(),e.isFunction(n)&&n()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=l(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,n){t[n]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})),e.effects})?r.apply(t,i):r)||(e.exports=o)},3500:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Effects Drop 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(1578),n(3130)],void 0===(o="function"==typeof(r=function(e){return e.effects.define("drop","hide",(function(t,n){var r,i=e(this),o="show"===t.mode,a=t.direction||"left",l="up"===a||"down"===a?"top":"left",s="up"===a||"left"===a?"-=":"+=",u="+="===s?"-=":"+=",c={opacity:0};e.effects.createPlaceholder(i),r=t.distance||i["top"===l?"outerHeight":"outerWidth"](!0)/2,c[l]=s+r,o&&(i.css(c),c[l]=u+r,c.opacity=1),i.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}))})?r.apply(t,i):r)||(e.exports=o)},3501:(e,t,n)=>{var r,i,o;i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,i):r)||(e.exports=o)},3132:(e,t,n)=>{var r,i,o;i=[n(34),n(1578)],r=function(e){return e.ui.plugin={add:function(t,n,r){var i,o=e.ui[t].prototype;for(i in r)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([n,r[i]])},call:function(e,t,n,r){var i,o=e.plugins[t];if(o&&(r||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(i=0;i<o.length;i++)e.options[o[i][0]]&&o[i][1].apply(e.element,n)}}},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},3503:(e,t,n)=>{var r,i,o;i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){return e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}})?r.apply(t,i):r)||(e.exports=o)},3504:(e,t,n)=>{var r,i,o;i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){return e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")}})?r.apply(t,i):r)||(e.exports=o)},3505:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Scroll Parent 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){return e.fn.scrollParent=function(t){var n=this.css("position"),r="absolute"===n,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var t=e(this);return(!r||"static"!==t.css("position"))&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==n&&o.length?o:e(this[0].ownerDocument||document)}})?r.apply(t,i):r)||(e.exports=o)},1578:(e,t,n)=>{var r,i,o;i=[n(34)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,i):r)||(e.exports=o)},2423:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Widget 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(1578)],void 0===(o="function"==typeof(r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove")}catch(a){}t(n)}),e.widget=function(t,n,r){var i,o,a,l={},s=t.split(".")[0],u=s+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[s]=e[s]||{},i=e[s][t],o=e[s][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,(function(t,r){e.isFunction(r)?l[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function i(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=i,t=r.apply(this,arguments),this._super=n,this._superApply=o,t}}():l[t]=r})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},l,{constructor:o,namespace:s,widgetName:t,widgetFullName:u}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,i,o=r.call(arguments,1),a=0,l=o.length;a<l;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(o){var a="string"==typeof o,l=r.call(arguments,1),s=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=e.data(this,i);return"instance"===o?(s=r,!1):r?e.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,l))!==r&&void 0!==n?(s=n&&n.jquery?s.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):s=void 0:(l.length&&(o=e.widget.extend.apply(null,[o].concat(l))),this.each((function(){var t=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,new n(o,this))}))),s}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],r=this;function i(i,o){var a,l;for(l=0;l<i.length;l++)a=r.classesElementLookup[i[l]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[i[l]]=a,n.push(i[l]),o&&t.classes[i[l]]&&n.push(t.classes[i[l]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.not(t.target).get()))}))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function l(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(l.guid=a.guid=a.guid||l.guid||e.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),u=s[1]+o.eventNamespace,c=s[2];c?i.on(u,c,l):n.on(u,l)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function n(){return("string"==typeof e?r[e]:e).apply(r,arguments)}var r=this;return setTimeout(n,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var i,o,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var l=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})&&(i={duration:i}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[l]?r[t](i):l!==t&&r[l]?r[l](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget})?r.apply(t,i):r)||(e.exports=o)},3131:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Draggable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(2675),n(3502),n(3132),n(3503),n(3504),n(3505),n(1578),n(2423)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var r=this._uiHash();if(!1===this._trigger("drag",t,r))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,r=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(r=e.ui.ddmanager.drop(this,t)),this.dropped&&(r=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!r||"valid"===this.options.revert&&r||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,r)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==n._trigger("stop",t)&&n._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper),i=r?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),r&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options,o=this.document[0];this.relativeContainer=null,i.containment?"window"!==i.containment?"document"!==i.containment?i.containment.constructor!==Array?("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(r=(n=e(i.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=i.containment:this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,r,i,o,a=this.options,l=this._isRootNode(this.scrollParent[0]),s=e.pageX,u=e.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(r=this.relativeContainer.offset(),n=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(s=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(s=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),a.grid&&(i=a.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,u=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-a.grid[1]:i+a.grid[1]:i,o=a.grid[0]?this.originalPageX+Math.round((s-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,s=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(s=this.originalPageX),"x"===a.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,r){return r=r||this._uiHash(),e.ui.plugin.call(this,t,[n,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,r){var i=e.extend({},n,{item:r.element});r.sortables=[],e(r.options.connectToSortable).each((function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(r.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,i))}))},stop:function(t,n,r){var i=e.extend({},n,{item:r.element});r.cancelHelperRemoval=!1,e.each(r.sortables,(function(){var e=this;e.isOver?(e.isOver=0,r.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,i))}))},drag:function(t,n,r){e.each(r.sortables,(function(){var i=!1,o=this;o.positionAbs=r.positionAbs,o.helperProportions=r.helperProportions,o.offset.click=r.offset.click,o._intersectsWith(o.containerCache)&&(i=!0,e.each(r.sortables,(function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(i=!1),i}))),i?(o.isOver||(o.isOver=1,r._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=r.offset.click.top,o.offset.click.left=r.offset.click.left,o.offset.parent.left-=r.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=r.offset.parent.top-o.offset.parent.top,r._trigger("toSortable",t),r.dropped=o.element,e.each(r.sortables,(function(){this.refreshPositions()})),r.currentItem=r.element,o.fromOutside=r),o.currentItem&&(o._mouseDrag(t),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(r._parent),r._refreshOffsets(t),n.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,e.each(r.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,r){var i=e("body"),o=r.options;i.css("cursor")&&(o._cursor=i.css("cursor")),i.css("cursor",o.cursor)},stop:function(t,n,r){var i=r.options;i._cursor&&e("body").css("cursor",i._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,r){var i=e(n.helper),o=r.options;i.css("opacity")&&(o._opacity=i.css("opacity")),i.css("opacity",o.opacity)},stop:function(t,n,r){var i=r.options;i._opacity&&e(n.helper).css("opacity",i._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,r){var i=r.options,o=!1,a=r.scrollParentNotHidden[0],l=r.document[0];a!==l&&"HTML"!==a.tagName?(i.axis&&"x"===i.axis||(r.overflowOffset.top+a.offsetHeight-t.pageY<i.scrollSensitivity?a.scrollTop=o=a.scrollTop+i.scrollSpeed:t.pageY-r.overflowOffset.top<i.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(r.overflowOffset.left+a.offsetWidth-t.pageX<i.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+i.scrollSpeed:t.pageX-r.overflowOffset.left<i.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-e(l).scrollTop()<i.scrollSensitivity?o=e(l).scrollTop(e(l).scrollTop()-i.scrollSpeed):e(window).height()-(t.pageY-e(l).scrollTop())<i.scrollSensitivity&&(o=e(l).scrollTop(e(l).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-e(l).scrollLeft()<i.scrollSensitivity?o=e(l).scrollLeft(e(l).scrollLeft()-i.scrollSpeed):e(window).width()-(t.pageX-e(l).scrollLeft())<i.scrollSensitivity&&(o=e(l).scrollLeft(e(l).scrollLeft()+i.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(r,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,r){var i=r.options;r.snapElements=[],e(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each((function(){var t=e(this),n=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})}))},drag:function(t,n,r){var i,o,a,l,s,u,c,d,f,p,h=r.options,g=h.snapTolerance,m=n.offset.left,b=m+r.helperProportions.width,y=n.offset.top,v=y+r.helperProportions.height;for(f=r.snapElements.length-1;f>=0;f--)u=(s=r.snapElements[f].left-r.margins.left)+r.snapElements[f].width,d=(c=r.snapElements[f].top-r.margins.top)+r.snapElements[f].height,b<s-g||m>u+g||v<c-g||y>d+g||!e.contains(r.snapElements[f].item.ownerDocument,r.snapElements[f].item)?(r.snapElements[f].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,e.extend(r._uiHash(),{snapItem:r.snapElements[f].item})),r.snapElements[f].snapping=!1):("inner"!==h.snapMode&&(i=Math.abs(c-v)<=g,o=Math.abs(d-y)<=g,a=Math.abs(s-b)<=g,l=Math.abs(u-m)<=g,i&&(n.position.top=r._convertPositionTo("relative",{top:c-r.helperProportions.height,left:0}).top),o&&(n.position.top=r._convertPositionTo("relative",{top:d,left:0}).top),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:s-r.helperProportions.width}).left),l&&(n.position.left=r._convertPositionTo("relative",{top:0,left:u}).left)),p=i||o||a||l,"outer"!==h.snapMode&&(i=Math.abs(c-y)<=g,o=Math.abs(d-v)<=g,a=Math.abs(s-m)<=g,l=Math.abs(u-b)<=g,i&&(n.position.top=r._convertPositionTo("relative",{top:c,left:0}).top),o&&(n.position.top=r._convertPositionTo("relative",{top:d-r.helperProportions.height,left:0}).top),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:s}).left),l&&(n.position.left=r._convertPositionTo("relative",{top:0,left:u-r.helperProportions.width}).left)),!r.snapElements[f].snapping&&(i||o||a||l||p)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,e.extend(r._uiHash(),{snapItem:r.snapElements[f].item})),r.snapElements[f].snapping=i||o||a||l||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,r){var i,o=r.options,a=e.makeArray(e(o.stack)).sort((function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)}));a.length&&(i=parseInt(e(a[0]).css("zIndex"),10)||0,e(a).each((function(t){e(this).css("zIndex",i+t)})),this.css("zIndex",i+a.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,r){var i=e(n.helper),o=r.options;i.css("zIndex")&&(o._zIndex=i.css("zIndex")),i.css("zIndex",o.zIndex)},stop:function(t,n,r){var i=r.options;i._zIndex&&e(n.helper).css("zIndex",i._zIndex)}}),e.ui.draggable})?r.apply(t,i):r)||(e.exports=o)},3506:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Droppable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(3131),n(2675),n(1578),n(2423)],void 0===(o="function"==typeof(r=function(e){e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,r=n.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(r)?r:function(e){return e.is(r)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept=e.isFunction(n)?n:function(e){return e.is(n)};else if("scope"===t){var r=e.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(n,r){var i=r||e.ui.ddmanager.current,o=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var r=e(this).droppable("instance");if(r.options.greedy&&!r.options.disabled&&r.options.scope===i.options.scope&&r.accept.call(r.element[0],i.currentItem||i.element)&&t(i,e.extend(r,{offset:r.element.offset()}),r.options.tolerance,n))return o=!0,!1})),!o&&!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",n,this.ui(i)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var t=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,r,i){if(!n.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,a=(t.positionAbs||t.position.absolute).top+t.margins.top,l=o+t.helperProportions.width,s=a+t.helperProportions.height,u=n.offset.left,c=n.offset.top,d=u+n.proportions().width,f=c+n.proportions().height;switch(r){case"fit":return u<=o&&l<=d&&c<=a&&s<=f;case"intersect":return u<o+t.helperProportions.width/2&&l-t.helperProportions.width/2<d&&c<a+t.helperProportions.height/2&&s-t.helperProportions.height/2<f;case"pointer":return e(i.pageY,c,n.proportions().height)&&e(i.pageX,u,n.proportions().width);case"touch":return(a>=c&&a<=f||s>=c&&s<=f||a<c&&s>f)&&(o>=u&&o<=d||l>=u&&l<=d||o<u&&l>d);default:return!1}}}();return e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var r,i,o=e.ui.ddmanager.droppables[t.options.scope]||[],a=n?n.type:null,l=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(r=0;r<o.length;r++)if(!(o[r].options.disabled||t&&!o[r].accept.call(o[r].element[0],t.currentItem||t.element))){for(i=0;i<l.length;i++)if(l[i]===o[r].element[0]){o[r].proportions().height=0;continue e}o[r].visible="none"!==o[r].element.css("display"),o[r].visible&&("mousedown"===a&&o[r]._activate.call(o[r],n),o[r].offset=o[r].element.offset(),o[r].proportions({width:o[r].element[0].offsetWidth,height:o[r].element[0].offsetHeight}))}},drop:function(n,r){var i=!1;return e.each((e.ui.ddmanager.droppables[n.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t(n,this,this.options.tolerance,r)&&(i=this._drop.call(this,r)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,r)))})),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}))},drag:function(n,r){n.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(n,r),e.each(e.ui.ddmanager.droppables[n.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,a,l=t(n,this,this.options.tolerance,r),s=!l&&this.isover?"isout":l&&!this.isover?"isover":null;s&&(this.options.greedy&&(o=this.options.scope,(a=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===o}))).length&&((i=e(a[0]).droppable("instance")).greedyChild="isover"===s)),i&&"isover"===s&&(i.isover=!1,i.isout=!0,i._out.call(i,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),i&&"isout"===s&&(i.isout=!1,i.isover=!0,i._over.call(i,r)))}}))},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable})?r.apply(t,i):r)||(e.exports=o)},2675:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Mouse 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(3501),n(1578),n(2423)],void 0===(o="function"==typeof(r=function(e){var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){r.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(t,i):r)||(e.exports=o)},3507:(e,t,n)=>{var r,i,o;
/*!
 * jQuery UI Resizable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */i=[n(34),n(2675),n(3508),n(3132),n(1578),n(2423)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.resizable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var r=n&&"left"===n?"scrollLeft":"scrollTop",i=!1;return t[r]>0||(t[r]=1,i=t[r]>0,t[r]=0,i)},_create:function(){var t,n=this.options,r=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),n.autoHide&&e(this.element).on("mouseenter",(function(){n.disabled||(r._removeClass("ui-resizable-autohide"),r._handles.show())})).on("mouseleave",(function(){n.disabled||r.resizing||(r._addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,n=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(e,t){this._super(e,t),"handles"===e&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,n,r,i,o,a=this.options,l=this;if(this.handles=a.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),r=this.handles.split(","),this.handles={},n=0;n<r.length;n++)i="ui-resizable-"+(t=e.trim(r[n])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+i),o.css({zIndex:a.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(o);this._renderAxis=function(t){var n,r,i,o;for(n in t=t||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:l._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=e(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth(),i=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(i,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){l.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),l.axis=o&&o[1]?o[1]:"se")})),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var n,r,i=!1;for(n in this.handles)((r=e(this.handles[n])[0])===t.target||e.contains(r,t.target))&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(t){var n,r,i,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),r=this._num(this.helper.css("top")),o.containment&&(n+=e(o.containment).scrollLeft()||0,r+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:r},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:n,top:r},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,i=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===i?this.axis+"-resize":i),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,r,i=this.originalMousePosition,o=this.axis,a=t.pageX-i.left||0,l=t.pageY-i.top||0,s=this._change[o];return this._updatePrevProperties(),!!s&&(n=s.apply(this,[t,a,l]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var n,r,i,o,a,l,s,u=this.options,c=this;return this._helper&&(i=(r=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:c.sizeDiff.height,o=r?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-i},l=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,s=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,u.animate||this.element.css(e.extend(a,{top:s,left:l})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!u.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,r,i,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,i=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),r>o.minHeight&&(o.minHeight=r),n<o.maxWidth&&(o.maxWidth=n),i<o.maxHeight&&(o.maxHeight=i)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,r=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===r&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===r&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,r=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,i=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,l=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return o&&(e.width=t.minWidth),a&&(e.height=t.minHeight),r&&(e.width=t.maxWidth),i&&(e.height=t.maxHeight),o&&u&&(e.left=l-t.minWidth),r&&u&&(e.left=l-t.maxWidth),a&&c&&(e.top=s-t.minHeight),i&&c&&(e.top=s-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],r=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],i=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(r[t])||0,n[t]+=parseFloat(i[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var r=this.originalSize;return{top:this.originalPosition.top+n,height:r.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},sw:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,r]))},ne:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},nw:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,r]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),r=n.options,i=n._proportionallyResizeElements,o=i.length&&/textarea/i.test(i[0].nodeName),a=o&&n._hasScroll(i[0],"left")?0:n.sizeDiff.height,l=o?0:n.sizeDiff.width,s={width:n.size.width-l,height:n.size.height-a},u=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,c=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(s,c&&u?{top:c,left:u}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var r={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};i&&i.length&&e(i[0]).css({width:r.width,height:r.height}),n._updateCache(r),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,r,i,o,a,l,s=e(this).resizable("instance"),u=s.options,c=s.element,d=u.containment,f=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;f&&(s.containerElement=e(f),/document/.test(d)||d===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(f),n=[],e(["Top","Right","Left","Bottom"]).each((function(e,r){n[e]=s._num(t.css("padding"+r))})),s.containerOffset=t.offset(),s.containerPosition=t.position(),s.containerSize={height:t.innerHeight()-n[3],width:t.innerWidth()-n[1]},r=s.containerOffset,i=s.containerSize.height,o=s.containerSize.width,a=s._hasScroll(f,"left")?f.scrollWidth:o,l=s._hasScroll(f)?f.scrollHeight:i,s.parentData={element:f,left:r.left,top:r.top,width:a,height:l}))},resize:function(t){var n,r,i,o,a=e(this).resizable("instance"),l=a.options,s=a.containerOffset,u=a.position,c=a._aspectRatio||t.shiftKey,d={top:0,left:0},f=a.containerElement,p=!0;f[0]!==document&&/static/.test(f.css("position"))&&(d=s),u.left<(a._helper?s.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-s.left:a.position.left-d.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=l.helper?s.left:0),u.top<(a._helper?s.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-s.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?s.top:0),i=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),i&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),n=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-s.left)),r=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-s.top)),n+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-n,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),r+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-r,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),n=t.options,r=t.containerOffset,i=t.containerPosition,o=t.containerElement,a=e(t.helper),l=a.offset(),s=a.outerWidth()-t.sizeDiff.width,u=a.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(o.css("position"))&&e(this).css({left:l.left-i.left-r.left,width:s,height:u}),t._helper&&!n.animate&&/static/.test(o.css("position"))&&e(this).css({left:l.left-i.left-r.left,width:s,height:u})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})}))},resize:function(t,n){var r=e(this).resizable("instance"),i=r.options,o=r.originalSize,a=r.originalPosition,l={height:r.size.height-o.height||0,width:r.size.width-o.width||0,top:r.position.top-a.top||0,left:r.position.left-a.left||0};e(i.alsoResize).each((function(){var t=e(this),r=e(this).data("ui-resizable-alsoresize"),i={},o=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,(function(e,t){var n=(r[t]||0)+(l[t]||0);n&&n>=0&&(i[t]=n||null)})),t.css(i)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,n=e(this).resizable("instance"),r=n.options,i=n.size,o=n.originalSize,a=n.originalPosition,l=n.axis,s="number"==typeof r.grid?[r.grid,r.grid]:r.grid,u=s[0]||1,c=s[1]||1,d=Math.round((i.width-o.width)/u)*u,f=Math.round((i.height-o.height)/c)*c,p=o.width+d,h=o.height+f,g=r.maxWidth&&r.maxWidth<p,m=r.maxHeight&&r.maxHeight<h,b=r.minWidth&&r.minWidth>p,y=r.minHeight&&r.minHeight>h;r.grid=s,b&&(p+=u),y&&(h+=c),g&&(p-=u),m&&(h-=c),/^(se|s|e)$/.test(l)?(n.size.width=p,n.size.height=h):/^(ne)$/.test(l)?(n.size.width=p,n.size.height=h,n.position.top=a.top-f):/^(sw)$/.test(l)?(n.size.width=p,n.size.height=h,n.position.left=a.left-d):((h-c<=0||p-u<=0)&&(t=n._getPaddingPlusBorderDimensions(this)),h-c>0?(n.size.height=h,n.position.top=a.top-f):(h=c-t.height,n.size.height=h,n.position.top=a.top+o.height-h),p-u>0?(n.size.width=p,n.position.left=a.left-d):(p=u-t.width,n.size.width=p,n.position.left=a.left+o.width-p))}}),e.ui.resizable})?r.apply(t,i):r)||(e.exports=o)},2456:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Boolean]",l="[object Date]",s="[object Function]",u="[object GeneratorFunction]",c="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",m="[object String]",b="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",E="[object Float32Array]",w="[object Float64Array]",A="[object Int8Array]",C="[object Int16Array]",S="[object Int32Array]",O="[object Uint8Array]",T="[object Uint8ClampedArray]",P="[object Uint16Array]",R="[object Uint32Array]",x=/\w*$/,I=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,D={};D[o]=D["[object Array]"]=D[v]=D[_]=D[a]=D[l]=D[E]=D[w]=D[A]=D[C]=D[S]=D[c]=D[d]=D[f]=D[h]=D[g]=D[m]=D[b]=D[O]=D[T]=D[P]=D[R]=!0,D["[object Error]"]=D[s]=D[y]=!1;var M="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,j="object"==typeof self&&self&&self.Object===Object&&self,F=M||j||Function("return this")(),N=t&&!t.nodeType&&t,L=N&&e&&!e.nodeType&&e,B=L&&L.exports===N;function $(e,t){return e.set(t[0],t[1]),e}function W(e,t){return e.add(t),e}function U(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function G(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function H(e,t){return function(n){return e(t(n))}}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q,Y=Array.prototype,X=Function.prototype,K=Object.prototype,Q=F["__core-js_shared__"],Z=(q=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",J=X.toString,ee=K.hasOwnProperty,te=K.toString,ne=RegExp("^"+J.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=B?F.Buffer:void 0,ie=F.Symbol,oe=F.Uint8Array,ae=H(Object.getPrototypeOf,Object),le=Object.create,se=K.propertyIsEnumerable,ue=Y.splice,ce=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,fe=H(Object.keys,Object),pe=Le(F,"DataView"),he=Le(F,"Map"),ge=Le(F,"Promise"),me=Le(F,"Set"),be=Le(F,"WeakMap"),ye=Le(Object,"create"),ve=Ge(pe),_e=Ge(he),Ee=Ge(ge),we=Ge(me),Ae=Ge(be),Ce=ie?ie.prototype:void 0,Se=Ce?Ce.valueOf:void 0;function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){this.__data__=new Te(e)}function xe(e,t){var n=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&ze(e)}(e)&&ee.call(e,"callee")&&(!se.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!ee.call(e,a)||i&&("length"==a||We(a,r))||n.push(a);return n}function Ie(e,t,n){var r=e[t];ee.call(e,t)&&Ve(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ke(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function De(e,t,n,r,i,p,y){var I;if(r&&(I=p?r(e,i,p,y):r(e)),void 0!==I)return I;if(!Xe(e))return e;var k=He(e);if(k){if(I=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,I)}else{var M=$e(e),j=M==s||M==u;if(qe(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(M==f||M==o||j&&!p){if(G(e))return p?e:{};if(I=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:(t=ae(e),Xe(t)?le(t):{});var t}(j?{}:e),!t)return function(e,t){return Fe(e,Be(e),t)}(e,function(e,t){return e&&Fe(t,Ke(t),e)}(I,e))}else{if(!D[M])return p?e:{};I=function(e,t,n,r){var i=e.constructor;switch(t){case v:return je(e);case a:case l:return new i(+e);case _:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case E:case w:case A:case C:case S:case O:case T:case P:case R:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){var r=t?n(V(e),!0):V(e);return U(r,$,new e.constructor)}(e,r,n);case d:case m:return new i(e);case h:return function(e){var t=new e.constructor(e.source,x.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){var r=t?n(z(e),!0):z(e);return U(r,W,new e.constructor)}(e,r,n);case b:return o=e,Se?Object(Se.call(o)):{}}var o}(e,M,De,t)}}y||(y=new Re);var F=y.get(e);if(F)return F;if(y.set(e,I),!k)var N=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ke,Be)}(e):Ke(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(N||e,(function(i,o){N&&(i=e[o=i]),Ie(I,o,De(i,t,n,r,o,e,y))})),I}function Me(e){return!(!Xe(e)||(t=e,Z&&Z in t))&&(Ye(e)||G(e)?ne:I).test(Ge(e));var t}function je(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Fe(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;Ie(n,a,void 0===l?e[a]:l)}return n}function Ne(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}Oe.prototype.clear=function(){this.__data__=ye?ye(null):{}},Oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Oe.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},Oe.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:ee.call(t,e)},Oe.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():ue.call(t,n,1),!0)},Te.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return ke(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Oe,map:new(he||Te),string:new Oe}},Pe.prototype.delete=function(e){return Ne(this,e).delete(e)},Pe.prototype.get=function(e){return Ne(this,e).get(e)},Pe.prototype.has=function(e){return Ne(this,e).has(e)},Pe.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},Re.prototype.clear=function(){this.__data__=new Te},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new Pe(r)}return n.set(e,t),this};var Be=ce?H(ce,Object):function(){return[]},$e=function(e){return te.call(e)};function We(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function Ge(e){if(null!=e){try{return J.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(pe&&$e(new pe(new ArrayBuffer(1)))!=_||he&&$e(new he)!=c||ge&&$e(ge.resolve())!=p||me&&$e(new me)!=g||be&&$e(new be)!=y)&&($e=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,r=n?Ge(n):void 0;if(r)switch(r){case ve:return _;case _e:return c;case Ee:return p;case we:return g;case Ae:return y}return t});var He=Array.isArray;function ze(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!Ye(e)}var qe=de||function(){return!1};function Ye(e){var t=Xe(e)?te.call(e):"";return t==s||t==u}function Xe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ke(e){return ze(e)?xe(e):function(e){if(!Ue(e))return fe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return De(e,!0,!0)}},2114:(e,t,n)=>{var r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,g=Math.min,m=function(){return f.Date.now()};function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==i}(e))return r;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,l,s,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function v(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-u>=o}function _(){var e=m();if(v(e))return E(e);l=setTimeout(_,function(e){var n=t-(e-s);return d?g(n,o-(e-u)):n}(e))}function E(e){return l=void 0,f&&r?p(e):(r=i=void 0,a)}function w(){var e=m(),n=v(e);if(r=arguments,i=this,s=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(_,t),c?p(e):a}(s);if(d)return l=setTimeout(_,t),p(s)}return void 0===l&&(l=setTimeout(_,t)),a}return t=y(t)||0,b(n)&&(c=!!n.leading,o=(d="maxWait"in n)?h(y(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),w.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=i=l=void 0},w.flush=function(){return void 0===l?a:E(m())},w}},3137:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amber:()=>m,black:()=>T,blue:()=>s,blueGrey:()=>E,brown:()=>v,cyan:()=>c,darkIcons:()=>C,darkText:()=>w,deepOrange:()=>y,deepPurple:()=>a,default:()=>P,green:()=>f,grey:()=>_,indigo:()=>l,lightBlue:()=>u,lightGreen:()=>p,lightIcons:()=>S,lightText:()=>A,lime:()=>h,orange:()=>b,pink:()=>i,purple:()=>o,red:()=>r,teal:()=>d,white:()=>O,yellow:()=>g});var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},l={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},s={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},u={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},c={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},d={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},f={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},p={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},h={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},g={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},m={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},y={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},v={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},E={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},w={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},A={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},C={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},S={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},O="#ffffff",T="#000000";const P={red:r,pink:i,purple:o,deepPurple:a,indigo:l,blue:s,lightBlue:u,cyan:c,teal:d,green:f,lightGreen:p,lime:h,yellow:g,amber:m,orange:b,deepOrange:y,brown:v,grey:_,blueGrey:E,darkText:w,lightText:A,darkIcons:C,lightIcons:S,white:O,black:T}},2573:(e,t,n)=>{var r=n(107);function i(e){var t=r.version,n=t.split(".")[0];n=n.split("v")[1];var i=t.split(".")[1];0==n&&i<10&&(console.log("Error: Please update to the latest version of node! This library requires 0.10.x or later"),r.exit(0)),this.intervalT1=null,this.timeOutT1=null,this.intervalCount=1,this.deferredInterval=!1,this.deferredTimeout=!1,this.deferredTimeoutRef=null,this.deferredIntervalRef=null,this.timeoutCallbackRef=null,this.intervalCallbackRef=null,this.timeoutImmediateRef=null,this.intervalImmediateRef=null,this.intervalErrorChecked=!1,this.intervalType="",e&&(this.logging=!0)}i.prototype.time=function(e,t,n,i){if(!i){a=r.hrtime();t?e.apply(null,t):e();var o=r.hrtime(a);return"s"==n?o[0]+o[1]/1e9:"m"==n?o[0]/1e3+o[1]/1e6:"u"==n?o[0]/1e6+o[1]/1e3:"n"==n?o[0]/1e9+o[1]:r.hrtime(a)}var a=r.hrtime();t?(t.push((function(){var e=r.hrtime(a);i("s"==n?e[0]+e[1]/1e9:"m"==n?e[0]/1e3+e[1]/1e6:"u"==n?e[0]/1e6+e[1]/1e3:"n"==n?e[0]/1e9+e[1]:e)})),e.apply(null,t)):e((function(){var e=r.hrtime(a);i("s"==n?e[0]+e[1]/1e9:"m"==n?e[0]/1e3+e[1]/1e6:"u"==n?e[0]/1e6+e[1]/1e3:"n"==n?e[0]/1e9+e[1]:e)}))},i.prototype.setInterval=function(e,t,n,i){this.intervalErrorChecked||(e?"function"!=typeof e&&(console.log("Task argument to setInterval must be a function reference"),r.exit(1)):(console.log("A task function must be specified to setInterval"),r.exit(1)),n?"string"!=typeof n&&(console.log("Interval argument to setInterval must be a string specified as an integer followed by 's' for seconds, 'm' for milli, 'u' for micro, and 'n' for nanoseconds. Ex. 2u"),r.exit(1)):(console.log("An interval argument must be specified"),r.exit(1)),i&&("function"!=typeof i?(console.log("Callback argument to setInterval must be a function reference"),r.exit(1)):this.intervalCallbackRef=i),this.intervalType=n[n.length-1],"s"==this.intervalType?this.intervalTime=1e9*n.slice(0,n.length-1):"m"==this.intervalType?this.intervalTime=1e6*n.slice(0,n.length-1):"u"==this.intervalType?this.intervalTime=1e3*n.slice(0,n.length-1):"n"==this.intervalType?this.intervalTime=n.slice(0,n.length-1):(console.log("Error with argument: "+n+': Incorrect interval format. Format is an integer followed by "s" for seconds, "m" for milli, "u" for micro, and "n" for nanoseconds. Ex. 2u'),r.exit(1)),this.intervalErrorChecked=!0);var o=this;this.intervalTime>0?(null==this.intervalT1&&(this.intervalT1=r.hrtime()),this.intervalTime*this.intervalCount>8e15&&(this.intervalT1=r.hrtime(),this.intervalCount=1),this.difArray=r.hrtime(this.intervalT1),this.difTime=1e9*this.difArray[0]+this.difArray[1],this.difTime<this.intervalTime*this.intervalCount?this.intervalTime>25e6?0==this.deferredInterval?(this.deferredInterval=!0,msDelay=(this.intervalTime-25e6)/1e6,this.deferredIntervalRef=setTimeout((function(){o.setInterval(e,t,n,i)}),msDelay)):(this.deferredIntervalRef=null,this.intervalImmediateRef=setImmediate((function(){o.setInterval(e,t,n,i)}))):this.intervalImmediateRef=setImmediate((function(){o.setInterval(e,t,n,i)})):(this.intervalImmediateRef=null,this.logging&&console.log("nanotimer log: cycle time at - "+this.difTime),t?e.apply(null,t):e(),this.intervalT1&&(this.intervalCount++,this.deferredInterval=!1,this.intervalImmediateRef=setImmediate((function(){o.setInterval(e,t,n,i)}))))):(null==this.intervalT1&&(this.intervalT1=r.hrtime(),this.intervalContinue=!0),1==this.intervalContinue?(t?e.apply(null,t):e(),setImmediate((function(){o.setInterval(e,t,n,i)}))):(this.intervalT1=null,this.intervalCount=1,i()))},i.prototype.setTimeout=function(e,t,n,i){e?"function"!=typeof e&&(console.log("Task argument to setTimeout must be a function reference"),r.exit(1)):(console.log("A task function must be specified to setTimeout"),r.exit(1)),n?"string"!=typeof n&&(console.log("Delay argument to setTimeout must be a string specified as an integer followed by 's' for seconds, 'm' for milli, 'u' for micro, and 'n' for nanoseconds. Ex. 2u"),r.exit(1)):(console.log("A delay argument must be specified"),r.exit(1)),i&&("function"!=typeof i?(console.log("Callback argument to setTimeout must be a function reference"),r.exit(1)):this.timeoutCallbackRef=i);var o=this,a=n[n.length-1];if("s"==a)var l=1e9*n.slice(0,n.length-1);else if("m"==a)l=1e6*n.slice(0,n.length-1);else if("u"==a)l=1e3*n.slice(0,n.length-1);else if("n"==a)l=n.slice(0,n.length-1);else console.log("Error with argument: "+n+': Incorrect delay format. Format is an integer followed by "s" for seconds, "m" for milli, "u" for micro, and "n" for nanoseconds. Ex. 2u'),r.exit(1);null==this.timeOutT1&&(this.timeOutT1=r.hrtime());var s=r.hrtime(this.timeOutT1),u=1e9*s[0]+s[1];u<l?l>25e6?0==this.deferredTimeout?(this.deferredTimeout=!0,msDelay=(l-25e6)/1e6,this.deferredTimeoutRef=setTimeout((function(){o.setTimeout(e,t,n,i)}),msDelay)):(this.deferredTimeoutRef=null,this.timeoutImmediateRef=setImmediate((function(){o.setTimeout(e,t,n,i)}))):this.timeoutImmediateRef=setImmediate((function(){o.setTimeout(e,t,n,i)})):(this.timeoutImmediateRef=null,this.timeOutT1=null,this.deferredTimeout=!1,1==this.logging&&console.log("nanotimer log: actual wait - "+u),t?e.apply(null,t):e(),i&&i({waitTime:u}))},i.prototype.clearInterval=function(){this.deferredIntervalRef&&(clearTimeout(this.deferredIntervalRef),this.deferredInterval=!1),this.intervalImmediateRef&&clearImmediate(this.intervalImmediateRef),this.intervalT1=null,this.intervalCount=1,this.intervalErrorChecked=!1,this.intervalCallbackRef&&this.intervalCallbackRef()},i.prototype.clearTimeout=function(){if(this.deferredTimeoutRef){clearTimeout(this.deferredTimeoutRef);var e=r.hrtime(this.timeOutT1),t=1e9*e[0]+e[1];this.deferredTimeout=!1}if(this.timeoutImmediateRef&&clearImmediate(this.timeoutImmediateRef),this.timeOutT1=null,this.timeoutCallbackRef){var n={waitTime:t};this.timeoutCallbackRef(n)}},e.exports=i},2676:e=>{"use strict";
/*! npm.im/object-fit-images 3.2.3 */var t="bfred-it:object-fit-images",n=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g,r="undefined"==typeof Image?{style:{"object-position":1}}:new Image,i="object-fit"in r.style,o="object-position"in r.style,a="background-size"in r.style,l="string"==typeof r.currentSrc,s=r.getAttribute,u=r.setAttribute,c=!1;function d(e,t,n){var r="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+(t||1)+"' height='"+(n||0)+"'%3E%3C/svg%3E";s.call(e,"src")!==r&&u.call(e,"src",r)}function f(e,t){e.naturalWidth?t(e):setTimeout(f,100,e,t)}function p(e){var r=function(e){for(var t,r=getComputedStyle(e).fontFamily,i={};null!==(t=n.exec(r));)i[t[1]]=t[2];return i}(e),o=e[t];if(r["object-fit"]=r["object-fit"]||"fill",!o.img){if("fill"===r["object-fit"])return;if(!o.skipTest&&i&&!r["object-position"])return}if(!o.img){o.img=new Image(e.width,e.height),o.img.srcset=s.call(e,"data-ofi-srcset")||e.srcset,o.img.src=s.call(e,"data-ofi-src")||e.src,u.call(e,"data-ofi-src",e.src),e.srcset&&u.call(e,"data-ofi-srcset",e.srcset),d(e,e.naturalWidth||e.width,e.naturalHeight||e.height),e.srcset&&(e.srcset="");try{!function(e){var n={get:function(n){return e[t].img[n||"src"]},set:function(n,r){return e[t].img[r||"src"]=n,u.call(e,"data-ofi-"+r,n),p(e),n}};Object.defineProperty(e,"src",n),Object.defineProperty(e,"currentSrc",{get:function(){return n.get("currentSrc")}}),Object.defineProperty(e,"srcset",{get:function(){return n.get("srcset")},set:function(e){return n.set(e,"srcset")}})}(e)}catch(a){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}!function(e){if(e.srcset&&!l&&window.picturefill){var t=window.picturefill._;e[t.ns]&&e[t.ns].evaled||t.fillImg(e,{reselect:!0}),e[t.ns].curSrc||(e[t.ns].supported=!1,t.fillImg(e,{reselect:!0})),e.currentSrc=e[t.ns].curSrc||e.src}}(o.img),e.style.backgroundImage='url("'+(o.img.currentSrc||o.img.src).replace(/"/g,'\\"')+'")',e.style.backgroundPosition=r["object-position"]||"center",e.style.backgroundRepeat="no-repeat",e.style.backgroundOrigin="content-box",/scale-down/.test(r["object-fit"])?f(o.img,(function(){o.img.naturalWidth>e.width||o.img.naturalHeight>e.height?e.style.backgroundSize="contain":e.style.backgroundSize="auto"})):e.style.backgroundSize=r["object-fit"].replace("none","auto").replace("fill","100% 100%"),f(o.img,(function(t){d(e,t.naturalWidth,t.naturalHeight)}))}function h(e,n){var r=!c&&!e;if(n=n||{},e=e||"img",o&&!n.skipTest||!a)return!1;"img"===e?e=document.getElementsByTagName("img"):"string"==typeof e?e=document.querySelectorAll(e):"length"in e||(e=[e]);for(var i=0;i<e.length;i++)e[i][t]=e[i][t]||{skipTest:n.skipTest},p(e[i]);r&&(document.body.addEventListener("load",(function(e){"IMG"===e.target.tagName&&h(e.target,{skipTest:n.skipTest})}),!0),c=!0,e="img"),n.watchMQ&&window.addEventListener("resize",h.bind(null,e,{skipTest:n.skipTest}))}h.supportsObjectFit=i,h.supportsObjectPosition=o,function(){function e(e,n){return e[t]&&e[t].img&&("src"===n||"srcset"===n)?e[t].img:e}o||(HTMLImageElement.prototype.getAttribute=function(t){return s.call(e(this,t),t)},HTMLImageElement.prototype.setAttribute=function(t,n){return u.call(e(this,t),t,String(n))})}(),e.exports=h},1006:(e,t,n)=>{"use strict";var r=n(820);t.__esModule=!0,t.default=void 0;var i=r(n(809)),o=r(n(1011)),a=r(n(1012)),l=r(n(1013)),s=r(n(1)),u=r(n(2)),c=r(n(486)),d=r(n(810)),f={href:u.default.string,onClick:u.default.func,onKeyDown:u.default.func,disabled:u.default.bool,role:u.default.string,tabIndex:u.default.oneOfType([u.default.number,u.default.string]),componentClass:c.default};function p(e){return!e||"#"===e.trim()}var h=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleClick=r.handleClick.bind((0,l.default)((0,l.default)(r))),r.handleKeyDown=r.handleKeyDown.bind((0,l.default)((0,l.default)(r))),r}(0,a.default)(t,e);var n=t.prototype;return n.handleClick=function(e){var t=this.props,n=t.disabled,r=t.href,i=t.onClick;(n||p(r))&&e.preventDefault(),n?e.stopPropagation():i&&i(e)},n.handleKeyDown=function(e){" "===e.key&&(e.preventDefault(),this.handleClick(e))},n.render=function(){var e=this.props,t=e.componentClass,n=e.disabled,r=e.onKeyDown,a=(0,o.default)(e,["componentClass","disabled","onKeyDown"]);return p(a.href)&&(a.role=a.role||"button",a.href=a.href||"#"),n&&(a.tabIndex=-1,a.style=(0,i.default)({pointerEvents:"none"},a.style)),s.default.createElement(t,(0,i.default)({},a,{onClick:this.handleClick,onKeyDown:(0,d.default)(this.handleKeyDown,r)}))},t}(s.default.Component);h.propTypes=f,h.defaultProps={componentClass:"a"};var g=h;t.default=g,e.exports=t.default},1357:(e,t)=>{"use strict";t.__esModule=!0,t.Style=t.State=t.DEVICE_SIZES=t.SIZE_MAP=t.Size=void 0;t.Size={LARGE:"large",SMALL:"small",XSMALL:"xsmall"};t.SIZE_MAP={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};t.DEVICE_SIZES=["lg","md","sm","xs"];t.State={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"};t.Style={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"}},1356:(e,t,n)=>{"use strict";var r=n(820);t.__esModule=!0,t.prefix=u,t.getClassSet=function(e){var t,n=((t={})[u(e)]=!0,t);if(e.bsSize){n[u(e,l.SIZE_MAP[e.bsSize]||e.bsSize)]=!0}e.bsStyle&&(n[u(e,e.bsStyle)]=!0);return n},t.splitBsProps=function(e){var t={};return(0,i.default)(e).forEach((function(e){var n=e[0],r=e[1];h(n)||(t[n]=r)})),[p(e),t]},t.splitBsPropsAndOmit=function(e,t){var n={};t.forEach((function(e){n[e]=!0}));var r={};return(0,i.default)(e).forEach((function(e){var t=e[0],i=e[1];h(t)||n[t]||(r[t]=i)})),[p(e),r]},t.addStyle=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];d(n)(e)},t._curry=t.bsSizes=t.bsStyles=t.bsClass=void 0;var i=r(n(808)),o=r(n(809)),a=(r(n(501)),r(n(2))),l=n(1357);function s(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function u(e,t){var n=(e.bsClass||"").trim();return null==n&&invariant(!1),n+(t?"-"+t:"")}var c=s((function(e,t){var n=t.propTypes||(t.propTypes={}),r=t.defaultProps||(t.defaultProps={});return n.bsClass=a.default.string,r.bsClass=e,t}));t.bsClass=c;var d=s((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.STYLES||[],i=n.propTypes||{};e.forEach((function(e){-1===r.indexOf(e)&&r.push(e)}));var l=a.default.oneOf(r);(n.STYLES=r,l._values=r,n.propTypes=(0,o.default)({},i,{bsStyle:l}),void 0!==t)&&((n.defaultProps||(n.defaultProps={})).bsStyle=t);return n}));t.bsStyles=d;var f=s((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.SIZES||[],i=n.propTypes||{};e.forEach((function(e){-1===r.indexOf(e)&&r.push(e)}));var s=[];r.forEach((function(e){var t=l.SIZE_MAP[e];t&&t!==e&&s.push(t),s.push(e)}));var u=a.default.oneOf(s);return u._values=s,n.SIZES=r,n.propTypes=(0,o.default)({},i,{bsSize:u}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n}));function p(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function h(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}t.bsSizes=f;var g=s;t._curry=g},810:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),null)};t.default=n,e.exports=t.default},3510:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(1)),o=s(n(760)),a=n(1154),l=s(n(3529));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,l=e.width,s=e.height,u=e.onChange,c=e.direction,d=e.style,f=e.renderers,p=e.pointer,h=e.className,g=void 0===h?"":h,m=(0,o.default)({default:{picker:{position:"relative",width:l,height:s},alpha:{radius:"2px",style:d}}});return i.default.createElement("div",{style:m.picker,className:"alpha-picker "+g},i.default.createElement(a.Alpha,r({},m.alpha,{rgb:t,hsl:n,pointer:p,renderers:f,onChange:u,direction:c})))};u.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:l.default},t.default=(0,a.ColorWrap)(u)},3529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.AlphaPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},3530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=c(n(1)),i=c(n(2)),o=c(n(760)),a=c(n(1741)),l=c(n(1808)),s=n(1154),u=c(n(3531));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,c=e.colors,d=e.width,f=e.triangle,p=e.styles,h=void 0===p?{}:p,g=e.className,m=void 0===g?"":g,b="transparent"===i,y=function(e,n){l.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},v=(0,o.default)((0,a.default)({default:{card:{width:d,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:l.default.getContrastingColor(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},h),{"hide-triangle":"hide"===f});return r.default.createElement("div",{style:v.card,className:"block-picker "+m},r.default.createElement("div",{style:v.triangle}),r.default.createElement("div",{style:v.head},b&&r.default.createElement(s.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:v.label},i)),r.default.createElement("div",{style:v.body},r.default.createElement(u.default,{colors:c,onClick:y,onSwatchHover:n}),r.default.createElement(s.EditableInput,{style:{input:v.input},value:i,onChange:y})))};d.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["top","hide"]),styles:i.default.object},d.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,s.ColorWrap)(d)},3531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=l(n(1)),i=l(n(760)),o=l(n(1994)),a=n(1154);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,l=e.onSwatchHover,s=(0,i.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.default.createElement("div",{style:s.swatches},(0,o.default)(t,(function(e){return r.default.createElement(a.Swatch,{key:e,color:e,style:s.swatch,onClick:n,onHover:l,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:s.clear}))};t.default=s},3534:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=d(n(1)),i=d(n(2)),o=d(n(760)),a=d(n(1741)),l=n(1154),s=d(n(3535)),u=d(n(3537)),c=d(n(3538));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Chrome=function(e){var t=e.width,n=e.onChange,i=e.disableAlpha,d=e.rgb,f=e.hsl,p=e.hsv,h=e.hex,g=e.renderers,m=e.styles,b=void 0===m?{}:m,y=e.className,v=void 0===y?"":y,_=(0,o.default)((0,a.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+d.r+", "+d.g+", "+d.b+", "+d.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},b),{disableAlpha:i});return r.default.createElement("div",{style:_.picker,className:"chrome-picker "+v},r.default.createElement("div",{style:_.saturation},r.default.createElement(l.Saturation,{style:_.Saturation,hsl:f,hsv:p,pointer:c.default,onChange:n})),r.default.createElement("div",{style:_.body},r.default.createElement("div",{style:_.controls,className:"flexbox-fix"},r.default.createElement("div",{style:_.color},r.default.createElement("div",{style:_.swatch},r.default.createElement("div",{style:_.active}),r.default.createElement(l.Checkboard,{renderers:g}))),r.default.createElement("div",{style:_.toggles},r.default.createElement("div",{style:_.hue},r.default.createElement(l.Hue,{style:_.Hue,hsl:f,pointer:u.default,onChange:n})),r.default.createElement("div",{style:_.alpha},r.default.createElement(l.Alpha,{style:_.Alpha,rgb:d,hsl:f,pointer:u.default,renderers:g,onChange:n})))),r.default.createElement(s.default,{rgb:d,hsl:f,hex:h,onChange:n,disableAlpha:i})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),disableAlpha:i.default.bool,styles:i.default.object},f.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,l.ColorWrap)(f)},3535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(1)),o=u(n(760)),a=u(n(1808)),l=n(1154),s=u(n(3536));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=t.ChromeFields=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={view:""},r.toggleViews=function(){"hex"===r.state.view?r.setState({view:"rgb"}):"rgb"===r.state.view?r.setState({view:"hsl"}):"hsl"===r.state.view&&(1===r.props.hsl.a?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(e,t){e.hex?a.default.isValidHex(e.hex)&&r.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?r.props.onChange({r:e.r||r.props.rgb.r,g:e.g||r.props.rgb.g,b:e.b||r.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),r.props.onChange({h:e.h||r.props.hsl.h,s:Number(e.s&&e.s||r.props.hsl.s),l:Number(e.l&&e.l||r.props.hsl.l),source:"hsl"},t))},r.showHighlight=function(e){e.currentTarget.style.background="#eee"},r.hideHighlight=function(e){e.currentTarget.style.background="transparent"},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){1===this.props.hsl.a&&"hex"!==this.state.view?this.setState({view:"hex"}):"rgb"!==this.state.view&&"hsl"!==this.state.view&&this.setState({view:"rgb"})}},{key:"componentWillReceiveProps",value:function(e){1!==e.hsl.a&&"hex"===this.state.view&&this.setState({view:"rgb"})}},{key:"render",value:function(){var e=this,t=(0,o.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,i.default.createElement("div",{style:t.toggle},i.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.default.createElement(s.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}]),t}(i.default.Component);t.default=d},3537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointer=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},3538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointerCircle=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},3532:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=d(n(1)),i=d(n(2)),o=d(n(760)),a=d(n(1994)),l=d(n(1741)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3137)),u=n(1154),c=d(n(3533));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Circle=function(e){var t=e.width,n=e.onChange,i=e.onSwatchHover,s=e.colors,u=e.hex,d=e.circleSize,f=e.styles,p=void 0===f?{}:f,h=e.circleSpacing,g=e.className,m=void 0===g?"":g,b=(0,o.default)((0,l.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},p)),y=function(e,t){return n({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:b.card,className:"circle-picker "+m},(0,a.default)(s,(function(e){return r.default.createElement(c.default,{key:e,color:e,onClick:y,onSwatchHover:i,active:u===e.toLowerCase(),circleSize:d,circleSpacing:h})})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),circleSize:i.default.number,circleSpacing:i.default.number,styles:i.default.object},f.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[s.red[500],s.pink[500],s.purple[500],s.deepPurple[500],s.indigo[500],s.blue[500],s.lightBlue[500],s.cyan[500],s.teal[500],s.green[500],s.lightGreen[500],s.lime[500],s.yellow[500],s.amber[500],s.orange[500],s.deepOrange[500],s.brown[500],s.blueGrey[500]],styles:{}},t.default=(0,u.ColorWrap)(f)},3533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=l(n(1)),i=n(760),o=l(i),a=n(1154);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,l=e.hover,s=e.active,u=e.circleSize,c=e.circleSpacing,d=(0,o.default)({default:{swatch:{width:u,height:u,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+u/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:l,active:s});return r.default.createElement("div",{style:d.swatch},r.default.createElement(a.Swatch,{style:d.Swatch,color:t,onClick:n,onHover:i,focusStyle:{boxShadow:d.Swatch.boxShadow+", 0 0 5px "+t}}))};s.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,i.handleHover)(s)},3517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=c(o),l=c(n(760)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3518)),u=c(n(2680));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=t.Alpha=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=s.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,l.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:r({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return a.default.createElement("div",{style:n.alpha},a.default.createElement("div",{style:n.checkboard},a.default.createElement(u.default,{renderers:this.props.renderers})),a.default.createElement("div",{style:n.gradient}),a.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("div",{style:n.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:n.slider}))))}}]),t}(o.PureComponent||o.Component);t.default=f},2680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=a(n(1)),i=a(n(760)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3519));function a(e){return e&&e.__esModule?e:{default:e}}var l=t.Checkboard=function(e){var t=e.white,n=e.grey,a=e.size,l=e.renderers,s=e.borderRadius,u=e.boxShadow,c=(0,i.default)({default:{grid:{borderRadius:s,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+o.get(t,n,a,l.canvas)+") center left"}}});return r.default.createElement("div",{style:c.grid})};l.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=l},3135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=u(o),l=u(n(982)),s=u(n(1808));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(s.default.simpleCheckForValidColor(e)){var r=s.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(s.default.simpleCheckForValidColor(e)){var r=s.default.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=r({},s.default.toState(e.color,0)),t.debounce=(0,l.default)((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),i(n,[{key:"componentWillReceiveProps",value:function(e){this.setState(r({},s.default.toState(e.color,this.state.oldHue)))}},{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),a.default.createElement(e,r({},this.props,this.state,{onChange:this.handleChange},t))}}]),n}(o.PureComponent||o.Component);return t.propTypes=r({},e.propTypes),t.defaultProps=r({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=c},3520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=l(i),a=l(n(760));function l(e){return e&&e.__esModule?e:{default:e}}var s=[38,40],u=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,s.indexOf(t)>-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=null!==this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t);var r,i=function(e){return String(e).indexOf("%")>-1}(t.target.value);this.setState({value:i?(r=e,r+"%"):e})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.default.createElement("div",{style:t.wrap},o.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(i.PureComponent||i.Component);t.default=u},3521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=s(i),a=s(n(760)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3522));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=t.Hue=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=l.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,a.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.default.createElement("div",{style:r.hue},o.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),o.default.createElement("div",{style:r.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:r.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=c},3523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=l(n(1)),i=l(n(2)),o=l(n(760)),a=l(n(1741));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.Raised=function(e){var t=e.zDepth,n=e.radius,i=e.background,l=e.children,s=e.styles,u=void 0===s?{}:s,c=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},u),{"zDepth-1":1===t});return r.default.createElement("div",{style:c.wrap},r.default.createElement("div",{style:c.bg}),r.default.createElement("div",{style:c.content},l))};s.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},s.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=s},3524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=u(i),a=u(n(760)),l=u(n(2204)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3525));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,s.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,l.default)((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,l=t.pointer,s=t.circle,u=(0,a.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:l,circle:s}},{custom:!!this.props.style});return o.default.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),o.default.createElement("div",{style:u.white,className:"saturation-white"},o.default.createElement("div",{style:u.black,className:"saturation-black"}),o.default.createElement("div",{style:u.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:u.circle}))))}}]),t}(i.PureComponent||i.Component);t.default=c},3527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(1)),o=s(n(760)),a=n(3528),l=s(n(2680));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.Swatch=function(e){var t=e.color,n=e.style,a=e.onClick,s=void 0===a?function(){}:a,u=e.onHover,c=e.title,d=void 0===c?t:c,f=e.children,p=e.focus,h=e.focusStyle,g=void 0===h?{}:h,m="transparent"===t,b=(0,o.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,p?g:{})}}),y={};return u&&(y.onMouseOver=function(e){return u(t,e)}),i.default.createElement("div",r({style:b.swatch,onClick:function(e){return s(t,e)},title:d,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&s(t,e)}},y),f,m&&i.default.createElement(l.default,{borderRadius:b.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,a.handleFocus)(u)},1154:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3517);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return d(r).default}});var i=n(2680);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return d(i).default}});var o=n(3520);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return d(o).default}});var a=n(3521);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return d(a).default}});var l=n(3523);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return d(l).default}});var s=n(3524);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return d(s).default}});var u=n(3135);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return d(u).default}});var c=n(3527);function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return d(c).default}})},3539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var r=f(n(1)),i=f(n(2)),o=f(n(760)),a=f(n(1994)),l=f(n(1741)),s=f(n(1808)),u=n(1154),c=f(n(3540)),d=f(n(3541));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.colors,f=e.hex,p=e.rgb,h=e.styles,g=void 0===h?{}:h,m=e.className,b=void 0===m?"":m,y=(0,o.default)((0,l.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},g)),v=function(e,n){e.hex?s.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.default.createElement(u.Raised,{style:y.Compact,styles:g},r.default.createElement("div",{style:y.compact,className:"compact-picker "+b},r.default.createElement("div",null,(0,a.default)(i,(function(e){return r.default.createElement(c.default,{key:e,color:e,active:e.toLowerCase()===f,onClick:v,onSwatchHover:n})})),r.default.createElement("div",{style:y.clear})),r.default.createElement(d.default,{hex:f,rgb:p,onChange:v})))};p.propTypes={colors:i.default.arrayOf(i.default.string),styles:i.default.object},p.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},t.default=(0,u.ColorWrap)(p)},3540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var r=l(n(1)),i=l(n(760)),o=l(n(1808)),a=n(1154);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.CompactColor=function(e){var t=e.color,n=e.onClick,l=void 0===n?function(){}:n,s=e.onSwatchHover,u=e.active,c=(0,i.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:o.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:u,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{style:c.color,color:t,onClick:l,onHover:s,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:c.dot}))};t.default=s},3541:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var r=a(n(1)),i=a(n(760)),o=n(1154);function a(e){return e&&e.__esModule?e:{default:e}}var l=t.CompactFields=function(e){var t=e.hex,n=e.rgb,a=e.onChange,l=(0,i.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?a({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):a({hex:e.hex,source:"hex"},t)};return r.default.createElement("div",{style:l.fields,className:"flexbox-fix"},r.default.createElement("div",{style:l.active}),r.default.createElement(o.EditableInput,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:t,onChange:s}),r.default.createElement(o.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:s}),r.default.createElement(o.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:s}),r.default.createElement(o.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:s}))};t.default=l},3542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var r=c(n(1)),i=c(n(2)),o=c(n(760)),a=c(n(1994)),l=c(n(1741)),s=n(1154),u=c(n(3543));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Github=function(e){var t=e.width,n=e.colors,i=e.onChange,s=e.onSwatchHover,c=e.triangle,d=e.styles,f=void 0===d?{}:d,p=e.className,h=void 0===p?"":p,g=(0,o.default)((0,l.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},f),{"hide-triangle":"hide"===c,"top-left-triangle":"top-left"===c,"top-right-triangle":"top-right"===c,"bottom-left-triangle":"bottom-left"===c,"bottom-right-triangle":"bottom-right"===c}),m=function(e,t){return i({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:g.card,className:"github-picker "+h},r.default.createElement("div",{style:g.triangleShadow}),r.default.createElement("div",{style:g.triangle}),(0,a.default)(n,(function(e){return r.default.createElement(u.default,{color:e,key:e,onClick:m,onSwatchHover:s})})))};d.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:i.default.object},d.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},t.default=(0,s.ColorWrap)(d)},3543:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=l(n(1)),i=n(760),o=l(i),a=n(1154);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.GithubSwatch=function(e){var t=e.hover,n=e.color,i=e.onClick,l=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=(0,o.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return r.default.createElement("div",{style:u.swatch},r.default.createElement(a.Swatch,{color:n,onClick:i,onHover:l,focusStyle:s}))};t.default=(0,i.handleHover)(s)},3544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=c(n(1)),o=c(n(2)),a=c(n(760)),l=c(n(1741)),s=n(1154),u=c(n(3545));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.HuePicker=function(e){var t=e.width,n=e.height,o=e.onChange,u=e.hsl,c=e.direction,d=e.pointer,f=e.styles,p=void 0===f?{}:f,h=e.className,g=void 0===h?"":h,m=(0,a.default)((0,l.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},p));return i.default.createElement("div",{style:m.picker,className:"hue-picker "+g},i.default.createElement(s.Hue,r({},m.hue,{hsl:u,pointer:d,onChange:function(e){return o({a:1,h:e.h,l:.5,s:1})},direction:c})))};d.propTypes={styles:o.default.object},d.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:u.default,styles:{}},t.default=(0,s.ColorWrap)(d)},3545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},3546:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var r=s(n(1)),i=s(n(760)),o=s(n(1741)),a=s(n(1808)),l=n(1154);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.Material=function(e){var t=e.onChange,n=e.hex,s=e.rgb,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=(0,i.default)((0,o.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},c)),h=function(e,n){e.hex?a.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||s.r,g:e.g||s.g,b:e.b||s.b,source:"rgb"},n)};return r.default.createElement(l.Raised,{styles:c},r.default.createElement("div",{style:p.material,className:"material-picker "+f},r.default.createElement(l.EditableInput,{style:{wrap:p.HEXwrap,input:p.HEXinput,label:p.HEXlabel},label:"hex",value:n,onChange:h}),r.default.createElement("div",{style:p.split,className:"flexbox-fix"},r.default.createElement("div",{style:p.third},r.default.createElement(l.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"r",value:s.r,onChange:h})),r.default.createElement("div",{style:p.third},r.default.createElement(l.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"g",value:s.g,onChange:h})),r.default.createElement("div",{style:p.third},r.default.createElement(l.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"b",value:s.b,onChange:h})))))};t.default=(0,l.ColorWrap)(u)},3547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(1)),o=h(n(2)),a=h(n(760)),l=h(n(1741)),s=n(1154),u=h(n(3548)),c=h(n(3549)),d=h(n(3550)),f=h(n(3551)),p=h(n(3552));function h(e){return e&&e.__esModule?e:{default:e}}var g=t.Photoshop=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,o=void 0===r?"":r,h=(0,a.default)((0,l.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return i.default.createElement("div",{style:h.picker,className:"photoshop-picker "+o},i.default.createElement("div",{style:h.head},this.props.header),i.default.createElement("div",{style:h.body,className:"flexbox-fix"},i.default.createElement("div",{style:h.saturation},i.default.createElement(s.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:c.default,onChange:this.props.onChange})),i.default.createElement("div",{style:h.hue},i.default.createElement(s.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:d.default,onChange:this.props.onChange})),i.default.createElement("div",{style:h.controls},i.default.createElement("div",{style:h.top,className:"flexbox-fix"},i.default.createElement("div",{style:h.previews},i.default.createElement(p.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),i.default.createElement("div",{style:h.actions},i.default.createElement(f.default,{label:"OK",onClick:this.props.onAccept,active:!0}),i.default.createElement(f.default,{label:"Cancel",onClick:this.props.onCancel}),i.default.createElement(u.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(i.default.Component);g.propTypes={header:o.default.string,styles:o.default.object},g.defaultProps={header:"Color Picker",styles:{}},t.default=(0,s.ColorWrap)(g)},3551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopButton=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopButton=function(e){var t=e.onClick,n=e.label,o=e.children,a=e.active,l=(0,i.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.default.createElement("div",{style:l.button,onClick:t},n||o)};t.default=a},3548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=l(n(1)),i=l(n(760)),o=l(n(1808)),a=n(1154);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,l=e.hsv,s=e.hex,u=(0,i.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),c=function(e,r){e["#"]?o.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||l.h,s:e.s||l.s,v:e.v||l.v,source:"hsv"},r)};return r.default.createElement("div",{style:u.fields},r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"h",value:Math.round(l.h),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"s",value:Math.round(100*l.s),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"v",value:Math.round(100*l.v),onChange:c}),r.default.createElement("div",{style:u.divider}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:n.r,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:n.g,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:n.b,onChange:c}),r.default.createElement("div",{style:u.divider}),r.default.createElement(a.EditableInput,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"#",value:s.replace("#",""),onChange:c}),r.default.createElement("div",{style:u.fieldSymbols},r.default.createElement("div",{style:u.symbol},"°"),r.default.createElement("div",{style:u.symbol},"%"),r.default.createElement("div",{style:u.symbol},"%")))};t.default=s},3550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(){var e=(0,i.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.default.createElement("div",{style:e.pointer},r.default.createElement("div",{style:e.left},r.default.createElement("div",{style:e.leftInside})),r.default.createElement("div",{style:e.right},r.default.createElement("div",{style:e.rightInside})))};t.default=a},3549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.default.createElement("div",{style:n.picker})};t.default=a},3552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,o=(0,i.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.default.createElement("div",null,r.default.createElement("div",{style:o.label},"new"),r.default.createElement("div",{style:o.swatches},r.default.createElement("div",{style:o.new}),r.default.createElement("div",{style:o.current})),r.default.createElement("div",{style:o.label},"current"))};t.default=a},3553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=d(n(1)),o=d(n(2)),a=d(n(760)),l=d(n(1741)),s=n(1154),u=d(n(3554)),c=d(n(3555));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Sketch=function(e){var t=e.width,n=e.rgb,o=e.hex,d=e.hsv,f=e.hsl,p=e.onChange,h=e.onSwatchHover,g=e.disableAlpha,m=e.presetColors,b=e.renderers,y=e.styles,v=void 0===y?{}:y,_=e.className,E=void 0===_?"":_,w=(0,a.default)((0,l.default)({default:r({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},v),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},v),{disableAlpha:g});return i.default.createElement("div",{style:w.picker,className:"sketch-picker "+E},i.default.createElement("div",{style:w.saturation},i.default.createElement(s.Saturation,{style:w.Saturation,hsl:f,hsv:d,onChange:p})),i.default.createElement("div",{style:w.controls,className:"flexbox-fix"},i.default.createElement("div",{style:w.sliders},i.default.createElement("div",{style:w.hue},i.default.createElement(s.Hue,{style:w.Hue,hsl:f,onChange:p})),i.default.createElement("div",{style:w.alpha},i.default.createElement(s.Alpha,{style:w.Alpha,rgb:n,hsl:f,renderers:b,onChange:p}))),i.default.createElement("div",{style:w.color},i.default.createElement(s.Checkboard,null),i.default.createElement("div",{style:w.activeColor}))),i.default.createElement(u.default,{rgb:n,hsl:f,hex:o,onChange:p,disableAlpha:g}),i.default.createElement(c.default,{colors:m,onClick:p,onSwatchHover:h}))};f.propTypes={disableAlpha:o.default.bool,width:o.default.oneOfType([o.default.string,o.default.number]),styles:o.default.object},f.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,s.ColorWrap)(f)},3554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var r=l(n(1)),i=l(n(760)),o=l(n(1808)),a=n(1154);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,l=e.hsl,s=e.hex,u=e.disableAlpha,c=(0,i.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),d=function(e,r){e.hex?o.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:l.h,s:l.s,l:l.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{style:c.fields,className:"flexbox-fix"},r.default.createElement("div",{style:c.double},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"hex",value:s.replace("#",""),onChange:d})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.alpha},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"a",value:Math.round(100*n.a),onChange:d,dragLabel:"true",dragMax:"100"})))};t.default=s},3555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(1)),o=s(n(2)),a=s(n(760)),l=n(1154);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,o=void 0===n?function(){}:n,s=e.onSwatchHover,u=(0,a.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),c=function(e,t){o({hex:e,source:"hex"},t)};return i.default.createElement("div",{style:u.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return i.default.createElement("div",{key:n,style:u.swatchWrap},i.default.createElement(l.Swatch,r({},t,{style:u.swatch,onClick:c,onHover:s,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};u.propTypes={colors:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.shape({color:o.default.string,title:o.default.string})])).isRequired},t.default=u},3556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var r=c(n(1)),i=c(n(2)),o=c(n(760)),a=c(n(1741)),l=n(1154),s=c(n(3557)),u=c(n(3559));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Slider=function(e){var t=e.hsl,n=e.onChange,i=e.pointer,u=e.styles,c=void 0===u?{}:u,d=e.className,f=void 0===d?"":d,p=(0,o.default)((0,a.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},c));return r.default.createElement("div",{style:p.wrap||{},className:"slider-picker "+f},r.default.createElement("div",{style:p.hue},r.default.createElement(l.Hue,{style:p.Hue,hsl:t,pointer:i,onChange:n})),r.default.createElement("div",{style:p.swatches},r.default.createElement(s.default,{hsl:t,onClick:n})))};d.propTypes={styles:i.default.object},d.defaultProps={pointer:u.default,styles:{}},t.default=(0,l.ColorWrap)(d)},3559:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(){var e=(0,i.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},3558:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var r=o(n(1)),i=o(n(760));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,o=e.onClick,a=void 0===o?function(){}:o,l=e.active,s=e.first,u=e.last,c=(0,i.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:l,first:s,last:u});return r.default.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})};t.default=a},3557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var r=a(n(1)),i=a(n(760)),o=a(n(3558));function a(e){return e&&e.__esModule?e:{default:e}}var l=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,a=(0,i.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),l=.1;return r.default.createElement("div",{style:a.swatches},r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<l&&Math.abs(n.s-.5)<l,onClick:t,first:!0})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<l&&Math.abs(n.s-.5)<l,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<l&&Math.abs(n.s-.5)<l,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<l&&Math.abs(n.s-.5)<l,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<l&&Math.abs(n.s-.5)<l,onClick:t,last:!0})),r.default.createElement("div",{style:a.clear}))};t.default=l},3560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var r=f(n(1)),i=f(n(2)),o=f(n(760)),a=f(n(1994)),l=f(n(1741)),s=f(n(1808)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3137)),c=n(1154),d=f(n(3561));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Swatches=function(e){var t=e.width,n=e.height,i=e.onChange,u=e.onSwatchHover,f=e.colors,p=e.hex,h=e.styles,g=void 0===h?{}:h,m=e.className,b=void 0===m?"":m,y=(0,o.default)((0,l.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},g)),v=function(e,t){s.default.isValidHex(e)&&i({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:y.picker,className:"swatches-picker "+b},r.default.createElement(c.Raised,null,r.default.createElement("div",{style:y.overflow},r.default.createElement("div",{style:y.body},(0,a.default)(f,(function(e){return r.default.createElement(d.default,{key:e.toString(),group:e,active:p,onClick:v,onSwatchHover:u})})),r.default.createElement("div",{style:y.clear})))))};p.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.arrayOf(i.default.string)),styles:i.default.object},p.defaultProps={width:320,height:240,colors:[[u.red[900],u.red[700],u.red[500],u.red[300],u.red[100]],[u.pink[900],u.pink[700],u.pink[500],u.pink[300],u.pink[100]],[u.purple[900],u.purple[700],u.purple[500],u.purple[300],u.purple[100]],[u.deepPurple[900],u.deepPurple[700],u.deepPurple[500],u.deepPurple[300],u.deepPurple[100]],[u.indigo[900],u.indigo[700],u.indigo[500],u.indigo[300],u.indigo[100]],[u.blue[900],u.blue[700],u.blue[500],u.blue[300],u.blue[100]],[u.lightBlue[900],u.lightBlue[700],u.lightBlue[500],u.lightBlue[300],u.lightBlue[100]],[u.cyan[900],u.cyan[700],u.cyan[500],u.cyan[300],u.cyan[100]],[u.teal[900],u.teal[700],u.teal[500],u.teal[300],u.teal[100]],["#194D33",u.green[700],u.green[500],u.green[300],u.green[100]],[u.lightGreen[900],u.lightGreen[700],u.lightGreen[500],u.lightGreen[300],u.lightGreen[100]],[u.lime[900],u.lime[700],u.lime[500],u.lime[300],u.lime[100]],[u.yellow[900],u.yellow[700],u.yellow[500],u.yellow[300],u.yellow[100]],[u.amber[900],u.amber[700],u.amber[500],u.amber[300],u.amber[100]],[u.orange[900],u.orange[700],u.orange[500],u.orange[300],u.orange[100]],[u.deepOrange[900],u.deepOrange[700],u.deepOrange[500],u.deepOrange[300],u.deepOrange[100]],[u.brown[900],u.brown[700],u.brown[500],u.brown[300],u.brown[100]],[u.blueGrey[900],u.blueGrey[700],u.blueGrey[500],u.blueGrey[300],u.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},t.default=(0,c.ColorWrap)(p)},3562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var r=s(n(1)),i=s(n(760)),o=s(n(1808)),a=n(1154),l=s(n(3563));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,s=void 0===n?function(){}:n,u=e.onSwatchHover,c=e.first,d=e.last,f=e.active,p=(0,i.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:o.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:c,last:d,active:f,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{color:t,style:p.color,onClick:s,onHover:u,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:p.check},r.default.createElement(l.default,null)))};t.default=u},3561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var r=l(n(1)),i=l(n(760)),o=l(n(1994)),a=l(n(3562));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,l=e.group,s=e.active,u=(0,i.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.default.createElement("div",{style:u.group},(0,o.default)(l,(function(e,i){return r.default.createElement(a.default,{key:e,color:e,active:e.toLowerCase()===s,first:0===i,last:i===l.length-1,onClick:t,onSwatchHover:n})})))};t.default=s},3564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var r=c(n(1)),i=c(n(2)),o=c(n(760)),a=c(n(1994)),l=c(n(1741)),s=c(n(1808)),u=n(1154);function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,c=e.colors,d=e.width,f=e.triangle,p=e.styles,h=void 0===p?{}:p,g=e.className,m=void 0===g?"":g,b=(0,o.default)((0,l.default)({default:{card:{width:d,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},h),{"hide-triangle":"hide"===f,"top-left-triangle":"top-left"===f,"top-right-triangle":"top-right"===f}),y=function(e,n){s.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return r.default.createElement("div",{style:b.card,className:"twitter-picker "+m},r.default.createElement("div",{style:b.triangleShadow}),r.default.createElement("div",{style:b.triangle}),r.default.createElement("div",{style:b.body},(0,a.default)(c,(function(e,t){return r.default.createElement(u.Swatch,{key:t,color:e,hex:e,style:b.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:b.hash},"#"),r.default.createElement(u.EditableInput,{label:null,style:{input:b.input},value:i.replace("#",""),onChange:y}),r.default.createElement("div",{style:b.clear})))};d.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),triangle:i.default.oneOf(["hide","top-left","top-right"]),colors:i.default.arrayOf(i.default.string),styles:i.default.object},d.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},t.default=(0,u.ColorWrap)(d)},3518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(i.getBoundingClientRect().left+window.pageXOffset),c=s-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f=void 0;if(r!==(f=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}},3519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},r=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};t.get=function(e,t,i,o){var a=e+"-"+t+"-"+i+(o?"-server":"");if(n[a])return n[a];var l=r(e,t,i,o);return n[a]=l,l}},1808:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=o(n(3526)),i=o(n(2891));function o(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e};var a=t.toState=function(e,t){var n=e.hex?(0,i.default)(e.hex):(0,i.default)(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),l=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===l&&0===a.a?"transparent":"#"+l,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,i.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=a(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};t.default=t},3522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(u<0)c=359;else if(u>o)c=0;else{c=360*(-100*u/o+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"rgb"}}else{var d=void 0;if(s<0)d=0;else if(s>i)d=359;else{d=360*(100*s/i)/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"rgb"}}return null}},3528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),l=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n=s(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(o))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},s(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),o(r,[{key:"render",value:function(){return l.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},l.default.createElement(e,i({},this.props,this.state)))}}]),r}(l.default.Component)}},3525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>i?s=i:u<0?u=0:u>o&&(u=o);var c=100*s/i,d=-100*u/o+100;return{h:t.h,s:c,v:d,a:t.a,source:"rgb"}}},3509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var r=n(3510);Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return y(r).default}});var i=n(3530);Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return y(i).default}});var o=n(3532);Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return y(o).default}});var a=n(3534);Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return y(a).default}});var l=n(3539);Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return y(l).default}});var s=n(3542);Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return y(s).default}});var u=n(3544);Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return y(u).default}});var c=n(3546);Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return y(c).default}});var d=n(3547);Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return y(d).default}});var f=n(3553);Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return y(f).default}});var p=n(3556);Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return y(p).default}});var h=n(3560);Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return y(h).default}});var g=n(3564);Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return y(g).default}});var m=n(3135);Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return y(m).default}});var b=y(a);function y(e){return e&&e.__esModule?e:{default:e}}t.default=b.default},3595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var r=o(n(1)),i=o(n(2114));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}(this,d(t).call(this,e)),h(f(n),"onChange",(function(e){e.persist();var t=n.state.value,r=n.props.minLength;n.setState({value:e.target.value},(function(){var i=n.state.value;i.length>=r?n.notify(e):t.length>i.length&&n.notify(u({},e,{target:u({},e.target,{value:""})}))}))})),h(f(n),"onKeyDown",(function(e){"Enter"===e.key&&n.forceNotify(e);var t=n.props.onKeyDown;t&&(e.persist(),t(e))})),h(f(n),"onBlur",(function(e){n.forceNotify(e);var t=n.props.onBlur;t&&(e.persist(),t(e))})),h(f(n),"createNotifier",(function(e){if(e<0)n.notify=function(){return null};else if(0===e)n.notify=n.doNotify;else{var t=(0,i.default)((function(e){n.isDebouncing=!1,n.doNotify(e)}),e);n.notify=function(e){n.isDebouncing=!0,t(e)},n.flush=function(){return t.flush()},n.cancel=function(){n.isDebouncing=!1,t.cancel()}}})),h(f(n),"doNotify",(function(){n.props.onChange.apply(void 0,arguments)})),h(f(n),"forceNotify",(function(e){var t=n.props.debounceTimeout;if(n.isDebouncing||!(t>0)){n.cancel&&n.cancel();var r=n.state.value,i=n.props.minLength;r.length>=i?n.doNotify(e):n.doNotify(u({},e,{target:u({},e.target,{value:r})}))}})),n.isDebouncing=!1,n.state={value:e.value||""};var r=n.props.debounceTimeout;return n.createNotifier(r),n}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){if(!this.isDebouncing){var t=this.props,n=t.value,r=t.debounceTimeout,i=e.debounceTimeout,o=e.value,a=this.state.value;void 0!==n&&o!==n&&a!==n&&this.setState({value:n}),r!==i&&this.createNotifier(r)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var e,t,n=this.props,i=n.element,o=(n.onChange,n.value,n.minLength,n.debounceTimeout,n.forceNotifyByEnter),a=n.forceNotifyOnBlur,s=n.onKeyDown,c=n.onBlur,d=n.inputRef,f=l(n,["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"]),p=this.state.value;e=o?{onKeyDown:this.onKeyDown}:s?{onKeyDown:s}:{},t=a?{onBlur:this.onBlur}:c?{onBlur:c}:{};var h=d?{ref:d}:{};return r.default.createElement(i,u({},f,{onChange:this.onChange,value:p},e,{},t,{},h))}}])&&c(n.prototype,o),s&&c(n,s),t}(r.default.PureComponent);t.DebounceInput=g,h(g,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},3181:(e,t,n)=>{"use strict";var r=n(3595).DebounceInput;r.DebounceInput=r,e.exports=r},3513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=n(2424),o=(r=i)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,o.default)(e,(function(e,n){var r={};(0,o.default)(e,(function(e,t){var n=l[t];n?r=a({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=s},3515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return o=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return a.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},a.default.createElement(e,i({},s.props,s.state)))},l(s,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=s},3514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return o=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return a.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},a.default.createElement(e,i({},s.props,s.state)))},l(s,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=s},3511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=l(n(3133)),i=l(n(2424)),o=l(n(2659)),a=l(n(1994));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,o.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=s},760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=u(n(3511)),i=u(n(3512)),o=u(n(3513)),a=u(n(3514)),l=u(n(3515)),s=u(n(3516));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=l.default,t.loop=s.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var l=(0,r.default)(n),s=(0,i.default)(e,l);return(0,o.default)(s)};t.default=c},3516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},3512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(2424)),i=a(n(1311)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,r.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],i[t])})),t})),n};t.default=l},2177:e=>{"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,o,a,l;if("string"==typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(r(t,"type"))}return l+=". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},2240:(e,t,n)=>{"use strict";var r=n(107),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var o=n(2694),a=n(2697);n(433)(c,o);for(var l=i(a.prototype),s=0;s<l.length;s++){var u=l[s];c.prototype[u]||(c.prototype[u]=a.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3152:(e,t,n)=>{"use strict";e.exports=i;var r=n(2698);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(433)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},2694:(e,t,n)=>{"use strict";var r,i=n(107);e.exports=S,S.ReadableState=C;n(453).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(3147),l=n(788).Buffer,s=n.g.Uint8Array||function(){};var u,c=n(3570);u=c&&c.debuglog?c.debuglog("stream"):function(){};var d,f,p,h=n(3148),g=n(2695),m=n(2696).getHighWaterMark,b=n(2177).F,y=b.ERR_INVALID_ARG_TYPE,v=b.ERR_STREAM_PUSH_AFTER_EOF,_=b.ERR_METHOD_NOT_IMPLEMENTED,E=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(433)(S,a);var w=g.errorOrDestroy,A=["error","close","destroy","pause","resume"];function C(e,t,i){r=r||n(2240),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(3410).I),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(2240),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new C(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function O(e,t,n,r,i){u("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?x(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}(e,a);else if(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof s||"string"==typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(a,t)),o)w(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r)a.endEmitted?w(e,new E):T(e,a,t,!0);else if(a.ended)w(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?T(e,a,t,!1):k(e,a)):T(e,a,t,!1)}else r||(a.reading=!1,k(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function T(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),k(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),O(this,e,t,!1,n)},S.prototype.unshift=function(e){return O(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){d||(d=n(3410).I);var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var P=1073741824;function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(I,e))}function I(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function k(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(D,e,t))}function D(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(u("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){u("readable nexttick read 0"),e.read(0)}function F(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function B(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick($,t,e))}function $(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function W(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):x(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),t.ended||t.reading?u("reading or ended",i=!1):i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(n,t))),null===(r=e>0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){w(this,new _("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,u("pipe count=%d opts=%j",r.pipesCount,t);var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?s:m;function l(t,i){u("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),e.removeListener("close",h),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",l),n.removeListener("end",s),n.removeListener("end",m),n.removeListener("data",f),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function s(){u("onend"),e.end()}r.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",l);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",c);var d=!1;function f(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==W(r.pipes,e))&&!d&&(u("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(t){u("onerror",t),m(),e.removeListener("error",p),0===o(e,"error")&&w(e,t)}function h(){e.removeListener("finish",g),m()}function g(){u("onfinish"),e.removeListener("close",h),m()}function m(){u("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",h),e.once("finish",g),e.emit("pipe",n),r.flowing||(u("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u("on readable",r.length,r.reading),r.length?x(this):r.reading||i.nextTick(j,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(M,this),n},S.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(M,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(F,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){u("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(3150)),f(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=L,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(3151)),p(S,e,t)})},2698:(e,t,n)=>{"use strict";e.exports=c;var r=n(2177).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=r.ERR_TRANSFORM_WITH_LENGTH_0,s=n(2240);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);s.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,n){f(e,t,n)}))}function f(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new l;if(e._transformState.transforming)throw new a;return e.push(null)}n(433)(c,s),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,(function(e){t(e)}))}},2697:(e,t,n)=>{"use strict";var r,i=n(107);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=C;var a={deprecate:n(3149)},l=n(3147),s=n(788).Buffer,u=n.g.Uint8Array||function(){};var c,d=n(2695),f=n(2696).getHighWaterMark,p=n(2177).F,h=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,m=p.ERR_MULTIPLE_CALLBACK,b=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,_=p.ERR_STREAM_WRITE_AFTER_END,E=p.ERR_UNKNOWN_ENCODING,w=d.errorOrDestroy;function A(){}function C(e,t,a){r=r||n(2240),e=e||{},"boolean"!=typeof a&&(a=t instanceof r),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!=typeof o)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(I,e,t),e._writableState.errorEmitted=!0,w(e,r)):(o(r),e._writableState.errorEmitted=!0,w(e,r),I(e,t))}(e,n,r,t,o);else{var a=R(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||P(e,n),r?i.nextTick(T,e,n,a,o):T(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function S(e){var t=this instanceof(r=r||n(2240));if(!t&&!c.call(S,this))return new S(e);this._writableState=new C(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function O(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),I(e,t)}function P(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var l=0,s=!0;n;)i[l]=n,n.isBuf||(s=!1),n=n.next,l+=1;i.allBuffers=s,O(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(O(e,t,!1,t.objectMode?1:u.length,u,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(n){t.pendingcb--,n&&w(e,n),t.prefinished=!0,e.emit("prefinish"),I(e,t)}))}function I(e,t){var n=R(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(x,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(433)(S,l),C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===S&&(e&&e._writableState instanceof C)}})):c=function(e){return e instanceof this},S.prototype.pipe=function(){w(this,new b)},S.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,l=!o.objectMode&&(r=e,s.isBuffer(r)||r instanceof u);return l&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=A),o.ending?function(e,t){var n=new _;w(e,n),i.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var o;return null===n?o=new v:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(w(e,o),i.nextTick(r,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var l=t.objectMode?1:r.length;t.length+=l;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,l,r,i,o);return u}(this,o,l,e,t,n)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||P(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new g("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,I(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)}},3150:(e,t,n)=>{"use strict";var r,i=n(107);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(2426),l=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function g(e){var t=e[l];if(null!==t){var n=e[p].read();null!==n&&(e[d]=null,e[l]=null,e[s]=null,t(h(n,!1)))}}function m(e){i.nextTick(g,e)}var b=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((o(r={get stream(){return this[p]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[u]?n(e[u]):t(h(void 0,!0))}))}));var n,r=this[d];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(h(void 0,!0)):t[f](n,r)}),r)}}(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[d]=n,n}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),b);e.exports=function(e){var t,n=Object.create(y,(o(t={},p,{value:e,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[l]=null,n[s]=null,e(h(r,!1))):(n[l]=e,n[s]=t)},writable:!0}),t));return n[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[d]=null,n[l]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[l];null!==r&&(n[d]=null,n[l]=null,n[s]=null,r(h(void 0,!0))),n[c]=!0})),e.on("readable",m.bind(null,n)),n}},3148:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=n(788).Buffer,l=n(3571).inspect,s=l&&l.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,u;return t=e,n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,l=0;o;)t=o.data,n=i,r=l,a.prototype.copy.call(t,n,r),l+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:s,value:function(e,t){return l(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],n&&o(t.prototype,n),u&&o(t,u),e}()},2695:(e,t,n)=>{"use strict";var r=n(107);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,e)):r.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},2426:(e,t,n)=>{"use strict";var r=n(2177).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,l=n.writable||!1!==n.writable&&t.writable,s=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){l=!1,u=!0,a||o.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){a=!1,d=!0,l||o.call(t)},p=function(e){o.call(t,e)},h=function(){var e;return a&&!d?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):l&&!u?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},g=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?l&&!t._writableState&&(t.on("end",s),t.on("close",s)):(t.on("complete",c),t.on("abort",h),t.req?g():t.on("request",g)),t.on("end",f),t.on("finish",c),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",g),t.req&&t.req.removeListener("finish",c),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",p),t.removeListener("close",h)}}},3151:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},3153:(e,t,n)=>{"use strict";var r;var i=n(2177).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function s(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var c,d=function(e){return e.length?"function"!=typeof e[e.length-1]?l:e.pop():l}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var f=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var l=!1;e.on("close",(function(){l=!0})),void 0===r&&(r=n(2426)),r(e,{readable:t,writable:i},(function(e){if(e)return o(e);l=!0,o()}));var s=!1;return function(t){if(!l&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){c||(c=e),e&&f.forEach(s),o||(f.forEach(s),d(c))}))}));return t.reduce(u)}},2696:(e,t,n)=>{"use strict";var r=n(2177).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},3147:(e,t,n)=>{e.exports=n(453).EventEmitter},3410:(e,t,n)=>{"use strict";var r=n(2918).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=u,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(i=a(t[r]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3162:e=>{e.exports=function(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}},2918:(e,t,n)=>{var r=n(788),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},3140:(e,t,n)=>{var r=n(2161),i=n(145),o=n(3162);function a(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function l(e,t){return{}.hasOwnProperty.call(e,t)}function s(e,t,n){var c="";function d(e,t){var n=this;this.tag=e,this.attribs=t||{},this.tagPosition=c.length,this.text="",this.updateParentNodeText=function(){v.length&&(v[v.length-1].text+=n.text)}}t?(t=i(s.defaults,t)).parser?t.parser=i(u,t.parser):t.parser=u:(t=s.defaults).parser=u;var f,p,h=t.nonTextTags||["script","style","textarea"];t.allowedAttributes&&(f={},p={},a(t.allowedAttributes,(function(e,t){f[t]=[];var n=[];e.forEach((function(e){e.indexOf("*")>=0?n.push(o(e).replace(/\\\*/g,".*")):f[t].push(e)})),p[t]=new RegExp("^("+n.join("|")+")$")})));var g={};a(t.allowedClasses,(function(e,t){f&&(l(f,t)||(f[t]=[]),f[t].push("class")),g[t]=e}));var m,b={};a(t.transformTags,(function(e,t){var n;"function"==typeof e?n=e:"string"==typeof e&&(n=s.simpleTransform(e)),"*"===t?m=n:b[t]=n}));var y=0,v=[],_={},E={},w=!1,A=0,C=new r.Parser({onopentag:function(e,n){if(w)A++;else{var r=new d(e,n);v.push(r);var i,o=!1,s=!!r.text;l(b,e)&&(i=b[e](e,n),r.attribs=n=i.attribs,void 0!==i.text&&(r.innerText=i.text),e!==i.tagName&&(r.name=e=i.tagName,E[y]=i.tagName)),m&&(i=m(e,n),r.attribs=n=i.attribs,e!==i.tagName&&(r.name=e=i.tagName,E[y]=i.tagName)),t.allowedTags&&-1===t.allowedTags.indexOf(e)&&(o=!0,-1!==h.indexOf(e)&&(w=!0,A=1),_[y]=!0),y++,o||(c+="<"+e,(!f||l(f,e)||f["*"])&&a(n,(function(n,i){if(!f||l(f,e)&&-1!==f[e].indexOf(i)||f["*"]&&-1!==f["*"].indexOf(i)||l(p,e)&&p[e].test(i)||p["*"]&&p["*"].test(i)){if(("href"===i||"src"===i)&&function(e,n){var r=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<\!\-\-.*?\-\-\>/g,"")).match(/^([a-zA-Z]+)\:/);if(!r)return!1;var i=r[1].toLowerCase();if(l(t.allowedSchemesByTag,e))return-1===t.allowedSchemesByTag[e].indexOf(i);return!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}(e,n))return void delete r.attribs[i];if("class"===i&&!(n=function(e,t){if(!t)return e;return(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)})).join(" ")}(n,g[e])).length)return void delete r.attribs[i];c+=" "+i,n.length&&(c+='="'+S(n)+'"')}else delete r.attribs[i]})),-1!==t.selfClosing.indexOf(e)?c+=" />":(c+=">",!r.innerText||s||t.textFilter||(c+=r.innerText)))}},ontext:function(e){if(!w){var n,r=v[v.length-1];if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"script"===n||"style"===n)c+=e;else{var i=S(e);t.textFilter?c+=t.textFilter(i):c+=i}if(v.length)v[v.length-1].text+=e}},onclosetag:function(e){if(w){if(--A)return;w=!1}var n=v.pop();if(n){if(w=!1,y--,_[y])return delete _[y],void n.updateParentNodeText();E[y]&&(e=E[y],delete E[y]),t.exclusiveFilter&&t.exclusiveFilter(n)?c=c.substr(0,n.tagPosition):(n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)&&(c+="</"+e+">"))}}},t.parser);return C.write(e),C.end(),c;function S(e){return"string"!=typeof e&&(e+=""),e.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;")}}e.exports=s;var u={decodeEntities:!0};s.defaults={allowedTags:["h3","h4","h5","h6","blockquote","p","a","ul","ol","nl","li","b","i","strong","em","strike","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre"],allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{}},s.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){var o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},3146:(e,t,n)=>{e.exports=i;var r=n(453).EventEmitter;function i(){r.call(this)}n(433)(i,r),i.Readable=n(2694),i.Writable=n(2697),i.Duplex=n(2240),i.Transform=n(2698),i.PassThrough=n(3152),i.finished=n(2426),i.pipeline=n(3153),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",l),n.on("close",s));var a=!1;function l(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",l),n.removeListener("close",s),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},3573:(e,t,n)=>{var r=n(788).Buffer,i=r.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};var o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=l;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function l(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function s(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var i;r=(t+=e.toString(this.encoding,0,r)).length-1;if((i=t.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},3565:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3406),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3407),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3567:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3408),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3409),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3417),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3416),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(2861),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3411),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3412),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3592:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3413),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},1187:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(2618),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3415),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3180:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(2862),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(2860),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},3596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(59),i=n.n(r),o=n(60),a=n.n(o),l=n(61),s=n.n(l),u=n(62),c=n.n(u),d=n(63),f=n.n(d),p=n(64),h=n.n(p),g=n(3414),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f();i()(g.A,m);const b=g.A&&g.A.locals?g.A.locals:void 0},2550:(e,t,n)=>{var r=n(107);Object.assign&&Map||n(2551);var i=n(453).EventEmitter,o=n(378),a=new i,l={},s=!1,u=new Map,c=n.g.setImmediate||r.nextTick;function d(e){if(!(this instanceof d))return new d(e);this.called=0,this.now=this.calledAt=Date.now(),u.set(this,e),e.isRunnable=!0,e.later=this.now+e.time,l[e.later]||(l[e.later]=[]),l[e.later].push(this)}function f(e){u.set(this,[]),this.add(e)}o.inherits(d,i),d.deriveOp=function(e,t){return"task"!==t?t:e},d.prototype.stop=function(){u.get(this).isRunnable=!1,this.emit("stop")},o.inherits(f,i),f.prototype.stop=function(){u.get(this).forEach((function(e){e.stop()})),this.emit("stop")},f.prototype.add=function(e){var t,n,r,i,o,l=this;for(this.cumulative=this.cumulative||0,o=u.get(this);e.length;)n=e.shift(),t=Object.keys(n).reduce(d.deriveOp,""),this.cumulative+=n[t],0===e.length&&(r=n.task,n.task=function(e){r.call(l,e),l.emit("end",e),l.cumulative=0}),i="loop"===t&&0===e.length?a.delay(this.cumulative-n[t],(function(){i=a.loop(n[t],n.task),o.push(i)})):a[t](this.cumulative,n.task),o.push(i)},a.queue=function(e){var t=new f(e);return h(),t};var p=Date.now();function h(){s||(s=!0,a.emit("busy"));var e,t,n,r=Object.keys(l),i=r.length&&+r[r.length-1],o=Date.now(),d=[],f=!0;for(i<=o&&(f=!1),n=p;n<=o;n++)[].push.apply(d,l[n]||[]);if(d.length){for(;d.length;)t=d.shift(),(e=u.get(t)).isRunnable&&(t.called++,t.calledAt=o,e.task.call(t,t)),"loop"===e.type&&e.isRunnable&&(f=!0,e.later=o+e.time,l[e.later]||(l[e.later]=[]),e.isRunnable&&l[e.later].push(t));for(n=p;n<=o;n++)delete l[n];d.length=0}p=o,f?c(h):(s=!1,a.emit("idle"))}["loop","delay"].forEach((function(e){a[e]=function(t,n){"function"==typeof t&&(n=t,t=10);var r=new d({time:t,type:e,task:n});return s||h(),r}})),a.wait=a.defer=a.delay,a.repeat=function(e,t,n){return a.loop(t,(function(t){n(t),t.called===e&&this.stop()}))},a.clear=function(){s=!1,a.removeAllListeners(),l={}},e.exports=a},2891:(e,t,n)=>{var r;!function(i){var o=/^\s+/,a=/\s+$/,l=0,s=i.round,u=i.min,c=i.max,d=i.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=G.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=G.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=G.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=G.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=G.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=G.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=G.hex8.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),a:B(t[4]),format:n?"name":"hex8"};if(t=G.hex6.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),format:n?"name":"hex"};if(t=G.hex4.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),a:B(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=G.hex3.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(V(e.r)&&V(e.g)&&V(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*D(p,255),g:255*D(h,255),b:255*D(g,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):V(e.h)&&V(e.s)&&V(e.v)?(r=N(e.s),l=N(e.v),t=function(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),l=n*(1-o*t),s=n*(1-(1-o)*t),u=r%6,c=[n,l,a,a,s,n][u],d=[s,n,n,l,a,a][u],f=[a,a,s,n,n,l][u];return{r:255*c,g:255*d,b:255*f}}(e.h,r,l),d=!0,f="hsv"):V(e.h)&&V(e.s)&&V(e.l)&&(r=N(e.s),s=N(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=i=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=a(s,l,e+1/3),i=a(s,l,e),o=a(s,l,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,g;return n=k(n),{ok:d,format:e.format||f,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=l++}function p(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,i,o=c(e,t,n),a=u(e,t,n),l=(o+a)/2;if(o==a)r=i=0;else{var s=o-a;switch(i=l>.5?s/(2-o-a):s/(o+a),o){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:i,l}}function h(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,i,o=c(e,t,n),a=u(e,t,n),l=o,s=o-a;if(i=0===o?0:s/o,o==a)r=0;else{switch(o){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:i,v:l}}function g(e,t,n,r){var i=[F(s(e).toString(16)),F(s(t).toString(16)),F(s(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function m(e,t,n,r){return[F(L(r)),F(s(e).toString(16)),F(s(t).toString(16)),F(s(n).toString(16))].join("")}function b(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=M(n.s),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=M(n.s),f(n)}function v(e){return f(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=M(n.l),f(n)}function E(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=c(0,u(255,n.r-s(-t/100*255))),n.g=c(0,u(255,n.g-s(-t/100*255))),n.b=c(0,u(255,n.b-s(-t/100*255))),f(n)}function w(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=M(n.l),f(n)}function A(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function C(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function S(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function O(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function T(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function P(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),i=360/n,o=[f(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(f(r));return o}function R(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],l=1/t;t--;)a.push(f({h:r,s:i,v:o})),o=(o+l)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=k(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[F(s(e).toString(16)),F(s(t).toString(16)),F(s(n).toString(16)),F(L(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*D(this._r,255))+"%",g:s(100*D(this._g,255))+"%",b:s(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*D(this._r,255))+"%, "+s(100*D(this._g,255))+"%, "+s(100*D(this._b,255))+"%)":"rgba("+s(100*D(this._r,255))+"%, "+s(100*D(this._g,255))+"%, "+s(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:N(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,o=f.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(e,t,n){var r,i,o,a,l=null,s=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=f.readability(e,t[u]))>s&&(s=r,l=f(t[u]));return f.isReadable(e,l,{level:o,size:a})||!i?l:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var x=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function k(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return u(1,c(0,e))}function j(e){return parseInt(e,16)}function F(e){return 1==e.length?"0"+e:""+e}function N(e){return e<=1&&(e=100*e+"%"),e}function L(e){return i.round(255*parseFloat(e)).toString(16)}function B(e){return j(e)/255}var $,W,U,G=(W="[\\s|\\(]+("+($="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",U="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},3149:(e,t,n)=>{function r(e){try{if(!n.g.localStorage)return!1}catch(r){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},3183:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA6QAAAFGCAYAAAB9rFJ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA2lSURBVHgB7dzbbuLauoXRMYyh3v9h50182jFT7JUVcZXxQ19RtSahpG67sM2HnerHpwYAAABvNjUAAAAIEKQAAABECFIAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgAhBCgAAQIQgBQAAIEKQAgAAECFIAQAAiBCkAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACImLdtawAAAPBu7pACAAAQMU+TJgUAAOD95t57AwAAgHdzexQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgAhBCgAAQIQgBQAAIEKQAgAAECFIAQAAiBCkAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACIEKQAAABECFIAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgAhBCgAAQIQgBQAAIEKQAgAAECFIAQAAiBCkAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACIEKQAAABECFIAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgAhBCgAAQIQgBQAAIEKQAgAAECFIAQAAiBCkAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACImPd9bwAAAPBu83EcDQAAAN5t7r03AABIOm+SuFEyZpr8NR6/z+yNCwBA2rIszZ+S/dz5md7nen4j71oAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABH9+NQAACBo3/fGmGlyr4nfR5ACAAAQMTcAAAhzj2Rc773BbyNIAQCIW9fVY7sDzsd1r9drg9/Gg+YAAABECFIAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACLmBgAAYdPkPskI+/Fb9eNTAwAAgDdzhxRggO/06vTeG/D3cj4d5zz6Ot6fdb6/TwUpwIB1Xdu+740x58Xpdrs14O/lfDrmfGT3er02XmNZFlFa4Nn13sPmAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACIEKQAAABECFIAAAAi5gbAj/Xe2zT5bg9glPPpmHM/Xufc18av0Y9PDQAAAN7M11AAAABEeGQXYMCyLM2DJuPOx6Cu12sD/l7rurZ93xs/8/U86tpUw6b1nl3vBSnAIBcogHHnudT59Oe+/n2jLWvY9D08sgsAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgAhBCgAAQMTcABjSe2+MsSFwngecC2rYsZ5NazzbsR+fGgAAALyZR3YBAACI8MguwIB1XZsHTWpcr9cG/L22bWv7vjd+5nwUcp7//Wjv2lTDpq/x/XovSAEGnBcnH6DG+dsc4DyXOp/+3DT958HHc0fxNM6m9Z5d7z2yCwAAQIQgBQAAIEKQAgAAECFIAQAAiBCkAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACImPd9bwD8TO+9TZPv9iq4HsHfzbl0zHk9epxHzy2P42iMselrfL/e93VdLQsAAMDbzWf5A/Az7urVcXeE3+S8U+JuSY3HsW/TcY8tXZvq2LTe9+v97AMAwM9t2+YiVeD8cnSe5wa/xbIsjv0il8vlfg6w6ZjzM/3jc/26ruK+gE3rPbveq1EAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABFzA+DHpsn3ehV67w1+E8d+PZuO+brfeU51Xh1n03rPNuzHpwYAAABv5qsoAAAAIjyyCzBgWZa273tjzPkIz+12a/BbOPbrnMf+eQ6w6Zjz8dLr9Xr//ePjo3kIcpxN63293j+OeXdIAQAAiBCkAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACIEKQAAABEzA2AH+u9t2ny3R78bRz79Ww65tzv6+9f/83P2PS1Hsd8Pz41AAAAeDNfQwEAABDhkd1i27bdX4y7Xq8ejeB/3rIszYMm485j/TzmTzatc7vdGq+xrmvb970x7nG9t+kY59F6Nq33bFNBWuwc1ZsV/i6O+Xo25X+d6309m475+iW+LWvY9PXOTT2yCwAAQIQgBQAAIEKQAgAAECFIAQAAiBCkAAAARAhSAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgoh+fGgAAALyZO6QAAABEzOu6NsZdLpfWe2/btjU3nWvYtMa54bnlyZY1bFrPpq8xz3PjNbxP67je1/h6HvX5voZN6z273s/nL4x7DHuOatMaNq3x9cDf9/3+YoxN69n0NQTp63if1nHs15im6b+2FPfjbFrv2fXeI7sAAABECFIAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACL6vu9HY1jv/f7zOMxZxaZ1bFnPpvVsWu+xKfW8T+s49uvYsp5N633ftB/WBQAAIGBe17Ux7nK53Gv/847z/cU4m9Y4Nzy3PG3b5hu+AjatZ9PXmOe58RquTXVc72s4j9azab1nm87nL4x7DHueSG1aw6Y1vh74LvY1bFrPpq8hSF/nvC55n9b4+uHUpj83TZN4KmbTes+u9/5TIwAAACIEKQAAABGCFAAAgAhBCgAAQIQgBQAAIEKQAgAAECFIAQAAiBCkAAAARAhSAAAAIgQpAAAAEX1ZlqMxbJr+bfvjOO4vxtm0ji3r2bSeTes9NqWe92kdx36dx5b7vjdq2LTe92O+r+vqyAcAAODtZt9E1fDtXj2b1vHtXj2b1rNpPXdIX8e1qY7rfR3n0Xo2rfd903nbtsa4y+XSeu/t845zs2kNm9Y4N5zn+f77uaMT6jib1rPpazw2pd6yLN6nRR7Xe5uOOT/kPz7on5+dxP04m9Z7dr331SkAAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgIj5crk06kyTxq9m0zG99////dzy67/5GZvWsym/zfn5yfu0lk3HfN3u3PI4jsYYm9Z7dr3vh2UBAAAImPVojUft27OOTevYsp5N69m0nrtNr+N9WsexX8eW9Wxa7/um88fHR2Pc7Xa7j7tt2/3FOJvWODc8tzyt69r2fW+MsWk9m77Gnz9/Gq/hfVrncb236Zjz8cfr9Xr/fVkWAVXApvWeXe/9cR4AAAARghQAAIAIQQoAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgAhBCgAAQIQgBQAAIEKQAgAAENGPTw0AAADezB1SAAAAIuZ1XRvjLpdL6723bduam841bFrj3PDc8mTLGjatZ9PXmOf5/tOmdWxaz/W+xtfzqM/3NWxa79n1fj5/Ydxj2HNUm9awaY2vB/6+7/cXY2xaz6av8Ygnm9axaT3Hfo1pmv5rS3E/zqb1nl3vPbILAABAhCAFAAAgQpACAAAQIUgBAACIEKQAAABECFIAAAAiBCkAAAARghQAAIAIQQoAAECEIAUAACCib9t2NIZN079tfxzH/cU4m9bovd9fp33fG+NsWs+mr/E4j9q0jk3r2bSG82g9m9Z7tmk/fNIHAAAgYFb7NR61725eHZvW8e1zPZvWs2k9m9azab3H9d6m47w/69m03vdN52VZGuNut9v957Zt9xfjbFrjvMh/3dIJdZxN69n0Nf78+XP/adM6Nq3n2K9xfsh/fNBf19WX+QVsWu/Z9d5/agQAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACIEKQAAABGCFAAAgAhBCgAAQIQgBQAAIKJv23Y0hvXe76/jOO4vxtm0zjT9+93Tvu+NGjatZ9N6Nq1n03qP671Nx3l/1rNpve+b9sMnfQAAAAJmPVrncTePOjatce54smUdm9azaT2b1rPpa7je1/D+rGfTet83nT8+Phrjbrfb/ee2bfcX42xa4zzoH1uu6+qRkwI2rWfT1/jz58/9p03r2LSeY7/G+Rjk9Xq9/74si4AqYNN6z673/lMjAAAAIgQpAAAAEYIUAACACEEKAABAhCAFAAAgQpACAAAQIUgBAACIEKQAAABECFIAAAAiBCkAAAAR877vjXHLsrTeezv3tGkNm9Y4Nzy3PG3b1o7jaIyxaT2bvsZjU+fROjat53pf4+t589zReXScTes9u973f/75x7IAAAC83XxWKgAAALxbP9x7BgAAIMB/agQAAECEIAUAACBCkAIAABAhSAEAAIgQpAAAAEQIUgAAACL+D8TO4a8DGWkLAAAAAElFTkSuQmCC"},3584:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595nL7vtWO6YXP4EjSRUzZUXlpqemS0TMzAwOl89k/fcQ/+PAOWnNycMsnJ/AF/GF6FVR6JQJhIlou4U8gViQLmQKhH/V4X8YNicHGX6daxRodV8AfYU5ULhJB8hvPQBDIwMkbj96An3rWxAxCsi+vGitka9zjzJ6/uf6Hwtcim7hTEEiU+b2DI9kciWiLBmj34RswQISkAd0oAo0gS4wAixgDRyAM3AD3iAAhIBIEAOWAy5IAmlABLJBPtgACkEx2AF2g2pwANSBetAEToI2cAZcBFfADXALDIBHQAqGwUswAd6BaQiC8BAVokGqkBakD5lC1hAbWgh5Q0FQOBQDxUOJkBCSQPnQJqgYKoOqoUNQPfQjdBq6CF2D+qAH0CA0Bv0BfYQRmALTYQ3YALaA2bA7HAhHwsvgRHgVnAcXwNvhSrgWPg63whfhG/AALIVfwpMIQMgIA9FGWAgb8URCkFgkAREha5EipAKpRZqQDqQbuY1IkXHkAwaHoWGYGBbGGeOHWYzhYlZh1mJKMNWYY5hWTBfmNmYQM4H5gqVi1bGmWCesP3YJNhGbjS3EVmCPYFuwl7ED2GHsOxwOx8AZ4hxwfrgYXDJuNa4Etw/XjLuA68MN4SbxeLwq3hTvgg/Bc/BifCG+Cn8cfx7fjx/GvyeQCVoEa4IPIZYgJGwkVBAaCOcI/YQRwjRRgahPdCKGEHnEXGIpsY7YQbxJHCZOkxRJhiQXUiQpmbSBVElqIl0mPSa9IZPJOmRHchhZQF5PriSfIF8lD5I/UJQoJhRPShxFQtlOOUq5QHlAeUOlUg2obtRYqpi6nVpPvUR9Sn0vR5Mzl/OX48mtk6uRa5Xrl3slT5TXl3eXXy6fJ18hf0r+pvy4AlHBQMFTgaOwVqFG4bTCPYVJRZqilWKIYppiiWKD4jXFUSW8koGStxJPqUDpsNIlpSEaQtOledK4tE20Otpl2jAdRzek+9OT6cX0H+i99AllJWVb5SjlHOUa5bPKUgbCMGD4M1IZpYyTjLuMj/M05rnP48/bNq9pXv+8KZX5Km4qfJUilWaVAZWPqkxVb9UU1Z2qbapP1DBqJmphatlq+9Uuq43Pp893ns+dXzT/5PyH6rC6iXq4+mr1w+o96pMamhq+GhkaVRqXNMY1GZpumsma5ZrnNMe0aFoLtQRa5VrntV4wlZnuzFRmJbOLOaGtru2nLdE+pN2rPa1jqLNYZ6NOs84TXZIuWzdBt1y3U3dCT0svWC9fr1HvoT5Rn62fpL9Hv1t/ysDQINpgi0GbwaihiqG/YZ5ho+FjI6qRq9Eqo1qjO8Y4Y7ZxivE+41smsImdSZJJjclNU9jU3lRgus+0zwxr5mgmNKs1u8eisNxZWaxG1qA5wzzIfKN5m/krCz2LWIudFt0WXyztLFMt6ywfWSlZBVhttOqw+sPaxJprXWN9x4Zq42Ozzqbd5rWtqS3fdr/tfTuaXbDdFrtOu8/2DvYi+yb7MQc9h3iHvQ732HR2KLuEfdUR6+jhuM7xjOMHJ3snsdNJp9+dWc4pzg3OowsMF/AX1C0YctFx4bgccpEuZC6MX3hwodRV25XjWuv6zE3Xjed2xG3E3dg92f24+ysPSw+RR4vHlKeT5xrPC16Il69XkVevt5L3Yu9q76c+Oj6JPo0+E752vqt9L/hh/QL9dvrd89fw5/rX+08EOASsCegKpARGBFYHPgsyCRIFdQTDwQHBu4IfL9JfJFzUFgJC/EN2hTwJNQxdFfpzGC4sNKwm7Hm4VXh+eHcELWJFREPEu0iPyNLIR4uNFksWd0bJR8VF1UdNRXtFl0VLl1gsWbPkRoxajCCmPRYfGxV7JHZyqffS3UuH4+ziCuPuLjNclrPs2nK15anLz66QX8FZcSoeGx8d3xD/iRPCqeVMrvRfuXflBNeTu4f7kufGK+eN8V34ZfyRBJeEsoTRRJfEXYljSa5JFUnjAk9BteB1sl/ygeSplJCUoykzqdGpzWmEtPi000IlYYqwK10zPSe9L8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/KUcwR5vTkmuRuyx3J88n7fjVmNXd1Z752/ob8wTXuaw6thdauXNu5Tnddwbrh9b7rj20gbUjZ8MtGy41lG99uit7UUaBRsL5gaLPv5sZCuUJR4b0tzlsObMVsFWzt3WazrWrblyJe0fViy+KK4k8l3JLr31l9V/ndzPaE7b2l9qX7d+B2CHfc3em681iZYlle2dCu4F2t5czyovK3u1fsvlZhW3FgD2mPZI+0MqiyvUqvakfVp+qk6oEaj5rmvep7t+2d2sfb17/fbX/TAY0DxQc+HhQcvH/I91BrrUFtxWHc4azDz+ui6rq/Z39ff0TtSPGRz0eFR6XHwo911TvU1zeoN5Q2wo2SxrHjccdv/eD1Q3sTq+lQM6O5+AQ4ITnx4sf4H++eDDzZeYp9qukn/Z/2ttBailqh1tzWibakNml7THvf6YDTnR3OHS0/m/989Iz2mZqzymdLz5HOFZybOZ93fvJCxoXxi4kXhzpXdD66tOTSna6wrt7LgZevXvG5cqnbvfv8VZerZ645XTt9nX297Yb9jdYeu56WX+x+aem172296XCz/ZbjrY6+BX3n+l37L972un3ljv+dGwOLBvruLr57/17cPel93v3RB6kPXj/Mejj9aP1j7OOiJwpPKp6qP6391fjXZqm99Oyg12DPs4hnj4a4Qy//lfmvT8MFz6nPK0a0RupHrUfPjPmM3Xqx9MXwy4yX0+OFvyn+tveV0auffnf7vWdiycTwa9HrmT9K3qi+OfrW9m3nZOjk03dp76anit6rvj/2gf2h+2P0x5Hp7E/4T5WfjT93fAn88ngmbWbm3/eE8/syOll+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAEJGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+NTwvdGlmZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+NDg8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjQ4PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6QmFnLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxNS0wNC0xNVQwODowNDo0OTwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjMuMTwveG1wOkNyZWF0b3JUb29sPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KL6HD6wAAAd1JREFUaAXtWdtNxDAQPCgAykC0goREH3wgWkGiAZpAFADUwKMJ4Bu4GelW8seuX7HjtZSVVk4cnz2znszdJbvdFlsFtgp4r8AJAN4g35DP3sGG+M5wcof8Rv4f8gOt6zgGugvkI/IPSeBsfw/Ht2hdhsjkHeik2j84vkdeIUmC56dIV6HJ5BMIWWkBSxmRFMm4CEsmT0B3ieR1Ce4M7wHuwLl0jmpjMrHA0X1YfZIbFjky0cBxJ+Se4M6sGiUysYDRjVh93hOhrKzxTfprZGItTCslgVWss1YmFnjO1906W8jEItDVOlvKRCPQzTpby0QDz76m1tlTJhoBrtfEOnvLRAPPvsXWuZZMLAJV1rm2TCzw1db5ghn5hdEzc/5JVVsnJ+8JXua2Ks/+btYZWzT3Wg6BptaZCyx3XIpAM+vMBVQ6LkVgsXWWAiodnyJQZZ2lIJaMjxGotk4BRP2NjGssfoR8QH6NBBJb29oB19YZErIIuLbOFAH31pki4N46UwTcW2eMwGLrDCcfYaNTWGdYpNCFprFOi8A01qkRmMo6NQJTWadGYCrr1Ah0f9YZLtryWFyIrZvXRCUEhYCL10QlwGWsEBj6mkjA1LRCYPXXRDVgtc/wudMrssvPlj3Tywe+mbhW3wAAAABJRU5ErkJggg=="},34:e=>{"use strict";e.exports=$},3165:()=>{},3166:()=>{},3572:()=>{},3571:()=>{},3570:()=>{},3171:()=>{},3569:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},2690:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ﬃ","fflig":"ﬀ","ffllig":"ﬄ","Ffr":"𝔉","ffr":"𝔣","filig":"ﬁ","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"ﬂ","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"Ĳ","ijlig":"ĳ","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ŉ","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},3141:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},2691:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},e=>{var t=t=>e(e.s=t);e.O(0,[1,2,3],(()=>(t(355),t(137),t(4978))));e.O()}]);
//# sourceMappingURL=applabwp465ddfd41e3c91c8131f.min.js.map
;
