-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathmain.js
22 lines (22 loc) · 172 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}([function(e,t,n){"use strict";e.exports=n(31)},function(e,t,n){"use strict";n.r(t),n.d(t,"StipoPrimaryButton",function(){return o}),n.d(t,"StipoSuccessButton",function(){return a}),n.d(t,"StipoErrorButton",function(){return i}),n.d(t,"StipoHollowButton",function(){return l});const r=n(0),o=(n(51),e=>r.createElement("button",{"uxp-variant":"cta",onClick:t=>e.onClick(),disabled:e.disabled},e.value)),a=e=>r.createElement("button",{"uxp-variant":"primary",onClick:()=>e.onClick()},e.value),i=e=>r.createElement("button",{"uxp-variant":"warning",onClick:()=>e.onClick()},e.value),l=e=>r.createElement("button",{"uxp-variant":"secondary",onClick:()=>e.onClick(),disabled:e.disabled},e.value)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(44)},function(e,t,n){"use strict";n.r(t);const r=n(17),o=n(26),a=n(36).default,{generateID:i}=n(37),l=n(70);class s{constructor(){return s.instance||(this.componentsEntities={},this.components=[],s.instance=this),s.instance}async loadCachedComponentsDB(){this.componentsEntities=await r.getComponentsDB()}async loadCachedComponents(){this.components=await r.getComponents()}async init(){this.loadCachedComponentsDB()}async getComponentScenegraph(e,t){if(!e)return l.getComponent(t);try{return{status:200,body:{scenegraph:(await r.getComponent(t,!1,!0)).scenegraph}}}catch(e){return{status:500,error:e}}}getComponentCounts(){return Object.keys(this.componentsEntities).length}async getComponents(e,t){return e?(await this.loadCachedComponents(),{status:200,body:{data:this.components}}):l.listComponents(t)}_canAddFreeComponent(){return!0}async addComponentToLibrary(e,t){try{const{data:n,owner:o,shareWith:a,scenegraph:s,rendition:u}=await this._generateComponentBodyFromData(t);if(e){const e=i();return console.log(e),await r.updateComponentLocally(e,{data:n,owner:o,shareWith:a,scenegraph:s,rendition:u}),this.componentsEntities[e]={id:e,owner:o,data:n,shareWith:a},{status:200}}{const e=JSON.stringify(s),t=await l.uploadComponent({data:n,owner:o,shareWith:a,scenegraph:e,rendition:u});if(201==t.status){const{id:e}=t.body;return this.componentsEntities[e]={id:e,data:n},{status:200}}{const{code:e,message:n}=t.error;throw{error:{code:e,message:n}}}}}catch(e){return console.log("Catched error",e),e}}async removeComponentFromLibrary(e,t){e||await l.deleteComponent(t);try{await r.deleteComponent(t)}catch(e){}return delete this.componentsEntities[t],this.components.length&&(this.components=this.components.filter(e=>e.data.id!==t)),!0}async updateComponent(e,t,n){await r.updateComponentLocally(t,n);const o=Object.assign({id:t},n);return this.componentsEntities[t]=o,this.components.length&&(this.components=this.components.filter(e=>e.data.id!==t),this.components.push(o)),{status:200}}async _generateComponentBodyFromData(e){let t;return e.selection&&(t=await this._getBase64RenditionFromSelection(e.selection)),new a(null,e.data,e.scenegraph,t).getBody()}async _getBase64RenditionFromSelection(e){const t=await r.getTemporaryFile(),n=[{node:e.items[0],outputFile:t,type:o.RenditionType.PNG,scale:1}];try{await o.createRenditions(n);const e=await r.readAsBase64(t);return r.deleteFile(t),e}catch(e){console.log("failed base rendition creation",e)}}}var u=new s;const c=n(17),{login:d}=n(18);class p{constructor(){return p.instance||(p.instance=this,this.logged=!1,this._credentials={},this._latestCredentials={},this._userData={}),p.instance}async init(){try{const e=await c.readSettings();if(this._latestCredentials=e.latestCredentials,e.credentials){const{email:t,password:n}=e.credentials;await this.login(t,n)}else this.logged=!1,this._userData={}}catch(e){this.logged=!1,this._credentials={},this._userData={}}}}new p;const f=n(17);class h{constructor(){return h.instance||(h.instance=this,this.inited=!1,this.componentsManager=u,this.shouldOpenHelp=!0,this.componentInClipboard=null),h.instance}async init(){await this.componentsManager.init(),1==await f.readShared("help")&&(this.shouldOpenHelp=!1),this.inited=!0}async disableOpenHelp(){return this.shouldOpenHelp=!1,await f.updateShared("help",!0)}async requiresLogin(){return!1}async _checkInit(){this.inited||await this.init()}async getLatestCredentials(){return await this._checkInit(),this.userManager._latestCredentials}async getUserData(){await this._checkInit();const{role:e,expirationDate:t,isExpired:n}=this.userManager._userData,{email:r}=this.userManager._latestCredentials;return{role:e,expirationDate:t,isExpired:n,email:r}}isFreeUser(){return!0}async getComponents(e={}){try{const t=await this.componentsManager.getComponents(!0,e);if(200===t.status)return t.body}catch(e){throw e}}async addComponentToLibrary(e){return this.componentsManager.addComponentToLibrary(!0,e)}async getComponentScenegraph(e){if(this.componentInClipboard&&this.componentInClipboard.id===e)return this.componentInClipboard.scenegraph;try{const t=await this.componentsManager.getComponentScenegraph(!0,e);if(200===t.status){const n="string"==typeof t.body.scenegraph?JSON.parse(t.body.scenegraph):t.body.scenegraph;return this.componentInClipboard={id:e,scenegraph:n},n}}catch(e){return console.log(e),""}}async updateComponent(e,t){return this.componentsManager.updateComponent(!0,e,t)}async deleteComponent(e){return this.componentsManager.removeComponentFromLibrary(!0,e)}async login(e,t){return this.userManager.login(e,t)}async writeLog(e){return await f._writeLogFile(e)}}const m=new h;t.default=m},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),a=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(a).concat([o]).join("\n")}var i;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(e,t,n){var r,o,a={},i=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),s=null,u=0,c=[],d=n(41);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=a[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(v(r.parts[i],t))}else{var l=[];for(i=0;i<r.parts.length;i++)l.push(v(r.parts[i],t));a[r.id]={id:r.id,refs:1,parts:l}}}}function f(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=t.base?a[0]+t.base:a[0],l={css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}function h(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=l(e.insertAt.before,n);n.insertBefore(t,o)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){const t=function(){0;return n.nc}();t&&(e.attrs.nonce=t)}return y(t,e.attrs),h(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,r,o,a;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}if(t.singleton){var i=u++;n=s||(s=g(t)),r=x.bind(null,n,i,!1),o=x.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||a)&&(r=d(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(i),l&&URL.revokeObjectURL(l)}.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return p(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var i=n[o];(l=a[i.id]).refs--,r.push(l)}e&&p(f(e,t),t);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete a[l.id]}}}};var b,w=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"StipoHeader",function(){return o}),n.d(t,"StipoPremiumLibraryHeader",function(){return a});const r=n(0),o=(n(53),({title:e,error:t,subTitle:n})=>{let o="";return t&&(o="color-red"),r.createElement(r.Fragment,null,r.createElement("h1",{className:"h1"},r.createElement("span",{className:o},e),r.createElement("img",{className:"plugin-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAcBJREFUeNrslkFOhTAQhtG4lyNwA3FvIh7ABG+Aaxe+G1hPQN7CNd4AEw/AW7iHG/A8Qb0BlmQmmUw6AR6SNHG+pIE2tJ1/2v4lihRFURRFURRF+a+cbTHo1/2bcY8rVx5vPp9+thRwvrJ/4crgSsban13JXUm3XoGLlf1v4Xlg7Q9j8C77h9C3YA8rECzjFrEQ5AABp7A9Gmiz8O4riIFvEzamhTolJ4nBOfNTgs9hgBYmKWFCA/VWENCSfgiK3cGzcqUm/WN2pizMVxIhi88TThBPCDSsPYP2xiNgYBlviQkkJPjUs3rVUhfCwHeCiKmMHJmokXcoSEfeX+C5Z+1oBMlSAXsycA8ZoEIuBQfCYL89Y76yeuJJyMdf3QPjQNckYwVsq6UrkBGhR0FAR8brhG9WXYixxzJb4Yw07HLLhD3Mz8ogWHLtOTuzAk5Y3YKIaGLChlhmRJynFBKSsX6F56bvl2a8IlkzzAYR9PIaJigEYYa01cSO+arkzEIrwZVmkTLr61nwNDvo+SkRYD1boGIXmBEuzp4J3vx/aorm1IsoFGzo/0tT8C0V1O/0HO7WeriiKIqiKIqihMmvAAMArUusXvt+v30AAAAASUVORK5CYII=\r\n"})),n&&r.createElement("p",{className:"StipoHeaderSubtitle"},n),r.createElement("hr",null))}),a=({title:e,subTitle:t,onAction:n})=>r.createElement(r.Fragment,null,r.createElement("h1",{className:"h1"},r.createElement("span",null,e),r.createElement("div",{className:"stipoLibrariesTag",style:{display:"flex"}},r.createElement("button",{"uxp-variant":"action",title:"Your Components",autoFocus:!1,onClick:()=>n(0),className:"removeButton"},"Your Components"),r.createElement("button",{"uxp-variant":"action",onClick:()=>n(1),autoFocus:!1,className:"removeButton"},"Shared with you")),r.createElement("img",{className:"plugin-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAcBJREFUeNrslkFOhTAQhtG4lyNwA3FvIh7ABG+Aaxe+G1hPQN7CNd4AEw/AW7iHG/A8Qb0BlmQmmUw6AR6SNHG+pIE2tJ1/2v4lihRFURRFURRF+a+cbTHo1/2bcY8rVx5vPp9+thRwvrJ/4crgSsban13JXUm3XoGLlf1v4Xlg7Q9j8C77h9C3YA8rECzjFrEQ5AABp7A9Gmiz8O4riIFvEzamhTolJ4nBOfNTgs9hgBYmKWFCA/VWENCSfgiK3cGzcqUm/WN2pizMVxIhi88TThBPCDSsPYP2xiNgYBlviQkkJPjUs3rVUhfCwHeCiKmMHJmokXcoSEfeX+C5Z+1oBMlSAXsycA8ZoEIuBQfCYL89Y76yeuJJyMdf3QPjQNckYwVsq6UrkBGhR0FAR8brhG9WXYixxzJb4Yw07HLLhD3Mz8ogWHLtOTuzAk5Y3YKIaGLChlhmRJynFBKSsX6F56bvl2a8IlkzzAYR9PIaJigEYYa01cSO+arkzEIrwZVmkTLr61nwNDvo+SkRYD1boGIXmBEuzp4J3vx/aorm1IsoFGzo/0tT8C0V1O/0HO7WeriiKIqiKIqihMmvAAMArUusXvt+v30AAAAASUVORK5CYII=\r\n"})),t&&r.createElement("p",{className:"StipoHeaderSubtitle"},t),r.createElement("hr",null))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"a",function(){return i}),n.d(t,"d",function(){return l});const r=e.fetch,o=async(e,t)=>{const{credentials:n,headers:r}=s(t);return u(e,{method:"GET",credentials:n,headers:r})},a=async(e,t)=>{const{credentials:n,headers:r,body:o}=s(t),a={method:"POST",credentials:n,headers:r};return o&&(a.body=o),u(e,a)},i=async(e,t)=>{const{credentials:n,headers:r,body:o}=s(t),a={method:"DELETE",credentials:n,headers:r};return a.body=o||'{"test": "test"}',u(e,a)},l=async(e,t)=>{const{credentials:n,headers:r,body:o}=s(t),a={method:"PUT",credentials:n,headers:r};return o&&(a.body=o),u(e,a)},s=(e={})=>(e.hasOwnProperty("headers")||(e.headers=new Headers),e.headers.append("x-api-client-id","stipo-xd-client"),e.headers.append("Content-Type","application/json"),e.hasOwnProperty("credentials")||(e.credentials="same-origin"),e.hasOwnProperty("body")&&null!==e.body&&"object"==typeof e.body&&(e.body=JSON.stringify(e.body)),e),u=async(e,t)=>{try{const n=await r(e,t),{status:o,ok:a}=n;if(413==o)throw{status:413,error:{code:"Component too large",message:"Sorry, your component is too large to be handled"}};let i;try{i=await n.json()}catch(e){throw{status:500,error:{code:"Invalid Response",message:"Invalid Response type, expecting JSON"}}}if(a)return{status:o,body:i};throw Object.assign({status:o},i)}catch(e){if(!e.error.code)throw{status:500,error:{code:e.error||500,message:e.message||"Unable to handle your request"}};throw e}}}).call(this,n(16))},function(e,t){e.exports=require("uxp")},function(e,t,n){"use strict";n.r(t),n.d(t,"deleteFile",function(){return v}),n.d(t,"componentsPath",function(){return w}),n.d(t,"settingsPath",function(){return x}),n.d(t,"sharedPath",function(){return C}),n.d(t,"updateShared",function(){return E}),n.d(t,"readShared",function(){return k}),n.d(t,"updateSettings",function(){return S}),n.d(t,"readSettings",function(){return T}),n.d(t,"updateComponent",function(){return _}),n.d(t,"updateComponentLocally",function(){return N}),n.d(t,"getComponent",function(){return D}),n.d(t,"getComponentRendition",function(){return P}),n.d(t,"getComponents",function(){return I}),n.d(t,"deleteComponent",function(){return A}),n.d(t,"getTemporaryFile",function(){return O}),n.d(t,"_writeLogFile",function(){return F});const r=n(8).storage.localFileSystem,o=n(8).storage.formats,{updateComponentsDB:a,updateComponentDB:i,deleteComponentsDB:l,getComponentDB:s,getComponentsDB:u,getComponentRenditionDB:c,countComponents:d,FREEMIUM_LIMIT:p}=n(15),f="library",h="conf",m="shr",g=n(26);async function y(e,t){let n;try{return n=await t.getEntry(e)}catch(r){return n=await t.createFolder(e)}}async function v(e){try{e.delete()}catch(e){console.log(e)}}async function b(e,t,n){let r;try{return r=await n.getEntry(e)}catch(o){try{return r=await n.createFile(e,{overwrite:!0}),await r.write(t),r}catch(e){console.log(e)}}}async function w(){const e=await r.getDataFolder();return await y(f,e)}async function x(){const e=await r.getDataFolder();return await y(h,e)}async function C(){const e=await r.getDataFolder();return await y(m,e)}async function E(e,t){const n=await C();return(await b(e,JSON.stringify({}),n)).write(JSON.stringify(t))}async function k(e){const t=await C(),n=await b(e,JSON.stringify({}),t),r=await n.read();return JSON.parse(r)}async function S(e){const t=await x();return(await b("settings",JSON.stringify({}),t)).write(JSON.stringify(e))}async function T(){const e=await x(),t=await b("settings",JSON.stringify({}),e),n=await t.read();return JSON.parse(n)}async function _(e,t=null,n=null){if(!e.hasOwnProperty("id")||""===e.id){const t=String.fromCharCode(65+Math.floor(26*Math.random()));e.id=t+Date.now()}const r=await w(),o=await y(e.id+"",r),l=await b(e.id+".png","*",o);return await a(e),t&&await i(t,e.id+".json",o),n&&await async function(e,t){try{const n=[{node:t.items[0],outputFile:e,type:g.RenditionType.PNG,scale:1}];await g.createRenditions(n)}catch(e){console.log(e)}}(l,n),!0}async function N(e,t){const n=await w(),r=await y(e+"",n),l=await b(e+".png","*",r),{scenegraph:s,rendition:u,data:c,owner:d,shareWith:p}=t;await a({id:e,data:c,owner:d,shareWith:p}),s&&await i(s,e+".json",r),u&&await async function(e,t){await e.write(t,{overwrite:!0,format:o.binary})}(l,u)}async function D(e,t=!0,n=!1){const r=await w(),o=await y(e,r),a=await s(e,o);if(!a)return!1;const i={};return t&&(i.rendition=await P(e)),n&&(i.scenegraph=a.sceneNode),Object.assign(i,a.componentData),i}async function P(e){const t=await w(),n=await y(e,t);return c(e,n)}async function I(e=!0){const t=await u();return await Promise.all(Object.keys(t).map(async e=>await D(e)))}async function A(e){const t=await w(),n=await y(e+"",t);await async function(e){try{(await e.getEntries()).map(e=>{e.isFile&&e.delete()}),await e.delete()}catch(e){console.log(e)}}(n),await l(e)}async function O(){const e=String.fromCharCode(65+Math.floor(26*Math.random()))+Date.now(),t=await r.getTemporaryFolder();return await b(e,"{}",t)}async function F(e){(await O()).write(JSON.stringify(e,null,2))}},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorDialog",function(){return l}),n.d(t,"openErrorDialog",function(){return s});const r=n(0),o=n(2),{StipoHeader:a}=n(6),{StipoErrorButton:i}=n(1);class l extends r.Component{constructor(e){super(e)}render(){return r.createElement("form",{method:"dialog"},r.createElement(a,{title:this.props.title,error:!0}),r.createElement("div",{className:"stipoDialogContent container"},this.props.children),r.createElement("footer",{className:"flex-end"},r.createElement(i,{value:"Ok",onClick:()=>this.props.dialog.close()})))}}const s=(e,t)=>{const n=document.createElement("dialog");return n.classList.add("stipoDialog"),o.render(r.createElement(l,{dialog:n,title:e},t),n),document.body.appendChild(n).showModal()}},function(e,t){e.exports=require("scenegraph")},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});const r="https://stipoapi.udesly.com/v1/login",o="https://stipoapi.udesly.com/v1/components"},function(e,t,n){"use strict";n.r(t),n.d(t,"SuccessDialog",function(){return l}),n.d(t,"openSuccessDialog",function(){return s});var r=n(1);const o=n(0),a=n(2),{StipoHeader:i}=n(6);class l extends o.Component{constructor(e){super(e)}render(){return o.createElement("form",{method:"dialog",onSubmit:e=>this.props.dialog.close()},o.createElement(i,{title:this.props.title}),o.createElement("div",{className:"stipoDialogContent container"},this.props.children),o.createElement("footer",{className:"stipoDialogFooter flex-end"},o.createElement(r.StipoPrimaryButton,{value:"Ok",onClick:()=>this.props.dialog.close()})))}}const s=(e,t)=>{const n=document.createElement("dialog");return n.classList.add("stipoDialog"),a.render(o.createElement(l,{dialog:n,title:e},t),n),document.body.appendChild(n).showModal()}},function(e,t,n){"use strict";n.r(t),n.d(t,"StipoInput",function(){return a}),n.d(t,"StipoTagInput",function(){return i}),n.d(t,"StipoTextArea",function(){return l});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};const o=n(0),a=(n(55),e=>o.createElement(o.Fragment,null,e.label?o.createElement("label",null,e.label):"",o.createElement("input",r({type:"text"},e)))),i=e=>o.createElement("div",{className:"stipoInputWrapper"},e.label?o.createElement("label",null,e.label):"",o.createElement("div",{className:"stipoInputTags"},e.tags.map((t,n)=>o.createElement("div",{className:"stipoInputTag",key:n,onClick:()=>e.deleteTag(n)},o.createElement("span",{className:"deleteTag"},"x"),t))),o.createElement("input",{type:"text",onChange:e.onChange,onKeyDown:t=>e.onKeyDown(t),value:e.value}),e.help?o.createElement("small",null,e.help):""),l=e=>o.createElement(o.Fragment,null,e.label?o.createElement("label",null,e.label):"",o.createElement("textarea",e))},function(e,t,n){"use strict";n.r(t),n.d(t,"FREEMIUM_LIMIT",function(){return i}),n.d(t,"updateComponentsDB",function(){return s}),n.d(t,"getComponentsDB",function(){return u}),n.d(t,"deleteComponentsDB",function(){return c}),n.d(t,"updateComponentDB",function(){return d}),n.d(t,"getComponentDB",function(){return p}),n.d(t,"getComponentRenditionDB",function(){return f}),n.d(t,"countComponents",function(){return h}),n.d(t,"readAsBase64",function(){return m});n(32);const r=n(8).storage.localFileSystem,o=n(8).storage.formats,a="cmpnts.json",i=10;async function l(e,t,n){let r;try{return r=await n.getEntry(e)}catch(o){return r=await n.createFile(e,{overwrite:!0}),await r.write(t),r}}async function s(e){const t=await r.getDataFolder(),n=await l(a,JSON.stringify({}),t);try{const t=await n.read();let r=JSON.parse(t);r[e.id]=e,n.write(JSON.stringify(r))}catch(e){console.log(e)}}async function u(){const e=await r.getDataFolder(),t=await l(a,JSON.stringify({}),e);try{const e=await t.read();return JSON.parse(e)}catch(e){console.log(e)}}async function c(e){e+="";const t=await r.getDataFolder(),n=await l(a,JSON.stringify({}),t);try{const t=await n.read();let r=JSON.parse(t);delete r[e],n.write(JSON.stringify(r))}catch(e){console.log(e)}}async function d(e,t,n){try{(await l(t,JSON.stringify({}),n)).write(JSON.stringify(e))}catch(e){console.log(e)}}async function p(e,t){try{const n=e+".json",o=await l(n,JSON.stringify({}),t);let i=await o.read();i=JSON.parse(i);const s=await r.getDataFolder(),u=await l(a,JSON.stringify({}),s),c=await u.read();let d=JSON.parse(c);return!!d.hasOwnProperty(e)&&{sceneNode:i,componentData:d[e]}}catch(e){console.log(e)}}async function f(e,t){try{const n=e+".png",r=await l(n,JSON.stringify({}),t);return await r.read()}catch(e){console.log(e)}}async function h(){const e=await u();return Object.keys(e).length}async function m(e){return function(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(e),o=r.byteLength,a=o%3,i=o-a;let l,s,u,c,d;for(let e=0;e<i;e+=3)d=r[e]<<16|r[e+1]<<8|r[e+2],t+=n[l=(16515072&d)>>18]+n[s=(258048&d)>>12]+n[u=(4032&d)>>6]+n[c=63&d];1===a?(d=r[i],t+=`${n[l=(252&d)>>2]}${n[s=(3&d)<<4]}==`):2===a&&(d=r[i]<<8|r[i+1],t+=`${n[l=(64512&d)>>10]}${n[s=(1008&d)>>4]}${n[u=(15&d)<<2]}=`);return t}(await e.read({format:o.binary}))}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(15);n.d(t,"FREEMIUM_LIMIT",function(){return r.FREEMIUM_LIMIT}),n.d(t,"updateComponentsDB",function(){return r.updateComponentsDB}),n.d(t,"getComponentsDB",function(){return r.getComponentsDB}),n.d(t,"deleteComponentsDB",function(){return r.deleteComponentsDB}),n.d(t,"updateComponentDB",function(){return r.updateComponentDB}),n.d(t,"getComponentDB",function(){return r.getComponentDB}),n.d(t,"getComponentRenditionDB",function(){return r.getComponentRenditionDB}),n.d(t,"countComponents",function(){return r.countComponents}),n.d(t,"readAsBase64",function(){return r.readAsBase64});var o=n(9);n.d(t,"deleteFile",function(){return o.deleteFile}),n.d(t,"componentsPath",function(){return o.componentsPath}),n.d(t,"settingsPath",function(){return o.settingsPath}),n.d(t,"sharedPath",function(){return o.sharedPath}),n.d(t,"updateShared",function(){return o.updateShared}),n.d(t,"readShared",function(){return o.readShared}),n.d(t,"updateSettings",function(){return o.updateSettings}),n.d(t,"readSettings",function(){return o.readSettings}),n.d(t,"updateComponent",function(){return o.updateComponent}),n.d(t,"updateComponentLocally",function(){return o.updateComponentLocally}),n.d(t,"getComponent",function(){return o.getComponent}),n.d(t,"getComponentRendition",function(){return o.getComponentRendition}),n.d(t,"getComponents",function(){return o.getComponents}),n.d(t,"deleteComponent",function(){return o.deleteComponent}),n.d(t,"getTemporaryFile",function(){return o.getTemporaryFile}),n.d(t,"_writeLogFile",function(){return o._writeLogFile})},function(e,t,n){"use strict";n.r(t),n.d(t,"test",function(){return i}),n.d(t,"login",function(){return l});var r=n(7),o=n(12),a=n(3);const i=async()=>{try{await a.default.init()}catch(e){}},l=(e,t)=>r.c(o.b,{body:{username:e,password:t}})},function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryDialog",function(){return g}),n.d(t,"openAddToLibraryDialog",function(){return y});const r=n(0),o=n(2),a=n(3).default,{openSuccessDialog:i}=n(13),{openErrorDialog:l}=n(10),{StipoHeader:s}=n(6),{StipoPrimaryButton:u,StipoHollowButton:c}=n(1),{StipoInput:d,StipoTagInput:p,StipoTextArea:f}=n(14),{getItemsFromSelection:h}=n(20),{updateComponent:m}=n(9);class g extends r.Component{constructor(e){super(e),this.props.item?this.state={id:this.props.item.id,name:this.props.item.data.name,tags:this.props.item.data.tags,tagInput:"",description:this.props.item.data.description,invalid:!1}:this.state={id:"",name:"",tags:[],tagInput:"",description:"",invalid:!0},this.onNameChange=(e=>{e.target.value.length>0?this.setState({name:e.target.value,invalid:!1}):this.setState({name:e.target.value,invalid:!0})}),this.onKeyDown=(e=>{"Enter"!=e.key||this.state.invalid||this.onDoneClick()}),this.onDoneClick=(()=>{this.setState({loading:!0}),this.onDone(this.state,this.props.selection).then(e=>200!==e.status?(this.props.dialog.close(),l(e.error.code||"Error",r.createElement("p",null,e.error.message||"Can't Add component to library, please try again later"))):(this.props.dialog.close(),this.state.id?i("Component edited!",r.createElement("p",null,"Component edited successfully!")):i("Component added to library!",r.createElement("p",null,"Component added successfully to the library!")))).catch(e=>l(e.code||"Error",e.message||"Impossible to handle your request, please try again later"))}),this.onDone=((e,t)=>{let n=null;return e.id?a.updateComponent(e.id,{data:{name:e.name,tags:e.tags,description:e.description}}):(n=h(t),a.addComponentToLibrary({data:{name:e.name,tags:e.tags,description:e.description},scenegraph:n,selection:t}))}),this.onCancelClick=(()=>{this.setState({name:"",tags:[],tagInput:"",description:""}),this.props.dialog.close()}),this.handleDelete=(e=>{this.setState({tags:this.state.tags.filter((t,n)=>n!==e)})}),this.onTagChange=(e=>{this.setState({tagInput:e.target.value})}),this.onDescriptionChange=(e=>{this.setState({description:e.target.value})}),this.handleTagKeydown=(e=>{if(","===e.key){const{value:t}=e.target;t.length&&this.state.tags.length<3&&this.setState({tags:[...this.state.tags,t],tagInput:""})}!this.state.tags.length||"Backspace"!==e.key&&"Delete"!==e.key||this.state.tagInput.length||this.setState({tags:this.state.tags.slice(0,this.state.tags.length-1)})})}render(){return r.createElement("form",{method:"dialog",onSubmit:e=>{e.preventDefault()}},r.createElement(s,{title:this.state.id?"Update component data":"Add component to library"}),this.state.loading?r.createElement("p",null,"Loading..."):r.createElement(r.Fragment,null,r.createElement("div",{className:"stipoDialogBody container"},r.createElement(d,{onChange:this.onNameChange,onKeyDown:this.onKeyDown,value:this.state.name,label:"Component name"}),r.createElement(p,{onChange:this.onTagChange,onKeyDown:this.handleTagKeydown,value:this.state.tagInput,label:"Tags",help:"Insert comma to insert a tag, max 3 tags",deleteTag:e=>this.handleDelete(e),tags:this.state.tags}),r.createElement(f,{onChange:this.onDescriptionChange,onKeyDown:this.onKeyDown,value:this.state.description,label:"Description"})),r.createElement("footer",{className:"flex-end"},r.createElement(c,{value:"Cancel",onClick:this.onCancelClick}),r.createElement(u,{value:this.state.id?"Update":"Add",onClick:this.onDoneClick,disabled:this.state.invalid}))))}}function y(e,t){const n=document.createElement("dialog");return n.classList.add("stipoDialog"),o.render(r.createElement(g,{dialog:n,selection:e,item:t}),n),document.body.appendChild(n).showModal()}},function(e,t,n){"use strict";n.r(t);const{Color:r,Shadow:o,Blur:a,LinearGradient:i,RadialGradient:l}=n(11),s=(e,t)=>Object.assign(e,(e=>({globalBounds:(e=>e.globalBounds)(e),localBounds:(e=>e.localBounds)(e),stroke:(e=>!!e.stroke&&{type:"Color",value:e.stroke.value})(e),strokeEnabled:(({strokeEnabled:e})=>e)(e),fill:(({fill:e})=>{if(!e)return!1;switch(e.constructor.name){case"Color":return{type:"Color",value:e.value};case"LinearGradientFill":return{type:"LinearGradientFill",value:{colorStops:e.colorStops,endPoints:e.getEndPoints()}};case"RadialGradientFill":return{type:"RadialGradientFill",value:{colorStops:e.colorStops,endPoints:e.getEndPoints()}};case"ImageFill":return{type:"ImageFill",value:{scaleBehavior:e.scaleBehavior,mimeType:e.mimeType}};default:return!1}})(e),fillEnabled:(e=>e.fillEnabled)(e),strokeWidth:(e=>e.strokeWidth)(e),shadow:(({shadow:e})=>!!e&&{x:e.x,y:e.y,blur:e.blur,color:e.color.value,visible:e.visible})(e),blur:(({blur:e})=>!!e&&{blurAmount:e.blurAmount,brightnessAmount:e.brightnessAmount,opacity:e.fillOpacity,backgroundEffect:e.isBackgroundEffect,visible:e.visible})(e),rotation:(({rotation:e})=>e)(e),translation:(({translation:e})=>({x:e.x,y:e.y}))(e),localCenterPoint:(({localCenterPoint:e})=>e)(e),topLeftInParent:(({topLeftInParent:e})=>e)(e),parentCenterPoint:(e=>e.parent.localCenterPoint)(e),strokePosition:(({strokePosition:e})=>e)(e),strokeEndCaps:(({strokeEndCaps:e})=>e)(e),strokeJoins:(({strokeJoins:e})=>e)(e),strokeMiterLimit:(({strokeMiterLimit:e})=>e)(e),strokeDashArray:(({strokeDashArray:e})=>e)(e),strokeDashOffset:(({strokeDashOffset:e})=>e)(e),globalDrawBounds:(({globalDrawBounds:e})=>e)(e),boundsInParent:(({boundsInParent:e})=>e)(e),opacity:(e=>e.opacity)(e)}))(t)),{Line:u}=n(11),c=({start:e,end:t})=>({startX:e.x,startY:e.y,endX:t.x,endY:t.y}),d=(e,t)=>{const n=t.startEnd;e.setStartEnd(n.startX,n.startY,n.endX,n.endY)},{Rectangle:p}=n(11),f=({cornerRadii:e})=>({topLeft:e.topLeft,topRight:e.topRight,bottomRight:e.bottomRight,bottomLeft:e.bottomLeft}),{Ellipse:h}=n(11),{Path:m}=n(11),{Text:g}=n(11);n.d(t,"getItemsFromSelection",function(){return v}),n.d(t,"addItemsFromMap",function(){return w});const y=n(25);const v=e=>{const t=e.items;let n=[];return t.forEach(e=>{const t=b(e);t&&(Array.isArray(t)?n=n.concat(t):n.push(t))}),function e(t){return t.reduce((t,n)=>Array.isArray(n)?t.concat(e(n)):t.concat(n),[])}(n)},b=e=>{switch(e.constructor.name){case"Group":case"SymbolInstance":case"Artboard":case"RepeatGrid":{const t=e.children,n=[];return t.forEach(e=>{n.push(b(e))}),n}case"Line":return(e=>{const t={name:"Line",startEnd:c(e)};return s(t,e)})(e);case"Rectangle":return(e=>{const t={name:"Rectangle",width:e.width,height:e.height,cornerRadii:f(e)};return s(t,e)})(e);case"Ellipse":return(e=>{const t={name:"Ellipse",radiusX:e.radiusX,radiusY:e.radiusY};return s(t,e)})(e);case"Path":return(e=>{const t={name:"Path",pathData:e.pathData};return s(t,e)})(e);case"Text":return(e=>{const t={name:"Text",text:e.text,styleRanges:e.styleRanges,flipY:e.flipY,textAlign:e.textAlign,areaBox:e.areaBox};return s(t,e)})(e)}},w=(e,t,n)=>{const{x:l,y:s}=n.globalBounds;let c=[];const f=t.editContext;e.forEach(e=>{let t;switch(e.name){case"Line":t=function(e){const t=new u;return d(t,e),t}(e);break;case"Rectangle":t=function(e){const t=new p;return t.width=e.width,t.height=e.height,t.cornerRadii=e.cornerRadii,t}(e);break;case"Ellipse":t=function(e){const t=new h;return t.radiusX=e.radiusX,t.radiusY=e.radiusY,t}(e);break;case"Path":t=function(e){const t=new m;return t.pathData=e.pathData,t}(e);break;case"Text":t=function(e){const t=new g;return t.text=e.text,t.styleRanges=e.styleRanges,t.flipY=e.flipY,t.textAlign=e.textAlign,e.areaBox&&(t.areaBox=e.areaBox),t}(e)}c.push(t),f.addChild(t),((e,t)=>{t.strokeEnabled&&0!=t.stroke?(e.strokeEnabled=!0,e.stroke=new r(t.stroke.value),e.strokeWidth=t.strokeWidth,e.strokePosition=t.strokePosition,e.strokeEndCaps=t.strokeEndCaps,e.strokeJoins=t.strokeJoins,e.strokeMiterLimit=t.strokeMiterLimit,e.strokeDashArray=t.strokeDashArray,e.strokeDashOffset=t.strokeDashOffset):e.strokeEnabled=!1})(t,e),((e,t)=>{const n=t.fill;if(t.fillEnabled)switch(n.type){case"Color":e.fill=new r(n.value);break;case"LinearGradientFill":const t=new i;t.colorStops=n.value.colorStops;const o=n.value.endPoints;t.setEndPoints(o[0],o[1],o[2],o[3]),e.fill=t}})(t,e),((e,t)=>{const n=t.shadow;n&&(e.shadow=new o(n.x,n.y,n.blur,new r(n.color),n.visible))})(t,e),((e,t)=>{const n=t.blur;n&&(e.blur=new a(n.blurAmount,n.brightnessAmount,n.opacity,n.visible,n.backgroundEffect))})(t,e),((e,t)=>{t.opacity&&(e.opacity=t.opacity)})(t,e),((e,t)=>{t.localCenterPoint&&e.rotateAround(t.rotation,t.localCenterPoint)})(t,e),((e,t,n)=>{const r=t.globalBounds,o={x:r.x+n.x,y:r.y+n.y};e.moveInParentCoordinates(o.x,o.y);const a={x:t.translation.x+n.x,y:t.translation.y+n.y};e.translation=a})(t,e,{x:l,y:s})}),t.items=c,y.group()}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){i=r(n);for(var c=0;c<i.length;c++)a.call(n,i[c])&&(l[i[c]]=n[i[c]])}}return l}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,a,i,l,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,l,s],d=0;(u=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){e.exports=require("commands")},function(e,t){e.exports=require("application")},function(e,t,n){"use strict";n.r(t),n.d(t,"StipoSearch",function(){return l});const r=n(0),{StipoInput:o}=(n(58),n(14)),{StipoPrimaryButton:a,StipoHollowButton:i}=n(1);class l extends r.Component{constructor(e){super(e),this.state={value:""},this.onSearchPerformed=(()=>{this.state.value.length>0&&(this.props.onSearchPerformed(this.state.value),this.setState({value:""}))}),this.handleEnterKey=(e=>{"Enter"==e&&this.onSearchPerformed()})}render(){return r.createElement("div",{className:"stipoSearchContainer"},r.createElement(o,{placeholder:"Search component...",value:this.state.value,onChange:e=>this.setState({value:e.target.value}),onKeyDown:e=>this.handleEnterKey(e.key)}),r.createElement(a,{value:"Search",onClick:this.onSearchPerformed,disabled:""==this.state.value}),this.props.showReset&&r.createElement(i,{value:"All Items",onClick:this.props.onReset}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"searchComponents",function(){return a});const{getComponentsDB:r}=n(15),{getComponent:o}=n(9);async function a(e){e=e.toLowerCase();const t=await r();let n=[];for(const r in t){const a=t[r];let i;for(const t in a)if(Array.isArray(a[t])?(i=[],a[t].forEach(e=>{i.push(e.toLowerCase())})):i=a[t].toLowerCase(),i.includes(e)){const e=await o(a.id);if(!n.includes(e)){n.push(e);break}}}return n}},function(e,t,n){var r=n(60);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(function(t){t.setTimeout=function(e){e()},t.clearTimeout=function(){};const r=n(0),o=n(25),a=n(3).default,i=n(8).shell;if(n(38).platform().startsWith("win")){n(39)}else{n(42)}const{openAddToLibraryDialog:l}=n(19),{openLibraryDialog:s}=n(68),{openErrorDialog:u}=n(10),{openAccountDialog:c}=n(61),{openLoginDialog:d}=n(69),{openHelpDialog:p}=n(64),f=(n(9),n(20));let h="";async function m(e){return function e(t){o.ungroup(),(t.items?t.items:t.children).forEach(t=>{(function(e){return"Group"==e||"SymbolInstance"==e||"Artboard"==e||"RepeatGrid"==e})(t.constructor.name)&&e(t)})}(e),o.group(),e.items.length?l(e):u("No item selected",r.createElement("p",null,"No item selected to add to the library, please select some items"))}e.exports={commands:{openLibrary:async function(e){s(e=>{h=e},h)},addToLibrary:async function(e){m(e)},addToCanvas:async function(e){!async function(e){if(!h)return u("Ops, nothing to paste",r.createElement("p",null,"Before pasting an element inside your Artboard, you need to open the library and select an element"));{const t=await a.getComponentScenegraph(h,!1);if(!t)return u("Cannot paste this element",r.createElement("p",null,"The selected element doesn't exist anymore, please select an element to paste from the library"));{const n=e.items[0];if(!n||"Artboard"!==n.constructor.name)return u("Error",r.createElement("p",null,"Please select an Artboard to paste an item"));f.addItemsFromMap(t,e,n)}}}(e)},openStipoPage:function(){i.openExternal("https://www.udesly.com/stipo-adobe-xd-plugin/")},openHelpDialog:async function(){await p()}}}}).call(this,n(16))},function(e,t,n){"use strict";
/** @license React v16.4.2
* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(21),o=n(22),a=n(23),i=n(24),l="function"==typeof Symbol&&Symbol.for,s=l?Symbol.for("react.element"):60103,u=l?Symbol.for("react.portal"):60106,c=l?Symbol.for("react.fragment"):60107,d=l?Symbol.for("react.strict_mode"):60108,p=l?Symbol.for("react.profiler"):60114,f=l?Symbol.for("react.provider"):60109,h=l?Symbol.for("react.context"):60110,m=l?Symbol.for("react.async_mode"):60111,g=l?Symbol.for("react.forward_ref"):60112;l&&Symbol.for("react.timeout");var y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function w(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||b}function x(){}function C(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var E=C.prototype=new x;E.constructor=C,r(E,w.prototype),E.isPureReactComponent=!0;var k={current:null},S=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r=void 0,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:s,type:e,key:a,ref:i,props:o,_owner:k.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var D=/\/+/g,P=[];function I(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function O(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case s:case u:a=!0}}if(a)return n(r,e,""===t?"."+F(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var i=0;i<e.length;i++){var l=t+F(o=e[i],i);a+=O(o,l,n,r)}else if(null==e?l=null:l="function"==typeof(l=y&&e[y]||e["@@iterator"])?l:null,"function"==typeof l)for(e=l.call(e),i=0;!(o=e.next()).done;)a+=O(o=o.value,l=t+F(o,i++),n,r);else"object"===o&&v("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,r,n,i.thatReturnsArgument):null!=e&&(N(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n,e={$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function M(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(D,"$&/")+"/"),t=I(t,a,r,o),null==e||O(e,"",L,t),A(t)}var B={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return M(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=I(null,null,t,n),null==e||O(e,"",R,t),A(t)},count:function(e){return null==e?0:O(e,"",i.thatReturnsNull,null)},toArray:function(e){var t=[];return M(e,t,null,i.thatReturnsArgument),t},only:function(e){return N(e)||v("143"),e}},createRef:function(){return{current:null}},Component:w,PureComponent:C,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:g,render:e}},Fragment:c,StrictMode:d,unstable_AsyncMode:m,unstable_Profiler:p,createElement:_,cloneElement:function(e,t,n){null==e&&v("267",e);var o=void 0,a=r({},e.props),i=e.key,l=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,u=k.current),void 0!==t.key&&(i=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)S.call(t,o)&&!T.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){c=Array(o);for(var d=0;d<o;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:s,type:e.type,key:i,ref:l,props:a,_owner:u}},createFactory:function(e){var t=_.bind(null,e);return t.type=e,t},isValidElement:N,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:k,assign:r}},U={default:B},j=U&&B||U;e.exports=j.default?j.default:j},function(e,t,n){(function(e,r){var o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,i=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<a;s=r[++n])m(s)||!w(s)?i+=" "+s:i+=" "+l(s);return i},t.deprecate=function(n,o){if(v(e.process))return function(){return t.deprecate(n,o).apply(this,arguments)};if(!0===r.noDeprecation)return n;var a=!1;return function(){if(!a){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?console.trace(o):console.error(o),a=!0}return n.apply(this,arguments)}};var a,i={};function l(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),c(r,e,r.depth)}function s(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=c(e,o,r)),o}var a=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(a)return a;var i=Object.keys(n),l=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),C(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return d(n);if(0===i.length){if(E(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var u,w="",k=!1,S=["{","}"];(f(n)&&(k=!0,S=["[","]"]),E(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),x(n)&&(w=" "+Date.prototype.toUTCString.call(n)),C(n)&&(w=" "+d(n)),0!==i.length||k&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=k?function(e,t,n,r,o){for(var a=[],i=0,l=t.length;i<l;++i)_(t,String(i))?a.push(p(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(o){o.match(/^\d+$/)||a.push(p(e,t,n,r,o,!0))}),a}(e,n,r,l,i):i.map(function(t){return p(e,n,r,l,t,k)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,w,S)):S[0]+w+S[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,a){var i,l,s;if((s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),_(r,o)||(i="["+o+"]"),l||(e.seen.indexOf(s.value)<0?(l=m(n)?c(e,s.value,null):c(e,s.value,n-1)).indexOf("\n")>-1&&(l=a?l.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+l.split("\n").map(function(e){return" "+e}).join("\n")):l=e.stylize("[Circular]","special")),v(i)){if(a&&o.match(/^\d+$/))return l;(i=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+l}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"==typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===k(e)}function C(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function E(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(a)&&(a=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!i[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=r.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=w,t.isDate=x,t.isError=C,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(34);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(35),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,n(16),n(33))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],c=!1,d=-1;function p(){c&&s&&(c=!1,s.length?u=s.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=l(p);c=!0;for(var t=u.length;t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return r});class r{constructor(e=null,t={},n,r,o="me",a=[]){this.id=e,this.data=t,this.scenegraph=n,this.rendition=r,this.owner=o,this.shareWith=a}getBody(){return{data:this.data,scenegraph:this.scenegraph,rendition:this.rendition,owner:this.owner,shareWith:this.shareWith}}addUsers(e){this.shareWith=[...this.shareWith,...e]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"generateID",function(){return r});const r=()=>{return String.fromCharCode(65+Math.floor(26*Math.random()))+Date.now()}},function(e,t){e.exports=require("os")},function(e,t,n){var r=n(40);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,"\r\n.row.wrap {\r\n flex-wrap: wrap;\r\n}\r\n\r\n.stipoDialog {\r\n width: 500px;\r\n\r\n}\r\n\r\n.stipoDialog.stipo-library-dialog {\r\n width: 1200px;\r\n }\r\n\r\n .stipoDialog.stipo-help-dialog {\r\n width: 600px;\r\n }\r\n\r\n.stipoDialog .h1 {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.stipoDialog .h1 img {\r\n width: 15px;\r\n height: 15px;\r\n flex: 0 0 15px;\r\n padding: 0;\r\n margin: 0;\r\n}\r\n\r\n.stipoDialog img.plugin-icon {\r\n border-radius: 4px;\r\n width: 48px;\r\n height: 48px;\r\n flex: 0 0 48px;\r\n overflow: hidden;\r\n}\r\n\r\n.stipoDialog .list {\r\n display: flex;\r\n flex-direction: row;\r\n}\r\n.stipoDialog .list .margin {\r\n margin-bottom: 0;\r\n margin-left: 0;\r\n}\r\n.stipoDialog .list span {\r\n flex: 0 0 auto;\r\n border: 1px solid transparent;\r\n}\r\n.stipoDialog .list .bullet {\r\n text-align: center;\r\n}\r\n\r\nstrong {\r\n font-weight: bold;\r\n}\r\n\r\n.stipoDialog .list + .list {\r\n margin-top: 0;\r\n}\r\n.stipoDialog textarea {\r\n height: 200px;\r\n}\r\n.stipoDialog .container {\r\n overflow-x: hidden;\r\n overflow-y: auto;\r\n height: 'auto';\r\n}\r\n\r\n.stipoDialog footer.flex-end {\r\n display: flex;\r\n align-items: flex-end;\r\n}\r\n\r\n.stipoDialog footer.space-between {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n width: 100%;\r\n}\r\n\r\n\r\n.stipoTags {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n}\r\n\r\n.stipoTag, .stipoInputTag {\r\n background-color:#EFEFEF;\r\n color: #969696;\r\n padding: 6px 6px;\r\n margin: 4px;\r\n font-size: 10px;\r\n line-height: 14px;\r\n border-radius: 8px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.StipoPagination {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,a=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r=n(43);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,"\r\n.row.wrap {\r\n flex-wrap: wrap;\r\n}\r\n\r\n.stipoDialog {\r\n width: 500px;\r\n\r\n}\r\n\r\n.stipoDialog.stipo-library-dialog {\r\n width: 1200px;\r\n height: 650px;\r\n }\r\n\r\n .stipoDialog.stipo-help-dialog {\r\n width: 600px;\r\n height: 700px;\r\n}\r\n\r\n.stipoDialog .h1 {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.stipoDialog .h1 img {\r\n width: 15px;\r\n height: 15px;\r\n flex: 0 0 15px;\r\n padding: 0;\r\n margin: 0;\r\n}\r\n\r\n.stipoDialog img.plugin-icon {\r\n border-radius: 4px;\r\n width: 48px;\r\n height: 48px;\r\n flex: 0 0 48px;\r\n overflow: hidden;\r\n}\r\n\r\n.stipoDialog .list {\r\n display: flex;\r\n flex-direction: row;\r\n}\r\n.stipoDialog .list .margin {\r\n margin-bottom: 0;\r\n margin-left: 0;\r\n}\r\n.stipoDialog .list span {\r\n flex: 0 0 auto;\r\n border: 1px solid transparent;\r\n}\r\n.stipoDialog .list .bullet {\r\n text-align: center;\r\n}\r\n\r\nstrong {\r\n font-weight: bold;\r\n}\r\n\r\n.stipoDialog .list + .list {\r\n margin-top: 0;\r\n}\r\n.stipoDialog textarea {\r\n height: 200px;\r\n}\r\n.stipoDialog .container {\r\n overflow-x: hidden;\r\n overflow-y: auto;\r\n height: 'auto';\r\n}\r\n\r\n.stipoDialog footer.flex-end {\r\n display: flex;\r\n align-items: flex-end;\r\n}\r\n\r\n.stipoDialog footer.space-between {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n width: 100%;\r\n}\r\n\r\n\r\n.stipoTags {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n}\r\n\r\n.stipoTag, .stipoInputTag {\r\n background-color:#EFEFEF;\r\n color: #969696;\r\n padding: 6px 6px;\r\n margin: 4px;\r\n font-size: 10px;\r\n line-height: 14px;\r\n border-radius: 8px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.StipoPagination {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}",""])},function(e,t,n){"use strict";
/** @license React v16.4.2
* react-dom.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(22),o=n(0),a=n(45),i=n(21),l=n(24),s=n(46),u=n(47),c=n(48),d=n(23);function p(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);r(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}o||p("227");var f={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,r,o,a,i,l,s){(function(e,t,n,r,o,a,i,l,s){this._hasCaughtError=!1,this._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}).apply(f,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,a,i,l,s){if(f.invokeGuardedCallback.apply(this,arguments),f.hasCaughtError()){var u=f.clearCaughtError();f._hasRethrowError||(f._hasRethrowError=!0,f._rethrowError=u)}},rethrowCaughtError:function(){return function(){if(f._hasRethrowError){var e=f._rethrowError;throw f._rethrowError=null,f._hasRethrowError=!1,e}}.apply(f,arguments)},hasCaughtError:function(){return f._hasCaughtError},clearCaughtError:function(){if(f._hasCaughtError){var e=f._caughtError;return f._caughtError=null,f._hasCaughtError=!1,e}p("198")}};var h=null,m={};function g(){if(h)for(var e in m){var t=m[e],n=h.indexOf(e);if(-1<n||p("96",e),!v[n])for(var r in t.extractEvents||p("97",e),v[n]=t,n=t.eventTypes){var o=void 0,a=n[r],i=t,l=r;b.hasOwnProperty(l)&&p("99",l),b[l]=a;var s=a.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&y(s[o],i,l);o=!0}else a.registrationName?(y(a.registrationName,i,l),o=!0):o=!1;o||p("98",r,e)}}}function y(e,t,n){w[e]&&p("100",e),w[e]=t,x[e]=t.eventTypes[n].dependencies}var v=[],b={},w={},x={};function C(e){h&&p("101"),h=Array.prototype.slice.call(e),g()}function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];m.hasOwnProperty(t)&&m[t]===r||(m[t]&&p("102",t),m[t]=r,n=!0)}n&&g()}var k={plugins:v,eventNameDispatchConfigs:b,registrationNameModules:w,registrationNameDependencies:x,possibleRegistrationNames:null,injectEventPluginOrder:C,injectEventPluginsByName:E},S=null,T=null,_=null;function N(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=_(r),f.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function D(e,t){return null==t&&p("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function P(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var I=null;function A(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)N(e,t,n[o],r[o]);else n&&N(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function O(e){return A(e,!0)}function F(e){return A(e,!1)}var R={injectEventPluginOrder:C,injectEventPluginsByName:E};function L(e,t){var n=e.stateNode;if(!n)return null;var r=S(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&p("231",t,typeof n),n)}function M(e,t){null!==e&&(I=D(I,e)),e=I,I=null,e&&(P(e,t?O:F),I&&p("95"),f.rethrowCaughtError())}function B(e,t,n,r){for(var o=null,a=0;a<v.length;a++){var i=v[a];i&&(i=i.extractEvents(e,t,n,r))&&(o=D(o,i))}M(o,!1)}var U={injection:R,getListener:L,runEventsInBatch:M,runExtractedEventsInBatch:B},j=Math.random().toString(36).slice(2),z="__reactInternalInstance$"+j,W="__reactEventHandlers$"+j;function H(e){if(e[z])return e[z];for(;!e[z];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[z]).tag||6===e.tag?e:null}function V(e){if(5===e.tag||6===e.tag)return e.stateNode;p("33")}function J(e){return e[W]||null}var K={precacheFiberNode:function(e,t){t[z]=e},getClosestInstanceFromNode:H,getInstanceFromNode:function(e){return!(e=e[z])||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:V,getFiberCurrentPropsFromNode:J,updateFiberProps:function(e,t){e[W]=t}};function Y(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function G(e,t,n){for(var r=[];e;)r.push(e),e=Y(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function $(e,t,n){(t=L(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=D(n._dispatchListeners,t),n._dispatchInstances=D(n._dispatchInstances,e))}function Q(e){e&&e.dispatchConfig.phasedRegistrationNames&&G(e._targetInst,$,e)}function q(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;G(t=t?Y(t):null,$,e)}}function X(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=L(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=D(n._dispatchListeners,t),n._dispatchInstances=D(n._dispatchInstances,e))}function Z(e){e&&e.dispatchConfig.registrationName&&X(e._targetInst,null,e)}function ee(e){P(e,Q)}function te(e,t,n,r){if(n&&r)e:{for(var o=n,a=r,i=0,l=o;l;l=Y(l))i++;l=0;for(var s=a;s;s=Y(s))l++;for(;0<i-l;)o=Y(o),i--;for(;0<l-i;)a=Y(a),l--;for(;i--;){if(o===a||o===a.alternate)break e;o=Y(o),a=Y(a)}o=null}else o=null;for(a=o,o=[];n&&n!==a&&(null===(i=n.alternate)||i!==a);)o.push(n),n=Y(n);for(n=[];r&&r!==a&&(null===(i=r.alternate)||i!==a);)n.push(r),r=Y(r);for(r=0;r<o.length;r++)X(o[r],"bubbled",e);for(e=n.length;0<e--;)X(n[e],"captured",t)}var ne={accumulateTwoPhaseDispatches:ee,accumulateTwoPhaseDispatchesSkipTarget:function(e){P(e,q)},accumulateEnterLeaveDispatches:te,accumulateDirectDispatches:function(e){P(e,Z)}};function re(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var oe={animationend:re("Animation","AnimationEnd"),animationiteration:re("Animation","AnimationIteration"),animationstart:re("Animation","AnimationStart"),transitionend:re("Transition","TransitionEnd")},ae={},ie={};function le(e){if(ae[e])return ae[e];if(!oe[e])return e;var t,n=oe[e];for(t in n)if(n.hasOwnProperty(t)&&t in ie)return ae[e]=n[t];return e}a.canUseDOM&&(ie=document.createElement("div").style,"AnimationEvent"in window||(delete oe.animationend.animation,delete oe.animationiteration.animation,delete oe.animationstart.animation),"TransitionEvent"in window||delete oe.transitionend.transition);var se=le("animationend"),ue=le("animationiteration"),ce=le("animationstart"),de=le("transitionend"),pe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fe=null;function he(){return!fe&&a.canUseDOM&&(fe="textContent"in document.documentElement?"textContent":"innerText"),fe}var me={_root:null,_startText:null,_fallbackText:null};function ge(){if(me._fallbackText)return me._fallbackText;var e,t,n=me._startText,r=n.length,o=ye(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return me._fallbackText=o.slice(e,1<t?1-t:void 0),me._fallbackText}function ye(){return"value"in me._root?me._root.value:me._root[he()]}var ve="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),be={type:null,target:null,currentTarget:l.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function we(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?l.thatReturnsTrue:l.thatReturnsFalse,this.isPropagationStopped=l.thatReturnsFalse,this}function xe(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Ce(e){e instanceof this||p("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Ee(e){e.eventPool=[],e.getPooled=xe,e.release=Ce}i(we.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=l.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=l.thatReturnsTrue)},persist:function(){this.isPersistent=l.thatReturnsTrue},isPersistent:l.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<ve.length;t++)this[ve[t]]=null}}),we.Interface=be,we.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Ee(n),n},Ee(we);var ke=we.extend({data:null}),Se=we.extend({data:null}),Te=[9,13,27,32],_e=a.canUseDOM&&"CompositionEvent"in window,Ne=null;a.canUseDOM&&"documentMode"in document&&(Ne=document.documentMode);var De=a.canUseDOM&&"TextEvent"in window&&!Ne,Pe=a.canUseDOM&&(!_e||Ne&&8<Ne&&11>=Ne),Ie=String.fromCharCode(32),Ae={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Oe=!1;function Fe(e,t){switch(e){case"keyup":return-1!==Te.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Re(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Le=!1;var Me={eventTypes:Ae,extractEvents:function(e,t,n,r){var o=void 0,a=void 0;if(_e)e:{switch(e){case"compositionstart":o=Ae.compositionStart;break e;case"compositionend":o=Ae.compositionEnd;break e;case"compositionupdate":o=Ae.compositionUpdate;break e}o=void 0}else Le?Fe(e,n)&&(o=Ae.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Ae.compositionStart);return o?(Pe&&(Le||o!==Ae.compositionStart?o===Ae.compositionEnd&&Le&&(a=ge()):(me._root=r,me._startText=ye(),Le=!0)),o=ke.getPooled(o,t,n,r),a?o.data=a:null!==(a=Re(n))&&(o.data=a),ee(o),a=o):a=null,(e=De?function(e,t){switch(e){case"compositionend":return Re(t);case"keypress":return 32!==t.which?null:(Oe=!0,Ie);case"textInput":return(e=t.data)===Ie&&Oe?null:e;default:return null}}(e,n):function(e,t){if(Le)return"compositionend"===e||!_e&&Fe(e,t)?(e=ge(),me._root=null,me._startText=null,me._fallbackText=null,Le=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pe?null:t.data;default:return null}}(e,n))?((t=Se.getPooled(Ae.beforeInput,t,n,r)).data=e,ee(t)):t=null,null===a?t:null===t?a:[a,t]}},Be=null,Ue={injectFiberControlledHostComponent:function(e){Be=e}},je=null,ze=null;function We(e){if(e=T(e)){Be&&"function"==typeof Be.restoreControlledState||p("194");var t=S(e.stateNode);Be.restoreControlledState(e.stateNode,e.type,t)}}function He(e){je?ze?ze.push(e):ze=[e]:je=e}function Ve(){return null!==je||null!==ze}function Je(){if(je){var e=je,t=ze;if(ze=je=null,We(e),t)for(e=0;e<t.length;e++)We(t[e])}}var Ke={injection:Ue,enqueueStateRestore:He,needsStateRestore:Ve,restoreStateIfNeeded:Je};function Ye(e,t){return e(t)}function Ge(e,t,n){return e(t,n)}function $e(){}var Qe=!1;function qe(e,t){if(Qe)return e(t);Qe=!0;try{return Ye(e,t)}finally{Qe=!1,Ve()&&($e(),Je())}}var Xe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ze(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Xe[e.type]:"textarea"===t}function et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function tt(e,t){return!(!a.canUseDOM||t&&!("addEventListener"in document))&&((t=(e="on"+e)in document)||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t)}function nt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function rt(e){e._valueTracker||(e._valueTracker=function(e){var t=nt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var at=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,it="function"==typeof Symbol&&Symbol.for,lt=it?Symbol.for("react.element"):60103,st=it?Symbol.for("react.portal"):60106,ut=it?Symbol.for("react.fragment"):60107,ct=it?Symbol.for("react.strict_mode"):60108,dt=it?Symbol.for("react.profiler"):60114,pt=it?Symbol.for("react.provider"):60109,ft=it?Symbol.for("react.context"):60110,ht=it?Symbol.for("react.async_mode"):60111,mt=it?Symbol.for("react.forward_ref"):60112,gt=it?Symbol.for("react.timeout"):60113,yt="function"==typeof Symbol&&Symbol.iterator;function vt(e){return null==e?null:"function"==typeof(e=yt&&e[yt]||e["@@iterator"])?e:null}function bt(e){var t=e.type;if("function"==typeof t)return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case ht:return"AsyncMode";case ft:return"Context.Consumer";case ut:return"ReactFragment";case st:return"ReactPortal";case dt:return"Profiler("+e.pendingProps.id+")";case pt:return"Context.Provider";case ct:return"StrictMode";case gt:return"Timeout"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case mt:return""!==(e=t.render.displayName||t.render.name||"")?"ForwardRef("+e+")":"ForwardRef"}return null}function wt(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,o=bt(e),a=null;n&&(a=bt(n)),o="\n in "+(o||"Unknown")+((n=r)?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":a?" (created by "+a+")":"");break e;default:o=""}t+=o,e=e.return}while(e);return t}var xt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ct=Object.prototype.hasOwnProperty,Et={},kt={};function St(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new St(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new St(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new St(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){Tt[e]=new St(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Tt[e]=new St(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new St(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){Tt[e]=new St(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){Tt[e]=new St(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){Tt[e]=new St(e,5,!1,e.toLowerCase(),null)});var _t=/[\-:]([a-z])/g;function Nt(e){return e[1].toUpperCase()}function Dt(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Ct.call(kt,e)||!Ct.call(Et,e)&&(xt.test(e)?kt[e]=!0:(Et[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Pt(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function It(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Lt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function At(e,t){null!=(t=t.checked)&&Dt(e,"checked",t,!1)}function Ot(e,t){At(e,t);var n=Lt(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?Rt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rt(e,t.type,Lt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ft(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){t=""+e._wrapperState.initialValue;var r=e.value;n||t===r||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==n&&(e.name=n)}function Rt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Lt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_t,Nt);Tt[t]=new St(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_t,Nt);Tt[t]=new St(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_t,Nt);Tt[t]=new St(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),Tt.tabIndex=new St("tabIndex",1,!1,"tabindex",null);var Mt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Bt(e,t,n){return(e=we.getPooled(Mt.change,e,t,n)).type="change",He(n),ee(e),e}var Ut=null,jt=null;function zt(e){M(e,!1)}function Wt(e){if(ot(V(e)))return e}function Ht(e,t){if("change"===e)return t}var Vt=!1;function Jt(){Ut&&(Ut.detachEvent("onpropertychange",Kt),jt=Ut=null)}function Kt(e){"value"===e.propertyName&&Wt(jt)&&qe(zt,e=Bt(jt,e,et(e)))}function Yt(e,t,n){"focus"===e?(Jt(),jt=n,(Ut=t).attachEvent("onpropertychange",Kt)):"blur"===e&&Jt()}function Gt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wt(jt)}function $t(e,t){if("click"===e)return Wt(t)}function Qt(e,t){if("input"===e||"change"===e)return Wt(t)}a.canUseDOM&&(Vt=tt("input")&&(!document.documentMode||9<document.documentMode));var qt={eventTypes:Mt,_isInputEventSupported:Vt,extractEvents:function(e,t,n,r){var o=t?V(t):window,a=void 0,i=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?a=Ht:Ze(o)?Vt?a=Qt:(a=Gt,i=Yt):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=$t),a&&(a=a(e,t)))return Bt(a,n,r);i&&i(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Rt(o,"number",o.value)}},Xt=we.extend({view:null,detail:null}),Zt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function en(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Zt[e])&&!!t[e]}function tn(){return en}var nn=Xt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:tn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),rn=nn.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),on={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},an={eventTypes:on,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,t=(t=n.relatedTarget||n.toElement)?H(t):null):a=null,a===t)return null;var i=void 0,l=void 0,s=void 0,u=void 0;return"mouseout"===e||"mouseover"===e?(i=nn,l=on.mouseLeave,s=on.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(i=rn,l=on.pointerLeave,s=on.pointerEnter,u="pointer"),e=null==a?o:V(a),o=null==t?o:V(t),(l=i.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=o,(n=i.getPooled(s,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,te(l,n,a,t),[l,n]}};function ln(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function sn(e){2!==ln(e)&&p("188")}function un(e){var t=e.alternate;if(!t)return 3===(t=ln(e))&&p("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var i=o.child;i;){if(i===n)return sn(o),e;if(i===r)return sn(o),t;i=i.sibling}p("188")}if(n.return!==r.return)n=o,r=a;else{i=!1;for(var l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}i||p("189")}}n.alternate!==r&&p("190")}return 3!==n.tag&&p("188"),n.stateNode.current===n?e:t}function cn(e){if(!(e=un(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var dn=we.extend({animationName:null,elapsedTime:null,pseudoElement:null}),pn=we.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fn=Xt.extend({relatedTarget:null});function hn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",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",224:"Meta"},yn=Xt.extend({key:function(e){if(e.key){var t=mn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=hn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:tn,charCode:function(e){return"keypress"===e.type?hn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?hn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),vn=nn.extend({dataTransfer:null}),bn=Xt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:tn}),wn=we.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),xn=nn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),Cn=[["abort","abort"],[se,"animationEnd"],[ue,"animationIteration"],[ce,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[de,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],En={},kn={};function Sn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},En[e]=t,kn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){Sn(e,!0)}),Cn.forEach(function(e){Sn(e,!1)});var Tn={eventTypes:En,isInteractiveTopLevelEventType:function(e){return void 0!==(e=kn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=kn[e];if(!o)return null;switch(e){case"keypress":if(0===hn(n))return null;case"keydown":case"keyup":e=yn;break;case"blur":case"focus":e=fn;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=bn;break;case se:case ue:case ce:e=dn;break;case de:e=wn;break;case"scroll":e=Xt;break;case"wheel":e=xn;break;case"copy":case"cut":case"paste":e=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=rn;break;default:e=we}return ee(t=e.getPooled(o,t,n,r)),t}},_n=Tn.isInteractiveTopLevelEventType,Nn=[];function Dn(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=H(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],B(e.topLevelType,t,e.nativeEvent,et(e.nativeEvent))}var Pn=!0;function In(e){Pn=!!e}function An(e,t){if(!t)return null;var n=(_n(e)?Fn:Rn).bind(null,e);t.addEventListener(e,n,!1)}function On(e,t){if(!t)return null;var n=(_n(e)?Fn:Rn).bind(null,e);t.addEventListener(e,n,!0)}function Fn(e,t){Ge(Rn,e,t)}function Rn(e,t){if(Pn){var n=et(t);if(null===(n=H(n))||"number"!=typeof n.tag||2===ln(n)||(n=null),Nn.length){var r=Nn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{qe(Dn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Nn.length&&Nn.push(e)}}}var Ln={get _enabled(){return Pn},setEnabled:In,isEnabled:function(){return Pn},trapBubbledEvent:An,trapCapturedEvent:On,dispatchEvent:Rn},Mn={},Bn=0,Un="_reactListenersID"+(""+Math.random()).slice(2);function jn(e){return Object.prototype.hasOwnProperty.call(e,Un)||(e[Un]=Bn++,Mn[e[Un]]={}),Mn[e[Un]]}function zn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wn(e,t){var n,r=zn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=zn(r)}}function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Vn=a.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Jn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Kn=null,Yn=null,Gn=null,$n=!1;function Qn(e,t){if($n||null==Kn||Kn!==s())return null;var n=Kn;return"selectionStart"in n&&Hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,Gn&&u(Gn,n)?null:(Gn=n,(e=we.getPooled(Jn.select,Yn,e,t)).type="select",e.target=Kn,ee(e),e)}var qn={eventTypes:Jn,extractEvents:function(e,t,n,r){var o,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!a)){e:{a=jn(a),o=x.onSelect;for(var i=0;i<o.length;i++){var l=o[i];if(!a.hasOwnProperty(l)||!a[l]){a=!1;break e}}a=!0}o=!a}if(o)return null;switch(a=t?V(t):window,e){case"focus":(Ze(a)||"true"===a.contentEditable)&&(Kn=a,Yn=t,Gn=null);break;case"blur":Gn=Yn=Kn=null;break;case"mousedown":$n=!0;break;case"contextmenu":case"mouseup":return $n=!1,Qn(n,r);case"selectionchange":if(Vn)break;case"keydown":case"keyup":return Qn(n,r)}return null}};R.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),S=K.getFiberCurrentPropsFromNode,T=K.getInstanceFromNode,_=K.getNodeFromInstance,R.injectEventPluginsByName({SimpleEventPlugin:Tn,EnterLeaveEventPlugin:an,ChangeEventPlugin:qt,SelectEventPlugin:qn,BeforeInputEventPlugin:Me});var Xn="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,Zn=Date,er=setTimeout,tr=clearTimeout,nr=void 0;if("object"==typeof performance&&"function"==typeof performance.now){var rr=performance;nr=function(){return rr.now()}}else nr=function(){return Zn.now()};var or=void 0,ar=void 0;if(a.canUseDOM){var ir="function"==typeof Xn?Xn:function(){p("276")},lr=null,sr=null,ur=-1,cr=!1,dr=!1,pr=0,fr=33,hr=33,mr={didTimeout:!1,timeRemaining:function(){var e=pr-nr();return 0<e?e:0}},gr=function(e,t){var n=e.scheduledCallback,r=!1;try{n(t),r=!0}finally{ar(e),r||(cr=!0,window.postMessage(yr,"*"))}},yr="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===yr&&(cr=!1,null!==lr)){if(null!==lr){var t=nr();if(!(-1===ur||ur>t)){e=-1;for(var n=[],r=lr;null!==r;){var o=r.timeoutTime;-1!==o&&o<=t?n.push(r):-1!==o&&(-1===e||o<e)&&(e=o),r=r.next}if(0<n.length)for(mr.didTimeout=!0,t=0,r=n.length;t<r;t++)gr(n[t],mr);ur=e}}for(e=nr();0<pr-e&&null!==lr;)e=lr,mr.didTimeout=!1,gr(e,mr),e=nr();null===lr||dr||(dr=!0,ir(vr))}},!1);var vr=function(e){dr=!1;var t=e-pr+hr;t<hr&&fr<hr?(8>t&&(t=8),hr=t<fr?fr:t):fr=t,pr=e+hr,cr||(cr=!0,window.postMessage(yr,"*"))};or=function(e,t){var n=-1;return null!=t&&"number"==typeof t.timeout&&(n=nr()+t.timeout),(-1===ur||-1!==n&&n<ur)&&(ur=n),e={scheduledCallback:e,timeoutTime:n,prev:null,next:null},null===lr?lr=e:null!==(t=e.prev=sr)&&(t.next=e),sr=e,dr||(dr=!0,ir(vr)),e},ar=function(e){if(null!==e.prev||lr===e){var t=e.next,n=e.prev;e.next=null,e.prev=null,null!==t?null!==n?(n.next=t,t.prev=n):(t.prev=null,lr=t):null!==n?(n.next=null,sr=n):sr=lr=null}}}else{var br=new Map;or=function(e){var t={scheduledCallback:e,timeoutTime:0,next:null,prev:null},n=er(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return br.set(e,n),t},ar=function(e){var t=br.get(e.scheduledCallback);br.delete(e),tr(t)}}function wr(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(t.children))&&(e.children=t),e}function xr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Cr(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function Er(e,t){return null!=t.dangerouslySetInnerHTML&&p("91"),i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kr(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&p("92"),Array.isArray(t)&&(1>=t.length||p("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Sr(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Tr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}var _r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Nr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Dr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Nr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Pr,Ir=void 0,Ar=(Pr=function(e,t){if(e.namespaceURI!==_r.svg||"innerHTML"in e)e.innerHTML=t;else{for((Ir=Ir||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=Ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Pr(e,t)})}:Pr);function Or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Fr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rr=["Webkit","ms","Moz","O"];function Lr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,a=t[n];o=null==a||"boolean"==typeof a||""===a?"":r||"number"!=typeof a||0===a||Fr.hasOwnProperty(o)&&Fr[o]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Fr).forEach(function(e){Rr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});var Mr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Br(e,t,n){t&&(Mr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&p("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&p("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||p("61")),null!=t.style&&"object"!=typeof t.style&&p("62",n()))}function Ur(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jr=l.thatReturns("");function zr(e,t){var n=jn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=x[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":On("scroll",e);break;case"focus":case"blur":On("focus",e),On("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":tt(o,!0)&&On(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===pe.indexOf(o)&&An(o,e)}n[o]=!0}}}function Wr(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===_r.html&&(r=Nr(e)),r===_r.html?"script"===e?((e=n.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function Hr(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function Vr(e,t,n,r){var o=Ur(t,n);switch(t){case"iframe":case"object":An("load",e);var a=n;break;case"video":case"audio":for(a=0;a<pe.length;a++)An(pe[a],e);a=n;break;case"source":An("error",e),a=n;break;case"img":case"image":case"link":An("error",e),An("load",e),a=n;break;case"form":An("reset",e),An("submit",e),a=n;break;case"details":An("toggle",e),a=n;break;case"input":It(e,n),a=Pt(e,n),An("invalid",e),zr(r,"onChange");break;case"option":a=wr(e,n);break;case"select":Cr(e,n),a=i({},n,{value:void 0}),An("invalid",e),zr(r,"onChange");break;case"textarea":kr(e,n),a=Er(e,n),An("invalid",e),zr(r,"onChange");break;default:a=n}Br(t,a,jr);var s,u=a;for(s in u)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?Lr(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&Ar(e,c):"children"===s?"string"==typeof c?("textarea"!==t||""!==c)&&Or(e,c):"number"==typeof c&&Or(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(w.hasOwnProperty(s)?null!=c&&zr(r,s):null!=c&&Dt(e,s,c,o))}switch(t){case"input":rt(e),Ft(e,n,!1);break;case"textarea":rt(e),Tr(e);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,null!=(t=n.value)?xr(e,!!n.multiple,t,!1):null!=n.defaultValue&&xr(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=l)}}function Jr(e,t,n,r,o){var a=null;switch(t){case"input":n=Pt(e,n),r=Pt(e,r),a=[];break;case"option":n=wr(e,n),r=wr(e,r),a=[];break;case"select":n=i({},n,{value:void 0}),r=i({},r,{value:void 0}),a=[];break;case"textarea":n=Er(e,n),r=Er(e,r),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=l)}Br(t,r,jr),t=e=void 0;var s=null;for(e in n)if(!r.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var u=n[e];for(t in u)u.hasOwnProperty(t)&&(s||(s={}),s[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(w.hasOwnProperty(e)?a||(a=[]):(a=a||[]).push(e,null));for(e in r){var c=r[e];if(u=null!=n?n[e]:void 0,r.hasOwnProperty(e)&&c!==u&&(null!=c||null!=u))if("style"===e)if(u){for(t in u)!u.hasOwnProperty(t)||c&&c.hasOwnProperty(t)||(s||(s={}),s[t]="");for(t in c)c.hasOwnProperty(t)&&u[t]!==c[t]&&(s||(s={}),s[t]=c[t])}else s||(a||(a=[]),a.push(e,s)),s=c;else"dangerouslySetInnerHTML"===e?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(e,""+c)):"children"===e?u===c||"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(e,""+c):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(w.hasOwnProperty(e)?(null!=c&&zr(o,e),a||u===c||(a=[])):(a=a||[]).push(e,c))}return s&&(a=a||[]).push("style",s),a}function Kr(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&At(e,o),Ur(n,r),r=Ur(n,o);for(var a=0;a<t.length;a+=2){var i=t[a],l=t[a+1];"style"===i?Lr(e,l):"dangerouslySetInnerHTML"===i?Ar(e,l):"children"===i?Or(e,l):Dt(e,i,l,r)}switch(n){case"input":Ot(e,o);break;case"textarea":Sr(e,o);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,null!=(n=o.value)?xr(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?xr(e,!!o.multiple,o.defaultValue,!0):xr(e,!!o.multiple,o.multiple?[]:"",!1))}}function Yr(e,t,n,r,o){switch(t){case"iframe":case"object":An("load",e);break;case"video":case"audio":for(r=0;r<pe.length;r++)An(pe[r],e);break;case"source":An("error",e);break;case"img":case"image":case"link":An("error",e),An("load",e);break;case"form":An("reset",e),An("submit",e);break;case"details":An("toggle",e);break;case"input":It(e,n),An("invalid",e),zr(o,"onChange");break;case"select":Cr(e,n),An("invalid",e),zr(o,"onChange");break;case"textarea":kr(e,n),An("invalid",e),zr(o,"onChange")}for(var a in Br(t,n,jr),r=null,n)if(n.hasOwnProperty(a)){var i=n[a];"children"===a?"string"==typeof i?e.textContent!==i&&(r=["children",i]):"number"==typeof i&&e.textContent!==""+i&&(r=["children",""+i]):w.hasOwnProperty(a)&&null!=i&&zr(o,a)}switch(t){case"input":rt(e),Ft(e,n,!0);break;case"textarea":rt(e),Tr(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=l)}return r}function Gr(e,t){return e.nodeValue!==t}var $r={createElement:Wr,createTextNode:Hr,setInitialProperties:Vr,diffProperties:Jr,updateProperties:Kr,diffHydratedProperties:Yr,diffHydratedText:Gr,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Ot(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=J(r);o||p("90"),ot(r),Ot(r,o)}}}break;case"textarea":Sr(e,n);break;case"select":null!=(t=n.value)&&xr(e,!!n.multiple,t,!1)}}},Qr=null,qr=null;function Xr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Zr(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html}var eo=nr,to=or,no=ar;function ro(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function oo(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var ao=[],io=-1;function lo(e){return{current:e}}function so(e){0>io||(e.current=ao[io],ao[io]=null,io--)}function uo(e,t){ao[++io]=e.current,e.current=t}var co=lo(d),po=lo(!1),fo=d;function ho(e){return go(e)?fo:co.current}function mo(e,t){var n=e.type.contextTypes;if(!n)return d;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function go(e){return 2===e.tag&&null!=e.type.childContextTypes}function yo(e){go(e)&&(so(po),so(co))}function vo(e){so(po),so(co)}function bo(e,t,n){co.current!==d&&p("168"),uo(co,t),uo(po,n)}function wo(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var o in n=n.getChildContext())o in r||p("108",bt(e)||"Unknown",o);return i({},t,n)}function xo(e){if(!go(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||d,fo=co.current,uo(co,t),uo(po,po.current),!0}function Co(e,t){var n=e.stateNode;if(n||p("169"),t){var r=wo(e,fo);n.__reactInternalMemoizedMergedChildContext=r,so(po),so(co),uo(co,r)}else so(po);uo(po,t)}function Eo(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function ko(e,t,n){var r=e.alternate;return null===r?((r=new Eo(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function So(e,t,n){var r=e.type,o=e.key;if(e=e.props,"function"==typeof r)var a=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)a=5;else switch(r){case ut:return To(e.children,t,n,o);case ht:a=11,t|=3;break;case ct:a=11,t|=2;break;case dt:return(r=new Eo(15,e,o,4|t)).type=dt,r.expirationTime=n,r;case gt:a=16,t|=2;break;default:e:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case pt:a=13;break e;case ft:a=12;break e;case mt:a=14;break e;default:p("130",null==r?r:typeof r,"")}a=void 0}}return(t=new Eo(a,e,o,t)).type=r,t.expirationTime=n,t}function To(e,t,n,r){return(e=new Eo(10,e,r,t)).expirationTime=n,e}function _o(e,t,n){return(e=new Eo(6,e,null,t)).expirationTime=n,e}function No(e,t,n){return(t=new Eo(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Do(e,t,n){return e={current:t=new Eo(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}var Po=null,Io=null;function Ao(e){return function(t){try{return e(t)}catch(e){}}}function Oo(e){"function"==typeof Po&&Po(e)}function Fo(e){"function"==typeof Io&&Io(e)}var Ro=!1;function Lo(e){return{expirationTime:0,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Mo(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Bo(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Uo(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n)}function jo(e,t,n){var r=e.alternate;if(null===r){var o=e.updateQueue,a=null;null===o&&(o=e.updateQueue=Lo(e.memoizedState))}else o=e.updateQueue,a=r.updateQueue,null===o?null===a?(o=e.updateQueue=Lo(e.memoizedState),a=r.updateQueue=Lo(r.memoizedState)):o=e.updateQueue=Mo(a):null===a&&(a=r.updateQueue=Mo(o));null===a||o===a?Uo(o,t,n):null===o.lastUpdate||null===a.lastUpdate?(Uo(o,t,n),Uo(a,t,n)):(Uo(o,t,n),a.lastUpdate=t)}function zo(e,t,n){var r=e.updateQueue;null===(r=null===r?e.updateQueue=Lo(e.memoizedState):Wo(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Wo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Mo(t)),t}function Ho(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:Ro=!0}return r}function Vo(e,t,n,r,o){if(Ro=!1,!(0===t.expirationTime||t.expirationTime>o)){for(var a=(t=Wo(e,t)).baseState,i=null,l=0,s=t.firstUpdate,u=a;null!==s;){var c=s.expirationTime;c>o?(null===i&&(i=s,a=u),(0===l||l>c)&&(l=c)):(u=Ho(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var d=s.expirationTime;d>o?(null===c&&(c=s,null===i&&(a=u)),(0===l||l>d)&&(l=d)):(u=Ho(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===i&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===c&&(a=u),t.baseState=a,t.firstUpdate=i,t.firstCapturedUpdate=c,t.expirationTime=l,e.memoizedState=u}}function Jo(e,t){"function"!=typeof e&&p("191",e),e.call(t)}function Ko(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,Jo(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)null!==(t=e.callback)&&(e.callback=null,Jo(t,n)),e=e.nextEffect}function Yo(e,t){return{value:e,source:t,stack:wt(t)}}var Go=lo(null),$o=lo(null),Qo=lo(0);function qo(e){var t=e.type._context;uo(Qo,t._changedBits),uo($o,t._currentValue),uo(Go,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function Xo(e){var t=Qo.current,n=$o.current;so(Go),so($o),so(Qo),(e=e.type._context)._currentValue=n,e._changedBits=t}var Zo={},ea=lo(Zo),ta=lo(Zo),na=lo(Zo);function ra(e){return e===Zo&&p("174"),e}function oa(e,t){uo(na,t),uo(ta,e),uo(ea,Zo);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dr(null,"");break;default:t=Dr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}so(ea),uo(ea,t)}function aa(e){so(ea),so(ta),so(na)}function ia(e){ta.current===e&&(so(ea),so(ta))}function la(e,t,n){var r=e.memoizedState;r=null==(t=t(n,r))?r:i({},r,t),e.memoizedState=r,null!==(e=e.updateQueue)&&0===e.expirationTime&&(e.baseState=r)}var sa={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===ln(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=wi(),o=Bo(r=vi(r,e));o.payload=t,null!=n&&(o.callback=n),jo(e,o,r),bi(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=wi(),o=Bo(r=vi(r,e));o.tag=1,o.payload=t,null!=n&&(o.callback=n),jo(e,o,r),bi(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=wi(),r=Bo(n=vi(n,e));r.tag=2,null!=t&&(r.callback=t),jo(e,r,n),bi(e,n)}};function ua(e,t,n,r,o,a){var i=e.stateNode;return e=e.type,"function"==typeof i.shouldComponentUpdate?i.shouldComponentUpdate(n,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!u(t,n)||!u(r,o))}function ca(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&sa.enqueueReplaceState(t,t.state,null)}function da(e,t){var n=e.type,r=e.stateNode,o=e.pendingProps,a=ho(e);r.props=o,r.state=e.memoizedState,r.refs=d,r.context=mo(e,a),null!==(a=e.updateQueue)&&(Vo(e,a,o,r,t),r.state=e.memoizedState),"function"==typeof(a=e.type.getDerivedStateFromProps)&&(la(e,a,o),r.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&sa.enqueueReplaceState(r,r.state,null),null!==(a=e.updateQueue)&&(Vo(e,a,o,r,t),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var pa=Array.isArray;function fa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(2!==n.tag&&p("110"),r=n.stateNode),r||p("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs===d?r.refs={}:r.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&p("148"),n._owner||p("254",e)}return e}function ha(e,t){"textarea"!==e.type&&p("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ma(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=ko(e,t,n)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function i(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=_o(n,e.mode,r)).return=e,t):((t=o(t,n,r)).return=e,t)}function s(e,t,n,r){return null!==t&&t.type===n.type?((r=o(t,n.props,r)).ref=fa(e,t,n),r.return=e,r):((r=So(n,e.mode,r)).ref=fa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=No(n,e.mode,r)).return=e,t):((t=o(t,n.children||[],r)).return=e,t)}function c(e,t,n,r,a){return null===t||10!==t.tag?((t=To(n,e.mode,r,a)).return=e,t):((t=o(t,n,r)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=_o(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case lt:return(n=So(t,e.mode,n)).ref=fa(e,null,t),n.return=e,n;case st:return(t=No(t,e.mode,n)).return=e,t}if(pa(t)||vt(t))return(t=To(t,e.mode,n,null)).return=e,t;ha(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case lt:return n.key===o?n.type===ut?c(e,t,n.props.children,r,o):s(e,t,n,r):null;case st:return n.key===o?u(e,t,n,r):null}if(pa(n)||vt(n))return null!==o?null:c(e,t,n,r,null);ha(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case lt:return e=e.get(null===r.key?n:r.key)||null,r.type===ut?c(t,e,r.props.children,o,r.key):s(t,e,r,o);case st:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(pa(r)||vt(r))return c(t,e=e.get(n)||null,r,o,null);ha(t,r)}return null}function m(o,i,l,s){for(var u=null,c=null,p=i,m=i=0,g=null;null!==p&&m<l.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(o,p,l[m],s);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(o,p),i=a(y,i,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===l.length)return n(o,p),u;if(null===p){for(;m<l.length;m++)(p=d(o,l[m],s))&&(i=a(p,i,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(o,p);m<l.length;m++)(g=h(p,o,m,l[m],s))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach(function(e){return t(o,e)}),u}function g(o,i,l,s){var u=vt(l);"function"!=typeof u&&p("150"),null==(l=u.call(l))&&p("151");for(var c=u=null,m=i,g=i=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(o,m,v.value,s);if(null===b){m||(m=y);break}e&&m&&null===b.alternate&&t(o,m),i=a(b,i,g),null===c?u=b:c.sibling=b,c=b,m=y}if(v.done)return n(o,m),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,g),null===c?u=v:c.sibling=v,c=v);return u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach(function(e){return t(o,e)}),u}return function(e,r,a,l){var s="object"==typeof a&&null!==a&&a.type===ut&&null===a.key;s&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case lt:e:{for(u=a.key,s=r;null!==s;){if(s.key===u){if(10===s.tag?a.type===ut:s.type===a.type){n(e,s.sibling),(r=o(s,a.type===ut?a.props.children:a.props,l)).ref=fa(e,s,a),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}a.type===ut?((r=To(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=So(a,e.mode,l)).ref=fa(e,r,a),l.return=e,e=l)}return i(e);case st:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[],l)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=No(a,e.mode,l)).return=e,e=r}return i(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a,l)).return=e,e=r):(n(e,r),(r=_o(a,e.mode,l)).return=e,e=r),i(e);if(pa(a))return m(e,r,a,l);if(vt(a))return g(e,r,a,l);if(u&&ha(e,a),void 0===a&&!s)switch(e.tag){case 2:case 1:p("152",(l=e.type).displayName||l.name||"Component")}return n(e,r)}}var ga=ma(!0),ya=ma(!1),va=null,ba=null,wa=!1;function xa(e,t){var n=new Eo(5,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ea(e){if(wa){var t=ba;if(t){var n=t;if(!Ca(e,t)){if(!(t=ro(n))||!Ca(e,t))return e.effectTag|=2,wa=!1,void(va=e);xa(va,n)}va=e,ba=oo(t)}else e.effectTag|=2,wa=!1,va=e}}function ka(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;va=e}function Sa(e){if(e!==va)return!1;if(!wa)return ka(e),wa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Zr(t,e.memoizedProps))for(t=ba;t;)xa(e,t),t=ro(t);return ka(e),ba=va?ro(e.stateNode):null,!0}function Ta(){ba=va=null,wa=!1}function _a(e,t,n){Na(e,t,n,t.expirationTime)}function Na(e,t,n,r){t.child=null===e?ya(t,null,n,r):ga(t,e.child,n,r)}function Da(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Pa(e,t,n,r,o){Da(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return r&&Co(t,!1),Oa(e,t);n=t.stateNode,at.current=t;var i=a?null:n.render();return t.effectTag|=1,a&&(Na(e,t,null,o),t.child=null),Na(e,t,i,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&Co(t,!0),t.child}function Ia(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),oa(e,t.containerInfo)}function Aa(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){switch(o.tag){case 12:var a=0|o.stateNode;if(o.type===t&&0!=(a&n)){for(a=o;null!==a;){var i=a.alternate;if(0===a.expirationTime||a.expirationTime>r)a.expirationTime=r,null!==i&&(0===i.expirationTime||i.expirationTime>r)&&(i.expirationTime=r);else{if(null===i||!(0===i.expirationTime||i.expirationTime>r))break;i.expirationTime=r}a=a.return}a=null}else a=o.child;break;case 13:a=o.type===e.type?null:o.child;break;default:a=o.child}if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===e){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}}function Oa(e,t){if(null!==e&&t.child!==e.child&&p("153"),null!==t.child){var n=ko(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ko(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Fa(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:Ia(t);break;case 2:xo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 13:qo(t)}return null}switch(t.tag){case 0:null!==e&&p("155");var r=t.type,o=t.pendingProps,a=ho(t);return r=r(o,a=mo(t,a)),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(a=t.type,t.tag=2,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(a=a.getDerivedStateFromProps)&&la(t,a,o),o=xo(t),r.updater=sa,t.stateNode=r,r._reactInternalFiber=t,da(t,n),e=Pa(e,t,!0,o,n)):(t.tag=1,_a(e,t,r),t.memoizedProps=o,e=t.child),e;case 1:return o=t.type,n=t.pendingProps,po.current||t.memoizedProps!==n?(o=o(n,r=mo(t,r=ho(t))),t.effectTag|=1,_a(e,t,o),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 2:if(o=xo(t),null===e)if(null===t.stateNode){var i=t.pendingProps,l=t.type;r=ho(t);var s=2===t.tag&&null!=t.type.contextTypes;i=new l(i,a=s?mo(t,r):d),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=sa,t.stateNode=i,i._reactInternalFiber=t,s&&((s=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,s.__reactInternalMemoizedMaskedChildContext=a),da(t,n),r=!0}else{l=t.type,r=t.stateNode,s=t.memoizedProps,a=t.pendingProps,r.props=s;var u=r.context;i=mo(t,i=ho(t));var c=l.getDerivedStateFromProps;(l="function"==typeof c||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(s!==a||u!==i)&&ca(t,r,a,i),Ro=!1;var f=t.memoizedState;u=r.state=f;var h=t.updateQueue;null!==h&&(Vo(t,h,a,r,n),u=t.memoizedState),s!==a||f!==u||po.current||Ro?("function"==typeof c&&(la(t,c,a),u=t.memoizedState),(s=Ro||ua(t,s,a,f,u,i))?(l||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.effectTag|=4)):("function"==typeof r.componentDidMount&&(t.effectTag|=4),t.memoizedProps=a,t.memoizedState=u),r.props=a,r.state=u,r.context=i,r=s):("function"==typeof r.componentDidMount&&(t.effectTag|=4),r=!1)}else l=t.type,r=t.stateNode,a=t.memoizedProps,s=t.pendingProps,r.props=a,u=r.context,i=mo(t,i=ho(t)),(l="function"==typeof(c=l.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==s||u!==i)&&ca(t,r,s,i),Ro=!1,u=t.memoizedState,f=r.state=u,null!==(h=t.updateQueue)&&(Vo(t,h,s,r,n),f=t.memoizedState),a!==s||u!==f||po.current||Ro?("function"==typeof c&&(la(t,c,s),f=t.memoizedState),(c=Ro||ua(t,a,s,u,f,i))?(l||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(s,f,i),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(s,f,i)),"function"==typeof r.componentDidUpdate&&(t.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=s,t.memoizedState=f),r.props=s,r.state=f,r.context=i,r=c):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Pa(e,t,r,o,n);case 3:return Ia(t),null!==(o=t.updateQueue)?(r=null!==(r=t.memoizedState)?r.element:null,Vo(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(Ta(),e=Oa(e,t)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(ba=oo(t.stateNode.containerInfo),va=t,r=wa=!0),r?(t.effectTag|=2,t.child=ya(t,null,o,n)):(Ta(),_a(e,t,o)),e=t.child)):(Ta(),e=Oa(e,t)),e;case 5:return ra(na.current),(o=ra(ea.current))!==(r=Dr(o,t.type))&&(uo(ta,t),uo(ea,r)),null===e&&Ea(t),o=t.type,s=t.memoizedProps,r=t.pendingProps,a=null!==e?e.memoizedProps:null,po.current||s!==r||((s=1&t.mode&&!!r.hidden)&&(t.expirationTime=1073741823),s&&1073741823===n)?(s=r.children,Zr(o,r)?s=null:a&&Zr(o,a)&&(t.effectTag|=16),Da(e,t),1073741823!==n&&1&t.mode&&r.hidden?(t.expirationTime=1073741823,t.memoizedProps=r,e=null):(_a(e,t,s),t.memoizedProps=r,e=t.child)):e=Oa(e,t),e;case 6:return null===e&&Ea(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return oa(t,t.stateNode.containerInfo),o=t.pendingProps,po.current||t.memoizedProps!==o?(null===e?t.child=ga(t,null,o,n):_a(e,t,o),t.memoizedProps=o,e=t.child):e=Oa(e,t),e;case 14:return o=t.type.render,n=t.pendingProps,r=t.ref,po.current||t.memoizedProps!==n||r!==(null!==e?e.ref:null)?(_a(e,t,o=o(n,r)),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 10:return n=t.pendingProps,po.current||t.memoizedProps!==n?(_a(e,t,n),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 11:return n=t.pendingProps.children,po.current||null!==n&&t.memoizedProps!==n?(_a(e,t,n),t.memoizedProps=n,e=t.child):e=Oa(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=Oa(e,t):(_a(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return function(e,t,n){var r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=!0;if(po.current)i=!1;else if(a===o)return t.stateNode=0,qo(t),Oa(e,t);var l=o.value;if(t.memoizedProps=o,null===a)l=1073741823;else if(a.value===o.value){if(a.children===o.children&&i)return t.stateNode=0,qo(t),Oa(e,t);l=0}else{var s=a.value;if(s===l&&(0!==s||1/s==1/l)||s!=s&&l!=l){if(a.children===o.children&&i)return t.stateNode=0,qo(t),Oa(e,t);l=0}else if(l="function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,l):1073741823,0==(l|=0)){if(a.children===o.children&&i)return t.stateNode=0,qo(t),Oa(e,t)}else Aa(t,r,l,n)}return t.stateNode=l,qo(t),_a(e,t,o.children),t.child}(e,t,n);case 12:e:if(r=t.type,a=t.pendingProps,s=t.memoizedProps,o=r._currentValue,i=r._changedBits,po.current||0!==i||s!==a){if(t.memoizedProps=a,null==(l=a.unstable_observedBits)&&(l=1073741823),t.stateNode=l,0!=(i&l))Aa(t,r,i,n);else if(s===a){e=Oa(e,t);break e}n=(n=a.children)(o),t.effectTag|=1,_a(e,t,n),e=t.child}else e=Oa(e,t);return e;default:p("156")}}function Ra(e){e.effectTag|=4}var La=void 0,Ma=void 0,Ba=void 0;function Ua(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return yo(t),null;case 3:aa(),vo();var r=t.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Sa(t),t.effectTag&=-3),La(t),null;case 5:ia(t),r=ra(na.current);var o=t.type;if(null!==e&&null!=t.stateNode){var a=e.memoizedProps,i=t.stateNode,l=ra(ea.current);i=Jr(i,o,a,n,r),Ma(e,t,i,o,a,n,r,l),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return null===t.stateNode&&p("166"),null;if(e=ra(ea.current),Sa(t))n=t.stateNode,o=t.type,a=t.memoizedProps,n[z]=t,n[W]=a,r=Yr(n,o,a,e,r),t.updateQueue=r,null!==r&&Ra(t);else{(e=Wr(o,n,r,e))[z]=t,e[W]=n;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}Vr(e,o,n,r),Xr(o,n)&&Ra(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ba(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return null===t.stateNode&&p("166"),null;r=ra(na.current),ra(ea.current),Sa(t)?(r=t.stateNode,n=t.memoizedProps,r[z]=t,Gr(r,n)&&Ra(t)):((r=Hr(n,r))[z]=t,t.stateNode=r)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return aa(),La(t),null;case 13:return Xo(t),null;case 12:return null;case 0:p("167");default:p("156")}}function ja(e,t){var n=t.source;null===t.stack&&null!==n&&wt(n),null!==n&&bt(n),t=t.value,null!==e&&2===e.tag&&bt(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function za(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){gi(e,t)}else t.current=null}function Wa(e){switch(Fo(e),e.tag){case 2:za(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){gi(e,t)}break;case 5:za(e);break;case 4:Ja(e)}}function Ha(e){return 5===e.tag||3===e.tag||4===e.tag}function Va(e){e:{for(var t=e.return;null!==t;){if(Ha(t)){var n=t;break e}t=t.return}p("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:p("161")}16&n.effectTag&&(Or(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ha(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var a=t,i=o.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(i,l):a.insertBefore(i,l)}else t.insertBefore(o.stateNode,n);else r?(a=t,i=o.stateNode,8===a.nodeType?a.parentNode.insertBefore(i,a):a.appendChild(i)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Ja(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&p("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var a=t,i=a;;)if(Wa(i),null!==i.child&&4!==i.tag)i.child.return=i,i=i.child;else{if(i===a)break;for(;null===i.sibling;){if(null===i.return||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}o?(a=r,i=t.stateNode,8===a.nodeType?a.parentNode.removeChild(i):a.removeChild(i)):r.removeChild(t.stateNode)}else if(4===t.tag?r=t.stateNode.containerInfo:Wa(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ka(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&(n[W]=r,Kr(n,a,o,e,r))}break;case 6:null===t.stateNode&&p("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 15:case 16:break;default:p("163")}}function Ya(e,t,n){(n=Bo(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zi(r),ja(e,t)},n}function Ga(e,t,n){(n=Bo(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===di?di=new Set([this]):di.add(this);var n=t.value,r=t.stack;ja(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function $a(e,t,n,r,o,a){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=Yo(r,n),e=t;do{switch(e.tag){case 3:return e.effectTag|=1024,void zo(e,r=Ya(e,r,a),a);case 2:if(t=r,n=e.stateNode,0==(64&e.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===di||!di.has(n)))return e.effectTag|=1024,void zo(e,r=Ga(e,t,a),a)}e=e.return}while(null!==e)}function Qa(e){switch(e.tag){case 2:yo(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return aa(),vo(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return ia(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 4:return aa(),null;case 13:return Xo(e),null;default:return null}}La=function(){},Ma=function(e,t,n){(t.updateQueue=n)&&Ra(t)},Ba=function(e,t,n,r){n!==r&&Ra(t)};var qa=eo(),Xa=2,Za=qa,ei=0,ti=0,ni=!1,ri=null,oi=null,ai=0,ii=-1,li=!1,si=null,ui=!1,ci=!1,di=null;function pi(){if(null!==ri)for(var e=ri.return;null!==e;){var t=e;switch(t.tag){case 2:yo(t);break;case 3:aa(),vo();break;case 5:ia(t);break;case 4:aa();break;case 13:Xo(t)}e=e.return}oi=null,ai=0,ii=-1,li=!1,ri=null,ci=!1}function fi(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){t=Ua(t,e);var o=e;if(1073741823===ai||1073741823!==o.expirationTime){var a=0;switch(o.tag){case 3:case 2:var i=o.updateQueue;null!==i&&(a=i.expirationTime)}for(i=o.child;null!==i;)0!==i.expirationTime&&(0===a||a>i.expirationTime)&&(a=i.expirationTime),i=i.sibling;o.expirationTime=a}if(null!==t)return t;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){ci=!0;break}e=n}else{if(null!==(e=Qa(e)))return e.effectTag&=511,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;e=n}}return null}function hi(e){var t=Fa(e.alternate,e,ai);return null===t&&(t=fi(e)),at.current=null,t}function mi(e,t,n){ni&&p("243"),ni=!0,t===ai&&e===oi&&null!==ri||(pi(),ai=t,ii=-1,ri=ko((oi=e).current,null,ai),e.pendingCommitExpirationTime=0);var r=!1;for(li=!n||ai<=Xa;;){try{if(n)for(;null!==ri&&!Xi();)ri=hi(ri);else for(;null!==ri;)ri=hi(ri)}catch(t){if(null===ri)r=!0,Zi(t);else{null===ri&&p("271");var o=(n=ri).return;if(null===o){r=!0,Zi(t);break}$a(e,o,n,t,0,ai),ri=fi(n)}}break}if(ni=!1,r)return null;if(null===ri){if(ci)return e.pendingCommitExpirationTime=t,e.current.alternate;li&&p("262"),0<=ii&&setTimeout(function(){var t=e.current.expirationTime;0!==t&&(0===e.remainingExpirationTime||e.remainingExpirationTime<t)&&Hi(e,t)},ii),function(e){null===Ni&&p("246"),Ni.remainingExpirationTime=e}(e.current.expirationTime)}return null}function gi(e,t){var n;e:{for(ni&&!ui&&p("263"),n=e.return;null!==n;){switch(n.tag){case 2:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===di||!di.has(r))){jo(n,e=Ga(n,e=Yo(t,e),1),1),bi(n,1),n=void 0;break e}break;case 3:jo(n,e=Ya(n,e=Yo(t,e),1),1),bi(n,1),n=void 0;break e}n=n.return}3===e.tag&&(jo(e,n=Ya(e,n=Yo(t,e),1),1),bi(e,1)),n=void 0}return n}function yi(){var e=2+25*(1+((wi()-2+500)/25|0));return e<=ei&&(e=ei+1),ei=e}function vi(e,t){return e=0!==ti?ti:ni?ui?1:ai:1&t.mode?Mi?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)):1,Mi&&(0===Pi||e>Pi)&&(Pi=e),e}function bi(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!ni&&0!==ai&&t<ai&&pi();var r=n.current.expirationTime;ni&&!ui&&oi===n||Hi(n,r),ji>Ui&&p("185")}e=e.return}}function wi(){return Za=eo()-qa,Xa=2+(Za/10|0)}function xi(e){var t=ti;ti=2+25*(1+((wi()-2+500)/25|0));try{return e()}finally{ti=t}}function Ci(e,t,n,r,o){var a=ti;ti=1;try{return e(t,n,r,o)}finally{ti=a}}var Ei=null,ki=null,Si=0,Ti=void 0,_i=!1,Ni=null,Di=0,Pi=0,Ii=!1,Ai=!1,Oi=null,Fi=null,Ri=!1,Li=!1,Mi=!1,Bi=null,Ui=1e3,ji=0,zi=1;function Wi(e){if(0!==Si){if(e>Si)return;null!==Ti&&no(Ti)}var t=eo()-qa;Si=e,Ti=to(Ji,{timeout:10*(e-2)-t})}function Hi(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===ki?(Ei=ki=e,e.nextScheduledRoot=e):(ki=ki.nextScheduledRoot=e).nextScheduledRoot=Ei;else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}_i||(Ri?Li&&(Ni=e,Di=1,Qi(e,1,!1)):1===t?Ki():Wi(t))}function Vi(){var e=0,t=null;if(null!==ki)for(var n=ki,r=Ei;null!==r;){var o=r.remainingExpirationTime;if(0===o){if((null===n||null===ki)&&p("244"),r===r.nextScheduledRoot){Ei=ki=r.nextScheduledRoot=null;break}if(r===Ei)Ei=o=r.nextScheduledRoot,ki.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===ki){(ki=n).nextScheduledRoot=Ei,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||o<e)&&(e=o,t=r),r===ki)break;n=r,r=r.nextScheduledRoot}}null!==(n=Ni)&&n===t&&1===e?ji++:ji=0,Ni=t,Di=e}function Ji(e){Yi(0,!0,e)}function Ki(){Yi(1,!1,null)}function Yi(e,t,n){if(Fi=n,Vi(),t)for(;null!==Ni&&0!==Di&&(0===e||e>=Di)&&(!Ii||wi()>=Di);)wi(),Qi(Ni,Di,!Ii),Vi();else for(;null!==Ni&&0!==Di&&(0===e||e>=Di);)Qi(Ni,Di,!1),Vi();null!==Fi&&(Si=0,Ti=null),0!==Di&&Wi(Di),Fi=null,Ii=!1,$i()}function Gi(e,t){_i&&p("253"),Ni=e,Di=t,Qi(e,t,!1),Ki(),$i()}function $i(){if(ji=0,null!==Bi){var e=Bi;Bi=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Ai||(Ai=!0,Oi=e)}}}if(Ai)throw e=Oi,Oi=null,Ai=!1,e}function Qi(e,t,n){_i&&p("245"),_i=!0,n?null!==(n=e.finishedWork)?qi(e,n,t):null!==(n=mi(e,t,!0))&&(Xi()?e.finishedWork=n:qi(e,n,t)):null!==(n=e.finishedWork)?qi(e,n,t):null!==(n=mi(e,t,!1))&&qi(e,n,t),_i=!1}function qi(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===Bi?Bi=[r]:Bi.push(r),r._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);if(e.finishedWork=null,ui=ni=!0,(n=t.stateNode).current===t&&p("177"),0===(r=n.pendingCommitExpirationTime)&&p("261"),n.pendingCommitExpirationTime=0,wi(),at.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var o=t.firstEffect}else o=t;else o=t.firstEffect;Qr=Pn;var a=s();if(Hn(a)){if("selectionStart"in a)var i={start:a.selectionStart,end:a.selectionEnd};else e:{var l=window.getSelection&&window.getSelection();if(l&&0!==l.rangeCount){i=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch(e){i=null;break e}var f=0,h=-1,m=-1,g=0,y=0,v=a,b=null;t:for(;;){for(var w;v!==i||0!==u&&3!==v.nodeType||(h=f+u),v!==d||0!==l&&3!==v.nodeType||(m=f+l),3===v.nodeType&&(f+=v.nodeValue.length),null!==(w=v.firstChild);)b=v,v=w;for(;;){if(v===a)break t;if(b===i&&++g===u&&(h=f),b===d&&++y===l&&(m=f),null!==(w=v.nextSibling))break;b=(v=b).parentNode}v=w}i=-1===h||-1===m?null:{start:h,end:m}}else i=null}i=i||{start:0,end:0}}else i=null;for(qr={focusedElem:a,selectionRange:i},In(!1),si=o;null!==si;){a=!1,i=void 0;try{for(;null!==si;){if(256&si.effectTag){var x=si.alternate;switch((u=si).tag){case 2:if(256&u.effectTag&&null!==x){var C=x.memoizedProps,E=x.memoizedState,k=u.stateNode;k.props=u.memoizedProps,k.state=u.memoizedState;var S=k.getSnapshotBeforeUpdate(C,E);k.__reactInternalSnapshotBeforeUpdate=S}break;case 3:case 5:case 6:case 4:break;default:p("163")}}si=si.nextEffect}}catch(e){a=!0,i=e}a&&(null===si&&p("178"),gi(si,i),null!==si&&(si=si.nextEffect))}for(si=o;null!==si;){x=!1,C=void 0;try{for(;null!==si;){var T=si.effectTag;if(16&T&&Or(si.stateNode,""),128&T){var _=si.alternate;if(null!==_){var N=_.ref;null!==N&&("function"==typeof N?N(null):N.current=null)}}switch(14&T){case 2:Va(si),si.effectTag&=-3;break;case 6:Va(si),si.effectTag&=-3,Ka(si.alternate,si);break;case 4:Ka(si.alternate,si);break;case 8:Ja(E=si),E.return=null,E.child=null,E.alternate&&(E.alternate.child=null,E.alternate.return=null)}si=si.nextEffect}}catch(e){x=!0,C=e}x&&(null===si&&p("178"),gi(si,C),null!==si&&(si=si.nextEffect))}if(N=qr,_=s(),T=N.focusedElem,x=N.selectionRange,_!==T&&c(document.documentElement,T)){null!==x&&Hn(T)&&(_=x.start,void 0===(N=x.end)&&(N=_),"selectionStart"in T?(T.selectionStart=_,T.selectionEnd=Math.min(N,T.value.length)):window.getSelection&&(_=window.getSelection(),C=T[he()].length,N=Math.min(x.start,C),x=void 0===x.end?N:Math.min(x.end,C),!_.extend&&N>x&&(C=x,x=N,N=C),C=Wn(T,N),E=Wn(T,x),C&&E&&(1!==_.rangeCount||_.anchorNode!==C.node||_.anchorOffset!==C.offset||_.focusNode!==E.node||_.focusOffset!==E.offset)&&((k=document.createRange()).setStart(C.node,C.offset),_.removeAllRanges(),N>x?(_.addRange(k),_.extend(E.node,E.offset)):(k.setEnd(E.node,E.offset),_.addRange(k))))),_=[];for(N=T;N=N.parentNode;)1===N.nodeType&&_.push({element:N,left:N.scrollLeft,top:N.scrollTop});for("function"==typeof T.focus&&T.focus(),T=0;T<_.length;T++)(N=_[T]).element.scrollLeft=N.left,N.element.scrollTop=N.top}for(qr=null,In(Qr),Qr=null,n.current=t,si=o;null!==si;){o=!1,T=void 0;try{for(_=r;null!==si;){var D=si.effectTag;if(36&D){var P=si.alternate;switch(x=_,(N=si).tag){case 2:var I=N.stateNode;if(4&N.effectTag)if(null===P)I.props=N.memoizedProps,I.state=N.memoizedState,I.componentDidMount();else{var A=P.memoizedProps,O=P.memoizedState;I.props=N.memoizedProps,I.state=N.memoizedState,I.componentDidUpdate(A,O,I.__reactInternalSnapshotBeforeUpdate)}var F=N.updateQueue;null!==F&&(I.props=N.memoizedProps,I.state=N.memoizedState,Ko(N,F,I));break;case 3:var R=N.updateQueue;if(null!==R){if(C=null,null!==N.child)switch(N.child.tag){case 5:C=N.child.stateNode;break;case 2:C=N.child.stateNode}Ko(N,R,C)}break;case 5:var L=N.stateNode;null===P&&4&N.effectTag&&Xr(N.type,N.memoizedProps)&&L.focus();break;case 6:case 4:case 15:case 16:break;default:p("163")}}if(128&D){N=void 0;var M=si.ref;if(null!==M){var B=si.stateNode;switch(si.tag){case 5:N=B;break;default:N=B}"function"==typeof M?M(N):M.current=N}}var U=si.nextEffect;si.nextEffect=null,si=U}}catch(e){o=!0,T=e}o&&(null===si&&p("178"),gi(si,T),null!==si&&(si=si.nextEffect))}ni=ui=!1,Oo(t.stateNode),0===(t=n.current.expirationTime)&&(di=null),e.remainingExpirationTime=t}function Xi(){return!(null===Fi||Fi.timeRemaining()>zi)&&(Ii=!0)}function Zi(e){null===Ni&&p("246"),Ni.remainingExpirationTime=0,Ai||(Ai=!0,Oi=e)}function el(e,t){var n=Ri;Ri=!0;try{return e(t)}finally{(Ri=n)||_i||Ki()}}function tl(e,t){if(Ri&&!Li){Li=!0;try{return e(t)}finally{Li=!1}}return e(t)}function nl(e,t){_i&&p("187");var n=Ri;Ri=!0;try{return Ci(e,t)}finally{Ri=n,Ki()}}function rl(e,t,n){if(Mi)return e(t,n);Ri||_i||0===Pi||(Yi(Pi,!1,null),Pi=0);var r=Mi,o=Ri;Ri=Mi=!0;try{return e(t,n)}finally{Mi=r,(Ri=o)||_i||Ki()}}function ol(e){var t=Ri;Ri=!0;try{Ci(e)}finally{(Ri=t)||_i||Yi(1,!1,null)}}function al(e,t,n,r,o){var a=t.current;if(n){var i;e:{for(2===ln(n=n._reactInternalFiber)&&2===n.tag||p("170"),i=n;3!==i.tag;){if(go(i)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}(i=i.return)||p("171")}i=i.stateNode.context}n=go(n)?wo(n,i):i}else n=d;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=Bo(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),jo(a,o,r),bi(a,r),r}function il(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?p("188"):p("268",Object.keys(e))),null===(e=cn(t))?null:e.stateNode}function ll(e,t,n,r){var o=t.current;return al(e,t,n,o=vi(wi(),o),r)}function sl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ul(e){var t=e.findFiberByHostInstance;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Po=Ao(function(e){return t.onCommitFiberRoot(n,e)}),Io=Ao(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}(i({},e,{findHostInstanceByFiber:function(e){return null===(e=cn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}var cl=el,dl=rl,pl=function(){_i||0===Pi||(Yi(Pi,!1,null),Pi=0)};function fl(e){this._expirationTime=yi(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function hl(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function ml(e,t,n){this._internalRoot=Do(e,t,n)}function gl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function yl(e,t,n,r,o){gl(n)||p("200");var a=n._reactRootContainer;if(a){if("function"==typeof o){var i=o;o=function(){var e=sl(a._internalRoot);i.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ml(e,!1,t)}(n,r),"function"==typeof o){var l=o;o=function(){var e=sl(a._internalRoot);l.call(e)}}tl(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)})}return sl(a._internalRoot)}function vl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return gl(t)||p("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:st,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ue.injectFiberControlledHostComponent($r),fl.prototype.render=function(e){this._defer||p("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new hl;return al(e,t,null,n,r._onCommit),r},fl.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},fl.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||p("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&p("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Gi(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},fl.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},hl.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},hl.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&p("191",n),n()}}},ml.prototype.render=function(e,t){var n=this._internalRoot,r=new hl;return null!==(t=void 0===t?null:t)&&r.then(t),ll(e,n,null,r._onCommit),r},ml.prototype.unmount=function(e){var t=this._internalRoot,n=new hl;return null!==(e=void 0===e?null:e)&&n.then(e),ll(null,t,null,n._onCommit),n},ml.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new hl;return null!==(n=void 0===n?null:n)&&o.then(n),ll(t,r,e,o._onCommit),o},ml.prototype.createBatch=function(){var e=new fl(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ye=cl,Ge=dl,$e=pl;var bl={createPortal:vl,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:il(e)},hydrate:function(e,t,n){return yl(null,e,t,!0,n)},render:function(e,t,n){return yl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&p("38"),yl(e,t,n,!1,r)},unmountComponentAtNode:function(e){return gl(e)||p("40"),!!e._reactRootContainer&&(tl(function(){yl(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return vl.apply(void 0,arguments)},unstable_batchedUpdates:el,unstable_deferredUpdates:xi,unstable_interactiveUpdates:rl,flushSync:nl,unstable_flushControlled:ol,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:U,EventPluginRegistry:k,EventPropagators:ne,ReactControlledComponent:Ke,ReactDOMComponentTree:K,ReactDOMEventListener:Ln},unstable_createRoot:function(e,t){return new ml(e,!0,null!=t&&!0===t.hydrate)}};ul({findFiberByHostInstance:H,bundleType:0,version:"16.4.2",rendererPackageName:"react-dom"});var wl={default:bl},xl=wl&&bl||wl;e.exports=xl.default?xl.default:xl},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(!r.call(t,n[i])||!o(e[n[i]],t[n[i]]))return!1;return!0}},function(e,t,n){"use strict";var r=n(49);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(50);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){var r=n(52);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".stipoPrimaryButton, .stipoSuccessButton, .stipoErrorButton, .stipoHollowButton {\r\n cursor: pointer;\r\n color: white;\r\n border-radius: 5px;\r\n padding: 12px 16px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n font-size: 14px; \r\n line-height: 14px; \r\n font-family: 'Helvetica';\r\n min-width: 100px;\r\n margin-left: 6px;\r\n margin-right: 6px;\r\n}\r\n\r\n.stipoPrimaryButton {\r\n background-color: #4253FF;\r\n}\r\n\r\n.stipoSuccessButton {\r\n background-color: #4AB55F;\r\n}\r\n\r\n.stipoErrorButton {\r\n background-color: #f94646;\r\n}\r\n\r\n.stipoPrimaryButton.disabled {\r\n background-color: #DDDDDD;\r\n opacity: 0.8;\r\n}\r\n\r\n.stipoHollowButton {\r\n background-color: #DDDDDD;\r\n}",""])},function(e,t,n){var r=n(54);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".stipoHeader {\r\n width: 100%\r\n}\r\n.stipoLogoContainer{\r\n height: 55px;\r\n background-color: #000000;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.stipoLogoContainer img{\r\n width: 55px;\r\n height: auto;\r\n}\r\n\r\n.stipoSubHeader {\r\n height: 23px;\r\n background-color: #151515;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.stipoSubHeader img {\r\n width: 135px;\r\n height: auto;\r\n}",""])},function(e,t,n){var r=n(56);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".stipoInput {\r\n border-radius: 5px;\r\n background-color: #ffffff!important;\r\n border: none;\r\n min-width: 320px;\r\n height: 45px;\r\n outline: none!important;\r\n width: 100%;\r\n}\r\n\r\n.stipoInputTags {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n margin-left: 8px;\r\n}\r\n\r\n.stipoInputWrapper small {\r\n font-size: 10px;\r\n color: #777777;\r\n font-style: italic;\r\n margin-bottom: 10px;\r\n margin-left: 8px;\r\n}\r\n\r\nlabel{\r\n font-size: 14px;\r\n margin-left: 8px;\r\n}\r\n\r\n.deleteTag {\r\n margin-right: 4px;\r\n}",""])},function(e,t,n){"use strict";n.r(t),n.d(t,"ShareWithDialog",function(){return f}),n.d(t,"openShareWithDialog",function(){return h});const r=n(0),o=n(2),a=n(3).default,{openSuccessDialog:i}=n(13),{openErrorDialog:l}=n(10),{StipoHeader:s}=n(6),{StipoPrimaryButton:u,StipoHollowButton:c}=n(1),{StipoTagInput:d}=n(14),{getItemsFromSelection:p}=n(20);class f extends r.Component{constructor(e){super(e),this.state={id:e.componentID,shareWith:e.item.shareWith?e.item.shareWith:[]},this.onDoneClick=(()=>{this.setState({loading:!0}),this.onDone(this.state).then(e=>{if(200!==e.status)return this.props.dialog.close(),void l(e.error.code,r.createElement("p",null,e.error.message));this.props.dialog.close(),i("Shared successfully",r.createElement("p",null,"Component shared successfully!"))}).catch(e=>l(e.code||"Error",e.message||"Impossible to handle your request, please try again later"))}),this.onTagChange=(e=>{this.setState({tagInput:e.target.value})}),this.handleTagKeydown=(e=>{if(","===e.key){const{value:t}=e.target;t.length&&this.setState({shareWith:[...this.state.shareWith,t],tagInput:""})}!this.state.shareWith.length||"Backspace"!==e.key&&"Delete"!==e.key||this.state.tagInput.length||this.setState({shareWith:this.state.shareWith.slice(0,this.state.tags.length-1)})}),this.handleDelete=(e=>{this.setState({shareWith:this.state.shareWith.filter((t,n)=>n!==e)})}),this.onDone=(e=>a.updateComponent(e.id,{shareWith:[...e.shareWith]})),this.onCancelClick=(()=>{this.props.dialog.close()})}render(){return r.createElement("form",{method:"dialog",onSubmit:e=>{e.preventDefault()}},r.createElement(s,{title:"Share your Component"}),this.state.loading?r.createElement("p",null,"Loading..."):r.createElement(r.Fragment,null,r.createElement("h2",null,"Component: ",this.props.item.name),r.createElement("div",{className:"stipoDialogBody container"},r.createElement(d,{onChange:this.onTagChange,onKeyDown:this.handleTagKeydown,value:this.state.tagInput,label:"Email",help:"Insert emails of users, insert a comma",deleteTag:e=>this.handleDelete(e),tags:this.state.shareWith})),r.createElement("footer",{className:"flex-end"},r.createElement(c,{value:"Cancel",onClick:this.onCancelClick}),r.createElement(u,{value:"Share",onClick:this.onDoneClick,disabled:this.state.invalid}))))}}function h(e,t){const n=document.createElement("dialog");return n.classList.add("stipoDialog"),o.render(r.createElement(f,{dialog:n,componentID:e,item:t}),n),document.body.appendChild(n).showModal()}},function(e,t,n){var r=n(59);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".stipoSearchContainer{\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}",""])},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".stipoComponentsList {\r\n height: auto;\r\n overflow: hidden; \r\n padding: 8px;\r\n display: flex;\r\n width: 100%;\r\n flex-wrap: wrap;\r\n}\r\n\r\n.stipoComponentsListWrapper {\r\n height: 420px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n margin-bottom: 20px;\r\n}\r\n\r\n.stipoComponent {\r\n display: flex;\r\n flex-basis: 48%;\r\n height: 190px;\r\n overflow: hidden;\r\n background-color: #ffffff;\r\n border-radius: 4px;\r\n margin: 8px;\r\n}\r\n\r\n.stipoComponent.fake {\r\n visibility: hidden;\r\n}\r\n\r\n.stipoComponent .previewImage {\r\n width: 39.5%;\r\n border-right: 1px solid #efefef;\r\n position: relative;\r\n overflow: hidden;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.stipoComponent .previewImage img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n\r\n.stipoComponent .componentData {\r\n width: 60%;\r\n padding: 8px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: space-between;\r\n}\r\n\r\n.stipoComponentName {\r\n font-size: 14px;\r\n font-weight: bold;\r\n margin: 8px 0;\r\n}\r\n\r\n.stipoComponentDescription{\r\n margin: 12px 0;\r\n font-size: 12px;\r\n line-height: 12px;\r\n}\r\n\r\n.stipoComponentTopActions {\r\n display: flex;\r\n width: 100%;\r\n justify-content: space-between;\r\n}\r\n\r\n.shareButton {\r\n background-color: #EFEFEF;\r\n min-width: 34px;\r\n max-height: 34px;\r\n border-radius: 2px;\r\n}\r\n\r\n.stipoBottomActions {\r\n display: flex;\r\n width: 100%;\r\n justify-content: space-between;\r\n}\r\n\r\n.stipoCurrentComponent {\r\n width: 100%;\r\n text-align: center;\r\n}\r\n\r\n.noItemsFoundWrapper{\r\n display: flex;\r\n height: 300px;\r\n justify-content: center;\r\n align-items: center;\r\n}",""])},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return p}),n.d(t,"openAccountDialog",function(){return f});var r=n(0),o=n.n(r),a=n(2),i=n.n(a);const{StipoHeader:l}=n(6),{StipoPrimaryButton:s,StipoHollowButton:u}=n(1),{StipoInput:c}=n(14),d=n(3).default;class p extends r.Component{componentDidMount(){d.getUserData().then(({role:e,expirationDate:t,isExpired:n,email:r})=>{this.setState({role:e,expirationDate:t,isExpired:n,email:r,loading:!1})})}constructor(e){super(e),this.state={role:"",expirationDate:"",isExpired:!1,email:"",loading:!0},this.onClosed=(()=>{this.props.dialog.close("closed")})}_renderKeyValue(e,t){return o.a.createElement("div",{className:"list"},o.a.createElement("span",{className:"bullet"},"•"),o.a.createElement("span",null,o.a.createElement("strong",null,e,": ")),o.a.createElement("span",null,t))}render(){return o.a.createElement("form",{method:"dialog"},o.a.createElement(l,{title:"My Account"}),this.state.loading?o.a.createElement("p",null,"Loading..."):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"stipoDialogBody container"},o.a.createElement("p",{className:"list"},"This are your account information for Stipo"),o.a.createElement("div",{className:"list"},this.state.email&&this._renderKeyValue("Email",this.state.email)),o.a.createElement("div",{className:"list"},this.state.role&&this._renderKeyValue("Role",this.state.role)),o.a.createElement("div",{className:this.state.isExpired?"color-red list":"list"},"free"!=this.state.role&&this.state.expirationDate&&this._renderKeyValue("Expiration Date",this.state.expirationDate))),o.a.createElement("footer",{className:"flex-end",style:{flexDirection:"row"}},o.a.createElement(s,{value:"Close",onClick:this.onClosed}))))}}function f(){const e=document.createElement("dialog");return e.classList.add("stipoDialog"),i.a.render(o.a.createElement(p,{dialog:e}),e),document.body.appendChild(e).showModal()}},function(e,t,n){var r=n(63);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".errorBox {\r\n background-color: #fd5e7c;\r\n color: white;\r\n text-align: center;\r\n padding: 8px;\r\n width: 100%;\r\n border-radius: 4px;\r\n margin-top: 8px;\r\n margin-bottom: 8px;\r\n}\r\n",""])},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return d}),n.d(t,"openHelpDialog",function(){return p});var r=n(0),o=n.n(r),a=n(2),i=n.n(a);const{StipoHeader:l}=n(6),{StipoPrimaryButton:s,StipoHollowButton:u}=n(1),{Slide:c}=n(65);class d extends r.Component{componentDidMount(){}constructor(e){super(e),this.state={currentSlideIndex:0,maxSlide:5,title:"Add a new Component",slides:[{title:"Add a new Component",image:"/images/stipo-slide-one.png",text:'Select the elements on your artboard and click on "Add to Library" button from the Stipo menu, insert title, tags and description of your element. To insert tags in the correct way remember to separate each tag by comma.'},{title:"Open the library",image:"/images/stipo-slide-two.png",text:'Click on "Open Library" button from the Stipo menu. Here you can find a list of all the elements you have saved that might be copied to clipboard, edited, removed or shared.'},{title:"Copy, edit, remove and share",image:"/images/stipo-slide-three.png",text:"Each single component can be copied (in order to be used on the Artboard), edited (title, tags and description), removed or shared with other Stipo users."},{title:"Share the component",image:"/images/stipo-slide-four.png",text:'By clicking on the "Share" button a modal pop-up will appear. It will ask for email address of the Stipo user you want to share the component with.'},{title:"Paste the component",image:"/images/stipo-slide-five.png",text:'Once clicked on the "Copy to clipboard" button of the element contained in your Stipo library, you will be able to paste the component within the artboard you have selected.'}]},this.onClosed=(()=>{this.props.dialog.close("closed")}),this.onSlideChange=(e=>{const{currentSlideIndex:t,maxSlide:n}=this.state;switch(e){case"prev":if(t>0){const e=t-1,n=this.state.slides[e];this.setState({title:n.title,currentSlideIndex:e})}break;case"next":if(t<n-1){const e=t+1,n=this.state.slides[e];this.setState({title:n.title,currentSlideIndex:e})}}})}_renderKeyValue(e,t){return o.a.createElement("div",{className:"list"},o.a.createElement("span",{className:"bullet"},"•"),o.a.createElement("span",null,o.a.createElement("strong",null,e,": ")),o.a.createElement("span",null,t))}render(){const e=this.state.slides[this.state.currentSlideIndex];return o.a.createElement("form",{method:"dialog"},o.a.createElement(l,{title:this.state.title}),o.a.createElement(c,{image:e.image,text:e.text}),o.a.createElement("div",{className:"StipoPagination"},o.a.createElement(u,{value:"⟵",onClick:()=>this.onSlideChange("prev"),disabled:0==this.state.currentSlideIndex}),o.a.createElement(u,{value:"⟶",onClick:()=>this.onSlideChange("next"),disabled:this.state.currentSlideIndex==this.state.maxSlide-1})),o.a.createElement("footer",{className:"flex-end",style:{flexDirection:"row"}},o.a.createElement(s,{value:"Close",onClick:this.onClosed})))}}function p(){const e=document.createElement("dialog");return e.classList.add("stipoDialog"),e.classList.add("stipo-help-dialog"),i.a.render(o.a.createElement(d,{dialog:e}),e),document.body.appendChild(e).showModal()}},function(e,t,n){"use strict";n.r(t),n.d(t,"Slide",function(){return a});var r=n(0),o=n.n(r);n(66);function a({image:e,text:t}){return o.a.createElement("div",{className:"slide"},o.a.createElement("img",{src:e}),o.a.createElement("div",{className:"description"},t))}},function(e,t,n){var r=n(67);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".slide {\r\n padding: 12px;\r\n margin-bottom: 8px;\r\n width: 100%;\r\n}\r\n\r\n.slide img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n\r\n.slide .description {\r\n \r\n}",""])},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1);function i(e,t){return e.length>t?e.substr(0,t-3)+"...":e}function l({rendition:e,data:t,onAction:n,free:r,filter:l}){return o.a.createElement("div",{className:"stipoComponent"},o.a.createElement("div",{className:"previewImage"},o.a.createElement("img",{src:`data:image/jpeg;base64,${e}`})),o.a.createElement("div",{className:"componentData"},o.a.createElement("div",{className:"stipoComponentTopActions"},o.a.createElement("div",{className:"stipoComponentName"},i(t.name,50)),!r&&0==l&&o.a.createElement("button",{"uxp-variant":"action","uxp-quiet":"true",title:"Share Component",className:"shareButton",onClick:()=>n("share")},o.a.createElement("img",{src:"/images/share.png"}))),o.a.createElement("p",{className:"stipoComponentDescription"},i(t.description,100)),o.a.createElement("div",{className:"stipoTags"},t.tags.map((e,t)=>o.a.createElement("div",{key:t,className:"stipoTag"},e))),o.a.createElement("div",{className:"stipoBottomActions"},o.a.createElement("div",{className:"stipoLeftActions",style:{display:"flex"}},0==l&&o.a.createElement(o.a.Fragment,null,o.a.createElement("button",{"uxp-variant":"action","uxp-quiet":"true",title:"Delete Component",onClick:()=>n("delete"),className:"removeButton"},o.a.createElement("img",{src:"/images/trash.png"})),o.a.createElement("button",{"uxp-variant":"action","uxp-quiet":"true",title:"Edit Component",onClick:()=>n("edit")},"Edit"))),o.a.createElement(a.StipoPrimaryButton,{onClick:()=>n("set"),value:"Copy to Clipboard"}))))}function s({items:e,onAction:t,free:n,filter:r}){let a=6-e.length;return a=a>0?a:0,o.a.createElement("div",{className:"stipoComponentsListWrapper"},o.a.createElement("div",{className:"stipoComponentsList"},e.map(({rendition:e,id:a,data:i})=>o.a.createElement(l,{key:a,rendition:e,data:i,free:n,filter:r,onAction:e=>t(e,a)})),Array.apply(0,Array(a)).map(function(e,t){return o.a.createElement("div",{className:"stipoComponent fake",key:t})})))}function u({hasPrev:e,hasNext:t,onAction:n}){return e||t?o.a.createElement("div",{className:"StipoPagination"},o.a.createElement(a.StipoHollowButton,{value:"Previous Page",onClick:()=>n("prev"),disabled:!e}),o.a.createElement(a.StipoHollowButton,{value:"Next Page",onClick:()=>n("next"),disabled:!t})):""}n(0),n(2),n(9),n(3).default;const{openSuccessDialog:c}=n(13),{openAddToLibraryDialog:d}=n(19),{openErrorDialog:p}=n(10),{openShareWithDialog:f}=n(57),{StipoPremiumLibraryHeader:h}=n(6),{StipoSearch:m}=n(27),{StipoPrimaryButton:g}=n(1);n(28),n(29);const y=n(0),v=n(2),b=n(9),w=n(3).default,{openSuccessDialog:x}=n(13),{openErrorDialog:C}=n(10),{openAddToLibraryDialog:E}=n(19),{StipoHeader:k}=n(6),{StipoSearch:S}=n(27),{StipoPrimaryButton:T}=n(1),_=(n(28),n(29),10);class N extends y.Component{componentDidMount(){w.getComponents().then(e=>{const t=e.data?e.data:[],n=t.slice(0,_),r=t.length,o=r>_;this.setState({items:n,allItems:t,hasNext:o,count:r,page:1,loading:!1})}).catch(e=>C(e.code||"Error",e.message||"Impossible to handle your request, please try again later"))}constructor(e){super(e),this.state={items:[],loading:!0},this.setCurrentItem=this.setCurrentItem.bind(this),this.deleteItem=this.deleteItem.bind(this),this.editItem=this.editItem.bind(this),this.onActionReceived=this.onActionReceived.bind(this),this.onPageChange=this.onPageChange.bind(this)}onPageChange(e){const t=this.state.page;switch(this.setState({loading:!0}),e){case"prev":if(this.state.page>1){const e=t-1,n=this.state.allItems.slice((e-1)*_,e*_);this.setState({items:n,page:e,hasNext:this.state.count>e*_,loading:!1})}break;case"next":if(this.state.hasNext){const e=t+1,n=this.state.allItems.slice(t*_,e*_);this.setState({items:n,page:t+1,hasNext:this.state.count>e*_,loading:!1})}}}onActionReceived(e,t){switch(e){case"set":this.setCurrentItem(t);break;case"delete":this.deleteItem(t);break;case"edit":this.editItem(t)}}setCurrentItem(e){this.props.onItemSelect(e),this.props.dialog.close()}deleteItem(e){this.props.dialog.close(),w.deleteComponent(e).then(()=>x("Component deleted",y.createElement("p",null,"The component was deleted successfully"))).catch(e=>C(e.code||"Error",e.message||"Impossible to handle your request, please try again later"))}editItem(e){b.getComponent(e).then(e=>{this.props.dialog.close(),E("",e)})}renderComponentsList(e){return e.length?y.createElement(s,{items:e,onAction:this.onActionReceived,free:!0,filter:0}):y.createElement("div",{className:"stipoComponentsContainer"},y.createElement("p",null,"You have no items"))}render(){const e=this.state.items.filter(e=>e.id===this.props.currentComponent)[0],t=e&&"Component in clipboard: "+e.data.name;return y.createElement("form",{method:"dialog"},y.createElement(k,{title:"Library",subTitle:t}),this.state.loading?y.createElement("div",{className:"stipoComponentsContainer container"},"Loading components..."):y.createElement(y.Fragment,null,y.createElement("div",{className:"stipoComponentsContainer container"},this.renderComponentsList(this.state.items)),y.createElement("div",null,y.createElement(u,{hasPrev:this.state.page>1,hasNext:this.state.hasNext,onAction:e=>this.onPageChange(e)}))),y.createElement("footer",{className:"stipoDialogFooter flex-end"},y.createElement(T,{value:"Close",onClick:()=>this.props.dialog.close()})))}}n(3);n.d(t,"openLibraryDialog",function(){return D});const D=(e,t)=>((e,t)=>{const n=document.createElement("dialog");return n.classList.add("stipoDialog"),n.classList.add("stipo-library-dialog"),v.render(y.createElement(N,{dialog:n,onItemSelect:e,currentComponent:t}),n),document.body.appendChild(n).showModal()})(e,t)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(2),i=n.n(a);n(62);function l({message:e}){return o.a.createElement("div",{className:"errorBox"},e)}n.d(t,"default",function(){return g}),n.d(t,"openLoginDialog",function(){return y});const{StipoHeader:s}=n(6),{StipoPrimaryButton:u,StipoHollowButton:c}=n(1),{StipoInput:d}=n(14),p=n(3).default,{openSuccessDialog:f}=n(13),{openErrorDialog:h}=n(10),m=e=>{e.preventDefault(),n(8).shell.openExternal("https://www.udesly.com/register/")};class g extends r.Component{componentDidMount(){p.getLatestCredentials().then(({email:e,password:t})=>{this.setState({email:e,password:t}),this.validate()})}constructor(e){super(e),this.state={email:"",password:"",invalid:!0,loading:!1},this.onEmailChange=(e=>{const t=e.target.value;this.setState({email:t})}),this.onPasswordChange=(e=>{const t=e.target.value;this.setState({password:t})}),this.validate=(()=>{""===this.state.email||""===this.state.password?this.setState({invalid:!0}):this.setState({invalid:!1})}),this.onKeyDown=(e=>{"Enter"!=e.key||this.state.invalid||this.onLogin()}),this.onCancelClick=(()=>{this.props.dialog.close("cancelled")}),this.onLogin=(()=>{this.setState({loading:!0,error:null}),p.login(this.state.email,this.state.password).then(e=>{if(200===e.status){if(!this.props.onSuccess)return this.props.dialog.close(),this.props.dialog.remove(),f("Login Successfull",o.a.createElement("p",null,"Yay! You are actually logged in with Stipo Cloud."));this.props.dialog.close("success")}else this.setState({loading:!1,error:e.error.error?e.error.error:e.error})}).catch(e=>h(e.code||"Error",e.message||"Impossible to handle your request, please try again later"))})}render(){return o.a.createElement("form",{method:"dialog",onSubmit:e=>{e.preventDefault()}},o.a.createElement(s,{title:"Login"}),this.state.error&&o.a.createElement(l,{message:this.state.error.message||"Please, try again later"}),this.state.loading?o.a.createElement("p",null,"Loading..."):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"stipoDialogBody container"},o.a.createElement(d,{onChange:this.onEmailChange,onPaste:this.onEmailChange,onKeyDown:this.onKeyDown,value:this.state.email,label:"Email"}),o.a.createElement(d,{onChange:this.onPasswordChange,onPaste:this.onPasswordChange,onKeyDown:this.onKeyDown,value:this.state.password,label:"License Code"}),o.a.createElement("div",{style:{width:"100%",textAlign:"center"}},o.a.createElement("a",{href:"#",onClick:m},"Need an account?"))),o.a.createElement("footer",{className:"flex-end",style:{flexDirection:"row"}},o.a.createElement(u,{value:"Login",onClick:this.onLogin}),o.a.createElement(c,{value:"Cancel",onClick:this.onCancelClick}))))}}function y(e=null){const t=document.createElement("dialog");return t.classList.add("stipoDialog"),i.a.render(o.a.createElement(g,{dialog:t,onSuccess:e}),t),document.body.appendChild(t).showModal()}},function(e,t,n){"use strict";n.r(t);var r=n(18),o=n(7),a=n(12);const i=e=>o.c(a.a,{body:e}),l=(e,t)=>o.d(p(e),{body:t}),s=e=>o.b(p(e)),u=e=>o.a(p(e)),c=e=>{const t=d(e);return o.b(`${a.a}${t}`)},d=(e={})=>{let t="?";e.hasOwnProperty("limit")||(e.limit=10),e.hasOwnProperty("filter")||(e.filter=0),e.hasOwnProperty("page")||(e.page=1);const n=Object.keys(e),r=n.length-1;return n.map((n,o)=>{const a=o==r;t+=n+"="+e[n],a||(t+="&")}),t},p=e=>`${a.a}/${e}`;n.d(t,"test",function(){return r.test}),n.d(t,"login",function(){return r.login}),n.d(t,"uploadComponent",function(){return i}),n.d(t,"updateComponent",function(){return l}),n.d(t,"getComponent",function(){return s}),n.d(t,"deleteComponent",function(){return u}),n.d(t,"listComponents",function(){return c})}]);