{"version":3,"sources":["webpack:///./node_modules/@babel/runtime/regenerator/index.js","webpack:///./app/javascript/src/capabilities/mobile.js","webpack:///./app/javascript/packs/capabilities-mobile.js","webpack:///./node_modules/regenerator-runtime/runtime.js"],"names":["module","exports","CapabilitiesMobile","this","addHandlers","selectedOs","document","querySelector","selectedElement","devices","simulatorsLoaded","showCode","addEventListener","e","querySelectorAll","forEach","dropdownMenu","style","display","dropdownOSButton","openDropdownOS","passive","link","onClickOS","dropdownBrowserButton","openDropdownDevice","capabilitiesGroup","onClickDevice","example","onExampleClick","stopPropagation","clickedElement","currentTarget","choice","getAttribute","div","classList","add","remove","containerName","contains","element","a","preventDefault","loadSimulators","innerHTML","selectedOsDataContainer","newEl","loadDevices","showDevices","id","target","tagName","parentNode","Promise","resolve","reject","fetch","then","response","text","data","error","window","deviceFilterPlatform","filter","device","platform_name","length","ctx","JSON","parse","console","renderDevices","map","classNames","available","browserName","name","test_environment","version","img","join","elements","call","RegExp","test","textContent","elementStr","html","indexOf","jsonField","deviceName","platformName","replace","platform","code","cloneNode","platformElement","Array","from","pop","browserElement","handleQuotes","toUpperCase","deviceNameElement","platformNameElement","versionField","isJSON","substring","processJSON","deviceNameElementFound","platformNameElementFound","i","versionElement","includes","browserNewElement","capabilitiesMobile","runtime","undefined","Op","Object","prototype","hasOwn","hasOwnProperty","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","obj","key","value","defineProperty","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","_invoke","state","GenStateSuspendedStart","method","arg","GenStateExecuting","Error","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","type","done","GenStateSuspendedYield","makeInvokeMethod","fn","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","invoke","result","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","displayName","isGeneratorFunction","genFun","ctor","constructor","mark","setPrototypeOf","__proto__","awrap","async","iter","keys","object","reverse","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","globalThis","Function"],"mappings":"+ZAAAA,EAAOC,QAAU,EAAQ,I,iiBCAJC,E,WACpB,c,4FAAgB,CAAD,QACdC,KAAKC,cAELD,KAAKE,WAAaC,SAASC,cAAc,wBACzCJ,KAAKK,gBAAkBF,SAASC,cAAc,2BAC9CJ,KAAKM,QAAU,GACfN,KAAKO,kBAAmB,EACxBP,KAAKQ,W,uDAGN,WAAgB,IAAD,OACdL,SAASM,iBAAiB,SAAS,SAAUC,GACtBP,SAASQ,iBAAiB,oBAClCC,SAAQ,SAACC,GACtBA,EAAaC,MAAMC,QAAU,aAI/B,IAAMC,EAAmBb,SAASC,cAAc,sBAC5CY,IACHA,EAAiBP,iBAAiB,SAAS,SAAAC,GAAC,OAAI,EAAKO,eAAeP,MACpEM,EAAiBP,iBAAiB,cAAc,SAAAC,GAAC,OAAI,EAAKO,eAAeP,KAAI,CAAEQ,SAAS,KAGzEf,SAASQ,iBAAiB,gBAClCC,SAAQ,SAACO,GAChBA,EAAKV,iBAAiB,SAAS,SAAAC,GAAC,OAAI,EAAKU,UAAUV,SAGpD,IAAMW,EAAwBlB,SAASC,cAAc,2BACrDiB,EAAsBZ,iBAAiB,SAAS,SAAAC,GAAC,OAAI,EAAKY,mBAAmBZ,MAC7EW,EAAsBZ,iBAAiB,cAAc,SAAAC,GAAC,OAAI,EAAKY,mBAAmBZ,KAAI,CAAEQ,SAAS,IA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T8E,OAAQ,SAASvC,GACf,IAAK,IAAI3F,EAAI9G,KAAK2M,WAAW1I,OAAS,EAAG6C,GAAK,IAAKA,EAAG,CACpD,IAAIwF,EAAQtM,KAAK2M,WAAW7F,GAC5B,GAAIwF,EAAMG,aAAeA,EAGvB,OAFAzM,KAAK+O,SAASzC,EAAMQ,WAAYR,EAAMI,UACtCG,EAAcP,GACPpC,IAKb,MAAS,SAASqC,GAChB,IAAK,IAAIzF,EAAI9G,KAAK2M,WAAW1I,OAAS,EAAG6C,GAAK,IAAKA,EAAG,CACpD,IAAIwF,EAAQtM,KAAK2M,WAAW7F,GAC5B,GAAIwF,EAAMC,SAAWA,EAAQ,CAC3B,IAAIhC,EAAS+B,EAAMQ,WACnB,GAAoB,UAAhBvC,EAAOE,KAAkB,CAC3B,IAAIwE,EAAS1E,EAAOb,IACpBmD,EAAcP,GAEhB,OAAO2C,GAMX,MAAM,IAAIrF,MAAM,0BAGlBsF,cAAe,SAASlC,EAAUf,EAAYE,GAa5C,OAZAnM,KAAK+J,SAAW,CACdlC,SAAUuD,EAAO4B,GACjBf,WAAYA,EACZE,QAASA,GAGS,SAAhBnM,KAAKyJ,SAGPzJ,KAAK0J,IAAMtC,GAGN8C,IAQJpK,EA9sBK,CAqtBiBD,EAAOC,SAGtC,IACEqP,mBAAqBhI,EACrB,MAAOiI,GAWmB,kBAAfC,WACTA,WAAWF,mBAAqBhI,EAEhCmI,SAAS,IAAK,yBAAdA,CAAwCnI,M","file":"js/capabilities-mobile-4f6c5c6c30749d9569bc.chunk.js","sourcesContent":["module.exports = require(\"regenerator-runtime\");\n","export default class CapabilitiesMobile {\n\tconstructor () {\n\t\tthis.addHandlers()\n\n\t\tthis.selectedOs = document.querySelector('ul.drop-os a.default')\n\t\tthis.selectedElement = document.querySelector('#capabilities_group > a')\n\t\tthis.devices = []\n\t\tthis.simulatorsLoaded = false\n\t\tthis.showCode()\n\t}\n\n\taddHandlers () {\n\t\tdocument.addEventListener('click', function (e) {\n\t\t\tconst dropdownMenus = document.querySelectorAll('ul.dropdown-menu')\n\t\t\tdropdownMenus.forEach((dropdownMenu) => {\n\t\t\t\tdropdownMenu.style.display = 'none'\n\t\t\t})\n\t\t})\n\n\t\tconst dropdownOSButton = document.querySelector('button.dropdown-os')\n\t\tif (dropdownOSButton) {\n\t\t\tdropdownOSButton.addEventListener('click', e => this.openDropdownOS(e))\n\t\t\tdropdownOSButton.addEventListener('touchstart', e => this.openDropdownOS(e), { passive: true })\n\t\t}\n\n\t\tconst osLinks = document.querySelectorAll('ul.drop-os a')\n\t\tosLinks.forEach((link) => {\n\t\t\tlink.addEventListener('click', e => this.onClickOS(e))\n\t\t})\n\n\t\tconst dropdownBrowserButton = document.querySelector('button.dropdown-browser')\n\t\tdropdownBrowserButton.addEventListener('click', e => this.openDropdownDevice(e))\n\t\tdropdownBrowserButton.addEventListener('touchstart', e => this.openDropdownDevice(e), { passive: true })\n\n\t\tconst capabilitiesGroup = document.querySelector('#capabilities_group')\n\t\tcapabilitiesGroup.addEventListener('click', e => this.onClickDevice(e))\n\t\tcapabilitiesGroup.addEventListener('touchstart', e => this.onClickDevice(e), { passive: true })\n\t\tconst dropdownMenu = document.querySelector('.dropdown-menu.drop-browser')\n\t\tdropdownMenu.addEventListener('click', e => this.onClickDevice(e))\n\t\tdropdownMenu.addEventListener('touchstart', e => this.onClickDevice(e), { passive: true })\n\n\t\tconst examples = document.querySelectorAll('#examples li a')\n\t\texamples.forEach((example) => {\n\t\t\texample.addEventListener('click', e => this.onExampleClick(e))\n\t\t\texample.addEventListener('touchstart', e => this.onExampleClick(e), { passive: true })\n\t\t})\n\t}\n\n\tonExampleClick (e) {\n\t\te.stopPropagation()\n\t\tconst clickedElement = e.currentTarget\n\t\tconst choice = clickedElement.getAttribute('data-type')\n\n\t\tconst exampleDivs = document.querySelectorAll('div.codeExamples div.example')\n\t\texampleDivs.forEach(function (div) {\n\t\t\tdiv.classList.add('hide')\n\t\t})\n\t\tdocument.querySelector('div.codeExamples div.' + choice).classList.remove('hide')\n\n\t\tconst exampleLinks = document.querySelectorAll('#examples li a')\n\t\texampleLinks.forEach(function (link) {\n\t\t\tlink.classList.remove('selected')\n\t\t})\n\t\tclickedElement.classList.add('selected')\n\t}\n\n\topenDropdownOS (e) {\n\t\te.stopPropagation()\n\t\tconst clickedElement = e.currentTarget\n\n\t\tconst containerName = clickedElement.getAttribute('data-container')\n\t\tconst dropdownMenus = document.querySelectorAll('ul.dropdown-menu')\n\n\t\tdropdownMenus.forEach(function (dropdownMenu) {\n\t\t\tif (!dropdownMenu.classList.contains(containerName)) {\n\t\t\t\tdropdownMenu.style.display = 'none'\n\t\t\t}\n\t\t})\n\n\t\tconst element = document.querySelector('ul.' + containerName)\n\t\tif (element) {\n\t\t\tif (element.style.display === 'none') {\n\t\t\t\telement.style.display = 'block'\n\t\t\t} else {\n\t\t\t\telement.style.display = 'none'\n\t\t\t}\n\t\t}\n\t}\n\n\tasync onClickOS (e) {\n\t\te.stopPropagation()\n\t\te.preventDefault()\n\t\tconst clickedElement = e.currentTarget\n\n\t\tif (!this.simulatorsLoaded) {\n\t\t\tawait this.loadSimulators()\n\t\t}\n\n\t\tthis.selectedOs.classList.remove('selected')\n\t\tthis.selectedOs = clickedElement\n\t\tclickedElement.classList.add('selected')\n\n\t\tdocument.querySelector('button span.osName').innerHTML = clickedElement.innerHTML\n\t\tconst dropdownMenus = document.querySelectorAll('ul.dropdown-menu')\n\t\tdropdownMenus.forEach(function (dropdownMenu) {\n\t\t\tdropdownMenu.style.display = 'none'\n\t\t})\n\t\tconst selectedOsDataContainer = this.selectedOs.getAttribute('data-container')\n\n\t\tif (!document.querySelector('#' + this.selectedOs.getAttribute('data-container') + \" a[data-internal='\" + this.selectedElement.getAttribute('data-internal') + \"']\")) {\n\t\t\tconst newEl = document.querySelector('#' + selectedOsDataContainer + ' a')\n\t\t\tif (this.selectedElement !== null) {\n\t\t\t\tthis.selectedElement.classList.remove('selected')\n\t\t\t}\n\t\t\tif (newEl !== null) {\n\t\t\t\tthis.selectedElement = newEl\n\t\t\t\tthis.selectedElement.classList.add('selected')\n\t\t\t\tdocument.querySelector('.browserName').innerHTML = newEl.innerHTML\n\t\t\t}\n\t\t}\n\n\t\tif (this.selectedOs.getAttribute('data-container') !== 'realDeviceList') {\n\t\t\tthis.showCode()\n\t\t} else {\n\t\t\tthis.loadDevices()\n\t\t\tdocument.querySelector('.browserName').innerHTML = 'Please select a Real Device'\n\t\t}\n\t}\n\n\tasync openDropdownDevice (e) {\n\t\te.stopPropagation()\n\t\tif (this.selectedOs.getAttribute('data-container') === 'realDeviceList') {\n\t\t\tthis.showDevices()\n\t\t}\n\n\t\tif (!this.simulatorsLoaded) {\n\t\t\tawait this.loadSimulators()\n\t\t}\n\n\t\tconst containerName = this.selectedOs.getAttribute('data-container')\n\t\tconst dropdownMenus = document.querySelectorAll('ul.dropdown-menu')\n\t\tdropdownMenus.forEach(function (dropdownMenu) {\n\t\t\tif (dropdownMenu.id !== containerName) {\n\t\t\t\tdropdownMenu.style.display = 'none'\n\t\t\t}\n\t\t})\n\t\tconst element = document.querySelector('#' + containerName)\n\t\tif (element) {\n\t\t\tif (element.style.display === 'none') {\n\t\t\t\telement.style.display = 'block'\n\t\t\t} else {\n\t\t\t\telement.style.display = 'none'\n\t\t\t}\n\t\t}\n\t}\n\n\tonClickDevice (e) {\n\t\te.preventDefault()\n\t\tlet clickedElement = e.target\n\t\twhile (clickedElement && clickedElement.tagName !== 'A') {\n\t\t\tclickedElement = clickedElement.parentNode\n\t\t}\n\n\t\tthis.selectedElement.classList.remove('selected')\n\t\tconst dropdownMenus = document.querySelectorAll('ul.dropdown-menu')\n\t\tdropdownMenus.forEach(function (dropdownMenu) {\n\t\t\tdropdownMenu.style.display = 'none'\n\t\t})\n\t\tdocument.querySelector('.browserName').innerHTML = clickedElement.querySelector('span').innerHTML\n\t\tthis.selectedElement = clickedElement\n\t\tclickedElement.classList.add('selected')\n\t\tthis.showCode()\n\t}\n\n\tasync loadSimulators () {\n\t\tthis.simulatorsLoaded = true\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tfetch('/support/capabilities_mobile')\n\t\t\t\t.then(response => response.text())\n\t\t\t\t.then(data => {\n\t\t\t\t\tconst capabilitiesGroup = document.querySelector('#capabilities_group')\n\t\t\t\t\tcapabilitiesGroup.innerHTML = data\n\t\t\t\t\tcapabilitiesGroup.style.display = 'block'\n\t\t\t\t\tresolve()\n\t\t\t\t})\n\t\t\t\t.catch(error => reject(error))\n\t\t})\n\t}\n\n\tfilter (devices) {\n\t\tif (!window.deviceFilterPlatform) {\n\t\t\treturn devices\n\t\t}\n\n\t\treturn devices.filter(device => {\n\t\t\treturn device.platform_name === window.deviceFilterPlatform\n\t\t})\n\t}\n\n\tloadDevices () {\n\t\tif (this.devices.length > 0) {\n\t\t\treturn\n\t\t}\n\n\t\tconst ctx = this\n\t\tfetch('/api/v1/devices?web=1')\n\t\t\t.then(response => response.text())\n\t\t\t.then(data => {\n\t\t\t\tctx.devices = ctx.filter(JSON.parse(data))\n\t\t\t})\n\t\t\t.catch(error => console.error(error))\n\t}\n\n\tshowDevices () {\n\t\tconst ctx = this\n\t\tif (this.devices.length === 0) {\n\t\t\tfetch('/api/v1/devices?web=1')\n\t\t\t\t.then(response => response.text())\n\t\t\t\t.then(data => {\n\t\t\t\t\tctx.devices = ctx.filter(JSON.parse(data))\n\t\t\t\t\tctx.showDevices()\n\t\t\t\t})\n\t\t\t\t.catch(error => console.error(error))\n\t\t\treturn\n\t\t}\n\n\t\tthis.renderDevices(this.devices)\n\t}\n\n\trenderDevices (devices) {\n\t\tconst Item = (device) => {\n\t\t\tconst classNames = device.available ? 'available' : 'unavailable'\n\t\t\tconst browserName = device.platform_name === 'Android' ? 'chrome' : 'safari'\n\t\t\treturn `
  • \n\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t${device.name}\n\t\t\t\t\t\t\t
    version: ${device.test_environment.version}
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t
    \n\t\t\t
  • `\n\t\t}\n\n\t\tdocument.querySelector('#realDeviceList').innerHTML = devices.map(Item).join('')\n\t}\n\n\tcontains (elements, text) {\n\t\treturn [].filter.call(elements, function (element) {\n\t\t\treturn RegExp(text).test(element.textContent)\n\t\t})\n\t}\n\n\thandleQuotes (element, elementStr) {\n\t\tif (element.length > 0 && element.html().indexOf(\"'\") > -1) {\n\t\t\telementStr = \"'\" + elementStr + \"'\"\n\t\t} else if (element.length > 0 && element.html().indexOf('\"') > -1) {\n\t\t\telementStr = '\"' + elementStr + '\"'\n\t\t}\n\n\t\treturn elementStr\n\t}\n\n\tprocessJSON (jsonField) {\n\t\tconst element = this.selectedElement\n\t\tlet browserName = element.getAttribute('data-name')\n\t\tif (browserName === 'iexplore') {\n\t\t\tbrowserName = 'internet explorer'\n\t\t} else if (browserName === 'googlechrome') {\n\t\t\tbrowserName = 'chrome'\n\t\t}\n\t\tlet version = element.getAttribute('data-version')\n\t\tconst deviceName = element.getAttribute('data-deviceName')\n\t\tconst platformName = element.getAttribute('data-platformName')\n\n\t\tif (version === '0') {\n\t\t\tversion = ''\n\t\t}\n\n\t\tjsonField.innerHTML = jsonField.innerHTML.replace('%version%', version).replace('%deviceName%', deviceName).replace('%platformName%', platformName)\n\t}\n\n\tshowCode () {\n\t\tconst element = this.selectedElement\n\t\tlet platform = this.selectedOs.getAttribute('data-platform')\n\t\tlet browserName = element.getAttribute('data-name')\n\t\tif (browserName === 'iexplore') {\n\t\t\tbrowserName = 'internet explorer'\n\t\t} else if (browserName === 'googlechrome') {\n\t\t\tbrowserName = 'chrome'\n\t\t}\n\t\tlet version = element.getAttribute('data-version')\n\t\tlet deviceName = element.getAttribute('data-deviceName')\n\t\tlet platformName = element.getAttribute('data-platformName')\n\n\t\tif (version === '0') {\n\t\t\tversion = ''\n\t\t}\n\n\t\tlet template\n\n\t\tif (document.querySelector('#capTemplateMobile') || document.querySelector('#capTemplate')) {\n\t\t\tif (element.getAttribute('data-real')) {\n\t\t\t\ttemplate = document.querySelector('#capTemplateRealMobile')\n\t\t\t} else if (element.getAttribute('data-deviceName')) {\n\t\t\t\ttemplate = document.querySelector('#capTemplateMobile')\n\t\t\t} else {\n\t\t\t\ttemplate = document.querySelector('#capTemplate')\n\t\t\t}\n\n\t\t\tconst code = template.cloneNode(true)\n\t\t\tlet platformElement = Array.from(this.contains(code.querySelectorAll('*'), '%platform%')).pop()\n\t\t\tlet browserElement = Array.from(this.contains(code.querySelectorAll('*'), '%browser%')).pop()\n\n\t\t\tif (platformElement) {\n\t\t\t\tplatform = this.handleQuotes(platformElement, platform)\n\t\t\t}\n\t\t\tif (browserElement) {\n\t\t\t\tbrowserName = this.handleQuotes(browserElement, browserName)\n\t\t\t}\n\n\t\t\tif (platformElement && platformElement.length > 0 && platformElement.tagName.toUpperCase() === 'CODE') {\n\t\t\t\tplatformElement.innerHTML = platformElement.innerHTML.replace('%platform%', platform)\n\t\t\t\tbrowserElement.innerHTML = browserElement.innerHTML.replace('%browser%', browserName)\n\t\t\t\tArray.from(this.contains(code.querySelectorAll('*'), '%version%')).pop().innerHTML = Array.from(this.contains(code.querySelectorAll('*'), '%version%')).pop().innerHTML.replace('%version%', version)\n\t\t\t\tif (element.getAttribute('data-deviceName')) {\n\t\t\t\t\tconst deviceNameElement = Array.from(this.contains(code.querySelectorAll('*'), '%deviceName%')).pop()\n\t\t\t\t\tif (deviceNameElement) {\n\t\t\t\t\t\tdeviceName = this.handleQuotes(deviceNameElement, deviceName)\n\t\t\t\t\t\tdeviceNameElement.innerHTML = deviceNameElement.innerHTML.replace('%deviceName%', deviceName)\n\t\t\t\t\t}\n\t\t\t\t\tconst platformNameElement = Array.from(this.contains(code.querySelectorAll('*'), '%platformName%')).pop()\n\t\t\t\t\tif (platformNameElement) {\n\t\t\t\t\t\tplatformName = this.handleQuotes(platformNameElement, platformName)\n\t\t\t\t\t\tplatformNameElement.innerHTML = platformNameElement.innerHTML.replace('%platformName%', platformName)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tplatformElement = Array.from(this.contains(code.querySelectorAll('*'), '%platform%')).pop()\n\t\t\t\tif (platformElement) {\n\t\t\t\t\tplatformElement.innerHTML = platform\n\t\t\t\t}\n\t\t\t\tbrowserElement = Array.from(this.contains(code.querySelectorAll('*'), '%browser%')).pop()\n\t\t\t\tif (browserElement) {\n\t\t\t\t\tbrowserElement.innerHTML = browserName\n\t\t\t\t}\n\t\t\t\tconst versionField = Array.from(this.contains(code.querySelectorAll('*'), '%version%')).pop()\n\t\t\t\tlet isJSON = false\n\t\t\t\tif (versionField.innerHTML.substring(1, 2) === '{') {\n\t\t\t\t\tisJSON = true\n\t\t\t\t\tthis.processJSON(versionField)\n\t\t\t\t} else {\n\t\t\t\t\tversionField.innerHTML = version\n\t\t\t\t}\n\n\t\t\t\tif (element.getAttribute('data-deviceName') && !isJSON) {\n\t\t\t\t\tconst deviceNameElementFound = Array.from(this.contains(code.querySelectorAll('*'), '%deviceName%')).pop()\n\t\t\t\t\tif (deviceNameElementFound) {\n\t\t\t\t\t\tdeviceName = this.handleQuotes(deviceNameElementFound, deviceName)\n\t\t\t\t\t\tdeviceNameElementFound.innerHTML = deviceName\n\t\t\t\t\t}\n\n\t\t\t\t\tconst platformNameElementFound = Array.from(this.contains(code.querySelectorAll('*'), '%platformName%')).pop()\n\t\t\t\t\tif (platformNameElementFound) {\n\t\t\t\t\t\tplatformName = this.handleQuotes(platformNameElementFound, platformName)\n\t\t\t\t\t\tplatformNameElementFound.innerHTML = platformName\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdocument.querySelector('#capCode').innerHTML = code.innerHTML\n\t\t}\n\n\t\tconst elements = document.querySelectorAll('div.codeExamples div.example')\n\t\tfor (let i = 0; i < elements.length; i++) {\n\t\t\tlet platform = this.selectedOs.getAttribute('data-platform')\n\t\t\tlet browserName = element.getAttribute('data-name')\n\t\t\tif (browserName === 'iexplore') {\n\t\t\t\tbrowserName = 'internet explorer'\n\t\t\t} else if (browserName === 'googlechrome') {\n\t\t\t\tbrowserName = 'chrome'\n\t\t\t}\n\t\t\tlet version = element.getAttribute('data-version')\n\t\t\tlet deviceName = element.getAttribute('data-deviceName')\n\t\t\tlet platformName = element.getAttribute('data-platformName')\n\n\t\t\tlet code = elements[i].querySelector('.template').cloneNode(true)\n\t\t\tif (element.getAttribute('data-real')) {\n\t\t\t\tcode = elements[i].querySelector('.templateReal').cloneNode(true)\n\t\t\t}\n\n\t\t\tconst platformElement = Array.from(this.contains(code.querySelectorAll('*'), '%platform%')).pop()\n\t\t\tconst browserElement = Array.from(this.contains(code.querySelectorAll('*'), '%browserName%')).pop()\n\t\t\tconst versionElement = Array.from(this.contains(code.querySelectorAll('*'), '%version%')).pop()\n\t\t\tconst deviceNameElement = Array.from(this.contains(code.querySelectorAll('*'), '%deviceName%')).pop()\n\t\t\tconst platformNameElement = Array.from(this.contains(code.querySelectorAll('*'), '%platformName%')).pop()\n\n\t\t\tif (browserElement && browserElement.innerHTML.includes(\"'\") && !browserName.includes(\"'\")) {\n\t\t\t\tbrowserName = \"'\" + browserName + \"'\"\n\t\t\t} else if (browserElement && browserElement.innerHTML.includes('\"') && !browserName.includes(\"'\")) {\n\t\t\t\tbrowserName = '\"' + browserName + '\"'\n\t\t\t}\n\n\t\t\tif (platformElement && platformElement.innerHTML.includes(\"'\") && !platform.includes(\"'\")) {\n\t\t\t\tplatform = \"'\" + platform + \"'\"\n\t\t\t} else if (platformElement && platformElement.innerHTML.includes('\"') && !platform.includes(\"'\")) {\n\t\t\t\tplatform = '\"' + platform + '\"'\n\t\t\t}\n\n\t\t\tif (versionElement && versionElement.innerHTML.includes(\"'\") && !version.includes(\"'\")) {\n\t\t\t\tversion = \"'\" + version + \"'\"\n\t\t\t} else if (versionElement && versionElement.innerHTML.includes('\"') && !version.includes(\"'\")) {\n\t\t\t\tversion = '\"' + version + '\"'\n\t\t\t}\n\n\t\t\tif (deviceNameElement && deviceNameElement.innerHTML.includes(\"'\") && !deviceName.includes(\"'\")) {\n\t\t\t\tdeviceName = \"'\" + deviceName + \"'\"\n\t\t\t} else if (deviceNameElement && deviceNameElement.innerHTML.includes('\"') && !deviceName.includes(\"'\")) {\n\t\t\t\tdeviceName = '\"' + deviceName + '\"'\n\t\t\t}\n\n\t\t\tif (platformNameElement && platformNameElement.innerHTML.includes(\"'\") && !platformName.includes(\"'\")) {\n\t\t\t\tplatformName = \"'\" + platformName + \"'\"\n\t\t\t} else if (platformNameElement && platformNameElement.innerHTML.includes('\"') && !platformName.includes(\"'\")) {\n\t\t\t\tplatformName = '\"' + platformName + '\"'\n\t\t\t}\n\n\t\t\tif (platform === 'real') {\n\t\t\t\tplatform = platformName\n\t\t\t} else if (platform === '\"real\"') {\n\t\t\t\tplatform = `\"${platformName}\"`\n\t\t\t}\n\n\t\t\tplatformElement.innerHTML = platform\n\t\t\tbrowserElement.innerHTML = browserName\n\t\t\tconst browserNewElement = Array.from(this.contains(code.querySelectorAll('*'), '%browser%')).pop()\n\t\t\tif (browserNewElement) {\n\t\t\t\tbrowserNewElement.innerHTML = browserName\n\t\t\t}\n\t\t\tversionElement.innerHTML = version\n\n\t\t\tif (element.getAttribute('data-deviceName')) {\n\t\t\t\tdeviceNameElement.innerHTML = deviceName\n\t\t\t\tplatformNameElement.innerHTML = platformName\n\t\t\t}\n\n\t\t\telements[i].querySelector('div.output').innerHTML = code.innerHTML\n\t\t}\n\t}\n}\n","import CapabilitiesMobile from './../src/capabilities/mobile.js'\nwindow.capabilitiesMobile = new CapabilitiesMobile()\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = GeneratorFunctionPrototype;\n define(Gp, \"constructor\", GeneratorFunctionPrototype);\n define(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction);\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n });\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(Gp, \"toString\", function() {\n return \"[object Generator]\";\n });\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, in modern engines\n // we can explicitly access globalThis. In older engines we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n"],"sourceRoot":""}