!function(e){function r(r){for(var n,u,l=r[0],a=r[1],f=r[2],p=0,s=[];p<l.length;p++)u=l[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(r);s.length;)s.shift()();return i.push.apply(i,f||[]),t()}function t(){for(var e,r=0;r<i.length;r++){for(var t=i[r],n=!0,l=1;l<t.length;l++){var a=t[l];0!==o[a]&&(n=!1)}n&&(i.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},i=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/dist/";var l=window.webpackJsonp=window.webpackJsonp||[],a=l.push.bind(l);l.push=r,l=l.slice();for(var f=0;f<l.length;f++)r(l[f]);var c=a;i.push([116,0]),t()}({116:function(e,r,t){"use strict";function n(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,o=!1,i=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e,r,t,n,o,i,u){try{var l=e[i](u),a=l.value}catch(e){return void t(e)}l.done?r(a):Promise.resolve(a).then(n,o)}function i(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var u=e.apply(r,t);function l(e){o(u,n,i,l,a,"next",e)}function a(e){o(u,n,i,l,a,"throw",e)}l(void 0)})}}var u=t(2),l=t(0),a=(0,t(4).promisify)(t(5).js),f=CloudCmd.log,c=t(14).ajax,p=t(15),s=t(1),d=l(function(e,r){var t=r.url,n=r.filename,o=u.with(e,n);c({url:t,responseType:"arraybuffer",success:o})});function y(){return(y=i(function*(){return Promise.all([p.get("modules"),a("//api.filepicker.io/v2/filepicker.js")])})).apply(this,arguments)}CloudCmd.Cloud=e.exports,e.exports.init=i(function*(){var e=n(yield function(){return y.apply(this,arguments)}(),1)[0].data.FilePicker.key;filepicker.setKey(e),s.hide()}),e.exports.uploadFile=function(e,r){filepicker.store(r,{mimetype:"",filename:e},function(e){filepicker.exportFile(e,f,f)})},e.exports.saveFile=function(e){filepicker.pick(d(e))}}});
//# sourceMappingURL=cloud.js.map