
/*************************************************************************
 * ADOBE CONFIDENTIAL
 * ___________________
 *
 * Copyright 2019 Adobe. All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Adobe and its suppliers, if any. The intellectual
 * and technical concepts contained herein are proprietary to Adobe
 * and its suppliers and are protected by all applicable intellectual
 * property laws, including trade secret and copyright laws.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe.
 **************************************************************************/

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2+WB":function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("circle",{cx:"24",cy:"16",r:"4"}),i.createElement("path",{d:"M44 6H4a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2h40a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm-2 32H30v-2a2 2 0 0 0 2-2v-8a4 4 0 0 0-4-4h-8a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2v2H6V10h36z"}))},"21yx":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("hO8q"),24:n("TeVw")}}))};s.displayName="CheckmarkCircle",t.default=s},"4P1X":function(e,t){},"4vCF":function(e){e.exports={templates:[{id:1,title:"Film 1 Template",contributor_name:"Alex",contributor_url:"http://www.google.com",price_prompt:"FREE",thumbnail_url:"https://images.unsplash.com/photo-1556910636-c508da52e01c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=400&q=80",width:320,height:3300,url:"https://images.unsplash.com/photo-1556910636-c508da52e01c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1400&q=80",size:27718150,template_category:["film","recent"],mime_type:"image/vnd.adobe.photoshop.template",description:"##### A fully-stocked UI kit for mocking up your app's administrator screens.\n* 1440 x 900 px (main screen)\n* 20+ components included\n* Optimized with smart objects for quick customization\n* Customize with your own images and text\n\n\n",previews:[{url:"https://images.unsplash.com/photo-1556910636-c508da52e01c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1400&q=80"},{url:"https://images.unsplash.com/photo-1556909172-bd5315ff61a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80"},{url:"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80"}],kind:"template"},{id:2,title:"Film 2 Template",contributor_name:"Alex",contributor_url:"http://www.google.com",price_prompt:"FREE",thumbnail_url:"https://images.unsplash.com/photo-1556909172-bd5315ff61a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=550&q=80",width:320,height:3300,url:"https://images.unsplash.com/photo-1556909172-bd5315ff61a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80",size:27718150,template_category:["film","recent"],mime_type:"image/vnd.adobe.photoshop.template",description:"##### A fully-stocked UI kit for mocking up your app's administrator screens.\n* 1440 x 900 px (main screen)\n* 20+ components included\n* Optimized with smart objects for quick customization\n* Customize with your own images and text\n\n\n",previews:[{url:"https://images.unsplash.com/photo-1556910636-c508da52e01c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1400&q=80"},{url:"https://images.unsplash.com/photo-1556909172-bd5315ff61a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80"},{url:"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80"}],kind:"template"},{id:3,title:"Film 3 Template",contributor_name:"Alex",contributor_url:"http://www.google.com",price_prompt:"FREE",thumbnail_url:"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-1.2.1&auto=format&fit=crop&w=550&q=80",width:320,height:3300,url:"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80",size:27718150,template_category:["film","recent"],mime_type:"image/vnd.adobe.photoshop.template",description:"##### A fully-stocked UI kit for mocking up your app's administrator screens.\n* 1440 x 900 px (main screen)\n* 20+ components included\n* Optimized with smart objects for quick customization\n* Customize with your own images and text\n\n\n",previews:[{url:"https://images.unsplash.com/photo-1556910636-c508da52e01c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1400&q=80"},{url:"https://images.unsplash.com/photo-1556909172-bd5315ff61a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80"},{url:"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-1.2.1&auto=format&fit=crop&w=2550&q=80"}],kind:"template"},{id:4,title:"Mobile Template",contributor_name:"Alex Dinicu",contributor_url:"http://www.google.com",price_prompt:"FREE",description:"##### A fully-stocked UI kit for mocking up your app's administrator screens.\n* 1440 x 900 px (main screen)\n* 20+ components included\n* Optimized with smart objects for quick customization\n* Customize with your own images and text\n\n\n",thumbnail_url:"https://images.unsplash.com/photo-1502086223501-7ea6ecd79368?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=523&q=80",width:320,height:3300,url:"https://images.unsplash.com/photo-1502086223501-7ea6ecd79368?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2523&q=80",size:2771815e3,mime_type:"image/vnd.adobe.photoshop.template",template_category:["mobile","recent"],previews:[{url:"https://images.unsplash.com/photo-1502086223501-7ea6ecd79368?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2523&q=80"},{url:"https://images.unsplash.com/photo-1489710437720-ebb67ec84dd2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"},{url:"https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60"}],kind:"template"},{id:14,title:"Web Template 3",contributor_name:"Alex Dinicu",contributor_url:"http://www.google.com",price_prompt:"FREE",description:"##### A fully-stocked UI kit for mocking up your app's administrator screens.\n* 1440 x 900 px (main screen)\n* 20+ components included\n* Optimized with smart objects for quick customization\n* Customize with your own images and text\n\n\n",thumbnail_url:"https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?ixlib=rb-1.2.1&auto=format&fit=crop&w=400&q=60",url:"https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60",size:374652,mime_type:"application/illustrator.template",template_category:["web","recent"],previews:[{url:"https://images.unsplash.com/photo-1502086223501-7ea6ecd79368?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2523&q=80"},{url:"https://images.unsplash.com/photo-1489710437720-ebb67ec84dd2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"},{url:"https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60"}],kind:"template"},{id:15,title:"ID fake Template",contributor_name:"Alex Dinicu",contributor_url:"http://www.google.com",price_prompt:"FREE",description:"##### A fully-stocked UI kit for mocking up your app's administrator screens.\n* 1440 x 900 px (main screen)\n* 20+ components included\n* Optimized with smart objects for quick customization\n* Customize with your own images and text\n\n\n",thumbnail_url:"https://images.unsplash.com/photo-1489710437720-ebb67ec84dd2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=400&q=60",width:320,height:3300,url:"https://images.unsplash.com/photo-1489710437720-ebb67ec84dd2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60",size:27718150,template_category:["web","recent"],mime_type:"application/vnd.adobe.indesign.template",previews:[{url:"https://images.unsplash.com/photo-1502086223501-7ea6ecd79368?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2523&q=80"},{url:"https://images.unsplash.com/photo-1489710437720-ebb67ec84dd2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"},{url:"https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60"}],kind:"template"}]}},"63WY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("cW9B"),24:n("t9HZ")}}))};s.displayName="Add",t.default=s},"70sn":function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M33 8h-7v4h4v16H6V12h4V8H3a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z"}),i.createElement("path",{d:"M24.793 14H20V.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V14h-4.793a.5.5 0 0 0-.354.854L18 22l7.146-7.146a.5.5 0 0 0-.353-.854z"}))},"77JF":function(e,t,n){"use strict";n.r(t);var i=n("q1tI"),r=n.n(i),o=n("i8i4"),a=n.n(o),s=n("99Ma"),l=n("okNM"),c=n("JRPe"),u=n("TSYQ"),p=n.n(u),h=n("GGSb"),d=n.n(h),f=n("9/5/"),m=n.n(f);function g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var v=n("17x9"),b=n.n(v);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function w(e){return"/"===e.charAt(0)}function _(e,t){for(var n=t,i=n+1,r=e.length;i<r;n+=1,i+=1)e[n]=e[i];e.pop()}var x=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&w(e),a=t&&w(t),s=o||a;if(e&&w(e)?r=i:i.length&&(r.pop(),r=r.concat(i)),!r.length)return"/";if(r.length){var l=r[r.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=r.length;u>=0;u--){var p=r[u];"."===p?_(r,u):".."===p?(_(r,u),c++):c&&(_(r,u),c--)}if(!s)for(;c--;c)r.unshift("..");!s||""===r[0]||r[0]&&w(r[0])||r.unshift("");var h=r.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var S=!0,E="Invariant failed";var C=function(e,t){if(!e)throw S?new Error(E):new Error(E+": "+(t||""))};function T(e){var t=e.pathname,n=e.search,i=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function k(e,t,n,i){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",i="",r=t.indexOf("#");-1!==r&&(i=t.substr(r),t=t.substr(0,r));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===i?"":i}}(e)).state=t:(void 0===(r=y({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=x(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r}function P(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,i,r){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof i?i(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(e){var n=!0;function i(){n&&e.apply(void 0,arguments)}return t.push(i),function(){n=!1,t=t.filter((function(e){return e!==i}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.forEach((function(e){return e.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function D(e,t,n){return Math.min(Math.max(e,t),n)}var A=n("VbXa"),I=n.n(A),R=n("fZtv"),N=n.n(R),O=1073741823;var L=r.a.createContext||function(e,t){var n,r,o="__create-react-context-"+N()()+"__",a=function(e){function n(){var t,n,i;return(t=e.apply(this,arguments)||this).emitter=(n=t.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,i.forEach((function(e){return e(n,t)}))}}),t}I()(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,i=this.props.value,r=e.value;((o=i)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(i,r):O,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},i.render=function(){return this.props.children},n}(i.Component);a.childContextTypes=((n={})[o]=b.a.object.isRequired,n);var s=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}I()(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?O:t},i.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?O:e},i.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},i.getValue=function(){return this.context[o]?this.context[o].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return s.contextTypes=((r={})[o]=b.a.object,r),{Provider:a,Consumer:s}},M=n("vRGJ"),U=n.n(M);n("TOwV");function z(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var B=n("2mql"),F=n.n(B),V=function(e){var t=L();return t.displayName=e,t}("Router"),j=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}g(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return r.a.createElement(V.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(r.a.Component);var G=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).history=function(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,r=void 0===i?["/"]:i,o=t.initialIndex,a=void 0===o?0:o,s=t.keyLength,l=void 0===s?6:s,c=P();function u(e){y(g,e),g.length=g.entries.length,c.notifyListeners(g.location,g.action)}function p(){return Math.random().toString(36).substr(2,l)}var h=D(a,0,r.length-1),d=r.map((function(e){return k(e,void 0,"string"==typeof e?p():e.key||p())})),f=T;function m(e){var t=D(g.index+e,0,g.entries.length-1),i=g.entries[t];c.confirmTransitionTo(i,"POP",n,(function(e){e?u({action:"POP",location:i,index:t}):u()}))}var g={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:f,push:function(e,t){var i=k(e,t,p(),g.location);c.confirmTransitionTo(i,"PUSH",n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:"PUSH",location:i,index:t,entries:n})}}))},replace:function(e,t){var i=k(e,t,p(),g.location);c.confirmTransitionTo(i,"REPLACE",n,(function(e){e&&(g.entries[g.index]=i,u({action:"REPLACE",location:i}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return g}(t.props),t}return g(t,e),t.prototype.render=function(){return r.a.createElement(j,{history:this.history,children:this.props.children})},t}(r.a.Component);r.a.Component;var W={},H=1e4,$=0;function q(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,i=n.path,r=n.exact,o=void 0!==r&&r,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(i).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var i=function(e,t){var n=""+t.end+t.strict+t.sensitive,i=W[n]||(W[n]={});if(i[e])return i[e];var r=[],o={regexp:U()(e,r,t),keys:r};return $<H&&(i[e]=o,$++),o}(n,{end:o,strict:s,sensitive:c}),r=i.regexp,a=i.keys,l=r.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),h=e===u;return o&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var K=function(e){function t(){return e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this;return r.a.createElement(V.Consumer,null,(function(t){t||C(!1);var n=e.props.location||t.location,i=y({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?q(n.pathname,e.props):t.match}),o=e.props,a=o.children,s=o.component,l=o.render;return Array.isArray(a)&&0===a.length&&(a=null),r.a.createElement(V.Provider,{value:i},i.match?a?"function"==typeof a?a(i):a:s?r.a.createElement(s,i):l?l(i):null:"function"==typeof a?a(i):null)}))},t}(r.a.Component);function J(e){return"/"===e.charAt(0)?e:"/"+e}function Z(e,t){if(!e)return t;var n=J(e);return 0!==t.pathname.indexOf(n)?t:y({},t,{pathname:t.pathname.substr(n.length)})}function X(e){return"string"==typeof e?e:T(e)}function Y(e){return function(){C(!1)}}function Q(){}r.a.Component;r.a.Component;function ee(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,i=z(t,["wrappedComponentRef"]);return r.a.createElement(V.Consumer,null,(function(t){return t||C(!1),r.a.createElement(e,y({},i,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,F()(n,e)}r.a.useContext;var te=n("bUsb"),ne=n.n(te),ie=n("2vnA");var re=new class{atob(e){let t,n=0,i=[],r=0,o=0;if((e=e.replace(/\s/g,"")).length%4==0&&(e=e.replace(/=+$/,"")),e.length%4==1)throw Error("InvalidCharacterError");if(/[^+/0-9A-Za-z]/.test(e))throw Error("InvalidCharacterError");for(;n<e.length;)r=r<<6|(t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n))),24===(o+=6)&&(i.push(String.fromCharCode(r>>16&255)),i.push(String.fromCharCode(r>>8&255)),i.push(String.fromCharCode(255&r)),o=0,r=0),n+=1;return 12===o?(r>>=4,i.push(String.fromCharCode(255&r))):18===o&&(r>>=2,i.push(String.fromCharCode(r>>8&255)),i.push(String.fromCharCode(255&r))),i.join("")}btoa(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n,i,r,o,a,s,l,c=0,u=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;c<e.length;)o=(n=e.charCodeAt(c++))>>2,a=(3&n)<<4|(i=e.charCodeAt(c++))>>4,s=(15&i)<<2|(r=e.charCodeAt(c++))>>6,l=63&r,c===e.length+2?(s=64,l=64):c===e.length+1&&(l=64),u.push(t.charAt(o),t.charAt(a),t.charAt(s),t.charAt(l));return u.join("")}};function oe(){return navigator.userAgent.indexOf("UXP")>-1}function ae(e){if(e){const t=e.RelationshipProfile&&e.RelationshipProfile.find(e=>e.usedForLegacyProfile);return!(!t||"NAMED_USER"===t.activationType||"LAB_NAMED_USER"===t.activationType)}return!1}function se(){return-1===navigator.platform.search(/darwin/i)&&"MacIntel"!==navigator.platform&&-1!==navigator.platform.search(/win/i)?"win":"mac"}function le(){return"win"===se()}function ce(e){return oe()&&!e.startsWith("http")?`file://${e}`:e}function ue(e){return le()&&e?e.replace(/\\/g,"/"):e}const pe=1e4;var he;!function(e){e.ADOBESTOCK="ADOBESTOCK",e.ADOBELEARN="ADOBELEARN",e.ADOBEACCOUNT="ADOBEACCOUNT"}(he||(he={}));const de={ADOBESTOCK:{url:["stock.adobe.com"],clientID:"AdobeStockClient1",clientScope:"AdobeID,openid,creative_cloud,read_organizations,gnav,additional_info.address.mail_to,sao.stock"},ADOBELEARN:{url:["helpx.adobe.com","helpx.stage.adobe.com"],clientID:"adobedotcom2",clientScope:"creative_cloud,AdobeID,openid,gnav,read_organizations,additional_info.projectedProductContext"},ADOBEACCOUNT:{url:["adobe.com","www.adobe.com","www.stage.adobe.com"],clientID:"adobedotcom2",clientScope:"creative_cloud,AdobeID,openid,gnav,read_organizations,additional_info.projectedProductContext"}};var fe,me,ge=new class{constructor(){this.isStaging=!1,this.initialized=!1,this._logger=d.a.get("IMS"),this.lastAccessTokenTime=0}async init(e,t){if(!oe()){this.userProfile={isStaging:window.location.toString().includes("stag")},this.isStaging=window.location.toString().includes("stag"),window.adobeid={client_id:"adobedotcom2",scope:"creative_cloud,AdobeID,openid,gnav,read_organizations,additional_info.projectedProductContext,sao.ACOM_CLOUD_STORAGE,sao.stock,sao.cce_private,additional_info.roles",uses_redirect_mode:!0,locale:"en_US",uses_modal_mode:!1,optimizations:{fastEvents:!0},onAccessToken:e=>{this.setAccessToken(e);const t=window.adobeIMS.getUserProfile();this.userProfile={UserProfile:{accountType:t.account_type,countryCode:t.countryCode,displayName:t.displayName,firstName:t.first_name,lastName:t.last_name,userId:t.userId}}}};let e="https://static.adobelogin.com/imslib/imslib.min.js";return this.isStaging&&(e="https://static.adobelogin.com/imslib/stg1/imslib.min.js"),void document.write(`<script src="${e}"><\/script>`)}this.profile=window.require("uxp").licensing,this.userProfileChangeCallback=t,this.profile&&this.profile.addEventListener("profilechanged",async()=>{this._logger.log("User Profile changed"),await this.updateUserProfile(),this.userProfile.accessToken?this.setAccessToken(e.accessToken):await this.updateAccessToken(),t&&t(this.userProfile)}),await Promise.all([this.updateUserProfile(e),this.updateStaging()]),e&&e.accessToken?this.setAccessToken(e.accessToken):await this.updateAccessToken(),this.userProfile.isStaging=this.isStaging,this.initialized=!0}get clientId(){return this.config.clientId}async updateUserProfile(e){if(e)this.userProfile={...e,isStaging:this.isStaging};else{let e=this.profile&&await this.profile.fetchProfile();try{e=JSON.parse(e)}catch{this._logger.error("Failed to parse user profile",e)}Array.isArray(e.RelationshipProfile)||(e.RelationshipProfile=[e.RelationshipProfile]),this.userProfile=e}}async updateAccessTokenAfterExpiration(){await this.updateAccessToken(),this.userProfileChangeCallback&&this.userProfileChangeCallback(this.userProfile,!0)}async updateAccessToken(){oe()?ae(this.userProfile)?this._logger.warn("FRL user. No access token present"):this.setAccessToken(this.profile&&await this.profile.getAccessToken(this.config).catch(e=>{this._logger.error("Error fetching IMS Access token",e)})):this.setAccessToken(window.adobeIMS?window.adobeIMS.getAccessToken():"")}async getJumpUrl(e,t){if(oe()&&this.userProfile.accessToken&&this.userProfile.accessToken.length>0){const n=de[e];return this.profile&&await this.profile.getContinueToken({jumpClientId:n.clientID,urlObject:encodeURIComponent(t),clientScope:n.clientScope,accessToken:this.userProfile.accessToken}).catch(()=>t)||t}return t}async updateStaging(){this.profile&&(this.isStaging=!await this.profile.isProductionEnv())}setAccessToken(e){let t="";e&&(this.lastAccessTokenTime=(new Date).valueOf(),this.tokenExpirationTimer&&clearTimeout(this.tokenExpirationTimer),this.tokenExpirationTimer=setTimeout(this.updateAccessTokenAfterExpiration.bind(this),this.calculateAccessTokenExpiry(e)),t=e),this.userProfile.accessToken!==t&&(this.userProfile={...this.userProfile,accessToken:t})}calculateAccessTokenExpiry(e){const t=(new Date).valueOf();try{const n=JSON.parse(re.atob(e.split(".")[1]));return new Date(parseInt(n.created_at)+parseInt(n.expires_in)-pe).valueOf()-t}catch(e){return this.lastAccessTokenTime+828e5-t}}get config(){return this.isStaging?{label:"Stage",clientId:"CCXInAppWelcomeUXP",clientSecret:"cb7de8ba-c520-456d-937c-253297c4ac00",clientScope:"openid,AdobeID,creative_cloud",imsServer:"ims-na1-stg1.adobelogin.com"}:{label:"Production",clientId:"CCXInAppWelcomeUXP",clientSecret:"22ed8f04-5252-45b7-93d0-b66470cc6156",clientScope:"openid,AdobeID,creative_cloud",imsServer:"ims-na1.adobelogin.com"}}},ve=n("LvDl"),be=n.n(ve),ye=n("XaGS"),we=n.n(ye);function _e(e){return e.toISOString()}function xe(e,t){return-1===e.indexOf(t)&&(e.push(t),!0)}function Se(e,t=!0){if(e<0||null==e)return;let n=new Date(Date.now()+1e3*e);return t?_e(n):function(e){function t(e){return e<10?"0"+e:e}let n=e.getTimezoneOffset();return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+"T"+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+(n<0?"+":"-")+String("0000"+t(Math.abs(n)/.6)).slice(-4)}(n)}function Ee(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Ce(e,t){return e&&t.reverse(),t}function Te(e,...t){if(0===t.length)return be.a.cloneDeep(e);if(Array.isArray(e))return be.a.unionWith(e,...t,we.a);{let n=be.a.cloneDeep(e);return t.forEach(e=>{Object.keys(e).forEach(t=>{n[t]=void 0===n[t]||"object"!=typeof e[t]?e[t]:Te(n[t],e[t])})}),n}}async function ke(e){return new Promise(t=>setTimeout(t,e))}function Pe(e){return e&&e.length?encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16)):e}function De(e,t){let n=!0;if(e)if(t&&e.length===t.length){let i,r;for(let o=0;o<t.length;o++)if(i=Object(s.u)(e[o])?Object(s.q)(e[o]):e[o],r=Object(s.u)(t[o])?Object(s.q)(t[o]):t[o],!we()(i,r)){n=!1;break}}else n=!1;else n=!t;return n}class Ae{constructor(e=""){this._logger=d.a.get("LocalStorage"),this._provider=window.localStorage,this._namespace="string"!=typeof e||""===e.trim()?Ee():e}get namespace(){return this._namespace}_generateStorageKey(e){return`${this.namespace}_${e}`}setItem(e,t){if(!e)return void this._logger.warn("LocalStorage: a valid key must be provided");const n={type:null===t?null:typeof t,value:t};this._provider.setItem(this._generateStorageKey(e),JSON.stringify(n))}getItem(e,t){if(e){let t=this._provider.getItem(this._generateStorageKey(e));if(null!==t)try{let{value:e,type:n}=JSON.parse(t);return"number"===n?null===e?NaN:Number(e):"boolean"===n?Boolean(e):e}catch(e){return t}}return void 0!==t?t:null}removeItem(e){this._provider.removeItem(this._generateStorageKey(e))}clear(){Object.keys(window.localStorage).forEach(e=>{e.startsWith(this.namespace)&&this._provider.removeItem(e)},this)}}!function(e){e.ADVANCED_SETTINGS_COLLAPSED="ADVANCED_SETTINGS",e.APP_VERSION="APP_VERSION",e.LANGUAGE_STRINGS="LANGUAGE_STRINGS",e.NAMESPACE="CCX_CMDN",e.SESSION_LOGGED_IN_USERS="SESSION_LOGGED_IN_USERS",e.SHOW_FILE_SIZE_WARNING="SHOW_FILE_SIZE_WARNING",e.SHOW_RECENTS_BANNER="SHOW_RECENTS_BANNER",e.SHOW_SAVED_BANNER="SHOW_SAVED_BANNER",e.STOCK_TEMPLATES="STOCK_TEMPLATES",e.TEMPLATE_LUT="TEMPLATE_LUT",e.VERSIONED_KEYS="VERSIONED_KEYS",e.WELCOME_DISPLAY_COUNT="WELCOME_DISPLAY_COUNT"}(fe||(fe={}));class Ie{constructor(e,t,n){this._logger=d.a.get("AppStorageController"),this._storage=new Ae(fe.NAMESPACE),this._userId=t,this._locale=n,this._checkAppVersion(e),this._setAppVersion(e),this._onUpgrade()}_getAppVersion(){return this._storage.getItem(fe.APP_VERSION)}_setAppVersion(e){this._storage.setItem(fe.APP_VERSION,e)}_checkAppVersion(e){if(this._getAppVersion()!==e){const e=this._storage.getItem(fe.VERSIONED_KEYS,{});return Object.keys(e).forEach(e=>this._storage.removeItem(e)),!1}return!0}_trackVersionedKey(e){let t=this._storage.getItem(fe.VERSIONED_KEYS,{});t.hasOwnProperty(e)||(t[e]=!0,this._storage.setItem(fe.VERSIONED_KEYS,t))}_onUpgrade(){const e=window.localStorage;e.removeItem("_VERSION_ITEMS_"),e.removeItem("CCX_CMDN_VERSION"),e.removeItem("CCX_LANGUAGE_STR");let t=e.getItem("CCX_ADVANCED_SETTINGS");if(null!==t&&this.setAdvancedSettingsCollapsed("true"===t),e.removeItem("CCX_ADVANCED_SETTINGS"),this._locale&&e.removeItem(`CACHED_TEMPLATES_${this._locale}`),this._userId){let t=e.getItem(`${this._userId}_cmdn.displayCount`);null!==t&&this.setWelcomeDisplayCount(Number(t)),e.removeItem(`${this._userId}_cmdn.displayCount`);let n=e.getItem(`${this._userId}_cmdn.showWelcomeRecent`);null!==n&&this.setShowRecentsBanner("true"===n),e.removeItem(`${this._userId}_cmdn.showWelcomeRecent`);let i=e.getItem(`${this._userId}_cmdn.showWelcomeSaved`);null!==i&&this.setShowSavedBanner("true"===i),e.removeItem(`${this._userId}_cmdn.showWelcomeSaved`);let r=e.getItem(`${this._userId}_fnft.showFileSizeWarning`);null!==r&&this.setShowFileSizeWarning("true"!==r),e.removeItem(`${this._userId}_fnft.showFileSizeWarning`)}}resetSessionLoggedInUsers(){this._storage.setItem(fe.SESSION_LOGGED_IN_USERS,[])}addSessionLoggedInUser(){if(!this._userId)return this._logger.warn("AppStorageController: userId has not been set"),!1;let e=this._storage.getItem(fe.SESSION_LOGGED_IN_USERS,[]);return-1===e.indexOf(this._userId)&&(e.push(this._userId),this._storage.setItem(fe.SESSION_LOGGED_IN_USERS,e),!0)}getAdvancedSettingsCollapsed(){return this._getUserItem(fe.ADVANCED_SETTINGS_COLLAPSED,!1)}setAdvancedSettingsCollapsed(e){this._setUserItem(fe.ADVANCED_SETTINGS_COLLAPSED,Boolean(e),!1)}getLanguageStrings(){return this._getLocaleItem(fe.LANGUAGE_STRINGS)}setLanguageStrings(e){this._setLocaleItem(fe.LANGUAGE_STRINGS,e,!0)}getShowFileSizeWarning(){return this._getUserItem(fe.SHOW_FILE_SIZE_WARNING,!0)}setShowFileSizeWarning(e){this._setUserItem(fe.SHOW_FILE_SIZE_WARNING,Boolean(e),!1)}getShowRecentsBanner(){return this._getUserItem(fe.SHOW_RECENTS_BANNER,!0)}setShowRecentsBanner(e){this._setUserItem(fe.SHOW_RECENTS_BANNER,Boolean(e),!1)}getShowSavedBanner(){return this._getUserItem(fe.SHOW_SAVED_BANNER,!0)}setShowSavedBanner(e){this._setUserItem(fe.SHOW_SAVED_BANNER,Boolean(e),!1)}getTemplateLastUsedTimestamp(e){return this._getUserItem(`${fe.TEMPLATE_LUT}_${e}`)}setTemplateLastUsedTimestamp(e,t){e&&this._setUserItem(`${fe.TEMPLATE_LUT}_${e}`,Number(t),!1)}getStockTemplateData(){return this._getLocaleItem(fe.STOCK_TEMPLATES)}setStockTemplateData(e){this._setLocaleItem(fe.STOCK_TEMPLATES,e,!1)}getWelcomeDisplayCount(){return this._getUserItem(fe.WELCOME_DISPLAY_COUNT,0)}setWelcomeDisplayCount(e){this._setUserItem(fe.WELCOME_DISPLAY_COUNT,"number"==typeof e?e:0,!1)}_generateStorageKey(e,t,n){let i=e;return n&&(i=`${i}_${n}`),t&&(i=`${i}_${t}`),i}_getUserItem(e,t){return this._userId&&e?this._storage.getItem(this._generateStorageKey(e,this._userId),t):null}_setUserItem(e,t,n=!1){if(!e||!this._userId)return void this._logger.warn("AppStorageController: userId has not been set");const i=this._generateStorageKey(e,this._userId);n&&this._trackVersionedKey(i),this._storage.setItem(i,t)}_getLocaleItem(e,t){return this._locale&&e?this._storage.getItem(this._generateStorageKey(e,void 0,this._locale),t):null}_setLocaleItem(e,t,n=!1){if(!e||!this._locale)return void this._logger.warn("AppStorageController: locale has not been set");const i=this._generateStorageKey(e,void 0,this._locale);n&&this._trackVersionedKey(i),this._storage.setItem(i,t)}}!function(e){e.RECENT="recent",e.SAVED="saved",e.PHOTO="photo",e.PRINT="print",e.MOBILE="mobile",e.FILM="film",e.WEB="web",e.ART="art",e.ALL="all"}(me||(me={}));var Re=me;class Ne{constructor(e){this._logger=d.a.get("ApplicationBase"),this.mruPathCache=[],this._uxp=oe()?window.require("uxp"):void 0,this._appStorageController=e||new Ie("1.2.0","",this.language)}get appStorageController(){return this._appStorageController}set appStorageController(e){this._appStorageController=e}async getUserProfile(e,t){try{return ge.initialized||await ge.init(e,t),ge.userProfile}catch(e){return this._logger.error(e),"ERROR_ADOBEID"}}get id(){return this._uxp.host.appCode}get name(){return this._uxp.host.name}get version(){return this._uxp.host.version}get language(){if(oe()){let e=this._uxp.host.locale;return e in{en_US:1,en_GB:1}||!e.match(/en_??/)||(e="en_US"),e}return window.navigator.language}async isAnalyticsEnabled(){return await this._uxp.host.canLogAnalyticsData}async init(){}async lateLoad(){}async getSessionId(){return""}async getAdobeID(){let e=await this._uxp.licensing.fetchProfile();try{return(e=JSON.parse(e)).UserProfile.email}catch{return"ERROR_ADOBEID"}}async getDelegateGUID(){let e=await this._uxp.licensing.fetchProfile();try{return(e=JSON.parse(e)).UserProfile.userId}catch{return"ERROR_ADOBEGUID"}}async getTheme(){return this._uxp.host.getTheme()}addEventListener(e,t){this._uxp.host.addEventListener(e,t)}removeEventListener(e,t){this._uxp.host.removeEventListener(e,t)}openPreset(e){}async getDefaultSettings(){return{}}getAndInitializeTemplates(e,t){}updateTemplates(e,t,n){}async openColorPicker(e,t){throw new Error("Not implemented")}async convertColorToRGB(e){throw new Error("Not implemented")}async isStockEnabled(){return!0}async requestLicenseDialog(e){return{}}async getPresetJSON(e=Re.ALL){return{}}reportPerformance(e){}async createDocumentFromTemplate(e,t,n){return!0}async deletePreset(e){}async createPreset(e){}async openDocumentWithPath(e,t,n,i){return!1}}var Oe=n("BmPN");const Le=new(n.n(Oe).a.Parser)({operators:{add:!0,divide:!0,multiply:!0,subtract:!0,concatenate:!1,conditional:!1,factorial:!1,power:!1,remainder:!1,logical:!1,comparison:!1,in:!1}});function Me(e,t){return Number(Math.round(Number(Number(e).toFixed(20)+"e"+t))+"e-"+t)}function Ue(e,t){return Number(Math.ceil(Number(Number(e).toFixed(20)+"e"+t))+"e-"+t)}function ze(e,t){return Number(Math.floor(Number(Number(e).toFixed(20)+"e"+t))+"e-"+t)}const Be={[Re.RECENT]:["clipboard"],[Re.SAVED]:["user"],[Re.PHOTO]:["default","photo"],[Re.PRINT]:["uspaper","europaper"],[Re.MOBILE]:["mobile","iconography"],[Re.FILM]:["video"],[Re.WEB]:["web"],[Re.ART]:["artillustration"],[Re.ALL]:["all"]},Fe={POINTS_PER_PICA:12},Ve=[{category:Re.RECENT,sections:["clipboard"]},{category:Re.SAVED,sections:["user"]},{category:Re.PHOTO,sections:["default","photo"]},{category:Re.PRINT,sections:["europaper","uspaper"]},{category:Re.MOBILE,sections:["mobile","iconography"]},{category:Re.FILM,sections:["video"]},{category:Re.WEB,sections:["web"]},{category:Re.ART,sections:["artillustration"]}],je=[{category:Re.RECENT,sections:["clipboard"]},{category:Re.SAVED,sections:["user"]},{category:Re.PHOTO,sections:["default","photo"]},{category:Re.PRINT,sections:["uspaper","europaper"]},{category:Re.MOBILE,sections:["mobile","iconography"]},{category:Re.FILM,sections:["video"]},{category:Re.WEB,sections:["web"]},{category:Re.ART,sections:["artillustration"]}];class Ge{static getPresetsCategories(e,t,n){let i={};const r=e.presets;if(r){("ja-JP"===t?Ve:je).forEach(e=>{let t=i[e.category]||[];e.sections.forEach(e=>{const i=r.sections.find(t=>t.section===e);i&&(t=t.concat(Ge._getPresetsWithoutSeparator(i.presets,n)))}),i[e.category]=t})}if(e.mruPresets){let t=Ge.getRecentsCategories(e,n);i[Re.RECENT]=(i[Re.RECENT]||[]).concat(t)}return Ge.addPresetIdToPresets(i),i}static getRecentsCategories(e,t){let n=e.mruPresets&&Ge._getPresetsWithoutSeparator(e.mruPresets.mru,t)||[],i=e&&e.mruTemplates&&e.mruTemplates.recentlyUsedTemplates;if(i){for(let e=0;e<i.length;++e)i[e].template_category="needslookup",i[e].kind="template";n=n.concat(i)}return n}static addPresetIdToPresets(e){for(let t in e){e[t].forEach((e,n)=>{e.identifier=`preset_${t}_${n}`,e.category=t})}}static updatePreset(e,t,n){if(t){if("screen"===e.resolution?(e.resolution=t.screenPresetResolution.value,e.resolutionUnits=t.screenPresetResolution.units):"print"===e.resolution&&(e.resolution=t.printPresetResolution.value,e.resolutionUnits=t.printPresetResolution.units),e.backgroundValues=t.backgroundValues,e.colorProfileLists=t.colorProfileLists,e.colorSettings=t.colorSettings,e.pointsPerInch=t.pointsPerInch||72,e.picasPerInch=Me(e.pointsPerInch/Fe.POINTS_PER_PICA,4),e.defaultBackground=t.backgroundColor,e.defaultBackgroundRgb=t.backgroundColorRgb,e.colorModes=t.colorModes,e.userLocaleDecimal=t.userLocaleDecimal,e.mode||(e.mode=t.colorModes&&t.colorModes.length&&(t.colorModes.some(e=>"RGB"===e.mode)?"RGB":t.colorModes[0].mode)),!e.depth&&e.mode){const n=t.colorModes&&t.colorModes.find(t=>t.mode===e.mode);e.depth=n&&n.values&&n.values.length&&n.values[0]}"clipboard"===e.group&&(e.fill=n)}return e}static updateTemplate(e,t){return e}static isPresetNameInvalid(e,t){return""===e.trim()||t.some(t=>t.name===e)}static generateNewPresetName(e,t){let n=0,i=!0;for(;i;){let r=`${e} ${++n}`;i=t.some(e=>e.name===r)}return`${e} ${n}`}static _getPresetsWithoutSeparator(e,t){return e&&Array.isArray(e)?e.filter(e=>"separator"!==e.name).map(e=>(e.kind="preset",e=this.updatePreset(e,t))):e}static mostRecentlyUsedComparator(e,t){return"preset"===e.kind&&"clipboard"===e.group?-1:"preset"===t.kind&&"clipboard"===t.group?1:void 0===e.lastUsedTime?1:void 0===t.lastUsedTime?-1:e.lastUsedTime>t.lastUsedTime?-1:e.lastUsedTime<t.lastUsedTime?1:0}}const We={DataTime:"all data loaded",HostData:"host data",HostPresetData:"host preset data",StockData:"stock data",LicensedData:"licensed templates",LoadLibraryFile:"CC Libraries script load",InitLibrary:"CC Libraries init",RetrieveLicensedTemplate:"retreive licensed template",TemplateFixup:"template fixup",InitHost:"host init",InitStock:"stock init",JSLibLateLoad:"JS scripts late load",InitLicensed:"licensed templates init",LoadTime:"total load time",InteractiveTime:"interactive ready",IngestConfig:"Ingest config",i18nJSON:"i18n json",RiotMountApp:"riot.mount.app",StockDataRequest:"stock data request",PostStockData:"postprocess stock data"};class He{static set markStart(e){this._startMark=e||window.performance.now()}static get markStart(){return this._startMark}static get _globalDelta(){let e=window.performance.now(),t=0;return He.markStart&&(t=Math.round(e-He.markStart)),t}static track(e){He._trackings[e]=performance.now(),He._measurements.push({mode:"track",id:e,globalDelta:He._globalDelta})}static setMeasurement(e,t){He._measurements.push({mode:"track",id:e,globalDelta:He._globalDelta}),He._measurements.push({mode:"measure",id:e,deltaT:Math.round(t),globalDelta:He._globalDelta})}static measure(e){if(!He.isTracked(e))return void He._logger.warn(`Trying to measure ${e} but there is not tracking set for this id`);const t=He._trackings[e],n={mode:"measure",id:e,deltaT:Math.round(performance.now()-t),globalDelta:He._globalDelta},i=He._measurements.findIndex(t=>t.id===e&&"measure"===t.mode);if(i>=0)if((He._measurements[i].deltaT||0)<=n.deltaT){He._measurements.splice(i,1);const t=He._measurements.findIndex(t=>t.id===e&&"track"===t.mode);He._measurements.splice(t,1),He._measurements.push(n)}else{let t=He._measurements.length-1;for(;t>=0;){let n=He._measurements[t];if(n.id===e&&"track"===n.mode)break;t--}t>=0&&He._measurements.splice(t,1)}else He._measurements.push(n)}static async measureAsync(e,t,n){const i=console.AsyncTrace?new console.AsyncTrace:console;i.time(e);const r=performance.now();He._logger.log(`${Math.round(r-He.markStart)} PERF - ${e} start`),He._measurements.push({mode:"track",id:e,globalDelta:He._globalDelta});try{let o=await t();const a=performance.now(),s=a-r;return He._logger.log(`${Math.round(a-He.markStart)} PERF - ${e} done: ${s} ${n||""}`),i.timeEnd(e),He._measurements.push({mode:"track",id:e,deltaT:Math.round(a-He.markStart),globalDelta:He._globalDelta}),o}catch(e){throw new Error(e)}}static get measurements(){return this._measurements}static clearMeasurements(){this._measurements=[],this._trackings={}}static reportToConsole(e){e.forEach(e=>{switch(e.mode){case"track":this._logger.log(`[${e.mode}] ${e.globalDelta} PERF - ${e.id}`);break;case"measure":this._logger.log(`[${e.mode}] ${e.globalDelta} PERF - ${e.id}: ${e.deltaT}`)}})}static isTracked(e){return He._trackings.hasOwnProperty(e)}}He._logger=d.a.get("Performance"),He._trackings={},He._measurements=[];const $e={red:0,green:0,blue:0,alpha:0,type:"RGBColor"},qe={red:0,green:0,blue:0,type:"RGBColor"},Ke={red:255,green:255,blue:255,type:"RGBColor"};async function Je(e){if(e&&e.type){let t;switch(e.type){case"RGBColor":t=e;break;case"RGBFloatColor":t=function(e){const{red:t=0,green:n=0,blue:i=0}=e;return{type:"RGBColor",red:Math.round(255*t),green:Math.round(255*n),blue:Math.round(255*i)}}(e);break;default:t=await Vt.convertColorToRGB(e)}return t}return null}function Ze(e,t){switch(e){case"background":return void 0!==t?t:Ke;case"black":return qe;case"transparent":return $e;default:return Ke}}function Xe(e){return void 0!==e.grain&&(e.green=void 0!==e.green?e.green:e.grain,delete e.grain),e}var Ye=s.z.model({url:s.z.string});var Qe=s.z.model({progress:s.z.maybe(s.z.number),downloadStatus:s.z.maybe(s.z.string),downloadStatusMessage:s.z.maybe(s.z.string),downloadStarted:s.z.maybe(s.z.boolean),downloadEnded:s.z.maybe(s.z.boolean)}).actions(e=>({updateStatus(t){e.progress=t.progress,e.downloadStatusMessage=t.downloadStatusMessage,e.downloadStatus=t.downloadStatus}})),et=n("4vCF");var tt=new class{constructor(){this.SUPPORTED_LANGUAGES={CS:"cs-CZ",CS_CZ:"cs-CZ",DA:"da-DK",DA_DK:"da-DK",DE:"de-DE",DE_DE:"de-DE",EN:"en-US",EN_US:"en-US",EN_AE:"en-AE",EN_GB:"en-GB",EN_IL:"en-IL",ES:"es-ES",ES_ES:"es-ES",ES_MX:"es-MX",FI:"fi-FI",FI_FI:"fi-FI",FR:"fr-FR",FR_FR:"fr-FR",FR_CA:"fr-CA",FR_MA:"fr-MA",HU:"hu-HU",HU_HU:"hu-HU",IT:"it-IT",IT_IT:"it-IT",JA:"ja-JP",JA_JP:"ja-JP",KO:"ko-KR",KO_KR:"ko-KR",NB:"nb-NO",NB_NO:"nb-NO",NL:"nl-NL",NL_NL:"nl-NL",PL:"pl-PL",PL_PL:"pl-PL",PT:"pt-BR",PT_BR:"pt-BR",RU:"ru-RU",RU_RU:"ru-RU",SV:"sv-SE",SV_SE:"sv-SE",TR:"tr-TR",TR_TR:"tr-TR",UK:"uk-UA",UK_UA:"uk-UA",ZH:"zh-TW",ZH_TW:"zh-TW",ZH_CN:"zh-CN"},this._logger=d.a.get("i18n"),this._loadedLocale=null,this._loadedStrings=null}getLanguage(e){if(e){const t=e.replace("-","_").toUpperCase();if(this.SUPPORTED_LANGUAGES[t])return this.SUPPORTED_LANGUAGES[t];const n=t.slice(0,2);if(this.SUPPORTED_LANGUAGES[n])return this.SUPPORTED_LANGUAGES[n]}return"en-US"}transformLocale(e){let t=/([a-z]*)[-]([A-Z]*)/g.exec(e);if(t&&t[1]&&t[2])return`${t[1]}_${t[2]}`;let n=e.toUpperCase();return this.SUPPORTED_LANGUAGES[n]?this.SUPPORTED_LANGUAGES[n].replace("-","_"):"en_US"}async fetchLocaleStrings(e){let t=this.transformLocale(e);"es_MX"===t&&(t="es_ES"),"fr_MA"===t&&(t="fr_FR");const[n,i]=await Promise.all([(await fetch("./cmdn-locale/en_US/strings.json")).json(),await fetch(`./cmdn-locale/${t}/strings.json`).then(e=>e.json()).catch(()=>{})]);return{...n,...i}}setLocaleAndStrings(e,t){Object(c.e)(this.getLocaleData(e)),this._loadedLocale=e,this._loadedStrings=t}getLocaleData(e){const t=e.substr(0,2),i={cs:n("1035"),da:n("cmGi"),de:n("AJYP"),en:n("PTt1"),es:n("TrdP"),fi:n("LjnU"),fr:n("Z6Ro"),hu:n("DsW2"),it:n("jtQn"),ja:n("vSOm"),ko:n("KAgo"),nb:n("laoy"),nl:n("22ZZ"),pl:n("Tk0z"),pt:n("Ktao"),ru:n("CrYA"),sv:n("3BAL"),tr:n("F03f"),uk:n("4U5H"),zh:n("dVHv"),zu:n("iDce")};return i[t]||i.en}getLocalizedString(e,t){if(!e||!t)return"";let n=t.indexOf("=");n<0&&(n=t.length);const i=t.slice(0,n),r=t.slice(n+1),o=e[i];let a=o?o.replace("^n","<br>"):null;return(a=a||r)||t}getLoadedLocale(e=!1){if(!this._loadedLocale)return this._logger.warn("LOCALE NOT INITIALIZED! THIS SHOULD NEVER HAPPEN!"),e?"en":"en-US";const t=this._loadedLocale;if(e){return t.length>2?t.slice(0,2):t}return t}getLoadedStrings(){return this._loadedStrings?this._loadedStrings:(this._logger.warn("LOCALE NOT INITIALIZED! THIS SHOULD NEVER HAPPEN!"),{})}formatMessage(e){return this._loadedStrings?this.getLocalizedString(this._loadedStrings,e):e}};const nt="vulcan.SuiteMessage.",it="Response",rt="Request";var ot=new class{constructor(){this.listeners={},window.require&&window.require("uxp")&&(this.control=window.require("uxp").vulcan.control,this.dispatcher=window.require("uxp").vulcan.dispatcher,this.message=window.require("uxp").vulcan.message)}async launchApp(e){if(!this.control)return;const t=(await this.control.getInstalledApps()||[]).find(t=>t.name===e);return t&&await t.launch()}async isAppInstalled(e){if(!this.control)return!1;return!!(await this.control.getInstalledApps()||[]).find(t=>t.name===e)}async isAppRunning(e){if(!this.control)return!1;const t=(await this.control.getInstalledApps()||[]).find(t=>t.name===e);return t&&await t.isRunning()}async get(e){if(!this.dispatcher)throw"Vulcan not present";const t=e.type+it,n=e.type+rt,i=new Promise((e,n)=>{this.on(t,e)});this.dispatch({...e,type:n});let r=null;const o="CCXProcess timed out";if(r=e.timeout?await Promise.race([ke(e.timeout).then(()=>o),i]):await i,this.off(t),r===o)throw new Error(o);return r}async dispatch({type:e,target:t="CCXP",data:n}){if(!this.dispatcher)return;const i=(await this.dispatcher.getConnectedApplications()||[]).find(e=>e.appId===t);i&&i.dispatchMessage(new this.message(nt+e,JSON.stringify(n)))}on(e,t){this.dispatcher&&t&&(this.listeners[e]=this.listeners[e]||{},this.listeners[e][t]=e=>{let n=e.payload;try{n=JSON.parse(n)}catch(e){}t(n,e)},this.dispatcher.addEventListener(nt+e,this.listeners[e][t]))}off(e,t){if(!this.dispatcher)return;const n=this.listeners[e]||{};t&&n[t]?(this.dispatcher.removeEventListener(nt+e,n[t]),delete n[t]):t||(Object.values(n).forEach(t=>this.dispatcher.removeEventListener(nt+e,t)),delete this.listeners[e])}};var at=new class{constructor(){this.fs=window.require&&window.require("fs")}async pathExists(e){return!this.fs||await this.fs.lstat(e).then(()=>!0).catch(()=>!1)}async readJson(e){if(!this.fs)return!0;const t=await this.fs.readFile(`file://${e}`,"utf-8");return JSON.parse(t)}async writeFile(...e){this.fs&&await this.fs.writeFile(...e)}async getDataFolder(){return this.dataFolder=this.dataFolder||window.require&&(await window.require("uxp").storage.localFileSystem.getDataFolder()).nativePath}};const st="GET";var lt=new class{constructor(){this.prodBaseUrl="https://stock.adobe.io/Rest",this.stageBaseUrl="https://stock-stage.adobe.io/Rest"}async apiRequest(e){return new Promise((t,n)=>{const{endpoint:i,requestId:r,authToken:o,body:a,isStaging:s,xProduct:l}=e;let{method:c}=e;const u=s?this.stageBaseUrl:this.prodBaseUrl;c||(c=st);const p=`${u}${i}`;let h=new XMLHttpRequest;h.open(c,p,!0),h.setRequestHeader("X-Api-Key","CCXInAppWelcomeUXP"),h.setRequestHeader("X-Product",l||"unknown"),h.setRequestHeader("authorization",`Bearer ${o}`),h.responseType="json",h.onerror=function(e){n(e)},h.onload=function(){t(h.response)},h.send(null)})}async licenseAsset(e){const{authToken:t,contentId:n,license:i,locale:r,isStaging:o,xProduct:a}=e,s={endpoint:`/Libraries/1/Content/License?content_id=${n}&locale=${r}&license=${i}`,authToken:t,isStaging:o,xProduct:a};return this.apiRequest(s)}};const ct="adobestock",ut="trackingdata",pt="purchased",ht="https://www.adobe.com/go/stocklicense_",dt="https://stock.adobe.com/Search",ft="https://primary.stock.stage.adobe.com/Search";var mt;!function(e){e.NOT_POSSIBLE="not_possible",e.POSSIBLE="possible"}(mt||(mt={}));var gt,vt,bt=new class{constructor(){this.loadingLibrary=!1,this.libraryCallbacks=[],this.ccxProcessLaunchPending=!1}getStockData(e){return e&&e.getValue(ct,ut)}getStockDataForElement(e,t){let n=void 0===t?e.getPrimaryRepresentation():e.representations[t],i=this.getStockData(n);return i&&n.isExternalLink&&n.getCachedExternalLinkError()?this.getStockDataForElement(e,void 0===t?0:t+1):i}getElementStockId(e){let t=this.getStockDataForElement(e);if(t)return Number(t.content_id)}getElementStockLicense(e){let t=this.getStockDataForElement(e);if(t&&t.state===pt)return String(t.license)}async composeStockLink(e,t,n,i){let r=ge.isStaging?ft:dt,o=-1,a=0;switch(n=void 0===n?"":n,t){case"recent":case"saved":o=0;break;case"mobile":o=1;break;case"web":o=2;break;case"print":o=3;break;case"photo":o=4;break;case"film":o=5;break;case"art":o=6;break;default:o=-1}switch(e){case"PHXS":a=1;break;case"ILST":a=2;break;case"IDSN":a=3;break;default:a=0}n=n?"k="+Pe(n)+"&":"";return r+"?ff_4815162342=true&"+(n+=await i.getAnalyticsQueryString()+"&")+("filters[content_type:template]=1&filters[template_type_id][]="+a)+(0===o?"":"&filters[template_category_id][]="+o)+("&as_channel=adobe_apps&as_source=app&as_campclass=brand&as_campaign=templates_"+e)}async openStockLink(e,t,n,i){let r=await this.composeStockLink(e,t,n,i);return this.openDefaultBrowser(r,he.ADOBESTOCK),r}openStockLicense(){let e=ht+tt.getLoadedLocale(!0);return this.openDefaultBrowser(e,he.ADOBESTOCK),e}async openDefaultBrowser(e,t){if(oe())return void 0===t&&Object.keys(de).forEach(n=>{de[n].urls.includes(new URL(e).hostname)&&(t=n)}),t&&(e=await ge.getJumpUrl(t,e)),void window.require("uxp").shell.openExternal(e);window.open(e,"_blank")}getLicenseObject(e,t){return{contentDetails:e.contents[t],stockId:e.member.stock_id,purchaseDetails:e.contents[t].purchase_details}}async licenseTemplate(e){const t=tt.getLoadedLocale(),n=await lt.licenseAsset({authToken:ge.userProfile.accessToken,contentId:Pe(String(e.id)),license:"STANDARD",locale:Pe(t),isStaging:!1,xProduct:"PHXS"});return this.getLicenseObject(n,e.id)}launchCCXProcess(e){if(this.ccxProcessLaunchPending||!oe())return;let t;e=e||(()=>{}),this.ccxProcessLaunchPending=!0;const n=t=>{e(t),this.ccxProcessLaunchPending=!1},i=()=>{clearTimeout(t),this.ccxProcessLaunchPending=!1,ot.off("ccxprocess.Initialized",i),n(1)};ot.isAppInstalled("ccxprocess")?this.isCCXProcessRunning(e=>{e?n(0):(ot.on("ccxprocess.Initialized",i),t=setTimeout(()=>{ot.off("ccxprocess.Initialized",i),n(2)},1e3),ot.launchApp("ccxprocess"))}):n(3)}isCCXProcessRunning(e){if(!le()&&ot.isAppRunning("ccxprocess"))return e(!0);let t,n="ccxprocess.out.response.app.ping";function i(){clearTimeout(t),ot.off(n,i),e(!0)}ot.on(n,i),t=setTimeout(()=>{ot.off(n,i),e(!1)},200);const r={type:"ccxprocess.in.request.app.ping",target:"CCXP",data:{}};ot.dispatch(r)}};class yt{constructor(){this._listeners={}}trigger(e,t){const n=this._listeners[e];n&&n.forEach(e=>e&&"function"==typeof e&&e(t))}on(e,t){this._listeners.hasOwnProperty(e)||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){const n=this._listeners[e];if(n){const e=n.findIndex(t);e>-1&&n.splice(e,1)}}removeAllListeners(){this._listeners={}}}!function(e){e.DOWNLOADED="downloaded",e.DOWNLOADING="downloading",e.DOWNLOAD_ERR="error"}(gt||(gt={})),function(e){e.DOWNLOAD_STATUS="download-status",e.CHANGE="library-changed"}(vt||(vt={}));const wt="application/vnd.adobe.element.template+dcx",_t={PHXS:"image/vnd.adobe.photoshop.template",ILST:"application/illustrator.template",IDSN:"application/vnd.adobe.indesign.template"},xt="vulcan.SuiteMessage.";var St=new class extends yt{constructor(){super(),this._logger=d.a.get("LibraryManager"),this.statusLookupMap={},this.initialized=!1,this.debounce=300,this.lastSyncTime=(new Date).valueOf(),this.pendingSyncTimeout=null,this.checkRunningTimeout=null,this.cclibraryProcessLaunchPending=!1,this.cachedLicensedTemplates={},this.licensedTemplateDataAvailable=!1,this.onLibraryCollectionsLoaded=this.onLibraryCollectionsLoaded.bind(this),this.onSync=this.onSync.bind(this),this.fnftFakeLicensedTemplates=et.templates}async initializeCCLibraries(){this.initialized||(await this.init(wt),this.initialized=!0)}clearLicensedTemplateCache(){this.cachedLicensedTemplates={},this.statusLookupMap={},this.licensedTemplateDataAvailable=!1}onLibraryCollectionsLoaded(){this.checkRunningTimeout&&clearTimeout(this.checkRunningTimeout),this.libraryCollections=this.ccLibraries&&this.ccLibraries.getLoadedCollections(),this.libraryCollections&&(this.getLicensedTemplates(Vt.id).then(e=>{oe()?(this.fnftFakeLicensedTemplates||(this.cachedLicensedTemplates={}),e&&e.forEach(e=>{this.addTemplateToStatusLookupMap(e),this._libsRootDir||(this._libsRootDir=this.extractLibsRootDirPath(e.url))}),e&&this._libsRootDir&&!this.licensedTemplateDataAvailable&&(this.trigger(vt.CHANGE,{}),this.licensedTemplateDataAvailable=!0)):this.fnftFakeLicensedTemplates.forEach(e=>{this.addTemplateToStatusLookupMap(e)})}).catch(e=>{this._logger.warn("Failed to get licensed templates",e)}),this.libraryCollections.forEach(e=>{(e=>{e.addSyncListener(()=>{this.onSync(e)})})(e)}))}addTemplateToStatusLookupMap(e){e&&e.id&&(this.statusLookupMap[e.id]={templateId:e.id,downloadStatus:gt.DOWNLOADED,path:e.url,elementRef:e.elementRef,kind:"template",title:e.title})}async init(e){if(e=e||"*",!await this.isProcessInstalled())return void this._logger.warn("CC Library Process is not installed");He.track(We.LoadLibraryFile);const t=await n.e(4).then(n.t.bind(null,"gokG",7));if(this.ccLibraries=t.default,He.measure(We.LoadLibraryFile),!this.ccLibraries)return void this._logger.warn("Failed to load CC Library javascript file");let i={log:e=>{this._logger.log(e)},vulcanCall:this.findCCLibraryProcessPort};const r={SHARED_LOCAL_STORAGE:!0,ELEMENT_TYPE_FILTERS:e,APP_DESCRIPTION:Vt.id+"-"+Vt.version,CLIENT_DESCRIPTION:"CMDN dialog"};try{He.track(We.InitLibrary),this.ccLibraries.configure(i,r),He.measure(We.InitLibrary)}catch(e){this._logger.warn("Failed to configure CC Library: "+e)}this.checkRunningTimeout=setTimeout(()=>{this.isProcessRunning().then(e=>{e||this.ccLibraries.isConnected()||this.launchCCLibraryProcess()})},5e3),this.ccLibraries.addLoadedCollectionsListener(this.onLibraryCollectionsLoaded)}findCCLibraryProcessPort(e,t,n,i){e=e.replace(xt,""),n=n.replace(xt,"");const r=e=>{ot.off(n,r),i(e?JSON.stringify(e):"NO_VULCAN_MESSAGE")};ot.on(n,r);const o={type:e,target:"LIBS",data:t};ot.dispatch(o)}getTemplateLibrary(){return new Promise((e,t)=>{if(!this.areLibraryCollectionsLoaded())return this._logger.warn("Get template library: Failed to load library collections"),t();let n,i=this.libraryCollections[0],r=tt.formatMessage("stock_template_library_name");i.libraries.forEach(e=>{n||e.name!==r||(n=e)}),n||(n=i.createLibrary(r)),e(n)})}isRepresentationDownloadPending(e){return!!e.isExternalLink&&(!e.getCachedContentPath()&&!e.getCachedExternalLinkError())}isElementDownloadPending(e){return e.representations.some(e=>this.isRepresentationDownloadPending(e))}retryElementDownload(e){e.representations.forEach(e=>{this.isRepresentationDownloadPending(e)&&e.getContentPath()})}getElementDownloadProgress(e){let t;return e.representations.forEach(e=>{void 0===t&&(t=e.getExternalLinkDownloadProgress())}),t}onSync(e){if(this.pendingSyncTimeout)return;const t=(new Date).valueOf();if(t-this.lastSyncTime<this.debounce)return void(e=>{this.pendingSyncTimeout=setTimeout(()=>{this.pendingSyncTimeout=void 0,this.onSync(e)},this.debounce)})(e);this.lastSyncTime=t;const n=this.statusLookupMap;let i=!1;e.libraries.forEach(e=>{let t=Object.values(this.cachedLicensedTemplates).filter(t=>t.libraryId===e.id&&t.mime_type===_t[Vt.id]);e.getFilteredElements(wt).forEach(e=>{if(void 0===bt.getElementStockLicense(e))return;let i=bt.getElementStockId(e),r=void 0!==i?i:-1;if(r>=0){if(this.cachedLicensedTemplates[r]){let e=t.findIndex(e=>e.id===r);e>=0&&t.splice(e,1)}else e&&e.getPrimaryRepresentation().isCompatibleType(_t[Vt.id])&&this.buildUpTemplate(e,!0,_t[Vt.id]).then(e=>{this.addTemplateToCache(e)});let i=n[r]||{templateId:r},o=i.progress;i.progress=this.getElementDownloadProgress(e);let a=i.downloadPending;i.downloadPending=this.isElementDownloadPending(e);let s="Stock template ["+i.templateId+"] ";if(i.downloadPending!==a||i.progress!==o){if(void 0===i.progress||a&&!i.downloadPending){if(o&&i.progress&&i.progress<o)return;return void e.getPrimaryRepresentation().getContentPath((t,o)=>{t||i.downloadStatus===gt.DOWNLOADED&&i.path===o||(i.downloadStatus=gt.DOWNLOADED,i.licensedTime=e.modified,i.lastUsedTime=e.modified,i.path=o,i.elementRef=e.getReference(),this.trigger(vt.DOWNLOAD_STATUS,i),n[r]=i)})}if(-1===i.progress){if(i.downloadStatus===gt.DOWNLOAD_ERR)return;i.downloadStatus=gt.DOWNLOAD_ERR,this._logger.debug(s+"failed to be downloaded"),this.trigger(vt.DOWNLOAD_STATUS,i)}else i.progress>=o&&i.downloadPending&&(i.downloadStatus=gt.DOWNLOADING,i.licensedTime=e.modified,i.lastUsedTime=e.modified,this._logger.debug(s+"is being downloaded, progress="+i.progress),this.trigger(vt.DOWNLOAD_STATUS,i));n[r]=i}else i.downloadPending&&n[r].downloadStatus!==gt.DOWNLOADING&&(i.downloadStatus=gt.DOWNLOADING,i.progress=0,i.licensedTime=e.modified,i.lastUsedTime=e.modified,n[r]=i,this.trigger(vt.DOWNLOAD_STATUS,i))}}),t.forEach(e=>{delete this.cachedLicensedTemplates[e.id],delete this.statusLookupMap[e.id],i=!0})}),i&&this.trigger(vt.CHANGE,{})}buildUpTemplate(e,t,n){return new Promise((i,r)=>{if(!e||t&&void 0===bt.getElementStockLicense(e)||this.isElementDownloadPending(e))return r();const o=e.getPrimaryRepresentation();if(!o)return r();o.getContentPath((t,a)=>{if(t)return r(t);e.getThumbnailPath(202,(t,s)=>{t&&(s=null);const l=bt.getElementStockId(e);if(!l)return r("Could not find element stock ID: "+JSON.stringify(e));{const t={id:l,identifier:l,mime_type:n,template_category:[Re.SAVED,Re.RECENT],title:e.name,created:e.created,licensedTime:e.modified,modified:e.modified,lastUsedTime:Vt.appStorageController.getTemplateLastUsedTimestamp(l)||e.modified,description:tt.formatMessage("newdoc_details_template_default"),thumbnail_url:s,width:o.width,height:o.height,url:a,size:o.contentLength,elementRef:e.getReference(),previews:[],libraryId:e.library&&e.library.id};t.mime_type&&t.url&&this.addTemplateToCache(t),i(t)}})})})}isConnected(){return this.ccLibraries&&this.ccLibraries.isConnected()}getServiceInfo(){return this.ccLibraries&&this.ccLibraries.getServiceInfo()}async isProcessInstalled(){return!!oe()&&await ot.isAppInstalled("cclibraries")}async isProcessRunning(){return await ot.isAppRunning("cclibraries")}launchCCLibraryProcess(){if(this.cclibraryProcessLaunchPending)return;let e;const t=()=>{e&&clearInterval(e),this.cclibraryProcessLaunchPending=!1,this.ccLibraries.reconnect(),ot.off("cclibraries.service.Initialized",t),setTimeout(()=>{this.isConnected()||this.launchCCLibraryProcess()},1e3)},n=()=>{if(this.isConnected())return void t();let e=this.getServiceInfo()||{};this.isProcessInstalled().then(t=>{this.isProcessRunning().then(n=>{e.updateRequired||!t||n||ot.launchApp("cclibraries")})})};ot.on("cclibraries.service.Initialized",t),this.ccLibraries.reconnect(),this.cclibraryProcessLaunchPending=!0,e=setInterval(n.bind(this),5e3),n()}getLicensedTemplates(e){return new Promise((t,n)=>{if(!oe())return t(this.fnftFakeLicensedTemplates);const i=e=>{e=e.filter((t,n)=>e.indexOf(t)===n),t(e.map(e=>Et.create(e)))};if(!this.areLibraryCollectionsLoaded())return this._logger.warn("Get licensed templates: Failed to load library collections"),n();let r=[],o=[];this.libraryCollections.forEach(e=>{o=o.concat(e.libraries)}),o.forEach(e=>{r=r.concat(e.getFilteredElements(wt))});const a=_t[e];a&&(r=r.filter(e=>e&&e.getPrimaryRepresentation().isCompatibleType(a)));let s=[];if(!r||0===r.length)return i([]);let l=0;r.forEach(e=>{this.buildUpTemplate(e,!0,a).then(e=>{s.push(e),++l===r.length&&i(s)}).catch(()=>{++l===r.length&&i(s)})})})}areLibraryCollectionsLoaded(){return this.libraryCollections&&this.libraryCollections.length>0}async getCachedTemplatesMap(e){if(!oe()&&this.fnftFakeLicensedTemplates)return this.fnftFakeLicensedTemplates.forEach(e=>{e.mime_type===_t[Vt.id]&&(this.cachedLicensedTemplates[e.id]=e)}),this.cachedLicensedTemplates;if(this.cachedLicensedTemplates&&Object.keys(this.cachedLicensedTemplates).length>0)return this.cachedLicensedTemplates;let t=this._libsRootDir;if(t||this.libraryCollections&&this.libraryCollections.length&&((t=this.libraryCollections[0]._rootDir)||(t=this.extractLibsRootDirPath(this.libraryCollections[0]._externalLinkCache&&this.libraryCollections[0]._externalLinkCache._rootDir))),this._logger.log("Looking into "+t+" for cached templates"),t){const n=`${t}/librarylookupfile`;try{const t=await at.readJson(n);return t&&t.libraries&&Object.keys(t.libraries).forEach(n=>{let i=t.libraries[n];i&&i.elements&&Object.keys(i.elements).forEach(t=>{let r=i.elements[t];if(!r||!r.reps)return;let o={id:r.stockId,identifier:r.stockId,template_category:[Re.SAVED,Re.RECENT],title:r.name,created:r.mod,licensedTime:r.mod,modified:r.mod,lastUsedTime:e.getTemplateLastUsedTimestamp(r.stockId)||r.mod,description:tt.formatMessage("newdoc_details_template_default"),elementRef:`cloud-asset://${i.domain}${i.path}/${n};node=${t}`,previews:[],url:void 0,libraryId:n};r.reps.forEach(e=>{e&&e.type===_t[hostID]?e.path&&(o.mime_type=e.type,o.url=ue(e.path)):e&&"image/jpeg"===e.type&&e.path&&(o.thumbnail_url=ue(e.path))}),o.mime_type&&o.url&&this.addTemplateToCache(o)})}),this.cachedLicensedTemplates}catch(e){this._logger.error(e)}}return{}}addTemplateToCache(e){if(void 0===this.cachedLicensedTemplates[e.id])this.cachedLicensedTemplates[e.id]=e;else{const t=this.cachedLicensedTemplates[e.id];t.created=t.created?Math.max(t.created,e.created||0):e.created||0,t.lastUsedTime=t.lastUsedTime?Math.max(t.lastUsedTime,void 0!==e.lastUsedTime?e.lastUsedTime:-1):e.lastUsedTime,t.licensedTime=t.licensedTime?Math.max(t.licensedTime,void 0!==e.licensedTime?e.licensedTime:-1):e.licensedTime,t.modified=t.modified?Math.max(t.modified,e.modified||0):e.modified||0}}extractLibsRootDirPath(e){let t=e;const n=t?t.indexOf("/LIBS/"):-1;return t=n>=0?t&&t.substring(0,n)+"/LIBS":void 0}};var Et=s.z.model({contributor_name:s.z.maybe(s.z.string),contributor_url:s.z.maybe(s.z.string),description:s.z.maybe(s.z.string),elementRef:s.z.maybe(s.z.string),height:s.z.maybe(s.z.number),id:s.z.union(s.z.number,s.z.string),identifier:s.z.maybe(s.z.union(s.z.number,s.z.string)),is_free:s.z.maybe(s.z.boolean),kind:"template",marketing_text:s.z.maybeNull(s.z.string),mime_type:s.z.maybeNull(s.z.string),previews:s.z.maybe(s.z.array(Ye)),price_prompt:s.z.maybe(s.z.string),resolution:s.z.maybeNull(s.z.union(s.z.number,s.z.string)),size:s.z.maybe(s.z.number),template_category:s.z.maybe(s.z.union(s.z.string,s.z.array(s.z.string))),thumbnail_url:s.z.maybe(s.z.string),thumbnail_height:s.z.maybe(s.z.number),thumbnail_width:s.z.maybe(s.z.number),url:s.z.maybe(s.z.string),tip:s.z.maybe(s.z.string),title:s.z.maybe(s.z.string),units:s.z.maybeNull(s.z.string),width:s.z.maybe(s.z.number),licensedTime:s.z.maybe(s.z.number),lastUsedTime:s.z.maybe(s.z.number),downloadStatus:s.z.maybe(Qe),licenseStatus:s.z.maybe(s.z.string),category:s.z.maybe(s.z.string)}).preProcessSnapshot(e=>{const{downloadStatus:t,...n}=e;return{...n,downloadStatus:t||{}}}).views(e=>({get isTooLarge(){return void 0!==e.size&&e.size/1048576>100},get isLicensed(){return void 0!==e.licensedTime&&Number.isInteger(e.licensedTime)&&e.licensedTime>0},get isDownloading(){return!(!e.downloadStatus||e.downloadStatus.downloadStatus!==gt.DOWNLOADING)||e.licenseStatus===At.REQUESTED},get downloadedSize(){return e.size&&e.downloadStatus&&e.downloadStatus.progress&&e.downloadStatus.progress>0?e.downloadStatus.progress*e.size/100:0}})).actions(e=>({updateLicenseStatus(t){e.licenseStatus=t},addTemplateCategory:t=>"string"==typeof e.template_category&&e.template_category!==t?(e.template_category=[e.template_category,t],!0):!(!Array.isArray(e.template_category)||-1!==e.template_category.indexOf(t))&&(e.template_category.push(t),!0)})).actions(e=>({updateStatus(t){t.licenseStatus&&t.licenseStatus?e.updateLicenseStatus(t.licenseStatus):(e.licensedTime=t.licensedTime,e.lastUsedTime=t.lastUsedTime,e.downloadStatus&&e.downloadStatus.updateStatus(t),e.url=t.path||e.url,e.elementRef=t.elementRef||e.elementRef,e.updateLicenseStatus(At.LICENSED))}}));const Ct="CCXP",Tt="ccxprocess.StockTemplateRequest",kt="ccxprocess.StockTemplateResponse",Pt=1e3;var Dt,At;!function(e){e.STOCK_INITIALIZED="stock-initialized"}(Dt||(Dt={})),function(e){e.REQUESTED="requested",e.LICENSED="downloading",e.ERROR="error"}(At||(At={}));var It=new class extends yt{constructor(){super(...arguments),this._logger=d.a.get("StockController"),this.data={},this.earlyKeyEventsProcessed=!1,this.stockTimeoutHandler=null}init(){this.removeAllListeners(),St.removeAllListeners(),St.initializeCCLibraries()}clearLicensedTemplateCache(){St.clearLicensedTemplateCache()}getTemplateCategories(e,t){const n={};let i=!1;for(let r in Re){const o=Re[r];let a=n[o]||[];const s=e&&e[o];let l=De(s,a=a.concat(t.filter(e=>(e.identifier=e.id,e.template_category instanceof Array?-1!==e.template_category.map(e=>e.toLowerCase()).indexOf(o):e.template_category===o))||[]));n[o]=l?s:a.map(e=>Et.create(e)),i=i||!l}return i?n:e}generateDefaultStockData(e){return{nb_results:0,templates:[],expirationDTS:"2015-11-01T00:00:00.000+00:00",_ccx:{version:e.radarVersion||"0.0.0"}}}getStockData(e,t){e.adobeGUID&&0!==e.adobeGUID.length||(this._logger.log("No user. Likely FRL or signed out"),t(null,{}));let n=this;const i=Date.now(),r=(e,n)=>{n&&this._logger.error(n);const r=Date.now()-i;this._logger.log(`It costs ${r}ms to get the stock response from CCXProcess.`),t(e)},o=Ee(),a=e=>{if(e&&this._logger.log(`Receiving ${kt} [${e.requestId}], path is ${e.path}`),e&&e.requestId===o)if(n.stockTimeoutHandler&&clearTimeout(n.stockTimeoutHandler),e.path)at.readJson(e.path).then(t=>{if(t&&t.templates)for(let n=0;n<t.templates.length;n++){let i=t.templates[n],r=e.path.substring(0,e.path.lastIndexOf("/"));if(i.thumbnail_url&&(i.thumbnail_url=r&&r+"/"+i.thumbnail_url),i.previews)for(let e=0;e<i.previews.length;e++){let t=i.previews[e];t&&t.url&&(t.url=r&&r+"/"+t.url)}}ot.off(kt,a),r(t)});else{const t="path is missing, parsedData="+JSON.stringify(e);ot.off(kt,a),r([],t)}};ot.on(kt,a);let s={productCode:e.hostID,productVersion:e.appVersion,productLanguage:e.language,countryCode:e.countryCode,subscriptionStatus:e.accountStatus};"trial"===s.subscriptionStatus&&(s.trialEndDTS=Se(e.secondsLeftInTrial||0,!1));let l={stockParams:s,requestId:o,userTrackingEnabled:e.userTrackingEnabled};const c={type:Tt,target:Ct,data:l};ot.dispatch(c),this._logger.log(`Sending ${Tt} [${o}]`);let u=!1;const p=()=>{if(!u)return u=!0,bt.launchCCXProcess(),ot.dispatch(c),void(n.stockTimeoutHandler=setTimeout(p,Pt));ot.off(kt,a),r([],"Request to get stock response from CCX Process timed out")};n.stockTimeoutHandler=setTimeout(p,Pt)}async handleStockData(e,t,n,i){He.measure(We.StockData),He.track(We.LicensedData);let r=t||this.generateDefaultStockData(e);const o=await St.getCachedTemplatesMap(i);He.measure(We.LicensedData),this.initTemplates(r,o,n)}loadAndCacheData(e,t,n){He.track(We.StockData),this.getStockData(e,i=>{n.setStockTemplateData(i),this.handleStockData(e,i,t,n)})}getAndInitializeTemplates(e,t,n){let i=n.getStockTemplateData();i&&i.templates&&0!==i.templates.length?(He.track(We.StockData),this.handleStockData(e,i,t,n),new Date(i.expirationDTS)<new Date&&this.loadAndCacheData(e,t,n)):this.loadAndCacheData(e,t,n)}initTemplates(e,t,n){He.track(We.TemplateFixup);let i=[];const r=n&&n.filter(e=>"template"===e.kind)||[];e&&e.templates&&e.templates.forEach(e=>{i.push(this.updateTemplate(e,r,t))}),Object.values(t).forEach(e=>{i.push(this.updateTemplate(e,r,t))});let o={};(i=i.filter(e=>!o[e.id]&&(o[e.id]=!0,!0))).sort(Ge.mostRecentlyUsedComparator),He.measure(We.TemplateFixup),this.trigger(Dt.STOCK_INITIALIZED,i)}updateTemplate(e,t,n){let i=e.id&&n[String(e.id)];if(i){e.url=i.url,e.elementRef=i.elementRef,e.thumbnail_url=i.thumbnail_url,e.template_category||(e.template_category=[]),xe(e.template_category,Re.RECENT),xe(e.template_category,Re.SAVED);const n=t.find(e=>e.elementRef===i.elementRef);e.lastUsedTime=n&&n.lastUsedTime||i.modified||0,e.licensedTime=i.modified||i.lastUsedTime}return void 0===e.lastUsedTime&&(e.lastUsedTime=0),void 0===e.licensedTime&&(e.licensedTime=0),e.kind="template",e}};const Rt={modalBehavior:"execute",executeWhileModal:!0},Nt={modalBehavior:"wait"};var Ot=n("W+8C"),Lt=n("Pg78");const Mt={Photoshop:class extends Ne{constructor(e){super(e),this.CANCEL_ERROR_CODE=8007,this.photoshopAction=window.require("photoshopAction"),this.photoshopCore=window.require("photoshopCore")}buildGetCommand(e,t={}){return Object.assign({_obj:"get",_target:{_ref:[{_property:e},{_ref:"application"}]}},t)}OSTypeToNum(e){return!e||e.length<4?0:("$"===e[0]&&5===e.length&&(e=e.substr(1,4)),(e.charCodeAt(0)<<24)+(e.charCodeAt(1)<<16)+(e.charCodeAt(2)<<8)+e.charCodeAt(3))}getLocale(){let e=this._uxp.host.locale;return e in{en_US:1,en_GB:1}||e.match(/en_??/)&&(e="en_US"),e}async getFNFTConfigInfoJSON(){const e=await this.getAppProperty("$CXNc");let t="";if(e)try{t="string"==typeof e.json?JSON.parse(e.json):e.json}catch(e){this.photoshopCore.showAlert({message:e})}return t}async getRecentlyUsedPresetsJSON(){return await this.getAppProperty("newDocPresetMRUlist",{forFNFTDialog:!0})}async getPSPresetsJSON(e=Re.ALL){const t=Be[e].map(e=>({presetKind:e,forFNFTDialog:!0}));return await this.getAppProperty("newDocPresetJSON",t)}async getRecentlyUsedTemplatesJSON(){return await this.getAppProperty("recentlyUsedCCLibrariesTemplateElements")}async getColorProfileLists(){return{RGB:{STANDARD:await this.getColorProfileList("$rStd"),OTHER:await this.getColorProfileList("$rInp")},CMYK:{STANDARD:await this.getColorProfileList("$cSIn"),OTHER:await this.getColorProfileList("$cInp")},grayscale:{STANDARD:await this.getColorProfileList("$gStd"),OTHER:await this.getColorProfileList("$gInp")}}}async getColorProfileList(e){try{let t=await this.getAppProperty("colorProfileList",{profile:this.OSTypeToNum(e)});return t&&t.length>0?t:[]}catch(t){return this._logger.error("Photoshop: Failed to retrieve list of color profiles from photoshop with type %s",e,t),[]}}async getEnvironmentInfoJSON(){let e={userTrackingEnabled:!1,firstName:"",lastName:"",subscription:"paid",secondsLeftInTrial:0,appStartClockTime:0,countryCode:"US",sessionGUID:"",accountType:"",displayMode:"fnft",buttonInfo:{create_button_newdocs:{},create_button_open:{}}};try{let t=await this.getAppProperty("$wlcm");void 0!==t&&(e.userTrackingEnabled=t.optin,e.firstName=t.first,e.lastName=t.last,e.sessionGUID=t.sessionID,t.welcomeScreenOpen&&(e.displayMode=t.welcomeScreenOpen),t.new&&(e.buttonInfo.create_button_newdocs.shortcut=t.new),t.open&&(e.buttonInfo.create_button_open.shortcut=t.open))}catch(e){this._logger.log("Photoshop: Property $wlcm could not be loaded")}return e.colorProfileLists=await this.getColorProfileLists(),e.appVersion=this._uxp.host.version,e.platform=se(),e.locale=this.getLocale(),e.userGUID=await this.getDelegateGUID(),e.radarVersion="1.2.0",e.radarSessionGUID=Ee(),e}async getPixelScaleFactorJSON(){return await this.getAppProperty("pixelScaleFactorList")}async getDefaultSettings(){return this.buildHostData(await this.getInitJSON())}async getInitJSON(){let e={envInfo:await this.getEnvironmentInfoJSON()};try{e.pixelScaleFactorList=await this.getPixelScaleFactorJSON(),e.fnftConfigInfo=await this.getFNFTConfigInfoJSON()}catch(e){this._logger.warn("Error occurred while calling Init JSON",e)}return e}async getPresetJSON(e=Re.ALL){let t={};const n=[];if(e!==Re.RECENT&&e!==Re.ALL||n.push({name:"newDocPresetMRUlist",args:{forFNFTDialog:!0},mapToField:"mruPresets"},{name:"recentlyUsedCCLibrariesTemplateElements",args:{forFNFTDialog:!0},mapToField:"mruTemplates"}),e!==Re.RECENT){const t=Be[e].map(e=>({presetKind:e,forFNFTDialog:!0}));n.push({name:"newDocPresetJSON",args:t,mapToField:"presets"})}return t=await this.getBatchAppProperties(n)}async getRecentPresets(){let e={};return e.mruPresets=await this.getRecentlyUsedPresetsJSON(),e.mruTemplates=await this.getRecentlyUsedTemplatesJSON(),e}async createPreset(e){const t={descriptor:{_obj:"make",null:{_ref:"newDocumentPreset"},newDocPresetJSON:e},options:{suppressPlayLevelIncrease:!0}};return(await this.photoshopAction.batchPlay([t],{propagateErrorToDefaultHandler:!0,...Rt}))[0]}async deletePreset(e){const t={descriptor:{_obj:"delete",null:{_ref:"newDocumentPreset",_name:e}}};return await this.photoshopAction.batchPlay([t],{...Rt})}async createDocumentFromTemplate(e,t,n){let i={forFNFTDialog:!0,method:"FNFT"};e&&(i.presetJSON=e),t&&(i.name=t),t||e||(i.useDefault=!0);const r={descriptor:{_obj:"make",new:{_obj:"document",_value:i},forceRecording:!0},options:{dialogOptions:n?"display":"dontDisplay",suppressPlayLevelIncrease:!0}};let o=await this.photoshopAction.batchPlay([r],{propagateErrorToDefaultHandler:!0,...Nt});return o&&o[0]&&void 0!==o[0].documentID}async openDocumentWithMRUIdentifier(e,t){const n=parseInt(e,10),i=n<this.mruPathCache.length?this.mruPathCache[n]:"";return await this.openDocumentWithPath(i,t)}async openDocumentWithPath(e,t,n,i){let r={descriptor:{_obj:"open",null:{_path:e},forceRecording:!0,overrideOpen:!0,method:t},options:{dialogOptions:"display",suppressPlayLevelIncrease:!0}};n&&i&&(r.descriptor.template=!0,r.descriptor.ccLibrariesElement={elementReference:i});let o=await this.photoshopAction.batchPlay([r],{propagateErrorToDefaultHandler:!0,...Nt},(t,n,i)=>{if(n&&n.message){const t={descriptor:{_obj:"delete",_target:{_ref:"recentFiles",name:e},missing:!0}};this.photoshopAction.batchPlay([t],{...Nt}),this.photoshopCore.showAlert({message:`Cannot open ${e} because it's missing`})}});return o&&o[0]&&void 0!==o[0].documentID}async openLegacyNewDocumentDialog(){return await this.createDocumentFromTemplate(null,null,!0)}async openColorPicker(e,t){const n={descriptor:{_obj:"showColorPicker",context:t,newDocPresetJSON:!0,color:JSON.stringify(e)},options:{}};let i=(await this.photoshopAction.batchPlay([n],{...Rt}))[0];if(!i.value)return null;try{return"string"==typeof i.color?Xe(JSON.parse(i.color)):null}catch(e){return this._logger.error("Photoshop: failed to pick a new color",e),null}}async convertColorToRGB(e){const t={descriptor:{_obj:"convertColorToSpace",newDocPresetJSON:!0,color:JSON.stringify(e),colorSpace:{_enum:"colorSpace",_value:"RGB"}},options:{}};let n=(await this.photoshopAction.batchPlay([t],{...Rt}))[0];try{return"string"==typeof n.color?Xe(JSON.parse(n.color)):null}catch(e){return null}}buildHostData(e){let t=e.envInfo,n={hostID:"PHXS",appVersion:t.appVersion,platform:t.platform,displayMode:t.displayMode,sessionGUID:t.sessionGUID,userTrackingEnabled:t.userTrackingEnabled,language:t.locale,countryCode:t.countryCode,adobeGUID:t.userGUID,accountStatus:t.subscription,accountType:t.accountType,radarSessionGUID:t.radarSessionGUID,radarVersion:t.radarVersion};return n.fnftSettings=this.getFNFTData(e),n.displayMode="fnft",n}getFNFTData(e){let t,n=e.fnftConfigInfo,i=e.envInfo;return t=e.pixelScaleFactorList&&e.pixelScaleFactorList.map((e,t)=>({label:e.name+(0===t?"":" ("+Me(e.value,2)+")"),value:e.value}))||[],{docSizeBounds:[3e5,3e5],units:["pixelsUnit","inchesUnit","centimetersUnit","millimetersUnit","pointsUnit","picasUnit"],resolutionUnits:["inchesUnit","centimetersUnit"],colorModes:[{mode:"bitmap",values:[1]},{mode:"grayscale",values:[8,16,32]},{mode:"RGB",values:[8,16,32]},{mode:"CMYK",values:[8,16]},{mode:"Lab",values:[8,16]}],backgroundValues:["white","black","background","transparent","custom"],backgroundColor:Xe(n.backgroundColor),pointsPerInch:n.pointsPerInch,defaultDocumentName:n.defaultNewDocName||null,colorProfileLists:i.colorProfileLists,colorSettings:n.colorSettings||{},userLocaleDecimal:n.userLocaleDecimal||".",defaultPresetSettings:n.startingPreset||null,pixelAspectRatios:t,psSupportsDocCreationViaCEPEvents:n.supportsDocCreationViaCEPEvents||!1,printPresetResolution:n.printPresetResolution,screenPresetResolution:n.screenPresetResolution}}reportPerformance(e){const t=e.filter(e=>"measure"===e.mode),n=t.reduce((e,t)=>(e[t.id]=t.deltaT,e),{});this._logger.log("Performance summary",t.map(e=>`${e.id}:${e.deltaT}`).join(",")),this.photoshopCore.logHighbeamDataGroup("startup_performance",n),He.reportToConsole(e)}async getAppProperty(e,t={}){let n=(Array.isArray(t)?t:[t]).map(t=>this.buildGetCommand(e,t));try{return(await this.photoshopAction.batchPlay(n,{...Rt})).map(t=>{const n=t[e];return"string"==typeof n?JSON.parse(n):n}).reduce((e,t)=>Te(e,t))}catch(e){return this._logger.warn("Failed to get Photoshop property",e),{}}}async getBatchAppProperties(e){let t=[];const n={};if(e&&e.length){e.forEach(e=>{const{name:i,args:r,mapToField:o}=e,a=Array.isArray(r)?r:[r];n[i]=o,t=t.concat(a.map(e=>this.buildGetCommand(i,e)))});const i=await this.photoshopAction.batchPlay(t,{...Rt});if(i&&i instanceof Array)return i.reduce((e,t)=>{const i=t&&Object.keys(t).filter(e=>n[e]);return i&&i.reduce((e,i)=>{let r=t[i];try{r="string"==typeof r?JSON.parse(r):r}catch(e){}const o=n[i],a=e[o];return e[o]=a?Te(a,r):r,e},e)||{}},{})}return{}}getAndInitializeTemplates(e,t){It.getAndInitializeTemplates(e,t,this.appStorageController)}updateTemplates(e,t,n=!0){n?It.getAndInitializeTemplates(e,t,this.appStorageController):It.loadAndCacheData(e,t,this.appStorageController)}async isStockEnabled(){let e=await this.photoshopAction.batchPlay([{descriptor:{_obj:"featureInfo",_target:{_ref:"application"},command:"getFeatureActive",feature:"UXPStock"},options:{}}],{...Rt});return e.length>0&&e[0].active}async requestLicenseDialog(e){const t=await St.getTemplateLibrary(),n=void 0!==e.is_free?e.is_free:"free"===e.price_prompt,i={path:e.thumbnail_url,width:e.thumbnail_width,height:e.thumbnail_height},r=JSON.stringify({contentId:e.id,renditionDetails:i,skipQuotaCheck:n,addToLibraryID:t.id,elementType:wt});return await this.photoshopCore.licenseStockAsset({payload:r,playLevel:0,eventLevel:0})}},Browser:class extends Ne{async getUserProfile(){return Promise.resolve({AppProfile:{},LegacyProfile:{},AdditionalLegacyProfiles:{},RelationshipProfile:[],UserProfile:{userId:"ADSDWDSAWE10A4C98A2@adobe.com",firstName:"John",lastName:"Doe",email:"johndoe@adobe.com",countryCode:"RO",displayName:"John doe",accountType:"type3"}})}get id(){return"PHXS"}get name(){return window.navigator.appName}get version(){return window.navigator.appVersion}async getPresetJSON(){return Promise.resolve(Ot)}async getRecentPresets(){return Promise.resolve(Ot)}async getDefaultSettings(){let e={...Lt,platform:-1!==navigator.platform.search(/win/i)?"win":"mac"};return Promise.resolve(e)}async createPreset(e){return this._logger.log("Browser: Create Preset",e),Promise.resolve({})}async deletePreset(e){this._logger.log("Browser: Delete Preset",e)}async createDocumentFromTemplate(e,t,n){return this._logger.log("Browser: Document Name: "+t),this._logger.log("Browser: Document Properties: "+JSON.stringify(e,null,4)),alert("Check the console :)"),!0}async openDocumentWithPath(e,t,n,i){return this._logger.log("Browser: Path:",e),this._logger.log("Browser: Pip Method:",t),this._logger.log("Browser: isTemplate:",n),this._logger.log("Browser: CC Libraries Element Ref:",i),alert("Check the console :)"),!0}async isAnalyticsEnabled(){return!1}async openColorPicker(e,t){return{red:254,green:127,blue:156,type:"RGBColor"}}async convertColorToRGB(e){return{red:254,green:127,blue:156,type:"RGBColor"}}async getTheme(){return Promise.resolve("dark")}addEventListener(e,t){window.addEventListener(e,t)}removeEventListener(e,t){window.removeEventListener(e,t)}reportPerformance(e){He.reportToConsole(e)}getAndInitializeTemplates(e,t){const n=et.templates;It.trigger(Dt.STOCK_INITIALIZED,n)}updateTemplates(e,t,n){const i=et.templates;It.trigger(Dt.STOCK_INITIALIZED,i)}}},Ut=window.require&&window.require("uxp");var zt,Bt,Ft,Vt=new Mt[Ut&&Ut.host?Ut.host.name:"Browser"],jt=n("nc0P"),Gt=n.n(jt);function Wt(e,t={}){let n=new Gt.a(e),i=new Gt.a(0);const r=new Gt.a(t.resolution||72),o=new Gt.a(t.pointsPerInch||72),a=new Gt.a(t.picasPerInch||6),s=!1!==t.trim,l=void 0!==t.precision?t.precision:5,c={m:{factor:new Gt.a(1)},cm:{factor:new Gt.a(.01)},in:{factor:new Gt.a(.0254)},mm:{factor:new Gt.a(.001)},px:{factor:new Gt.a(.0254).div(r)},pt:{factor:new Gt.a(.0254).div(o)},pc:{factor:new Gt.a(.0254).div(a)},ha:{factor:new Gt.a(.0254).div(101.6)},c:{factor:new Gt.a(.004511278195484999)},ag:{factor:new Gt.a(.0254).div(14)},cu:{factor:new Gt.a(.48390048)},ft:{factor:new Gt.a(.3048)}};return{from:function(e){return i=n.mul(c[e].factor),this},to:function(e){let t=i.div(c[e].factor),n=s?t.toFixed(l):t.toString();return Number(n)}}}function Ht(e,t,n,i={}){if(t===n)return e;let r=i.resolution;if(i.resolution&&i.resolutionUnits){const e=zt[i.resolutionUnits];r="in"===e?i.resolution:Wt(i.resolution).from("in").to(e)}return Wt(e,{picasPerInch:i.picasPerInch,pointsPerInch:i.pointsPerInch,resolution:r,trim:!1}).from(t).to(n)}!function(e){e.pixelsUnit="px",e.millimetersUnit="mm",e.centimetersUnit="cm",e.inchesUnit="in",e.picasUnit="pc",e.pointsUnit="pt"}(zt||(zt={})),function(e){e[e.pixelsUnit=0]="pixelsUnit",e[e.millimetersUnit=2]="millimetersUnit",e[e.centimetersUnit=2]="centimetersUnit",e[e.inchesUnit=3]="inchesUnit",e[e.picasUnit=2]="picasUnit",e[e.pointsUnit=1]="pointsUnit",e[e.resolution=3]="resolution"}(Bt||(Bt={})),function(e){e.B="filesize_key_B",e.KB="filesize_key_KB",e.MB="filesize_key_MB",e.GB="filesize_key_GB",e.TB="filesize_key_TB"}(Ft||(Ft={}));var $t=s.z.model({top:s.z.number,left:s.z.number,bottom:s.z.number,right:s.z.number});var qt=s.z.model({direction:s.z.string,coordinate:s.z.number});var Kt=s.z.model({STANDARD:s.z.array(s.z.string),OTHER:s.z.array(s.z.string)});var Jt=s.z.model({mode:s.z.string,values:s.z.array(s.z.number)});var Zt=s.z.model({policy:s.z.string,workingProfile:s.z.string,workingDisplayText:s.z.string});var Xt,Yt,Qt=s.z.model({name:s.z.maybe(s.z.string),description:s.z.maybe(s.z.string),identifier:s.z.maybe(s.z.string),tip:s.z.maybe(s.z.string),thumbnail:s.z.maybe(s.z.string),icon:s.z.maybe(s.z.string),size:s.z.maybe(s.z.number),kind:"preset",group:s.z.maybe(s.z.string),width:s.z.maybe(s.z.number),height:s.z.maybe(s.z.number),units:s.z.maybe(s.z.string),profile:s.z.maybe(s.z.string),resolution:s.z.maybe(s.z.number),resolutionUnits:s.z.maybe(s.z.string),pointsPerInch:s.z.maybe(s.z.number),picasPerInch:s.z.maybe(s.z.number),depth:s.z.maybe(s.z.number),scale:s.z.maybe(s.z.number),mode:s.z.maybe(s.z.string),fill:s.z.maybe(s.z.union(s.z.string,s.z.map(s.z.union(s.z.string,s.z.number)))),guides:s.z.maybe(s.z.array(qt)),artboards:s.z.maybe(s.z.array($t)),colorProfileLists:s.z.map(Kt),colorSettings:s.z.map(Zt),colorModes:s.z.array(Jt),backgroundValues:s.z.array(s.z.string),lastOpened:s.z.maybe(s.z.number),lastUsedTime:s.z.maybe(s.z.number),maxDocWidth:s.z.optional(s.z.number,3e5),maxDocHeight:s.z.optional(s.z.number,3e5),maxResolution:s.z.optional(s.z.number,29999.99),minDocWidth:1,minDocHeight:1,minResolution:1,defaultBackground:s.z.maybe(s.z.map(s.z.union(s.z.string,s.z.number))),defaultBackgroundRgb:s.z.maybe(s.z.map(s.z.union(s.z.string,s.z.number))),customRgbColor:s.z.maybe(s.z.map(s.z.union(s.z.string,s.z.number))),userLocaleDecimal:s.z.maybe(s.z.string),category:s.z.maybe(s.z.string)}).actions(e=>({updateFill:Object(s.k)((function*(t,n){e.fill=t||n,e.fill&&"string"!=typeof e.fill&&(e.customRgbColor=yield Je(Object(ie.toJS)(e.fill)))})),updateColorProfile(t){e.profile=t}})).views(e=>({get displayBackground(){let t;return t=e.fill&&"string"!=typeof e.fill?"custom":e.fill||"white"},get displayBackgroundValues(){return"bitmap"!==e.mode?e.backgroundValues:e.backgroundValues.filter(e=>"transparent"!==e)},get displayCustomColor(){let t;return t=e.fill&&"string"!=typeof e.fill?Object(ie.toJS)(e.fill):"custom"===e.fill?e.customRgbColor:Ze(e.fill||"white",Object(ie.toJS)(e.defaultBackgroundRgb))},get hasArtboards(){return e.artboards&&e.artboards.length>0},get displayColorProfileLists(){let t,n=e.mode||"",i=Object(s.f)([]),r=e.colorSettings.get(n),o=r&&r.policy,a=r&&r.workingProfile,l=r&&r.workingDisplayText;return i[0]=Object(s.f)([]),32!==e.depth&&i[0].push({value:"none"}),-1===["Lab","bitmap"].indexOf(n)&&("off"!==o?i[0].unshift({value:"default",label:l}):i[0].unshift({value:a||"default",label:l})),e.colorProfileLists&&["RGB","CMYK","grayscale"].indexOf(n)>=0&&e.colorProfileLists.has(n)?((t=e.colorProfileLists.get(n))&&(i.push(t.STANDARD),i.push(t.OTHER)),i):i}})).actions(e=>({updateColorMode(t){let n,{mode:i,values:r}=t;if(!r){let t=e.colorModes&&e.colorModes.filter(e=>e.mode===i);r=t[0]&&t[0].values||[8]}n=-1===r.indexOf(e.depth)?r[0]:e.depth,e.depth=n,e.mode=t.mode,"bitmap"===e.mode&&"transparent"===e.fill&&e.updateFill(e.displayBackgroundValues[0],e.defaultBackground);const o=e.displayColorProfileLists;o.length&&!o.filter(t=>t.filter(t=>t.value?t.value===e.profile:t===e.profile).length).length&&e.updateColorProfile(o[0][0].value?o[0][0].value:o[0][0])}})).views(e=>({get displayColorModes(){return e.hasArtboards?e.colorModes.filter(e=>"RGB"===e.mode):e.colorModes}})).actions(e=>({afterCreate:Object(s.k)((function*(){e.defaultBackgroundRgb||(e.defaultBackgroundRgb=yield Je(Object(ie.toJS)(e.defaultBackground))),e.updateFill(e.fill,e.defaultBackground)})),updateDimensionUnit(t){e.units&&(e.width=Ht(e.width||e.minDocWidth,zt[e.units],zt[t],e),e.height=Ht(e.height||e.minDocHeight,zt[e.units],zt[t],e),e.units=t,this.updateArtboards(e.hasArtboards))},updateNumericValue(t,n){let i=void 0===n?NaN:n;e[t]="string"==typeof i?parseFloat(i):i},updateWidth(t){this.updateNumericValue("width",t),this.updateArtboards(e.hasArtboards)},updateHeight(t){this.updateNumericValue("height",t),this.updateArtboards(e.hasArtboards)},updateResolution(t){this.updateNumericValue("resolution",t),this.updateArtboards(e.hasArtboards)},toggleOrientation(t){if(t!==e.orientation){const t=e.width;e.width=e.height,e.height=t,this.updateArtboards(e.hasArtboards)}},updateArtboards(t){if(t&&e.units){e.artboards=Object(s.f)([{bottom:Ht(e.height||e.minDocHeight,zt[e.units],zt.pixelsUnit,e),left:0,right:Ht(e.width||e.minDocWidth,zt[e.units],zt.pixelsUnit,e),top:0}]);const t=e.displayColorModes;t.length&&!t.filter(t=>t.mode===e.mode).length&&e.updateColorMode(t[0])}else e.artboards=Object(s.f)([])},updateResolutionUnit(t){e.resolutionUnits&&(e.resolution=Ht(e.resolution||72,zt[t],zt[e.resolutionUnits],e)),e.resolutionUnits=t},updateEncoding(t){e.depth=t},updateAspectRatio(t){e.scale=parseFloat(t)}})).views(e=>({get docStep(){return e.units?0===Bt[e.units]?1:.1:1},get displayMaxResolution(){if(!e.resolutionUnits||!e.units||zt[e.units]===zt.pixelsUnit)return e.maxResolution;const t=Ht(e.width||e.minDocWidth,zt[e.units],zt[e.resolutionUnits],e),n=Ht(e.height||e.minDocHeight,zt[e.units],zt[e.resolutionUnits],e),i=e.maxDocWidth/t,r=e.maxDocHeight/n,o=Ht(e.maxResolution,zt.inchesUnit,zt[e.resolutionUnits],e);return ze(Math.min(i,r,o),Bt.resolution)},get displayMinResolution(){if(!e.resolutionUnits||!e.units||zt[e.units]===zt.pixelsUnit)return e.minResolution;const t=Ht(e.width||e.minDocWidth,zt[e.units],zt[e.resolutionUnits],e),n=Ht(e.height||e.minDocHeight,zt[e.units],zt[e.resolutionUnits],e),i=e.minDocWidth/t,r=e.minDocHeight/n,o=Ht(e.minResolution,zt.inchesUnit,zt[e.resolutionUnits],e);return Ue(Math.max(i,r,o),Bt.resolution)},get displayMaxDocWidth(){if(!e.units)return e.maxDocWidth;return ze(Ht(e.maxDocWidth,zt.pixelsUnit,zt[e.units],e),Bt[e.units])},get displayMaxDocHeight(){if(!e.units)return e.maxDocHeight;return ze(Ht(e.maxDocHeight,zt.pixelsUnit,zt[e.units],e),Bt[e.units])},get displayMinDocWidth(){if(!e.units)return e.minDocWidth;return Ue(Ht(e.minDocWidth,zt.pixelsUnit,zt[e.units],e),Bt[e.units])},get displayMinDocHeight(){if(!e.units)return e.minDocHeight;return Ue(Ht(e.minDocHeight,zt.pixelsUnit,zt[e.units],e),Bt[e.units])},get displayWidth(){const t=void 0!==e.width?e.width:NaN;return e.units?Me(t,Bt[e.units]):t},get displayHeight(){const t=void 0!==e.height?e.height:NaN;return e.units?Me(t,Bt[e.units]):t},get displayResolution(){return Me(void 0!==e.resolution?e.resolution:NaN,Bt.resolution)},get orientation(){if(void 0!==e.height&&void 0!==e.width)return e.height>=e.width?"portrait":"landscape"},get displayColorMode(){return e.mode},get displayColorDepth(){return e.depth},get defaultCustomColor(){return e.customRgbColor||e.defaultBackground||Ze("white")},get displayCustomColorRgbString(){let t="custom"===e.displayBackground?e.customRgbColor:e.displayCustomColor;return t&&function(e){if(e&&"RGBColor"===e.type){const{red:t=0,green:n=0,blue:i=0,alpha:r}=e;return void 0===r?`rgb(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)})`:`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)}, ${r})`}return"rgba(0, 0, 0, 0)"}(Xe(Object(ie.toJS)(t)))}}));!function(e){e[e.NONE=0]="NONE",e[e.TRIAL=1]="TRIAL",e[e.RETAIL_SERIALIZED=2]="RETAIL_SERIALIZED",e[e.SUBSCRIPTION=3]="SUBSCRIPTION",e[e.VOLUME_SERIALIZED=4]="VOLUME_SERIALIZED",e[e.FRL=5]="FRL",e[e.UNKNOWN=6]="UNKNOWN"}(Xt||(Xt={})),function(e){e.NO_USER="No User",e.SIGNED_IN="Signed In",e.SIGNED_OUT="Signed Out",e.USER_CHANGED="User Changed"}(Yt||(Yt={}));let en="";const tn=s.z.model("User",{RelationshipProfile:s.z.optional(s.z.array(s.z.model("RelationshipProfile",{appEntitlementStatus:s.z.optional(s.z.enumeration("Entitlement",["TRIAL","SUBSCRIPTION","PERPETUAL","EXPIRED","DENIED"]),"DENIED"),workflowInProgress:s.z.optional(s.z.enumeration("Workflow",["NONE","HYBRID","INAPP"]),"NONE"),activationType:s.z.optional(s.z.enumeration("Activation",["NAMED_USER","FRL_ONLINE","FRL_ISOLATED","FRL_LAN","LAB_NAMED_USER","FRL_CONNECTED"]),"NAMED_USER"),profileGenerationTimestamp:s.z.optional(s.z.number,-1),licenseExpiryTimestamp:s.z.optional(s.z.number,-1),billingStatus:s.z.optional(s.z.enumeration("BillingStatus",["NORMAL","BILL_FAILURE","AUTH_FAILURE","CC_EXPIRED","PAYMENT_INSTRUMENT_MISSING"]),"NORMAL"),usedForLegacyProfile:s.z.optional(s.z.boolean,!1)})),[]),UserProfile:s.z.optional(s.z.model("UserProfile",{firstName:s.z.optional(s.z.string,""),lastName:s.z.optional(s.z.string,""),accountType:s.z.optional(s.z.string,""),countryCode:s.z.optional(s.z.string,""),userId:s.z.optional(s.z.string,""),displayName:s.z.optional(s.z.string,"")}),{}),LegacyProfile:s.z.optional(s.z.model("LegacyProfile",{licenseType:s.z.optional(s.z.number,Xt.UNKNOWN)}),{}),accessToken:s.z.optional(s.z.string,""),avatar:s.z.maybeNull(s.z.string)}).volatile(e=>({isStaging:!1,originalUserShown:!1,state:Yt.NO_USER})).views(e=>({get isUserAvailable(){return e.UserProfile.userId.length>0},get isEnterprise(){return"type1"!==e.UserProfile.accountType},get isFRL(){return ae(e)},get subscriptionStatus(){return e.LegacyProfile.licenseType===Xt.TRIAL?"trial":"paid"},get fetchOptions(){return{headers:{Authorization:`Bearer ${e.accessToken}`}}}})).actions(e=>({markOriginalUserShown(){e.originalUserShown=!0},setStaging(t){e.isStaging=t},setAccessToken(t){e.accessToken=t},setAvatar(t){e.avatar=t},setUserProfile(t){en=en||e.UserProfile.userId,e.RelationshipProfile=t.RelationshipProfile,e.LegacyProfile=t.LegacyProfile,e.UserProfile=t.UserProfile,!en&&e.UserProfile.userId?e.state=Yt.SIGNED_IN:en&&!e.UserProfile.userId?e.state=Yt.SIGNED_OUT:en||e.UserProfile.userId?en!==e.UserProfile.userId?e.state=Yt.USER_CHANGED:e.state=Yt.SIGNED_IN:e.state=Yt.NO_USER}}));var nn=n("4P1X"),rn=n.n(nn),on=n("13ar"),an=n.n(on);class sn{setCommonPayloadParameters(e,t){e.displayMode=t.displayPosition,e.cardTypeName=t.activeFilter,e.cardName=t.title,e.cardID=t.id||"preset"}setCommonStockPayloadParameters(e,t){this.setCommonPayloadParameters(e,t),e.displayTemplate="stock-template",e.attributes={price:t.price_prompt}}setCommonPresetPayloadParameters(e,t){this.setCommonPayloadParameters(e,t),e.displayTemplate="preset",e.attributes=this.pickAttributesFromPreset(t)}pickAttributesFromPreset(e){const t={width:!0,height:!0,mode:!0,units:!0,profile:!0,fill:!0,resolution:!0,resolutionUnits:!0};return Object.keys(e).reduce((n,i)=>(t.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}}const ln="CMDN",cn="creativecloud",un="DESKTOP";class pn{constructor(){this._logger=d.a.get("IngestWrapper"),this._osType=le()?"Windows":"MacOS",this._osVersion=oe()?window.require("os").release():"Unknown",this.ingestLibReady=!1,this.basePayloadData={"source.name":void 0,"source.version":void 0,"source.platform":this._osType,"source.os_version":this._osVersion,"consumer.platform":this._osType,"consumer.os_version":this._osVersion,"user.service_code":cn,"env.com.name":ln,"env.com.version":window.cmdnAppVersionNumber,"event.workflow":ln,"event.category":un,"event.subcategory":ln,"event.value":void 0,"event.guid":void 0,"event.type":void 0,"event.subtype":void 0,"event.user_guid":void 0,"content.id":void 0,"content.name":void 0,"content.type":void 0,"content.category":void 0,"content.status":void 0,"content.action":void 0,"content.author":void 0,"env.fw.name":void 0,displayCount:0},this.renderedCards={},this.prequeuedEvents=[],this.fnftUtil=new sn}async configure(e,t,n,i,r,o){const a=n.isStaging?"Stage":"Prod";this.psdkData=o;const s={ENVIRONMENT:a,ANALYTICS_API_KEY:e,ANALYTICS_X_PRODUCT:t.id+"%2F"+t.version,ANALYTICS_PROJECT:"ccx-cmdn-service",ANALYTICS_USER_REGION:t.countryCode,ANALYTICS_INGEST_TYPE:"dunamis",ANALYTICS_MAX_QUEUED_EVENTS:50,ANALYTICS_DEBOUNCE:0,TIMESTAMP_PROPERTY_NAME:"timestamp"},l={log:e=>{this._logger.debug(e)},getAccessToken:e=>{try{e(null,n&&n.accessToken)}catch(e){this._logger.error(`Ingest crashed with error ${e}`)}}};if(!n.isUserAvailable||n.isFRL)return!1;const c=await Vt.isAnalyticsEnabled();try{if(this.instance=new an.a(l,s),this.instance.enable(c),this.basePayloadData["env.com.version"]=r,this.basePayloadData["source.client_id"]=ge.clientId,this.basePayloadData["consumer.client_id"]=ge.clientId,this.basePayloadData["source.name"]=t.id,this.basePayloadData["consumer.name"]=t.id,this.basePayloadData["source.version"]=t.version,this.basePayloadData["consumer.version"]=t.version,this.basePayloadData["user.service_level"]="CS_LVL"+n.LegacyProfile.licenseType,this.basePayloadData["event.user_guid"]=n.UserProfile.userId,this.basePayloadData["event.user_agent"]=navigator.userAgent,this.basePayloadData["event.language"]=t.language,this.basePayloadData["event.context_guid"]=i.sessionGUID,this.basePayloadData["event.session_guid"]=i.radarSessionGUID,"fnft"!==t.displayMode&&(this.basePayloadData.appLaunchCount=t.launchCount),this.basePayloadData.AUMSegments=null,this.basePayloadData.hvaFlow=null,this.basePayloadData.displayMode=null,o){this.basePayloadData.AUMSegments=o.segmentID||"none",this.basePayloadData.hvaFlow=o.hvaFlow||"none";for(let e=0;e<o.cardControl.length&&!this.basePayloadData.displayMode;e++)o.cardControl[e].modeID===t.displayMode&&(this.basePayloadData.displayMode=o.cardControl[e].cardOrder.toString())}"paid"!==t.accountStatus&&void 0!==t.secondsLeftInTrial&&(this.basePayloadData.trialEndDts=Se(t.secondsLeftInTrial)),this._logger.log("cmdn.analytics.ingest: ("+a+") "+(c?"active":"disabled")),this.ingestLibReady=!0,c&&this.processPrequeuedEvents()}catch(e){this._logger.error(e)}return c}createPayload(e){let t=JSON.parse(JSON.stringify(this.basePayloadData));return t["event.guid"]=Ee(),t["event.dts_start"]=_e(new Date),t["event.dts_end"]=_e(new Date),e||(delete t.AUMSegments,delete t.hvaFlow,delete t.displayMode),t}processPrequeuedEvents(){let e=this;this.prequeuedEvents.map(t=>{for(let n in e.basePayloadData)!t[n]&&e.basePayloadData[n]&&(t[n]=e.basePayloadData[n]);e.postEvent(t)})}postEvent(e){this.ingestLibReady?e.debugIt?this._logger.debug(JSON.stringify(e)):this.instance.postEvent(e):this.prequeuedEvents.push(e)}flushEvent(){this.ingestLibReady&&this.instance.flush(!0)}logScreenStateEvent(e){let t=this.createPayload();t["event.type"]="screen-state",t.welcomeScreenState=e,this.postEvent(t)}logItemOpenedEvent(e){let t=this.createPayload();t["event.type"]="uc-file-open",t.fileType=e.fileType,t.fileOpenType=e.openType,t.sectionView=e.sectionView,void 0!==e.itemPosition&&(t.itemPosition=e.itemPosition),e.ucAction&&(t["event.subtype"]=e.ucAction),e.cardID&&(t.cardID=e.cardID),e.eventAction&&(t["event.type"]=e.eventAction),this.postEvent(t)}logMiscellaneousEvent(e){let t=this.createPayload();t["event.type"]=e["event.type"]||"uc-misc";for(let n in e)t[n]=e[n];this.postEvent(t)}logFNFTItemEvent(e){let t=this.createPayload();t["event.type"]="uc-file-open",t.fileOpenType="new",t=Object.assign(t,e),this.postEvent(t)}logFNFTItemRenderedEvent(e){let t={"event.type":"render",cardTypeName:e.activeFilter,displayMode:"preset"===e.kind?0:1,sectionView:e.group&&"clipboard"===e.group?"clipboard":"blank",displayTemplate:e.kind,cardName:e.name||e.title,cardID:e.id||"preset"};"preset"!==e.kind&&(t.attributes={price:e.price_prompt}),this.logFNFTItemEvent(t)}logFNFTActionClickedEvent(e,t){let n={"event.type":"click","event.subtype":e};switch(t=t||{},e){case"preset-selected":this.fnftUtil.setCommonPresetPayloadParameters(n,t),n["event.subtype"]="preset-select";break;case"template-selected":this.fnftUtil.setCommonStockPayloadParameters(n,t),n["event.subtype"]="template-select";break;case"stock-search":n["event.subtype"]="stock-search",n.displayTemplate="stock-template",n.cardTypeName=t.activeFilter,n["event.url"]=t.actionURL+"&as_content=ccxstart-search";break;case"stock-sidebar":n["event.subtype"]="stock-sidebar",this.fnftUtil.setCommonStockPayloadParameters(n,t),n["event.url"]=t.actionURL+"&as_content=ccxstart-sidebar";break;case"render-preview":n["event.type"]="render",n["event.subtype"]="preview",this.fnftUtil.setCommonStockPayloadParameters(n,t);break;case"close-template":n["event.subtype"]="close",this.fnftUtil.setCommonStockPayloadParameters(n,t);break;case"open-template":n["event.subtype"]="create",this.fnftUtil.setCommonStockPayloadParameters(n,t);break;case"preview":case"preview-close":case"preview-back":case"license-template":case"download-start":case"download-end":case"download":n["event.subtype"]=e,this.fnftUtil.setCommonStockPayloadParameters(n,t);break;case"too-large-render":n["event.type"]="render",n["event.subtype"]="download-large",this.fnftUtil.setCommonStockPayloadParameters(n,t);break;case"close":n["event.subtype"]="close",this.fnftUtil.setCommonPresetPayloadParameters(n,t);break;case"preset-viewmore":this.fnftUtil.setCommonPresetPayloadParameters(n,t),n["event.subtype"]="viewmore",delete n.attributes;break;case"preset-create":this.fnftUtil.setCommonPresetPayloadParameters(n,t),n.attributesChanged=!1,n["event.subtype"]="create",t.settings&&0!==Object.keys(t.settings).length&&t.settings.constructor===Object&&(n.attributesChanged=t.settings.attributesChanged||!1,n.attributesChanged&&(n.newAttributes=this.fnftUtil.pickAttributesFromPreset(t.settings)));break;case"more-options":n["event.subtype"]="advanced-settings",this.fnftUtil.setCommonPresetPayloadParameters(n,t),n=Object.assign(n,t.presetAttributes);break;case"tab-selected":n.cardTypeName=t.activeFilter;break;case"welcome-rendered":n["event.type"]="render",n["event.subtype"]="render-welcome",n.displayTemplate="welcome",n.displayCount=t.displayCount,n.cardTypeName=t.activeFilter;break;case"welcome-closed":n["event.subtype"]="close-welcome",n.displayTemplate="welcome",n.cardTypeName=t.activeFilter;break;case"resize-dialog":n["event.type"]="resize",n["event.subtype"]="resize",n.displayTemplate=t.displayTemplate,n.cardName=t.cardName,n.cardTypeName=t.activeFilter,t.displayMode>=0&&(n.displayMode=t.displayMode),n.attributes=t.attributes}this.logFNFTItemEvent(n)}}const hn="ccx-cmdn-service";class dn{constructor(){this.enabled=!1,this.ingest=new pn,this.postEvent=this.ingest.postEvent.bind(this.ingest),this.logFNFTActionClickedEvent=this.ingest.logFNFTActionClickedEvent.bind(this.ingest),this.logFNFTItemEvent=this.ingest.logFNFTItemEvent.bind(this.ingest),this.logMiscellaneousEvent=this.ingest.logMiscellaneousEvent.bind(this.ingest),this.logScreenStateEvent=this.ingest.logScreenStateEvent.bind(this.ingest),this.flushEvent=this.ingest.flushEvent.bind(this.ingest),this.logFNFTItemRenderedEvent=this.ingest.logFNFTItemRenderedEvent.bind(this.ingest),this.logItemOpenedEvent=this.ingest.logItemOpenedEvent.bind(this.ingest)}async config(e,t,n,i,r){try{this.enabled=await this.ingest.configure(hn,e,t,n,i,r)}catch(e){this.enabled=!1}}async composeURLWithAnalyticsQueryString(e){let t=e;if(t){const e=await this.getAnalyticsQueryString(),n=t.indexOf("#");let i="";n>=0&&(i=t.substr(n),t=t.substr(0,n));const r=t.indexOf("?")<0?"?":"&";t+=r+e+i}return t}async getAnalyticsQueryString(){const e=await Vt.getDefaultSettings()||{};return"locale="+e.language+"&x-product="+e.hostID+"%2F"+e.appVersion+"&x-product-location=CCXStart-"+e.displayMode+"%2F"+e.radarVersion+"&x-radarSession="+e.radarSessionGUID+"&x-appSession="+e.sessionGUID+"&ute="+e.userTrackingEnabled}}const fn=3;class mn{constructor(e){this._appStorageController=e}_shouldShowWelcome(e){return!!e&&this.displayCount<fn}get displayCount(){return this._appStorageController.getWelcomeDisplayCount()}increaseDisplayCount(){this._appStorageController.setWelcomeDisplayCount(this.displayCount+1)}closeRecentsWelcome(){this._appStorageController.setShowRecentsBanner(!1)}closeSavedWelcome(){this._appStorageController.setShowSavedBanner(!1)}shouldShowRecentsBanner(){return this._shouldShowWelcome(this._appStorageController.getShowRecentsBanner())}shouldShowSavedBanner(){return this._shouldShowWelcome(this._appStorageController.getShowSavedBanner())}}var gn;!function(e){e.STOCK="stock"}(gn||(gn={}));const vn={[gn.STOCK]:!0};class bn{static hasFeatureFlags(e,t){return!!e&&Object.keys(e).some(n=>{let i=e[n];return!!("function"==typeof i?i():i)&&t.includes(n)})}static mergeFeatureFlags(e){return Te(vn,e||{})}}var yn,wn,_n,xn,Sn,En,Cn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Tn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const kn="ANONYMOUS_USER";class Pn{constructor(e,t){this.theme="dark",this.ready=!1,this._activeView=Re.RECENT,this._saveFormVisible=!1,this._advancedSettingsCollapsed=!1,this._templateCategories={},this._containerSize={width:0,height:0},this._searchBoxText="",this._disableNativeSearchBox=!1,this._forceFocus=!1,this._activeModalView=null,this._logger=d.a.get("AppStore"),this._reverseTemplateLookup={},this._appSettings={},this._lastActivePresetBackgroundColor="white",this._featureFlags={},this.updateColorTheme=this.updateColorTheme.bind(this),this.updateTemplateCategories=this.updateTemplateCategories.bind(this),this.userProfileChangeListener=this.userProfileChangeListener.bind(this),this.updateTemplateDownloadStatus=this.updateTemplateDownloadStatus.bind(this),this.init(e,!0),this._onClose=t}async init(e,t=!1){He.track(We.LoadTime),He.track(We.DataTime),He.track(We.InteractiveTime),this._reverseTemplateLookup={},this._templateCategories={},He.setMeasurement(We.RiotMountApp,1),this._featureFlags={[gn.STOCK]:!0};const n=await Vt.getUserProfile(e,this.userProfileChangeListener);this._user=tn.create(n);const i=tt.getLanguage(Vt.language);this._appStorageController=new Ie("1.2.0",this.user.UserProfile.userId||kn,i),Vt.appStorageController=this._appStorageController,t&&this._appStorageController.resetSessionLoggedInUsers(),He.track(We.HostData),await this.updateDefaultSettings(),He.measure(We.HostData),He.track(We.i18nJSON);const r=await this.getLanguageStrings(i);tt.setLocaleAndStrings(i,r),He.measure(We.i18nJSON),Vt.addEventListener("themechanged",this.updateColorTheme),await this.updateColorTheme(),He.track(We.HostPresetData),await this.updatePresetCategory(this.activeView),He.measure(We.HostPresetData),this._welcomeController=new mn(this._appStorageController),this._appStorageController.addSessionLoggedInUser()&&this._welcomeController.increaseDisplayCount(),this.advancedSettingsCollapsed=this._appStorageController.getAdvancedSettingsCollapsed(),this._analytics=new dn,He.track(We.IngestConfig),await this._analytics.config(Vt,this._user,this._appSettings,"1.2.0"),He.measure(We.IngestConfig),this.ready=!0,He.measure(We.InteractiveTime),this.shouldShowRecentsBanner&&this._analytics.logFNFTActionClickedEvent("welcome-rendered",{displayCount:this._welcomeController.displayCount,activeFilter:this._activeView}),this.isStockEnabled?(It.init(),It.on(Dt.STOCK_INITIALIZED,e=>{const t=It.getTemplateCategories(this._templateCategories,e);this.updateTemplateCategories(t)}),Vt.getAndInitializeTemplates(this._appSettings,this._presetCategories&&this._presetCategories[Re.RECENT]||[]),St.on(vt.CHANGE,()=>{Vt.getAndInitializeTemplates(this._appSettings,this._presetCategories&&this._presetCategories[Re.RECENT]||[])}),St.on(vt.DOWNLOAD_STATUS,this.updateTemplateDownloadStatus)):this.reportStats()}updateTemplateDownloadStatus(e){let t=this._reverseTemplateLookup[e.templateId];if(t){const n=t.downloadStatus&&t.downloadStatus.downloadStatus;if(t.updateStatus(e),t.addTemplateCategory(Re.SAVED)){let e=this._templateCategories[Re.SAVED];void 0===e.find(e=>e.id===t.id)&&(e.push(t),e.sort(Ge.mostRecentlyUsedComparator))}if(n||e.downloadStatus!==gt.DOWNLOADING){if(e.downloadStatus===gt.DOWNLOADED&&(this.analytics.logFNFTActionClickedEvent("download-end",t),t.addTemplateCategory(Re.RECENT))){let e=this._templateCategories&&this._templateCategories[Re.RECENT];void 0===e.find(e=>e.id===t.id)&&(e.push(t),e.sort(Ge.mostRecentlyUsedComparator))}}else this.forceFocus=!0,this.analytics.logFNFTActionClickedEvent("download-start",t)}}updateTemplateCategories(e){this._templateCategories=e,this._reverseTemplateLookup={},Object.keys(this._templateCategories).forEach(e=>{this._templateCategories[e].reduce((e,t)=>(e[t.id]=t,e),this._reverseTemplateLookup)}),this.activeView===Re.RECENT&&this.setDefaultActiveDocumentTemplateAndFocus(),St.licensedTemplateDataAvailable&&this.reportStats()}get mixedRecentData(){const e=(this._presetCategories&&this._presetCategories[Re.RECENT]||[]).filter(e=>"preset"===e.kind),t=this._templateCategories&&this._templateCategories[Re.RECENT];return[].concat(e).concat(t||[]).sort(Ge.mostRecentlyUsedComparator)}get isStockEnabled(){return bn.hasFeatureFlags(this._featureFlags,[gn.STOCK])}get featureFlags(){return this._featureFlags}reportStats(){He.isTracked(We.DataTime)&&(He.measure(We.DataTime),He.measure(We.LoadTime),this.isStockEnabled&&(He.isTracked(We.LoadLibraryFile)||(He.track(We.LoadLibraryFile),He.measure(We.LoadLibraryFile)),He.isTracked(We.InitLibrary)||(He.track(We.InitLibrary),He.measure(We.InitLibrary))),Vt.reportPerformance(He.measurements),He.clearMeasurements())}userProfileChangeListener(e,t=!1){if(t)this.user&&e&&this.user.setAccessToken(e.accessToken);else try{this.user&&this.user.UserProfile.userId===e.UserProfile.userId||It.clearLicensedTemplateCache(),this.ready=!1,this.init(e),this.forceFocus=!0}catch(e){this._logger.warn("Failed to update user profile:",e)}}async getLanguageStrings(e){let t;if(this._appStorageController){let n=this._appStorageController.getLanguageStrings();return n&&n.language===e&&void 0!==n.strings?n.strings:(t=await tt.fetchLocaleStrings(e),this._appStorageController.setLanguageStrings({language:e,strings:t}),t)}return t=await tt.fetchLocaleStrings(e)}async updateDefaultSettings(){this._appSettings=await Vt.getDefaultSettings(),this._defaultSettings=this._appSettings&&this._appSettings.fnftSettings,this._defaultSettings&&(this._defaultSettings.backgroundColorRgb=await Je(this._defaultSettings.backgroundColor)||void 0),this.documentName=this._defaultSettings?this._defaultSettings.defaultDocumentName:""}async updateColorTheme(){const e=await Vt.getTheme();this.theme="lightest"===e||"light"===e?"light":"dark"}async updatePresetsAndTemplates(e=Re.ALL){await this.updatePresetCategory(e),this.setDefaultActiveDocumentTemplateAndFocus(),this.isStockEnabled&&Vt.updateTemplates(this._appSettings,this._presetCategories&&this._presetCategories[Re.RECENT]||[],e===Re.RECENT)}async updatePresetCategory(e=Re.ALL){if(Vt.getPresetJSON){const t=await Vt.getPresetJSON(e);if(t){const n=Ge.getPresetsCategories(t,this.language,this.defaultSettings);void 0===this._presetCategories||e===Re.ALL?this._presetCategories=Object.assign({},this._presetCategories,n):this._presetCategories=Object.assign({},this._presetCategories,{[e]:n[e]})}}}resetUIState(){this.saveFormVisible=!1,this.switchToRecentView(),this.searchBoxText="",this.activeModalView=null,this.disableNativeSearchBox=!0}switchToRecentView(){this._activeView=Re.RECENT,this.setDefaultActiveDocumentTemplate()}switchToSavedView(e){if(this._activeView=Re.SAVED,e){let t=this.getPresetsByCategoryType(this.activeView).find(t=>t.name===e);if(t)return this.activeDocumentTemplate=t,void(this.forceFocus=!0)}this.setDefaultActiveDocumentTemplateAndFocus()}setDefaultActiveDocumentTemplate(){const e=this.getPresetsByCategoryType(this.activeView);if(e&&e.length>0)this.activeDocumentTemplate=e[0];else{const e=this.getTemplatesByCategoryType(this.activeView);this.activeDocumentTemplate=e&&e.length>0?e[0]:void 0}}setDefaultActiveDocumentTemplateAndFocus(){this.setDefaultActiveDocumentTemplate(),this.forceFocus=!0}getPresetsByCategoryType(e){return this._presetCategories&&!this._presetCategories.hasOwnProperty(e)&&this.updatePresetCategory(e),e===Re.RECENT?this.mixedRecentData:this._presetCategories[e]||[]}getTemplatesByCategoryType(e){return this.isStockEnabled&&this._templateCategories&&this._templateCategories[e]||[]}async openTemplate(e){return"PHXS"!==this._appSettings.hostID&&this._appStorageController&&e.id&&this._appStorageController.setTemplateLastUsedTimestamp(e.id,Date.now()),await Vt.openDocumentWithPath(e.url||"","ccx.create.new stocktemplate",!0,e.elementRef)}get isWindowsOS(){return void 0!==this._appSettings&&"win"===this._appSettings.platform}get language(){return tt.getLoadedLocale()}get languageStrings(){return tt.getLoadedStrings()}get defaultSettings(){return this._defaultSettings}set activeModalView(e){this._activeModalView=e,this.disableNativeSearchBox=!!e,this.forceFocus=!e}get activeModalView(){return this._activeModalView}get activeView(){return this._activeView}set activeView(e){Object.values(Re).indexOf(e)>-1&&(this._activeDocumentTemplate=void 0,this._activeView=e,this._analytics&&this._analytics.logFNFTActionClickedEvent("tab-selected",{activeFilter:e}))}get saveFormVisible(){return this._saveFormVisible}set saveFormVisible(e){this._saveFormVisible=e}get advancedSettingsCollapsed(){return this._advancedSettingsCollapsed}set advancedSettingsCollapsed(e){this._appStorageController&&this._appStorageController.setAdvancedSettingsCollapsed(e),this._advancedSettingsCollapsed=e}get documentName(){return this._documentName}set documentName(e){this._documentName=e}get activeDocumentTemplate(){return this._activeDocumentTemplate}set activeDocumentTemplate(e){if(this._activeDocumentTemplate&&"preset"===this._activeDocumentTemplate.kind){const e=this._activeDocumentTemplate;"clipboard"!==e.group&&(this._lastActivePresetBackgroundColor=e.fill||this.defaultSettings&&this.defaultSettings.backgroundColor||"white")}e?"preset"===e.kind?this._activeDocumentTemplate=Qt.create(Ge.updatePreset(JSON.parse(JSON.stringify(e)),this.defaultSettings,Object(ie.toJS)(this._lastActivePresetBackgroundColor))):this._activeDocumentTemplate=e.hasOwnProperty("updateStatus")?e:Et.create(Ge.updateTemplate(JSON.parse(JSON.stringify(e)),this.defaultSettings)):this._activeDocumentTemplate=void 0}async downloadActiveTemplate(){const e=this.activeDocumentTemplate;if(this._analytics&&this._analytics.logFNFTActionClickedEvent("download",e),!e)return void this._logger.warn("Attempting to download active template, but store.activeDocumentTemplate is not a template.");if(e.isDownloading)return void this._logger.warn("Attempting to download active template, but template is already downloading");e.updateStatus&&e.updateStatus({licenseStatus:At.REQUESTED}),this.analytics.logFNFTActionClickedEvent("license-template",e);const t=await Vt.requestLicenseDialog(e);t&&t.state===mt.NOT_POSSIBLE&&e.updateStatus&&e.updateStatus({licenseStatus:At.ERROR})}get originalPreset(){const e=this.getPresetsByCategoryType(this._activeView);return e&&this._activeDocumentTemplate?e.find(e=>this._activeDocumentTemplate&&this._activeDocumentTemplate.identifier===e.identifier):void 0}get containerSize(){return this._containerSize}set containerSize(e){this._containerSize=e}async openColorPicker(e,t){return await Vt.openColorPicker(e,t)}async createPreset(e){return await Vt.createPreset(e)}async deletePreset(e){return await Vt.deletePreset(e)}async createDocument(e,t){return await Vt.createDocumentFromTemplate(JSON.stringify(e),t,!1)}closeApp(e){"function"==typeof this._onClose&&this._onClose(e)}afterCloseApp(e){let t={settings:{}};Object.assign(t,this.originalPreset),Object.assign(t.settings,this.activeDocumentTemplate);const n=this.activeDocumentTemplate&&"template"===this.activeDocumentTemplate.kind?"close-template":"close";this.analytics.logFNFTActionClickedEvent(n,t),this.analytics.flushEvent()}closeRecentsWelcome(){void 0!==this._welcomeController&&(this._welcomeController.closeRecentsWelcome(),this.forceFocus=!0,this._analytics&&this._analytics.logFNFTActionClickedEvent("welcome-closed",{activeFilter:this._activeView}))}get shouldShowRecentsBanner(){const e=this._welcomeController;return void 0!==e&&e.shouldShowRecentsBanner()}closeSavedWelcome(){const e=this._welcomeController;void 0!==e&&(e.closeSavedWelcome(),this.forceFocus=!0)}get shouldShowSavedBanner(){const e=this._welcomeController;return void 0!==e&&e.shouldShowSavedBanner()}get showFileSizeWarning(){const e=this._appStorageController;return!e||e.getShowFileSizeWarning()}set showFileSizeWarning(e){const t=this._appStorageController;t&&t.setShowFileSizeWarning(e)}get user(){return this._user}get analytics(){return this._analytics}get forceFocus(){return this._forceFocus}set forceFocus(e){this._forceFocus=e}get searchBoxText(){return this._searchBoxText}set searchBoxText(e){this._searchBoxText=e}get disableNativeSearchBox(){return this._disableNativeSearchBox}set disableNativeSearchBox(e){this._disableNativeSearchBox=e}}Cn([ie.observable,Tn("design:type",String)],Pn.prototype,"theme",void 0),Cn([ie.observable,Tn("design:type",Boolean)],Pn.prototype,"ready",void 0),Cn([ie.observable.ref,Tn("design:type",Object)],Pn.prototype,"_presetCategories",void 0),Cn([ie.observable,Tn("design:type","function"==typeof(yn=void 0!==rn.a&&rn.a)?yn:Object)],Pn.prototype,"_activeDocumentTemplate",void 0),Cn([ie.observable,Tn("design:type",Object)],Pn.prototype,"_activeView",void 0),Cn([ie.observable,Tn("design:type",Object)],Pn.prototype,"_documentName",void 0),Cn([ie.observable,Tn("design:type",Boolean)],Pn.prototype,"_saveFormVisible",void 0),Cn([ie.observable,Tn("design:type",Boolean)],Pn.prototype,"_advancedSettingsCollapsed",void 0),Cn([ie.observable.ref,Tn("design:type",Object)],Pn.prototype,"_templateCategories",void 0),Cn([ie.observable,Tn("design:type","function"==typeof(wn="undefined"!=typeof ContainerSizeModelType&&ContainerSizeModelType)?wn:Object)],Pn.prototype,"_containerSize",void 0),Cn([ie.observable,Tn("design:type",String)],Pn.prototype,"_searchBoxText",void 0),Cn([ie.observable,Tn("design:type",Object)],Pn.prototype,"_disableNativeSearchBox",void 0),Cn([ie.observable,Tn("design:type",Object)],Pn.prototype,"_forceFocus",void 0),Cn([ie.observable,Tn("design:type",Object)],Pn.prototype,"_activeModalView",void 0),Cn([ie.computed,Tn("design:type",Array),Tn("design:paramtypes",[])],Pn.prototype,"mixedRecentData",null),Cn([ie.computed,Tn("design:type",Boolean),Tn("design:paramtypes",[])],Pn.prototype,"isStockEnabled",null),Cn([ie.computed,Tn("design:type","function"!=typeof!1&&Object),Tn("design:paramtypes",[])],Pn.prototype,"featureFlags",null),Cn([ie.computed,Tn("design:type",Boolean),Tn("design:paramtypes",[])],Pn.prototype,"isWindowsOS",null),Cn([ie.computed,Tn("design:type",String),Tn("design:paramtypes",[])],Pn.prototype,"language",null),Cn([ie.computed,Tn("design:type",Object),Tn("design:paramtypes",[])],Pn.prototype,"languageStrings",null),Cn([ie.computed,Tn("design:type",Object),Tn("design:paramtypes",[Object])],Pn.prototype,"activeModalView",null),Cn([ie.computed,Tn("design:type","function"==typeof(_n=void 0!==Re&&Re)?_n:Object),Tn("design:paramtypes",["function"==typeof(xn=void 0!==Re&&Re)?xn:Object])],Pn.prototype,"activeView",null),Cn([ie.computed,Tn("design:type",Boolean),Tn("design:paramtypes",[Boolean])],Pn.prototype,"saveFormVisible",null),Cn([ie.computed,Tn("design:type",Boolean),Tn("design:paramtypes",[Boolean])],Pn.prototype,"advancedSettingsCollapsed",null),Cn([ie.computed,Tn("design:type",String),Tn("design:paramtypes",[String])],Pn.prototype,"documentName",null),Cn([ie.computed,Tn("design:type",Object),Tn("design:paramtypes",[Object])],Pn.prototype,"activeDocumentTemplate",null),Cn([ie.computed,Tn("design:type",Object),Tn("design:paramtypes",[])],Pn.prototype,"originalPreset",null),Cn([ie.computed,Tn("design:type","function"==typeof(Sn="undefined"!=typeof ContainerSizeModelType&&ContainerSizeModelType)?Sn:Object),Tn("design:paramtypes",["function"==typeof(En="undefined"!=typeof ContainerSizeModelType&&ContainerSizeModelType)?En:Object])],Pn.prototype,"containerSize",null);const Dn=r.a.createContext(void 0);function An(e){return function(t){return r.a.createElement(Dn.Consumer,null,n=>r.a.createElement(e,Object.assign({},t,{store:n})))}}var In=n("Cn9g"),Rn=n.n(In),Nn=n("fjGn"),On=n.n(Nn),Ln=n("IHOr"),Mn=n.n(Ln);class Un extends i.Component{render(){const{className:e,style:t,...n}=this.props;return r.a.createElement("div",Object.assign({style:t,className:p()(e,Mn.a["cmdn-FlexContainer"])},n))}}var zn=n("M+Cl"),Bn=n.n(zn);class Fn extends i.Component{render(){const{order:e,flexGrow:t,className:n,flexShrink:i,flexBasis:o,alignSelf:a,...s}=this.props,l=Object.assign({order:e,flexGrow:t,flexShrink:i,flexBasis:o,alignSelf:a},this.props.style||{});return r.a.createElement("div",Object.assign({className:p()(this.props.className,Bn.a["cmdn-Flex-Item"])},s,{style:{...l}}))}}var Vn=Fn,jn=n("ZHX6"),Gn=n.n(jn);class Wn extends i.Component{render(){const{template:e}=this.props;return e.previews.map(e=>r.a.createElement("img",{key:`template_preview_${e.url}`,src:ce(e.url),className:Gn.a["cmdn-TemplatePreview-image"]}))}}var Hn=n("eXD0"),$n=n.n(Hn);class qn extends i.Component{render(){const{value:e,intl:t}=this.props,{formatNumber:n,formatMessage:i}=t,o=!(a=e)||!isFinite(a)||a<=0?{val:0,unit:Ft.KB}:a>=1099511627776?{val:a/1099511627776,unit:Ft.TB}:a>=1073741824?{val:a/1073741824,unit:Ft.GB}:a>=1048576?{val:a/1048576,unit:Ft.MB}:a>=1024?{val:a/1024,unit:Ft.KB}:{val:a,unit:Ft.B};var a;const s=o.unit===Ft.B?o.val:Number(o.val.toFixed(1)),l=t.textComponent||r.a.Fragment;return r.a.createElement(l,null,n(s)+i({id:o.unit}))}}var Kn,Jn=Object(c.g)(qn),Zn=n("V+J5"),Xn=n.n(Zn);!function(e){e.BOTTOM="bottom",e.LEFT="left"}(Kn||(Kn={}));class Yn extends i.Component{render(){const{value:e,size:t,labelPosition:n,intl:i,className:o,progress:a}=this.props,s=void 0!==a?a:e/t*100,l=p()(Xn.a["cmdn-FileDownloadProgress"],o,{[Xn.a["cmdn-FileDownloadProgress--leftLabel"]]:n===Kn.LEFT});return r.a.createElement(Un,{className:l},r.a.createElement($n.a,{className:Xn.a["cmdn-FileDownloadProgressBar"],size:"S",value:s}),r.a.createElement("div",{className:Xn.a["cmdn-FileDownloadProgress-message"]},r.a.createElement(Jn,{value:e})," "+i.formatMessage({id:"of"})+" ",r.a.createElement(Jn,{value:t})))}}var Qn=Object(c.g)(Yn),ei=n("DlQD"),ti=n.n(ei),ni=n("HfgS"),ii=n.n(ni),ri=n("b7KY"),oi=n.n(ri),ai=n("6up5"),si=n.n(ai);class li extends i.Component{render(){return r.a.createElement("div",{id:this.props.id,"aria-labelledby":this.props.labelledBy,role:"region",className:p()({[si.a["cmdn-Collapsible"]]:!0,[si.a["is-open"]]:this.props.open})},this.props.children)}}var ci=n("Bfm4"),ui=n.n(ci),pi=n("uXGE"),hi=n.n(pi),di=n("+n3g"),fi=n.n(di);class mi extends i.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this)}get classes(){return p()(this.props.className,ui.a["cmdn-PanelTitle"],{[ui.a["cmdn-PanelTitle--collapsible"]]:this.props.collapsible})}expand(e){this.props.onToggle&&this.props.onToggle(e)}onKeyDown(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.expand(!this.props.collapsed))}get chevron(){if(this.props.collapsible){let e=this.props.collapsed?hi.a:fi.a;return r.a.createElement(e,{className:"spectrum-PanelTitle-chevron",size:"S"})}return null}render(){const{id:e,collapsed:t,collapsible:n,contentId:i}=this.props;let o={};return n&&(o.role="button",o["aria-expanded"]=t,o["aria-controls"]=i),r.a.createElement("div",Object.assign({id:e},o,{onKeyDown:this.onKeyDown,onClick:()=>this.expand(!t),className:this.classes,tabIndex:n?0:void 0}),this.chevron,this.props.title)}}var gi=n("W73E"),vi=n.n(gi);class bi extends i.Component{constructor(e){super(e),this.state={headerId:oi()(),contentId:oi()()},this.onToggle=this.onToggle.bind(this)}onToggle(e){this.props.onToggle&&this.props.onToggle(),requestAnimationFrame(()=>{if(this.props.collapsible&&e){a.a.findDOMNode(this.collapsibleRef).scrollIntoView()}})}get classes(){return p()(this.props.className,vi.a["cmdn-Panel"])}get title(){return this.props.title?r.a.createElement(mi,{id:this.state.headerId,className:this.props.titleClass,contentId:this.state.contentId,collapsible:this.props.collapsible,collapsed:this.props.open,title:this.props.title,onToggle:this.onToggle}):null}get content(){let e=r.a.createElement(r.a.Fragment,null,this.props.children);return this.props.collapsible?r.a.createElement(li,{ref:e=>this.collapsibleRef=e,id:this.state.contentId,labelledBy:this.state.headerId,open:this.props.open},e):e}render(){const{className:e,style:t,icon:n,open:i,collapsible:o,title:a,titleClass:s,onToggle:l,...c}=this.props;return r.a.createElement("div",Object.assign({className:this.classes,style:t},c),this.title,this.content)}}var yi=n("35Us"),wi=n.n(yi),_i=n("Z48R"),xi=n.n(_i);class Si extends i.Component{render(){return r.a.createElement(mi,{className:p()(xi.a["cmdn-PanelGroupTitle"],this.props.titleClass),title:this.props.title})}}class Ei extends i.Component{get classes(){return p()(wi.a["cmdn-PanelGroup"],this.props.className)}get content(){return r.a.createElement(r.a.Fragment,null,this.props.children)}get title(){return this.props.title&&r.a.createElement(Si,{title:this.props.title,className:this.props.titleClass,titleClass:this.props.titleClass})}render(){return r.a.createElement("div",{className:this.classes},this.title,this.content)}}class Ci extends i.Component{render(){return r.a.createElement(c.b,Object.assign({},this.props),e=>r.a.createElement("span",null,"string"==typeof e?e.toUpperCase():e))}}var Ti=n("L+OI"),ki=n.n(Ti),Pi=n("8bOP"),Di=n.n(Pi),Ai=n("93ll"),Ii=n.n(Ai);class Ri extends i.Component{constructor(e){super(e),this.neverShowAgain=!this.props.store.showFileSizeWarning,this.continueBtn=r.a.createRef()}componentDidMount(){this.continueBtn.current&&this.continueBtn.current.focus()}onCancel(e){this.props.store.activeModalView=null}onContinue(e){this.props.store.activeModalView=null,this.props.store.showFileSizeWarning=!this.neverShowAgain,this.props.store.downloadActiveTemplate()}render(){const{formatMessage:e}=this.props.intl;return r.a.createElement(r.a.Fragment,null,r.a.createElement(Di.a,{className:Ii.a["OversizedModal-header"],variant:"pageTitle"},r.a.createElement(c.b,{id:"newdoc_bigtemplate_header"})),r.a.createElement("div",{className:Ii.a["OversizedModal-message"]},r.a.createElement(c.b,{id:"newdoc_bigtemplate_body"})),r.a.createElement("div",{className:Ii.a["OversizedModal-actions"]},r.a.createElement(Rn.a,{defaultPreventedKeys:["Escape"],onClick:e=>this.onCancel(e)},r.a.createElement(c.b,{id:"cancel"})),r.a.createElement(Rn.a,{defaultPreventedKeys:["Escape"],variant:"cta",onClick:e=>this.onContinue(e),ref:this.continueBtn},r.a.createElement(c.b,{id:"continue"}))),r.a.createElement(ki.a,{defaultPreventedKeys:["Escape"],label:e({id:"never_show_again"}),checked:this.neverShowAgain,onChange:e=>this.neverShowAgain=e}))}}const Ni=Object(ie.decorate)(Ri,{neverShowAgain:ie.observable}),Oi=An(Object(c.g)(Object(l.c)(Ni))),Li=d.a.get("LockUtils"),Mi={};var Ui,zi;function Bi(){return!1}function Fi(e,t,n,i=0){const r="WAIT_ONLY"===n?Bi:function(e){return()=>{Li.debug(`Acquire lock ${e}`),Mi[e]=!0}}(t),o="WAIT_ONLY"===n?Bi:function(e){return()=>{Li.debug(`Release lock ${e}`),Mi[e]=!1}}(t);return function(e,t,n,i,r){const o=async function(...a){if(t())return Li.debug(`Rescheduling function call ${e.name}(), next check in ${r} ms`),void setTimeout(()=>o.apply(this,a),r);n(),await e.apply(this,a),i()};return o}(e,function(e){return()=>{const t=!!Mi[e];return Li.debug(`Check lock ${e}: ${t?"LOCKED":"FREE"}`),t}}(t),r,o,i)}function Vi(e,t){return e.defaultSettings&&e.defaultSettings.defaultDocumentName||t.formatMessage({id:"newdoc_default_docname"})}!function(e){e.CMDN_REFRESHING="CMDN_REFRESHING"}(Ui||(Ui={})),function(e){e.ENFORCE_LOCK="ENFORCE_LOCK",e.WAIT_ONLY="WAIT_ONLY"}(zi||(zi={}));const ji=Fi((async function(e,t){let n=!1;if(!e||!e.activeDocumentTemplate)return!1;e.closeApp("create"),e.activeDocumentTemplate.kind||d.a.warn("Active document template 'kind' is not defined! Assuming 'preset'.");const i=e.activeDocumentTemplate.kind,r=e.activeDocumentTemplate.toJSON();if(!r)return!1;let o;switch(i){case"template":n=await e.openTemplate(r),o="open-template";break;case"preset":default:n=await e.createDocument(r,e.documentName||t),o="preset-create"}let a={settings:{}};return Object.assign(a,e.originalPreset),Object.assign(a.settings,e.activeDocumentTemplate),e.analytics.logFNFTActionClickedEvent(o,a),e.analytics.flushEvent(),await e.updatePresetsAndTemplates(Re.RECENT),await e.updateDefaultSettings(),n}),Ui.CMDN_REFRESHING,zi.WAIT_ONLY,60);function Gi(e){const t=e.activeDocumentTemplate;if(t.isDownloading)return;const{showFileSizeWarning:n,analytics:i}=e;if(n&&t.isTooLarge)return e.activeModalView=Oi,void i.logFNFTActionClickedEvent("too-large-render",t);e.downloadActiveTemplate()}function Wi(e,t){if(e)switch(e.activeDocumentTemplate=t,t.kind){case"preset":e.analytics.logFNFTActionClickedEvent("preset-selected",t);break;case"template":e.analytics.logFNFTActionClickedEvent("template-selected",t);break;default:d.a.warn("Item kind not set for selected item! Please set item kind to avoid errors")}}function Hi(e,t){ji(e,Vi(e,t))}function $i(e,t){const n=e.activeDocumentTemplate;n.isDownloading||(n.isLicensed?ji(e):Gi(e))}function qi(e,t){const n=e.getTemplatesByCategoryType(t),i=n&&n.length>0&&n[0];i&&Wi(e,i)}function Ki(e,t){const n=e.getPresetsByCategoryType(t),i=n&&n.length>0&&n[n.length-1];i&&Wi(e,i)}class Ji extends i.Component{constructor(e){super(e),this.handleStockLinkClick=this.handleStockLinkClick.bind(this),this.closePreviewButton=r.a.createRef()}componentDidMount(){"close_preview"===this.previewButtonId&&this.closePreviewButton.current&&this.closePreviewButton.current.focus()}get showAttribution(){const{store:e}=this.props,{activeDocumentTemplate:t}=e;if(t){const e=t;return e.contributor_name&&""!==e.contributor_name&&e.contributor_url&&""!==e.contributor_url}return!1}getAttribution(e){if(this.showAttribution)return r.a.createElement("div",{className:ii.a["cmdn-TemplatePanel-attribution"]},r.a.createElement(c.b,{id:"by"}),r.a.createElement("a",{className:ii.a["cmdn-TemplatePanel-attributionLink"],href:e.contributor_url},e.contributor_name))}get previewButtonId(){return this.props.isPreview?"close_preview":"newdoc_button_preview"}togglePreview(e){this.props.isPreview?this.hidePreview():this.showPreview()}showPreview(){this.props.history.push("/template-preview");const{analytics:e,activeDocumentTemplate:t}=this.props.store;e.logFNFTActionClickedEvent("preview",t)}hidePreview(){this.props.history.goBack(),this.props.store.forceFocus=!0;const{analytics:e,activeDocumentTemplate:t}=this.props.store;e.logFNFTActionClickedEvent("preview-close",t)}onClose(e){this.props.store.closeApp("close")}onDownload(e){Gi(this.props.store)}onOpen(e){ji(this.props.store)}get actionButton(){const{activeDocumentTemplate:e}=this.props.store,t=e;return t.isLicensed&&!t.isDownloading?r.a.createElement(Rn.a,{key:"download-open",variant:"cta",onClick:e=>this.onOpen(e)},r.a.createElement(c.b,{id:"open"})):r.a.createElement(Rn.a,{key:"download-open",variant:"cta",onClick:e=>this.onDownload(e)},r.a.createElement(c.b,{id:"download"}))}handleStockLinkClick(e){const{store:t}=this.props,{activeView:n,analytics:i}=t,r={actionURL:bt.openStockLicense(),activeFilter:n};i.logFNFTActionClickedEvent("stock-sidebar",r)}render(){const{store:e,intl:t}=this.props,{activeDocumentTemplate:n,isWindowsOS:i}=e;if(!n)return r.a.createElement(Ei,{className:ii.a["cmdn-TemplatePanel-flexContainer"]});const o=n,a=void 0!==o.size,s=o.previews&&o.previews.length>0,l=!o.isLicensed,u=ti()(o.description||""),p="string"==typeof o.price_prompt?o.price_prompt.toUpperCase():o.price_prompt;return r.a.createElement(Un,{className:ii.a["cmdn-TemplatePanel-flexContainer"]},r.a.createElement(Vn,{className:ii.a["cmdn-TemplatePanel-templateDetails"]},r.a.createElement(Ei,{title:r.a.createElement(Ci,{id:"newdoc_details_label_template_title"})},r.a.createElement(bi,{className:ii.a["cmdn-TemplatePanel-panelWrapper"]},r.a.createElement("h6",{className:ii.a["cmdn-TemplatePanel-title"]},o.title),this.getAttribution(n),r.a.createElement("a",{className:ii.a["cmdn-TemplatePanel-stockLink"],onClick:this.handleStockLinkClick},r.a.createElement("img",{src:"cmdn-assets/images/products/product-rune-STCK.png"}),r.a.createElement(c.b,{id:"adobe_stock"})),r.a.createElement("div",{className:ii.a["cmdn-TemplatePanel-stockContent"],dangerouslySetInnerHTML:{__html:u}}),l&&r.a.createElement("div",{className:ii.a["cmdn-TemplatePanel-stockPrice"]},p),a&&r.a.createElement("div",{className:ii.a["cmdn-TemplatePanel-stockInfo"]},r.a.createElement(c.b,{id:"listview_size_header"}),r.a.createElement("span",{className:ii.a["cmdn-TemplatePanel-templateSize"]},r.a.createElement(Jn,{value:o.size}))),s&&r.a.createElement("div",null,r.a.createElement(Rn.a,{onClick:e=>this.togglePreview(e),ref:this.closePreviewButton},r.a.createElement(c.b,{id:this.previewButtonId})))))),r.a.createElement(Vn,null,r.a.createElement(Un,null,r.a.createElement(Vn,{className:ii.a["cmdn-TemplatePanel-buttons"]},Ce(i,[r.a.createElement(Rn.a,{key:"close",disabled:!!this.props.isPreview,variant:"primary",onClick:e=>this.onClose(e)},r.a.createElement(c.b,{id:"close"})),this.actionButton])))))}}const Zi=Object(ie.decorate)(Ji,{actionButton:ie.computed}),Xi=ee(An(Object(c.g)(Object(l.c)(Zi))));var Yi=n("3C4i");const Qi=function(e){e.stopPropagation(),e.preventDefault(),e.nativeEvent.stopImmediatePropagation()};var er=n("bgk2"),tr=n.n(er);class nr extends i.Component{constructor(e){super(e),this.onKeyDownHandler=this.onKeyDownHandler.bind(this),this.onCancel=this.onCancel.bind(this),this.onFocus=this.onFocus.bind(this)}onCancel(){"function"==typeof this.props.onCancel&&this.props.onCancel()}onFocus(e){Object(Yi.trapFocus)(this,e)}onKeyDownHandler(e){"Escape"===e.key?(Qi(e),this.onCancel()):Object(Yi.trapFocus)(this,e)}render(){return r.a.createElement("div",{ref:this._modalRef,className:tr.a["cmdn-Modal"],defaultPreventedKeys:["Escape"],onKeyDown:this.onKeyDownHandler,onFocus:this.onFocus,tabIndex:0},this.props.children)}}class ir extends i.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this)}onCancel(){this.props.store.activeModalView=null}render(){const{store:e}=this.props,t=e.activeModalView;return t?r.a.createElement(nr,{onCancel:this.onCancel},r.a.createElement(t,null)):null}}const rr=Object(ie.decorate)(ir,{}),or=An(Object(l.c)(rr));var ar=n("7yDW"),sr=n.n(ar);class lr extends i.Component{componentDidMount(){const{analytics:e,activeDocumentTemplate:t}=this.props.store;e.logFNFTActionClickedEvent("render-preview",t)}goBack(e){this.props.history.goBack(),this.props.store.forceFocus=!0;const{analytics:t,activeDocumentTemplate:n}=this.props.store;t.logFNFTActionClickedEvent("preview-back",n)}render(){const{store:e}=this.props,{activeDocumentTemplate:t,activeModalView:n}=e;if(!t)return null;const i=t,{size:o,downloadStatus:a,downloadedSize:s,isLicensed:l,isDownloading:u}=i,h=a&&a.downloadStatusMessage,d=p()(sr.a["cmdn-TemplatePreview-content"],{[sr.a["cmdn-TemplatePreview-content-noScroll"]]:n});return r.a.createElement(r.a.Fragment,null,r.a.createElement(Un,{className:sr.a["cmdn-TemplatePreview-container"]},r.a.createElement(Vn,null,r.a.createElement(Un,{className:sr.a["cmdn-TemplatePreview-header"]},r.a.createElement(Vn,{className:sr.a["cmdn-TemplatePreview-buttonContainer"]},r.a.createElement(Rn.a,{quiet:!0,variant:"tool",icon:r.a.createElement(On.a,{size:"L"}),className:sr.a["cmdn-TemplatePreview-button"],onClick:e=>this.goBack(e)},r.a.createElement(c.b,{id:"back"}))),r.a.createElement(Vn,{className:sr.a["cmdn-TemplatePreview-progressContainer"]},l&&u&&r.a.createElement("div",null,!h&&r.a.createElement(Qn,{size:o||0,value:s,labelPosition:Kn.LEFT}),h&&r.a.createElement("div",{className:sr.a["cmdn-TemplatePreview-progress-error"]},h))))),r.a.createElement(Vn,{className:sr.a["cmdn-TemplatePreview-contentWrapper"]},r.a.createElement(Un,{className:sr.a["cmdn-TemplatePreview-contentFlexWrapper"]},r.a.createElement(Vn,{className:d},r.a.createElement(Wn,{template:i})),r.a.createElement(Vn,{className:sr.a["cmdn-TemplatePreview-sidebar"]},r.a.createElement(Xi,{isPreview:!0}))))),r.a.createElement(or,null))}}const cr=Object(ie.decorate)(lr,{}),ur=ee(An(Object(l.c)(cr)));class pr extends i.Component{render(){if(this.props.icon){const{icon:e,...t}=this.props,n=e;return r.a.createElement(n,Object.assign({},t))}return null}}var hr=n("zcnm");const dr=r.a.createContext(void 0);class fr extends i.Component{render(){const{children:e,values:t}=this.props;return r.a.createElement(dr.Provider,{value:t},e)}}class mr extends i.Component{render(){const{children:e,featureFlags:t,render:n,renderFallback:i}=this.props;return r.a.createElement(dr.Consumer,null,r=>bn.hasFeatureFlags(r,t)?e||"function"==typeof n&&n():"function"==typeof i&&i())}}var gr=n("GfA4"),vr=n.n(gr),br=n("5RY0"),yr=n.n(br);class wr extends i.Component{constructor(e){super(e),this.state={},this.openPicker=this.openPicker.bind(this),this.onFillChange=this.onFillChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}async openPicker(e){if(this.props.onOpenPicker){const{formatMessage:t}=this.props.intl,n=await this.props.onOpenPicker(e||this.props.customColor,t({id:"newdoc_color-picker_context"}));n&&this.onFillChange(n)}}onFillChange(e){"custom"===e?this.openPicker(this.props.defaultValue):"function"==typeof this.props.onFillChange&&this.props.onFillChange(e)}onKeyDown(e){" "===e.key&&this.openPicker()}render(){const{value:e,values:t,intl:n,customColorRgbString:i}=this.props,o=t&&t.map(e=>({label:n.formatMessage({id:`newdoc_details_backgroundcolor_${e}`}),value:e}));return r.a.createElement(bi,{title:r.a.createElement(c.b,{id:"newdoc_details_label_background"})},r.a.createElement(Un,null,r.a.createElement(Vn,{className:yr.a["cmdn-BackgroundContents-color"]},r.a.createElement(vr.a,{className:yr.a["cmdn-BackgroundContents-dropdown"],value:e,defaultValue:"white",options:o,onChange:this.onFillChange})),r.a.createElement(Vn,{className:yr.a["cmdn-BackgroundContents-pickerItem"]},r.a.createElement("div",{tabIndex:0,className:yr.a["cmdn-BackgroundContents-colorPicker"],onClick:()=>this.openPicker(),style:i?{backgroundColor:i}:{},onKeyDown:this.onKeyDown}))))}}var _r=Object(c.g)(wr),xr=n("nGeh"),Sr=n.n(xr);class Er extends i.Component{render(){const{defaultValue:e,depth:t,value:n,defaultDepth:i,colorModes:o,intl:a,onColorModeChange:s,onEncodingChange:l}=this.props,u=o.map(e=>({label:a.formatMessage({id:`newdoc_details_colormode_${e.mode}`}),value:e.mode})),p=o.find(e=>e.mode===n);let h=[];return p&&(h=p.values.map(e=>({label:`${e} bit`,value:e}))),r.a.createElement(bi,{title:r.a.createElement(c.b,{id:"newdoc_details_label_colormode"}),className:Sr.a["cmdn-ColorModePanel"]},r.a.createElement(Un,null,r.a.createElement("div",{className:Sr.a["cmdn-ColorModePanel-mode"]},r.a.createElement(vr.a,{value:n,defaultValue:e,options:u,onChange:e=>s(o.find(t=>t.mode===e))})),r.a.createElement("div",{className:Sr.a["cmdn-ColorModePanel-encoding"]},r.a.createElement(vr.a,{value:t,defaultValue:i,options:h,onChange:e=>l(e)}))))}}var Cr=Object(c.g)(Er),Tr=n("QvCo"),kr=n.n(Tr);class Pr extends i.Component{render(){const{values:e,value:t,defaultValue:n,intl:i,onChange:o}=this.props;let a=e.reduce((e,t)=>e.concat(t.map(e=>{let t=e,n=e;switch("object"==typeof e&&null!==e&&(t=e.label||e.value,n=e.value),t){case"none":return{value:n,label:i.formatMessage({id:"newdoc_details_label_noColorManage"})};case"default":return{value:n,label:i.formatMessage({id:"newdoc_details_label_workingProfile"})};default:return{value:n,label:t}}})),[]);return r.a.createElement(bi,{title:r.a.createElement(c.b,{id:"newdoc_details_label_colorProfile"})},r.a.createElement(vr.a,{value:t,defaultValue:n,options:a,onChange:o,className:kr.a["cmdn-colorSelect"]}))}}var Dr=Object(c.g)(Pr),Ar=n("WgUl"),Ir=n.n(Ar),Rr=n("ztOJ"),Nr=n.n(Rr),Or=n("NXik"),Lr=n.n(Or);class Mr extends i.Component{constructor(e){super(e),this.onValueChange=this.onValueChange.bind(this),this.savePresetBtnRef=r.a.createRef(),this.onKeyDownActionButtons=this.onKeyDownActionButtons.bind(this)}onKeyDownActionButtons(e){Qi(e)}onValueChange(e,t){"function"==typeof this.props.onChange&&this.props.onChange(e,t)}componentDidMount(){this.props.focusSavePresetButton&&this.savePresetBtnRef.current&&this.savePresetBtnRef.current.focus()}render(){const{handleAction:e,value:t}=this.props;return r.a.createElement(bi,{className:Lr.a["cmdn-DocumentNameForm"]},r.a.createElement(Un,null,r.a.createElement(Vn,{className:Lr.a["cmdn-DocumentNameForm-titleContainer"]},r.a.createElement(Ir.a,{className:Lr.a["cmdn-DocumentNameForm-field"],value:t,onChange:this.onValueChange,quiet:!0})),r.a.createElement(Vn,{onKeyDown:this.onKeyDownActionButtons,className:Lr.a["cmdn-DocumentNameForm-buttonContainer"]},r.a.createElement(Rn.a,{ref:this.savePresetBtnRef,className:Lr.a["cmdn-DocumentNameForm-button"],variant:"tool",icon:r.a.createElement(Nr.a,{size:"M"}),onClick:()=>e(),quiet:!0}))))}}var Ur,zr=n("x1bj"),Br=n("Cv/Q"),Fr=n.n(Br),Vr=n("8A1o"),jr=n.n(Vr);class Gr{constructor(e,t){this._text=e,this._value=function(e,t){const n=t?e.replace(new RegExp("\\,","g"),"."):e;try{return Le.evaluate(n)}catch{return NaN}}(e,","===t)}get text(){return this._text}get value(){return this._value}}!function(e){e[e.NORMAL=0]="NORMAL",e[e.FAST=1]="FAST"}(Ur||(Ur={}));class Wr extends i.Component{constructor(e){super(e);const{id:t,userLocaleDecimal:n}=e;this.state={inputId:t||oi()(),focused:!1},this._regex=new RegExp("[^0-9."+n+",()*/+-]","g"),this.handleBlur=this.handleBlur.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputScrollWheel=this.handleInputScrollWheel.bind(this),this.commitNewValue=this.commitNewValue.bind(this),this.getValueAsNumber=this.getValueAsNumber.bind(this),this.getPropsValue=this.getPropsValue.bind(this),this.validateInput=this.validateInput.bind(this),this.flushBuffer=this.flushBuffer.bind(this),this.sanitizeValue=this.sanitizeValue.bind(this),this.validateNumericValue=this.validateNumericValue.bind(this),this.selectStep=this.selectStep.bind(this),this.getStep=this.getStep.bind(this)}get fastStepMultiplier(){const{fastStepMultiplier:e}=this.props;return e&&isFinite(e)&&e>0?e:10}get step(){const{step:e}=this.props;return e&&isFinite(e)&&e>0?e:1}selectStep(e){const{step:t,getStep:n,fastStepMultiplier:i}=this;switch(e){case Ur.FAST:return n(i);case Ur.NORMAL:default:return t}}getStep(e){const{step:t}=this;return e?t*e:t}componentDidMount(){const e=a.a.findDOMNode(this._textfield);e&&e.addEventListener("wheel",this.handleInputScrollWheel,{passive:!1})}componentWillUnmount(){const e=a.a.findDOMNode(this._textfield);e&&e.removeEventListener("wheel",this.handleInputScrollWheel)}validateInput(e){return null===e.match(this._regex)}getPropsValue(){const{value:e,defaultValue:t}=this.props;return e&&isFinite(e)?e:t&&isFinite(t)?t:0}getLocalizedPropsValue(){const e=this.getPropsValue().toString(),{userLocaleDecimal:t}=this.props;return t?e.replace(".",t):e}sanitizeValue(e){const{min:t,max:n}=this.props,i=t&&isFinite(t)?t:e-1,r=n&&isFinite(n)?n:e+1;return Object(zr.clamp)(e,i,r)}commitNewValue(e){const{onChange:t}=this.props;t&&t(this.sanitizeValue(e)),this.clearBuffer()}handleFocus(){this.setState({focused:!0})}handleBlur(){this.setState({focused:!1}),this.flushBuffer()}getValueAsNumber(){const{editBuffer:e}=this.state;return e?e.value:this.getPropsValue()}getValueAsText(){const{editBuffer:e}=this.state;return e?e.text:this.getLocalizedPropsValue()}flushBuffer(){const{editBuffer:e}=this.state;e&&isFinite(e.value)&&this.commitNewValue(e.value),this.clearBuffer()}clearBuffer(){this.setState({editBuffer:void 0})}handleInputKeyDown(e){if(this.isInactive())return;const t=!isFinite(this.getValueAsNumber()),n=e.shiftKey?Ur.FAST:Ur.NORMAL;switch(e.key){case"ArrowUp":case"PageUp":if(t)break;e.preventDefault(),this.incrementValue(n);break;case"ArrowDown":case"PageDown":if(t)break;e.preventDefault(),this.decrementValue(n);break;case"End":if(t)break;e.preventDefault(),this.decrementToMinValue();break;case"Home":if(t)break;e.preventDefault(),this.incrementToMaxValue();break;case"Escape":this.clearBuffer(),this.handleBlur();break;case"Enter":this.handleBlur()}}handleInputScrollWheel(e){if(this.isInactive())return;e.preventDefault();const t=e.shiftKey?Ur.FAST:Ur.NORMAL;e.deltaY<0?this.incrementValue(t):this.decrementValue(t)}handleInputChange(e,t){t.stopPropagation(),this.validateInput(e)&&this.setState({editBuffer:new Gr(e,this.props.userLocaleDecimal)})}isInactive(){const{disabled:e,readOnly:t}=this.props,{focused:n}=this.state;return e||t||!n}incrementValue(e){const t=this.getValueAsNumber();isFinite(t)&&this.commitNewValue(t+this.selectStep(e))}incrementToMaxValue(){const{max:e}=this.props;e&&isFinite(e)&&this.commitNewValue(e)}decrementValue(e){const t=this.getValueAsNumber();isFinite(t)&&this.commitNewValue(t-this.selectStep(e))}decrementToMinValue(){const{min:e}=this.props;e&&isFinite(e)&&this.commitNewValue(e)}validateNumericValue(e){const{min:t,max:n}=this.props;return isFinite(e)&&function(e,t=-1/0,n=1/0){return t<=e&&e<=n}(e,t,n)}render(){const{defaultValue:e,min:t,max:n,step:i,invalid:o,disabled:a,quiet:s,className:l,readOnly:c,"aria-label":u,"aria-labelledby":h,userLocaleDecimal:d,useSimpleInvalidIndicator:f,...m}=this.props,{focused:g,inputId:v}=this.state,b=this.getValueAsNumber(),y=this.getValueAsText(),w=this.validateNumericValue(b),_=o||!w,x=[l,{[jr.a["cmdn-NumberInput-forceFocus"]]:g&&!_,[jr.a["cmdn-NumberInput-simpleInvalidIndicator"]]:f}];return r.a.createElement(Ir.a,Object.assign({},Fr()(m),{focused:g,ref:e=>this._textfield=e,className:p()(x),id:v,value:y,defaultValue:e,role:"spinbutton",type:"text",autoComplete:"off","aria-label":u||null,"aria-labelledby":h||null,"aria-valuenow":w?b:null,"aria-valuetext":y||null,"aria-valuemin":t,"aria-valuemax":n,validationState:_?"invalid":void 0,step:i,disabled:a,readOnly:c,quiet:s,onKeyDown:this.handleInputKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleInputChange}))}}var Hr=n("VPZk"),$r=n.n(Hr);class qr extends i.Component{render(){const{value:e,min:t,max:n,step:i,userLocaleDecimal:o,defaultValue:a,onChange:s}=this.props;return r.a.createElement(bi,{title:r.a.createElement(c.b,{id:"newdoc_details_label_height"}),className:$r.a["cmdn-HeightPanel"]},r.a.createElement(Wr,{className:$r.a["cmdn-HeightPanel-field"],value:e,min:t,max:n,step:i,userLocaleDecimal:o,defaultValue:a,onChange:s,useSimpleInvalidIndicator:!0}))}}var Kr=n("VXw4"),Jr=n.n(Kr),Zr=n("Z7ej"),Xr=n.n(Zr),Yr=n("FocD"),Qr=n.n(Yr),eo=n("S9f8"),to=n.n(eo);class no extends i.Component{render(){const{value:e,defaultValue:t,style:n,className:i,onChange:o,intl:a}=this.props;return r.a.createElement(bi,{title:r.a.createElement(c.b,{id:"newdoc_details_label_orientation"}),style:n,className:i},r.a.createElement("div",{className:to.a["cmdn-OrientationPanel-ButtonGroupContainer"]},r.a.createElement(Jr.a,{"aria-label":a.formatMessage({id:"newdoc_details_label_orientation"}),value:e||t,onChange:o},r.a.createElement(Rn.a,{variant:"tool",value:"portrait","aria-label":"Portrait",icon:r.a.createElement(Xr.a,{size:"L"})}),r.a.createElement(Rn.a,{variant:"tool",value:"landscape","aria-label":"Landscape",icon:r.a.createElement(Qr.a,{className:to.a["cmdn-OrientationPanel-landscape-icon"],size:"L"})}))))}}var io=Object(c.g)(no),ro=n("wiMW"),oo=n.n(ro);class ao extends i.Component{onChange(e){const{onChange:t}=this.props;t&&"function"==typeof t&&(e&&e.target?t(e.target.checked):t(e))}render(){const{value:e}=this.props;return r.a.createElement(bi,{className:p()(oo.a["cmdn-ArtboardPanel"]),title:r.a.createElement(c.b,{id:"newdoc_details_label_artboards"})},r.a.createElement(ki.a,{style:{marginTop:0,marginBottom:0,height:"32px"},checked:e,onChange:e=>this.onChange(e)}))}}var so=n("6Y0M"),lo=n.n(so);class co extends i.Component{render(){const{value:e,min:t,max:n,step:i,defaultValue:o,orientation:a,defaultOrientation:s,hasArtboards:l,defaultArtboards:c,onOrientationChange:u,onArtboardsChange:p,onChange:h,userLocaleDecimal:d}=this.props;return r.a.createElement(bi,{className:lo.a["cmdn-HeightRowPanel"]},r.a.createElement(Un,null,r.a.createElement(Vn,{className:lo.a["cmdn-HeightItem"]},r.a.createElement(qr,{value:e,min:t,max:n,step:i,defaultValue:o,onChange:h,userLocaleDecimal:d})),r.a.createElement(Vn,{className:lo.a["cmdn-OrientationItem"]},r.a.createElement(io,{value:a,defaultValue:s,onChange:u})),r.a.createElement(Vn,{className:lo.a["cmdn-ArtboardsItem"]},r.a.createElement(ao,{value:l,defaultValue:c,onChange:p}))))}}var uo=n("Ar3P"),po=n.n(uo);class ho extends i.Component{render(){const{values:e,value:t,defaultValue:n,onChange:i}=this.props;return r.a.createElement(bi,{title:r.a.createElement(c.b,{id:"newdoc_details_label_pixelScale"})},r.a.createElement(vr.a,{value:t,defaultValue:n,options:e,onChange:i,className:po.a.pixelAspectRatioSelect}))}}var fo=n("lrN5"),mo=n.n(fo);class go extends i.Component{constructor(e){super(e),this._textfieldRef=r.a.createRef(),this.onValueChange=this.onValueChange.bind(this),this.onInputValidation=this.onInputValidation.bind(this),this.onKeyDownActionButtons=this.onKeyDownActionButtons.bind(this),this.state={value:this.props.value||this.getDefaultPresetName(),isPresetNameInvalid:!1},this.onKeyDown=this.onKeyDown.bind(this),this.onSave=this.onSave.bind(this),this.onCancel=this.onCancel.bind(this)}componentDidMount(){oe()?this._textfieldRef.current&&this._textfieldRef.current.inputContainer.focus():this._textfieldRef.current&&this._textfieldRef.current.focus()}getDefaultPresetName(){let e=this.props.intl.formatMessage({id:"newdoc_filter_saved"});return Ge.generateNewPresetName(e,this.props.savedPresets)}onSave(){this.savePreset(this.state.value)}onCancel(){this.props.handleCancelAction&&this.props.handleCancelAction()}savePreset(e){Ge.isPresetNameInvalid(e,this.props.savedPresets)||this.props.handleSaveAction&&this.props.handleSaveAction(e)}onValueChange(e){this.setState({value:e})}onInputValidation(e){let t=this.props.savedPresets;this.setState({isPresetNameInvalid:Ge.isPresetNameInvalid(e,t)})}onKeyDown(e){switch(e.key){case"Enter":Qi(e),this.onSave();break;case"Escape":Qi(e),this.onCancel()}}onKeyDownActionButtons(e){Qi(e)}render(){const{shouldReverseButtons:e}=this.props,{isPresetNameInvalid:t,value:n}=this.state,i=[mo.a["cmdn-PresetSaveForm"]];let o="";return t&&(o=void 0===n||""===n.trim()?"new_preset_details_empty_title":"new_preset_details_collision_title"),r.a.createElement(bi,{className:p()(i),onKeyDown:this.onKeyDown},r.a.createElement(Un,null,r.a.createElement(Vn,{className:mo.a["cmdn-PresetSaveForm-container"]},r.a.createElement(Ir.a,{ref:this._textfieldRef,defaultPreventedKeys:["Escape"],className:mo.a["cmdn-PresetSaveForm-field"],value:n,onChange:this.onValueChange,onInput:e=>this.onInputValidation(e.target.value),validationState:t?"invalid":null,quiet:!0}),r.a.createElement("div",{className:mo.a["cmdn-PresetSaveForm-errorMessage"]},t&&r.a.createElement(c.b,{id:o})))),r.a.createElement(Un,null,r.a.createElement(Vn,{onKeyDown:this.onKeyDownActionButtons,className:mo.a["cmdn-PresetSaveForm-buttonContainer"]},Ce(e,[r.a.createElement(Rn.a,{defaultPreventedKeys:["Escape"],key:"cancel",variant:"primary",onClick:this.onCancel},r.a.createElement(c.b,{id:"cancel"})),r.a.createElement(Rn.a,{defaultPreventedKeys:["Escape"],key:"save",variant:"cta",disabled:t,onClick:this.onSave},r.a.createElement(c.b,{id:"newdoc_details_label_save_preset"}))]))))}}var vo=Object(c.g)(go),bo=n("g8b5"),yo=n.n(bo);class wo extends i.Component{render(){const{defaultUnitsValue:e,defaultValue:t,max:n,min:i,step:o,onChange:a,onUnitChange:s,options:l,title:c,unitsValue:u,userLocaleDecimal:p,value:h,...d}=this.props;return r.a.createElement(bi,Object.assign({title:c},d),r.a.createElement(Un,null,r.a.createElement(Vn,{className:yo.a["cmdn-UnitPanel-value"]},r.a.createElement(Wr,{className:yo.a["cmdn-UnitPanel-field"],value:h,min:i,max:n,step:o,userLocaleDecimal:p,defaultValue:t,onChange:a,useSimpleInvalidIndicator:!0})),r.a.createElement(Vn,{className:yo.a["cmdn-UnitPanel-options"]},r.a.createElement(vr.a,{value:u||e,defaultValue:e,options:l,onChange:s}))))}}class _o extends i.Component{render(){const{defaultUnitsValue:e,defaultValue:t,intl:n,max:i,min:o,onChange:a,onUnitChange:s,step:l,units:u,userLocaleDecimal:p,unitsValue:h,value:d}=this.props,f=u&&u.map(e=>({label:n.formatMessage({id:`newdoc_details_resolution_${e}`}),value:e}));return r.a.createElement(wo,{title:r.a.createElement(c.b,{id:"newdoc_details_label_resolution"}),value:d,min:o,max:i,defaultValue:t,unitsValue:h,defaultUnitsValue:e,step:l,options:f,userLocaleDecimal:p,onUnitChange:s,onChange:a})}}var xo=Object(c.g)(_o);class So extends i.Component{render(){const{defaultUnitsValue:e,defaultValue:t,intl:n,max:i,min:o,onChange:a,onUnitChange:s,step:l,units:c,unitsValue:u,userLocaleDecimal:p,value:h}=this.props,{formatMessage:d}=n,f=c&&c.map(e=>({label:d({id:`newdoc_details_${e}`}),value:e}));return r.a.createElement(wo,{title:d({id:"newdoc_details_label_width"}),value:h,min:o,max:i,step:l,defaultValue:t,unitsValue:u,defaultUnitsValue:e,options:f,userLocaleDecimal:p,onUnitChange:s,onChange:a})}}var Eo=Object(c.g)(So),Co=n("SL+M"),To=n.n(Co);n("yix/");class ko extends i.Component{constructor(e){super(e),this.focusSavePresetButton=!1,this.toggleSavePreset=this.toggleSavePreset.bind(this),this.toggleAdvancedSettings=this.toggleAdvancedSettings.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onCreate=this.onCreate.bind(this),this.onClose=this.onClose.bind(this)}toggleSavePreset(e){const{store:t}=this.props;t.saveFormVisible=e||!t.saveFormVisible,this.focusSavePresetButton=!e}get panelGroupTitle(){const{store:e}=this.props;return e.saveFormVisible?"new_preset_details_label_title":"newdoc_details_label_title"}async onCreate(){const{store:e}=this.props;await ji(e,Vi(e,this.props.intl))}onClose(){this.props.store.closeApp("close")}async handleSaveAction(e){const{store:t}=this.props;let n=JSON.parse(JSON.stringify(t.activeDocumentTemplate&&t.activeDocumentTemplate.toJSON()));n.name=e,await t.createPreset(JSON.stringify(n)),await t.updatePresetCategory(Re.SAVED),t.switchToSavedView(e)}toggleAdvancedSettings(){const{store:e}=this.props;e.advancedSettingsCollapsed=!e.advancedSettingsCollapsed;const{analytics:t}=e,n=e.originalPreset||{},i=Object(ie.toJS)(e.activeDocumentTemplate),r=!Object.keys(n).reduce((e,t)=>i&&we()(n[t],i[t])&&e,!0);let o={presetAttributes:{attributes:n,newAttributes:i,attributesChanged:r}};Object.assign(o,i),t.logFNFTActionClickedEvent("more-options",o)}onKeyDown(e){switch(e.key){case"Enter":Qi(e),this.onCreate()}}onKeyDownActionButtons(e){Qi(e)}render(){const{store:e}=this.props,{activeDocumentTemplate:t,defaultSettings:n,documentName:i,openColorPicker:o,saveFormVisible:a,advancedSettingsCollapsed:s,isWindowsOS:l}=e;if(!t)return r.a.createElement(Ei,{className:To.a["cmdn-PropertiesPanel"]});const u=n&&n.userLocaleDecimal?n.userLocaleDecimal:".",{displayWidth:h,displayHeight:d,displayMaxDocWidth:f,displayMaxDocHeight:m,displayMinDocWidth:g,displayMinDocHeight:v,displayResolution:b,displayMaxResolution:y,displayMinResolution:w,docStep:_,units:x,resolutionUnits:S,displayBackgroundValues:E,displayColorMode:C,displayColorDepth:T,displayColorProfileLists:k,profile:P,scale:D,orientation:A,hasArtboards:I,updateDimensionUnit:R,updateWidth:N,updateHeight:O,updateResolution:L,toggleOrientation:M,updateArtboards:U,updateResolutionUnit:z,updateColorMode:B,updateEncoding:F,updateColorProfile:V,updateAspectRatio:j,updateFill:G,displayBackground:W,defaultCustomColor:H,displayCustomColor:$,displayCustomColorRgbString:q,displayColorModes:K}=t,J=[To.a["cmdn-PropertiesPanel-Title"],{[To.a["cmdn-PropertiesPanel-Title-Save-visible"]]:a}],Z=[To.a["cmdn-PropertiesPanel"],{[To.a["cmdn-PropertiesPanel-Save-visible"]]:a}],X=[To.a["cmdn-PresetSavePanel-panelGroup"],{[To.a["is-visible"]]:a}];let Y=e.getPresetsByCategoryType(Re.SAVED);return r.a.createElement(Un,{onKeyDown:this.onKeyDown,className:To.a["cmdn-PropertiesPanel-FlexContainer"]},r.a.createElement(Vn,null,r.a.createElement(Ei,{title:r.a.createElement(Ci,{id:this.panelGroupTitle}),titleClass:p()(J),className:p()(X)},a&&r.a.createElement(vo,{handleSaveAction:e=>{this.toggleSavePreset(),this.handleSaveAction(e)},savedPresets:Y,handleCancelAction:()=>this.toggleSavePreset(),shouldReverseButtons:l}))),r.a.createElement(Vn,{className:To.a["cmdn-PropertiesPanel-FlexItem-PresetDetails"]},r.a.createElement(Ei,{className:p()(Z)},!a&&r.a.createElement(Mr,{value:i,onChange:t=>{e.documentName=t},handleAction:e=>{this.toggleSavePreset(!0)},focusSavePresetButton:this.focusSavePresetButton}),r.a.createElement(Eo,{value:h,min:g,max:f,step:_,userLocaleDecimal:u,defaultValue:n.defaultPresetSettings.width,unitsValue:x,units:n.units.filter(e=>"columnsUnit"!==e),defaultUnitsValue:n.defaultUnits,onUnitChange:e=>R(e),onChange:e=>N(e)}),r.a.createElement(co,{value:d,min:v,max:m,step:_,userLocaleDecimal:u,defaultValue:n.defaultPresetSettings.height,orientation:A,defaultOrientation:n.defaultPresetSettings.orientation,hasArtboards:I,defaultArtboards:n.defaultPresetSettings.artboards,onOrientationChange:e=>M(e),onArtboardsChange:e=>U(e),onChange:e=>O(e)}),r.a.createElement(xo,{value:b,step:.1,min:w,max:y,userLocaleDecimal:u,defaultValue:n.defaultPresetSettings.resolution,unitsValue:S,units:n.resolutionUnits,defaultUnitsValue:n.defaultResolutionUnits,onUnitChange:e=>z(e),onChange:e=>L(e)}),r.a.createElement(Cr,{value:C,defaultValue:n.defaultPresetSettings.mode,depth:T,defaultDepth:n.defaultPresetSettings.depth,onColorModeChange:e=>B(e),onEncodingChange:e=>F(e),colorModes:K}),r.a.createElement(_r,{value:W,defaultValue:H,values:E,customColor:$,customColorRgbString:q,onOpenPicker:o,onFillChange:e=>G(e,n.backgroundColor)}),r.a.createElement(bi,{title:r.a.createElement(c.b,{id:"newdoc_button_customize"}),collapsible:!0,open:!s,onToggle:this.toggleAdvancedSettings},r.a.createElement(Dr,{values:k,value:P,onChange:e=>V(e)}),r.a.createElement(ho,{values:n.pixelAspectRatios,value:D,onChange:e=>j(e)})))),r.a.createElement(Vn,{className:p()({"cmdn-u-hidden":a})},r.a.createElement(Un,null,r.a.createElement(Vn,{onKeyDown:this.onKeyDownActionButtons,className:To.a["cmdn-PropertiesPanel-FlexItem-Buttons"]},Ce(l,[r.a.createElement(Rn.a,{key:"close",variant:"primary",onClick:this.onClose},r.a.createElement(c.b,{id:"close"})),r.a.createElement(Rn.a,{key:"create",variant:"cta",onClick:this.onCreate},r.a.createElement(c.b,{id:"create"}))])))))}}const Po=Object(ie.decorate)(ko,{}),Do=Object(c.g)(An(Object(l.c)(Po)));class Ao extends i.Component{render(){const{store:e}=this.props,{activeDocumentTemplate:t}=e;return t&&"template"===t.kind?r.a.createElement(Xi,null):r.a.createElement(Do,null)}}const Io=Object(ie.decorate)(Ao,{}),Ro=An(Object(l.c)(Io));var No=n("Q5XD"),Oo=n.n(No),Lo=n("nguE"),Mo=n.n(Lo);class Uo extends i.Component{constructor(){super(...arguments),this._textfieldRef=r.a.createRef()}onSearch(e){this.props.onSearch&&this.props.onSearch(this.props.value)}onValueChange(e,t){"function"==typeof this.props.onChange&&this.props.onChange(e,t)}onKeyDown(e){"Enter"===e.key&&this.onSearch(e),"Escape"===e.key&&(oe()?this._textfieldRef.current&&this._textfieldRef.current.inputContainer.blur():this._textfieldRef.current&&this._textfieldRef.current.blur())}render(){const{quiet:e,placeholder:t,label:n,value:i,disableNativeControls:o}=this.props;let a=p()(Mo.a["cmdn-SearchField"],{[Mo.a["cmdn-SearchField-AsSpan"]]:o},{[Mo.a["cmdn-SearchField-AsSpan-wPlaceholder"]]:o&&!i});return r.a.createElement(Un,{className:Mo.a["cmdn-SearchContainer"]},r.a.createElement(Oo.a,{size:"S"}),o?r.a.createElement("span",{className:a},i||t):r.a.createElement(Ir.a,{ref:this._textfieldRef,className:Mo.a["cmdn-SearchField"],defaultPreventedKeys:["Escape"],quiet:e,value:i,onKeyDown:e=>this.onKeyDown(e),onChange:(e,t)=>this.onValueChange(e,t),placeholder:t}),r.a.createElement(Rn.a,{className:Mo.a["cmdn-SearchAction"],onClick:e=>this.onSearch(e)},n))}}var zo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Bo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Fo=class extends i.Component{constructor(){super(...arguments),this.searchValue=""}async onSearch(){const{store:e}=this.props,t={actionURL:await bt.openStockLink(Vt.id,e.activeView,e.searchBoxText,e.analytics),activeFilter:e.activeView};e.analytics.logFNFTActionClickedEvent("stock-search",t)}render(){const{intl:e}=this.props;return r.a.createElement(Uo,{label:e.formatMessage({id:"go"}),quiet:!0,value:this.props.store.searchBoxText,onChange:e=>{this.props.store.searchBoxText=e},onSearch:()=>this.onSearch(),placeholder:e.formatMessage({id:"adobe_stock_find_more"}),disableNativeControls:this.props.store.disableNativeSearchBox})}};zo([ie.observable,Bo("design:type",Object)],Fo.prototype,"searchValue",void 0),Fo=zo([l.c],Fo);var Vo=Object(c.g)(An(Fo)),jo=n("7cBP"),Go=n.n(jo);let Wo=class extends i.Component{render(){const{children:e,store:t,...n}=this.props,{activeModalView:i,isStockEnabled:o}=t,a=p()(Go.a["cmdn-MainViewContainer"],{[Go.a["cmdn-MainViewContainer--noOverflow"]]:i,[Go.a["cmdn-MainViewContainer--withSearch"]]:o});return r.a.createElement("div",Object.assign({className:Go.a["cmdn-MainViewWrapper"]},n),r.a.createElement("div",{className:Go.a["cmdn-MainViewContent"],id:"cmdn-content"},r.a.createElement("div",{className:a},e)),r.a.createElement("div",{className:Go.a["cmdn-MainViewSidebar"]},r.a.createElement(Ro,null)),r.a.createElement(mr,{featureFlags:[gn.STOCK]},r.a.createElement(Vo,null)))}};Wo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([l.c],Wo);var Ho=n("wWOq"),$o=n.n(Ho),qo=n("63WY"),Ko=n.n(qo);const Jo=1334,Zo=181,Xo=243;function Yo(e,t){return!(!e||!t||void 0===e[t.identifier])}function Qo(e,t,n){const i=function(e){const t=e.width;return t&&t>Jo?Xo:Zo}(e),r=t&&t.current;if(r){const e=r.offsetWidth;if(e>0&&i>0)return Math.floor(e/i)}return n}function ea(e,t){if(e){if("preset"===e.kind)return e.category===t;{const n=e,i=Object(ie.toJS)(n.template_category);return i instanceof Array?-1!==i.map(e=>e.toLowerCase()).indexOf(t):i===t}}return!1}var ta=n("5/H/"),na=n.n(ta),ia=n("uYrR"),ra=n.n(ia),oa=n("DUuf"),aa=n.n(oa),sa=n("uT0p"),la=n.n(sa),ca=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ua=class extends i.Component{constructor(e){super(e),this.clickCount=0,this.onCardClick=this.onCardClick.bind(this),this.onItemDoubleClick=this.onItemDoubleClick.bind(this),this.onDeleteClick=this.onDeleteClick.bind(this),this.handleDeleteAction=this.handleDeleteAction.bind(this),this.updateSelection=this.updateSelection.bind(this)}componentDidMount(){const{element:e,onDocMounted:t}=this.props;t&&t(e)}componentWillUnmount(){const{element:e,onDocUnmounted:t}=this.props;t&&t(e)}onCardClick(){this.updateSelection()}onItemDoubleClick(){this.props.onItemDoubleClick&&this.props.onItemDoubleClick()}onDeleteClick(){this.handleDeleteAction()}handleDeleteAction(){const{element:e,onItemDeleted:t}=this.props;t&&t(e)}updateSelection(){const{element:e,onItemSelected:t}=this.props;t&&t(e)}render(){const{element:e={},isSelected:t,isDeletable:n,className:i,tallCard:o,wideCard:a}=this.props,s=[la.a["cmdn-GridCard"],i,{[la.a["is-selected"]]:t,[la.a["cmdn-GridCard--wide"]]:a,[la.a["cmdn-GridCard--tall"]]:o}],l=this.props.children&&this.props.children.find(t=>t.key===e.kind),c=l&&r.a.cloneElement(l,{element:e,largeIcon:a&&o}),u=r.a.createElement("div",{className:p()(la.a["cmdn-GridCard-overlay"])},n&&r.a.createElement(Rn.a,{className:p()(la.a["cmdn-GridCard-deleteButton"]),variant:"tool",icon:r.a.createElement(na.a,{size:"S"}),quiet:!0,onClick:this.onDeleteClick}));return r.a.createElement("div",{className:p()(s),onClick:this.onCardClick,onDoubleClick:this.onItemDoubleClick,tabIndex:t?0:-1,key:e.name},c,e.tip?r.a.createElement(ra.a,{trigger:"hover",placement:"bottom",boundariesElement:()=>document.getElementById("cmdn-content"),delayShow:800},u,r.a.createElement(aa.a,{variant:"inspect"},e.tip)):u)}};var pa=ua=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([l.c,ca("design:paramtypes",[Object])],ua),ha=n("21yx"),da=n.n(ha),fa=n("CksP"),ma=n.n(fa);let ga=class extends i.Component{render(){const{element:e,className:t,largeIcon:n}=this.props,{title:i,price_prompt:o,thumbnail_url:a,size:s,downloadStatus:l,downloadedSize:c,isLicensed:u,isDownloading:h}=e,d=l&&l.downloadStatusMessage,f=[ma.a["cmdn-TemplateCard"],ma.a["template-grid-item"],t],m=p()(ma.a["cmdn-TemplateCard-thumbnail"],{[ma.a["cmdn-TemplateCard-thumbnail--large"]]:n});return r.a.createElement("div",{className:p()(f)},r.a.createElement("div",{className:m,style:{backgroundImage:`url("${ce(a)}")`}},u&&h&&r.a.createElement("div",{className:ma.a["cmdn-TemplateCard-layoutContainer"]},!d&&r.a.createElement(Qn,{size:s||0,value:c}),d&&r.a.createElement("div",{className:ma.a["cmdn-TemplateCard-error"]},d))),r.a.createElement("div",{className:ma.a["cmdn-TemplateCard-info"]},r.a.createElement("span",{className:p()(la.a["cmdn-GridCard-title"],la.a["cmdn-GridCard-truncateText"],ma.a["cmdn-TemplateCard-title"],u?ma.a["cmdn-TemplateCard-title-center"]:ma.a["cmdn-TemplateCard-title-left"])},i),!u&&r.a.createElement("span",{className:ma.a["cmdn-TemplateCard-price"]},o&&o.toUpperCase())),u&&!h&&r.a.createElement("div",{className:ma.a["cmdn-TemplateCard-licensed"]},r.a.createElement("div",{className:ma.a["cmdn-TemplateCard-licensedBackground"]}),r.a.createElement(da.a,{className:ma.a["cmdn-TemplateCard-licensedIcon"]})))}};var va=ga=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([l.c],ga);const ba=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M645.953 821.581H378.046c-13.098 0-23.814-10.716-23.814-23.814V279.814c0-13.098 10.716-23.814 23.814-23.814h267.907c13.098 0 23.814 10.716 23.814 23.814v517.953c0 13.098-10.716 23.814-23.814 23.814zM366.14 279.814v517.953c0 6.549 5.358 11.907 11.907 11.907h267.907c6.549 0 11.907-5.358 11.907-11.907V279.814c0-6.549-5.358-11.907-11.907-11.907H378.047c-6.549 0-11.907 5.358-11.907 11.907zm119.069 23.814h53.581v11.907h-53.581v-11.907zm38.698 461.395c0 6.549-5.358 11.907-11.907 11.907s-11.907-5.358-11.907-11.907 5.358-11.907 11.907-11.907 11.907 5.358 11.907 11.907zm8.93 0c0-11.609-9.228-20.837-20.837-20.837s-20.837 9.228-20.837 20.837S500.391 785.86 512 785.86s20.837-9.228 20.837-20.837z"})),ya=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M631.07 482.233h-77.395V378.94c0-3.274-2.679-5.953-5.953-5.953-1.488 0-2.977.595-4.167 1.786L358.997 555.461c-2.381 2.381-2.381 5.953 0 8.335 1.191 1.191 2.679 1.786 4.167 1.786h65.488c-16.67 42.865 4.763 90.791 47.33 107.46 42.865 16.67 90.791-4.763 107.46-47.33 0-.298 0-.298.298-.595h47.33c3.274 0 5.953-2.679 5.953-5.953V488.187c0-3.274-2.679-5.953-5.953-5.953zm-256 71.441l166.698-163.126v91.684h-41.674c-3.274 0-5.953 2.679-5.953 5.953v24.707c-25.302 3.572-47.33 18.753-60.13 40.781h-58.94zm130.977 113.117c-39.591 0-71.442-31.851-71.442-71.442s31.851-71.442 71.442-71.442 71.442 31.851 71.442 71.442-31.851 71.442-71.442 71.442zm119.069-53.582h-37.805c9.823-44.949-18.456-89.302-63.405-99.126-5.953-1.191-11.907-2.084-18.158-2.084v-17.86h119.07v119.07h.298zM285.767 244.093c-6.549 0-11.907 5.358-11.907 11.907v559.628c0 6.549 5.358 11.907 11.907 11.907h452.465c6.549 0 11.907-5.358 11.907-11.907V256c0-6.549-5.358-11.907-11.907-11.907H285.767zm452.466 571.535H285.768V256h452.465v559.628z"})),wa=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M583.442 258.977l148.837 148.837H583.442V258.977zm-297.675-5.954h285.767v154.791c0 6.549 5.358 11.907 11.907 11.907h154.791v392.93H285.767V253.023zm0-11.907c-6.549 0-11.907 5.358-11.907 11.907v559.628c0 6.549 5.358 11.907 11.907 11.907h452.465c6.549 0 11.907-5.358 11.907-11.907V412.874c0-3.274-1.191-6.251-3.572-8.335L586.716 244.688c-2.381-2.381-5.358-3.572-8.335-3.572H285.767zm347.386 387.87L446.511 442.344c-3.87-3.87-10.419-3.87-14.586 0l-35.126 35.126c-3.87 3.87-3.87 10.419 0 14.586l186.642 186.642c3.87 3.87 10.419 3.87 14.586 0l35.126-35.126c4.167-3.87 4.167-10.419 0-14.586zm-42.269 42.27L404.54 485.209l35.126-35.126 17.265 17.265-17.265 17.265 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-35.423 35.126zm-146.456-18.754l-21.135-21.135 49.712-49.712-7.442-7.442-55.367 55.367c-.595.595-1.191 1.191-1.191 2.084l-14.288 45.247c-.893 2.679.595 5.656 3.572 6.549.595.298.893.298 1.488.298s1.191 0 1.786-.298l42.865-16.67c.595-.298 1.191-.595 1.786-1.191l55.367-55.367-7.442-7.442-49.712 49.712zm-36.614 16.968l9.228-29.172 18.456 18.456-27.684 10.716zm219.088-197.954l-22.623-22.623c-3.87-3.572-9.823-3.572-13.395 0l-62.214 62.214 7.442 7.442 61.321-61.321 21.135 21.135-61.321 61.321 7.442 7.442 62.214-62.214c3.87-3.87 3.87-9.823 0-13.395z"})),_a=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M440.26 634.344c5.358 3.274 11.907 3.572 17.563.595l163.423-86.028c5.953-2.977 8.037-10.121 5.06-16.074-1.191-2.084-2.679-3.572-4.763-4.763l-163.126-92.577c-8.633-4.763-19.349-1.786-24.409 6.847-1.488 2.679-2.381 5.656-2.381 8.93v167.888c0 6.251 3.274 12.205 8.633 15.181zm3.275-183.367c0-2.084 1.191-4.167 2.977-5.06.893-.595 2.084-.893 2.977-.893s2.084.298 2.977.893l163.126 92.577-163.423 86.028c-2.977 1.488-6.549.298-8.037-2.381-.595-.893-.595-1.786-.595-2.679V450.978zm351.256-147.349H247.07c-9.823 0-17.86 8.037-17.86 17.86v422.698c0 9.823 8.037 17.86 17.86 17.86h547.721c9.823 0 17.86-8.037 17.86-17.86V321.488c0-9.823-8.037-17.86-17.86-17.86zm5.953 440.558c0 3.274-2.679 5.953-5.953 5.953H247.07c-3.274 0-5.953-2.679-5.953-5.953V321.488c0-3.274 2.679-5.953 5.953-5.953h547.721c3.274 0 5.953 2.679 5.953 5.953v422.698z"})),xa=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M782.884 315.535H235.163c-9.823 0-17.86 8.037-17.86 17.86v422.698c0 9.823 8.037 17.86 17.86 17.86h547.721c9.823 0 17.86-8.037 17.86-17.86V333.395c0-9.823-8.037-17.86-17.86-17.86zm-547.721 11.907h547.721c3.274 0 5.953 2.679 5.953 5.953v342.028c-24.112-28.577-89.6-96.149-112.521-96.149-11.312 0-30.363 13.693-60.726 36.316-25.005 18.456-55.963 41.674-68.465 41.674-8.633 0-37.209-39.888-55.963-66.084-35.721-49.712-58.642-80.074-75.312-80.074-38.102 0-136.93 92.874-186.642 151.516V333.394c0-3.274 2.679-5.953 5.953-5.953zm553.674 428.651c0 3.274-2.679 5.953-5.953 5.953H235.163c-3.274 0-5.953-2.679-5.953-5.953v-75.014c53.284-66.679 156.577-158.363 186.642-158.363 11.907 0 42.865 43.46 65.488 75.014 32.447 45.544 51.795 71.144 65.786 71.144 15.181 0 39.888-17.563 75.609-44.056 20.242-15.181 45.842-33.935 53.581-33.935 16.372 0 86.623 69.358 108.949 98.828 2.381 3.274 3.572 6.847 3.274 10.716v55.665h.298zM657.86 506.047c36.316 0 65.488-29.172 65.488-65.488s-29.172-65.488-65.488-65.488-65.488 29.172-65.488 65.488c0 36.019 29.47 65.488 65.488 65.488zm0-119.07c29.47 0 53.581 24.112 53.581 53.581s-24.112 53.581-53.581 53.581-53.581-24.112-53.581-53.581 24.112-53.581 53.581-53.581z"})),Sa=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M763.833 770.977l-14.884 18.456c-1.191 1.191-2.977 1.488-4.465.595l-25.898-19.051h-57.749c-3.274 0-5.953 2.679-5.953 5.953v41.674c0 3.274 2.679 5.953 5.953 5.953h139.907c3.274 0 5.953-2.679 5.953-5.953V776.93c0-3.274-2.679-5.953-5.953-5.953h-36.912zm-89.6 23.814h-5.953c-2.381 0-4.465-2.084-4.465-4.465v-5.953c0-2.381 2.084-4.465 4.465-4.465h5.953c2.381 0 4.465 2.084 4.465 4.465v5.953c0 2.381-2.084 4.465-4.465 4.465zm69.06-21.433l-21.433-16.372c-1.191-.893-1.488-2.977-.595-4.167l3.87-5.06c.893-1.191 2.977-1.488 4.167-.595l14.288 10.716 27.981-38.4c.893-1.191 2.977-1.488 4.167-.595l5.06 3.87c1.191.893 1.488 2.679.595 4.167l-34.233 45.842c-.893 1.191-2.679 1.488-3.87.595zM622.14 812.651H285.768V253.023h285.767v154.791c0 6.549 5.358 11.907 11.907 11.907h154.791v288.744l11.907-14.884V412.874c0-3.274-1.191-6.251-3.572-8.335L586.717 244.688c-2.381-2.381-5.358-3.572-8.335-3.572H285.768c-6.549 0-11.907 5.358-11.907 11.907v559.628c0 6.549 5.358 11.907 11.907 11.907H622.14v-11.907zm-38.698-553.674l148.837 148.837H583.442V258.977zm49.711 370.009L446.511 442.344c-3.87-3.87-10.419-3.87-14.586 0l-35.126 35.126c-3.87 3.87-3.87 10.419 0 14.586l186.642 186.642c3.87 3.87 10.419 3.87 14.586 0l35.126-35.126c4.167-3.87 4.167-10.419 0-14.586zm-42.269 42.27L404.54 485.209l35.126-35.126 17.265 17.265-17.265 17.265 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-17.563 17.563 7.442 7.442 17.563-17.563 13.693 13.693-35.423 35.126zm-146.456-18.754l-21.135-21.135 49.712-49.712-7.442-7.442-55.367 55.367c-.595.595-1.191 1.191-1.191 2.084l-14.288 45.247c-.893 2.679.595 5.656 3.572 6.549.595.298.893.298 1.488.298s1.191 0 1.786-.298l42.865-16.67c.595-.298 1.191-.595 1.786-1.191l55.367-55.367-7.442-7.442-49.712 49.712zm-36.614 16.968l9.228-29.172 18.456 18.456-27.684 10.716zm219.088-197.954l-22.623-22.623c-3.87-3.572-9.823-3.572-13.395 0l-62.214 62.214 7.442 7.442 61.321-61.321 21.135 21.135-61.321 61.321 7.442 7.442 62.214-62.214c3.87-3.87 3.87-9.823 0-13.395z"})),Ea=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M785.86 321.488H238.139c-9.823 0-17.86 8.037-17.86 17.86v416.744c0 9.823 8.037 17.86 17.86 17.86H785.86c9.823 0 17.86-8.037 17.86-17.86V339.348c0-9.823-8.037-17.86-17.86-17.86zm5.954 434.605c0 3.274-2.679 5.953-5.953 5.953H238.14c-3.274 0-5.953-2.679-5.953-5.953V339.349c0-3.274 2.679-5.953 5.953-5.953h547.721c3.274 0 5.953 2.679 5.953 5.953v416.744zm-446.512-375.07h410.791v11.907H345.302v-11.907zm-77.395 0h41.674v11.907h-41.674v-11.907zm241.116 65.489c-65.488 0-128 53.879-128 128 0 70.549 57.451 128 128 128s128-57.451 128-128-57.451-128-128-128zm-5.06 243.497c0 .298 0 .298 0 0-64-2.381-113.414-56.26-111.033-120.26.893-19.051 6.251-37.507 15.777-53.879 1.488 16.967 7.74 33.34 18.456 46.735 9.228 11.312 20.837 19.647 32.447 27.684 5.656 4.167 11.907 8.335 17.265 12.8 4.167 3.274 6.251 6.251 5.953 8.335-.298 1.488-1.191 3.274-2.084 4.465-1.786 2.679-2.977 5.953-3.572 9.228-.595 5.656 1.786 11.014 5.656 14.884a59.463 59.463 0 0 0 6.549 5.656c.893.595 1.786 1.488 2.977 2.084 11.907 10.419 16.67 27.088 11.609 42.27zm47.628-25.6c-1.488 2.679-2.679 5.358-3.572 8.335-.595 1.488-.893 2.977-1.488 4.167-.298.595-.595 1.488-.893 2.084-.893 2.977-2.977 5.358-5.953 6.251-.893.298-1.488.893-2.084 1.488-6.847 1.786-13.991 2.977-21.135 3.274 5.06-19.051-1.488-38.995-16.67-51.498-1.191-.893-2.084-1.786-3.274-2.381-1.786-1.191-3.572-2.679-5.06-4.167s-2.381-3.274-2.381-5.358c.298-1.488 1.191-2.977 2.084-4.465 1.786-2.679 3.274-5.953 3.572-9.228.893-8.633-5.358-14.586-10.121-18.753-5.656-4.763-11.907-9.228-17.86-13.395-11.312-8.037-22.028-15.479-30.065-25.6-13.693-17.265-19.349-39.591-14.586-57.451 13.395-15.479 30.958-26.791 50.307-33.34h.893c3.572-.595 5.358-.595 7.144.893-.298 0-.595.298-.893.298-2.977 1.786-5.06 4.465-5.953 7.74-.893 4.167-.298 8.335 2.084 11.907a26.993 26.993 0 0 0 12.8 9.526 5.965 5.965 0 0 0 8.037-2.679c.298-.893.595-1.786.595-2.679.298-2.381 1.786-4.763 3.87-5.656 2.977-1.191 6.251-1.488 9.228-.298 2.084.595 3.87 2.084 4.763 4.465.298 2.084-1.488 5.06-3.274 8.037-7.442 12.8-16.074 24.707-25.6 36.019-2.679 3.572-6.251 5.953-10.419 7.442-1.786.298-3.87.298-5.656.298-2.381 0-5.06 0-7.442.298-4.465.595-8.633 3.274-11.312 6.847-1.786 2.679-2.381 5.953-1.786 9.228 1.488 6.549 7.74 8.633 11.907 10.121 1.786.298 3.572 1.191 5.06 2.381.298.595.298 1.488.595 2.084.298.893.298 1.786.595 2.679 2.084 6.251 6.549 11.312 12.8 13.693 4.465 1.786 9.228 2.977 14.288 3.572l1.191.298c25.6 4.167 50.307 12.205 73.823 23.516 6.251 2.977 12.8 6.847 14.288 12.502 1.488 5.06-1.786 10.419-5.06 13.991-3.572 3.274-7.442 6.549-11.312 8.93-1.786 1.191-3.274 2.381-5.06 3.572-4.763 2.977-8.335 6.847-11.014 11.014zm6.549 15.182c.298-.893.893-2.084 1.191-2.977.595-2.084 1.488-4.167 2.381-5.953 2.084-2.977 4.465-5.358 7.442-7.144 1.488-1.191 3.274-2.381 4.763-3.274 4.763-2.977 9.228-6.549 13.395-10.716 7.144-7.74 10.121-17.265 7.74-25.302-2.679-10.121-11.907-15.777-20.54-19.944-24.409-11.907-50.307-20.242-77.098-24.707l-1.191-.298c-3.87-.298-7.74-1.488-11.312-2.679-2.679-.893-5.06-3.274-6.251-5.953 0-.595-.298-1.191-.298-1.786-.298-2.084-.893-4.167-1.786-5.953-2.679-3.87-6.847-6.847-11.312-7.74-1.488-.298-2.679-.893-4.167-1.786.893-.893 1.786-1.191 2.977-1.488a16.168 16.168 0 0 1 5.358 0c2.977.298 5.656 0 8.633-.595 6.549-1.786 12.502-5.656 16.67-11.014 10.121-11.609 19.051-24.409 26.791-37.805 2.381-3.572 6.251-9.823 4.763-16.67-1.488-6.251-6.251-11.312-12.502-13.098-5.953-2.381-12.8-2.084-18.456.893-3.274 1.786-6.251 4.465-8.037 7.74-.595-.595-1.488-1.191-1.786-2.084-.595-.893-.595-1.786-.298-2.679.298-.298.595-.298 1.191-.298 2.381-.595 4.167-1.786 5.953-3.572 2.977-3.572 2.679-7.442-.595-12.205 37.805-6.251 76.205 7.144 102.102 35.423l-1.191 8.93c-2.381 16.372-4.465 33.34-1.786 50.605 3.572 21.73 14.586 39.293 30.363 48.223h.298c-8.93 33.042-31.851 61.023-63.405 75.907zm44.353-126.512c-2.381-14.884-.595-30.065 1.488-45.247 17.265 24.112 24.409 53.581 19.944 82.753-11.014-7.442-18.753-21.135-21.433-37.507z"})),Ca=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M592.372 256l148.837 148.837H592.372V256zm-297.674-5.953h285.767v154.791c0 6.549 5.358 11.907 11.907 11.907h154.791v392.93H294.698V250.047zm0-11.907c-6.549 0-11.907 5.358-11.907 11.907v559.628c0 6.549 5.358 11.907 11.907 11.907h452.465c6.549 0 11.907-5.358 11.907-11.907V409.898c0-3.274-1.191-6.251-3.572-8.335L595.647 241.712c-2.381-2.381-5.358-3.572-8.335-3.572H294.698zm304.223 439.665c-1.191 0-2.084-.298-2.977-.893l-78.586-57.153-78.586 57.153c-1.786 1.191-4.167 1.191-6.251 0-1.786-1.191-2.679-3.572-1.786-5.953L460.8 578.68l-78.586-57.153c-1.786-1.191-2.679-3.572-1.786-5.953.595-2.084 2.679-3.572 5.06-3.572h96.744l30.065-92.279c.595-2.084 2.679-3.572 5.06-3.572s4.167 1.488 5.06 3.572l30.065 92.279h97.042c2.381 0 4.167 1.488 5.06 3.572.595 2.084 0 4.465-1.786 5.953l-78.586 57.153 30.065 92.279c.595 2.084 0 4.465-1.786 5.953-1.488.595-2.381.893-3.572.893zm-81.563-69.656c1.191 0 2.084.298 2.977.893l68.763 50.009-26.195-80.67c-.595-2.084 0-4.465 1.786-5.953l68.763-50.009h-84.837c-2.381 0-4.167-1.488-5.06-3.572l-26.195-80.67-26.195 80.67c-.595 2.084-2.679 3.572-5.06 3.572h-84.837l68.763 50.009c1.786 1.191 2.679 3.572 1.786 5.953l-26.195 80.67 68.763-50.009c.893-.595 1.786-.893 2.977-.893z"})),Ta={photo:xa,europaper:ya,uspaper:ya,video:_a,web:Ea,artillustration:r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M709.358 484.912l-31.553-16.372c-2.977-1.488-6.549-.298-8.037 2.381l-76.205 146.456c-.595.893-.595 1.786-.595 2.679l.298 37.507c0 3.274 2.679 5.953 5.953 5.953.595 0 1.191 0 1.786-.298s1.191-.298 1.488-.893l31.256-20.837c.893-.595 1.488-1.191 2.084-2.084l76.205-146.456a5.965 5.965 0 0 0-2.679-8.037zM603.684 621.544l23.219 12.205-22.921 15.479-.298-27.684zm28.279 2.382l-23.219-12.205 68.465-131.572 23.219 12.205-68.465 131.572zM519.74 705.488c-6.251 0-12.502-.893-18.158-2.679-9.228-2.977-16.967-9.526-21.135-18.158-4.763-10.121-3.87-23.219 2.977-38.102 7.74-17.265 19.349-32.744 30.363-47.628 12.502-16.67 24.409-32.744 31.553-51.2 1.191-2.977 2.084-5.953 2.084-8.93 0-2.084-.595-4.167-2.084-5.656-2.679-2.381-8.037-1.488-12.205-.298-19.647 5.656-36.912 17.86-48.521 34.53-1.786 2.679-5.656 3.274-8.335 1.488s-3.274-5.656-1.488-8.335c13.395-19.051 32.744-33.042 55.07-39.293 10.121-2.679 17.86-1.786 23.219 2.977 4.167 3.87 6.251 9.228 5.953 14.884-.298 4.465-1.191 8.93-2.977 13.098-7.442 20.242-20.54 37.507-33.042 54.177-10.716 14.288-21.73 29.172-29.172 45.247-5.358 11.907-6.251 21.135-2.977 28.279 2.977 5.656 8.037 10.121 14.288 11.907 6.847 2.084 13.991 2.679 21.135 1.786 19.647-1.786 38.102-9.823 52.986-22.623 2.381-2.084 6.251-1.786 8.335.595s1.786 6.251-.595 8.335c-16.67 14.288-37.507 23.219-59.535 25.302-2.381.298-5.06.298-7.74.298zm230.4-455.441H297.675c-6.549 0-11.907 5.358-11.907 11.907v559.628c0 6.549 5.358 11.907 11.907 11.907H750.14c6.549 0 11.907-5.358 11.907-11.907V261.954c0-6.549-5.358-11.907-11.907-11.907zm0 571.534H297.675V261.953H750.14v559.628zM619.163 384h-23.814c-9.823 0-17.86 8.037-17.86 17.86v5.953h-136.93v-5.953c0-9.823-8.037-17.86-17.86-17.86h-23.814c-9.823 0-17.86 8.037-17.86 17.86v23.814c0 9.823 8.037 17.86 17.86 17.86h5.953v136.93h-5.953c-9.823 0-17.86 8.037-17.86 17.86v23.814c0 9.823 8.037 17.86 17.86 17.86h23.814c9.823 0 17.86-8.037 17.86-17.86v-23.814c0-9.823-8.037-17.86-17.86-17.86h-5.953v-136.93h5.953c9.823 0 17.86-8.037 17.86-17.86v-5.953h136.93v5.953c0 9.823 8.037 17.86 17.86 17.86h5.953v95.256h11.907v-95.256h5.953c9.823 0 17.86-8.037 17.86-17.86V401.86c0-9.823-8.037-17.86-17.86-17.86zM422.698 592.372c3.274 0 5.953 2.679 5.953 5.953v23.814c0 3.274-2.679 5.953-5.953 5.953h-23.814c-3.274 0-5.953-2.679-5.953-5.953v-23.814c0-3.274 2.679-5.953 5.953-5.953h23.814zm5.953-166.698c0 3.274-2.679 5.953-5.953 5.953h-23.814c-3.274 0-5.953-2.679-5.953-5.953V401.86c0-3.274 2.679-5.953 5.953-5.953h23.814c3.274 0 5.953 2.679 5.953 5.953v23.814zm196.465 0c0 3.274-2.679 5.953-5.953 5.953h-23.814c-3.274 0-5.953-2.679-5.953-5.953V401.86c0-3.274 2.679-5.953 5.953-5.953h23.814c3.274 0 5.953 2.679 5.953 5.953v23.814z"})),clipboard:r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},r.a.createElement("path",{d:"M720.372 239.33H305.116c-8.335 0-14.884 6.549-14.884 14.884v555.758c0 8.335 6.549 14.884 14.884 14.884h415.256c8.335 0 14.884-6.549 14.884-14.884V254.214c0-8.335-6.549-14.884-14.884-14.884zm-88.112 11.907l-16.372 49.414H409.302l-16.372-49.414h239.33zm91.089 558.735c0 1.488-1.488 2.977-2.977 2.977H305.116c-1.488 0-2.977-1.488-2.977-2.977V254.214c0-1.488 1.488-2.977 2.977-2.977h75.609l19.051 57.153c.893 2.381 2.977 4.167 5.656 4.167h215.219c2.679 0 4.763-1.786 5.656-4.167l19.051-57.153h75.014c1.488 0 2.977 1.488 2.977 2.977v555.758zM500.688 606.363c-1.786 0-3.572-.595-4.465-1.786L442.046 550.4c-1.191-1.191-1.786-2.977-1.786-4.465 0-1.786.595-3.274 1.786-4.465s2.679-1.786 4.465-1.786 3.572.595 4.465 1.786l49.712 49.712 104.781-104.781c1.191-1.191 2.977-1.786 4.465-1.786 1.786 0 3.274.595 4.465 1.786s1.786 2.977 1.786 4.465c0 1.786-.595 3.274-1.786 4.465L505.152 604.28c-.893 1.191-2.679 2.084-4.465 2.084z"})),mobile:ba,iconography:ba,print:ya,custom:wa,saved:Sa,user:Sa,star:Ca};var ka=n("7D3O"),Pa=n.n(ka);let Da=class extends i.Component{render(){const{element:e,className:t,largeIcon:n}=this.props,{name:i,description:o,group:a}=e,s=[Pa.a["cmdn-PresetCard"],t],l=(e=>Ta[e]||wa)(a);return r.a.createElement("div",{className:p()(s)},r.a.createElement("div",{className:p()({[Pa.a["cmdn-PresetCard-icon--large"]]:n},Pa.a["cmdn-PresetCard-icon"])},l),r.a.createElement("div",{className:p()(la.a["cmdn-GridCard-title"],la.a["cmdn-GridCard-truncateText"],Pa.a["cmdn-PresetCard-Title"])},i),r.a.createElement("div",{className:Pa.a["cmdn-PresetCard-subtitle"]},o))}};var Aa=Da=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([l.c],Da),Ia=n("SoI9"),Ra=n.n(Ia);class Na extends i.Component{constructor(e){super(e),this.gridWrapperRef=r.a.createRef(),this.oldContainerSize={width:0,height:0},this.positionMap={},this.state={collapsed:!!this.props.collapsible&&this.props.collapsed,collapsible:this.props.collapsible,numCards:0,shouldRecomputeNumCards:!0},this.onNextItem=this.onNextItem.bind(this),this.onPreviousItem=this.onPreviousItem.bind(this),this.onNextRow=this.onNextRow.bind(this),this.onPreviousRow=this.onPreviousRow.bind(this),this.onViewAllToggle=this.onViewAllToggle.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.focusSelectedElement=this.focusSelectedElement.bind(this),this.windowResizeHandler=this.windowResizeHandler.bind(this),this.resizeHandlerRef=m()(this.windowResizeHandler,60),this.handleGridFocus=this.handleGridFocus.bind(this),this.getPosition=this.getPosition.bind(this)}componentDidMount(){this.initDisplayPositions(),this.recomputeNumCards(!0),window.addEventListener("resize",this.resizeHandlerRef)}componentDidUpdate(e){const t=this.props.elements,n=this.props.selectedItem,i=e.selectedItem,r=this.props.store.activeView;if(t!==e.elements&&this.initDisplayPositions(),this.recomputeNumCards(t!==e.elements),n&&i&&i.kind!==n.kind&&ea(i,r)&&ea(n,r)&&Yo(this.positionMap,n)&&!Yo(this.positionMap,i)){const e=this.visibleElements,t=this.getPosition(n);this.props.collapsed&&e&&e.length>0&&t>=e.length?this.onItemSelected(e[e.length-1]):this.focusSelectedElement(n)}else this.props.store.forceFocus&&requestAnimationFrame(()=>{this.focusSelectedElement(n)})}initDisplayPositions(){this.positionMap=this.props.elements.reduce((e,t,n)=>(e[t.identifier]=n,e),{})}getPosition(e){return e&&this.positionMap[e.identifier]||0}componentWillUnmount(){window.removeEventListener("resize",this.resizeHandlerRef)}windowResizeHandler(){const e=this.props.containerSize;if((this.oldContainerSize.width!==e.width||this.oldContainerSize.height!==e.height)&&this.gridWrapperRef&&this.gridWrapperRef.current&&this.gridWrapperRef.current.offsetWidth>0){const t=Qo(e,this.gridWrapperRef,this.allElementsCount);this.setState({cardsOnRow:t,shouldRecomputeNumCards:!0}),this.oldContainerSize.width>0&&this.oldContainerSize.height>0&&(this.props.store.forceFocus=!0),this.oldContainerSize=e}}onItemSelected(e){Yo(this.positionMap,e)&&(this.props.selectedItem&&this.props.selectedItem.identifier===e.identifier||this.props.onItemSelected&&this.props.onItemSelected(e),this.focusSelectedElement(e))}onItemDoubleClick(e){this.props.onItemDoubleClick&&this.props.onItemDoubleClick(e),this.focusSelectedElement(e)}onItemDeleted(e){this.props.onItemDeleted&&this.props.onItemDeleted(e).then(()=>this.props.selectedItem&&this.focusSelectedElement(this.props.selectedItem))}focusSelectedElement(e){if(e&&Yo(this.positionMap,e)){const t=this.gridWrapperRef.current&&this.gridWrapperRef.current.getElementsByClassName(la.a["cmdn-GridCard"]);if(t){const n=this.getPosition(e);n<t.length&&(t[n].focus(),this.props.store.forceFocus=!1)}}}recomputeNumCards(e=!1,t=!1){if(e||this.state.shouldRecomputeNumCards){const n=this.numVisibleCards,i=this.props.collapsible&&(e||!this.state.collapsed||this.props.elements&&n<this.props.elements.length);this.setState({numCards:n,shouldRecomputeNumCards:!1,collapsible:i},()=>{let e=this.props.selectedItem;if((!e||this.getPosition(e)>=this.state.numCards)&&Yo(this.positionMap,e))this.onItemSelected(this.visibleElements[0]);else if(t||this.props.forceFocus){if(this.props.forceFocus){const e=document.activeElement;e&&e.classList&&e.classList.contains("spectrum-Tabs-item")&&e.classList.remove("focus-ring")}requestAnimationFrame(()=>this.focusSelectedElement(e))}})}}onNextItem(){const{elements:e,selectedItem:t}=this.props;if(e&&t){const n=this.getPosition(t),i=Math.min(n+1,this.state.numCards-1);this.onItemSelected(i>=0&&e[i])}}onPreviousItem(){const{elements:e,selectedItem:t}=this.props;if(e&&t){const n=this.getPosition(t),i=Math.max(0,n-1);this.onItemSelected(i>=0&&e[i])}}onNextRow(){const e=this.state.cardsOnRow,{elements:t,selectedItem:n}=this.props;if(t&&n&&e){const t=this.allElementsCount;let i=this.getPosition(n)+e;const r=Math.floor((t-1)/e);Math.floor(i/e)<=r?(i=Math.min(i,t-1),this.onItemSelected(this.props.elements[i])):this.props.jumpToNextGrid&&this.props.jumpToNextGrid()}}onPreviousRow(){const e=this.state.cardsOnRow,{elements:t,selectedItem:n}=this.props;if(t&&n&&e){let t=this.getPosition(n)-e;Math.floor(t/e)>=0?(t=Math.max(0,t),this.onItemSelected(this.props.elements[t])):this.props.jumpToPreviousGrid&&this.props.jumpToPreviousGrid()}}onViewAllToggle(e=!1){this.setState({collapsed:!e&&!this.state.collapsed},()=>{this.recomputeNumCards(!0,!0)}),this.props.store.analytics.logFNFTActionClickedEvent("preset-viewmore",{activeFilter:this.props.store.activeView})}get numVisibleCards(){const e=this.allElementsCount;let t=this.state.cardsOnRow;return void 0===t&&(t=Qo(this.props.containerSize,this.gridWrapperRef,e),this.setState({cardsOnRow:t})),this.state.collapsed?Math.min(t||e,e):e}get visibleElements(){const e=this.props.elements,t=this.state.numCards;return e&&this.state.collapsed&&t>=0&&t<=e.length?e.slice(0,t):e}onKeyDown(e){switch(e.key){case"ArrowLeft":this.onPreviousItem();break;case"ArrowRight":this.onNextItem();break;case"ArrowUp":this.onPreviousRow();break;case"ArrowDown":this.state.collapsible&&this.state.collapsed&&this.onViewAllToggle(!0),this.onNextRow();break;case"Enter":if(!(e.target.className&&-1!==e.target.className.indexOf(la.a["cmdn-GridCard"])&&-1!==e.target.className.indexOf(la.a["is-selected"])))break;this.props.selectedItem&&this.onItemDoubleClick(this.props.selectedItem);break;case"Delete":case"Backspace":this.props.deletableItems&&this.props.selectedItem&&this.onItemDeleted(this.props.selectedItem)}}get allElementsCount(){return this.props.elements&&this.props.elements.length||0}handleGridFocus(e){const t=this.props.elements;this.gridWrapperRef&&this.gridWrapperRef.current&&this.gridWrapperRef.current.classList===e.target.classList&&(Yo(this.positionMap,this.props.selectedItem)?this.focusSelectedElement(this.props.selectedItem):t&&t.length>0&&this.onItemSelected(t[0]))}render(){const{elements:e,title:t,selectedItem:n,tallCards:i,deletableItems:o}=this.props,{collapsible:a,collapsed:s}=this.state,l=this.visibleElements,u=a&&s,h=function(e){const t=e.width;return!!(t&&t>Jo)}(this.props.containerSize),d=[Ra.a["cmdn-GridView"],{[Ra.a["cmdn-GridView-wide"]]:h}];return r.a.createElement("div",{className:p()(d)},e&&e.length>0&&r.a.createElement("div",null,r.a.createElement("div",{className:Ra.a["cmdn-GridView-Title"]},r.a.createElement(Ci,{id:t||"newdoc_blank_documents"}),r.a.createElement("div",{className:Ra.a["cmdn-GridView-Count"]},"(",e&&e.length||0,")")),r.a.createElement("div",{tabIndex:-1,onKeyDown:this.onKeyDown,ref:this.gridWrapperRef,className:p()(Ra.a["cmdn-GridView-GridWrapper"],{[Ra.a["cmdn-GridView-GridWrapper-collapsed"]]:u}),onFocus:this.handleGridFocus},l&&l.map(e=>r.a.createElement(pa,{element:e,isDeletable:o,isSelected:e.identifier===(n&&n.identifier),key:e.identifier,onItemDeleted:()=>this.onItemDeleted(e),onItemDoubleClick:()=>this.onItemDoubleClick(e),onItemSelected:()=>this.onItemSelected(e),tallCard:h&&i,wideCard:h},r.a.createElement(Aa,{key:"preset"}),r.a.createElement(va,{key:"template"})))),a&&s&&r.a.createElement("div",{className:Ra.a["cmdn-GridView-Expander"]},r.a.createElement(Rn.a,{quiet:!0,variant:"secondary",onClick:this.onViewAllToggle,"aria-label":r.a.createElement(c.b,{id:"newdoc_view_all"})},r.a.createElement(c.b,{id:"newdoc_view_all"}),r.a.createElement(Ko.a,{size:"XS",className:Ra.a["cmdn-GridView-Expander-Icon"]})))))}}var Oa=Object(c.g)(Na),La=n("eD7O"),Ma=n.n(La),Ua=n("kGiI"),za=n.n(Ua);class Ba extends i.Component{constructor(e){super(e),this.state={open:!!this.props.open}}close(){this.setState({open:!1}),this.props.onClose&&this.props.onClose()}render(){if(!this.state.open)return null;const{title:e,children:t}=this.props;return r.a.createElement("div",{className:za.a["cmdn-MessageCard"]},r.a.createElement("div",{className:za.a["cmdn-MessageCard-Header"]},r.a.createElement(Rn.a,{className:za.a["cmdn-MessageCard-Close"],icon:r.a.createElement(Ma.a,{size:"S"}),quiet:!0,variant:"action",onClick:()=>this.close()})),r.a.createElement("div",{className:za.a["cmdn-MessageCard-Wrapper"]},r.a.createElement(Di.a,{className:za.a["cmdn-MessageCard-Title"],variant:"pageTitle"},e),r.a.createElement("div",{className:za.a["cmdn-MessageCard-Content"]},t)))}}const Fa=[Re.PHOTO,Re.PRINT,Re.ART,Re.WEB,Re.MOBILE,Re.FILM];class Va extends i.Component{handleAnchorClick(e){if(e.target&&"a"===e.target.nodeName.toLowerCase()&&e.target.hasAttribute("href")&&e.target.getAttribute("href").startsWith("#category=")){let t=parseInt(e.target.getAttribute("href").replace("#category=",""));t>=0&&Fa[t]&&(e.preventDefault(),e.stopPropagation(),this.props.onViewChange&&this.props.onViewChange(Fa[t]))}}render(){const{content:e,...t}=this.props,n=ti()(e);return r.a.createElement(Ba,Object.assign({},t),r.a.createElement("div",{dangerouslySetInnerHTML:{__html:n},onClick:e=>this.handleAnchorClick(e)}))}}let ja=class extends i.Component{componentDidMount(){const{store:e}=this.props;e.activeDocumentTemplate||e.setDefaultActiveDocumentTemplate()}get hasTemplates(){const{store:e,viewId:t}=this.props,n=e.getTemplatesByCategoryType(t);return n&&n.length>0}get recentsWelcome(){const e=this.hasTemplates?"newdoc_welcome_banner_content_recent_templates":"newdoc_welcome_banner_content_recent_no_templates";return r.a.createElement(Va,{title:r.a.createElement(c.b,{id:"newdoc_welcome_banner_recent_title"}),onClose:()=>this.props.store.closeRecentsWelcome(),onViewChange:e=>(this.props.store.activeView=e,this.props.store.forceFocus=!0),content:this.props.intl.formatMessage({id:e}),open:!0})}render(){const{store:e,intl:t,viewId:n}=this.props,i=e.getPresetsByCategoryType(n);return r.a.createElement("div",null,e.shouldShowRecentsBanner&&this.recentsWelcome,r.a.createElement(Oa,{collapsible:!1,containerSize:e.containerSize,elements:i,onItemDoubleClick:n=>{"template"===n.kind?$i(e):Hi(e,t)},onItemSelected:t=>Wi(e,t),selectedItem:e.activeDocumentTemplate,store:this.props.store,tallCards:!0,title:"newdoc_your_recent_items",forceFocus:e.forceFocus}))}};ja=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([l.c],ja);var Ga=Object(c.g)(ja);let Wa=class extends i.Component{componentDidMount(){const{store:e}=this.props;e.activeDocumentTemplate||this.props.store.setDefaultActiveDocumentTemplate()}get hasTemplates(){const{store:e,viewId:t}=this.props,n=e.getTemplatesByCategoryType(t);return!!(n&&n.length>0)}get savedWelcome(){const e=this.hasTemplates?"newdoc_welcome_banner_content_saved_templates":"newdoc_welcome_banner_content_saved_no_templates";return r.a.createElement(Va,{title:r.a.createElement(c.b,{id:"newdoc_welcome_banner_saved_title"}),onClose:()=>this.props.store.closeSavedWelcome(),onViewChange:e=>(this.props.store.activeView=e,this.props.store.forceFocus=!0),content:this.props.intl.formatMessage({id:e}),open:!0})}render(){const{store:e,intl:t}=this.props,n=e.activeView,i=e.getPresetsByCategoryType(n),o=e.getTemplatesByCategoryType(n),a=this.hasTemplates;return r.a.createElement("div",null,r.a.createElement("div",null,e.shouldShowSavedBanner&&this.savedWelcome),r.a.createElement(Oa,{collapsed:!1,collapsible:a,containerSize:e.containerSize,deletableItems:!0,elements:i,onItemDeleted:t=>(async function(e,t){if(e){const n=e.activeView;let i=e.getPresetsByCategoryType(n),r=i.indexOf(t);if(await e.deletePreset(t.name),await e.updatePresetCategory(Re.SAVED),(i=e.getPresetsByCategoryType(n))&&i.length>0)e.activeDocumentTemplate=i&&i[Math.max(0,r-1)];else{const t=e.getTemplatesByCategoryType(n);e.activeDocumentTemplate=t&&t.length>0?t[0]:void 0}}})(e,t),onItemDoubleClick:n=>Hi(e,t),onItemSelected:t=>Wi(e,t),selectedItem:e.activeDocumentTemplate,jumpToNextGrid:()=>qi(e,n),store:this.props.store,tallCards:!1,title:"newdoc_saved_blank_documents",forceFocus:e.forceFocus}),a&&r.a.createElement(Oa,{collapsible:!1,containerSize:e.containerSize,elements:o,onItemDoubleClick:t=>$i(e),onItemSelected:t=>Wi(e,t),jumpToPreviousGrid:()=>Ki(e,n),selectedItem:e.activeDocumentTemplate,store:this.props.store,tallCards:!0,title:"listview_template_tab_label",forceFocus:e.forceFocus}))}};Wa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([l.c],Wa);var Ha=Object(c.g)(Wa),$a={items:{[Re.RECENT]:{label:"newdoc_filter_recent",icon:{icon:$o.a,size:"S"},component:Ga},[Re.SAVED]:{label:"newdoc_filter_saved",component:Ha},[Re.PHOTO]:{label:"newdoc_filter_photo",searchTemplatesBy:"photo"},[Re.PRINT]:{label:"newdoc_filter_print",searchTemplatesBy:"photo"},[Re.ART]:{label:"newdoc_filter_art"},[Re.WEB]:{label:"newdoc_filter_web"},[Re.MOBILE]:{label:"newdoc_filter_mobile",searchTemplatesBy:"mobile"},[Re.FILM]:{label:"newdoc_filter_film",searchTemplatesBy:"video"}},itemsOrder:[Re.RECENT,Re.SAVED,Re.PHOTO,Re.PRINT,Re.ART,Re.WEB,Re.MOBILE,Re.FILM]};let qa=class extends i.Component{componentDidMount(){const{store:e}=this.props;e.activeDocumentTemplate||this.props.store.setDefaultActiveDocumentTemplate()}render(){const{store:e,intl:t,viewId:n}=this.props,i=e.getPresetsByCategoryType(n),o=e.getTemplatesByCategoryType(n),a=!!(o&&o.length>0);return r.a.createElement(r.a.Fragment,null,r.a.createElement(Oa,{collapsed:!0,collapsible:a,containerSize:e.containerSize,elements:i,onItemDoubleClick:n=>Hi(e,t),onItemSelected:t=>Wi(e,t),selectedItem:e.activeDocumentTemplate,jumpToNextGrid:()=>qi(e,n),store:this.props.store,tallCards:!1,title:"newdoc_blank_documents",forceFocus:e.forceFocus}),a&&r.a.createElement(Oa,{collapsible:!1,containerSize:e.containerSize,elements:o,onItemDoubleClick:t=>$i(e),onItemSelected:t=>Wi(e,t),selectedItem:e.activeDocumentTemplate,jumpToPreviousGrid:()=>Ki(e,n),store:this.props.store,tallCards:!0,title:"listview_template_tab_label",forceFocus:e.forceFocus}),r.a.createElement(or,null))}};qa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([l.c],qa);var Ka=Object(c.g)(qa);const Ja=(Za=hr.Tab,class extends i.Component{get icon(){return this.props.icon&&this.props.icon.icon?r.a.createElement(pr,{alt:this.props.icon.alt,icon:this.props.icon.icon,size:this.props.icon.size}):null}render(){return r.a.createElement(Za,Object.assign({},this.props,{icon:this.icon}))}});var Za;class Xa extends i.Component{constructor(e){super(e),e.root&&e.intl&&e.root.setAttribute("uxp-title",e.intl.formatMessage({id:"ccx_fnft_dialog_name"}))}focusContent(){const{store:e}=this.props;e.forceFocus=!0}onKeyDown(e){switch(e.key){case"Enter":this.focusContent()}}onClick(e){this.focusContent()}render(){const{selectedView:e,onSelect:t,className:n,intl:i}=this.props,{formatMessage:o}=i;return r.a.createElement(hr.TabView,{className:n,onSelect:e=>t&&t($a.itemsOrder[e]),selectedIndex:$a.itemsOrder.indexOf(e||Re.RECENT)},$a.itemsOrder.map(e=>{if($a.items.hasOwnProperty(e)){const t=$a.items[e],{searchTemplatesBy:n,label:i,icon:a,component:s,data:l,...c}=t,u=An(s||Ka),p=An(Wo);return r.a.createElement(Ja,Object.assign({key:`tab_${e}`,id:e,label:o({id:i}),icon:t.icon||null,onKeyDown:this.onKeyDown.bind(this),onClick:this.onClick.bind(this),onDoubleClick:this.onClick.bind(this)},c),r.a.createElement(p,null,r.a.createElement(u,Object.assign({viewId:e},l,{analytics:this.props.analytics}))))}return null}))}}var Ya=Object(c.g)(An(Xa));class Qa extends i.Component{render(){const{store:e,className:t,root:n}=this.props;return r.a.createElement(Ya,{root:n,className:t,selectedView:e.activeView,onSelect:t=>e.activeView=t,analytics:e.analytics})}}const es=Object(ie.decorate)(Qa,{}),ts=An(Object(l.c)(es));var ns=n("tU+Q"),is=n.n(ns),rs=n("MPrR"),os=n.n(rs),as=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ss=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};d.a.useDefaults({defaultLevel:d.a.ERROR,formatter:(e,t)=>{t.name&&e.unshift(`[${t.name}]`),e.unshift("[CMDN]"),e.unshift((new Date).toUTCString())}});let ls=class extends i.Component{constructor(e){super(e),this.windowResizeHandler=this.windowResizeHandler.bind(this),this.resizeHandlerRef=m()(this.windowResizeHandler,60),this.store=new Pn(this.props.userInfo,this.props.onClose),this.store.containerSize=this.getContainerSize(this.props.root),this.router=r.a.createRef(),this.onShow=Fi(this.onShow,Ui.CMDN_REFRESHING,zi.ENFORCE_LOCK,60)}componentDidMount(){window.addEventListener("resize",this.resizeHandlerRef)}componentWillUnmount(){window.removeEventListener("resize",this.resizeHandlerRef)}afterCloseApp(e){this.store.afterCloseApp(e),this.router.current&&this.router.current.history.replace("/")}windowResizeHandler(){const{containerSize:e}=this.store,t=this.getContainerSize(this.props.root);if(t.width!==e.width||t.height!==e.height){if(this.store.ready){const{activeDocumentTemplate:e,activeView:n}=this.store;if(void 0!==e){const i={activeFilter:n,displayTemplate:e.kind,cardName:e.name,attributes:t,displayMode:"preset"===e.kind?0:1};this.store.analytics.logFNFTActionClickedEvent("resize-dialog",i)}}this.store.containerSize=t}}getContainerSize(e){return{width:e?e.offsetWidth:document.documentElement.clientWidth,height:e?e.offsetHeight:document.documentElement.clientHeight}}async beforeShow(){this.store.resetUIState(),this.router.current&&this.router.current.history.replace("/")}async onShow(e=!0){He.track(We.LoadTime),He.track(We.DataTime),e&&(He.track(We.HostData),await this.store.updateDefaultSettings(),He.measure(We.HostData),He.track(We.i18nJSON),He.measure(We.i18nJSON),He.track(We.HostPresetData),await this.store.updatePresetsAndTemplates(Re.ALL),He.measure(We.HostPresetData),He.track(We.IngestConfig),He.measure(We.IngestConfig)),requestAnimationFrame(()=>{this.store.disableNativeSearchBox=!1}),this.store.analytics.logItemOpenedEvent({openType:"new",fileType:"",sectionView:"createNew",ucAction:"fnft"}),He.setMeasurement(We.RiotMountApp,0),this.store.isStockEnabled||(He.measure(We.DataTime),He.measure(We.LoadTime),Vt.reportPerformance(He.measurements),He.clearMeasurements())}render(){if(this.store.ready){const{root:e}=this.props,t=()=>e;return r.a.createElement(Dn.Provider,{value:this.store},r.a.createElement(fr,{values:this.store.featureFlags},r.a.createElement(ne.a,{theme:this.store.theme,productId:Vt.id,boundariesElement:e?t:void 0,className:p()(is.a["cmdn-AppContainer"],p()(os.a[`theme-${this.store.theme}`]))},r.a.createElement(c.d,{locale:this.store.language,messages:this.store.languageStrings},r.a.createElement(G,{ref:this.router},r.a.createElement(K,{path:"/",exact:!0,render:()=>r.a.createElement(ts,{root:e,className:is.a["cmdn-AppNavigation"]})}),r.a.createElement(K,{path:"/template-preview",component:ur}))))))}return null}};var cs=ls=as([l.c,ss("design:paramtypes",[Object])],ls);let us,ps;function hs(e){ps&&ps.afterCloseApp(e.target.returnValue||"close")}function ds(e){(us=document.createElement("dialog")).id="cmdn-dialog",us.setAttribute("uxp-initial-width","1080"),us.setAttribute("uxp-initial-height","690"),us.addEventListener("close",hs),document.body.appendChild(us),ps=o.render(i.createElement(cs,{root:us,onClose:e=>{us.close(e)},userInfo:e&&Object(s.q)(e)}),us)}async function fs(e){us?ps&&ps.onShow():ds(e)}async function ms(e){He.track(We.InteractiveTime);let t=!1;us?(await ps.beforeShow(),t=!0):ds(),ps.onShow(t),us.showModal(),He.measure(We.InteractiveTime)}n.d(t,"loadDialog",(function(){return fs})),n.d(t,"showNewDocumentDialogImpl",(function(){return ms})),He.markStart=performance.now()},"9/5/":function(e,t,n){(function(t){var n="Expected a function",i=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,h=u||p||Function("return this")(),d=Object.prototype.toString,f=Math.max,m=Math.min,g=function(){return h.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==r}(e))return i;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?i:+e}e.exports=function(e,t,i){var r,o,a,s,l,c,u=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError(n);function y(t){var n=r,i=o;return r=o=void 0,u=t,s=e.apply(i,n)}function w(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=a}function _(){var e=g();if(w(e))return x(e);l=setTimeout(_,function(e){var n=t-(e-c);return h?m(n,a-(e-u)):n}(e))}function x(e){return l=void 0,d&&r?y(e):(r=o=void 0,s)}function S(){var e=g(),n=w(e);if(r=arguments,o=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(_,t),p?y(e):s}(c);if(h)return l=setTimeout(_,t),y(c)}return void 0===l&&(l=setTimeout(_,t)),s}return t=b(t)||0,v(i)&&(p=!!i.leading,a=(h="maxWait"in i)?f(b(i.maxWait)||0,t):a,d="trailing"in i?!!i.trailing:d),S.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=c=o=l=void 0},S.flush=function(){return void 0===l?s:x(g())},S}}).call(this,n("yLpj"))},Aay3:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("circle",{cx:"24",cy:"14",r:"4"}),i.createElement("path",{d:"M40 2H8a2 2 0 0 0-2 2v40a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm-2 40h-8v-8a2 2 0 0 0 2-2v-8a4 4 0 0 0-4-4h-8a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2v8h-8V6h28z"}))},BmPN:function(e,t,n){e.exports=function(){"use strict";var e="INUMBER",t="IOP1",n="IOP2",i="IOP3",r="IVAR",o="IFUNCALL",a="IEXPR",s="IMEMBER";function l(e,t){this.type=e,this.value=null!=t?t:0}function c(e){return new l(t,e)}function u(e){return new l(n,e)}function p(e){return new l(i,e)}function h(l,c){for(var u,p,d,f,m=[],g=0;g<l.length;g++){var v=l[g],b=v.type;if(b===e)"number"==typeof v.value&&v.value<0?m.push("("+v.value+")"):m.push("string"==typeof(_=v.value)?JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):_);else if(b===n)p=m.pop(),u=m.pop(),f=v.value,c?"^"===f?m.push("Math.pow("+u+", "+p+")"):"and"===f?m.push("(!!"+u+" && !!"+p+")"):"or"===f?m.push("(!!"+u+" || !!"+p+")"):"||"===f?m.push("(String("+u+") + String("+p+"))"):"=="===f?m.push("("+u+" === "+p+")"):"!="===f?m.push("("+u+" !== "+p+")"):m.push("("+u+" "+f+" "+p+")"):m.push("("+u+" "+f+" "+p+")");else if(b===i){if(d=m.pop(),p=m.pop(),u=m.pop(),"?"!==(f=v.value))throw new Error("invalid Expression");m.push("("+u+" ? "+p+" : "+d+")")}else if(b===r)m.push(v.value);else if(b===t)u=m.pop(),"-"===(f=v.value)||"+"===f?m.push("("+f+u+")"):c?"not"===f?m.push("(!"+u+")"):"!"===f?m.push("fac("+u+")"):m.push(f+"("+u+")"):"!"===f?m.push("("+u+"!)"):m.push("("+f+" "+u+")");else if(b===o){for(var y=v.value,w=[];y-- >0;)w.unshift(m.pop());f=m.pop(),m.push(f+"("+w.join(", ")+")")}else if(b===s)u=m.pop(),m.push(u+"."+v.value);else{if(b!==a)throw new Error("invalid Expression");m.push("("+h(v.value,c)+")")}}var _;if(m.length>1)throw new Error("invalid Expression (parity)");return String(m[0])}function d(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function f(e,t,n){for(var i=!!(n=n||{}).withMembers,o=null,l=0;l<e.length;l++){var c=e[l];c.type===r?i||d(t,c.value)?null!==o?(d(t,o)||t.push(o),o=c.value):o=c.value:t.push(c.value):c.type===s&&i&&null!==o?o+="."+c.value:c.type===a?f(c.value,t,n):null!==o&&(d(t,o)||t.push(o),o=null)}null===o||d(t,o)||t.push(o)}function m(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}l.prototype.toString=function(){switch(this.type){case e:case t:case n:case i:case r:return this.value;case o:return"CALL "+this.value;case s:return"."+this.value;default:return"Invalid Instruction"}},m.prototype.simplify=function(o){return o=o||{},new m(function o(c,u,p,h,d){for(var f,m,g,v,b=[],y=[],w=0;w<c.length;w++){var _=c[w],x=_.type;if(x===e)b.push(_);else if(x===r&&d.hasOwnProperty(_.value))_=new l(e,d[_.value]),b.push(_);else if(x===n&&b.length>1)m=b.pop(),f=b.pop(),v=p[_.value],_=new l(e,v(f.value,m.value)),b.push(_);else if(x===i&&b.length>2)g=b.pop(),m=b.pop(),f=b.pop(),"?"===_.value?b.push(f.value?m.value:g.value):(v=h[_.value],_=new l(e,v(f.value,m.value,g.value)),b.push(_));else if(x===t&&b.length>0)f=b.pop(),v=u[_.value],_=new l(e,v(f.value)),b.push(_);else if(x===a){for(;b.length>0;)y.push(b.shift());y.push(new l(a,o(_.value,u,p,h,d)))}else if(x===s&&b.length>0)f=b.pop(),b.push(new l(e,f.value[_.value]));else{for(;b.length>0;)y.push(b.shift());y.push(_)}}for(;b.length>0;)y.push(b.shift());return y}(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,o),this.parser)},m.prototype.substitute=function(e,o){return o instanceof m||(o=this.parser.parse(String(o))),new m(function e(o,s,h){for(var d=[],f=0;f<o.length;f++){var m=o[f],g=m.type;if(g===r&&m.value===s)for(var v=0;v<h.tokens.length;v++){var b,y=h.tokens[v];b=y.type===t?c(y.value):y.type===n?u(y.value):y.type===i?p(y.value):new l(y.type,y.value),d.push(b)}else g===a?d.push(new l(a,e(m.value,s,h))):d.push(m)}return d}(this.tokens,e,o),this.parser)},m.prototype.evaluate=function(l){return l=l||{},function l(c,u,p){for(var h,d,f,m,g=[],v=0;v<c.length;v++){var b=c[v],y=b.type;if(y===e)g.push(b.value);else if(y===n)d=g.pop(),h=g.pop(),"and"===b.value?g.push(!!h&&!!l(d,u,p)):"or"===b.value?g.push(!!h||!!l(d,u,p)):(m=u.binaryOps[b.value],g.push(m(h,d)));else if(y===i)f=g.pop(),d=g.pop(),h=g.pop(),"?"===b.value?g.push(l(h?d:f,u,p)):(m=u.ternaryOps[b.value],g.push(m(h,d,f)));else if(y===r)if(b.value in u.functions)g.push(u.functions[b.value]);else{var w=p[b.value];if(void 0===w)throw new Error("undefined variable: "+b.value);g.push(w)}else if(y===t)h=g.pop(),m=u.unaryOps[b.value],g.push(m(h));else if(y===o){for(var _=b.value,x=[];_-- >0;)x.unshift(g.pop());if(!(m=g.pop()).apply||!m.call)throw new Error(m+" is not a function");g.push(m.apply(void 0,x))}else if(y===a)g.push(b.value);else{if(y!==s)throw new Error("invalid Expression");h=g.pop(),g.push(h[b.value])}}if(g.length>1)throw new Error("invalid Expression (parity)");return-0===g[0]?0:g[0]}(this.tokens,this,l)},m.prototype.toString=function(){return h(this.tokens,!1)},m.prototype.symbols=function(e){e=e||{};var t=[];return f(this.tokens,t,e),t},m.prototype.variables=function(e){e=e||{};var t=[];f(this.tokens,t,e);var n=this.functions;return t.filter((function(e){return!(e in n)}))},m.prototype.toJSFunction=function(e,t){var n=this,i=new Function(e,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+h(this.simplify(t).tokens,!0)+"; }");return function(){return i.apply(n,arguments)}};var g="TOP";function v(e,t,n){this.type=e,this.value=t,this.index=n}function b(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options}v.prototype.toString=function(){return this.type+": "+this.value},b.prototype.newToken=function(e,t,n){return new v(e,t,null!=n?n:this.pos)},b.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},b.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},b.prototype.next=function(){return this.pos>=this.expression.length?this.newToken("TEOF","EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isComma()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},b.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if("'"===n||'"'===n)for(var i=this.expression.indexOf(n,t+1);i>=0&&this.pos<this.expression.length;){if(this.pos=i+1,"\\"!==this.expression.charAt(i-1)){var r=this.expression.substring(t+1,i);this.current=this.newToken("TSTRING",this.unescape(r),t),e=!0;break}i=this.expression.indexOf(n,i+1)}return e},b.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return("("===e||")"===e)&&(this.current=this.newToken("TPAREN",e),this.pos++,!0)},b.prototype.isComma=function(){return","===this.expression.charAt(this.pos)&&(this.current=this.newToken("TCOMMA",","),this.pos++,!0)},b.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||"_"!==n&&"."!==n&&(n<"0"||n>"9")))break}if(t>e){var i=this.expression.substring(e,t);if(i in this.consts)return this.current=this.newToken("TNUMBER",this.consts[i]),this.pos+=i.length,!0}return!1},b.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||"_"!==n&&(n<"0"||n>"9")))break}if(t>e){var i=this.expression.substring(e,t);if(this.isOperatorEnabled(i)&&(i in this.binaryOps||i in this.unaryOps||i in this.ternaryOps))return this.current=this.newToken(g,i),this.pos+=i.length,!0}return!1},b.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t<this.expression.length;t++){var i=this.expression.charAt(t);if(i.toUpperCase()===i.toLowerCase()){if(t===this.pos&&("$"===i||"_"===i)){"_"===i&&(n=!0);continue}if(t===this.pos||!n||"_"!==i&&(i<"0"||i>"9"))break}else n=!0}if(n){var r=this.expression.substring(e,t);return this.current=this.newToken("TNAME",r),this.pos+=r.length,!0}return!1},b.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);!(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t||(e=!0,this.pos++,this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var y=/^[0-9a-f]{4}$/i;b.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var n=e.substring(0,t);t>=0;){var i=e.charAt(++t);switch(i){case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;case"u":var r=e.substring(t+1,t+5);y.test(r)||this.parseError("Illegal escape sequence: \\u"+r),n+=String.fromCharCode(parseInt(r,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+i+'"')}++t;var o=e.indexOf("\\",t);n+=e.substring(t,o<0?e.length:o),t=o}return n},b.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},b.prototype.isRadixInteger=function(){var e,t,n=this.pos;if(n>=this.expression.length-2||"0"!==this.expression.charAt(n))return!1;if(++n,"x"===this.expression.charAt(n))e=16,t=/^[0-9a-f]$/i,++n;else{if("b"!==this.expression.charAt(n))return!1;e=2,t=/^[01]$/i,++n}for(var i=!1,r=n;n<this.expression.length;){var o=this.expression.charAt(n);if(!t.test(o))break;n++,i=!0}return i&&(this.current=this.newToken("TNUMBER",parseInt(this.expression.substring(r,n),e)),this.pos=n),i},b.prototype.isNumber=function(){for(var e,t=!1,n=this.pos,i=n,r=n,o=!1,a=!1;n<this.expression.length&&((e=this.expression.charAt(n))>="0"&&e<="9"||!o&&"."===e);)"."===e?o=!0:a=!0,n++,t=a;if(t&&(r=n),"e"===e||"E"===e){n++;for(var s=!0,l=!1;n<this.expression.length;){if(e=this.expression.charAt(n),!s||"+"!==e&&"-"!==e){if(!(e>="0"&&e<="9"))break;l=!0,s=!1}else s=!1;n++}l||(n=r)}return t?(this.current=this.newToken("TNUMBER",parseFloat(this.expression.substring(i,n))),this.pos=n):this.pos=r,t},b.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if("+"===t||"-"===t||"*"===t||"/"===t||"%"===t||"^"===t||"?"===t||":"===t||"."===t)this.current=this.newToken(g,t);else if("∙"===t||"•"===t)this.current=this.newToken(g,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(g,">="),this.pos++):this.current=this.newToken(g,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(g,"<="),this.pos++):this.current=this.newToken(g,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(g,"||"),this.pos++}else if("="===t){if("="!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(g,"=="),this.pos++}else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(g,"!="),this.pos++):this.current=this.newToken(g,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)};var w={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional"};function _(e,t,n){this.parser=e,this.tokens=t,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=!1!==n.allowMemberAccess}b.prototype.isOperatorEnabled=function(e){var t=function(e){return w.hasOwnProperty(e)?w[e]:e}(e),n=this.options.operators||{};return"in"===t?!!n.in:!(t in n&&!n[t])},b.prototype.getCoordinates=function(){var e,t=0,n=-1;do{t++,e=this.pos-n,n=this.expression.indexOf("\n",n+1)}while(n>=0&&n<this.pos);return{line:t,column:e}},b.prototype.parseError=function(e){var t=this.getCoordinates();throw new Error("parse error ["+t.line+":"+t.column+"]: "+e)},_.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},_.prototype.tokenMatches=function(e,t){return void 0===t||(Array.isArray(t)?d(t,e.value):"function"==typeof t?t(e):e.value===t)},_.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},_.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},_.prototype.accept=function(e,t){return!(this.nextToken.type!==e||!this.tokenMatches(this.nextToken,t)||(this.next(),0))},_.prototype.expect=function(e,t){if(!this.accept(e,t)){var n=this.tokens.getCoordinates();throw new Error("parse error ["+n.line+":"+n.column+"]: Expected "+(t||e))}},_.prototype.parseAtom=function(t){if(this.accept("TNAME"))t.push(new l(r,this.current.value));else if(this.accept("TNUMBER"))t.push(new l(e,this.current.value));else if(this.accept("TSTRING"))t.push(new l(e,this.current.value));else{if(!this.accept("TPAREN","("))throw new Error("unexpected "+this.nextToken);this.parseExpression(t),this.expect("TPAREN",")")}},_.prototype.parseExpression=function(e){this.parseConditionalExpression(e)},_.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(g,"?");){var t=[],n=[];this.parseConditionalExpression(t),this.expect(g,":"),this.parseConditionalExpression(n),e.push(new l(a,t)),e.push(new l(a,n)),e.push(p("?"))}},_.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(g,"or");){var t=[];this.parseAndExpression(t),e.push(new l(a,t)),e.push(u("or"))}},_.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(g,"and");){var t=[];this.parseComparison(t),e.push(new l(a,t)),e.push(u("and"))}};var x=["==","!=","<","<=",">=",">","in"];_.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(g,x);){var t=this.current;this.parseAddSub(e),e.push(u(t.value))}};var S=["+","-","||"];_.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(g,S);){var t=this.current;this.parseTerm(e),e.push(u(t.value))}};var E=["*","/","%"];function C(e,t){return Number(e)+Number(t)}function T(e,t){return e-t}function k(e,t){return e*t}function P(e,t){return e/t}function D(e,t){return e%t}function A(e,t){return""+e+t}function I(e,t){return e===t}function R(e,t){return e!==t}function N(e,t){return e>t}function O(e,t){return e<t}function L(e,t){return e>=t}function M(e,t){return e<=t}function U(e,t){return Boolean(e&&t)}function z(e,t){return Boolean(e||t)}function B(e,t){return d(t,e)}function F(e){return(Math.exp(e)-Math.exp(-e))/2}function V(e){return(Math.exp(e)+Math.exp(-e))/2}function j(e){return e===1/0?1:e===-1/0?-1:(Math.exp(e)-Math.exp(-e))/(Math.exp(e)+Math.exp(-e))}function G(e){return e===-1/0?e:Math.log(e+Math.sqrt(e*e+1))}function W(e){return Math.log(e+Math.sqrt(e*e-1))}function H(e){return Math.log((1+e)/(1-e))/2}function $(e){return Math.log(e)*Math.LOG10E}function q(e){return-e}function K(e){return!e}function J(e){return e<0?Math.ceil(e):Math.floor(e)}function Z(e){return Math.random()*(e||1)}function X(e){return ee(e+1)}_.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(g,E);){var t=this.current;this.parseFactor(e),e.push(u(t.value))}},_.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;if(this.save(),this.accept(g,(function(e){return e.value in t})))if("-"!==this.current.value&&"+"!==this.current.value&&"TPAREN"===this.nextToken.type&&"("===this.nextToken.value)this.restore(),this.parseExponential(e);else{var n=this.current;this.parseFactor(e),e.push(c(n.value))}else this.parseExponential(e)},_.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(g,"^");)this.parseFactor(e),e.push(u("^"))},_.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(g,"!");)e.push(c("!"))},_.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;if(this.accept(g,(function(e){return e.value in t}))){var n=this.current;this.parseAtom(e),e.push(c(n.value))}else for(this.parseMemberExpression(e);this.accept("TPAREN","(");)if(this.accept("TPAREN",")"))e.push(new l(o,0));else{var i=this.parseArgumentList(e);e.push(new l(o,i))}},_.prototype.parseArgumentList=function(e){for(var t=0;!this.accept("TPAREN",")");)for(this.parseExpression(e),++t;this.accept("TCOMMA");)this.parseExpression(e),++t;return t},_.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(g,".");){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect("TNAME"),e.push(new l(s,this.current.value))}};var Y=4.7421875,Q=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function ee(e){var t,n;if(function(e){return isFinite(e)&&e===Math.round(e)}(e)){if(e<=0)return isFinite(e)?1/0:NaN;if(e>171)return 1/0;for(var i=e-2,r=e-1;i>1;)r*=i,i--;return 0===r&&(r=1),r}if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*ee(1-e));if(e>=171.35)return 1/0;if(e>85){var o=e*e,a=o*e,s=a*e,l=s*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*o)-139/(51840*a)-571/(2488320*s)+163879/(209018880*l)+5246819/(75246796800*l*e))}--e,n=Q[0];for(var c=1;c<Q.length;++c)n+=Q[c]/(e+c);return t=e+Y+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*n}function te(e){return String(e).length}function ne(){for(var e=0,t=0,n=0;n<arguments.length;n++){var i,r=Math.abs(arguments[n]);t<r?(e=e*(i=t/r)*i+1,t=r):e+=r>0?(i=r/t)*i:r}return t===1/0?1/0:t*Math.sqrt(e)}function ie(e,t,n){return e?t:n}function re(e,t){return void 0===t||0==+t?Math.round(e):(e=+e,t=-+t,isNaN(e)||"number"!=typeof t||t%1!=0?NaN:(e=e.toString().split("e"),+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]-t:-t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]+t:t))))}function oe(e){this.options=e||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||F,cosh:Math.cosh||V,tanh:Math.tanh||j,asinh:Math.asinh||G,acosh:Math.acosh||W,atanh:Math.atanh||H,sqrt:Math.sqrt,log:Math.log,ln:Math.log,lg:Math.log10||$,log10:Math.log10||$,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||J,"-":q,"+":Number,exp:Math.exp,not:K,length:te,"!":X},this.binaryOps={"+":C,"-":T,"*":k,"/":P,"%":D,"^":Math.pow,"||":A,"==":I,"!=":R,">":N,"<":O,">=":L,"<=":M,and:U,or:z,in:B},this.ternaryOps={"?":ie},this.functions={random:Z,fac:X,min:Math.min,max:Math.max,hypot:Math.hypot||ne,pyt:Math.hypot||ne,pow:Math.pow,atan2:Math.atan2,if:ie,gamma:ee,roundTo:re},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}oe.prototype.parse=function(e){var t=[],n=new _(this,new b(this,e),{allowMemberAccess:this.options.allowMemberAccess});return n.parseExpression(t),n.expect("TEOF","EOF"),new m(t,this)},oe.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var ae=new oe;return oe.parse=function(e){return ae.parse(e)},oe.evaluate=function(e,t){return ae.parse(e).evaluate(t)},{Parser:oe,Expression:m}}()},Ce8m:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M43 12h-6a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h3v22H6V16h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v28a1 1 0 0 0 1 1h40a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1z"}),i.createElement("path",{d:"M32.586 16H26V3a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v13h-6.586a1 1 0 0 0-.707 1.707L23 28l10.293-10.293A1 1 0 0 0 32.586 16z"}))},DlQD:function(e,t,n){(function(t){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:g,table:g,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function i(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||x.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=h(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=h(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=h(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=/<!--(?!-?>)[\s\S]*?-->/,n.html=h(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=h(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=h(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=v({},n),n.gfm=v({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=v({},n.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:g,paragraph:h(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),i.rules=n,i.lex=function(e,t){return new i(t).lex(e)},i.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},i.prototype.token=function(e,t){var i,r,o,a,s,l,c,p,h,d,f,m,g,v,w,_;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e)){var x=this.tokens[this.tokens.length-1];e=e.substring(o[0].length),x&&"paragraph"===x.type?x.text+="\n"+o[0].trimRight():(o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?o:y(o,"\n")}))}else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if((o=this.rules.nptable.exec(e))&&(l={type:"table",header:b(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(o[0].length),f=0;f<l.align.length;f++)/^ *-+: *$/.test(l.align[f])?l.align[f]="right":/^ *:-+: *$/.test(l.align[f])?l.align[f]="center":/^ *:-+ *$/.test(l.align[f])?l.align[f]="left":l.align[f]=null;for(f=0;f<l.cells.length;f++)l.cells[f]=b(l.cells[f],l.header.length);this.tokens.push(l)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),c={type:"list_start",ordered:v=(a=o[2]).length>1,start:v?+a:"",loose:!1},this.tokens.push(c),p=[],i=!1,g=(o=o[0].match(this.rules.item)).length,f=0;f<g;f++)d=(l=o[f]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(d-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+d+"}","gm"),"")),f!==g-1&&(s=n.bullet.exec(o[f+1])[0],(a.length>1?1===s.length:s.length>1||this.options.smartLists&&s!==a)&&(e=o.slice(f+1).join("\n")+e,f=g-1)),r=i||/\n\n(?!\s*$)/.test(l),f!==g-1&&(i="\n"===l.charAt(l.length-1),r||(r=i)),r&&(c.loose=!0),_=void 0,(w=/^\[[ xX]\] /.test(l))&&(_=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),h={type:"list_item_start",task:w,checked:_,loose:r},p.push(h),this.tokens.push(h),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(g=p.length,f=0;f<g;f++)p[f].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),m=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[m]||(this.tokens.links[m]={href:o[2],title:o[3]});else if((o=this.rules.table.exec(e))&&(l={type:"table",header:b(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(o[0].length),f=0;f<l.align.length;f++)/^ *-+: *$/.test(l.align[f])?l.align[f]="right":/^ *:-+: *$/.test(l.align[f])?l.align[f]="center":/^ *:-+ *$/.test(l.align[f])?l.align[f]="left":l.align[f]=null;for(f=0;f<l.cells.length;f++)l.cells[f]=b(l.cells[f].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2].charAt(0)?1:2,text:o[1]});else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var r={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function o(e,t){if(this.options=t||x.defaults,this.links=e,this.rules=r.normal,this.renderer=this.options.renderer||new a,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=r.pedantic:this.options.gfm&&(this.options.breaks?this.rules=r.breaks:this.rules=r.gfm)}function a(e){this.options=e||x.defaults}function s(){}function l(e){this.tokens=[],this.token=null,this.options=e||x.defaults,this.options.renderer=this.options.renderer||new a,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new c}function c(){this.seen={}}function u(e,t){if(t){if(u.escapeTest.test(e))return e.replace(u.escapeReplace,(function(e){return u.replacements[e]}))}else if(u.escapeTestNoEncode.test(e))return e.replace(u.escapeReplaceNoEncode,(function(e){return u.replacements[e]}));return e}function p(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function h(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function d(e,t,n){if(e){try{var i=decodeURIComponent(p(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=y(e,"/",!0));return e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}r._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",r.em=h(r.em).replace(/punctuation/g,r._punctuation).getRegex(),r._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,r._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,r._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,r.autolink=h(r.autolink).replace("scheme",r._scheme).replace("email",r._email).getRegex(),r._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,r.tag=h(r.tag).replace("comment",n._comment).replace("attribute",r._attribute).getRegex(),r._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,r._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,r._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,r.link=h(r.link).replace("label",r._label).replace("href",r._href).replace("title",r._title).getRegex(),r.reflink=h(r.reflink).replace("label",r._label).getRegex(),r.normal=v({},r),r.pedantic=v({},r.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",r._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",r._label).getRegex()}),r.gfm=v({},r.normal,{escape:h(r.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),r.gfm.url=h(r.gfm.url,"i").replace("email",r.gfm._extended_email).getRegex(),r.breaks=v({},r.gfm,{br:h(r.br).replace("{2,}","*").getRegex(),text:h(r.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),o.rules=r,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,i,r,a,s,l="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),l+=u(a[1]);else if(a=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(a[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=w(a[2],"()");if(c>-1){var p=4+a[1].length+c;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,p).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,i=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i))?(i=t[1],r=t[3]):r="":r=a[3]?a[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(a,{href:o.escapes(i),title:o.escapes(r)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),l+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),l+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),l+=this.renderer.codespan(u(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),l+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),l+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),i="@"===a[2]?"mailto:"+(n=u(this.mangle(a[1]))):n=u(a[1]),l+=this.renderer.link(i,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0]):l+=this.renderer.text(u(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])i="mailto:"+(n=u(a[0]));else{do{s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(s!==a[0]);n=u(a[0]),i="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),l+=this.renderer.link(i,null,n)}return l},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var n=t.href,i=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,u(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,r=0;r<i;r++)t=e.charCodeAt(r),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return i?'<pre><code class="'+this.options.langPrefix+u(i,!0)+'">'+(n?e:u(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:u(e,!0))+"</code></pre>"},a.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},a.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},a.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},a.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},a.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},a.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},a.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},a.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},a.prototype.strong=function(e){return"<strong>"+e+"</strong>"},a.prototype.em=function(e){return"<em>"+e+"</em>"},a.prototype.codespan=function(e){return"<code>"+e+"</code>"},a.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},a.prototype.del=function(e){return"<del>"+e+"</del>"},a.prototype.link=function(e,t,n){if(null===(e=d(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<a href="'+u(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},a.prototype.image=function(e,t,n){if(null===(e=d(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,v({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop(),this.token},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,p(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,r="",o="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(r+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});o+=this.renderer.tablerow(n)}return this.renderer.table(r,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var a=this.token.ordered,s=this.token.start;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,a,s);case"list_item_start":o="";var l=this.token.loose,c=this.token.checked,u=this.token.task;for(this.token.task&&(o+=this.renderer.checkbox(c));"list_item_end"!==this.next().type;)o+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(o,u,c);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var h='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(h);console.log(h)}},c.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(){}function v(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function b(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var i=!1,r=t;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function y(e,t,n){if(0===e.length)return"";for(var i=0;i<e.length;){var r=e.charAt(e.length-i-1);if(r!==t||n){if(r===t||!n)break;i++}else i++}return e.substr(0,e.length-i)}function w(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}function _(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function x(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),_(t=v({},x.defaults,t||{}));var r,o,a=t.highlight,s=0;try{r=i.lex(e,t)}catch(e){return n(e)}o=r.length;var c=function(e){if(e)return t.highlight=a,n(e);var i;try{i=l.parse(r,t)}catch(t){e=t}return t.highlight=a,e?n(e):n(null,i)};if(!a||a.length<3)return c();if(delete t.highlight,!o)return c();for(;s<r.length;s++)!function(e){"code"!==e.type?--o||c():a(e.text,e.lang,(function(t,n){return t?c(t):null==n||n===e.text?--o||c():(e.text=n,e.escaped=!0,void(--o||c()))}))}(r[s])}else try{return t&&(t=v({},x.defaults,t)),_(t),l.parse(i.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||x.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}g.exec=g,x.options=x.setOptions=function(e){return v(x.defaults,e),x},x.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},x.defaults=x.getDefaults(),x.Parser=l,x.parser=l.parse,x.Renderer=a,x.TextRenderer=s,x.Lexer=i,x.lexer=i.lex,x.InlineLexer=o,x.inlineLexer=o.output,x.Slugger=c,x.parse=x,e.exports=x}(this||"undefined"!=typeof window&&window)}).call(this,n("yLpj"))},FN6C:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r,o,a=n("iN46"),s=d(n("gKdT")),l=d(n("TSYQ")),c=d(n("b7KY")),u=d(n("17x9")),p=d(n("q1tI")),h=n("OQA9");function d(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function m(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n("IEX1");let g=(0,s.default)((o=r=class extends p.default.Component{constructor(e){super(e),this.tabViewId=(0,c.default)(),this.state={selectedIndex:e.selectedIndex||0}}componentWillReceiveProps(e){let t=p.default.Children.toArray(this.props.children).map(e=>e.key),n=p.default.Children.toArray(e.children).map(e=>e.key);e.selectedIndex===this.props.selectedIndex&&(0,a.arraysEqual)(t,n)||this.setState({selectedIndex:e.selectedIndex||0})}onChange(e){null==this.props.selectedIndex&&this.setState({selectedIndex:e}),this.props.onSelect&&this.props.onSelect(e)}render(){let e=this.props,{className:t,id:n=this.tabViewId,orientation:i="horizontal"}=e,r=m(e,["className","id","orientation"]);const o=n+"-tab",a=n+"-tabpanel";let s=p.default.Children.map(this.props.children,(e,t)=>"object"==typeof e&&e?p.default.cloneElement(e,{"aria-controls":a,id:o+"-"+t,renderChildren:!1}):e),c=s[this.state.selectedIndex],u=p.default.Children.map(c.props.children,e=>"object"==typeof e&&e?p.default.cloneElement(e):e);return p.default.createElement("div",{className:(0,l.default)("react-spectrum-TabView","react-spectrum-TabView--"+i,t)},p.default.createElement(h.TabList,f({},r,{orientation:i,selectedIndex:this.state.selectedIndex,onChange:this.onChange}),s),p.default.createElement("div",{className:"react-spectrum-TabView-body",role:"tabpanel",id:a,"aria-labelledby":c.props.id},u))}},r.propTypes={className:u.default.string,id:u.default.string,onSelect:u.default.func,orientation:u.default.oneOf(["vertical","horizontal"]),selectedIndex:u.default.number},r.defaultProps={id:(0,c.default)(),orientation:"horizontal"},i=o))||i;t.default=g},FocD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("r97P"),24:n("2+WB")}}))};s.displayName="Landscape",t.default=s},GGSb:function(e,t,n){var i,r;
/*!
 * js-logger - http://github.com/jonnyreeves/js-logger
 * Jonny Reeves, http://jonnyreeves.co.uk/
 * js-logger may be freely distributed under the MIT license.
 */!function(o){"use strict";var a,s={};s.VERSION="1.6.0";var l={},c=function(e,t){return function(){return t.apply(e,arguments)}},u=function(){var e,t,n=arguments,i=n[0];for(t=1;t<n.length;t++)for(e in n[t])e in i||!n[t].hasOwnProperty(e)||(i[e]=n[t][e]);return i},p=function(e,t){return{value:e,name:t}};s.TRACE=p(1,"TRACE"),s.DEBUG=p(2,"DEBUG"),s.INFO=p(3,"INFO"),s.TIME=p(4,"TIME"),s.WARN=p(5,"WARN"),s.ERROR=p(8,"ERROR"),s.OFF=p(99,"OFF");var h=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};h.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},getLevel:function(){return this.context.filterLevel},enabledFor:function(e){var t=this.context.filterLevel;return e.value>=t.value},trace:function(){this.invoke(s.TRACE,arguments)},debug:function(){this.invoke(s.DEBUG,arguments)},info:function(){this.invoke(s.INFO,arguments)},warn:function(){this.invoke(s.WARN,arguments)},error:function(){this.invoke(s.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(s.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(s.TIME,[e,"end"])},invoke:function(e,t){a&&this.enabledFor(e)&&a(t,u({level:e},this.context))}};var d,f=new h({filterLevel:s.OFF});(d=s).enabledFor=c(f,f.enabledFor),d.trace=c(f,f.trace),d.debug=c(f,f.debug),d.time=c(f,f.time),d.timeEnd=c(f,f.timeEnd),d.info=c(f,f.info),d.warn=c(f,f.warn),d.error=c(f,f.error),d.log=d.info,s.setHandler=function(e){a=e},s.setLevel=function(e){for(var t in f.setLevel(e),l)l.hasOwnProperty(t)&&l[t].setLevel(e)},s.getLevel=function(){return f.getLevel()},s.get=function(e){return l[e]||(l[e]=new h(u({name:e},f.context)))},s.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,t){t.name&&e.unshift("["+t.name+"]")};var t={},n=function(e,t){Function.prototype.apply.call(e,console,t)};return"undefined"==typeof console?function(){}:function(i,r){i=Array.prototype.slice.call(i);var o,a=console.log;r.level===s.TIME?(o=(r.name?"["+r.name+"] ":"")+i[0],"start"===i[1]?console.time?console.time(o):t[o]=(new Date).getTime():console.timeEnd?console.timeEnd(o):n(a,[o+": "+((new Date).getTime()-t[o])+"ms"])):(r.level===s.WARN&&console.warn?a=console.warn:r.level===s.ERROR&&console.error?a=console.error:r.level===s.INFO&&console.info?a=console.info:r.level===s.DEBUG&&console.debug?a=console.debug:r.level===s.TRACE&&console.trace&&(a=console.trace),e.formatter(i,r),n(a,i))}},s.useDefaults=function(e){s.setLevel(e&&e.defaultLevel||s.DEBUG),s.setHandler(s.createDefaultHandler(e))},void 0===(r="function"==typeof(i=s)?i.call(t,n,t,e):i)||(e.exports=r)}()},IEX1:function(e,t,n){},LvDl:function(e,t,n){(function(e,i){var r;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="__lodash_hash_undefined__",u=500,p="__lodash_placeholder__",h=1,d=2,f=4,m=1,g=2,v=1,b=2,y=4,w=8,_=16,x=32,S=64,E=128,C=256,T=512,k=30,P="...",D=800,A=16,I=1,R=2,N=1/0,O=9007199254740991,L=17976931348623157e292,M=NaN,U=4294967295,z=U-1,B=U>>>1,F=[["ary",E],["bind",v],["bindKey",b],["curry",w],["curryRight",_],["flip",T],["partial",x],["partialRight",S],["rearg",C]],V="[object Arguments]",j="[object Array]",G="[object AsyncFunction]",W="[object Boolean]",H="[object Date]",$="[object DOMException]",q="[object Error]",K="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",X="[object Number]",Y="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",ie="[object String]",re="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",le="[object ArrayBuffer]",ce="[object DataView]",ue="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",de="[object Int16Array]",fe="[object Int32Array]",me="[object Uint8Array]",ge="[object Uint8ClampedArray]",ve="[object Uint16Array]",be="[object Uint32Array]",ye=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Ee=RegExp(xe.source),Ce=RegExp(Se.source),Te=/<%-([\s\S]+?)%>/g,ke=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,De=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(Re.source),Oe=/^\s+|\s+$/g,Le=/^\s+/,Me=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,qe=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",nt="["+Ye+"]",it="\\d+",rt="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+it+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",lt="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",pt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+ot+"|"+at+")",dt="(?:"+pt+"|"+at+")",ft="(?:"+nt+"|"+st+")"+"?",mt="[\\ufe0e\\ufe0f]?"+ft+("(?:\\u200d(?:"+[lt,ct,ut].join("|")+")[\\ufe0e\\ufe0f]?"+ft+")*"),gt="(?:"+[rt,ct,ut].join("|")+")"+mt,vt="(?:"+[lt+nt+"?",nt,ct,ut,et].join("|")+")",bt=RegExp("['’]","g"),yt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+vt+mt,"g"),_t=RegExp([pt+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,pt,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,pt+ht,"$"].join("|")+")",pt+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",it,gt].join("|"),"g"),xt=RegExp("[\\u200d\\ud800-\\udfff"+Ye+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ct=-1,Tt={};Tt[ue]=Tt[pe]=Tt[he]=Tt[de]=Tt[fe]=Tt[me]=Tt[ge]=Tt[ve]=Tt[be]=!0,Tt[V]=Tt[j]=Tt[le]=Tt[W]=Tt[ce]=Tt[H]=Tt[q]=Tt[K]=Tt[Z]=Tt[X]=Tt[Q]=Tt[te]=Tt[ne]=Tt[ie]=Tt[ae]=!1;var kt={};kt[V]=kt[j]=kt[le]=kt[ce]=kt[W]=kt[H]=kt[ue]=kt[pe]=kt[he]=kt[de]=kt[fe]=kt[Z]=kt[X]=kt[Q]=kt[te]=kt[ne]=kt[ie]=kt[re]=kt[me]=kt[ge]=kt[ve]=kt[be]=!0,kt[q]=kt[K]=kt[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dt=parseFloat,At=parseInt,It="object"==typeof e&&e&&e.Object===Object&&e,Rt="object"==typeof self&&self&&self.Object===Object&&self,Nt=It||Rt||Function("return this")(),Ot=t&&!t.nodeType&&t,Lt=Ot&&"object"==typeof i&&i&&!i.nodeType&&i,Mt=Lt&&Lt.exports===Ot,Ut=Mt&&It.process,zt=function(){try{var e=Lt&&Lt.require&&Lt.require("util").types;return e||Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),Bt=zt&&zt.isArrayBuffer,Ft=zt&&zt.isDate,Vt=zt&&zt.isMap,jt=zt&&zt.isRegExp,Gt=zt&&zt.isSet,Wt=zt&&zt.isTypedArray;function Ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $t(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}function qt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Kt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Jt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Zt(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function Xt(e,t){return!!(null==e?0:e.length)&&ln(e,t,0)>-1}function Yt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Qt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function en(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function tn(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function nn(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function rn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var on=hn("length");function an(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function sn(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function ln(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):sn(e,un,n)}function cn(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function un(e){return e!=e}function pn(e,t){var n=null==e?0:e.length;return n?mn(e,t)/n:M}function hn(e){return function(t){return null==t?o:t[e]}}function dn(e){return function(t){return null==e?o:e[t]}}function fn(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function mn(e,t){for(var n,i=-1,r=e.length;++i<r;){var a=t(e[i]);a!==o&&(n=n===o?a:n+a)}return n}function gn(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function vn(e){return function(t){return e(t)}}function bn(e,t){return Qt(t,(function(t){return e[t]}))}function yn(e,t){return e.has(t)}function wn(e,t){for(var n=-1,i=e.length;++n<i&&ln(t,e[n],0)>-1;);return n}function _n(e,t){for(var n=e.length;n--&&ln(t,e[n],0)>-1;);return n}var xn=dn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Sn=dn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function En(e){return"\\"+Pt[e]}function Cn(e){return xt.test(e)}function Tn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function kn(e,t){return function(n){return e(t(n))}}function Pn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==p||(e[n]=p,o[r++]=n)}return o}function Dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function An(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function In(e){return Cn(e)?function(e){var t=wt.lastIndex=0;for(;wt.test(e);)++t;return t}(e):on(e)}function Rn(e){return Cn(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.split("")}(e)}var Nn=dn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var On=function e(t){var n,i=(t=null==t?Nt:On.defaults(Nt.Object(),t,On.pick(Nt,Et))).Array,r=t.Date,Ye=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,it=t.String,rt=t.TypeError,ot=i.prototype,at=Qe.prototype,st=tt.prototype,lt=t["__core-js_shared__"],ct=at.toString,ut=st.hasOwnProperty,pt=0,ht=(n=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",dt=st.toString,ft=ct.call(tt),mt=Nt._,gt=nt("^"+ct.call(ut).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=Mt?t.Buffer:o,wt=t.Symbol,xt=t.Uint8Array,Pt=vt?vt.allocUnsafe:o,It=kn(tt.getPrototypeOf,tt),Rt=tt.create,Ot=st.propertyIsEnumerable,Lt=ot.splice,Ut=wt?wt.isConcatSpreadable:o,zt=wt?wt.iterator:o,on=wt?wt.toStringTag:o,dn=function(){try{var e=Bo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ln=t.clearTimeout!==Nt.clearTimeout&&t.clearTimeout,Mn=r&&r.now!==Nt.Date.now&&r.now,Un=t.setTimeout!==Nt.setTimeout&&t.setTimeout,zn=et.ceil,Bn=et.floor,Fn=tt.getOwnPropertySymbols,Vn=vt?vt.isBuffer:o,jn=t.isFinite,Gn=ot.join,Wn=kn(tt.keys,tt),Hn=et.max,$n=et.min,qn=r.now,Kn=t.parseInt,Jn=et.random,Zn=ot.reverse,Xn=Bo(t,"DataView"),Yn=Bo(t,"Map"),Qn=Bo(t,"Promise"),ei=Bo(t,"Set"),ti=Bo(t,"WeakMap"),ni=Bo(tt,"create"),ii=ti&&new ti,ri={},oi=pa(Xn),ai=pa(Yn),si=pa(Qn),li=pa(ei),ci=pa(ti),ui=wt?wt.prototype:o,pi=ui?ui.valueOf:o,hi=ui?ui.toString:o;function di(e){if(Ps(e)&&!vs(e)&&!(e instanceof vi)){if(e instanceof gi)return e;if(ut.call(e,"__wrapped__"))return ha(e)}return new gi(e)}var fi=function(){function e(){}return function(t){if(!ks(t))return{};if(Rt)return Rt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function mi(){}function gi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function vi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function bi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function yi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function wi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function _i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wi;++t<n;)this.add(e[t])}function xi(e){var t=this.__data__=new yi(e);this.size=t.size}function Si(e,t){var n=vs(e),i=!n&&gs(e),r=!n&&!i&&_s(e),o=!n&&!i&&!r&&Ms(e),a=n||i||r||o,s=a?gn(e.length,it):[],l=s.length;for(var c in e)!t&&!ut.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||$o(c,l))||s.push(c);return s}function Ei(e){var t=e.length;return t?e[_r(0,t-1)]:o}function Ci(e,t){return la(no(e),Oi(t,0,e.length))}function Ti(e){return la(no(e))}function ki(e,t,n){(n===o||ds(e[t],n))&&(n!==o||t in e)||Ri(e,t,n)}function Pi(e,t,n){var i=e[t];ut.call(e,t)&&ds(i,n)&&(n!==o||t in e)||Ri(e,t,n)}function Di(e,t){for(var n=e.length;n--;)if(ds(e[n][0],t))return n;return-1}function Ai(e,t,n,i){return Bi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function Ii(e,t){return e&&io(t,rl(t),e)}function Ri(e,t,n){"__proto__"==t&&dn?dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ni(e,t){for(var n=-1,r=t.length,a=i(r),s=null==e;++n<r;)a[n]=s?o:Qs(e,t[n]);return a}function Oi(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function Li(e,t,n,i,r,a){var s,l=t&h,c=t&d,u=t&f;if(n&&(s=r?n(e,i,r,a):n(e)),s!==o)return s;if(!ks(e))return e;var p=vs(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ut.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return no(e,s)}else{var m=jo(e),g=m==K||m==J;if(_s(e))return Zr(e,l);if(m==Q||m==V||g&&!r){if(s=c||g?{}:Wo(e),!l)return c?function(e,t){return io(e,Vo(e),t)}(e,function(e,t){return e&&io(t,ol(t),e)}(s,e)):function(e,t){return io(e,Fo(e),t)}(e,Ii(s,e))}else{if(!kt[m])return r?e:{};s=function(e,t,n){var i=e.constructor;switch(t){case le:return Xr(e);case W:case H:return new i(+e);case ce:return function(e,t){var n=t?Xr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ue:case pe:case he:case de:case fe:case me:case ge:case ve:case be:return Yr(e,n);case Z:return new i;case X:case ie:return new i(e);case te:return function(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new i;case re:return r=e,pi?tt(pi.call(r)):{}}var r}(e,m,l)}}a||(a=new xi);var v=a.get(e);if(v)return v;a.set(e,s),Ns(e)?e.forEach((function(i){s.add(Li(i,t,n,i,e,a))})):Ds(e)&&e.forEach((function(i,r){s.set(r,Li(i,t,n,r,e,a))}));var b=p?o:(u?c?Ro:Io:c?ol:rl)(e);return qt(b||e,(function(i,r){b&&(i=e[r=i]),Pi(s,r,Li(i,t,n,r,e,a))})),s}function Mi(e,t,n){var i=n.length;if(null==e)return!i;for(e=tt(e);i--;){var r=n[i],a=t[r],s=e[r];if(s===o&&!(r in e)||!a(s))return!1}return!0}function Ui(e,t,n){if("function"!=typeof e)throw new rt(l);return ra((function(){e.apply(o,n)}),t)}function zi(e,t,n,i){var r=-1,o=Xt,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Qt(t,vn(n))),i?(o=Yt,s=!1):t.length>=a&&(o=yn,s=!1,t=new _i(t));e:for(;++r<l;){var p=e[r],h=null==n?p:n(p);if(p=i||0!==p?p:0,s&&h==h){for(var d=u;d--;)if(t[d]===h)continue e;c.push(p)}else o(t,h,i)||c.push(p)}return c}di.templateSettings={escape:Te,evaluate:ke,interpolate:Pe,variable:"",imports:{_:di}},di.prototype=mi.prototype,di.prototype.constructor=di,gi.prototype=fi(mi.prototype),gi.prototype.constructor=gi,vi.prototype=fi(mi.prototype),vi.prototype.constructor=vi,bi.prototype.clear=function(){this.__data__=ni?ni(null):{},this.size=0},bi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},bi.prototype.get=function(e){var t=this.__data__;if(ni){var n=t[e];return n===c?o:n}return ut.call(t,e)?t[e]:o},bi.prototype.has=function(e){var t=this.__data__;return ni?t[e]!==o:ut.call(t,e)},bi.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ni&&t===o?c:t,this},yi.prototype.clear=function(){this.__data__=[],this.size=0},yi.prototype.delete=function(e){var t=this.__data__,n=Di(t,e);return!(n<0)&&(n==t.length-1?t.pop():Lt.call(t,n,1),--this.size,!0)},yi.prototype.get=function(e){var t=this.__data__,n=Di(t,e);return n<0?o:t[n][1]},yi.prototype.has=function(e){return Di(this.__data__,e)>-1},yi.prototype.set=function(e,t){var n=this.__data__,i=Di(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},wi.prototype.clear=function(){this.size=0,this.__data__={hash:new bi,map:new(Yn||yi),string:new bi}},wi.prototype.delete=function(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return Uo(this,e).get(e)},wi.prototype.has=function(e){return Uo(this,e).has(e)},wi.prototype.set=function(e,t){var n=Uo(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,c),this},_i.prototype.has=function(e){return this.__data__.has(e)},xi.prototype.clear=function(){this.__data__=new yi,this.size=0},xi.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xi.prototype.get=function(e){return this.__data__.get(e)},xi.prototype.has=function(e){return this.__data__.has(e)},xi.prototype.set=function(e,t){var n=this.__data__;if(n instanceof yi){var i=n.__data__;if(!Yn||i.length<a-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new wi(i)}return n.set(e,t),this.size=n.size,this};var Bi=ao(qi),Fi=ao(Ki,!0);function Vi(e,t){var n=!0;return Bi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function ji(e,t,n){for(var i=-1,r=e.length;++i<r;){var a=e[i],s=t(a);if(null!=s&&(l===o?s==s&&!Ls(s):n(s,l)))var l=s,c=a}return c}function Gi(e,t){var n=[];return Bi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Wi(e,t,n,i,r){var o=-1,a=e.length;for(n||(n=Ho),r||(r=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Wi(s,t-1,n,i,r):en(r,s):i||(r[r.length]=s)}return r}var Hi=so(),$i=so(!0);function qi(e,t){return e&&Hi(e,t,rl)}function Ki(e,t){return e&&$i(e,t,rl)}function Ji(e,t){return Zt(t,(function(t){return Es(e[t])}))}function Zi(e,t){for(var n=0,i=(t=$r(t,e)).length;null!=e&&n<i;)e=e[ua(t[n++])];return n&&n==i?e:o}function Xi(e,t,n){var i=t(e);return vs(e)?i:en(i,n(e))}function Yi(e){return null==e?e===o?oe:Y:on&&on in tt(e)?function(e){var t=ut.call(e,on),n=e[on];try{e[on]=o;var i=!0}catch(e){}var r=dt.call(e);i&&(t?e[on]=n:delete e[on]);return r}(e):function(e){return dt.call(e)}(e)}function Qi(e,t){return e>t}function er(e,t){return null!=e&&ut.call(e,t)}function tr(e,t){return null!=e&&t in tt(e)}function nr(e,t,n){for(var r=n?Yt:Xt,a=e[0].length,s=e.length,l=s,c=i(s),u=1/0,p=[];l--;){var h=e[l];l&&t&&(h=Qt(h,vn(t))),u=$n(h.length,u),c[l]=!n&&(t||a>=120&&h.length>=120)?new _i(l&&h):o}h=e[0];var d=-1,f=c[0];e:for(;++d<a&&p.length<u;){var m=h[d],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?yn(f,g):r(p,g,n))){for(l=s;--l;){var v=c[l];if(!(v?yn(v,g):r(e[l],g,n)))continue e}f&&f.push(g),p.push(m)}}return p}function ir(e,t,n){var i=null==(e=ta(e,t=$r(t,e)))?e:e[ua(Sa(t))];return null==i?o:Ht(i,e,n)}function rr(e){return Ps(e)&&Yi(e)==V}function or(e,t,n,i,r){return e===t||(null==e||null==t||!Ps(e)&&!Ps(t)?e!=e&&t!=t:function(e,t,n,i,r,a){var s=vs(e),l=vs(t),c=s?j:jo(e),u=l?j:jo(t),p=(c=c==V?Q:c)==Q,h=(u=u==V?Q:u)==Q,d=c==u;if(d&&_s(e)){if(!_s(t))return!1;s=!0,p=!1}if(d&&!p)return a||(a=new xi),s||Ms(e)?Do(e,t,n,i,r,a):function(e,t,n,i,r,o,a){switch(n){case ce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case le:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case W:case H:case X:return ds(+e,+t);case q:return e.name==t.name&&e.message==t.message;case te:case ie:return e==t+"";case Z:var s=Tn;case ne:var l=i&m;if(s||(s=Dn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=g,a.set(e,t);var u=Do(s(e),s(t),i,r,o,a);return a.delete(e),u;case re:if(pi)return pi.call(e)==pi.call(t)}return!1}(e,t,c,n,i,r,a);if(!(n&m)){var f=p&&ut.call(e,"__wrapped__"),v=h&&ut.call(t,"__wrapped__");if(f||v){var b=f?e.value():e,y=v?t.value():t;return a||(a=new xi),r(b,y,n,i,a)}}if(!d)return!1;return a||(a=new xi),function(e,t,n,i,r,a){var s=n&m,l=Io(e),c=l.length,u=Io(t).length;if(c!=u&&!s)return!1;var p=c;for(;p--;){var h=l[p];if(!(s?h in t:ut.call(t,h)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);var g=s;for(;++p<c;){h=l[p];var v=e[h],b=t[h];if(i)var y=s?i(b,v,h,t,e,a):i(v,b,h,e,t,a);if(!(y===o?v===b||r(v,b,n,i,a):y)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,i,r,a)}(e,t,n,i,or,r))}function ar(e,t,n,i){var r=n.length,a=r,s=!i;if(null==e)return!a;for(e=tt(e);r--;){var l=n[r];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<a;){var c=(l=n[r])[0],u=e[c],p=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var h=new xi;if(i)var d=i(u,p,c,e,t,h);if(!(d===o?or(p,u,m|g,i,h):d))return!1}}return!0}function sr(e){return!(!ks(e)||(t=e,ht&&ht in t))&&(Es(e)?gt:$e).test(pa(e));var t}function lr(e){return"function"==typeof e?e:null==e?Al:"object"==typeof e?vs(e)?fr(e[0],e[1]):dr(e):Bl(e)}function cr(e){if(!Xo(e))return Wn(e);var t=[];for(var n in tt(e))ut.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ur(e){if(!ks(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Xo(e),n=[];for(var i in e)("constructor"!=i||!t&&ut.call(e,i))&&n.push(i);return n}function pr(e,t){return e<t}function hr(e,t){var n=-1,r=ys(e)?i(e.length):[];return Bi(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function dr(e){var t=zo(e);return 1==t.length&&t[0][2]?Qo(t[0][0],t[0][1]):function(n){return n===e||ar(n,e,t)}}function fr(e,t){return Ko(e)&&Yo(t)?Qo(ua(e),t):function(n){var i=Qs(n,e);return i===o&&i===t?el(n,e):or(t,i,m|g)}}function mr(e,t,n,i,r){e!==t&&Hi(t,(function(a,s){if(r||(r=new xi),ks(a))!function(e,t,n,i,r,a,s){var l=na(e,n),c=na(t,n),u=s.get(c);if(u)return void ki(e,n,u);var p=a?a(l,c,n+"",e,t,s):o,h=p===o;if(h){var d=vs(c),f=!d&&_s(c),m=!d&&!f&&Ms(c);p=c,d||f||m?vs(l)?p=l:ws(l)?p=no(l):f?(h=!1,p=Zr(c,!0)):m?(h=!1,p=Yr(c,!0)):p=[]:Is(c)||gs(c)?(p=l,gs(l)?p=Ws(l):ks(l)&&!Es(l)||(p=Wo(c))):h=!1}h&&(s.set(c,p),r(p,c,i,a,s),s.delete(c));ki(e,n,p)}(e,t,s,n,mr,i,r);else{var l=i?i(na(e,s),a,s+"",e,t,r):o;l===o&&(l=a),ki(e,s,l)}}),ol)}function gr(e,t){var n=e.length;if(n)return $o(t+=t<0?n:0,n)?e[t]:o}function vr(e,t,n){var i=-1;return t=Qt(t.length?t:[Al],vn(Mo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(hr(e,(function(e,n,r){return{criteria:Qt(t,(function(t){return t(e)})),index:++i,value:e}})),(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,a=r.length,s=n.length;for(;++i<a;){var l=Qr(r[i],o[i]);if(l){if(i>=s)return l;var c=n[i];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function br(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var a=t[i],s=Zi(e,a);n(s,a)&&Tr(o,$r(a,e),s)}return o}function yr(e,t,n,i){var r=i?cn:ln,o=-1,a=t.length,s=e;for(e===t&&(t=no(t)),n&&(s=Qt(e,vn(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(s,u,l,i))>-1;)s!==e&&Lt.call(s,l,1),Lt.call(e,l,1);return e}function wr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;$o(r)?Lt.call(e,r,1):zr(e,r)}}return e}function _r(e,t){return e+Bn(Jn()*(t-e+1))}function xr(e,t){var n="";if(!e||t<1||t>O)return n;do{t%2&&(n+=e),(t=Bn(t/2))&&(e+=e)}while(t);return n}function Sr(e,t){return oa(ea(e,t,Al),e+"")}function Er(e){return Ei(dl(e))}function Cr(e,t){var n=dl(e);return la(n,Oi(t,0,n.length))}function Tr(e,t,n,i){if(!ks(e))return e;for(var r=-1,a=(t=$r(t,e)).length,s=a-1,l=e;null!=l&&++r<a;){var c=ua(t[r]),u=n;if(r!=s){var p=l[c];(u=i?i(p,c,l):o)===o&&(u=ks(p)?p:$o(t[r+1])?[]:{})}Pi(l,c,u),l=l[c]}return e}var kr=ii?function(e,t){return ii.set(e,t),e}:Al,Pr=dn?function(e,t){return dn(e,"toString",{configurable:!0,enumerable:!1,value:kl(t),writable:!0})}:Al;function Dr(e){return la(dl(e))}function Ar(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=i(o);++r<o;)a[r]=e[r+t];return a}function Ir(e,t){var n;return Bi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Rr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=B){for(;i<r;){var o=i+r>>>1,a=e[o];null!==a&&!Ls(a)&&(n?a<=t:a<t)?i=o+1:r=o}return r}return Nr(e,t,Al,n)}function Nr(e,t,n,i){t=n(t);for(var r=0,a=null==e?0:e.length,s=t!=t,l=null===t,c=Ls(t),u=t===o;r<a;){var p=Bn((r+a)/2),h=n(e[p]),d=h!==o,f=null===h,m=h==h,g=Ls(h);if(s)var v=i||m;else v=u?m&&(i||d):l?m&&d&&(i||!f):c?m&&d&&!f&&(i||!g):!f&&!g&&(i?h<=t:h<t);v?r=p+1:a=p}return $n(a,z)}function Or(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n],s=t?t(a):a;if(!n||!ds(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function Lr(e){return"number"==typeof e?e:Ls(e)?M:+e}function Mr(e){if("string"==typeof e)return e;if(vs(e))return Qt(e,Mr)+"";if(Ls(e))return hi?hi.call(e):"";var t=e+"";return"0"==t&&1/e==-N?"-0":t}function Ur(e,t,n){var i=-1,r=Xt,o=e.length,s=!0,l=[],c=l;if(n)s=!1,r=Yt;else if(o>=a){var u=t?null:So(e);if(u)return Dn(u);s=!1,r=yn,c=new _i}else c=t?[]:l;e:for(;++i<o;){var p=e[i],h=t?t(p):p;if(p=n||0!==p?p:0,s&&h==h){for(var d=c.length;d--;)if(c[d]===h)continue e;t&&c.push(h),l.push(p)}else r(c,h,n)||(c!==l&&c.push(h),l.push(p))}return l}function zr(e,t){return null==(e=ta(e,t=$r(t,e)))||delete e[ua(Sa(t))]}function Br(e,t,n,i){return Tr(e,t,n(Zi(e,t)),i)}function Fr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?Ar(e,i?0:o,i?o+1:r):Ar(e,i?o+1:0,i?r:o)}function Vr(e,t){var n=e;return n instanceof vi&&(n=n.value()),tn(t,(function(e,t){return t.func.apply(t.thisArg,en([e],t.args))}),n)}function jr(e,t,n){var r=e.length;if(r<2)return r?Ur(e[0]):[];for(var o=-1,a=i(r);++o<r;)for(var s=e[o],l=-1;++l<r;)l!=o&&(a[o]=zi(a[o]||s,e[l],t,n));return Ur(Wi(a,1),t,n)}function Gr(e,t,n){for(var i=-1,r=e.length,a=t.length,s={};++i<r;){var l=i<a?t[i]:o;n(s,e[i],l)}return s}function Wr(e){return ws(e)?e:[]}function Hr(e){return"function"==typeof e?e:Al}function $r(e,t){return vs(e)?e:Ko(e,t)?[e]:ca(Hs(e))}var qr=Sr;function Kr(e,t,n){var i=e.length;return n=n===o?i:n,!t&&n>=i?e:Ar(e,t,n)}var Jr=Ln||function(e){return Nt.clearTimeout(e)};function Zr(e,t){if(t)return e.slice();var n=e.length,i=Pt?Pt(n):new e.constructor(n);return e.copy(i),i}function Xr(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function Yr(e,t){var n=t?Xr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Qr(e,t){if(e!==t){var n=e!==o,i=null===e,r=e==e,a=Ls(e),s=t!==o,l=null===t,c=t==t,u=Ls(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!r)return 1;if(!i&&!a&&!u&&e<t||u&&n&&r&&!i&&!a||l&&n&&r||!s&&r||!c)return-1}return 0}function eo(e,t,n,r){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=Hn(a-s,0),p=i(c+u),h=!r;++l<c;)p[l]=t[l];for(;++o<s;)(h||o<a)&&(p[n[o]]=e[o]);for(;u--;)p[l++]=e[o++];return p}function to(e,t,n,r){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,p=Hn(a-l,0),h=i(p+u),d=!r;++o<p;)h[o]=e[o];for(var f=o;++c<u;)h[f+c]=t[c];for(;++s<l;)(d||o<a)&&(h[f+n[s]]=e[o++]);return h}function no(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function io(e,t,n,i){var r=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=i?i(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),r?Ri(n,l,c):Pi(n,l,c)}return n}function ro(e,t){return function(n,i){var r=vs(n)?$t:Ai,o=t?t():{};return r(n,e,Mo(i,2),o)}}function oo(e){return Sr((function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:o,s=r>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(r--,a):o,s&&qo(n[0],n[1],s)&&(a=r<3?o:a,r=1),t=tt(t);++i<r;){var l=n[i];l&&e(t,l,i,a)}return t}))}function ao(e,t){return function(n,i){if(null==n)return n;if(!ys(n))return e(n,i);for(var r=n.length,o=t?r:-1,a=tt(n);(t?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function so(e){return function(t,n,i){for(var r=-1,o=tt(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}function lo(e){return function(t){var n=Cn(t=Hs(t))?Rn(t):o,i=n?n[0]:t.charAt(0),r=n?Kr(n,1).join(""):t.slice(1);return i[e]()+r}}function co(e){return function(t){return tn(El(gl(t).replace(bt,"")),e,"")}}function uo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=fi(e.prototype),i=e.apply(n,t);return ks(i)?i:n}}function po(e){return function(t,n,i){var r=tt(t);if(!ys(t)){var a=Mo(n,3);t=rl(t),n=function(e){return a(r[e],e,r)}}var s=e(t,n,i);return s>-1?r[a?t[s]:s]:o}}function ho(e){return Ao((function(t){var n=t.length,i=n,r=gi.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new rt(l);if(r&&!s&&"wrapper"==Oo(a))var s=new gi([],!0)}for(i=s?i:n;++i<n;){var c=Oo(a=t[i]),u="wrapper"==c?No(a):o;s=u&&Jo(u[0])&&u[1]==(E|w|x|C)&&!u[4].length&&1==u[9]?s[Oo(u[0])].apply(s,u[3]):1==a.length&&Jo(a)?s[c]():s.thru(a)}return function(){var e=arguments,i=e[0];if(s&&1==e.length&&vs(i))return s.plant(i).value();for(var r=0,o=n?t[r].apply(this,e):i;++r<n;)o=t[r].call(this,o);return o}}))}function fo(e,t,n,r,a,s,l,c,u,p){var h=t&E,d=t&v,f=t&b,m=t&(w|_),g=t&T,y=f?o:uo(e);return function v(){for(var b=arguments.length,w=i(b),_=b;_--;)w[_]=arguments[_];if(m)var x=Lo(v),S=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(w,x);if(r&&(w=eo(w,r,a,m)),s&&(w=to(w,s,l,m)),b-=S,m&&b<p){var E=Pn(w,x);return _o(e,t,fo,v.placeholder,n,w,E,c,u,p-b)}var C=d?n:this,T=f?C[e]:e;return b=w.length,c?w=function(e,t){var n=e.length,i=$n(t.length,n),r=no(e);for(;i--;){var a=t[i];e[i]=$o(a,n)?r[a]:o}return e}(w,c):g&&b>1&&w.reverse(),h&&u<b&&(w.length=u),this&&this!==Nt&&this instanceof v&&(T=y||uo(T)),T.apply(C,w)}}function mo(e,t){return function(n,i){return function(e,t,n,i){return qi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function go(e,t){return function(n,i){var r;if(n===o&&i===o)return t;if(n!==o&&(r=n),i!==o){if(r===o)return i;"string"==typeof n||"string"==typeof i?(n=Mr(n),i=Mr(i)):(n=Lr(n),i=Lr(i)),r=e(n,i)}return r}}function vo(e){return Ao((function(t){return t=Qt(t,vn(Mo())),Sr((function(n){var i=this;return e(t,(function(e){return Ht(e,i,n)}))}))}))}function bo(e,t){var n=(t=t===o?" ":Mr(t)).length;if(n<2)return n?xr(t,e):t;var i=xr(t,zn(e/In(t)));return Cn(t)?Kr(Rn(i),0,e).join(""):i.slice(0,e)}function yo(e){return function(t,n,r){return r&&"number"!=typeof r&&qo(t,n,r)&&(n=r=o),t=Fs(t),n===o?(n=t,t=0):n=Fs(n),function(e,t,n,r){for(var o=-1,a=Hn(zn((t-e)/(n||1)),0),s=i(a);a--;)s[r?a:++o]=e,e+=n;return s}(t,n,r=r===o?t<n?1:-1:Fs(r),e)}}function wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Gs(t),n=Gs(n)),e(t,n)}}function _o(e,t,n,i,r,a,s,l,c,u){var p=t&w;t|=p?x:S,(t&=~(p?S:x))&y||(t&=~(v|b));var h=[e,t,r,p?a:o,p?s:o,p?o:a,p?o:s,l,c,u],d=n.apply(o,h);return Jo(e)&&ia(d,h),d.placeholder=i,aa(d,e,t)}function xo(e){var t=et[e];return function(e,n){if(e=Gs(e),(n=null==n?0:$n(Vs(n),292))&&jn(e)){var i=(Hs(e)+"e").split("e");return+((i=(Hs(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var So=ei&&1/Dn(new ei([,-0]))[1]==N?function(e){return new ei(e)}:Ll;function Eo(e){return function(t){var n=jo(t);return n==Z?Tn(t):n==ne?An(t):function(e,t){return Qt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Co(e,t,n,r,a,s,c,u){var h=t&b;if(!h&&"function"!=typeof e)throw new rt(l);var d=r?r.length:0;if(d||(t&=~(x|S),r=a=o),c=c===o?c:Hn(Vs(c),0),u=u===o?u:Vs(u),d-=a?a.length:0,t&S){var f=r,m=a;r=a=o}var g=h?o:No(e),T=[e,t,n,r,a,f,m,s,c,u];if(g&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<(v|b|E),a=i==E&&n==w||i==E&&n==C&&e[7].length<=t[8]||i==(E|C)&&t[7].length<=t[8]&&n==w;if(!o&&!a)return e;i&v&&(e[2]=t[2],r|=n&v?0:y);var s=t[3];if(s){var l=e[3];e[3]=l?eo(l,s,t[4]):s,e[4]=l?Pn(e[3],p):t[4]}(s=t[5])&&(l=e[5],e[5]=l?to(l,s,t[6]):s,e[6]=l?Pn(e[5],p):t[6]);(s=t[7])&&(e[7]=s);i&E&&(e[8]=null==e[8]?t[8]:$n(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(T,g),e=T[0],t=T[1],n=T[2],r=T[3],a=T[4],!(u=T[9]=T[9]===o?h?0:e.length:Hn(T[9]-d,0))&&t&(w|_)&&(t&=~(w|_)),t&&t!=v)k=t==w||t==_?function(e,t,n){var r=uo(e);return function a(){for(var s=arguments.length,l=i(s),c=s,u=Lo(a);c--;)l[c]=arguments[c];var p=s<3&&l[0]!==u&&l[s-1]!==u?[]:Pn(l,u);return(s-=p.length)<n?_o(e,t,fo,a.placeholder,o,l,p,o,o,n-s):Ht(this&&this!==Nt&&this instanceof a?r:e,this,l)}}(e,t,u):t!=x&&t!=(v|x)||a.length?fo.apply(o,T):function(e,t,n,r){var o=t&v,a=uo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=r.length,p=i(u+l),h=this&&this!==Nt&&this instanceof t?a:e;++c<u;)p[c]=r[c];for(;l--;)p[c++]=arguments[++s];return Ht(h,o?n:this,p)}}(e,t,n,r);else var k=function(e,t,n){var i=t&v,r=uo(e);return function t(){return(this&&this!==Nt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return aa((g?kr:ia)(k,T),e,t)}function To(e,t,n,i){return e===o||ds(e,st[n])&&!ut.call(i,n)?t:e}function ko(e,t,n,i,r,a){return ks(e)&&ks(t)&&(a.set(t,e),mr(e,t,o,ko,a),a.delete(t)),e}function Po(e){return Is(e)?o:e}function Do(e,t,n,i,r,a){var s=n&m,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var p=-1,h=!0,d=n&g?new _i:o;for(a.set(e,t),a.set(t,e);++p<l;){var f=e[p],v=t[p];if(i)var b=s?i(v,f,p,t,e,a):i(f,v,p,e,t,a);if(b!==o){if(b)continue;h=!1;break}if(d){if(!rn(t,(function(e,t){if(!yn(d,t)&&(f===e||r(f,e,n,i,a)))return d.push(t)}))){h=!1;break}}else if(f!==v&&!r(f,v,n,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Ao(e){return oa(ea(e,o,ba),e+"")}function Io(e){return Xi(e,rl,Fo)}function Ro(e){return Xi(e,ol,Vo)}var No=ii?function(e){return ii.get(e)}:Ll;function Oo(e){for(var t=e.name+"",n=ri[t],i=ut.call(ri,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Lo(e){return(ut.call(di,"placeholder")?di:e).placeholder}function Mo(){var e=di.iteratee||Il;return e=e===Il?lr:e,arguments.length?e(arguments[0],arguments[1]):e}function Uo(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function zo(e){for(var t=rl(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Yo(r)]}return t}function Bo(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return sr(n)?n:o}var Fo=Fn?function(e){return null==e?[]:(e=tt(e),Zt(Fn(e),(function(t){return Ot.call(e,t)})))}:jl,Vo=Fn?function(e){for(var t=[];e;)en(t,Fo(e)),e=It(e);return t}:jl,jo=Yi;function Go(e,t,n){for(var i=-1,r=(t=$r(t,e)).length,o=!1;++i<r;){var a=ua(t[i]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&Ts(r)&&$o(a,r)&&(vs(e)||gs(e))}function Wo(e){return"function"!=typeof e.constructor||Xo(e)?{}:fi(It(e))}function Ho(e){return vs(e)||gs(e)||!!(Ut&&e&&e[Ut])}function $o(e,t){var n=typeof e;return!!(t=null==t?O:t)&&("number"==n||"symbol"!=n&&Ke.test(e))&&e>-1&&e%1==0&&e<t}function qo(e,t,n){if(!ks(n))return!1;var i=typeof t;return!!("number"==i?ys(n)&&$o(t,n.length):"string"==i&&t in n)&&ds(n[t],e)}function Ko(e,t){if(vs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ls(e))||(Ae.test(e)||!De.test(e)||null!=t&&e in tt(t))}function Jo(e){var t=Oo(e),n=di[t];if("function"!=typeof n||!(t in vi.prototype))return!1;if(e===n)return!0;var i=No(n);return!!i&&e===i[0]}(Xn&&jo(new Xn(new ArrayBuffer(1)))!=ce||Yn&&jo(new Yn)!=Z||Qn&&"[object Promise]"!=jo(Qn.resolve())||ei&&jo(new ei)!=ne||ti&&jo(new ti)!=ae)&&(jo=function(e){var t=Yi(e),n=t==Q?e.constructor:o,i=n?pa(n):"";if(i)switch(i){case oi:return ce;case ai:return Z;case si:return"[object Promise]";case li:return ne;case ci:return ae}return t});var Zo=lt?Es:Gl;function Xo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function Yo(e){return e==e&&!ks(e)}function Qo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in tt(n)))}}function ea(e,t,n){return t=Hn(t===o?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Hn(r.length-t,0),s=i(a);++o<a;)s[o]=r[t+o];o=-1;for(var l=i(t+1);++o<t;)l[o]=r[o];return l[t]=n(s),Ht(e,this,l)}}function ta(e,t){return t.length<2?e:Zi(e,Ar(t,0,-1))}function na(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ia=sa(kr),ra=Un||function(e,t){return Nt.setTimeout(e,t)},oa=sa(Pr);function aa(e,t,n){var i=t+"";return oa(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return qt(F,(function(n){var i="_."+n[0];t&n[1]&&!Xt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ze);return t?t[1].split(Be):[]}(i),n)))}function sa(e){var t=0,n=0;return function(){var i=qn(),r=A-(i-n);if(n=i,r>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(o,arguments)}}function la(e,t){var n=-1,i=e.length,r=i-1;for(t=t===o?i:t;++n<t;){var a=_r(n,r),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var ca=function(e){var t=ss(e,(function(e){return n.size===u&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ie,(function(e,n,i,r){t.push(i?r.replace(Ve,"$1"):n||e)})),t}));function ua(e){if("string"==typeof e||Ls(e))return e;var t=e+"";return"0"==t&&1/e==-N?"-0":t}function pa(e){if(null!=e){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ha(e){if(e instanceof vi)return e.clone();var t=new gi(e.__wrapped__,e.__chain__);return t.__actions__=no(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var da=Sr((function(e,t){return ws(e)?zi(e,Wi(t,1,ws,!0)):[]})),fa=Sr((function(e,t){var n=Sa(t);return ws(n)&&(n=o),ws(e)?zi(e,Wi(t,1,ws,!0),Mo(n,2)):[]})),ma=Sr((function(e,t){var n=Sa(t);return ws(n)&&(n=o),ws(e)?zi(e,Wi(t,1,ws,!0),o,n):[]}));function ga(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Vs(n);return r<0&&(r=Hn(i+r,0)),sn(e,Mo(t,3),r)}function va(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i-1;return n!==o&&(r=Vs(n),r=n<0?Hn(i+r,0):$n(r,i-1)),sn(e,Mo(t,3),r,!0)}function ba(e){return(null==e?0:e.length)?Wi(e,1):[]}function ya(e){return e&&e.length?e[0]:o}var wa=Sr((function(e){var t=Qt(e,Wr);return t.length&&t[0]===e[0]?nr(t):[]})),_a=Sr((function(e){var t=Sa(e),n=Qt(e,Wr);return t===Sa(n)?t=o:n.pop(),n.length&&n[0]===e[0]?nr(n,Mo(t,2)):[]})),xa=Sr((function(e){var t=Sa(e),n=Qt(e,Wr);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?nr(n,o,t):[]}));function Sa(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ea=Sr(Ca);function Ca(e,t){return e&&e.length&&t&&t.length?yr(e,t):e}var Ta=Ao((function(e,t){var n=null==e?0:e.length,i=Ni(e,t);return wr(e,Qt(t,(function(e){return $o(e,n)?+e:e})).sort(Qr)),i}));function ka(e){return null==e?e:Zn.call(e)}var Pa=Sr((function(e){return Ur(Wi(e,1,ws,!0))})),Da=Sr((function(e){var t=Sa(e);return ws(t)&&(t=o),Ur(Wi(e,1,ws,!0),Mo(t,2))})),Aa=Sr((function(e){var t=Sa(e);return t="function"==typeof t?t:o,Ur(Wi(e,1,ws,!0),o,t)}));function Ia(e){if(!e||!e.length)return[];var t=0;return e=Zt(e,(function(e){if(ws(e))return t=Hn(e.length,t),!0})),gn(t,(function(t){return Qt(e,hn(t))}))}function Ra(e,t){if(!e||!e.length)return[];var n=Ia(e);return null==t?n:Qt(n,(function(e){return Ht(t,o,e)}))}var Na=Sr((function(e,t){return ws(e)?zi(e,t):[]})),Oa=Sr((function(e){return jr(Zt(e,ws))})),La=Sr((function(e){var t=Sa(e);return ws(t)&&(t=o),jr(Zt(e,ws),Mo(t,2))})),Ma=Sr((function(e){var t=Sa(e);return t="function"==typeof t?t:o,jr(Zt(e,ws),o,t)})),Ua=Sr(Ia);var za=Sr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Ra(e,n)}));function Ba(e){var t=di(e);return t.__chain__=!0,t}function Fa(e,t){return t(e)}var Va=Ao((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,r=function(t){return Ni(t,e)};return!(t>1||this.__actions__.length)&&i instanceof vi&&$o(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:Fa,args:[r],thisArg:o}),new gi(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(r)}));var ja=ro((function(e,t,n){ut.call(e,n)?++e[n]:Ri(e,n,1)}));var Ga=po(ga),Wa=po(va);function Ha(e,t){return(vs(e)?qt:Bi)(e,Mo(t,3))}function $a(e,t){return(vs(e)?Kt:Fi)(e,Mo(t,3))}var qa=ro((function(e,t,n){ut.call(e,n)?e[n].push(t):Ri(e,n,[t])}));var Ka=Sr((function(e,t,n){var r=-1,o="function"==typeof t,a=ys(e)?i(e.length):[];return Bi(e,(function(e){a[++r]=o?Ht(t,e,n):ir(e,t,n)})),a})),Ja=ro((function(e,t,n){Ri(e,n,t)}));function Za(e,t){return(vs(e)?Qt:hr)(e,Mo(t,3))}var Xa=ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ya=Sr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&qo(e,t[0],t[1])?t=[]:n>2&&qo(t[0],t[1],t[2])&&(t=[t[0]]),vr(e,Wi(t,1),[])})),Qa=Mn||function(){return Nt.Date.now()};function es(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Co(e,E,o,o,o,o,t)}function ts(e,t){var n;if("function"!=typeof t)throw new rt(l);return e=Vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var ns=Sr((function(e,t,n){var i=v;if(n.length){var r=Pn(n,Lo(ns));i|=x}return Co(e,i,t,n,r)})),is=Sr((function(e,t,n){var i=v|b;if(n.length){var r=Pn(n,Lo(is));i|=x}return Co(t,i,e,n,r)}));function rs(e,t,n){var i,r,a,s,c,u,p=0,h=!1,d=!1,f=!0;if("function"!=typeof e)throw new rt(l);function m(t){var n=i,a=r;return i=r=o,p=t,s=e.apply(a,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||d&&e-p>=a}function v(){var e=Qa();if(g(e))return b(e);c=ra(v,function(e){var n=t-(e-u);return d?$n(n,a-(e-p)):n}(e))}function b(e){return c=o,f&&i?m(e):(i=r=o,s)}function y(){var e=Qa(),n=g(e);if(i=arguments,r=this,u=e,n){if(c===o)return function(e){return p=e,c=ra(v,t),h?m(e):s}(u);if(d)return Jr(c),c=ra(v,t),m(u)}return c===o&&(c=ra(v,t)),s}return t=Gs(t)||0,ks(n)&&(h=!!n.leading,a=(d="maxWait"in n)?Hn(Gs(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),y.cancel=function(){c!==o&&Jr(c),p=0,i=u=r=c=o},y.flush=function(){return c===o?s:b(Qa())},y}var os=Sr((function(e,t){return Ui(e,1,t)})),as=Sr((function(e,t,n){return Ui(e,Gs(t)||0,n)}));function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(l);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(ss.Cache||wi),n}function ls(e){if("function"!=typeof e)throw new rt(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wi;var cs=qr((function(e,t){var n=(t=1==t.length&&vs(t[0])?Qt(t[0],vn(Mo())):Qt(Wi(t,1),vn(Mo()))).length;return Sr((function(i){for(var r=-1,o=$n(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return Ht(e,this,i)}))})),us=Sr((function(e,t){var n=Pn(t,Lo(us));return Co(e,x,o,t,n)})),ps=Sr((function(e,t){var n=Pn(t,Lo(ps));return Co(e,S,o,t,n)})),hs=Ao((function(e,t){return Co(e,C,o,o,o,t)}));function ds(e,t){return e===t||e!=e&&t!=t}var fs=wo(Qi),ms=wo((function(e,t){return e>=t})),gs=rr(function(){return arguments}())?rr:function(e){return Ps(e)&&ut.call(e,"callee")&&!Ot.call(e,"callee")},vs=i.isArray,bs=Bt?vn(Bt):function(e){return Ps(e)&&Yi(e)==le};function ys(e){return null!=e&&Ts(e.length)&&!Es(e)}function ws(e){return Ps(e)&&ys(e)}var _s=Vn||Gl,xs=Ft?vn(Ft):function(e){return Ps(e)&&Yi(e)==H};function Ss(e){if(!Ps(e))return!1;var t=Yi(e);return t==q||t==$||"string"==typeof e.message&&"string"==typeof e.name&&!Is(e)}function Es(e){if(!ks(e))return!1;var t=Yi(e);return t==K||t==J||t==G||t==ee}function Cs(e){return"number"==typeof e&&e==Vs(e)}function Ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=O}function ks(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ps(e){return null!=e&&"object"==typeof e}var Ds=Vt?vn(Vt):function(e){return Ps(e)&&jo(e)==Z};function As(e){return"number"==typeof e||Ps(e)&&Yi(e)==X}function Is(e){if(!Ps(e)||Yi(e)!=Q)return!1;var t=It(e);if(null===t)return!0;var n=ut.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==ft}var Rs=jt?vn(jt):function(e){return Ps(e)&&Yi(e)==te};var Ns=Gt?vn(Gt):function(e){return Ps(e)&&jo(e)==ne};function Os(e){return"string"==typeof e||!vs(e)&&Ps(e)&&Yi(e)==ie}function Ls(e){return"symbol"==typeof e||Ps(e)&&Yi(e)==re}var Ms=Wt?vn(Wt):function(e){return Ps(e)&&Ts(e.length)&&!!Tt[Yi(e)]};var Us=wo(pr),zs=wo((function(e,t){return e<=t}));function Bs(e){if(!e)return[];if(ys(e))return Os(e)?Rn(e):no(e);if(zt&&e[zt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[zt]());var t=jo(e);return(t==Z?Tn:t==ne?Dn:dl)(e)}function Fs(e){return e?(e=Gs(e))===N||e===-N?(e<0?-1:1)*L:e==e?e:0:0===e?e:0}function Vs(e){var t=Fs(e),n=t%1;return t==t?n?t-n:t:0}function js(e){return e?Oi(Vs(e),0,U):0}function Gs(e){if("number"==typeof e)return e;if(Ls(e))return M;if(ks(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ks(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Oe,"");var n=He.test(e);return n||qe.test(e)?At(e.slice(2),n?2:8):We.test(e)?M:+e}function Ws(e){return io(e,ol(e))}function Hs(e){return null==e?"":Mr(e)}var $s=oo((function(e,t){if(Xo(t)||ys(t))io(t,rl(t),e);else for(var n in t)ut.call(t,n)&&Pi(e,n,t[n])})),qs=oo((function(e,t){io(t,ol(t),e)})),Ks=oo((function(e,t,n,i){io(t,ol(t),e,i)})),Js=oo((function(e,t,n,i){io(t,rl(t),e,i)})),Zs=Ao(Ni);var Xs=Sr((function(e,t){e=tt(e);var n=-1,i=t.length,r=i>2?t[2]:o;for(r&&qo(t[0],t[1],r)&&(i=1);++n<i;)for(var a=t[n],s=ol(a),l=-1,c=s.length;++l<c;){var u=s[l],p=e[u];(p===o||ds(p,st[u])&&!ut.call(e,u))&&(e[u]=a[u])}return e})),Ys=Sr((function(e){return e.push(o,ko),Ht(sl,o,e)}));function Qs(e,t,n){var i=null==e?o:Zi(e,t);return i===o?n:i}function el(e,t){return null!=e&&Go(e,t,tr)}var tl=mo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),e[t]=n}),kl(Al)),nl=mo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),ut.call(e,t)?e[t].push(n):e[t]=[n]}),Mo),il=Sr(ir);function rl(e){return ys(e)?Si(e):cr(e)}function ol(e){return ys(e)?Si(e,!0):ur(e)}var al=oo((function(e,t,n){mr(e,t,n)})),sl=oo((function(e,t,n,i){mr(e,t,n,i)})),ll=Ao((function(e,t){var n={};if(null==e)return n;var i=!1;t=Qt(t,(function(t){return t=$r(t,e),i||(i=t.length>1),t})),io(e,Ro(e),n),i&&(n=Li(n,h|d|f,Po));for(var r=t.length;r--;)zr(n,t[r]);return n}));var cl=Ao((function(e,t){return null==e?{}:function(e,t){return br(e,t,(function(t,n){return el(e,n)}))}(e,t)}));function ul(e,t){if(null==e)return{};var n=Qt(Ro(e),(function(e){return[e]}));return t=Mo(t),br(e,n,(function(e,n){return t(e,n[0])}))}var pl=Eo(rl),hl=Eo(ol);function dl(e){return null==e?[]:bn(e,rl(e))}var fl=co((function(e,t,n){return t=t.toLowerCase(),e+(n?ml(t):t)}));function ml(e){return Sl(Hs(e).toLowerCase())}function gl(e){return(e=Hs(e))&&e.replace(Je,xn).replace(yt,"")}var vl=co((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),bl=co((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),yl=lo("toLowerCase");var wl=co((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var _l=co((function(e,t,n){return e+(n?" ":"")+Sl(t)}));var xl=co((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Sl=lo("toUpperCase");function El(e,t,n){return e=Hs(e),(t=n?o:t)===o?function(e){return St.test(e)}(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.match(Fe)||[]}(e):e.match(t)||[]}var Cl=Sr((function(e,t){try{return Ht(e,o,t)}catch(e){return Ss(e)?e:new Ye(e)}})),Tl=Ao((function(e,t){return qt(t,(function(t){t=ua(t),Ri(e,t,ns(e[t],e))})),e}));function kl(e){return function(){return e}}var Pl=ho(),Dl=ho(!0);function Al(e){return e}function Il(e){return lr("function"==typeof e?e:Li(e,h))}var Rl=Sr((function(e,t){return function(n){return ir(n,e,t)}})),Nl=Sr((function(e,t){return function(n){return ir(e,n,t)}}));function Ol(e,t,n){var i=rl(t),r=Ji(t,i);null!=n||ks(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Ji(t,rl(t)));var o=!(ks(n)&&"chain"in n&&!n.chain),a=Es(e);return qt(r,(function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=no(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,en([this.value()],arguments))})})),e}function Ll(){}var Ml=vo(Qt),Ul=vo(Jt),zl=vo(rn);function Bl(e){return Ko(e)?hn(ua(e)):function(e){return function(t){return Zi(t,e)}}(e)}var Fl=yo(),Vl=yo(!0);function jl(){return[]}function Gl(){return!1}var Wl=go((function(e,t){return e+t}),0),Hl=xo("ceil"),$l=go((function(e,t){return e/t}),1),ql=xo("floor");var Kl,Jl=go((function(e,t){return e*t}),1),Zl=xo("round"),Xl=go((function(e,t){return e-t}),0);return di.after=function(e,t){if("function"!=typeof t)throw new rt(l);return e=Vs(e),function(){if(--e<1)return t.apply(this,arguments)}},di.ary=es,di.assign=$s,di.assignIn=qs,di.assignInWith=Ks,di.assignWith=Js,di.at=Zs,di.before=ts,di.bind=ns,di.bindAll=Tl,di.bindKey=is,di.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return vs(e)?e:[e]},di.chain=Ba,di.chunk=function(e,t,n){t=(n?qo(e,t,n):t===o)?1:Hn(Vs(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var a=0,s=0,l=i(zn(r/t));a<r;)l[s++]=Ar(e,a,a+=t);return l},di.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},di.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return en(vs(n)?no(n):[n],Wi(t,1))},di.cond=function(e){var t=null==e?0:e.length,n=Mo();return e=t?Qt(e,(function(e){if("function"!=typeof e[1])throw new rt(l);return[n(e[0]),e[1]]})):[],Sr((function(n){for(var i=-1;++i<t;){var r=e[i];if(Ht(r[0],this,n))return Ht(r[1],this,n)}}))},di.conforms=function(e){return function(e){var t=rl(e);return function(n){return Mi(n,e,t)}}(Li(e,h))},di.constant=kl,di.countBy=ja,di.create=function(e,t){var n=fi(e);return null==t?n:Ii(n,t)},di.curry=function e(t,n,i){var r=Co(t,w,o,o,o,o,o,n=i?o:n);return r.placeholder=e.placeholder,r},di.curryRight=function e(t,n,i){var r=Co(t,_,o,o,o,o,o,n=i?o:n);return r.placeholder=e.placeholder,r},di.debounce=rs,di.defaults=Xs,di.defaultsDeep=Ys,di.defer=os,di.delay=as,di.difference=da,di.differenceBy=fa,di.differenceWith=ma,di.drop=function(e,t,n){var i=null==e?0:e.length;return i?Ar(e,(t=n||t===o?1:Vs(t))<0?0:t,i):[]},di.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?Ar(e,0,(t=i-(t=n||t===o?1:Vs(t)))<0?0:t):[]},di.dropRightWhile=function(e,t){return e&&e.length?Fr(e,Mo(t,3),!0,!0):[]},di.dropWhile=function(e,t){return e&&e.length?Fr(e,Mo(t,3),!0):[]},di.fill=function(e,t,n,i){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&qo(e,t,n)&&(n=0,i=r),function(e,t,n,i){var r=e.length;for((n=Vs(n))<0&&(n=-n>r?0:r+n),(i=i===o||i>r?r:Vs(i))<0&&(i+=r),i=n>i?0:js(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},di.filter=function(e,t){return(vs(e)?Zt:Gi)(e,Mo(t,3))},di.flatMap=function(e,t){return Wi(Za(e,t),1)},di.flatMapDeep=function(e,t){return Wi(Za(e,t),N)},di.flatMapDepth=function(e,t,n){return n=n===o?1:Vs(n),Wi(Za(e,t),n)},di.flatten=ba,di.flattenDeep=function(e){return(null==e?0:e.length)?Wi(e,N):[]},di.flattenDepth=function(e,t){return(null==e?0:e.length)?Wi(e,t=t===o?1:Vs(t)):[]},di.flip=function(e){return Co(e,T)},di.flow=Pl,di.flowRight=Dl,di.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},di.functions=function(e){return null==e?[]:Ji(e,rl(e))},di.functionsIn=function(e){return null==e?[]:Ji(e,ol(e))},di.groupBy=qa,di.initial=function(e){return(null==e?0:e.length)?Ar(e,0,-1):[]},di.intersection=wa,di.intersectionBy=_a,di.intersectionWith=xa,di.invert=tl,di.invertBy=nl,di.invokeMap=Ka,di.iteratee=Il,di.keyBy=Ja,di.keys=rl,di.keysIn=ol,di.map=Za,di.mapKeys=function(e,t){var n={};return t=Mo(t,3),qi(e,(function(e,i,r){Ri(n,t(e,i,r),e)})),n},di.mapValues=function(e,t){var n={};return t=Mo(t,3),qi(e,(function(e,i,r){Ri(n,i,t(e,i,r))})),n},di.matches=function(e){return dr(Li(e,h))},di.matchesProperty=function(e,t){return fr(e,Li(t,h))},di.memoize=ss,di.merge=al,di.mergeWith=sl,di.method=Rl,di.methodOf=Nl,di.mixin=Ol,di.negate=ls,di.nthArg=function(e){return e=Vs(e),Sr((function(t){return gr(t,e)}))},di.omit=ll,di.omitBy=function(e,t){return ul(e,ls(Mo(t)))},di.once=function(e){return ts(2,e)},di.orderBy=function(e,t,n,i){return null==e?[]:(vs(t)||(t=null==t?[]:[t]),vs(n=i?o:n)||(n=null==n?[]:[n]),vr(e,t,n))},di.over=Ml,di.overArgs=cs,di.overEvery=Ul,di.overSome=zl,di.partial=us,di.partialRight=ps,di.partition=Xa,di.pick=cl,di.pickBy=ul,di.property=Bl,di.propertyOf=function(e){return function(t){return null==e?o:Zi(e,t)}},di.pull=Ea,di.pullAll=Ca,di.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?yr(e,t,Mo(n,2)):e},di.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?yr(e,t,o,n):e},di.pullAt=Ta,di.range=Fl,di.rangeRight=Vl,di.rearg=hs,di.reject=function(e,t){return(vs(e)?Zt:Gi)(e,ls(Mo(t,3)))},di.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Mo(t,3);++i<o;){var a=e[i];t(a,i,e)&&(n.push(a),r.push(i))}return wr(e,r),n},di.rest=function(e,t){if("function"!=typeof e)throw new rt(l);return Sr(e,t=t===o?t:Vs(t))},di.reverse=ka,di.sampleSize=function(e,t,n){return t=(n?qo(e,t,n):t===o)?1:Vs(t),(vs(e)?Ci:Cr)(e,t)},di.set=function(e,t,n){return null==e?e:Tr(e,t,n)},di.setWith=function(e,t,n,i){return i="function"==typeof i?i:o,null==e?e:Tr(e,t,n,i)},di.shuffle=function(e){return(vs(e)?Ti:Dr)(e)},di.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&qo(e,t,n)?(t=0,n=i):(t=null==t?0:Vs(t),n=n===o?i:Vs(n)),Ar(e,t,n)):[]},di.sortBy=Ya,di.sortedUniq=function(e){return e&&e.length?Or(e):[]},di.sortedUniqBy=function(e,t){return e&&e.length?Or(e,Mo(t,2)):[]},di.split=function(e,t,n){return n&&"number"!=typeof n&&qo(e,t,n)&&(t=n=o),(n=n===o?U:n>>>0)?(e=Hs(e))&&("string"==typeof t||null!=t&&!Rs(t))&&!(t=Mr(t))&&Cn(e)?Kr(Rn(e),0,n):e.split(t,n):[]},di.spread=function(e,t){if("function"!=typeof e)throw new rt(l);return t=null==t?0:Hn(Vs(t),0),Sr((function(n){var i=n[t],r=Kr(n,0,t);return i&&en(r,i),Ht(e,this,r)}))},di.tail=function(e){var t=null==e?0:e.length;return t?Ar(e,1,t):[]},di.take=function(e,t,n){return e&&e.length?Ar(e,0,(t=n||t===o?1:Vs(t))<0?0:t):[]},di.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?Ar(e,(t=i-(t=n||t===o?1:Vs(t)))<0?0:t,i):[]},di.takeRightWhile=function(e,t){return e&&e.length?Fr(e,Mo(t,3),!1,!0):[]},di.takeWhile=function(e,t){return e&&e.length?Fr(e,Mo(t,3)):[]},di.tap=function(e,t){return t(e),e},di.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new rt(l);return ks(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),rs(e,t,{leading:i,maxWait:t,trailing:r})},di.thru=Fa,di.toArray=Bs,di.toPairs=pl,di.toPairsIn=hl,di.toPath=function(e){return vs(e)?Qt(e,ua):Ls(e)?[e]:no(ca(Hs(e)))},di.toPlainObject=Ws,di.transform=function(e,t,n){var i=vs(e),r=i||_s(e)||Ms(e);if(t=Mo(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:ks(e)&&Es(o)?fi(It(e)):{}}return(r?qt:qi)(e,(function(e,i,r){return t(n,e,i,r)})),n},di.unary=function(e){return es(e,1)},di.union=Pa,di.unionBy=Da,di.unionWith=Aa,di.uniq=function(e){return e&&e.length?Ur(e):[]},di.uniqBy=function(e,t){return e&&e.length?Ur(e,Mo(t,2)):[]},di.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ur(e,o,t):[]},di.unset=function(e,t){return null==e||zr(e,t)},di.unzip=Ia,di.unzipWith=Ra,di.update=function(e,t,n){return null==e?e:Br(e,t,Hr(n))},di.updateWith=function(e,t,n,i){return i="function"==typeof i?i:o,null==e?e:Br(e,t,Hr(n),i)},di.values=dl,di.valuesIn=function(e){return null==e?[]:bn(e,ol(e))},di.without=Na,di.words=El,di.wrap=function(e,t){return us(Hr(t),e)},di.xor=Oa,di.xorBy=La,di.xorWith=Ma,di.zip=Ua,di.zipObject=function(e,t){return Gr(e||[],t||[],Pi)},di.zipObjectDeep=function(e,t){return Gr(e||[],t||[],Tr)},di.zipWith=za,di.entries=pl,di.entriesIn=hl,di.extend=qs,di.extendWith=Ks,Ol(di,di),di.add=Wl,di.attempt=Cl,di.camelCase=fl,di.capitalize=ml,di.ceil=Hl,di.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Gs(n))==n?n:0),t!==o&&(t=(t=Gs(t))==t?t:0),Oi(Gs(e),t,n)},di.clone=function(e){return Li(e,f)},di.cloneDeep=function(e){return Li(e,h|f)},di.cloneDeepWith=function(e,t){return Li(e,h|f,t="function"==typeof t?t:o)},di.cloneWith=function(e,t){return Li(e,f,t="function"==typeof t?t:o)},di.conformsTo=function(e,t){return null==t||Mi(e,t,rl(t))},di.deburr=gl,di.defaultTo=function(e,t){return null==e||e!=e?t:e},di.divide=$l,di.endsWith=function(e,t,n){e=Hs(e),t=Mr(t);var i=e.length,r=n=n===o?i:Oi(Vs(n),0,i);return(n-=t.length)>=0&&e.slice(n,r)==t},di.eq=ds,di.escape=function(e){return(e=Hs(e))&&Ce.test(e)?e.replace(Se,Sn):e},di.escapeRegExp=function(e){return(e=Hs(e))&&Ne.test(e)?e.replace(Re,"\\$&"):e},di.every=function(e,t,n){var i=vs(e)?Jt:Vi;return n&&qo(e,t,n)&&(t=o),i(e,Mo(t,3))},di.find=Ga,di.findIndex=ga,di.findKey=function(e,t){return an(e,Mo(t,3),qi)},di.findLast=Wa,di.findLastIndex=va,di.findLastKey=function(e,t){return an(e,Mo(t,3),Ki)},di.floor=ql,di.forEach=Ha,di.forEachRight=$a,di.forIn=function(e,t){return null==e?e:Hi(e,Mo(t,3),ol)},di.forInRight=function(e,t){return null==e?e:$i(e,Mo(t,3),ol)},di.forOwn=function(e,t){return e&&qi(e,Mo(t,3))},di.forOwnRight=function(e,t){return e&&Ki(e,Mo(t,3))},di.get=Qs,di.gt=fs,di.gte=ms,di.has=function(e,t){return null!=e&&Go(e,t,er)},di.hasIn=el,di.head=ya,di.identity=Al,di.includes=function(e,t,n,i){e=ys(e)?e:dl(e),n=n&&!i?Vs(n):0;var r=e.length;return n<0&&(n=Hn(r+n,0)),Os(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&ln(e,t,n)>-1},di.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Vs(n);return r<0&&(r=Hn(i+r,0)),ln(e,t,r)},di.inRange=function(e,t,n){return t=Fs(t),n===o?(n=t,t=0):n=Fs(n),function(e,t,n){return e>=$n(t,n)&&e<Hn(t,n)}(e=Gs(e),t,n)},di.invoke=il,di.isArguments=gs,di.isArray=vs,di.isArrayBuffer=bs,di.isArrayLike=ys,di.isArrayLikeObject=ws,di.isBoolean=function(e){return!0===e||!1===e||Ps(e)&&Yi(e)==W},di.isBuffer=_s,di.isDate=xs,di.isElement=function(e){return Ps(e)&&1===e.nodeType&&!Is(e)},di.isEmpty=function(e){if(null==e)return!0;if(ys(e)&&(vs(e)||"string"==typeof e||"function"==typeof e.splice||_s(e)||Ms(e)||gs(e)))return!e.length;var t=jo(e);if(t==Z||t==ne)return!e.size;if(Xo(e))return!cr(e).length;for(var n in e)if(ut.call(e,n))return!1;return!0},di.isEqual=function(e,t){return or(e,t)},di.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:o)?n(e,t):o;return i===o?or(e,t,o,n):!!i},di.isError=Ss,di.isFinite=function(e){return"number"==typeof e&&jn(e)},di.isFunction=Es,di.isInteger=Cs,di.isLength=Ts,di.isMap=Ds,di.isMatch=function(e,t){return e===t||ar(e,t,zo(t))},di.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,ar(e,t,zo(t),n)},di.isNaN=function(e){return As(e)&&e!=+e},di.isNative=function(e){if(Zo(e))throw new Ye(s);return sr(e)},di.isNil=function(e){return null==e},di.isNull=function(e){return null===e},di.isNumber=As,di.isObject=ks,di.isObjectLike=Ps,di.isPlainObject=Is,di.isRegExp=Rs,di.isSafeInteger=function(e){return Cs(e)&&e>=-O&&e<=O},di.isSet=Ns,di.isString=Os,di.isSymbol=Ls,di.isTypedArray=Ms,di.isUndefined=function(e){return e===o},di.isWeakMap=function(e){return Ps(e)&&jo(e)==ae},di.isWeakSet=function(e){return Ps(e)&&Yi(e)==se},di.join=function(e,t){return null==e?"":Gn.call(e,t)},di.kebabCase=vl,di.last=Sa,di.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i;return n!==o&&(r=(r=Vs(n))<0?Hn(i+r,0):$n(r,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,r):sn(e,un,r,!0)},di.lowerCase=bl,di.lowerFirst=yl,di.lt=Us,di.lte=zs,di.max=function(e){return e&&e.length?ji(e,Al,Qi):o},di.maxBy=function(e,t){return e&&e.length?ji(e,Mo(t,2),Qi):o},di.mean=function(e){return pn(e,Al)},di.meanBy=function(e,t){return pn(e,Mo(t,2))},di.min=function(e){return e&&e.length?ji(e,Al,pr):o},di.minBy=function(e,t){return e&&e.length?ji(e,Mo(t,2),pr):o},di.stubArray=jl,di.stubFalse=Gl,di.stubObject=function(){return{}},di.stubString=function(){return""},di.stubTrue=function(){return!0},di.multiply=Jl,di.nth=function(e,t){return e&&e.length?gr(e,Vs(t)):o},di.noConflict=function(){return Nt._===this&&(Nt._=mt),this},di.noop=Ll,di.now=Qa,di.pad=function(e,t,n){e=Hs(e);var i=(t=Vs(t))?In(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return bo(Bn(r),n)+e+bo(zn(r),n)},di.padEnd=function(e,t,n){e=Hs(e);var i=(t=Vs(t))?In(e):0;return t&&i<t?e+bo(t-i,n):e},di.padStart=function(e,t,n){e=Hs(e);var i=(t=Vs(t))?In(e):0;return t&&i<t?bo(t-i,n)+e:e},di.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Kn(Hs(e).replace(Le,""),t||0)},di.random=function(e,t,n){if(n&&"boolean"!=typeof n&&qo(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Fs(e),t===o?(t=e,e=0):t=Fs(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var r=Jn();return $n(e+r*(t-e+Dt("1e-"+((r+"").length-1))),t)}return _r(e,t)},di.reduce=function(e,t,n){var i=vs(e)?tn:fn,r=arguments.length<3;return i(e,Mo(t,4),n,r,Bi)},di.reduceRight=function(e,t,n){var i=vs(e)?nn:fn,r=arguments.length<3;return i(e,Mo(t,4),n,r,Fi)},di.repeat=function(e,t,n){return t=(n?qo(e,t,n):t===o)?1:Vs(t),xr(Hs(e),t)},di.replace=function(){var e=arguments,t=Hs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},di.result=function(e,t,n){var i=-1,r=(t=$r(t,e)).length;for(r||(r=1,e=o);++i<r;){var a=null==e?o:e[ua(t[i])];a===o&&(i=r,a=n),e=Es(a)?a.call(e):a}return e},di.round=Zl,di.runInContext=e,di.sample=function(e){return(vs(e)?Ei:Er)(e)},di.size=function(e){if(null==e)return 0;if(ys(e))return Os(e)?In(e):e.length;var t=jo(e);return t==Z||t==ne?e.size:cr(e).length},di.snakeCase=wl,di.some=function(e,t,n){var i=vs(e)?rn:Ir;return n&&qo(e,t,n)&&(t=o),i(e,Mo(t,3))},di.sortedIndex=function(e,t){return Rr(e,t)},di.sortedIndexBy=function(e,t,n){return Nr(e,t,Mo(n,2))},di.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Rr(e,t);if(i<n&&ds(e[i],t))return i}return-1},di.sortedLastIndex=function(e,t){return Rr(e,t,!0)},di.sortedLastIndexBy=function(e,t,n){return Nr(e,t,Mo(n,2),!0)},di.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Rr(e,t,!0)-1;if(ds(e[n],t))return n}return-1},di.startCase=_l,di.startsWith=function(e,t,n){return e=Hs(e),n=null==n?0:Oi(Vs(n),0,e.length),t=Mr(t),e.slice(n,n+t.length)==t},di.subtract=Xl,di.sum=function(e){return e&&e.length?mn(e,Al):0},di.sumBy=function(e,t){return e&&e.length?mn(e,Mo(t,2)):0},di.template=function(e,t,n){var i=di.templateSettings;n&&qo(e,t,n)&&(t=o),e=Hs(e),t=Ks({},t,i,To);var r,a,s=Ks({},t.imports,i.imports,To),l=rl(s),c=bn(s,l),u=0,p=t.interpolate||Ze,h="__p += '",d=nt((t.escape||Ze).source+"|"+p.source+"|"+(p===Pe?je:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),f="//# sourceURL="+(ut.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Ct+"]")+"\n";e.replace(d,(function(t,n,i,o,s,l){return i||(i=o),h+=e.slice(u,l).replace(Xe,En),n&&(r=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var m=ut.call(t,"variable")&&t.variable;m||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(ye,""):h).replace(we,"$1").replace(_e,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Cl((function(){return Qe(l,f+"return "+h).apply(o,c)}));if(g.source=h,Ss(g))throw g;return g},di.times=function(e,t){if((e=Vs(e))<1||e>O)return[];var n=U,i=$n(e,U);t=Mo(t),e-=U;for(var r=gn(i,t);++n<e;)t(n);return r},di.toFinite=Fs,di.toInteger=Vs,di.toLength=js,di.toLower=function(e){return Hs(e).toLowerCase()},di.toNumber=Gs,di.toSafeInteger=function(e){return e?Oi(Vs(e),-O,O):0===e?e:0},di.toString=Hs,di.toUpper=function(e){return Hs(e).toUpperCase()},di.trim=function(e,t,n){if((e=Hs(e))&&(n||t===o))return e.replace(Oe,"");if(!e||!(t=Mr(t)))return e;var i=Rn(e),r=Rn(t);return Kr(i,wn(i,r),_n(i,r)+1).join("")},di.trimEnd=function(e,t,n){if((e=Hs(e))&&(n||t===o))return e.replace(Me,"");if(!e||!(t=Mr(t)))return e;var i=Rn(e);return Kr(i,0,_n(i,Rn(t))+1).join("")},di.trimStart=function(e,t,n){if((e=Hs(e))&&(n||t===o))return e.replace(Le,"");if(!e||!(t=Mr(t)))return e;var i=Rn(e);return Kr(i,wn(i,Rn(t))).join("")},di.truncate=function(e,t){var n=k,i=P;if(ks(t)){var r="separator"in t?t.separator:r;n="length"in t?Vs(t.length):n,i="omission"in t?Mr(t.omission):i}var a=(e=Hs(e)).length;if(Cn(e)){var s=Rn(e);a=s.length}if(n>=a)return e;var l=n-In(i);if(l<1)return i;var c=s?Kr(s,0,l).join(""):e.slice(0,l);if(r===o)return c+i;if(s&&(l+=c.length-l),Rs(r)){if(e.slice(l).search(r)){var u,p=c;for(r.global||(r=nt(r.source,Hs(Ge.exec(r))+"g")),r.lastIndex=0;u=r.exec(p);)var h=u.index;c=c.slice(0,h===o?l:h)}}else if(e.indexOf(Mr(r),l)!=l){var d=c.lastIndexOf(r);d>-1&&(c=c.slice(0,d))}return c+i},di.unescape=function(e){return(e=Hs(e))&&Ee.test(e)?e.replace(xe,Nn):e},di.uniqueId=function(e){var t=++pt;return Hs(e)+t},di.upperCase=xl,di.upperFirst=Sl,di.each=Ha,di.eachRight=$a,di.first=ya,Ol(di,(Kl={},qi(di,(function(e,t){ut.call(di.prototype,t)||(Kl[t]=e)})),Kl),{chain:!1}),di.VERSION="4.17.15",qt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){di[e].placeholder=di})),qt(["drop","take"],(function(e,t){vi.prototype[e]=function(n){n=n===o?1:Hn(Vs(n),0);var i=this.__filtered__&&!t?new vi(this):this.clone();return i.__filtered__?i.__takeCount__=$n(n,i.__takeCount__):i.__views__.push({size:$n(n,U),type:e+(i.__dir__<0?"Right":"")}),i},vi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),qt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==I||3==n;vi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Mo(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),qt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");vi.prototype[e]=function(){return this[n](1).value()[0]}})),qt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");vi.prototype[e]=function(){return this.__filtered__?new vi(this):this[n](1)}})),vi.prototype.compact=function(){return this.filter(Al)},vi.prototype.find=function(e){return this.filter(e).head()},vi.prototype.findLast=function(e){return this.reverse().find(e)},vi.prototype.invokeMap=Sr((function(e,t){return"function"==typeof e?new vi(this):this.map((function(n){return ir(n,e,t)}))})),vi.prototype.reject=function(e){return this.filter(ls(Mo(e)))},vi.prototype.slice=function(e,t){e=Vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new vi(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=Vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},vi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vi.prototype.toArray=function(){return this.take(U)},qi(vi.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=di[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);r&&(di.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof vi,c=s[0],u=l||vs(t),p=function(e){var t=r.apply(di,en([e],s));return i&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,d=!!this.__actions__.length,f=a&&!h,m=l&&!d;if(!a&&u){t=m?t:new vi(this);var g=e.apply(t,s);return g.__actions__.push({func:Fa,args:[p],thisArg:o}),new gi(g,h)}return f&&m?e.apply(this,s):(g=this.thru(p),f?i?g.value()[0]:g.value():g)})})),qt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);di.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(vs(r)?r:[],e)}return this[n]((function(n){return t.apply(vs(n)?n:[],e)}))}})),qi(vi.prototype,(function(e,t){var n=di[t];if(n){var i=n.name+"";ut.call(ri,i)||(ri[i]=[]),ri[i].push({name:t,func:n})}})),ri[fo(o,b).name]=[{name:"wrapper",func:o}],vi.prototype.clone=function(){var e=new vi(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vi.prototype.reverse=function(){if(this.__filtered__){var e=new vi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=vs(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=$n(t,e+a);break;case"takeRight":e=Hn(e,t-a)}}return{start:e,end:t}}(0,r,this.__views__),a=o.start,s=o.end,l=s-a,c=i?s:a-1,u=this.__iteratees__,p=u.length,h=0,d=$n(l,this.__takeCount__);if(!n||!i&&r==l&&d==l)return Vr(e,this.__actions__);var f=[];e:for(;l--&&h<d;){for(var m=-1,g=e[c+=t];++m<p;){var v=u[m],b=v.iteratee,y=v.type,w=b(g);if(y==R)g=w;else if(!w){if(y==I)continue e;break e}}f[h++]=g}return f},di.prototype.at=Va,di.prototype.chain=function(){return Ba(this)},di.prototype.commit=function(){return new gi(this.value(),this.__chain__)},di.prototype.next=function(){this.__values__===o&&(this.__values__=Bs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},di.prototype.plant=function(e){for(var t,n=this;n instanceof mi;){var i=ha(n);i.__index__=0,i.__values__=o,t?r.__wrapped__=i:t=i;var r=i;n=n.__wrapped__}return r.__wrapped__=e,t},di.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vi){var t=e;return this.__actions__.length&&(t=new vi(this)),(t=t.reverse()).__actions__.push({func:Fa,args:[ka],thisArg:o}),new gi(t,this.__chain__)}return this.thru(ka)},di.prototype.toJSON=di.prototype.valueOf=di.prototype.value=function(){return Vr(this.__wrapped__,this.__actions__)},di.prototype.first=di.prototype.head,zt&&(di.prototype[zt]=function(){return this}),di}();Nt._=On,(r=function(){return On}.call(t,n,t,i))===o||(i.exports=r)}).call(this)}).call(this,n("yLpj"),n("YuTi")(e))},OTUH:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M21 2a12.986 12.986 0 0 0-10.578 20.538L.662 32.3a2.066 2.066 0 0 0 .106 2.934 2.066 2.066 0 0 0 2.934.105l9.76-9.76A13 13 0 1 0 21 2zm0 22a9 9 0 1 1 9-9 9 9 0 0 1-9 9z"}))},Pg78:function(e){e.exports={hostID:"PHXS",appVersion:"100.10.0",radarVersion:"100.10.0",radarSessionGUID:"01e2823760b74324a8aa469bfffb9e7a",platform:"sim",displayMode:"fnft",sessionGUID:"",userTrackingEnabled:!1,language:"en_US",countryCode:"US",adobeGUID:"530746314404CB3E992015D5@AdobeID",firstName:"",lastName:"",accountStatus:"paid",debugMenu:!0,accountType:"",appStartClockTime:0,secondsLeftInTrial:0,dontShowAgain:!1,buttonInfo:{create_button_newdocs:{},create_button_open:{}},fnftSettings:{docSizeBounds:[3e5,3e5],defaultUnits:"pixelsUnit",units:["pixelsUnit","inchesUnit","centimetersUnit","millimetersUnit","pointsUnit","picasUnit","columnsUnit"],defaultResolutionUnits:"inchesUnit",resolutionUnits:["inchesUnit","centimetersUnit"],colorModes:[{mode:"bitmap",values:[1]},{mode:"grayscale",values:[8,16,32]},{mode:"RGB",values:[8,16,32]},{mode:"CMYK",values:[8,16]},{mode:"Lab",values:[8,16]}],colorMode:[{mode:"bitmap",values:[1]},{mode:"grayscale",values:[8,16,32]},{mode:"RGB",values:[8,16,32]},{mode:"CMYK",values:[8,16]},{mode:"Lab",values:[8,16]}],backgroundValues:["white","black","background","transparent","custom"],pointpicaConversion:72,columnConversion:{width:{value:180,unit:"pointsUnit"},gutter:{value:12,unit:"pointsUnit"}},colorProfileLists:{RGB:{STANDARD:["Adobe RGB (1998)","Apple RGB","ColorMatch RGB","ProPhoto RGB","sRGB IEC61966-2.1"],OTHER:["ACES CG Linear (Academy Color Encoding System AP1)","Camera RGB Profile","CIE RGB","Display","Display P3","e-sRGB","f.lux profile","Generic RGB Profile","HD 709-A","HDTV (Rec. 709)","PAL/SECAM","Rec. ITU-R BT.2020-1","Rec. ITU-R BT.709-5","ROMM RGB: ISO 22028-2:2013","ROMM-RGB","SD 170M-A","SDTV NTSC","SDTV PAL","SMPTE RP 431-2-2007 DCI (P3)","SMPTE-C","Wide Gamut RGB"]},CMYK:{STANDARD:["Coated FOGRA27 (ISO 12647-2:2004)","Coated FOGRA39 (ISO 12647-2:2004)","Coated GRACoL 2006 (ISO 12647-2:2004)","Japan Color 2001 Coated","Japan Color 2001 Uncoated","Japan Color 2002 Newspaper","Japan Color 2003 Web Coated","Japan Web Coated (Ad)","U.S. Sheetfed Coated v2","U.S. Sheetfed Uncoated v2","U.S. Web Coated (SWOP) v2","U.S. Web Uncoated v2","Uncoated FOGRA29 (ISO 12647-2:2004)","US Newsprint (SNAP 2007)","Web Coated FOGRA28 (ISO 12647-2:2004)","Web Coated SWOP 2006 Grade 3 Paper","Web Coated SWOP 2006 Grade 5 Paper"],OTHER:["Euroscale Coated v2","Euroscale Uncoated v2","Generic CMYK Profile","Japan Color 2011 Coated","Photoshop 4 Default CMYK","Photoshop 5 Default CMYK"]},grayscale:{STANDARD:["Dot Gain 10%","Dot Gain 15%","Dot Gain 20%","Dot Gain 25%","Dot Gain 30%","Gray Gamma 1.8","Gray Gamma 2.2"],OTHER:["Generic Gray Gamma 2.2 Profile","Generic Gray Profile","sGray"]}},colorSettings:{RGB:{policy:"preserve",workingProfile:"sRGB IEC61966-2.1",workingDisplayText:"Working RGB:  sRGB IEC61966-2.1"},CMYK:{policy:"off",workingProfile:"U.S. Web Coated (SWOP) v2",workingDisplayText:"Working CMYK:  U.S. Web Coated (SWOP) v2"},grayscale:{policy:"preserve",workingProfile:"Dot Gain 20%",workingDisplayText:"Working Gray:  Dot Gain 20%"}},userLocaleDecimal:".",defaultPresetSettings:{name:"Custom",group:"",width:11,height:17,units:"inchesUnit",profile:"U.S. Web Coated (SWOP) v2",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"CMYK",fill:"white",guides:[],artboards:[]},pixelAspectRatios:[{label:"Square Pixels",value:1},{label:"D1/DV NTSC (0.91)",value:.9091},{label:"D1/DV PAL (1.09)",value:1.094},{label:"D1/DV NTSC Widescreen (1.21)",value:1.2121},{label:"HDV 1080/DVCPRO HD 720 (1.33)",value:1.333},{label:"D1/DV PAL Widescreen (1.46)",value:1.4587},{label:"Anamorphic 2:1 (2)",value:2},{label:"DVCPRO HD 1080 (1.5)",value:1.5}],backgroundColor:{hue:0,saturation:75.2941,brightness:46.2745,type:"HSBColorClass"},pointsPerInch:72,defaultDocumentName:"Untitled-1",printPresetResolution:{value:300,units:"inchesUnit"},screenPresetResolution:{value:72,units:"inchesUnit"}}}},Q5XD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("OTUH"),24:n("l7cp")}}))};s.displayName="Search",t.default=s},T9or:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("circle",{cx:"18",cy:"10",r:"4"}),i.createElement("path",{d:"M31 2H5a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm-1 30h-6v-4a2 2 0 0 0 2-2v-6a4 4 0 0 0-4-4h-8a4 4 0 0 0-4 4v6a2 2 0 0 0 2 2v4H6V4h24z"}))},TeVw:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M24 4.1A19.9 19.9 0 1 0 43.9 24 19.9 19.9 0 0 0 24 4.1zm12.563 12.587L22.018 35.341a1.208 1.208 0 0 1-.875.461h-.072a1.2 1.2 0 0 1-.85-.352l-7.785-7.795a1.2 1.2 0 0 1 0-1.7l1.326-1.325a1.2 1.2 0 0 1 1.7 0l5.338 5.351 12.408-15.9a1.2 1.2 0 0 1 1.686-.21L36.352 15a1.2 1.2 0 0 1 .211 1.687z"}))},VbXa:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},"W+8C":function(e){e.exports={mruPresets:{mru:[{name:"Mock - Default Photoshop Size 1",description:"16 x 12 cm @ 118,11 ppcm",tip:"Start a new Default Photoshop Size document - 16 x 12 cm",group:"default",width:1600.002,height:1100.9972666666667,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[],lastUsedTime:1553588634544},{name:"Mock - Default Photoshop Size 2",description:"16 x 12 cm @ 118,11 ppcm",tip:"Start a new Default Photoshop Size document - 16 x 12 cm",group:"default",width:16.002,height:11.997266666666668,units:"centimetersUnit",profile:"default",resolution:118.11023622047244,resolutionUnits:"centimetersUnit",depth:8,scale:1,mode:"RGB",fill:"black",guides:[],artboards:[],lastUsedTime:1553588634544},{name:"Mock - Default Photoshop Size",description:"16 x 12 cm @ 118,11 ppcm",tip:"Start a new Default Photoshop Size document - 16 x 12 cm",group:"default",width:16.002,height:11.997266666666668,units:"centimetersUnit",profile:"default",resolution:118.11023622047244,resolutionUnits:"centimetersUnit",depth:8,scale:1,mode:"RGB",fill:"transparent",guides:[],artboards:[],lastUsedTime:1553588634544}]},mruTemplates:{recentlyUsedTemplates:[{elementRef:"cloud-asset://cc-api-storage.adobe.io/assets/adobe-libraries/c813d1d8-6022-4a5e-b22d-845470a975fd;node=62f232e2-735f-437c-9f51-ca085333903c",lastUsedTime:1565077763400}]},presets:{sections:[{section:"artillustration",presets:[{name:"Mock - 1000 pixel grid",description:"1000 x 1000 px @ 300 ppi",tip:"Start a new 1000 pixel grid document - 1000 x 1000 px",group:"artillustration",width:1e3,height:1e3,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - 2000 pixel grid",description:"2000 x 2000 px @ 300 ppi",tip:"Start a new 2000 pixel grid document - 2000 x 2000 px",group:"artillustration",width:2e3,height:2e3,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - Poster",description:"18 x 24 in @ 300 ppi",tip:"Start a new Poster document - 18 x 24 in",group:"artillustration",width:18,height:24,units:"inchesUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - Postcard",description:"4 x 6 in @ 300 ppi",tip:"Start a new Postcard document - 4 x 6 in",group:"artillustration",width:4,height:6,units:"inchesUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - 1080p",description:"1920 x 1080 px @ 300 ppi",tip:"Start a new 1080p document - 1920 x 1080 px",group:"artillustration",width:1920,height:1080,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - 720p",description:"1280 x 720 px @ 300 ppi",tip:"Start a new 720p document - 1280 x 720 px",group:"artillustration",width:1280,height:720,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]}]},{section:"clipboard",presets:[]},{section:"default",presets:[{name:"Mock - Default Photoshop Size",description:"16 x 12 cm @ 118,11 ppcm",tip:"Start a new Default Photoshop Size document - 16 x 12 cm",group:"default",width:16.002,height:11.997266666666667,units:"centimetersUnit",profile:"default",resolution:118.11023622047244,resolutionUnits:"centimetersUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]}]},{section:"europaper",presets:[{name:"Mock - A4",description:"210 x 297 mm @ 300 ppi",tip:"Start a new A4 document - 210 x 297 mm",group:"europaper",width:210,height:297,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - A6",description:"105 x 148 mm @ 300 ppi",tip:"Start a new A6 document - 105 x 148 mm",group:"europaper",width:105,height:148,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - A5",description:"148 x 210 mm @ 300 ppi",tip:"Start a new A5 document - 148 x 210 mm",group:"europaper",width:148,height:210,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - A3",description:"297 x 420 mm @ 300 ppi",tip:"Start a new A3 document - 297 x 420 mm",group:"europaper",width:297,height:420,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"separator"},{name:"Mock - B5",description:"176 x 250 mm @ 300 ppi",tip:"Start a new B5 document - 176 x 250 mm",group:"europaper",width:176,height:250,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - B4",description:"250 x 353 mm @ 300 ppi",tip:"Start a new B4 document - 250 x 353 mm",group:"europaper",width:250,height:353,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - B3",description:"353 x 500 mm @ 300 ppi",tip:"Start a new B3 document - 353 x 500 mm",group:"europaper",width:353,height:500,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"separator"},{name:"Mock - C4",description:"229 x 324 mm @ 300 ppi",tip:"Start a new C4 document - 229 x 324 mm",group:"europaper",width:229,height:324,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - C5",description:"162 x 229 mm @ 300 ppi",tip:"Start a new C5 document - 162 x 229 mm",group:"europaper",width:162,height:229,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - C6",description:"114 x 162 mm @ 300 ppi",tip:"Start a new C6 document - 114 x 162 mm",group:"europaper",width:114,height:162,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - DL",description:"110 x 220 mm @ 300 ppi",tip:"Start a new DL document - 110 x 220 mm",group:"europaper",width:110,height:220,units:"millimetersUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]}]},{section:"iconography",presets:[{name:"Mock - iOS 7 iPad App Icon",description:"152 x 152 px @ 72 ppi",tip:"Start a new iOS 7 iPad App Icon document - 152 x 152 px",group:"iconography",width:152,height:152,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:152,right:152}]},{name:"Mock - iOS 7 iPhone App icon",description:"120 x 120 px @ 72 ppi",tip:"Start a new iOS 7 iPhone App icon document - 120 x 120 px",group:"iconography",width:120,height:120,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:120,right:120}]},{name:"Mock - iOS 7 Spotlight",description:"80 x 80 px @ 72 ppi",tip:"Start a new iOS 7 Spotlight document - 80 x 80 px",group:"iconography",width:80,height:80,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:80,right:80}]},{name:"Mock - iOS 7 Settings",description:"58 x 58 px @ 72 ppi",tip:"Start a new iOS 7 Settings document - 58 x 58 px",group:"iconography",width:58,height:58,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:58,right:58}]},{name:"Mock - Mac Icon 1024",description:"1024 x 1024 px @ 72 ppi",tip:"Start a new Mac Icon 1024 document - 1024 x 1024 px",group:"iconography",width:1024,height:1024,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1024,right:1024}]},{name:"Mock - Mac Icon 512",description:"512 x 512 px @ 72 ppi",tip:"Start a new Mac Icon 512 document - 512 x 512 px",group:"iconography",width:512,height:512,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:512,right:512}]},{name:"Mock - Mac Icon 256",description:"256 x 256 px @ 72 ppi",tip:"Start a new Mac Icon 256 document - 256 x 256 px",group:"iconography",width:256,height:256,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:256,right:256}]},{name:"Mock - Mac Icon 128",description:"128 x 128 px @ 72 ppi",tip:"Start a new Mac Icon 128 document - 128 x 128 px",group:"iconography",width:128,height:128,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:128,right:128}]},{name:"Mock - Mac Icon 48",description:"48 x 48 px @ 72 ppi",tip:"Start a new Mac Icon 48 document - 48 x 48 px",group:"iconography",width:48,height:48,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:48,right:48}]},{name:"Mock - Mac Icon 32",description:"32 x 32 px @ 72 ppi",tip:"Start a new Mac Icon 32 document - 32 x 32 px",group:"iconography",width:32,height:32,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:32,right:32}]},{name:"Mock - Mac Icon 16",description:"16 x 16 px @ 72 ppi",tip:"Start a new Mac Icon 16 document - 16 x 16 px",group:"iconography",width:16,height:16,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:16,right:16}]},{name:"Mock - Legacy iPad App Icon",description:"144 x 144 px @ 72 ppi",tip:"Start a new Legacy iPad App Icon document - 144 x 144 px",group:"iconography",width:144,height:144,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:144,right:144}]},{name:"Mock - Legacy iPhone App icon",description:"114 x 114 px @ 72 ppi",tip:"Start a new Legacy iPhone App icon document - 114 x 114 px",group:"iconography",width:114,height:114,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:114,right:114}]},{name:"Mock - Legacy iPad Spotlight",description:"100 x 100 px @ 72 ppi",tip:"Start a new Legacy iPad Spotlight document - 100 x 100 px",group:"iconography",width:100,height:100,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:100,right:100}]}]},{section:"mobile",presets:[{name:"Mock - iPhone X",description:"1125 x 2436 px @ 72 ppi",tip:"Start a new iPhone X document - 1125 x 2436 px",group:"mobile",width:1125,height:2436,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:2436,right:1125}]},{name:"Mock - iPhone 8/7/6 Plus",description:"1242 x 2208 px @ 72 ppi",tip:"Start a new iPhone 8/7/6 Plus document - 1242 x 2208 px",group:"mobile",width:1242,height:2208,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:2208,right:1242}]},{name:"Mock - iPhone 8/7/6",description:"750 x 1334 px @ 72 ppi",tip:"Start a new iPhone 8/7/6 document - 750 x 1334 px",group:"mobile",width:750,height:1334,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1334,right:750}]},{name:"Mock - iPad Pro 12.9 in",description:"2048 x 2732 px @ 72 ppi",tip:"Start a new iPad Pro 12.9 in document - 2048 x 2732 px",group:"mobile",width:2048,height:2732,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:2732,right:2048}]},{name:"Mock - iPad Pro 10.5 in",description:"1668 x 2226 px @ 72 ppi",tip:"Start a new iPad Pro 10.5 in document - 1668 x 2226 px",group:"mobile",width:1668,height:2226,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:2226,right:1668}]},{name:"Mock - iPad Retina",description:"1536 x 2048 px @ 72 ppi",tip:"Start a new iPad Retina document - 1536 x 2048 px",group:"mobile",width:1536,height:2048,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:2048,right:1536}]},{name:"Mock - Android 1080p",description:"1080 x 1920 px @ 72 ppi",tip:"Start a new Android 1080p document - 1080 x 1920 px",group:"mobile",width:1080,height:1920,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1920,right:1080}]},{name:"Mock - Microsoft Surface Pro 4",description:"2736 x 1824 px @ 72 ppi",tip:"Start a new Microsoft Surface Pro 4 document - 2736 x 1824 px",group:"mobile",width:2736,height:1824,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1824,right:2736}]},{name:"Mock - Microsoft Surface Pro 3",description:"2160 x 1440 px @ 72 ppi",tip:"Start a new Microsoft Surface Pro 3 document - 2160 x 1440 px",group:"mobile",width:2160,height:1440,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1440,right:2160}]},{name:"Mock - iPhone 5",description:"640 x 1136 px @ 72 ppi",tip:"Start a new iPhone 5 document - 640 x 1136 px",group:"mobile",width:640,height:1136,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1136,right:640}]},{name:"Mock - iPad Mini",description:"768 x 1024 px @ 72 ppi",tip:"Start a new iPad Mini document - 768 x 1024 px",group:"mobile",width:768,height:1024,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1024,right:768}]},{name:"Mock - Apple Watch 42mm",description:"312 x 390 px @ 72 ppi",tip:"Start a new Apple Watch 42mm document - 312 x 390 px",group:"mobile",width:312,height:390,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:390,right:312}]},{name:"Mock - Apple Watch 38mm",description:"272 x 340 px @ 72 ppi",tip:"Start a new Apple Watch 38mm document - 272 x 340 px",group:"mobile",width:272,height:340,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:340,right:272}]},{name:"Mock - Mobile Design",description:"320 x 1024 px @ 72 ppi",tip:"Start a new Mobile Design document - 320 x 1024 px",group:"mobile",width:320,height:1024,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1024,right:320}]}]},{section:"photo",presets:[{name:"Mock - Landscape, 2 x 3",description:"3 x 2 in @ 300 ppi",tip:"Start a new Landscape, 2 x 3 document - 3 x 2 in",group:"photo",width:3,height:2,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Landscape, 4 x 6",description:"6 x 4 in @ 300 ppi",tip:"Start a new Landscape, 4 x 6 document - 6 x 4 in",group:"photo",width:6,height:4,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Landscape, 5 x 7",description:"7 x 5 in @ 300 ppi",tip:"Start a new Landscape, 5 x 7 document - 7 x 5 in",group:"photo",width:7,height:5,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Landscape, 8 x 10",description:"10 x 8 in @ 300 ppi",tip:"Start a new Landscape, 8 x 10 document - 10 x 8 in",group:"photo",width:10,height:8,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"separator"},{name:"Mock - Portrait, 2 x 3",description:"2 x 3 in @ 300 ppi",tip:"Start a new Portrait, 2 x 3 document - 2 x 3 in",group:"photo",width:2,height:3,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Portrait, 4 x 6",description:"4 x 6 in @ 300 ppi",tip:"Start a new Portrait, 4 x 6 document - 4 x 6 in",group:"photo",width:4,height:6,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Portrait, 5 x 7",description:"5 x 7 in @ 300 ppi",tip:"Start a new Portrait, 5 x 7 document - 5 x 7 in",group:"photo",width:5,height:7,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Portrait, 8 x 10",description:"8 x 10 in @ 300 ppi",tip:"Start a new Portrait, 8 x 10 document - 8 x 10 in",group:"photo",width:8,height:10,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]}]},{section:"user",presets:[{name:"Saved 1",description:"2000 x 2000 px @ 300 ppi",tip:"Start a new 2000 pixel grid document - 2000 x 2000 px",group:"saved",width:2e3,height:2e3,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Saved 3",description:"18 x 24 in @ 300 ppi",tip:"Start a new Poster document - 18 x 24 in",group:"saved",width:18,height:24,units:"inchesUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Saved 4",description:"2000 x 2000 px @ 300 ppi",tip:"Start a new 2000 pixel grid document - 2000 x 2000 px",group:"saved",width:2e3,height:2e3,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Saved 10",description:"2000 x 2000 px @ 300 ppi",tip:"Start a new 2000 pixel grid document - 2000 x 2000 px",group:"saved",width:2e3,height:2e3,units:"pixelsUnit",profile:"default",resolution:300,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]}]},{section:"uspaper",presets:[{name:"Mock - Letter",description:"8 x 11 in @ 300 ppi",tip:"Start a new Letter document - 8 x 11 in",group:"uspaper",width:8,height:11,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Legal",description:"8 x 14 in @ 300 ppi",tip:"Start a new Legal document - 8 x 14 in",group:"uspaper",width:8,height:14,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]},{name:"Mock - Tabloid",description:"11 x 17 in @ 300 ppi",tip:"Start a new Tabloid document - 11 x 17 in",group:"uspaper",width:11,height:17,units:"inchesUnit",profile:"default",resolution:"print",scale:1,fill:"white",guides:[],artboards:[]}]},{section:"video",presets:[{name:"Mock - HDTV 1080p",description:"1920 x 1080 px @ 72 ppi",tip:"Start a new HDTV 1080p document - 1920 x 1080 px",group:"video",width:1920,height:1080,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - HDV/HDTV 720p",description:"1280 x 720 px @ 72 ppi",tip:"Start a new HDV/HDTV 720p document - 1280 x 720 px",group:"video",width:1280,height:720,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - HDV 1080p",description:"1440 x 1080 px @ 72 ppi",tip:"Start a new HDV 1080p document - 1440 x 1080 px",group:"video",width:1440,height:1080,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.333,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - DVCPRO HD 720p",description:"960 x 720 px @ 72 ppi",tip:"Start a new DVCPRO HD 720p document - 960 x 720 px",group:"video",width:960,height:720,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.333,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - DVCPRO HD 1080p",description:"1280 x 1080 px @ 72 ppi",tip:"Start a new DVCPRO HD 1080p document - 1280 x 1080 px",group:"video",width:1280,height:1080,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.5,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - DCI 2K 1080p",description:"2048 x 1080 px @ 72 ppi",tip:"Start a new DCI 2K 1080p document - 2048 x 1080 px",group:"video",width:2048,height:1080,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - UHDTV/4K 2160p",description:"3840 x 2160 px @ 72 ppi",tip:"Start a new UHDTV/4K 2160p document - 3840 x 2160 px",group:"video",width:3840,height:2160,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - DCI 4K 2160p",description:"4096 x 2160 px @ 72 ppi",tip:"Start a new DCI 4K 2160p document - 4096 x 2160 px",group:"video",width:4096,height:2160,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.333,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - FUHDTV/8K 4320p",description:"7680 x 4320 px @ 72 ppi",tip:"Start a new FUHDTV/8K 4320p document - 7680 x 4320 px",group:"video",width:7680,height:4320,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.333,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - DCI 8K 4320p",description:"8192 x 4320 px @ 72 ppi",tip:"Start a new DCI 8K 4320p document - 8192 x 4320 px",group:"video",width:8192,height:4320,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.5,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"separator"},{name:"Mock - NTSC DV",description:"720 x 480 px @ 72 ppi",tip:"Start a new NTSC DV document - 720 x 480 px",group:"video",width:720,height:480,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:.9091,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - NTSC DV Widescreen",description:"720 x 480 px @ 72 ppi",tip:"Start a new NTSC DV Widescreen document - 720 x 480 px",group:"video",width:720,height:480,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.2121,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - NTSC D1",description:"720 x 486 px @ 72 ppi",tip:"Start a new NTSC D1 document - 720 x 486 px",group:"video",width:720,height:486,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:.9091,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - NTSC D1 Widescreen",description:"720 x 486 px @ 72 ppi",tip:"Start a new NTSC D1 Widescreen document - 720 x 486 px",group:"video",width:720,height:486,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.2121,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - NTSC D1 Square Pixel",description:"720 x 534 px @ 72 ppi",tip:"Start a new NTSC D1 Square Pixel document - 720 x 534 px",group:"video",width:720,height:534,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - NTSC D1 Widescreen Square Pixel",description:"872 x 486 px @ 72 ppi",tip:"Start a new NTSC D1 Widescreen Square Pixel document - 872 x 486 px",group:"video",width:872,height:486,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - PAL D1/DV",description:"720 x 576 px @ 72 ppi",tip:"Start a new PAL D1/DV document - 720 x 576 px",group:"video",width:720,height:576,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.094,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - PAL D1/DV Widescreen",description:"720 x 576 px @ 72 ppi",tip:"Start a new PAL D1/DV Widescreen document - 720 x 576 px",group:"video",width:720,height:576,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1.4587,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - PAL D1/DV Square Pixel",description:"788 x 576 px @ 72 ppi",tip:"Start a new PAL D1/DV Square Pixel document - 788 x 576 px",group:"video",width:788,height:576,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"Mock - PAL D1/DV Widescreen Square Pixel",description:"1050 x 576 px @ 72 ppi",tip:"Start a new PAL D1/DV Widescreen Square Pixel document - 1050 x 576 px",group:"video",width:1050,height:576,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[{direction:"h",coordinate:5},{direction:"h",coordinate:10},{direction:"h",coordinate:90},{direction:"h",coordinate:95},{direction:"v",coordinate:5},{direction:"v",coordinate:10},{direction:"v",coordinate:90},{direction:"v",coordinate:95}],artboards:[]},{name:"separator"},{name:"Mock - Cineon Half",description:"1828 x 1332 px @ 72 ppi",tip:"Start a new Cineon Half document - 1828 x 1332 px",group:"video",width:1828,height:1332,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - Cineon Full",description:"3656 x 2664 px @ 72 ppi",tip:"Start a new Cineon Full document - 3656 x 2664 px",group:"video",width:3656,height:2664,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - Film (2K)",description:"2048 x 1556 px @ 72 ppi",tip:"Start a new Film (2K) document - 2048 x 1556 px",group:"video",width:2048,height:1556,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - Film (4K)",description:"4096 x 3112 px @ 72 ppi",tip:"Start a new Film (4K) document - 4096 x 3112 px",group:"video",width:4096,height:3112,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]},{name:"Mock - Film (8K)",description:"8192 x 6224 px @ 72 ppi",tip:"Start a new Film (8K) document - 8192 x 6224 px",group:"video",width:8192,height:6224,units:"pixelsUnit",profile:"none",resolution:"screen",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[]}]},{section:"web",presets:[{name:"Mock - Web Most Common",description:"1366 x 768 px @ 72 ppi",tip:"Start a new Web Most Common document - 1366 x 768 px",group:"web",width:1366,height:768,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:768,right:1366}]},{name:"Mock - Web Large",description:"1920 x 1080 px @ 72 ppi",tip:"Start a new Web Large document - 1920 x 1080 px",group:"web",width:1920,height:1080,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1080,right:1920}]},{name:"Mock - Web Medium",description:"1440 x 900 px @ 72 ppi",tip:"Start a new Web Medium document - 1440 x 900 px",group:"web",width:1440,height:900,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:900,right:1440}]},{name:"Mock - Web Minimum",description:"1024 x 768 px @ 72 ppi",tip:"Start a new Web Minimum document - 1024 x 768 px",group:"web",width:1024,height:768,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:768,right:1024}]},{name:"Mock - Web Small",description:"1280 x 800 px @ 72 ppi",tip:"Start a new Web Small document - 1280 x 800 px",group:"web",width:1280,height:800,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:800,right:1280}]},{name:"Mock - MacBook Pro 13 (Retina)",description:"2560 x 1600 px @ 72 ppi",tip:"Start a new MacBook Pro 13 (Retina) document - 2560 x 1600 px",group:"web",width:2560,height:1600,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1600,right:2560}]},{name:"Mock - MacBook Pro 15 (Retina)",description:"2880 x 1800 px @ 72 ppi",tip:"Start a new MacBook Pro 15 (Retina) document - 2880 x 1800 px",group:"web",width:2880,height:1800,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1800,right:2880}]},{name:"Mock - iMac 27",description:"2560 x 1440 px @ 72 ppi",tip:"Start a new iMac 27 document - 2560 x 1440 px",group:"web",width:2560,height:1440,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1440,right:2560}]},{name:"Mock - Desktop HD Design",description:"1440 x 1024 px @ 72 ppi",tip:"Start a new Desktop HD Design document - 1440 x 1024 px",group:"web",width:1440,height:1024,units:"pixelsUnit",profile:"none",resolution:72,resolutionUnits:"inchesUnit",depth:8,scale:1,mode:"RGB",fill:"white",guides:[],artboards:[{top:0,left:0,bottom:1024,right:1440}]}]}]}}},Z7ej:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("T9or"),24:n("Aay3")}}))};s.displayName="Portrait",t.default=s},cW9B:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M29 16h-9V7a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v9H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9v9a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-9h9a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1z"}))},dO2t:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M12 18a1.988 1.988 0 0 0 .585 1.409l7.983 7.98a2 2 0 1 0 2.871-2.772l-.049-.049L16.819 18l6.572-6.57a2 2 0 0 0-2.773-2.87l-.049.049-7.983 7.98A1.988 1.988 0 0 0 12 18z"}))},dgy4:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M16.3 22.585L26.949 11.94a2 2 0 0 1 2.828 0l.282.282a2.006 2.006 0 0 1 0 2.828L21.112 24l8.948 8.949a2.006 2.006 0 0 1 0 2.828l-.282.282a2 2 0 0 1-2.828 0L16.3 25.414a2 2 0 0 1 0-2.829z"}))},eD7O:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("r/9v"),24:n("zapQ")}}))};s.displayName="Close",t.default=s},fZtv:function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n("yLpj"))},fjGn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("dO2t"),24:n("dgy4")}}))};s.displayName="ChevronLeft",t.default=s},hO8q:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M16 2a16 16 0 1 0 16 16A16 16 0 0 0 16 2zm10.666 9.08L14.018 27.341a1.208 1.208 0 0 1-.875.461h-.072a1.2 1.2 0 0 1-.85-.352l-7.785-7.793a1.2 1.2 0 0 1 0-1.7l1.326-1.325a1.2 1.2 0 0 1 1.7 0l5.338 5.349L23.315 8.473A1.2 1.2 0 0 1 25 8.263L26.455 9.4a1.2 1.2 0 0 1 .211 1.68z"}))},iN46:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arraysEqual=function(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}},l7cp:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M28 4a16 16 0 0 0-13.233 24.991l-9.888 9.888a3 3 0 0 0 4.242 4.242l9.888-9.888A16 16 0 1 0 28 4zm0 28.1A12.1 12.1 0 1 1 40.1 20 12.114 12.114 0 0 1 28 32.1z"}))},nc0P:function(e,t,n){var i;!function(r){"use strict";var o,a=20,s=1,l=1e6,c=-7,u=21,p="[big.js] ",h=p+"Invalid ",d=h+"decimal places",f=h+"rounding mode",m={},g=void 0,v=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function b(e,t,n,i){var r=e.c,o=e.e+t+1;if(o<r.length){if(1===n)i=r[o]>=5;else if(2===n)i=r[o]>5||5==r[o]&&(i||o<0||r[o+1]!==g||1&r[o-1]);else if(3===n)i=i||!!r[0];else if(i=!1,0!==n)throw Error(f);if(o<1)r.length=1,i?(e.e=-t,r[0]=1):r[0]=e.e=0;else{if(r.length=o--,i)for(;++r[o]>9;)r[o]=0,o--||(++e.e,r.unshift(1));for(o=r.length;!r[--o];)r.pop()}}else if(n<0||n>3||n!==~~n)throw Error(f);return e}function y(e,t,n,i){var r,o,a=e.constructor,s=!e.c[0];if(n!==g){if(n!==~~n||n<(3==t)||n>l)throw Error(3==t?h+"precision":d);for(n=i-(e=new a(e)).e,e.c.length>++i&&b(e,n,a.RM),2==t&&(i=e.e+n+1);e.c.length<i;)e.c.push(0)}if(r=e.e,n=(o=e.c.join("")).length,2!=t&&(1==t||3==t&&i<=r||r<=a.NE||r>=a.PE))o=o.charAt(0)+(n>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>n)for(r-=n;r--;)o+="0";else r<n&&(o=o.slice(0,r)+"."+o.slice(r));else n>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&(!s||4==t)?"-"+o:o}m.abs=function(){var e=new this.constructor(this);return e.s=1,e},m.cmp=function(e){var t,n=this,i=n.c,r=(e=new n.constructor(e)).c,o=n.s,a=e.s,s=n.e,l=e.e;if(!i[0]||!r[0])return i[0]?o:r[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=l)return s>l^t?1:-1;for(a=(s=i.length)<(l=r.length)?s:l,o=-1;++o<a;)if(i[o]!=r[o])return i[o]>r[o]^t?1:-1;return s==l?0:s>l^t?1:-1},m.div=function(e){var t=this,n=t.constructor,i=t.c,r=(e=new n(e)).c,o=t.s==e.s?1:-1,a=n.DP;if(a!==~~a||a<0||a>l)throw Error(d);if(!r[0])throw Error("[big.js] Division by zero");if(!i[0])return new n(0*o);var s,c,u,p,h,f=r.slice(),m=s=r.length,v=i.length,y=i.slice(0,s),w=y.length,_=e,x=_.c=[],S=0,E=a+(_.e=t.e-e.e)+1;for(_.s=o,o=E<0?0:E,f.unshift(0);w++<s;)y.push(0);do{for(u=0;u<10;u++){if(s!=(w=y.length))p=s>w?1:-1;else for(h=-1,p=0;++h<s;)if(r[h]!=y[h]){p=r[h]>y[h]?1:-1;break}if(!(p<0))break;for(c=w==s?r:f;w;){if(y[--w]<c[w]){for(h=w;h&&!y[--h];)y[h]=9;--y[h],y[w]+=10}y[w]-=c[w]}for(;!y[0];)y.shift()}x[S++]=p?u:++u,y[0]&&p?y[w]=i[m]||0:y=[i[m]]}while((m++<v||y[0]!==g)&&o--);return x[0]||1==S||(x.shift(),_.e--),S>E&&b(_,a,n.RM,y[0]!==g),_},m.eq=function(e){return!this.cmp(e)},m.gt=function(e){return this.cmp(e)>0},m.gte=function(e){return this.cmp(e)>-1},m.lt=function(e){return this.cmp(e)<0},m.lte=function(e){return this.cmp(e)<1},m.minus=m.sub=function(e){var t,n,i,r,o=this,a=o.constructor,s=o.s,l=(e=new a(e)).s;if(s!=l)return e.s=-l,o.plus(e);var c=o.c.slice(),u=o.e,p=e.c,h=e.e;if(!c[0]||!p[0])return p[0]?(e.s=-l,e):new a(c[0]?o:0);if(s=u-h){for((r=s<0)?(s=-s,i=c):(h=u,i=p),i.reverse(),l=s;l--;)i.push(0);i.reverse()}else for(n=((r=c.length<p.length)?c:p).length,s=l=0;l<n;l++)if(c[l]!=p[l]){r=c[l]<p[l];break}if(r&&(i=c,c=p,p=i,e.s=-e.s),(l=(n=p.length)-(t=c.length))>0)for(;l--;)c[t++]=0;for(l=t;n>s;){if(c[--n]<p[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=p[n]}for(;0===c[--l];)c.pop();for(;0===c[0];)c.shift(),--h;return c[0]||(e.s=1,c=[h=0]),e.c=c,e.e=h,e},m.mod=function(e){var t,n=this,i=n.constructor,r=n.s,o=(e=new i(e)).s;if(!e.c[0])throw Error("[big.js] Division by zero");return n.s=e.s=1,t=1==e.cmp(n),n.s=r,e.s=o,t?new i(n):(r=i.DP,o=i.RM,i.DP=i.RM=0,n=n.div(e),i.DP=r,i.RM=o,this.minus(n.times(e)))},m.plus=m.add=function(e){var t,n=this,i=n.constructor,r=n.s,o=(e=new i(e)).s;if(r!=o)return e.s=-o,n.minus(e);var a=n.e,s=n.c,l=e.e,c=e.c;if(!s[0]||!c[0])return c[0]?e:new i(s[0]?n:0*r);if(s=s.slice(),r=a-l){for(r>0?(l=a,t=c):(r=-r,t=s),t.reverse();r--;)t.push(0);t.reverse()}for(s.length-c.length<0&&(t=c,c=s,s=t),r=c.length,o=0;r;s[r]%=10)o=(s[--r]=s[r]+c[r]+o)/10|0;for(o&&(s.unshift(o),++l),r=s.length;0===s[--r];)s.pop();return e.c=s,e.e=l,e},m.pow=function(e){var t=this,n=new t.constructor(1),i=n,r=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(h+"exponent");for(r&&(e=-e);1&e&&(i=i.times(t)),e>>=1;)t=t.times(t);return r?n.div(i):i},m.round=function(e,t){var n=this.constructor;if(e===g)e=0;else if(e!==~~e||e<-l||e>l)throw Error(d);return b(new n(this),e,t===g?n.RM:t)},m.sqrt=function(){var e,t,n,i=this,r=i.constructor,o=i.s,a=i.e,s=new r(.5);if(!i.c[0])return new r(i);if(o<0)throw Error(p+"No square root");0===(o=Math.sqrt(i+""))||o===1/0?((t=i.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new r(((o=Math.sqrt(t))==1/0?"1e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):e=new r(o),a=e.e+(r.DP+=4);do{n=e,e=s.times(n.plus(i.div(n)))}while(n.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return b(e,r.DP-=4,r.RM)},m.times=m.mul=function(e){var t,n=this,i=n.constructor,r=n.c,o=(e=new i(e)).c,a=r.length,s=o.length,l=n.e,c=e.e;if(e.s=n.s==e.s?1:-1,!r[0]||!o[0])return new i(0*e.s);for(e.e=l+c,a<s&&(t=r,r=o,o=t,c=a,a=s,s=c),t=new Array(c=a+s);c--;)t[c]=0;for(l=s;l--;){for(s=0,c=a+l;c>l;)s=t[c]+o[l]*r[c-l-1]+s,t[c--]=s%10,s=s/10|0;t[c]=(t[c]+s)%10}for(s?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e},m.toExponential=function(e){return y(this,1,e,e)},m.toFixed=function(e){return y(this,2,e,this.e+e)},m.toPrecision=function(e){return y(this,3,e,e-1)},m.toString=function(){return y(this)},m.valueOf=m.toJSON=function(){return y(this,4)},(o=function e(){function t(n){var i=this;if(!(i instanceof t))return n===g?e():new t(n);n instanceof t?(i.s=n.s,i.e=n.e,i.c=n.c.slice()):function(e,t){var n,i,r;if(0===t&&1/t<0)t="-0";else if(!v.test(t+=""))throw Error(h+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".",""));(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length);for(r=t.length,i=0;i<r&&"0"==t.charAt(i);)++i;if(i==r)e.c=[e.e=0];else{for(;r>0&&"0"==t.charAt(--r););for(e.e=n-i-1,e.c=[],n=0;i<=r;)e.c[n++]=+t.charAt(i++)}}(i,n),i.constructor=t}return t.prototype=m,t.DP=a,t.RM=s,t.NE=c,t.PE=u,t.version="5.2.2",t}()).default=o.Big=o,void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},"r/9v":function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("path",{d:"M26.485 6.686L18 15.172 9.515 6.686a1 1 0 0 0-1.414 0L6.686 8.1a1 1 0 0 0 0 1.414L15.172 18l-8.486 8.485a1 1 0 0 0 0 1.414L8.1 29.314a1 1 0 0 0 1.414 0L18 20.828l8.485 8.485a1 1 0 0 0 1.414 0l1.415-1.413a1 1 0 0 0 0-1.414L20.828 18l8.485-8.485a1 1 0 0 0 0-1.414L27.9 6.686a1 1 0 0 0-1.415 0z"}))},r97P:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 36 36"},i.createElement("circle",{cx:"18",cy:"12",r:"4"}),i.createElement("path",{d:"M33 4H3a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1zm-1 24h-6v-6a4 4 0 0 0-4-4h-8a4 4 0 0 0-4 4v6H4V6h28z"}))},t9HZ:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M37 20H26V9a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11H9a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h11v11a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V26h11a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z"}))},vRGJ:function(e,t){e.exports=function e(t,i,r){i=i||[];var o,a=(r=r||{}).strict,s=!1!==r.end,l=r.sensitive?"":"i",c=0,u=i.length,p=0,h=0;if(t instanceof RegExp){for(;o=n.exec(t.source);)i.push({name:h++,optional:!1,offset:o.index});return t}if(Array.isArray(t))return t=t.map((function(t){return e(t,i,r).source})),new RegExp("(?:"+t.join("|")+")",l);t=("^"+t+(a?"":"/"===t[t.length-1]?"?":"/?")).replace(/\/\(/g,"/(?:").replace(/([\/\.])/g,"\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g,(function(e,t,n,r,o,a,s,l){t=t||"",n=n||"",o=o||"([^\\/"+n+"]+?)",s=s||"",i.push({name:r,optional:!!s,offset:l+c});var u=(s?"":t)+"(?:"+n+(s?t:"")+o+(a?"((?:[\\/"+n+"].+?)?)":"")+")"+s;return c+=u.length-e.length,u})).replace(/\*/g,(function(e,t){for(var n=i.length;n-- >u&&i[n].offset>t;)i[n].offset+=3;return"(.*)"}));for(;o=n.exec(t);){for(var d=0,f=o.index;"\\"===t.charAt(--f);)d++;d%2!=1&&((u+p===i.length||i[u+p].offset>o.index)&&i.splice(u+p,0,{name:h++,optional:!1,offset:o.index}),p++)}return t+=s?"$":"/"===t[t.length-1]?"":"(?=\\/|$)",new RegExp(t,l)};var n=/\((?!\?)/g},x1bj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=function(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)},t.snapValueToStep=function(e,t,n,i){i=parseFloat(i)||1;let r,o=(e-t)%i,a=i.toString().replace(/^(?:\d+)(?:\.(\d+))?$/g,"$1").length;r=2*Math.abs(o)>=i?e-Math.abs(o)+i:e-o;r<t?r=t:r>n&&(r=t+Math.floor((n-t)/i)*i);a>0&&(r=parseFloat(r.toFixed(a)));return r},t.handleDecimalOperation=function(e,t,n){let i="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const r=t.toString().split("."),o=n.toString().split("."),a=r[1]&&r[1].length||0,s=o[1]&&o[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),i="+"===e?t+n:t-n,i/=l}return i}},zapQ:function(e,t,n){"use strict";var i=n("q1tI");e.exports=i.createElement("svg",{viewBox:"0 0 48 48"},i.createElement("path",{d:"M35.314 8.444L24 19.757 12.686 8.444a1 1 0 0 0-1.414 0l-2.828 2.828a1 1 0 0 0 0 1.414L19.757 24 8.444 35.314a1 1 0 0 0 0 1.414l2.828 2.828a1 1 0 0 0 1.414 0L24 28.243l11.314 11.313a1 1 0 0 0 1.414 0l2.828-2.828a1 1 0 0 0 0-1.414L28.243 24l11.313-11.314a1 1 0 0 0 0-1.414l-2.828-2.828a1 1 0 0 0-1.414 0z"}))},zcnm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TabView",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Tab",{enumerable:!0,get:function(){return r.default}});var i=o(n("FN6C")),r=o(n("JnQh"));function o(e){return e&&e.__esModule?e:{default:e}}},ztOJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=a(n("trqI")),o=a(n("q1tI"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return o.default.createElement(r.default,i({},e,{icon:{18:n("70sn"),24:n("Ce8m")}}))};s.displayName="SaveTo",t.default=s}}]);