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

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

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

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

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

define("acplugins/task-handler/js/ac-task-handler",["plugins-common/ac-plugins"],function(e){var n=e.TaskHandler;return n||(e.TaskHandler=n={}),n.APP_API_VERSION="dev",n.PLUGIN_ID||(n.PLUGIN_ID="task_handler"),n}),define("acplugins/task-handler/js/ops/common/download-image-op",["core/ac-core","core/utils/http-util","core/utils/util","files/ac-files","acplugins/task-handler/js/ac-task-handler","core/ops/op"],function(e,n,t,a,r){return r.DownloadImageOp=e.Op.extend({run:function(e){var n=$.Deferred();return this._fetchImage(e,n),n.promise()},_fetchImage:function(e,t){var a,r=this,o="GET",i={};if(a=e.url,e.needAuthorization===!0){var s=n.getRequestHeaders(o);s.Authorization="Bearer "+this.options.appApi.sessionApi.getPrimaryToken(),s.Authorization&&(i.Authorization=s.Authorization)}fetch(a,{headers:i}).then(function(e){if(!e.ok)throw Error(e.statusText);return e.arrayBuffer()}).then(function(n){var a=new Uint8Array(n),o=new Blob([a],{type:"image"}),i=URL.createObjectURL(o),s=new Image;s.onload=function(){e.data=r._getBase64Image(s),e.error=void 0,t.resolve(e)},s.onerror=function(n){e.error=n,t.reject(e)},s.src=i}).catch(function(n){e.error=n,t.reject(e)})},_getBase64Image:function(e){var n=document.createElement("canvas");n.width=e.width,n.height=e.height;var t=n.getContext("2d");t.drawImage(e,0,0);var a=n.toDataURL("image/png");return console.log("new data.."),a.replace(/^data:image\/(png|jpg);base64,/,"")}}),r.DownloadImageOp}),define("acplugins/task-handler/js/ops/tasks/reader-save-image-op",["core/ac-core","acplugins/task-handler/js/ac-task-handler","core/ops/op"],function(e,n){var t=51200;return n.ReaderSaveImageOp=e.Op.extend({run:function(e){return void 0!=e.error?this._saveImageError(e):this._saveImageData(e,0,t)},_saveImageError:function(e){var n=$.Deferred(),t=e.id,a=e.error.toString(),r={methodName:"saveImageData",methodArgs:[{id:t,state:"error",errorInfo:a}]};return this.options.appApi.rnaApi.done(function(e){e.rnaTasksAPI.invokeMethod(r).done(function(){n.resolve()}).fail(function(){n.reject("Failed to saveImageError")})}),n.promise()},_saveImageData:function(e,n,t){function a(e,n,t){var s={methodName:"saveImageData",methodArgs:[{id:i,state:"continue"}]},c=e.length;n+t>=c?(s.methodArgs[0].state="complete",s.methodArgs[0].imgData=e.substr(n),o.appApi.rnaApi.done(function(e){e.rnaTasksAPI.invokeMethod(s).done(function(){r.resolve()}).fail(function(){r.reject("Failed to saveImageData")})})):(s.methodArgs[0].imgData=e.substr(n,t),o.appApi.rnaApi.done(function(o){o.rnaTasksAPI.invokeMethod(s).done(function(){a(e,n+t,t)}).fail(function(){r.reject("Failed to saveImageData")})}))}var r=$.Deferred(),o=this.options,i=e.id;return a(e.data,n,t),r.promise()}}),n.ReaderSaveImageOp}),define("acplugins/task-handler/js/ops/tasks/get-sophia-surface-content-op",["core/ac-core","acplugins/task-handler/js/ac-task-handler","core/utils/http-util","core/ops/op"],function(e,n,t){return n.GetSophiaSurfaceContentOp=e.Op.extend({maxRetryCount:5,currentTry:1,run:function(){var a,r,o=this.options,i=o.surfaces,s=o.getEncoded,c=o.scenario,u=o.xAdobeUUID,d=o.xAdobeUUIDType,l=o.Authorization,f=this.options.appApi.localeApi.getLocale(),p={};return _.isUndefined(this.deferred)&&(this.deferred=$.Deferred()),_.isUndefined(i)||_.isUndefined(s)||_.isUndefined(c)||"UNAUTH"===c&&(_.isUndefined(u)||_.isUndefined(d))||"ACCESS_TOKEN"===c&&_.isUndefined(l)?i.forEach(_.bind(function(e){var t={status:400,statusText:"BAD REQUEST",surfaceId:e,encoded:s};n.opFactory.create("ReaderSaveSophiaResponseOp",this.options).run(t)},this)):(a=e.getSophiaContentBaseUrl()+"/psdk/v2/content",r="GET","UNAUTH"!==c?p.Authorization=l:(p["x-adobe-uuid-type"]=d,p["x-adobe-uuid"]=u),p["x-api-key"]="AdobeAcrobat9",e.Util.isReader()&&(p["x-api-key"]="AdobeReader9"),a+="?surfaceId="+i.join("&surfaceId="),a+="&adcProductLanguage="+f,a+="&adcVersion="+o.adcVersion,a+="&adcProductType="+o.adcProductType,a+="&adcOSType="+o.adcOSType,_.isUndefined(o.adcCountryCode)||(a+="&adcCountryCode="+o.adcCountryCode),a+="&"+t.getSophiaClientIdQueryParam(),s&&(a+="&encodingScheme=BASE_64"),$.ajax(a,{dataType:"json",success:_.bind(function(e){i.forEach(_.bind(function(t){var a={},r={};a.surfaces={},_.isUndefined(e.surfaces[t])||(a.surfaces[t]=e.surfaces[t]),_.extend(r,e,a,{status:200,surfaceId:t,encoded:s}),n.opFactory.create("ReaderSaveSophiaResponseOp",this.options).run(r)},this))},this),complete:_.bind(function(){},this),error:_.bind(function(e){this.handleError(e)},this),global:!1,headers:p,type:r})),this.deferred.promise()},_getRetryDelay:function(){return 5*(this.currentTry-1)*1e3},handleError:function(e){if(e.status>=500&&this.currentTry<=this.maxRetryCount)this.currentTry+=1,_.delay(_.bind(function(){this.run()},this),this._getRetryDelay());else{var t=this.options;t.surfaces.forEach(function(a){var r={status:e.status,statusText:e.statusText,surfaceId:a,encoded:t.getEncoded};n.opFactory.create("ReaderSaveSophiaResponseOp",this.options).run(r)})}}}),n.GetSophiaSurfaceContentOp}),define("acplugins/task-handler/js/ops/tasks/reader-save-sophia-response-op",["core/ac-core","acplugins/task-handler/js/ac-task-handler","core/ops/op"],function(e,n){return n.ReaderSaveSophiaResponseOp=e.Op.extend({run:function(e){if(this.response=$.extend(!0,{},e),this.deferred=$.Deferred(),200===this.response.status&&_.isUndefined(this.response.statusText)){e.expirationDTS=Date.parse(e.expirationDTS).toString(),delete e.surfaces;var n={methodName:"saveSophiaSurfaceContentData",methodArgs:[{id:this.response.surfaceId,encoded:this.response.encoded,state:"start",isContainerData:!1,response:e}]};this.options.appApi.rnaApi.done(_.bind(function(e){e.rnaTasksAPI.invokeMethod(n).then(_.bind(function(){_.isUndefined(this.response.surfaces[this.response.surfaceId])?this._sendSurfaceResponseComplete():this._sendSurfaceAnalytics().then(_.bind(function(){this._sendSurfaceContainers()},this),_.bind(function(){this._saveCEFTransferError()},this))},this),_.bind(function(){this._saveCEFTransferError()},this))},this))}else this._saveContentError(this.response.status);return this.deferred.promise()},_saveCEFTransferError:function(){this._saveContentError(600)},_saveContentError:function(e){var n={methodName:"saveSophiaSurfaceContentData",methodArgs:[{id:this.response.surfaceId,encoded:this.response.encoded,state:"error",isContainerData:!1,response:{status:e}}]};this.options.appApi.rnaApi.done(_.bind(function(e){e.rnaTasksAPI.invokeMethod(n).always(_.bind(function(){console.log("Failed to saveSurfaceContentError"),this.deferred.reject()},this))},this))},_sendSurfaceAnalytics:function(){var e=$.Deferred(),n=this.response.surfaces[this.response.surfaceId].surfaceAnalyticsData,t={methodName:"saveSophiaSurfaceContentData",methodArgs:[{id:this.response.surfaceId,encoded:this.response.encoded,state:"surfaceAnalytics",isContainerData:!1,response:n}]};return this.options.appApi.rnaApi.done(_.bind(function(n){n.rnaTasksAPI.invokeMethod(t).then(_.bind(function(){e.resolve()},this),_.bind(function(){console.log("Failed to saveSurfaceAnalyticsError"),e.reject()},this))},this)),e.promise()},_sendSurfaceContainers:function(){var e=this.response.surfaces[this.response.surfaceId],t=[];for(var a in e.containers){var r=e.containers[a];r=_.extend(r,{id:this.response.surfaceId,encoded:this.response.encoded});var o=new n.opFactory.create("ReaderSaveSophiaSurfaceContainerOp",this.options).run(r);t.push(o)}$.when.apply($,t).then(_.bind(function(){this._sendSurfaceResponseComplete()},this),_.bind(function(){this._saveCEFTransferError()},this))},_sendSurfaceResponseComplete:function(){var e={methodName:"saveSophiaSurfaceContentData",methodArgs:[{id:this.response.surfaceId,encoded:this.response.encoded,state:"complete",isContainerData:!1}]};this.options.appApi.rnaApi.done(_.bind(function(n){n.rnaTasksAPI.invokeMethod(e).then(_.bind(function(){this.deferred.resolve()},this),_.bind(function(){console.log("Error while calling Sophia Surface content manager."),this._saveCEFTransferError()},this))},this))}}),n.ReaderSaveSophiaResponseOp}),define("acplugins/task-handler/js/ops/tasks/reader-save-sophia-surface-container-op",["core/ac-core","acplugins/task-handler/js/ac-task-handler","core/ops/op"],function(e,n){var t=51200;return n.ReaderSaveSophiaSurfaceContainerOp=e.Op.extend({run:function(e){this.deferred=$.Deferred(),this.containerData=$.extend(!0,{},e);var n={};for(var a in this.containerData)"data"!==a&&(n[a]=this.containerData[a],("startDTS"===a||"endDTS"===a)&&(n[a]=Date.parse(this.containerData[a]).toString()));var r={methodName:"saveSophiaSurfaceContentData",methodArgs:[{id:this.containerData.id,encoded:this.containerData.encoded,state:"start",isContainerData:!0,response:n}]};return this.options.appApi.rnaApi.done(_.bind(function(e){e.rnaTasksAPI.invokeMethod(r).then(_.bind(function(){console.log("Container object created."),this._sendContainerDataChunked(0,t)},this),_.bind(function(){console.log("Failed to saveContainerData"),this.deferred.reject()},this))},this)),this.deferred.promise()},_sendContainerDataChunked:function(e,n){var t=this.containerData.data.length,a={};a.containerId=this.containerData.containerId;var r={methodName:"saveSophiaSurfaceContentData",methodArgs:[{id:this.containerData.id,encoded:this.containerData.encoded,state:"continue",isContainerData:!0,response:a}]};e+n>=t?(r.methodArgs[0].response.dataPart=this.containerData.data.substr(e),r.methodArgs[0].state="complete",this.options.appApi.rnaApi.done(_.bind(function(e){e.rnaTasksAPI.invokeMethod(r).then(_.bind(function(){this.deferred.resolve()},this),_.bind(function(){console.log("Failed to saveContainerData"),this.deferred.reject()},this))},this))):(r.methodArgs[0].response.dataPart=this.containerData.data.substr(e,n),this.options.appApi.rnaApi.done(_.bind(function(t){t.rnaTasksAPI.invokeMethod(r).then(_.bind(function(){this._sendContainerDataChunked(e+n,n)},this),_.bind(function(){console.log("Failed to saveContainerData"),this.deferred.reject()},this))},this)))}}),n.ReaderSaveSophiaSurfaceContainerOp}),define("acplugins/task-handler/js/ops/plugin/starting-plugin-op",["core/ac-core","files/ac-files","acplugins/task-handler/js/ac-task-handler","core/utils/sc-analytics","core/ops/op"],function(e,n,t){t.StartingPluginOp=e.Op.extend({run:function(){return $.Deferred().resolve().promise()}})}),define("acplugins/task-handler/js/ops/op-factory",["core/ac-core","acplugins/task-handler/js/ac-task-handler","acplugins/task-handler/js/ops/common/download-image-op","acplugins/task-handler/js/ops/tasks/reader-save-image-op","acplugins/task-handler/js/ops/tasks/get-sophia-surface-content-op","acplugins/task-handler/js/ops/tasks/reader-save-sophia-response-op","acplugins/task-handler/js/ops/tasks/reader-save-sophia-surface-container-op","acplugins/task-handler/js/ops/plugin/starting-plugin-op"],function(e,n){n.OpFactory=e.Op.extend({create:function(e,t){var a=n[e];return a?new a(t):void LOG(0,"AcTaskHandler.OpFactory.create: Unrecognized class: "+e)}})}),!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("acplugins/task-handler/js/adobe-locales-amd/dist/adobe-locales.min",[],n):"object"==typeof exports?exports["adobe-locales"]=n():e["adobe-locales"]=n()}("undefined"!=typeof self?self:this,function(){return function(e){function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=6)}([function(e,n,t){function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0}),n.getCountryLanguages=n.createLocaleFromIMS=n.getAppNameFromURL=n.isUmbrellaRegionApp=n.getUmbrellaRegions=n.getAllLocales=n.langScript=n.normalize=n.priuse=n.region=n.script=n.extlang=n.lang=n.findKey=void 0;var r=t(2),o=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}(r),i=t(45),s=a(i),c=t(3),u=a(c),d=/^([a-zA-Z]{2})(?:[_-]+([a-zA-Z]{3})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{4})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{2}|[0-9]{3})(?=$|[_-]+))?(?:-x-([a-zA-Z0-9]{1,8})(?=$))?$/,l=function(e){return e.match(d)||[]},f=function(e,n){return Object.keys(e).filter(function(t){return n(e[t])})[0]},p=function(e){return l(e)[1]||""},h=function(e){return l(e)[2]||""},_=function(e){return l(e)[3]||""},g=function(e){return l(e)[4]||""},b=function(e){return l(e)[5]||""},v=function(e){var n="",t=l(e);if(t.length>0)if(void 0!==t[3])n=t[1]+"-"+t[3];else if("zh"===t[1].toLowerCase()&&void 0!==t[4]){var a=t[4].toLowerCase();n=["tw","hk"].includes(a)?"zh-Hant":"zh-Hans"}else n=t[1];return n},m={};Object.keys(o).forEach(function(e){var n=o[e];Object.keys(n).forEach(function(e){var t=n[e],a=t.toLowerCase();m[e]=t,void 0===m[t]&&(m[t]=t),void 0===m[a]&&(m[a]=t)})});var R=function(){return m},S=function(e){return f(c.umbrellaRegions,function(n){return n.includes(e.toLowerCase())})},E=function(e){return c.umbrellaRegionApp.includes(e)},A=function(e,n){var t=n&&o[n]&&o[n][e]?o[n][e]:R()[e];if(void 0===t&&n&&E(n)){var a=S(g(e));a&&(t=p(e).toLowerCase()+"-x-"+a.toUpperCase())}return t},P=function(e,n){var t=!1,a="en-US";if("string"==typeof e&&"string"==typeof n&&2===n.length){var r=v(e),o=n.toUpperCase(),i=s.default[o];void 0!==i&&(i.includes(r)?t=!0:r=i[0]||"en",a=r+"-"+o)}return{match:t,locale:a}},k=function(e){return e.replace(/^(https?:\/\/)/,"").replace(/^(www\.)/,"")},I=function(e){var n=void 0;if("string"==typeof e&&e.length){var t=k(e.trim().toLowerCase());n=f(u.default,function(e){return 0===t.indexOf(k(e.production))||0===t.indexOf(k(e.stage))})}return n},C=function(e){var n=["en"],t="string"==typeof e?s.default[e.toUpperCase()]||[]:n;return t.length?t:n};n.findKey=f,n.lang=p,n.extlang=h,n.script=_,n.region=g,n.priuse=b,n.normalize=A,n.langScript=v,n.getAllLocales=R,n.getUmbrellaRegions=S,n.isUmbrellaRegionApp=E,n.getAppNameFromURL=I,n.createLocaleFromIMS=P,n.getCountryLanguages=C},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var a=t(2),r=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}(a),o=t(0),i=function(e,n,t){if(void 0===r[e])return"";var a=void 0,i=void 0,s=o.getAllLocales();if(n&&(""!==o.lang(n)||void 0!==s[n]))if(void 0!==r[e][n])a=n;else if(i=s[n],"string"==typeof i?a=o.findKey(r[e],function(e){return e===i}):i=n,void 0===a&&""!==o.lang(i)){if(""!==o.script(i)){var c=i.substr(0,7).toLowerCase();a=o.findKey(r[e],function(e){return e.substr(0,7).toLowerCase()===c})}if(void 0===a&&o.isUmbrellaRegionApp(e)){var u=o.getUmbrellaRegions(o.region(n));if(u){var d=o.lang(n)+"-x-"+u.toUpperCase();a=o.findKey(r[e],function(e){return e===d}),void 0===a&&void 0!==r[e][u]&&(a=u)}}if(void 0===a){var l=i.substr(0,2).toLowerCase();a=o.findKey(r[e],function(e){return e.substr(0,2).toLowerCase()===l})}}return void 0===a&&void 0!==t&&(a=o.findKey(r[e],function(e){return e===t||e===s[t]})),"stock"===e&&"us"===a&&(a=""),a||""};n.default=i},function(e,n,t){function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(7);Object.defineProperty(n,"academic_verification",{enumerable:!0,get:function(){return a(r).default}});var o=t(8);Object.defineProperty(n,"accountmanagement",{enumerable:!0,get:function(){return a(o).default}});var i=t(9);Object.defineProperty(n,"adminconsole",{enumerable:!0,get:function(){return a(i).default}});var s=t(10);Object.defineProperty(n,"adobeaccount",{enumerable:!0,get:function(){return a(s).default}});var c=t(11);Object.defineProperty(n,"assets",{enumerable:!0,get:function(){return a(c).default}});var u=t(12);Object.defineProperty(n,"assets_v1",{enumerable:!0,get:function(){return a(u).default}});var d=t(13);Object.defineProperty(n,"behance",{enumerable:!0,get:function(){return a(d).default}});var l=t(14);Object.defineProperty(n,"cchome",{enumerable:!0,get:function(){return a(l).default}});var f=t(15);Object.defineProperty(n,"ccsearch",{enumerable:!0,get:function(){return a(f).default}}),Object.defineProperty(n,"comments",{enumerable:!0,get:function(){return a(c).default}});var p=t(16);Object.defineProperty(n,"color",{enumerable:!0,get:function(){return a(p).default}});var h=t(17);Object.defineProperty(n,"community",{enumerable:!0,get:function(){return a(h).default}});var _=t(18);Object.defineProperty(n,"creativecloudapp",{enumerable:!0,get:function(){return a(_).default}});var g=t(19);Object.defineProperty(n,"dc",{enumerable:!0,get:function(){return a(g).default}});var b=t(20);Object.defineProperty(n,"dcweb",{enumerable:!0,get:function(){return a(b).default}});var v=t(21);Object.defineProperty(n,"editbilling",{enumerable:!0,get:function(){return a(v).default}});var m=t(22);Object.defineProperty(n,"experiencecloud",{enumerable:!0,get:function(){return a(m).default}});var R=t(23);Object.defineProperty(n,"helpx",{enumerable:!0,get:function(){return a(R).default}});var S=t(24);Object.defineProperty(n,"ims",{enumerable:!0,get:function(){return a(S).default}});var E=t(25);Object.defineProperty(n,"lightroom",{enumerable:!0,get:function(){return a(E).default}});var A=t(26);Object.defineProperty(n,"jarvis",{enumerable:!0,get:function(){return a(A).default}});var P=t(27);Object.defineProperty(n,"mcs",{enumerable:!0,get:function(){return a(P).default}});var k=t(28);Object.defineProperty(n,"mt",{enumerable:!0,get:function(){return a(k).default}});var I=t(29);Object.defineProperty(n,"ngl",{enumerable:!0,get:function(){return a(I).default}});var C=t(30);Object.defineProperty(n,"acrobat_plan",{enumerable:!0,get:function(){return a(C).default}});var T=t(31);Object.defineProperty(n,"panel_licensing",{enumerable:!0,get:function(){return a(T).default}});var L=t(32);Object.defineProperty(n,"portfolio",{enumerable:!0,get:function(){return a(L).default}});var j=t(33);Object.defineProperty(n,"publiclinks",{enumerable:!0,get:function(){return a(j).default}});var U=t(34);Object.defineProperty(n,"redemption_ui",{enumerable:!0,get:function(){return a(U).default}}),Object.defineProperty(n,"sharesheet",{enumerable:!0,get:function(){return a(c).default}});var O=t(35);Object.defineProperty(n,"spark",{enumerable:!0,get:function(){return a(O).default}});var y=t(36);Object.defineProperty(n,"stock",{enumerable:!0,get:function(){return a(y).default}});var N=t(37);Object.defineProperty(n,"typekit",{enumerable:!0,get:function(){return a(N).default}}),Object.defineProperty(n,"fonts",{enumerable:!0,get:function(){return a(N).default}}),Object.defineProperty(n,"unifiedcheckout",{enumerable:!0,get:function(){return a(r).default}});var H=t(38);Object.defineProperty(n,"unifiedcheckout_v1",{enumerable:!0,get:function(){return a(H).default}});var z=t(39);Object.defineProperty(n,"uss",{enumerable:!0,get:function(){return a(z).default}});var D=t(40);Object.defineProperty(n,"utilitynav",{enumerable:!0,get:function(){return a(D).default}});var M=t(41);Object.defineProperty(n,"xd",{enumerable:!0,get:function(){return a(M).default}});var K=t(42);Object.defineProperty(n,"mini_plans",{enumerable:!0,get:function(){return a(K).default}});var F=t(43);Object.defineProperty(n,"adobedotcom",{enumerable:!0,get:function(){return a(F).default}}),Object.defineProperty(n,"globalnav",{enumerable:!0,get:function(){return a(F).default}});var w=t(44);Object.defineProperty(n,"_supplement",{enumerable:!0,get:function(){return a(w).default}})},function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t={academic_verification:{stage:"https://commerce-stg.adobe.com/academic-verification",production:"https://commerce.adobe.com/academic-verification"},acrobat_plan:{stage:"https://stage.acrobat.adobe.com",production:"https://acrobat.adobe.com"},adobeaccount:{stage:"https://stage.account.adobe.com",production:"https://account.adobe.com"},adminconsole:{stage:"https://stage.adminconsole.adobe.com",production:"https://adminconsole.adobe.com"},accountmanagement:{stage:"https://prestage.accounts.adobe.com",production:"https://accounts.adobe.com"},assets:{stage:"https://assets-stage.adobecc.com",production:"https://assets.adobe.com"},assets_v1:{stage:"https://assets2-stage.adobecc.com",production:"https://assets2.adobe.com"},behance:{stage:"https://net.s2stagehance.com",production:"https://www.behance.net"},cchome:{stage:"https://stage.creativecloud.adobe.com",production:"https://creativecloud.adobe.com"},color:{stage:"https://colorweb-stage.adobeku.com",production:"https://color.adobe.com"},community:{stage:"https://community-stg.adobe.com",production:"https://community.adobe.com"},creativecloudapp:{stage:"https://stage.ccmui.adobe.com",production:"https://creative.adobe.com"},dc:{stage:"https://cloud.stage.acrobat.com",production:"https://cloud.acrobat.com"},dcweb:{stage:"https://dc-stage.documentcloudtest.com",production:"https://documentcloud.adobe.com"},experiencecloud:{stage:"https://experiencecloud-stage.adobe.com",production:"https://experiencecloud.adobe.com"},fonts:{stage:"https://fonts-relstage.adobe.com",production:"https://fonts.adobe.com"},helpx:{stage:"https://helpx.stage.adobe.com",production:"https://helpx.adobe.com"},ims:{stage:"https://ims-na1-stg1.adobelogin.com",production:"https://adobeid-na1.services.adobe.com"},lightroom:{stage:"https://stage.adobelr.com",production:"https://lightroom.adobe.com"},mini_plans:{stage:"https://www.stage.adobe.com/mini-plans",production:"https://www.adobe.com/mini-plans"},ngl:{stage:"https://workflow-stage.licenses.adobe.com",production:"https://workflow.licenses.adobe.com"},portfolio:{stage:"https://portfolio.ccpsx.com",production:"https://portfolio.adobe.com"},redemption_ui:{stage:"https://redeem-stg.adobe.com",production:"https://redeem.adobe.com"},stock:{stage:"https://primary.stock.stage.adobe.com",production:"https://stock.adobe.com"},spark:{stage:"https://stage.adobeprojectm.com",production:"https://spark.adobe.com"},typekit:{stage:"https://relstage.typekit.com",production:"https://typekit.com"},unifiedcheckout:{stage:"https://commerce-stg.adobe.com",production:"https://commerce.adobe.com"},xd:{stage:"https://stage.xd.adobe.com",production:"https://xd.adobe.com"},adobedotcom:{stage:"https://www.stage.adobe.com",production:"https://www.adobe.com"}};n.urlApp=["adobedotcom","helpx","stock","accountmanagement","creativecloudapp","acrobat_plan","ngl","color","mini_plans"],n.langParamApp=["adobeaccount","redemption_ui","unifiedcheckout","academic_verification","community"],n.umbrellaRegionApp=["adobedotcom","helpx","globalnav","ims","acrobat_plan","ngl","jarvis","mini_plans"],n.umbrellaRegions={africa:["africa","ao","bf","bi","bj","bw","cd","cf","cg","ci","cm","cv","dj","er","et","ga","gh","gm","gn","gq","gw","ke","km","lr","ls","mg","ml","mu","mw","mz","na","ne","ng","rw","sc","sd","sl","sn","so","st","sz","td","tg","tz","ug","za","zm","zw"],cis:["cis","am","az","by","ge","kg","kz","md","tj","tm","uz"],la:["la","ar","bl","bo","br","bz","cl","co","cr","cu","do","ec","fk","gf","gt","gy","hn","ht","mf","mq","ni","pa","pe","pr","py","sr","sv","uy","ve"],mena:["mena","ae","bh","dz","eg","jo","kw","lb","ma","om","qa","sa","tn","ye","iq","ly","mr"],sea:["sea","id","my","ph","sg","th","vn"]},n.default=t},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var a=t(1),r=function(e){return e&&e.__esModule?e:{"default":e}}(a),o=t(0),i=function(e,n,t){var a=o.createLocaleFromIMS(n,t),i=a.locale,s=a.match,c=r.default(e,i);return"mini_plans"===e&&(s=s&&i===o.normalize(c,e)),{match:s,locale:c}};n.default=i},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var a=t(3),r=t(0),o=t(1),i=function(e){return e&&e.__esModule?e:{"default":e}}(o),s=function(e,n){try{if("string"!=typeof e||"string"!=typeof n)throw Error('expect "url" and "locale" to be string.');var t=e,o=r.getAppNameFromURL(e);if(void 0===o)throw Error('this app is not supported yet: "'+e+'"');var s=i.default(o,n);if(s){var c=r.getAllLocales();if(a.urlApp.includes(o)){"en"!==s&&"us"!==s||(s="");var u=/adobe(?:stock){0,1}\.com\/(.*?)(?=\/|$)/;"acrobat_plan"===o&&(u=/adobe\.com\/(.{5,10}?)(?=\/|$)/);var d=(e.match(u)||[])[1];void 0!==d&&void 0!==c[d]?t=e.replace(".com/"+d,""===s?".com":".com/"+s):""!==s&&(t=e.replace(".com",".com/"+s))}else{var l=a.langParamApp.includes(o)?"community"===o?"profile.language":"lang":"locale",f=new RegExp("("+l+"=)(.*?)(?=&|$)");t=void 0!==(e.match(f)||[])[2]?e.replace(f,"$1"+s):e+(e.includes("?")?"&":"?")+l+"="+s}}return t}catch(e){console.error("[getLocalizedURL] Error: "+e.message)}return e};n.default=s},function(e,n,t){function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(1);Object.defineProperty(n,"getAppLocale",{enumerable:!0,get:function(){return a(r).default}});var o=t(46);Object.defineProperty(n,"getAppLocales",{enumerable:!0,get:function(){return a(o).default}});var i=t(4);Object.defineProperty(n,"getAppLocaleFromIMS",{enumerable:!0,get:function(){return a(i).default}});var s=t(5);Object.defineProperty(n,"getLocalizedURL",{enumerable:!0,get:function(){return a(s).default}});var c=t(47);Object.defineProperty(n,"getLocalizedURLFromIMS",{enumerable:!0,get:function(){return a(c).default}});var u=t(48);Object.defineProperty(n,"parseLocaleParam",{enumerable:!0,get:function(){return a(u).default}});var d=t(0);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return d[e]}})})},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-hant":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={ar:"ar-AE",bg:"bg-BG",cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",et:"et-EE",fi:"fi-FI",fr:"fr-FR",he:"he-IL",hr:"hr-HR",hu:"hu-HU",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",sr:"sr-RS",sv:"sv-SE",tr:"tr-TR",uk:"uk-UA",zh_cn:"zh-Hans-CN",zh_tw:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-cn":"zh-Hans-CN","zh-tw":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={ar:"ar-AE",bg:"bg-BG",cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",et:"et-EE",fi:"fi-FI",fr:"fr-FR",he:"he-IL",hu:"hu-HU",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",sv:"sv-SE",tr:"tr-TR",uk:"uk-UA","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-tw":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"cs-CZ":"cs-CZ","da-DK":"da-DK","de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","fi-FI":"fi-FI","fr-FR":"fr-FR","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","nb-NO":"nb-NO","nl-NL":"nl-NL","pl-PL":"pl-PL","pt-BR":"pt-BR","ru-RU":"ru-RU","sv-SE":"sv-SE","tr-TR":"tr-TR","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",hu:"hu-HU",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR",uk:"uk-UA","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR",zh:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",ja:"ja-JP",pt:"pt-BR"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-cn":"zh-Hans-CN","zh-tw":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"da-DK":"da-DK","de-DE":"de-DE","en-US":"en-US","en-GB":"en-GB","es-ES":"es-ES","fi-FI":"fi-FI","fr-FR":"fr-FR","it-IT":"it-IT","ja-JP":"ja-JP","nb-NO":"nb-NO","nl-NL":"nl-NL","pt-BR":"pt-BR","sv-SE":"sv-SE"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"cs-CZ":"cs-CZ","da-DK":"da-DK","de-DE":"de-DE","en-US":"en-US","en-GB":"en-GB","es-ES":"es-ES","fi-FI":"fi-FI","fr-FR":"fr-FR","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","nb-NO":"nb-NO","nl-NL":"nl-NL","pl-PL":"pl-PL","pt-BR":"pt-BR","ru-RU":"ru-RU","sv-SE":"sv-SE","tr-TR":"tr-TR","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={ar:"ar-AE",bg:"bg-BG",cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",et:"et-EE",fi:"fi-FI",fr:"fr-FR",he:"he-IL",hu:"hu-HU",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",sv:"sv-SE",tr:"tr-TR",uk:"uk-UA","zh-hans":"zh-Hans-CN","zh-hant":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",it:"it-IT",ja:"ja-JP","ko-kr":"ko-KR","pt-br":"pt-BR","zh-cn":"zh-Hans-CN","zh-tw":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={mena_ar:"ar-x-MENA",bg:"bg-BG",cz:"cs-CZ",dk:"da-DK",de:"de-DE",at:"de-AT",ch_de:"de-CH",lu_de:"de-LU",en:"en-US",au:"en-AU",be_en:"en-BE",ca:"en-CA",cy_en:"en-CY",uk:"en-GB",gr_en:"en-GR",hk_en:"en-HK",ie:"en-IE",il_en:"en-IL","in":"en-IN",lu_en:"en-LU",mt:"en-MT",nz:"en-NZ",africa:"en-x-AFRICA",eeurope:"en-x-EEUROPE",mena_en:"en-x-MENA",sea:"en-x-SEA",es:"es-ES",mx:"es-MX",la:"es-x-LA",ee:"et-EE",fi:"fi-FI",fr:"fr-FR",be_fr:"fr-BE",ca_fr:"fr-CA",ch_fr:"fr-CH",lu_fr:"fr-LU",il_he:"he-IL",hu:"hu-HU",it:"it-IT",ch_it:"it-CH",jp:"ja-JP",kr:"ko-KR",lt:"lt-LT",lv:"lv-LV",no:"nb-NO",nl:"nl-NL",be_nl:"nl-BE",pl:"pl-PL",pt:"pt-PT",br:"pt-BR",ro:"ro-RO",ru:"ru-RU",cis:"ru-x-CIS",sk:"sk-SK",si:"sl-SI",se:"sv-SE",tr:"tr-TR",ua:"uk-UA",cn:"zh-Hans-CN",tw:"zh-Hant-TW",hk_zh:"zh-Hant-HK"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={bg_BG:"bg-BG",cs_CZ:"cs-CZ",da_DK:"da-DK",de_DE:"de-DE",en_US:"en-US",en_AE:"en-AE",en_GB:"en-GB",en_IL:"en-IL",en_XM:"en-x-MENA",es_ES:"es-ES",es_LA:"es-x-LA",es_MX:"es-MX",es_NA:"es-x-NA",et_EE:"et-EE",fi_FI:"fi-FI",fr_FR:"fr-FR",fr_CA:"fr-CA",fr_MA:"fr-MA",fr_XM:"fr-x-MENA",hr_HR:"hr-HR",hu_HU:"hu-HU",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",lt_LT:"lt-LT",lv_LV:"lv-LV",nb_NO:"nb-NO",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_BR:"pt-BR",ro_RO:"ro-RO",ru_RU:"ru-RU",sk_SK:"sk-SK",sl_SI:"sl-SI",sr_RS:"sr-RS",sr_SP:"sr-RS",sv_SE:"sv-SE",tr_TR:"tr-TR",uk_UA:"uk-UA",zh_HANS:"zh-Hans-CN",zh_CN:"zh-Hans-CN",zh_HANT:"zh-Hant-TW",zh_TW:"zh-Hant-TW"}
},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"de-DE":"de-DE","en-US":"en-US","en-GB":"en-GB","es-ES":"es-ES","es-MX":"es-MX","fr-FR":"fr-FR","fr-CA":"fr-CA","hu-HU":"hu-HU","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","nl-NL":"nl-NL","pt-BR":"pt-BR","ru-RU":"ru-RU","sv-SE":"sv-SE","th-TH":"th-TH","uk-UA":"uk-UA","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={ar_MENA:"ar-x-MENA",bg_BG:"bg-BG",cs_CZ:"cs-CZ",da_DK:"da-DK",de_DE:"de-DE",de_AT:"de-AT",de_CH:"de-CH",de_LU:"de-LU",en_US:"en-US",en_AU:"en-AU",en_BE:"en-BE",en_CA:"en-CA",en_CY:"en-CY",en_GB:"en-GB",en_GR:"en-GR",en_HK:"en-HK",en_IE:"en-IE",en_IL:"en-IL",en_IN:"en-IN",en_LU:"en-LU",en_MENA:"en-x-MENA",en_MT:"en-MT",en_NZ:"en-NZ",en_SEA:"en-x-SEA",en_ZA:"en-x-AFRICA",es_ES:"es-ES",es_LA:"es-x-LA",es_MX:"es-MX",et_EE:"et-EE",fi_FI:"fi-FI",fr_FR:"fr-FR",fr_BE:"fr-BE",fr_CA:"fr-CA",fr_CH:"fr-CH",fr_LU:"fr-LU",he_IL:"he-IL",hu_HU:"hu-HU",it_CH:"it-CH",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",lt_LT:"lt-LT",lv_LV:"lv-LV",nb_NO:"nb-NO",nl_BE:"nl-BE",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_BR:"pt-BR",pt_PT:"pt-PT",ro_RO:"ro-RO",ru_RU:"ru-RU",sk_SK:"sk-SK",sl_SI:"sl-SL",sv_SE:"sv-SE",tr_TR:"tr-TR",uk_UA:"uk-UA",zh_CN:"zh-Hans-CN",zh_TW:"zh-Hant-TW",zh_HK:"zh-Hant-HK"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={ar_AE:"ar-AE",bg_BG:"bg-BG",cs_CZ:"cs-CZ",da_DK:"da-DK",de_DE:"de-DE",en_US:"en-US",en_GB:"en-GB",en_HK:"en-HK",en_IL:"en-IL",es_ES:"es-ES",es_MX:"es-MX",et_EE:"et-EE",fi_FI:"fi-FI",fr_FR:"fr-FR",fr_CA:"fr-CA",he_IL:"he-IL",hr_HR:"hr-HR",hu_HU:"hu-HU",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",lt_LT:"lt-LT",lv_LV:"lv-LV",nb_NO:"nb-NO",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_BR:"pt-BR",ro_RO:"ro-RO",ru_RU:"ru-RU",sk_SK:"sk-SK",sl_SI:"sl-SI",sr_RS:"sr-RS",sv_SE:"sv-SE",tr_TR:"tr-TR",uk_UA:"uk-UA",zh_CN:"zh-Hans-CN",zh_HK:"zh-Hant-HK",zh_TW:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={ar_AE:"ar-AE",bg_BG:"bg-BG",ca_ES:"ca-ES",cs_CZ:"cs-CZ",da_DK:"da-DK",de_DE:"de-DE",el_GR:"el-GR",en_US:"en-US",es_ES:"es-ES",et_EE:"et-EE",fa_IR:"fa-IR",fi_FI:"fi-FI",fr_FR:"fr-FR",he_IL:"he-IL",hi_IN:"hi-IN",ht_HT:"ht-HT",hu_HU:"hu-HU",id_ID:"id-ID",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",lt_LT:"lt-LT",lv_LV:"lv-LV",ms_MY:"ms-MY",nl_NL:"nl-NL",no_NO:"nb-NO",pl_PL:"pl-PL",pt_BR:"pt-BR",ro_RO:"ro-RO",ru_RU:"ru-RU",sk_SK:"sk-SK",sl_SI:"sl-SI",sv_SE:"sv-SE",th_TH:"th-TH",tr_TR:"tr-TR",uk_UA:"uk-UA",ur_PK:"ur-PK",vi_VN:"vi-VN",zh_CN:"zh-Hans-CN",zh_TW:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs_CZ:"cs-CZ",da_DK:"da-DK",de_DE:"de-DE",en_US:"en-US",en_GB:"en-GB",en_IL:"en-IL",en_AE:"en-AE",en_XM:"en-x-MENA",es_ES:"es-ES",es_MX:"es-MX",es_LA:"es-x-LA",es_NA:"es-x-NA",fi_FI:"fi-FI",fr_FR:"fr-FR",fr_CA:"fr-CA",fr_MA:"fr-MA",fr_XM:"fr-x-MENA",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",nb_NO:"nb-NO",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_BR:"pt-BR",ru_RU:"ru-RU",sv_SE:"sv-SE",tr_TR:"tr-TR",hu_HU:"hu-HU",sk_SK:"sk-SK",sl_SI:"sl-SI",uk_UA:"uk-UA",zh_CN:"zh-Hans-CN",zh_TW:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"at/de":"de-AT","au/en":"en-AU","be/en":"en-BE","be/fr":"fr-BE","be/nl":"nl-BE","bg/en":"en-BG","br/pt":"pt-BR","ca/en":"en-CA","ca/fr":"fr-CA","ch/de":"de-CH","ch/fr":"fr-CH","ch/it":"it-CH","cn/zh-Hans":"zh-Hans-CN","cy/en":"en-CY","cz/cs":"cs-CZ","de/de":"de-DE","dk/da":"da-DK","ee/en":"en-EE","es/es":"es-ES","fi/fi":"fi-FI","fr/fr":"fr-FR","gr/en":"en-GR","hk/en":"en-HK","hk/zh-Hant":"zh-Hant-HK","hu/hu":"hu-HU","ie/en":"en-IE","il/en":"en-IL","in/en":"en-IN","it/it":"it-IT","jp/ja":"ja-JP","kr/ko":"ko-KR","la/es":"es-x-LA","lt/en":"en-LT","lu/de":"de-LU","lu/en":"en-LU","lu/fr":"fr-LU","lv/en":"en-LV","mena/en":"en-x-MENA","mt/en":"en-MT","mx/es":"es-MX","nl/nl":"nl-NL","no/no":"nb-NO","nz/en":"en-NZ","pl/pl":"pl-PL","pt/pt":"pt-PT","ro/en":"en-RO","ru/ru":"ru-RU","se/sv":"sv-SE","sea/en":"en-x-SEA","si/en":"en-SI","sk/en":"en-SK","tr/tr":"tr-TR","tw/zh-Hant":"zh-Hant-TW","ua/en":"en-UA","uk/en":"en-GB","us/en":"en-US","za/en":"en-x-AFRICA"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"cs-CZ":"cs-CZ","da-DK":"da-DK","de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","fi-FI":"fi-FI","fr-FR":"fr-FR","hu-HU":"hu-HU","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","nb-NO":"nb-NO","nl-NL":"nl-NL","pl-PL":"pl-PL","pt-BR":"pt-BR","pt-PT":"pt-PT","ru-RU":"ru-RU","sv-SE":"sv-SE","th-TH":"th-TH","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-CN":"zh-Hans-CN","zh-HK":"zh-Hant-HK","zh-TW":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={en_us:"en-US",en_au:"en-AU",en_be:"en-BE",en_br:"en-BR",en_ca:"en-CA",en_cis:"en-x-CIS",en_cy:"en-CY",en_gb:"en-GB",en_gr:"en-GR",en_il:"en-IL",en_ie:"en-IE",en_in:"en-IN",en_hk:"en-HK",en_lu:"en-LU",en_mena:"en-x-MENA",en_mt:"en-MT",en_nz:"en-NZ",en_sea:"en-x-SEA",en_za:"en-ZA",cs_cz:"cs-CZ",da_dk:"da-DK",de_de:"de-DE",de_ch:"de-CH",de_lu:"de-LU",es_es:"es-ES",es_419:"es-x-LA",es_mx:"es-MX",fr_fr:"fr-FR",fi_fi:"fi-FI",fr_ca:"fr-CA",fr_ch:"fr-CH",fr_be:"fr-BE",fr_mena:"fr-x-MENA",fr_lu:"fr-LU",it_it:"it-IT",it_ch:"it-CH",ja_jp:"ja-JP",ko_kr:"ko-KR",nb_no:"nb-NO",nl_nl:"nl-NL",pl_pl:"pl-PL",pt_pt:"pt-PT",pt_br:"pt-BR",ru_ru:"ru-RU",sv_se:"sv-SE",tr_tr:"tr-TR",zh_cn:"zh-Hans-CN",zh_tw:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-tw":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-hans":"zh-Hans-CN","zh-hant":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"en-US":"en-US","de-DE":"de-DE","fr-FR":"fr-FR","es-ES":"es-ES","it-IT":"it-IT","pt-BR":"pt-BR","ja-JP":"ja-JP","ko-KR":"ko-KR","nb-NO":"nb-NO","da-DK":"da-DK","nl-NL":"nl-NL","sv-SE":"sv-SE","fi-FI":"fi-FI","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={bg:"bg-BG",cz:"cs-CZ",dk:"da-DK",de:"de-DE",at:"de-AT",ch_de:"de-CH",lu_de:"de-LU",us:"en-US",be_en:"en-BE",ca:"en-CA",cy_en:"en-CY",au:"en-AU",uk:"en-GB",gr_en:"en-GR",ie:"en-IE",lu_en:"en-LU",mt:"en-MT",nz:"en-NZ",es:"es-ES",mx:"es-MX",ee:"et-EE",fi:"fi-FI",fr:"fr-FR",be_fr:"fr-BE",ca_fr:"fr-CA",ch_fr:"fr-CH",lu_fr:"fr-LU",hu:"hu-HU",it:"it-IT",ch_it:"it-CH",jp:"ja-JP",kr:"ko-KR",lt:"lt-LT",lv:"lv-LV",no:"nb-NO",nl:"nl-NL",be_nl:"nl-BE",pl:"pl-PL",pt:"pt-PT",br:"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",si:"sl-SI",se:"sv-SE",th:"th-TH",ua:"uk-UA",hk:"zh-Hant-HK"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"de-DE":"de-DE","en-US":"en-US","fr-FR":"fr-FR","ja-JP":"ja-JP"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",no:"nb-NO",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR","zh-tw":"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs_CZ:"cs-CZ",da_DK:"da-DK",de_DE:"de-DE",de_LU:"de-LU",el_GR:"el-GR",en_US:"en-US",en_GB:"en-GB",es_ES:"es-ES",et_EE:"et-EE",fr_FR:"fr-FR",fr_CA:"fr-CA",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",nb_NO:"nb-NO",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_BR:"pt-BR",pt_PT:"pt-PT",ro_RO:"ro-RO",ru_RU:"ru-RU",sv_SE:"sv-SE",tr_TR:"tr-TR",uk_UA:"uk-UA",zh_CN:"zh-Hans-CN",zh_TW:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={cs_CZ:"cs-CZ",da_DK:"da-DK",de_DE:"de-DE",en_US:"en-US",es_ES:"es-ES",fi_FI:"fi-FI",fr_FR:"fr-FR",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",nb_NO:"nb-NO",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_PT:"pt-PT",pt_BR:"pt-BR",ru_RU:"ru-RU",sv_SE:"sv-SE",tr_TR:"tr-TR",uk_UA:"uk-UA",zh_CN:"zh-Hans-CN",zh_TW:"zh-Hant-TW"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={"de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","fr-FR":"fr-FR","ja-JP":"ja-JP","ko-KR":"ko-KR","pt-BR":"pt-BR"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={bg:"bg-BG",cz:"cs-CZ",dk:"da-DK",de:"de-DE",at:"de-AT",ch_de:"de-CH",lu_de:"de-LU",us:"en-US",au:"en-AU",be_en:"en-BE",ca:"en-CA",cy_en:"en-CY",uk:"en-GB",gr_en:"en-GR",hk_en:"en-HK",ie:"en-IE",lu_en:"en-LU",mt:"en-MT",nz:"en-NZ",africa:"en-x-AFRICA",es:"es-ES",mx:"es-MX",ee:"et-EE",fi:"fi-FI",fr:"fr-FR",be_fr:"fr-BE",ca_fr:"fr-CA",ch_fr:"fr-CH",lu_fr:"fr-LU",hu:"hu-HU",it:"it-IT",ch_it:"it-CH",jp:"ja-JP",kr:"ko-KR",lt:"lt-LT",lv:"lv-LV",no:"nb-NO",nl:"nl-NL",be_nl:"nl-BE",pl:"pl-PL",pt:"pt-PT",br:"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",si:"sl-SI",se:"sv-SE",hk_zh:"zh-Hant-HK"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={mena_ar:"ar-x-MENA",bg:"bg-BG",cz:"cs-CZ",dk:"da-DK",de:"de-DE",at:"de-AT",ch_de:"de-CH",lu_de:"de-LU",us:"en-US",au:"en-AU",be_en:"en-BE",ca:"en-CA",cy_en:"en-CY",uk:"en-GB",gr_en:"en-GR",hk_en:"en-HK",ie:"en-IE",il_en:"en-IL","in":"en-IN",lu_en:"en-LU",mt:"en-MT",nz:"en-NZ",africa:"en-x-AFRICA",cis_en:"en-x-CIS",mena_en:"en-x-MENA",sea:"en-x-SEA",sg:"en-x-SEA",es:"es-ES",mx:"es-MX",la:"es-x-LA",ee:"et-EE",fi:"fi-FI",fr:"fr-FR",be_fr:"fr-BE",ca_fr:"fr-CA",ch_fr:"fr-CH",lu_fr:"fr-LU",il_he:"he-IL",hu:"hu-HU",it:"it-IT",ch_it:"it-CH",jp:"ja-JP",kr:"ko-KR",lt:"lt-LT",lv:"lv-LV",no:"nb-NO",nl:"nl-NL",be_nl:"nl-BE",pl:"pl-PL",pt:"pt-PT",br:"pt-BR",ro:"ro-RO",ru:"ru-RU",cis_ru:"ru-x-CIS",sk:"sk-SK",si:"sl-SI",se:"sv-SE",tr:"tr-TR",ua:"uk-UA",cn:"zh-Hans-CN",tw:"zh-Hant-TW",hk_zh:"zh-Hant-HK"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={uk:"uk-UA",pt:"pt-BR",th:"th-TH",zh:"zh-Hans-CN","zh-tw":"zh-Hant-TW",zh_TW:"zh-Hant-TW","zh-hk":"zh-Hant-HK","zh-HK":"zh-Hant-HK",zh_HK:"zh-Hant-HK",zh_Hans:"zh-Hans-CN",zh_hans:"zh-Hans-CN",zh_Hant:"zh-Hant-TW",zh_hant:"zh-Hant-TW","zh-hans-CN":"zh-Hans-CN","zh-hant-TW":"zh-Hant-TW","zh-hant-HK":"zh-Hant-HK"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={AF:[],AX:[],AL:[],DZ:["ar","fr","en"],AS:[],AD:["es","fr","pt"],AO:["pt"],AI:[],AQ:["en"],AG:["en"],AR:["es"],AM:["en","ru"],AW:[],AU:["en"],AT:["de"],AZ:["en","ru"],BS:["en"],BH:["ar","en"],BD:[],BB:["en"],BY:["ru"],BE:["nl","en","fr"],BZ:[],BJ:[],BM:["en"],BT:[],BO:["es"],BA:["en"],BW:["en"],BV:[],BR:["pt"],IO:[],BN:["en"],BG:["bg"],BF:[],BI:["en","fr"],KH:[],CM:["en","fr"],CA:["en","fr"],CV:[],KY:["en"],CF:[],TD:[],CL:["es"],CN:["zh-Hans","zh-hans"],CX:[],CC:["en"],CO:["es"],KM:[],CG:["en","fr"],CD:["en","fr"],CK:[],CR:["es"],CI:["en","fr"],HR:["hr"],CU:[],CY:["en"],CZ:["cs"],DK:["da"],DJ:[],DM:["en"],DO:["es"],EC:["es"],EG:["ar","en"],SV:["es"],GQ:[],ER:[],EE:["et"],ET:[],FK:[],FO:["da"],FJ:[],FI:["fi"],FR:["fr"],GF:["fr"],PF:[],TF:[],GA:[],GM:[],GE:["en","ru"],DE:["de"],GH:["en"],GI:[],GR:["en"],GL:[],GD:[],GP:["en","fr"],GU:[],GT:["es"],GG:[],GN:[],GW:[],GY:["en"],HT:["en","fr"],HM:[],VA:[],HN:["es"],HK:["en","zh-Hant","zh-hant"],HU:["hu"],IS:[],IN:["en"],ID:["en"],IR:[],IQ:["ar"],IE:["en"],IM:[],IL:["he","en"],IT:["it"],JM:["en"],JP:["ja"],JE:[],JO:["ar","en"],KZ:["ru"],KE:["en"],KI:[],KR:["ko"],KV:[],KW:["ar","en"],KG:["ru","en"],LA:[],LV:["lv"],LB:["ar","en"],LS:["en"],LR:["en"],LY:["ar"],LI:[],LT:["lt"],LU:["en","de","fr"],MO:[],MK:[],MG:["en","fr"],MW:[],MY:["en"],MV:[],ML:["en","fr"],MT:["en"],MH:[],MQ:["en","fr"],MR:["en","fr"],MU:["en","fr"],YT:["en","fr"],MX:["es"],FM:["en"],MD:["en","ru"],MC:[],MN:[],ME:[],MS:[],MA:["ar","fr","en"],MZ:["pt"],MM:[],NA:["en"],NR:[],NP:[],NL:["nl"],AN:["nl","en"],NC:[],NZ:["en"],NI:["es"],NE:["en","fr"],NG:["en"],NU:[],NF:[],MP:["en"],NO:["nb"],OM:["ar","en"],PK:["en"],PW:[],PS:[],PA:["es"],PG:[],PY:["es"],PE:["es"],PH:["en"],PN:[],PL:["pl"],PT:["pt"],PR:["es"],QA:["ar","en"],RE:[],RO:["ro"],RU:["ru"],RW:[],BL:[],SH:[],KN:["en"],LC:["en"],MF:[],PM:[],VC:["pt"],WS:[],SM:[],ST:[],SA:["ar","en"],SN:["en","fr"],RS:["rs"],SC:[],SL:[],SG:["en"],SK:["sk"],SI:["sl"],SB:[],SO:[],ZA:["en"],GS:[],ES:["es"],LK:[],SD:[],SR:["nl"],SJ:[],SZ:[],SE:["sv"],CH:["de","fr","it"],SY:[],TW:["zh-Hant","zh-hant"],TJ:["ru","en"],TZ:["en"],TH:["en"],TL:[],TG:[],TK:[],TO:[],TT:["en"],TN:["ar","fr","en"],TR:["tr"],TM:["ru","en"],TC:["en"],TV:[],UG:["en"],UA:["uk"],AE:["en","ar"],GB:["en"],US:["en"],UM:[],UY:["es"],UZ:["ru","en"],VU:[],VE:["es"],VN:["en"],VG:["en"],VI:[],WF:[],EH:[],YE:["ar","en"],ZM:["en"],ZW:["en"]}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var a=t(2),r=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}(a),o=function(e){return r[e]&&Object.keys(r[e])};n.default=o},function(e,n,t){function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(5),o=a(r),i=t(4),s=a(i),c=t(0),u=function(e,n,t){var a=c.getAppNameFromURL(e),r=s.default(a,n,t),i=r.locale;return{match:r.match,url:o.default(e,i)}};n.default=u},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var a=t(1),r=function(e){return e&&e.__esModule?e:{"default":e}}(a),o=t(0),i=t(3),s=function(e){var n=void 0;if("string"==typeof e){var t=o.getAppNameFromURL(e);if(t){var a=i.langParamApp.includes(t)?"lang":"locale",s=new RegExp("("+a+"=)(.*?)(?=&|$)");n=(e.match(s)||[])[2],n=r.default(t,n,"en-US")}}return n};n.default=s}])}),define("acplugins/task-handler/js/nls/ui-strings",{root:!0,"xx-xx":!0,"de-de":!0,"en-gb":!0,"es-es":!0,"fr-fr":!0,"it-it":!0,"ja-jp":!0,"da-dk":!0,"fi-fi":!0,"nb-no":!0,"nl-nl":!0,"pt-br":!0,"sv-se":!0}),define("acplugins/task-handler/js/nls/root/ui-strings",{EXAMPLE:"Example"}),define("acplugins/task-handler/js/views/plugin-view",["core/ac-core","acplugins/task-handler/js/ac-task-handler","core/utils/http-util","acplugins/task-handler/js/adobe-locales-amd/dist/adobe-locales.min","i18n!acplugins/task-handler/js/nls/ui-strings","core/views/plugin-content-view","core/views/collection-items-view"],function(e,n,t,a){return n.PluginView=e.PluginContentView.extend({initialize:function(){e.PluginContentView.prototype.initialize.call(this),this.performingSignIn=!1,this.pendingDownloadImageActions=[];var n=_.extend({},this.options,{searchString:"",appApi:{}});this.PGCOp=e.opFactory.create("GettingPGCSuggestionsOp",n)},render:function(){e.PluginContentView.prototype.render.call(this);var n=this.$el,t=document.createElement("img"),a=$(t);a.attr("id","temp-img"),a.css({width:100,height:100}),n.append(a)},getAppApiVersion:function(){return n.APP_API_VERSION},selectPlugin:function(){var e=this.options;return e.appApi.routerApi.navigate(e.pluginId),this._startPlugin().then(_.bind(function(){this.render(),this.options.appApi.done(_.bind(function(){this.options.appApi.displayApi.showSpinner(!1)},this))},this))},_startPlugin:function(){var e=this._startingPluginPromise;return e||(e=this._startingPluginPromise=n.opFactory.create("StartingPluginOp",this.options).run()),e},performTaskAction:function(e){if(void 0!=e.action)switch(e.action){case"downloadImageData":this._processDownloadImageAction(e);break;case"fetchPGCSuggestions":this._fetchPGCSuggestions(e);break;case"acceptPgcRecipients":this._acceptPGCRecipients(e);break;case"acceptNewPgcRecipients":this._acceptNewPGCRecipients(e);break;case"initiateEurekaReview":this.actionParams=e,_.delay(_.bind(function(){this._initiateEurekaReview(this.actionParams)},this),1e3);break;case"fetchMicrosoftGraphContacts":this._fetchMicrosoftGraphContacts(e);break;case"getSophiaSurfaceContent":this._getSophiaSurfaceContent(e);break;case"evaluateNGLUpsellWorkflow":this._evaluateNGLUpsellWorkflow(e)}},_processDownloadImageAction:function(e){void 0!=e.id&&void 0!=e.url&&(this._needAuthorizationHeader(e.url)?(e.needAuthorization=!0,this.options.appApi.sessionApi.isSignedIn()?this._downloadImageData(e):(this.pendingDownloadImageActions.push(e),this.performingSignIn||(this.performingSignIn=!0,this.options.appApi.sessionApi.addSignedInChangeCallback(this._processPendingDownloadImageActions),this.options.appApi.sessionApi.ensureSignedIn().then(_.bind(function(){this._processPendingDownloadImageActions(void 0,!0)},this))))):this._downloadImageData(e))},_acceptPGCRecipients:function(n){if(void 0!=n.tokens){var t=[],a=n.tokens.split(";");a.pop(),_.each(a,function(e){t.push(e)});var r=_.extend({},this.options,{tokens:t});e.opFactory.create("AcceptingPGCSuggestionsOp",r).run()}},_acceptNewPGCRecipients:function(n){if(void 0!=n.newEmails){var t=n.newEmails.split(";");t.pop(),_.each(t,function(n){var t=_.extend({},this.options,{newContactEmail:n});e.opFactory.create("AcceptingNewPGCSuggestionOp",t).run()})}},_fetchPGCSuggestions:function(e){void 0!=e.searchString&&(this.PGCOp.updateSearchString(e.searchString),this.PGCOp.options.appApi=this.options.appApi,this.PGCOp.run().then(_.bind(function(e){var n=e.length;if(n>0){for(var t=[],a=0;n>a;++a){var r=!1;e.at(a).get("synthetic")&&(r=!0),t.push({name:e.at(a).get("name"),email:e.at(a).get("email"),token:e.at(a).get("token"),synthetic:r})}this.options.appApi.rnaApi.done(_.bind(function(e){e._reviewAPI.invoke("SetPGCSuggestionsCollection",t)},this))}},this)))},_fetchMicrosoftGraphContacts:function(){this.options.appApi.rnaApi.done(_.bind(function(n){n.rnaMicrosoftGraphAPI.isMicrosoftGraphEnabled().done(_.bind(function(){n.rnaMicrosoftGraphAPI.isSignedInMicrosoftGraph().done(_.bind(function(n){if(n){var t=e.opFactory.create("MicrosoftGraphOutlookContactsOp",this.options);t.run().then(_.bind(function(e){var n=e.length;if(n>0){for(var t=[],a=0;n>a;++a)t.push({name:e.at(a).get("name"),email:e.at(a).get("email")});this.options.appApi.rnaApi.done(_.bind(function(e){e._reviewAPI.invoke("SetMSGraphOutlookContactsCollection",t)},this))}},this),_.bind(function(e){console.log(e)},this))}},this))},this))},this))},_sendErrorToAcrobat:function(e){var n=e.appApi.rnaApi;n.done(_.bind(function(n){void 0===e.code&&(e.code=""),n._reviewAPI.invoke("eurekaHandleServerSideError",[e.reviewSource,e.code])}),this)},_initiateEurekaReview:function(n){console.log("Inside Task Handler _initiateEurekaReview");var t=this.options.appApi.rnaApi;t.done(_.bind(function(e){e._reviewAPI.invoke("EurekaLogPerformance",["EurekaReviewInitiation StartingAyncReview"])}),this);var a={subjectTextTrimmed:n.emailSubject,messageText:n.emailMessage,isReview:n.isReview,isView:n.isView,persistence:n.persistence,parentID:n.parentID,isPublic:!1,isIndividual:!0,local_file_objects:[],customize_recipient_page:!1,recipients:n.listOfParticipants,uuidForFauxMode:n.uuidForFauxMode,fauxModeInitiationCommentPage:n.fauxModeInitiationCommentPage,fauxModeInitiationCommentId:n.fauxModeInitiationCommentId,reviewSource:n.reviewSource};_.isUndefined(n.deadLineDate)||_.isEmpty(n.deadLineDate)?this.options.deadline=void 0:a=_.extend({},a,{deadline:new Date(n.deadLineDate)}),_.isUndefined(n.reminderDate)||_.isEmpty(n.reminderDate)?this.options.reminder=void 0:a=_.extend({},a,{reminder:new Date(n.reminderDate)}),this.options=_.extend({},this.options,a);var r=new e.ValidateAndUploadReviewOp(this.options);r.run().then(_.bind(function(n){var t=new e.InitiateReviewOp(n);t.run().then(_.bind(function(){console.log("success")},this),_.bind(function(e){this._sendErrorToAcrobat(e)},this))},this),_.bind(function(e){this._sendErrorToAcrobat(e)},this))},_processPendingDownloadImageActions:function(e,n){if(n){for(var t=0;t<this.pendingDownloadImageActions.length;t++)this._downloadImageData(this.pendingDownloadImageActions[t]);this.pendingDownloadImageActions.length=0}},_downloadImageData:function(e){void 0!=e.id&&void 0!=e.url&&n.opFactory.create("DownloadImageOp",this.options).run(e).then(_.bind(function(e){this._saveImageData(e)},this)).fail(_.bind(function(e){this._saveImageData(e)},this))},_getSophiaSurfaceContent:function(e){n.opFactory.create("GetSophiaSurfaceContentOp",_.extend(this.options,e)).run()},_evaluateNGLUpsellWorkflow:function(e){var n=this.options.appApi.localeApi.getLocale(),t=a.getAppLocaleFromIMS("mini_plans",n,e.countryCode),r=[];r.push(1==t.match?"TRUE":"FALSE"),this.options.appApi.rnaApi.done(_.bind(function(e){e._servicesAPI.invoke("setNGLUpsellWorkflow",r)},this))},_saveImageData:function(e){n.opFactory.create("ReaderSaveImageOp",this.options).run(e)},_needAuthorizationHeader:function(e){return e.match(/behance\.net/i)?!1:!0}}),n.PluginView}),define("acplugins/task-handler/js/task-handler",["acplugins/task-handler/js/ac-task-handler","acplugins/task-handler/js/ops/op-factory","acplugins/task-handler/js/views/plugin-view"],function(e){_.extend(e,{init:function(){e.opFactory=new e.OpFactory}})}),define("acplugins/task-handler/js/plugin",["core/ac-core-init","acplugins/task-handler/js/ac-task-handler","acplugins/task-handler/js/task-handler"],function(e,n){n.init()});