/*! For license information please see bundle.531402e36ffce89f1fb6.min.js.LICENSE.txt */
(()=>{var e,t,r,n,o={60364:(e,t,r)=>{"use strict";r.d(t,{fW:()=>o,s_:()=>E});var n={};r.r(n),r.d(n,{H:()=>m,W:()=>g});var o={};r.r(o),r.d(o,{Hn:()=>n});var i={d:(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};(()=>{i.S={};var e={},t={};i.I=(r,n)=>{n||(n=[]);var o=t[r];if(o||(o=t[r]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[r])return e[r];i.o(i.S,r)||(i.S[r]={}),i.S[r];var a=[];return e[r]=a.length?Promise.all(a).then((()=>e[r]=1)):1}}})();var a={};i.d(a,{ec:()=>l,s_:()=>p,u0:()=>c});const s={stage:{ACE:"shared-components.stage.adobe.com",PANDORA:"pandora-cdn.stage.adobe.com"},prod:{ACE:"shared-components.adobe.com",PANDORA:"pandora-cdn.adobe.com"}},c={AssetBrowser:{getURL:(e,t)=>`https://${s[e].ACE}/${u("asset-browser",t)}/${t}/dist/remoteEntry.js`,scope:"cc_asset_browser",module:"AssetBrowser",uiComponents:["cc-asset-organizer","cc-assignment-thumbnail","cc-assignments-organizer-toolbar","cc-classrooms-organizer-toolbar","cc-document-picker","cc-edit-project-dialog","cc-edit-workspace-dialog","cc-manage-assignment-action-button","cc-manage-assignment-button","cc-manage-assignments-organizer","cc-preview-assignment","cc-preview-submission","cc-project-card","cc-project-creation-wizard","cc-projects-express-mobile-create-project-button","cc-projects-organizer-toolbar","cc-projects-organizer","cc-projects-project-contents-header","cc-student-assignments-organizer","cc-student-classrooms-organizer","cc-submissions-organizer-toolbar","cc-submissions-organizer","cc-teacher-classrooms-organizer"]},CCLibraries:{getURL:(e,t)=>`https://${s[e].ACE}/${u("libraries",t)}/${t}/remoteEntry.js`,scope:"cc_libraries",module:"CCLibraries",uiComponents:["cc-libraries","cc-libraries-expanded"]},ColorPicker:{getURL:(e,t)=>`https://${s[e].ACE}/${u("color-picker",t)}/${t}/dist/remoteEntry.js`,scope:"ccx_color_picker",module:"ColorPicker"},Commenting:{getURL:(e,t)=>`https://${s[e].ACE}/${u("commenting",t)}/${t}/dist/remoteEntry.js`,scope:"cc_commenting",module:"Commenting"},NeuralFiltersRemoveBackground:{getURL:(e,t)=>`https://${s[e].ACE}/${u("nf-remove-background",t)}/${t}/dist/remoteEntry.js`,scope:"cc_neural_filters",module:"NeuralFiltersRemoveBackground"},ShareSheet:{getURL:(e,t)=>`https://${s[e].ACE}/${u("share-sheet",t)}/${t}/dist/remoteEntry.js`,scope:"cc_share_sheet",module:"ShareSheet"},Timeline:{getURL:(e,t)=>`https://${s[e].ACE}/${u("timeline",t)}/${t}/remoteEntry.js`,scope:"ccx_timeline",module:"Timeline"},AccountMenuTrigger:{getURL:(e,t)=>`https://${s[e].PANDORA}/${u("web-component-account-menu-trigger",t)}/${t}/loader/remoteEntry.js`,scope:"pandora_web_component_account_menu_trigger",module:"AccountMenuTrigger"},AccountMenuMiniApp:{getURL:(e,t)=>`https://${s[e].PANDORA}/${u("react-mini-app-account-menu",t)}/${t}/loader/remoteEntry.js`,scope:"pandora_react_mini_app_account_menu",module:"AccountMenuMiniApp"},MiniAppBeManagePeople:{getURL:(e,t)=>`https://${s[e].ACE}/${u("react-mini-app-be-manage-people",t)}/${t}/loader/remoteEntry.js`,scope:"pandora_react_mini_app_be_manage_people",module:"MiniAppBeManagePeople"},XintFrontendFoundations:{getURL:(e,t)=>`https://${s[e].ACE}/${u("xint_web_components",t)}/${t}/remoteEntry.js`,scope:"xint_web_components",module:"XintFrontendFoundations",uiComponents:["brand-management-app"]}};function u(e,t){return function(e){return e.endsWith(".pr")||e.includes("-main-")||e.includes("-dev-")}(t)?`${e}_PR`:e}const l="__component_loader_override__";"undefined"==typeof window||window[l]||(window[l]=new class{constructor(e={}){this._overrides=e}get(e){var t;const r=null===(t=this._getLocalStorageOverrides())||void 0===t?void 0:t[e];return r&&(this._overrides[e]=r),this._overrides[e]||null}set(e,t){this._overrides[e]=t;const r=this._getLocalStorageOverrides()||{};null===localStorage||void 0===localStorage||localStorage.setItem(l,JSON.stringify(Object.assign(Object.assign({},r),{[e]:t})))}remove(e){delete this._overrides[e];const t=this._getLocalStorageOverrides();t&&t[e]&&(delete t[e],null===localStorage||void 0===localStorage||localStorage.setItem(l,JSON.stringify(t)))}clear(){this._overrides={},null===localStorage||void 0===localStorage||localStorage.removeItem(l)}_getLocalStorageOverrides(){const e=null===localStorage||void 0===localStorage?void 0:localStorage.getItem(l);return e?JSON.parse(e):null}});const f={config:{apiKey:void 0,getAccessToken:void 0,getProfile:void 0,appId:void 0,appName:void 0,appVersion:void 0,moduleFederationDefaultShareScope:void 0,cdnEnvironment:"prod",environment:"prod",customElements:window.customElements,locale:"en-US",spectrumTheme:"default",colorScheme:"light",clientId:void 0,context:void 0}};class p{constructor(e=f){this._options=e,this._scriptLoadingPromises=new Map,this._scopeLoadingPromises=new Map,this._loadedModulePromises=new Map;const t=e.config||{};this._config=this._assignDeprecatedConfig(t,t)}_loadScript(e){if(!this._scriptLoadingPromises.has(e)){const t=document.createElement("script");t.src=e,t.type="text/javascript",t.async=!0,t.setAttribute("crossorigin","anonymous"),this._scriptLoadingPromises.set(e,new Promise(((r,n)=>(t.onload=()=>r(),t.onerror=()=>{this._scopeLoadingPromises.delete(e),n(`Failed to load ${e}`)},document.head.appendChild(t),t))))}return this._scriptLoadingPromises.get(e)}_loadRemoteContainer(e,t){const r=`${e}#${t}`;if(!this._scopeLoadingPromises.has(r)){const n=async()=>{await this._loadScript(e),this._config.moduleFederationDefaultShareScope||await i.I("default");const r=this._config.moduleFederationDefaultShareScope||i.S.default;window.sharingscopes=r;const n=window[t];if(!n)throw new Error(`Could not find scope ${t}: this must match your ModuleFederationPlugin 'name'`);return await n.init(r),n};this._scopeLoadingPromises.set(r,n())}return this._scopeLoadingPromises.get(r)}_getModuleConfig(e,t){var r,n,o;const i=c[e],a=null===(r=window[l])||void 0===r?void 0:r.get(e);if(t=(null===(o=null===(n=window.__component_loader_versions__)||void 0===n?void 0:n[e])||void 0===o?void 0:o.version)||t,"string"==typeof a)return Object.assign(Object.assign({},i),{getURL:()=>a});if("object"==typeof a){const e=(null==a?void 0:a.version)||t,r=(null==a?void 0:a.cdnEnvironment)||this.getConfig().cdnEnvironment;return Object.assign(Object.assign({},i),{getURL:()=>this._isUrl(t)?t:i.getURL(r,e)})}return i}_isUrl(e){return e.startsWith("http")}_assignDeprecatedConfig(e,t){var r,n,o,i,a,s,c,u,l;const p=(null===(r=t.context)||void 0===r?void 0:r.environment)||t.environment||e.environment||f.config.environment;e===t&&e.context&&"prod"!==p&&console.warn&&console.warn("ComponentLoader({ config: { context } }) is deprecated. All context properties have moved to top-level `Config` properties."),e!==t&&t.context&&"prod"!==p&&console.warn&&console.warn("ComponentLoader.updateConfig({ context }) is deprecated. All context properties have moved to top-level `Config` properties."),e===t&&this._options.cdnEnvironment&&"prod"!==p&&console.warn&&(console.warn("ComponentLoader({ cdnEnvironment }) is deprecated. Use ComponentLoader({ config: { cdnEnvironment } })."),e.cdnEnvironment=this._options.cdnEnvironment);const d=(null===(n=t.context)||void 0===n?void 0:n.theme)||t.theme||t.colorScheme||e.colorScheme||f.config.colorScheme;return Object.assign(e,{locale:(null===(o=t.context)||void 0===o?void 0:o.locale)||t.locale||e.locale||f.config.locale,colorScheme:d,theme:d,clientId:t.clientId||(null===(i=t.context)||void 0===i?void 0:i.appId)||t.appId||e.clientId||f.config.clientId,customElements:t.customElements||e.customElements||f.config.customElements,cdnEnvironment:t.cdnEnvironment||e.cdnEnvironment||f.config.cdnEnvironment,environment:p,spectrumTheme:t.spectrumTheme||e.spectrumTheme||f.config.spectrumTheme,context:{environment:p,locale:(null===(a=t.context)||void 0===a?void 0:a.locale)||t.locale||e.locale||f.config.locale,theme:d,apiKey:(null===(s=t.context)||void 0===s?void 0:s.apiKey)||t.apiKey||e.apiKey||f.config.apiKey,appId:(null===(c=t.context)||void 0===c?void 0:c.appId)||t.appId||t.clientId||e.clientId||f.config.appId,appName:(null===(u=t.context)||void 0===u?void 0:u.appName)||t.appName||e.appName||f.config.appName,appVersion:(null===(l=t.context)||void 0===l?void 0:l.appVersion)||t.appVersion||e.appVersion||f.config.appVersion}}),Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]})),e}getConfig(){return this._config}async load(e,t,r={}){const n=Object.assign({},r),o=Object.assign(r,this._config,n);return await this._load(e,t,(e=>e.init(o)))}async _load(e,t,r){var n,o,i,a,s,c,u,l,f,p,d;(null===(n=window.performance)||void 0===n?void 0:n.mark)&&window.performance.mark(`component-loader:load:${e}:begin`);const h=`${e}#${t}`;let v=this._loadedModulePromises.get(h);if(v)(null===(p=window.performance)||void 0===p?void 0:p.mark)&&window.performance.mark(`component-loader:load:${e}:eval`);else{const n=this._getModuleConfig(e,t),p=this._isUrl(t)?t:n.getURL(this.getConfig().cdnEnvironment,t),d=n.scope,m=await this._loadRemoteContainer(p,d);if((null===(o=window.performance)||void 0===o?void 0:o.measure)&&window.performance.measure(`component-loader:load:${e}:eval`,`component-loader:load:${e}:begin`),(null===(i=window.performance)||void 0===i?void 0:i.mark)&&window.performance.mark(`component-loader:load:${e}:eval`),(null===(s=null===(a=window.__component_loader_versions__)||void 0===a?void 0:a[e])||void 0===s?void 0:s.version)===t&&(null===(u=null===(c=window.__component_loader_versions__)||void 0===c?void 0:c[e])||void 0===u?void 0:u.updateRequired))return await this._load(e,null===(f=null===(l=window.__component_loader_versions__)||void 0===l?void 0:l[e])||void 0===f?void 0:f.version,r);v=r("default"in(y=(await m.get(e))())?y.default:y),this._loadedModulePromises.set(h,v)}var y;return(null===(d=window.performance)||void 0===d?void 0:d.measure)&&window.performance.measure(`component-loader:load:${e}:init`,`component-loader:load:${e}:eval`),v}async updateConfig(e){this._config=this._assignDeprecatedConfig(Object.assign({},this._config),e),(await Promise.all(this._loadedModulePromises.values())).forEach((e=>{var t;null===(t=null==e?void 0:e.updateConfig)||void 0===t||t.call(e,this._config)}))}}var d,h,v,y,m,g,b,_,w,E=a.s_;!function(e){e.UpToDate="UpToDate",e.OutOfDate="OutOfDate",e.MetadataOutOfDate="MetadataOutOfDate",e.Restricted="Restricted",e.Discarded="Discarded",e.Broken="Broken"}(d||(d={})),function(e){e.Edit="Edit",e.View="View",e.None="None"}(h||(h={})),function(e){e.assets="ccac.dap.in.notify.assets",e.update="ccac.dap.out.notify.update",e.config="ccac.dap.in.notify.config",e.showShare="ccac.dap.out.notify.showShare",e.requestAction="ccac.libraries.out.request.action",e.requestUpdate="ccac.libraries.in.request.update",e.applyElements="ccac.libraries.out.request.apply"}(v||(v={})),function(e){e.openPicker="openPicker",e.openShareSheet="openShareSheet",e.openPreview="openPreview"}(y||(y={})),function(e){e.animation="application/vnd.adobe.element.animation+dcx",e.audio="application/vnd.adobe.element.audio+dcx",e.brush="application/vnd.adobe.element.brush+dcx",e.characterstyle="application/vnd.adobe.element.characterstyle+dcx",e.color="application/vnd.adobe.element.color+dcx",e.colortheme="application/vnd.adobe.element.colortheme+dcx",e.component="application/vnd.adobe.element.component+dcx",e.font="application/vnd.adobe.element.font+dcx",e.gradient="application/vnd.adobe.element.gradient+dcx",e.graphic="application/vnd.adobe.element.image+dcx",e.layerstyle="application/vnd.adobe.element.layerstyle+dcx",e.light="application/vnd.adobe.element.light+dcx",e.look="application/vnd.adobe.element.look+dcx",e.material="application/vnd.adobe.element.material+dcx",e.model="application/vnd.adobe.element.3d+dcx",e.mogrt="application/vnd.adobe.element.graphic+dcx",e.multicolorswatch="application/vnd.adobe.element.multicolorswatch+dcx",e.paragraphstyle="application/vnd.adobe.element.paragraphstyle+dcx",e.pattern="application/vnd.adobe.element.pattern+dcx",e.template="application/vnd.adobe.element.template+dcx",e.text="application/vnd.adobe.element.text+dcx",e.video="application/vnd.adobe.element.video+dcx",e.artifact="application/vnd.adobe.element.artifact+dcx"}(m||(m={})),function(e){e.primary="primary",e.rendition="rendition"}(g||(g={})),function(e){e.MOBILE="mobile",e.DESKTOP="desktop"}(b||(b={})),function(e){e.WEB="web",e.MOBILE="mobile"}(_||(_={})),function(e){e.OpenDocumentVersion="onOpenDocumentVersion",e.OpenDeepLinkVersion="onOpenDeepLinkVersion",e.VersionSelection="onVersionSelection",e.RestoreVersion="onRestoreVersion",e.Upgrade="onUpgrade",e.CreateCopy="onCreateCopy",e.Refresh="onRefresh",e.ModeChange="onModeChange",e.ThemeChange="onThemeChange",e.ClosePanel="onClosePanel",e.Error="onError",e.VersionBookmark="onVersionBookmark",e.VersionUnBookmark="onVersionUnBookmark",e.VersionBookmarkStart="onVersionBookmarkStart",e.VersionUnBookmarkStart="onVersionUnBookmarkStart",e.PermanentlyDeleteScreen="onPermanentlyDeleteScreen",e.PermanentlyDeleteVersion="onPermanentlyDeleteVersion",e.VersioningPanelLoadComplete="onVersioningPanelLoadComplete",e.PreviewThumbnailReceived="onPreviewThumbnailReceived"}(w||(w={}))},97061:(e,t,r)=>{"use strict";function n(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}r.d(t,{kG:()=>n})},80687:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:c;return(t&&t.strategy?t.strategy:s)(e,{cache:r,serializer:n})}function o(e,t,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function i(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function a(e,t,r,n,o){return r.bind(t,e,n,o)}function s(e,t){return a(e,this,1===e.length?o:i,t.cache.create(),t.serializer)}r.d(t,{A:()=>f,H:()=>n});var c=function(){return JSON.stringify(arguments)};function u(){this.cache=Object.create(null)}u.prototype.get=function(e){return this.cache[e]},u.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new u}},f={variadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)}}},32473:(e,t,r)=>{"use strict";r.d(t,{wD:()=>o,VG:()=>c,rp:()=>l,Ii:()=>m,O4:()=>s,uf:()=>u,Wh:()=>y,Jo:()=>d,yx:()=>h,Wi:()=>p,HI:()=>v,pe:()=>f,Qc:()=>ae});var n,o,i,a=r(63284);function s(e){return e.type===o.literal}function c(e){return e.type===o.argument}function u(e){return e.type===o.number}function l(e){return e.type===o.date}function f(e){return e.type===o.time}function p(e){return e.type===o.select}function d(e){return e.type===o.plural}function h(e){return e.type===o.pound}function v(e){return e.type===o.tag}function y(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function m(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(o||(o={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}));var g=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function _(e){var t={};return e.replace(b,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var w=r(66989),E=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,S=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?[rs]?$/g,k=/(\*)(0+)|(#+)(0+)|(0+)/g,C=/^(0+)$/;function x(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(O,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function L(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function I(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!C.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function P(e){return L(e)||{}}function A(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,w.pi)((0,w.pi)((0,w.pi)({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return(0,w.pi)((0,w.pi)({},e),P(t))}),{}));continue;case"engineering":t=(0,w.pi)((0,w.pi)((0,w.pi)({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return(0,w.pi)((0,w.pi)({},e),P(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(k,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(C.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(S.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(S,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=(0,w.pi)((0,w.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,w.pi)((0,w.pi)({},t),x(i)))}else if(O.test(o.stem))t=(0,w.pi)((0,w.pi)({},t),x(o.stem));else{var a=L(o.stem);a&&(t=(0,w.pi)((0,w.pi)({},t),a));var s=I(o.stem);s&&(t=(0,w.pi)((0,w.pi)({},t),s))}}return t}var T,R={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function j(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(R[r||""]||R[n||""]||R["".concat(n,"-001")]||R["001"])[0]}var N=new RegExp("^".concat(g.source,"*")),D=new RegExp("".concat(g.source,"*$"));function U(e,t){return{start:e,end:t}}var M=!!String.prototype.startsWith,F=!!String.fromCodePoint,H=!!Object.fromEntries,z=!!String.prototype.codePointAt,B=!!String.prototype.trimStart,G=!!String.prototype.trimEnd,K=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},V=!0;try{V="a"===(null===(T=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===T?void 0:T[0])}catch(e){V=!1}var W,Z=M?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Y=F?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},J=H?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},q=z?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},$=B?function(e){return e.trimStart()}:function(e){return e.replace(N,"")},X=G?function(e){return e.trimEnd()}:function(e){return e.replace(D,"")};function Q(e,t){return new RegExp(e,t)}if(V){var ee=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=function(e,t){var r;return ee.lastIndex=t,null!==(r=ee.exec(e)[1])&&void 0!==r?r:""}}else W=function(e,t){for(var r=[];;){var n=q(e,t);if(void 0===n||ne(n)||oe(n))break;r.push(n),t+=n>=65536?2:1}return Y.apply(void 0,r)};var te=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(e,r)).err)return s;i.push(s.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(n.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&re(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;i.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;i.push(s.val)}}else{var c=this.clonePosition();this.bump(),i.push({type:o.pound,location:U(c,this.clonePosition())})}}}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(i,"/>"),location:U(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,c=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!re(this.char()))return this.error(n.INVALID_TAG,U(c,this.clonePosition()));var u=this.clonePosition();return i!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,U(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:o.tag,value:i,children:s,location:U(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,U(c,this.clonePosition())))}return this.error(n.UNCLOSED_TAG,U(r,this.clonePosition()))}return this.error(n.INVALID_TAG,U(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var a=this.tryParseUnquoted(e,t);if(a)n+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var c=U(r,this.clonePosition());return{val:{type:o.literal,value:n,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(re(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Y.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Y(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,U(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(n.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:U(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(n.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=W(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:U(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,s){var c,u=this.clonePosition(),l=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(l){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,U(u,f));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition();if((E=this.parseSimpleArgStyleIfPossible()).err)return E;if(0===(m=X(E.val)).length)return this.error(n.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));p={style:m,styleLocation:U(d,this.clonePosition())}}if((S=this.tryParseArgumentClose(s)).err)return S;var h=U(s,this.clonePosition());if(p&&Z(null==p?void 0:p.style,"::",0)){var v=$(p.style.slice(2));if("number"===l)return(E=this.parseNumberSkeletonFromString(v,p.styleLocation)).err?E:{val:{type:o.number,value:r,location:h,style:E.val},err:null};if(0===v.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,h);var y=v;this.locale&&(y=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=j(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(v,this.locale));var m={type:i.dateTime,pattern:y,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?_(y):{}};return{val:{type:"date"===l?o.date:o.time,value:r,location:h,style:m},err:null}}return{val:{type:"number"===l?o.number:"date"===l?o.date:o.time,value:r,location:h,style:null!==(c=null==p?void 0:p.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,U(g,(0,a.pi)({},g)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==l&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));var E;if(this.bumpSpace(),(E=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return E;this.bumpSpace(),b=this.parseIdentifierIfPossible(),w=E.val}var S,O=this.tryParsePluralOrSelectOptions(e,l,t,b);if(O.err)return O;if((S=this.tryParseArgumentClose(s)).err)return S;var k=U(s,this.clonePosition());return"select"===l?{val:{type:o.select,value:r,options:J(O.val),location:k},err:null}:{val:{type:o.plural,value:r,options:J(O.val),offset:w,pluralType:"plural"===l?"cardinal":"ordinal",location:k},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,U(u,f))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,U(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(E).filter((function(e){return e.length>0}));r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:i.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?A(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var i,a=!1,s=[],c=new Set,u=o.value,l=o.location;;){if(0===u.length){var f=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;l=U(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}if(c.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var v=this.tryParseArgumentClose(d);if(v.err)return v;s.push([u,{value:h.val,location:U(d,this.clonePosition())}]),c.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(n.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=U(n,this.clonePosition());return o?K(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Z(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function re(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function oe(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ie(e){e.forEach((function(e){if(delete e.location,p(e)||d(e))for(var t in e.options)delete e.options[t].location,ie(e.options[t].value);else u(e)&&y(e.style)||(l(e)||f(e))&&m(e.style)?delete e.style.location:v(e)&&ie(e.children)}))}function ae(e,t){void 0===t&&(t={}),t=(0,a.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new te(e,t).parse();if(r.err){var o=SyntaxError(n[r.err.kind]);throw o.location=r.err.location,o.originalMessage=r.err.message,o}return(null==t?void 0:t.captureLocation)||ie(r.val),r.val}},27292:(e,t,r)=>{"use strict";r.d(t,{$6:()=>f,OV:()=>s,Qe:()=>u,Rw:()=>i,X9:()=>l,bc:()=>n,gb:()=>c,wI:()=>a});var n,o=r(66989);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var i=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,o.ZT)(t,e),t}(Error),a=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,o.ZT)(t,e),t}(i),s=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,o.ZT)(t,e),t}(i),c=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,o.ZT)(t,e),t}(i),u=function(e){function t(t,r,o){return e.call(this,n.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),o)||this}return(0,o.ZT)(t,e),t}(i),l=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,o)||this;return i.descriptor=n,i}return(0,o.ZT)(t,e),t}(u),f=function(e){function t(t,r){var o=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.ZT)(t,e),t}(i)},4686:(e,t,r)=>{"use strict";r.d(t,{L6:()=>s,Sn:()=>u,TB:()=>p,Z0:()=>c,ax:()=>f});var n=r(66989),o=r(11183),i=r(80687),a=r(27292);function s(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var c={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function l(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function f(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,a=Intl.DisplayNames,s=(0,i.H)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:l(e.dateTime),strategy:i.A.variadic}),c=(0,i.H)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:l(e.number),strategy:i.A.variadic}),u=(0,i.H)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:l(e.pluralRules),strategy:i.A.variadic});return{getDateTimeFormat:s,getNumberFormat:c,getMessageFormat:(0,i.H)((function(e,t,r,i){return new o.C(e,t,r,(0,n.pi)({formatters:{getNumberFormat:c,getDateTimeFormat:s,getPluralRules:u}},i||{}))}),{cache:l(e.message),strategy:i.A.variadic}),getRelativeTimeFormat:(0,i.H)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,(0,n.ev)([void 0],e,!1)))}),{cache:l(e.relativeTime),strategy:i.A.variadic}),getPluralRules:u,getListFormat:(0,i.H)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,(0,n.ev)([void 0],e,!1)))}),{cache:l(e.list),strategy:i.A.variadic}),getDisplayNames:(0,i.H)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,n.ev)([void 0],e,!1)))}),{cache:l(e.displayNames),strategy:i.A.variadic})}}function p(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new a.wI("No ".concat(t," format named: ").concat(r)))}},6884:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(76241),s=r(99213),c=r(13704),u=r(37356),l=r(88287),f=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this,t)||this;r.onAccessTokenHasExpired=null,r.onAccessToken=null,r.onReauthAccessToken=null,r.onError=null,r.handlers={triggerOnAccessToken:function(e){r.onAccessToken&&r.onAccessToken(e)},triggerOnReauthAccessToken:function(e){r.onReauthAccessToken&&r.onReauthAccessToken(e)},triggerOnAccessTokenHasExpired:function(){r.onAccessTokenHasExpired&&r.onAccessTokenHasExpired()},triggerOnReady:function(e){void 0===e&&(e=null),r.onReady&&r.onReady(e)},triggerOnError:function(e,t){r.onError&&r.onError(e,t)}};var n=t||window[a.AdobeIdKey];if(!n||!n.client_id)throw new Error("Please provide required adobeId, client_id information");var o=n.standalone,i=n.autoValidateToken,u=n.modalSettings,l=void 0===u?{}:u,f=n.modalMode,p=void 0!==f&&f,d=n.onAccessToken,h=n.onReauthAccessToken,v=n.onAccessTokenHasExpired,y=n.onReady,m=n.onError,g=n.overrideErrorHandler,b=n.onModalModeSignInComplete;return o&&o.token&&(r.standalone=new c.StandaloneToken(o)),r.modalSettings=new s.PopupSettings(l),r.modalMode=p,r.autoValidateToken=!!i,r.onAccessToken=d||null,r.onReauthAccessToken=h||null,r.onAccessTokenHasExpired=v||null,r.onReady=y||null,r.onError=m||null,r.overrideErrorHandler=g,r.onModalModeSignInComplete=b,r}return o(t,e),t.prototype.createSocialProviderRedirectRequest=function(e,t,r,n,o){void 0===o&&(o=l.IGrantTypes.token);var a={idp_flow:"social.deep_link.web",provider_id:e},s=i(i({},t),a);return this.createRedirectRequest(s,r,n,o)},t.prototype.createReAuthenticateRedirectRequest=function(e,t,r,n,o){void 0===n&&(n=u.IReauth.check),void 0===o&&(o=l.IGrantTypes.token);var a={reauth:n},s=i(i({},e),a);return this.createRedirectRequest(s,t,r,o)},t.prototype.createSignUpRedirectRequest=function(e,t,r,n){void 0===n&&(n=l.IGrantTypes.token);var o=i(i({},e),{idp_flow:"create_account"});return this.createRedirectRequest(o,t,r,n)},t}(r(19677).AdobeIdThinData);t.AdobeIdData=f},19677:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(76241),a=r(78842),s=o(r(31797)),c=r(74592),u=o(r(23681)),l=r(37356),f=r(88287),p=r(2673),d=function(){function e(e){void 0===e&&(e=null),this.analyticsParameters=new c.AnalyticsParameters,this.api_parameters={},this.locale="",this.scope="AdobeID",this.client_id="",this.environment=a.IEnvironment.PROD,this.useLocalStorage=!1,this.onReady=null,this.onModalModeSignInComplete=null,this.proxiedCheckToken=!1;var t=e||window[i.AdobeIdKey];if(!t||!t.client_id)throw new Error("Please provide required adobeId, client_id information");var r=t.api_parameters,n=t.client_id,o=t.locale,l=t.scope,f=t.ijt,p=t.environment,d=void 0===p?a.IEnvironment.PROD:p,h=t.redirect_uri,v=t.useLocalStorage,y=t.logsEnabled,m=t.onReady,g=t.rideRedirectUri,b=t.proxiedCheckToken;this.environment=d,this.api_parameters=r||{},this.client_id=n,this.locale=o||i.DEFAULT_LANGUAGE,this.scope=l?l.replace(/\s/gi,""):"",this.redirect_uri=h,this.ijt=f,this.useLocalStorage=v,y?u.default.enableLogging():u.default.disableLogging(),this.onReady=m||null,this.rideRedirectUri=g,this.proxiedCheckToken=b,this.fillAnalyticsParameters(t),s.default.loadEnvironment(d,b,window.location.hostname)}return e.prototype.fillAnalyticsParameters=function(e){var t=e.analytics,r=void 0===t?{}:t,n=r.appCode,o=void 0===n?"":n,i=r.appVersion,a=void 0===i?"":i,s=this.analyticsParameters;s.appCode=o,s.appVersion=a},e.prototype.createSocialProviderRedirectRequest=function(e,t,r,o,i){var a={idp_flow:"social.deep_link.web",provider_id:e},s=n(n({},t),a);return this.createRedirectRequest(s,r,o,i)},e.prototype.createReAuthenticateRedirectRequest=function(e,t,r,o,i){void 0===o&&(o=l.IReauth.check),void 0===i&&(i=f.IGrantTypes.token);var a={reauth:o},s=n(n({},e),a);return this.createRedirectRequest(s,t,r,i)},e.prototype.createSignUpRedirectRequest=function(e,t,r){var o=n(n({},e),{idp_flow:"create_account"});return this.createRedirectRequest(o,t,r,f.IGrantTypes.token)},e.prototype.createRedirectRequest=function(e,t,r,n){var o=this,i=this,a=i.api_parameters,s=void 0===a?{}:a,c=i.client_id,u=i.redirect_uri,l=void 0===u?"":u,d=i.scope,h=i.locale,v=this.createRedirectState(t,r),y={adobeIdRedirectUri:l,apiParameters:s,clientId:c,externalParameters:e,scope:d,locale:h,response_type:n,state:v};return n===f.IGrantTypes.token?Promise.resolve(y):(new p.CodeChallenge).createCodeChallenge(r).then((function(n){e.code_challenge=n.challenge,e.code_challenge_method="S256";var i=o.createRedirectState(t,r);return y.state=i,Promise.resolve(y)}))},e.prototype.createRedirectState=function(e,t){var r=this.analyticsParameters,n=r.appCode,o=void 0===n?"":n,i=r.appVersion,a=void 0===i?"":i,c=void 0===e?{}:{context:e};return o&&(c.ac=o),a&&(c.av=a),c.jslibver=s.default.jslibver,c.nonce=t,Object.keys(c).length?c:null},e.prototype.triggerOnReady=function(){this.onReady&&this.onReady(void 0)},e.prototype.computeRideRedirectUri=function(e){return this.rideRedirectUri?"string"==typeof this.rideRedirectUri?"DEFAULT"===this.rideRedirectUri?null:this.rideRedirectUri:this.rideRedirectUri(e):window.location.href},e}();t.AdobeIdThinData=d},74592:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AnalyticsParameters=function(){this.appCode="",this.appVersion=""}},78842:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.IEnvironment||(t.IEnvironment={})).STAGE="stg1",r.PROD="prod"},87927:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.IErrorType||(t.IErrorType={})).INITIALIZE_ERROR="initialize_error",r.HTTP="http",r.FRAGMENT="fragment",r.CSRF="csrf",r.NOT_ALLOWED="not_allowed",r.PROFILE_EXCEPTION="profile_exception",r.TOKEN_EXPIRED="token_expired",r.SOCIAL_PROVIDERS="SOCIAL_PROVIDERS",r.RIDE_EXCEPTION="ride_exception"},66023:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(349),c=a(r(23681)),u=r(5443),l=r(10669),f=r(82347),p=r(6884),d=r(55997),h=r(37356),v=r(42082),y=r(90849),m=r(19764),g=a(r(45156)),b=a(r(48631)),_=r(87927),w=r(412),E=r(26112),S=r(41020),O=a(r(8516)),k=r(76241),C=a(r(31797)),x=r(88287),L=r(53373),I=r(2673),P=r(36752),A=r(74211),T=function(){function e(e){var t=this;void 0===e&&(e=null),this.initialized=!1,this.onPopupMessage=function(e){if(e&&t.adobeIdData.onModalModeSignInComplete){var r=t.tokenService.getTokenFromFragment(e);if(r instanceof P.TokenFields&&(t.tokenService.addTokenToStorage(r),t.adobeIdData.onModalModeSignInComplete(r)))return Promise.resolve()}return g.default.replaceUrl(e),t.initialize()},this.signIn=function(e,r,n){return void 0===e&&(e={}),void 0===n&&(n=x.IGrantTypes.token),o(t,void 0,void 0,(function(){var t,o,a,s,c;return i(this,(function(i){switch(i.label){case 0:return this.checkInitialized(),o=(t=this).adobeIdData,a=t.csrfService,s=a.initialize(),[4,o.createRedirectRequest(e,r,s,n)];case 1:return c=i.sent(),this.signInservice.signIn(c),[2,Promise.resolve()]}}))}))},this.authorizeToken=function(e,r,n,o){void 0===e&&(e=""),void 0===r&&(r={}),void 0===o&&(o=x.IGrantTypes.token);var i=t,a=i.adobeIdData,s=i.csrfService.initialize();return a.createRedirectRequest(r,n,s,o).then((function(t){(new u.SignInService).authorizeToken(e,t)}))},this.reAuthenticate=function(e,r,n,o){void 0===e&&(e={}),void 0===r&&(r=h.IReauth.check),void 0===o&&(o=x.IGrantTypes.token),t.checkInitialized();var i=t,a=i.adobeIdData,s=i.csrfService.initialize();return a.createReAuthenticateRedirectRequest(e,n,s,r,o).then((function(e){t.signInservice.signIn(e)}))},this.signInWithSocialProvider=function(e,r,n,o){if(void 0===r&&(r={}),void 0===o&&(o=x.IGrantTypes.token),t.checkInitialized(),!e)throw new Error("please provide the provider name");var i=t,a=i.adobeIdData,s=i.csrfService.initialize();a.createSocialProviderRedirectRequest(e,r,n,s,o).then((function(e){t.signInservice.signIn(e)}))},this.signOut=function(e){void 0===e&&(e={}),t.checkInitialized(),t.tokenService.purge(),t.profileService.removeProfile();var r=t.adobeIdData,n=r.api_parameters,o=void 0===n?{}:n,i=r.client_id,a={adobeIdRedirectUri:r.redirect_uri,apiParameters:o,clientId:i,externalParameters:e};(new f.SignOutService).signOut(a)},this.getTokenForPBAPolicy=function(e,r,n,o){var i;void 0===e&&(e=""),void 0===r&&(r=1e4),void 0===o&&(o={});var a=t.getAccessToken();if(a&&Date.now()+r<a.expire.getTime()&&(!e||(null===(i=a.pbaSatisfiedPolicies)||void 0===i?void 0:i.includes(e))))return Promise.resolve(a);var s=t,c=s.adobeIdData,u=s.csrfService.initialize();return o.state=c.createRedirectState(n,u),o.redirect_uri=A.RedirectHelper.createRedirectUrl(c.redirect_uri,c.client_id,o,"check_token",c.scope),e&&(o.pba_policy=e),t.refreshToken(o)},this.refreshToken=function(e,r){if(void 0===e&&(e={}),void 0===r&&(r=!1),!r&&e.userInactiveSince){var n=e.userInactiveSince,o=Date.now()-1e3*n;o>O.default.lastUserInteraction&&(O.default.lastUserInteraction=o)}return t.tokenService.refreshToken(e).then((function(e){return t.onTokenProfileReceived(e)})).catch((function(e){return c.default.error("refresh token error",e),e instanceof S.HttpErrorResponse?Promise.reject(e):t.verifyRideErrorExceptionStrict(e)||(t.profileService.removeProfile(),t.onTokenExpired(),Promise.reject(e))}))},this.switchProfile=function(e,r){return void 0===r&&(r={}),e?t.tokenService.switchProfile(e,r).then((function(e){return t.onTokenProfileReceived(e)})).catch((function(e){return t.verifyRideErrorException(e)})):Promise.reject(new Error("Please provide the user id for switchProfile"))},this.triggerOnImsInstance=function(e){var r=document.createEvent("CustomEvent"),n={clientId:t.adobeIdData.client_id,instance:e};r.initCustomEvent(k.ON_IMSLIB_INSTANCE,!1,!1,n),window.dispatchEvent(r)},this.processInitializeException=function(e){void 0===e&&(e={});var r=t.adobeIdData.handlers;return c.default.warn("initialize",e),e instanceof L.ModalSignInEvent?t.notifyParentAboutModalSignIn(e):(t.restoreHash(),e instanceof w.TokenExpiredException&&r.triggerOnAccessTokenHasExpired(),Promise.reject(e))},this.verifyRideErrorException=function(e){return o(t,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return e instanceof E.RideException?this.adobeIdData.overrideErrorHandler&&!this.adobeIdData.overrideErrorHandler(e)?[2,Promise.reject(e)]:e.isPbaExpiredIdleSessionWorkaround?[4,this.signIn()]:[3,2]:[3,4];case 1:return t.sent(),[3,4];case 2:return e.jump?[4,g.default.replaceUrlAndWait(e.jump,1e4)]:[3,4];case 3:t.sent(),t.label=4;case 4:return[2,Promise.reject(e)]}}))}))},this.verifyRideErrorExceptionStrict=function(e){return e instanceof E.RideException?t.verifyRideErrorException(e):null},this.verifyCsrfException=function(e){var r=e.type;return r&&r===_.IErrorType.CSRF&&t.signOut(),Promise.reject(e)},this.processTokenResponse=function(e){var r=t.adobeIdData.handlers,n=e.tokenFields,o=e.profile,i=n.tokenValue,a=n.state,s=n.expire,u=n.sid,l=n.user_id,f=n.other,p=void 0===f?{}:f,d=n.impersonatorId,h=n.isImpersonatedSession,v=n.pbaSatisfiedPolicies;c.default.info("token",i),p.from_ims&&g.default.setHash(p.old_hash||""),t.profileService.removeProfileIfOtherUser(l);var y={token:i,expire:s,sid:u,impersonatorId:d,isImpersonatedSession:h,pbaSatisfiedPolicies:v};return n.isReauth()?r.triggerOnReauthAccessToken(y):t.tokenReceived(y),o&&t.profileService.saveProfileToStorage(o),Promise.resolve(a)},this.exchangeIjt=function(e){var r=t.adobeIdData.ijt;return e||r?t.tokenService.exchangeIjt(e||r).then((function(e){return e.profile?t.profileService.saveProfileToStorage(e.profile):t.profileService.removeProfile(),Promise.resolve(e)})):Promise.reject(new Error("please set the adobeid.ijt value"))},this.adobeIdData=new p.AdobeIdData(e);var r=this.adobeIdData,a=r.api_parameters,v=void 0===a?{}:a,b=r.client_id,C=r.scope,I=r.useLocalStorage,T=r.autoValidateToken,R=r.modalMode,j=r.modalSettings;this.imsApis=new d.ImsApis(v),this.csrfService=new s.CsrfService(b),this.serviceRequest={clientId:b,scope:C,imsApis:this.imsApis},this.tokenService=new m.TokenService(n(n({},this.serviceRequest),{useLocalStorage:I,autoValidateToken:T}),this.csrfService),this.profileService=new y.ProfileService(this.serviceRequest),this.signInservice=R?new l.SignInModalService(this.onPopupMessage,j):new u.SignInService}return Object.defineProperty(e.prototype,"version",{get:function(){return C.default.jslibver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adobeid",{get:function(){return n({},this.adobeIdData)},enumerable:!0,configurable:!0}),e.prototype.enableLogging=function(){c.default.enableLogging()},e.prototype.disableLogging=function(){c.default.disableLogging()},e.prototype.checkInitialized=function(){this.initialized},e.prototype.signUp=function(e,t){var r=this;void 0===e&&(e={}),this.checkInitialized();var n=this.adobeIdData,o=this.csrfService;if(!n)throw new Error("no adobeId on reAuthenticate");var i=o.initialize();return n.createSignUpRedirectRequest(e,t,i).then((function(e){r.signInservice.signIn(e)}))},e.prototype.isSignedInUser=function(){return!(!this.getAccessToken()&&!this.getReauthAccessToken())},e.prototype.getProfile=function(){var e=this,t=this.profileService.getProfileFromStorage();if(t)return Promise.resolve(t);var r=this.getAccessToken()||this.getReauthAccessToken();return r?this.profileService.getProfile(r.token).then((function(e){return Promise.resolve(e)})).catch((function(t){return c.default.error("get profile exception ",t),t instanceof S.HttpErrorResponse?e.refreshToken().then((function(e){return Promise.resolve(e.profile)})):Promise.reject(new v.ProfileException(t.message||t))})):Promise.reject(new v.ProfileException("please login before getting the profile"))},e.prototype.avatarUrl=function(e){return this.imsApis.avatarUrl(e)},e.prototype.getReleaseFlags=function(e){return void 0===e&&(e=!1),e?this.tokenService.getDecodedReleaseFlags():this.tokenService.getReleaseFlags()},e.prototype.getAccessToken=function(){return this.getTokenFromStorage(!1)},e.prototype.getReauthAccessToken=function(){return this.getTokenFromStorage(!0)},e.prototype.getTokenFromStorage=function(e){var t=this.tokenService.getTokenFieldsFromStorage(e);return t?{token:t.tokenValue,expire:t.expire,sid:t.sid,impersonatorId:t.impersonatorId,isImpersonatedSession:t.isImpersonatedSession,pbaSatisfiedPolicies:t.pbaSatisfiedPolicies}:null},e.prototype.listSocialProviders=function(){var e=this;return new Promise((function(t,r){var n=e.adobeIdData.client_id;e.imsApis.listSocialProviders({client_id:n}).then((function(e){t(e)})).catch((function(e){r(e)}))}))},e.prototype.tokenReceived=function(e){this.adobeIdData.handlers.triggerOnAccessToken(e),O.default.startAutoRefreshFlow({expire:e.expire,refreshTokenMethod:this.refreshToken})},e.prototype.onTokenProfileReceived=function(e){var t=e.tokenInfo,r=e.profile;return c.default.info("token",t),this.tokenReceived(t),this.profileService.saveProfileToStorage(r),Promise.resolve(e)},e.prototype.validateToken=function(){var e=this;return this.tokenService.validateToken().then((function(){return Promise.resolve(!0)})).catch((function(t){return c.default.warn("validate token exception",t),t instanceof S.HttpErrorResponse||e.profileService.removeProfile(),Promise.reject(!1)}))},e.prototype.onTokenExpired=function(){var e=this.adobeIdData.handlers;this.tokenService.purge(),e.triggerOnAccessTokenHasExpired()},e.prototype.setStandAloneToken=function(e){return this.tokenService.setStandAloneToken(e)},e.prototype.initialize=function(){var e=this,t=this.adobeIdData,r=t.handlers,n=t.standalone,o=t.ijt,i=null;return n&&this.setStandAloneToken(n),(o?this.exchangeIjt:this.tokenService.getTokenAndProfile)().then(this.processTokenResponse,(function(t){return e.processInitializeException(t).catch((function(t){return e.verifyRideErrorException(t)})).catch((function(t){return e.verifyCsrfException(t).catch((function(e){return c.default.info("initialize exception ended",e)}))}))})).then((function(e){i=e})).finally((function(){return c.default.info("onReady initialization"),window.addEventListener(k.ASK_FOR_IMSLIB_INSTANCE_DOM_EVENT_NAME,(function(){e.triggerOnImsInstance(e)}),!1),r.triggerOnReady(i?i.context:null),e.triggerOnImsInstance(e),e.initialized=!0,Promise.resolve(i)}))},e.prototype.notifyParentAboutModalSignIn=function(e){var t=window.location.href.replace("imslibmodal","wasmodal");return window.opener?(window.opener.postMessage(t,window.location.origin),window.close()):window[""+e.wndRedirectPropName]=t,Promise.reject("popup")},e.prototype.restoreHash=function(){var e=b.default.fragmentToObject();e&&e.from_ims&&g.default.setHash(e.old_hash||"")},e.prototype.getTransitoryAuthorizationCode=function(e,t){return void 0===t&&(t={}),(e=e||{}).response_type=e.response_type||"code",e.target_client_id=e.target_client_id||this.adobeIdData.client_id,e.target_scope=e.target_scope||this.adobeIdData.scope,this.imsApis.getTransitoryAuthorizationCode(e,t,this.adobeIdData.client_id)},e.prototype.jumpToken=function(e,t){return void 0===t&&(t={}),e.target_client_id=e.target_client_id||this.adobeIdData.client_id,e.target_scope=e.target_scope||this.adobeIdData.scope,this.imsApis.jumpToken(e,t,this.adobeIdData.client_id)},e.prototype.getVerifierByKey=function(e){return(new I.CodeChallenge).getVerifierByKey(e)},e.prototype.socialHeadlessSignIn=function(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){var r=this;return i(this,(function(n){return[2,this.imsApis.socialHeadlessSignIn(e,t).then((function(e){return r.exchangeIjt(e.token)})).catch((function(e){return"ride_AdobeID_social"===e.error&&r.signIn(),Promise.reject(e)}))]}))}))},e}();t.AdobeIMS=T},9892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TokenProfileResponse=function(e,t){this.profile=null,this.tokenFields=e,this.profile=t}},349:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(25021)),i=r(76121);t.ONE_HOUR=1296e4;var a=function(){function e(e){this.storageInstance=null,this.nonceStorageKey="",this.nonceStorageKey="nonce"+e}return Object.defineProperty(e.prototype,"storage",{get:function(){return this.storageInstance||(this.storageInstance=o.default.getAvailableStorage()),this.storageInstance},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){if(!this.isStorageAvailable())return"";var t=e.generateNonce(),r=this.getNonceFromStorage()||{};return r=this.clearOlderNonceKeys(r),this.addNonceToObject(r,t),this.saveNonceValuesToStorage(r),t.value},e.prototype.addNonceToObject=function(e,t){e[t.value]=t.expiry},e.prototype.clearOlderNonceKeys=function(e,r){void 0===r&&(r=t.ONE_HOUR);var n=Date.now()-r;return Object.keys(e).forEach((function(t){parseInt(e[t])<n&&delete e[t]})),e},e.prototype.verify=function(e){if(!this.isStorageAvailable())return!0;var t=this.getNonceFromStorage();if(!t)return!1;var r=this.clearOlderNonceKeys(t),n=null!==(r[e]||null);return n&&this.clearNonceValueFromStorage(r,e),n},e.prototype.clearNonceValueFromStorage=function(e,t){delete e[t],this.saveNonceValuesToStorage(e)},e.prototype.getNonceFromStorage=function(){var e=this.storage.getItem(this.nonceStorageKey);return e?JSON.parse(e):null},e.prototype.saveNonceValuesToStorage=function(e){this.storage.setItem(this.nonceStorageKey,JSON.stringify(e))},e.prototype.isStorageAvailable=function(){return!(this.storage instanceof i.MemoryStorage)},e.cryptoRndomString=function(){if(!window.crypto)return"";var e=new Uint32Array(3);return window.crypto.getRandomValues(e),e.join("").substr(0,16)},e.randomString=function(){var t=e.cryptoRndomString();if(t)return t;for(var r="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<16;o++)r+=n.charAt(Math.floor(Math.random()*n.length));return r},e.generateNonce=function(){return{value:e.randomString(),expiry:(new Date).getTime().toString()}},e}();t.CsrfService=a},34600:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=""),void 0===r&&(r=""),this.proxied=e,this.url=t,this.fallbackUrl=r}return e.computeEndpoint=function(t,n,o,i){var a,s;if(t){var c=o?e.THIRD_PARTY_DOMAINS_STAGE:e.THIRD_PARTY_DOMAINS_PROD;try{for(var u=r(Object.keys(c)),l=u.next();!l.done;l=u.next()){var f=l.value;if(n===f||n.endsWith("."+f))return new e(!0,c[f],i)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}}return new e(!1,i)},e.prototype.shouldFallbackToAdobe=function(e){return!!this.proxied&&"feature_disabled"===e.error&&"cdsc"===e.error_description},e.THIRD_PARTY_DOMAINS_PROD={"behance.net":"https://sso.behance.net"},e.THIRD_PARTY_DOMAINS_STAGE={"s2stagehance.com":"https://sso.s2stagehance.com"},e}();t.CheckTokenEndpoint=n},31797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(78842),o=r(34600),i=function(){function e(){this.baseUrlAdobe="",this.baseUrlServices="",this.checkTokenEndpoint=new o.CheckTokenEndpoint,this.jslibver="v2-v0.31.0-2-g1e8a8a8"}return e.prototype.loadEnvironment=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r="");var i=e===n.IEnvironment.STAGE;i?(this.baseUrlAdobe="https://ims-na1-stg1.adobelogin.com",this.baseUrlServices="https://adobeid-na1-stg1.services.adobe.com"):(this.baseUrlAdobe="https://ims-na1.adobelogin.com",this.baseUrlServices="https://adobeid-na1.services.adobe.com"),this.checkTokenEndpoint=o.CheckTokenEndpoint.computeEndpoint(t,r,i,this.baseUrlServices)},e}();t.default=new i},88287:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.IGrantTypes||(t.IGrantTypes={})).token="token",r.code="code"},37356:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.IReauth||(t.IReauth={})).force="force",r.check="check"},74211:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(65926)),i=r(45088),a=function(){function e(){}return e.getInitialRedirectUri=function(e,t){var r=e.redirect_uri||t||window.location.href,n="function"==typeof r?r():r,o=n.indexOf("from_ims");return-1===o?n:("#"===n[o-1]&&o--,n.substr(0,o))},e.createDefaultRedirectUrl=function(e,t,r,n){var o=this.getInitialRedirectUri(r,e),i=this.createOldHash(o);return i.indexOf("?")>0?i+"&client_id="+t+"&api="+n:i+"?client_id="+t+"&api="+n},e.createRedirectUrl=function(e,t,r,n,o){void 0===o&&(o="");var i=this.createDefaultRedirectUrl(e,t,r,n);(o=o||r.scope||"")&&(i=i+"&scope="+o);var a=r.reauth||"";return a&&(i=i+"&reauth="+a),i},e.createOldHash=function(e){var t=e.indexOf("#");return t<0?e+"#old_hash=&from_ims=true":e.substring(0,t)+"#old_hash="+e.substring(t+1)+"&from_ims=true"},e.mergeApiParamsWithExternalParams=function(e,t,r){return i.merge(o.default.getCustomApiParameters(e,r),t)},e}();t.RedirectHelper=a},2673:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(25021));t.ONE_HOUR=1296e4;var s=function(){function e(){this.storage=a.default.getAvailableStorage()}return e.prototype.b64Uri=function(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.createCodeChallenge=function(e,t){var r=this;void 0===t&&(t=43);for(var n=window.msCrypto||window.crypto,i=this.b64Uri(Array.prototype.map.call(n.getRandomValues(new Uint8Array(t)),(function(e){return String.fromCharCode(e)})).join("")).substring(0,t),a=new Uint8Array(i.length),s=0;s<i.length;s++)a[s]=i.charCodeAt(s);var c=n.subtle.digest("SHA-256",a);return new Promise((function(t,n){window.CryptoOperation?(c.onerror=function(e){return n(e)},c.oncomplete=function(n){var a=new Uint8Array(n.target.result),s=r.b64Uri(String.fromCharCode.apply(String,o(a)));return t(r.saveVerifierAndReturn(e,{verifier:i,challenge:s}))}):c.then((function(n){var a=new Uint8Array(n),s=r.b64Uri(String.fromCharCode.apply(String,o(a)));return t(r.saveVerifierAndReturn(e,{verifier:i,challenge:s}))}))}))},e.prototype.saveVerifierAndReturn=function(e,t){var r=this.getVerifierValuesFromStorage(),n={verifier:t.verifier||"",expiry:(new Date).getTime().toString()};return r[e]=n,this.storage.setItem("verifiers",JSON.stringify(r)),Promise.resolve(t)},e.prototype.getVerifierValuesFromStorage=function(){var e=this.storage.getItem("verifiers"),t=e?JSON.parse(e):{};return this.clearOlderVerifiers(t)},e.prototype.clearOlderVerifiers=function(e,r){void 0===r&&(r=t.ONE_HOUR);var n=Date.now()-r;return Object.keys(e).forEach((function(t){parseInt(e[t])<n&&delete e[t]})),e},e.prototype.getVerifierByKey=function(e){var t=this.getVerifierValuesFromStorage(),r=t?t[e]:{};return delete t[e],this.storage.setItem("verifiers",JSON.stringify(t)),r?r.verifier:""},e}();t.CodeChallenge=s},9537:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(45156)),a=o(r(31797)),s=r(74211),c=r(45088);t.BaseSignInService=function(){var e=this;this.composeRedirectUrl=function(e){var t="authorize",r=e.apiParameters,o=e.externalParameters,i=void 0===o?{}:o,u=e.adobeIdRedirectUri,l=void 0===u?"":u,f=e.clientId,p=e.locale,d=e.state,h=void 0===d?{}:d,v=e.scope,y=void 0===v?i.scope||r.scope||"":v,m=s.RedirectHelper.mergeApiParamsWithExternalParams(r,i,t);h&&(m.state=c.merge(m.state||{},h));var g=s.RedirectHelper.createRedirectUrl(l,f,m,t,y),b=i.locale||p||"",_=e.response_type,w=void 0===_?m.response_type||"":_;return n(n({},m),{client_id:f,scope:y,locale:b,response_type:w,jslVersion:a.default.jslibver,redirect_uri:g})},this.createRedirectUrl=function(t){var r=e.composeRedirectUrl(t),n=i.default.uriEncodeData(r);return a.default.baseUrlAdobe+"/ims/authorize/v1?"+n}}},4886:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var o=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/,i=["https://auth.services.adobe.com","https://auth-stg1.services.adobe.com","https://localhost.corp.adobe.com:9000"];t.default=new function(){var e=this;this.windowObjectReference=null,this.previousUrl="",this.openSignInWindow=function(t,r,n,o){e.onProcessLocation=o,e.allowOrigin=n.allowOrigin,e.timerId&&clearInterval(e.timerId),window.removeEventListener("message",e.receiveMessage),window.addEventListener("message",e.receiveMessage);var i="toolbar=no, menubar=no, width="+n.width+", height="+n.height+", top="+n.top+", left="+n.left;!e.windowObjectReference||e.windowObjectReference&&e.windowObjectReference.closed?e.windowObjectReference=window.open(t,n.title,i):e.previousUrl!==t?(e.windowObjectReference=window.open(t,n.title,i),e.windowObjectReference&&e.windowObjectReference.focus()):e.windowObjectReference.focus();var a=e.windowObjectReference||{};a.opener||(e.timerId=setInterval((function(){a[r]&&(clearInterval(e.timerId),e.onProcessLocation&&e.onProcessLocation(a[r]),delete a[r],e.windowObjectReference&&e.windowObjectReference.close())}),500)),e.previousUrl=t},this.receiveMessage=function(t){if(n(i,[e.allowOrigin]).includes(t.origin)){try{if(!o.test(t.data))return}catch(e){return}e.onProcessLocation&&e.onProcessLocation(t.data)}}}},99213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PopupSettings=function(e){void 0===e&&(e={}),this.title="Adobe ID",this.width=600,this.top=100,this.left=100;var t=e.title,r=void 0===t?"Adobe ID":t,n=e.width,o=void 0===n?600:n,i=e.height,a=void 0===i?700:i,s=e.top,c=void 0===s?100:s,u=e.left,l=void 0===u?100:u,f=e.allowedOrigin;this.title=r,this.width=o,this.height=a,this.top=c,this.left=l,this.allowOrigin=f}},10669:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(r(4886)),c=function(e){function t(t,r){var n=e.call(this)||this;return n.signIn=function(e){e.state=i(i({},e.state),{imslibmodal:!0});var t=e.state.nonce,r=n.createRedirectUrl(e);s.default.openSignInWindow(r,t,n.popupSettings,n.onPopupMessage)},n.onPopupMessage=t,n.popupSettings=r,n}return o(t,e),t}(r(9537).BaseSignInService);t.SignInModalService=c},5443:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(45156)),s=i(r(31797)),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.signIn=function(e){var r=t.createRedirectUrl(e);a.default.setHrefUrl(r)},t.authorizeToken=function(e,r){var n=t.composeRedirectUrl(r);e&&(n.user_assertion=e,n.user_assertion_type="urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),t.createAuthorizeForm(n).submit()},t}return o(t,e),t.prototype.createAuthorizeForm=function(e){var t=s.default.baseUrlAdobe+"/ims/authorize/v1",r=document.createElement("form");r.style.display="none",r.setAttribute("method","post"),r.setAttribute("action",t);var n=null,o=null,i="";for(var a in e){if("object"==typeof(o=e[a])){if(0===Object.keys(o).length)continue;i=JSON.stringify(o)}else i=o;""!==i&&(n=this.createFormElement("input","text",a,i),r.appendChild(n))}return document.getElementsByTagName("body")[0].appendChild(r),r},t.prototype.createFormElement=function(e,t,r,n){var o=document.createElement(e);return o.setAttribute("type",t),o.setAttribute("name",r),o.setAttribute("value",n),o},t}(r(9537).BaseSignInService);t.SignInService=c},82347:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(74211),a=o(r(45156)),s=o(r(31797));t.SignOutService=function(){this.signOut=function(e){var t="logout",r=e.apiParameters,o=e.externalParameters,c=e.adobeIdRedirectUri,u=void 0===c?"":c,l=e.clientId,f=i.RedirectHelper.mergeApiParamsWithExternalParams(r,o,t),p=i.RedirectHelper.createDefaultRedirectUrl(u,l,f,t),d=n(n({},f),{client_id:l,redirect_uri:p,jslVersion:s.default.jslibver}),h=a.default.uriEncodeData(d),v=s.default.baseUrlAdobe+"/ims/logout/v1?"+h;a.default.replaceUrl(v)}}},8516:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(23681)),i=["keyup","mousemove"],a=function(){function e(){var e=this;this.lastUserInteraction=Date.now(),this.userActive=!1,this.userInteractionHandler=function(){e.lastUserInteraction=Date.now(),e.userActive=!0},this.initializeDomEvents=function(){i.forEach((function(t){return window.addEventListener(t,e.userInteractionHandler)}))},this.clearDomEvents=function(){i.forEach((function(t){return window.removeEventListener(t,e.userInteractionHandler)}))}}return e.prototype.startAutoRefreshFlow=function(e){var t,r=this;if(e&&e.expire&&e.refreshTokenMethod){this.refreshParameters=e,this.refreshTimerId&&(o.default.info("Auto-refresh timer already set, clearing"),clearTimeout(this.refreshTimerId)),this.clearDomEvents(),this.initializeDomEvents();var n=this.fromNowToNMinutesBeforeDate(null===(t=this.refreshParameters)||void 0===t?void 0:t.expire,1);o.default.info("Auto-refresh timer will run after (seconds)",n/1e3),this.refreshTimerId=setTimeout((function(){var e;if(r.userActive){var t=Math.floor((Date.now()-r.lastUserInteraction)/1e3);null===(e=r.refreshParameters)||void 0===e||e.refreshTokenMethod({userInactiveSince:t},!0),o.default.info("Auto-refresh performed, user was inactive for (seconds)",t)}else o.default.info("Auto-refresh skipped, user was never active")}),n)}else o.default.info("Won't schedule token auto-refresh",!e,!e.expire,!e.refreshTokenMethod)},e.prototype.fromNowToNMinutesBeforeDate=function(e,t){var r=e.getTime()-Date.now()-6e4*t;return r<=0?6e4*t:r},e}();t.default=new a},65926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(45088),o=function(){function e(){this.getCustomApiParameters=function(e,t){return e[t]||{}}}return e.prototype.mergeExternalParameters=function(e,t,r){return n.merge(this.getCustomApiParameters(t,r),e)},e.prototype.toJson=function(e){try{return"string"!=typeof e?e:JSON.parse(e)}catch(e){return null}},e}();t.default=new o},76241:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AdobeIdKey="adobeid",t.AdobeIMSKey="adobeIMS",t.AdobeImsFactory="adobeImsFactory",t.DEFAULT_LANGUAGE="en_US",(r=t.STORAGE_MODE||(t.STORAGE_MODE={})).LocalStorage="local",r.SessionStorage="session",r.MemoryStorage="memory",t.HEADERS={AUTHORIZATION:"Authorization",X_IMS_CLIENT_ID:"X-IMS-ClientId",RETRY_AFTER:"Retry-after"},t.PROFILE_STORAGE_KEY="adobeid_ims_profile",t.TOKEN_STORAGE_KEY="adobeid_ims_access_token",t.ON_IMSLIB_INSTANCE="onImsLibInstance",t.ASK_FOR_IMSLIB_INSTANCE_DOM_EVENT_NAME="getImsLibInstance"},53666:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.DEBOUNCE_TIME=1e3,this.cache={},this.storeApiResponse=function(t,r,n){void 0===t&&(t=""),void 0===r&&(r=""),e.cacheApiResponse(t,r,n)}}return e.prototype.getCachedApiResponse=function(e,t){void 0===t&&(t="");var r="string"==typeof t?t:JSON.stringify(t),n=this.cache[e];if(!n)return null;var o=n[r];return o?o.data:null},e.prototype.cacheApiResponse=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t="");var o=this.cache[e];o||(o={},this.cache[e]=o);var i=this.createClearCachedDataTimer(e,t);o[t]={timerId:i,data:r({},n)}},e.prototype.createClearCachedDataTimer=function(e,t){var r=this;return setTimeout((function(){var n=r.cache[e]||{},o=n[t];o&&o&&o.timerId&&(clearTimeout(o.timerId),delete n[t])}),this.DEBOUNCE_TIME)},e}();t.default=new n},48002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(19677),o=r(26112),i=r(41020),a=function(){function e(){this.adobeIdThinData=null}return e.prototype.verify=function(e,t){void 0===t&&(t="");var r=e.status,n=e.data;return r?401==r?new i.HttpErrorResponse({error:"unauthorized"}):this.parseTokenResponseForRideErrors(n,t)||(409==r?n:429==r?new i.HttpErrorResponse({error:"rate_limited",retryAfter:n.retryAfter?parseInt(n.retryAfter):10}):r.toString().match(/5\d{2}/g)?new i.HttpErrorResponse({error:"server_error"}):null):new i.HttpErrorResponse({error:"networkError",message:n||""})},e.prototype.parseTokenResponseForRideErrors=function(e,t){if(!e)return null;var r=e.error,n=e.jump;if(!r)return null;if(0!==r.indexOf("ride_"))return"token_expired"===r&&t.indexOf("check/v6/token")>=0?new o.RideException("ride_pba_idle_session","",!0):null;var i=this.addRedirectUriToJump(r,n);return new o.RideException(r,i)},e.prototype.addRedirectUriToJump=function(e,t){if(!t||"string"!=typeof t)return"";var r=t;this.adobeIdThinData||(this.adobeIdThinData=new n.AdobeIdThinData);var o=this.adobeIdThinData.computeRideRedirectUri(e);if(!o||0===o.length)return r;try{var i=new URL(r);return i.searchParams.append("redirect_uri",o),i.toString()}catch(e){return r}},e.prototype.isUnauthorizedException=function(e){var t=e.status;return 401===(void 0===t?0:t)},e}();t.default=new a},41020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HttpErrorResponse=function(e){var t=e.error,r=e.retryAfter,n=void 0===r?0:r,o=e.message,i=void 0===o?"":o;this.error=t,this.retryAfter=n,this.message=i}},55997:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(76241),a=o(r(45156)),s=o(r(65926)),c=o(r(31797)),u=o(r(18463)),l=function(){function e(e){void 0===e&&(e={}),this.CONTENT_FORM_ENCODED="application/x-www-form-urlencoded;charset=utf-8",this.apiParameters=e}return e.prototype.validateToken=function(e){var t=e.token,r=e.client_id,o=a.default.uriEncodeData(n(n({},s.default.getCustomApiParameters(this.apiParameters,"validate_token")),{type:"access_token",client_id:r,token:t})),i=c.default.baseUrlAdobe+"/ims/validate_token/v1?jslVersion="+c.default.jslibver,l=this.formEncoded();return this.addClientIdInHeader(r,l),u.default.post(i,o,l)},e.prototype.getProfile=function(e){var t=e.token,r=e.client_id,o=n({},s.default.getCustomApiParameters(this.apiParameters,"profile")),i=this.createAuthorizationHeader(t);this.addClientIdInHeader(r,i);var l=a.default.uriEncodeData(n({client_id:r},o)),f=c.default.baseUrlAdobe+"/ims/profile/v1?"+l+"&jslVersion="+c.default.jslibver;return u.default.get(f,i)},e.prototype.getUserInfo=function(e){var t=e.token,r=e.client_id,o=n({},s.default.getCustomApiParameters(this.apiParameters,"userinfo")),i=this.createAuthorizationHeader(t);this.addClientIdInHeader(r,i);var l=a.default.uriEncodeData(n({client_id:r},o)),f=c.default.baseUrlAdobe+"/ims/userinfo/v1?"+l+"&jslVersion="+c.default.jslibver;return u.default.get(f,i)},e.prototype.logoutToken=function(e){var t=e.client_id,r=e.token,o=n({},s.default.getCustomApiParameters(this.apiParameters,"logout_token")),i=c.default.baseUrlServices+"/ims/logout/v1?jslVersion="+c.default.jslibver,a=this.addClientIdInHeader(t);return u.default.post(i,n({client_id:t,access_token:r},o),a)},e.prototype.checkStatus=function(){var e=c.default.baseUrlServices+"/ims/check/v1/status";return u.default.get(e)},e.prototype.checkToken=function(e,t,r){var o=e.client_id,i=e.scope,u=n({},s.default.mergeExternalParameters(t,this.apiParameters,"check_token")),l=n(n({},u),{client_id:o,scope:i});return r&&(l.user_id=r),this.callCheckToken(a.default.uriEncodeData(l),o,"/check/v6/token?jslVersion="+c.default.jslibver)},e.prototype.switchProfile=function(e,t,r){void 0===r&&(r="");var o=e.client_id,i=e.scope,u=void 0===i?"":i,l=n({},s.default.mergeExternalParameters(t,this.apiParameters,"check_token")),f=a.default.uriEncodeData(n(n({},l),{client_id:o,scope:u,user_id:r}));return this.callCheckToken(f,o,"/check/v6/token?jslVersion="+c.default.jslibver)},e.prototype.listSocialProviders=function(e){var t=e.client_id,r=n({},s.default.getCustomApiParameters(this.apiParameters,"providers")),o=a.default.uriEncodeData(n({client_id:t},r)),i=c.default.baseUrlServices+"/ims/social/v1/providers?"+o+"&jslVersion="+c.default.jslibver,l=this.addClientIdInHeader(t);return u.default.get(i,l)},e.prototype.exchangeIjt=function(e,t){var r=e.client_id,o=n({},s.default.getCustomApiParameters(this.apiParameters,"ijt")),i=c.default.baseUrlServices+"/ims/jump/implicit/"+t,l=a.default.uriEncodeData(n({client_id:r},o)),f=i+"?"+l+"&jslVersion="+c.default.jslibver;f.length>2048&&(delete o.redirect_uri,f=i+"?"+(l=a.default.uriEncodeData(o)));var p=this.addClientIdInHeader(r);return u.default.get(f,p)},e.prototype.avatarUrl=function(e){return c.default.baseUrlAdobe+"/ims/avatar/download/"+e},e.prototype.getReleaseFlags=function(e){var t=e.token,r=e.client_id,o=n({},s.default.getCustomApiParameters(this.apiParameters,"fg_value")),i=this.createAuthorizationHeader(t);this.addClientIdInHeader(r,i);var l=a.default.uriEncodeData(n({client_id:r},o)),f=c.default.baseUrlAdobe+"/ims/fg/value/v1?"+l+"&jslVersion="+c.default.jslibver;return u.default.get(f,i)},e.prototype.getTransitoryAuthorizationCode=function(e,t,r){void 0===t&&(t={});var o=n({},s.default.mergeExternalParameters(t,this.apiParameters,"check_token")),i=a.default.uriEncodeData(n(n({},o),e));return this.callCheckToken(i,r,"/check/v6/token?client_id="+r+"&jslVersion="+c.default.jslibver)},e.prototype.getTokenFromCode=function(e,t){void 0===t&&(t={});var r=n({},s.default.mergeExternalParameters(t,this.apiParameters,"token"));r.grant_type="authorization_code",delete e.other;var o=c.default.baseUrlServices+"/ims/token/v3?jslVersion="+c.default.jslibver,i=a.default.uriEncodeData(n(n({},r),e)),l=this.formEncoded();return this.addClientIdInHeader(e.client_id,l),u.default.post(o,i,l)},e.prototype.jumpToken=function(e,t,r){void 0===t&&(t={});var o=n({},s.default.mergeExternalParameters(t,this.apiParameters,"jumptoken")),i=c.default.baseUrlServices+"/ims/jumptoken/v1?client_id="+r+"&jslVersion="+c.default.jslibver,l=a.default.uriEncodeData(n(n({},o),e)),f=this.formEncoded();return this.addClientIdInHeader(r,f),u.default.post(i,l,f)},e.prototype.socialHeadlessSignIn=function(e,t){void 0===t&&(t={});var r=n({},s.default.mergeExternalParameters(t,this.apiParameters,"jumptoken")),o=c.default.baseUrlServices+"/ims/social/v2/native?jslVersion="+c.default.jslibver,i=a.default.uriEncodeData(n(n(n({},r),e),{response_type:"implicit_jump"}));return u.default.post(o,i,this.formEncoded())},e.prototype.createAuthorizationHeader=function(e){var t={};return e&&(t[i.HEADERS.AUTHORIZATION]="Bearer "+e),t},e.prototype.formEncoded=function(e){return void 0===e&&(e={}),e["content-type"]=this.CONTENT_FORM_ENCODED,e},e.prototype.addClientIdInHeader=function(e,t){return void 0===t&&(t={}),t.client_id=e,t},e.prototype.callCheckToken=function(e,t,r){var n=this.formEncoded();return this.addClientIdInHeader(t,n),u.default.post(c.default.checkTokenEndpoint.url+"/ims"+r,e,n).catch((function(t){if(!c.default.checkTokenEndpoint.shouldFallbackToAdobe(t))throw t;return u.default.post(c.default.checkTokenEndpoint.fallbackUrl+"/ims"+r,e,n)}))},e}();t.ImsApis=l},35471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.status=0,this.data="",this.status=e,this.data=this.toJson(t)}return e.prototype.toJson=function(e){try{return"string"!=typeof e?e:JSON.parse(e)}catch(t){return e}},e}();t.ApiResponse=r},18463:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(53666)),i=n(r(48002)),a=n(r(68689));t.default=new(function(){function e(){this.triggerOnError=null}return e.prototype.post=function(e,t,r){var n=this;void 0===r&&(r={});var i=o.default.getCachedApiResponse(e,t);if(i){var s=i.status,c=i.data;return 200===s?Promise.resolve(c):Promise.reject(c)}return a.default.post(e,t,r).then((function(r){return n.storeApiResponse(e,JSON.stringify(t),r)})).catch((function(r){return n.verifyError(e,JSON.stringify(t),r)}))},e.prototype.get=function(e,t){var r=this;void 0===t&&(t={});var n=o.default.getCachedApiResponse(e);if(n){var i=n.status,s=n.data;return 200===i?Promise.resolve(s):Promise.reject(s)}return a.default.get(e,t).then((function(t){return r.storeApiResponse(e,"",t)})).catch((function(t){return r.verifyError(e,"",t)}))},e.prototype.verifyError=function(e,t,r){this.storeApiResponse(e,t,r);var n=i.default.verify(r,e);return Promise.reject(n||r.data)},e.prototype.storeApiResponse=function(e,t,r){return void 0===t&&(t=""),o.default.storeApiResponse(e,t,r),Promise.resolve(r.data)},e}())},68689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35471);t.default=new(function(){function e(){}return e.prototype.http=function(e){return new Promise((function(t,r){var o,i=new(0,window.XMLHttpRequest);i.withCredentials=!0,i.open(e.method,e.url,!0),i.onload=function(){return this.status>=200&&this.status<300?t(new n.ApiResponse(this.status,this.response)):r(new n.ApiResponse(this.status,this.response))},i.onerror=function(){var e=new n.ApiResponse(this.status,this.response);return r(e)},(o=e.headers)&&Object.keys(o).forEach((function(e){i.setRequestHeader(e,o[e])})),i.send(e.data)}))},e.prototype.post=function(e,t,r){return void 0===r&&(r={}),this.http({headers:r,method:"POST",url:e,data:t})},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.http({headers:t,method:"GET",url:e})},e}())},23681:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){var e=this;this.logEnabled=!1,this.print=function(t,r){e.logEnabled&&t.apply(void 0,n(r))},this.assert=function(t,r){e.print(console.assert,[t,r])},this.assertCondition=function(t,r){t()||e.print(console.error,[r])},this.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e.print(console.error,t)},this.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e.print(console.warn,t)},this.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e.print(console.info,t)}}return e.prototype.enableLogging=function(){this.logEnabled=!0},e.prototype.disableLogging=function(){this.logEnabled=!1},e}();t.default=new o},42082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(87927);t.ProfileException=function(e){this.message=null,this.errorType=n.IErrorType.PROFILE_EXCEPTION,this.message=e}},90849:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(25021)),i=r(76241),a=r(42082),s=r(41020),c=r(56869),u=function(){function e(e){this.profileServiceRequest=e,this.storage=o.default.getStorageByName(i.STORAGE_MODE.SessionStorage)}return e.prototype.getProfile=function(e){var t=this,r=this.profileServiceRequest,n=r.clientId,o=r.imsApis,i=this.getProfileFromStorage();return i?Promise.resolve(i):o.getProfile({client_id:n,token:e}).then((function(e){if(!e)throw new a.ProfileException("NO profile response");if(0===Object.keys(e).length)throw new a.ProfileException("NO profile value");return t.saveProfileToStorage(e),Promise.resolve(e)})).catch((function(e){return e instanceof s.HttpErrorResponse||t.removeProfile(),Promise.reject(e)}))},e.prototype.getProfileStorageKey=function(){var e=this.profileServiceRequest,t=e.clientId,r=e.scope;return i.PROFILE_STORAGE_KEY+"/"+t+"/"+!1+"/"+c.sortScopes(r)},e.prototype.getProfileFromStorage=function(){var e=this.getProfileStorageKey(),t=this.storage.getItem(e);return t&&JSON.parse(t)},e.prototype.saveProfileToStorage=function(e){var t=this.getProfileStorageKey();this.storage.setItem(t,JSON.stringify(e))},e.prototype.removeProfile=function(){var e=this.getProfileStorageKey();this.storage.removeItem(e)},e.prototype.removeProfileIfOtherUser=function(e){if(e){var t=this.getProfileFromStorage();t&&t.userId!==e&&this.removeProfile()}},e}();t.ProfileService=u},76121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.data={},this.length=0}return e.prototype.clear=function(){this.data={},this.length=0},e.prototype.getItem=function(e){return this.data[e]||null},e.prototype.removeItem=function(e){return!!this.data[e]&&(delete this.data[e],--this.length,!0)},e.prototype.setItem=function(e,t){this.data[e]||++this.length,this.data[e]=t},e.prototype.key=function(e){throw new Error("Method not implemented. "+e)},e}();t.MemoryStorage=r},25021:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(76121),i=r(76241),a=n(r(23681)),s=function(){function e(){this.memoryStorageInstance=null}return Object.defineProperty(e.prototype,"memoryStorage",{get:function(){return this.memoryStorageInstance||(this.memoryStorageInstance=new o.MemoryStorage),this.memoryStorageInstance},enumerable:!0,configurable:!0}),e.prototype.getStorageByName=function(e){var t=this.getStorageInstanceByName(e);return t&&this.verifyStorage(t)?t:this.memoryStorage},e.prototype.getStorageInstanceByName=function(e){if(e===i.STORAGE_MODE.MemoryStorage)return this.memoryStorage;try{return e===i.STORAGE_MODE.LocalStorage?window.localStorage:window.sessionStorage}catch(e){return a.default.warn("Please change your cookies settings in order to allow local data to be set"),null}},e.prototype.getAvailableStorage=function(){var e=this.getStorageByName(i.STORAGE_MODE.LocalStorage);return e instanceof o.MemoryStorage?this.getStorageByName(i.STORAGE_MODE.SessionStorage):e},e.prototype.verifyStorage=function(e){var t="test";try{return e.setItem(t,"true"),"true"===e.getItem(t)&&(e.removeItem(t),!0)}catch(e){return!1}},e}();t.default=new s},76794:function(e,t){"use strict";var r=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});t.AuthorizationCode=function(e){this.client_id="",this.scope="",this.code="",this.state=null,this.code_verifier="",this.other=null;var t=e.code,n=e.state,o=e.client_id,i=e.scope,a=e.verifier,s=r(e,["code","state","client_id","scope","verifier"]);this.state=n,this.client_id=o,this.code=t,this.scope=i,this.code_verifier=a,this.other=s}},12262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FragmentException=function(e,t){this.message="",this.type="",this.type=e,this.message=t}},38699:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.IFragmentExceptionType||(t.IFragmentExceptionType={})).FRAGMENT="fragment",r.CSRF="csrf",r.NOT_AUTHORIZE="not_authorize",r.API_NOT_ALLOWED="not_allowed"},53373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ModalSignInEvent=function(e){this.wndRedirectPropName="",this.wndRedirectPropName=e}},26112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RideException=function(e,t,r){void 0===r&&(r=!1),this.jump="",this.code=e,this.jump=t,this.isPbaExpiredIdleSessionWorkaround=r}},13704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.StandaloneToken=function(e){this.token="",this.sid="",this.expirems=0;var t=e.token,r=e.expirems;this.token=t,this.expirems=r}},412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TokenExpiredException=function(e){this.exception=null,this.exception=e}},36752:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(65926)),i=n(r(23681)),a=r(56869),s=function(){function e(e,t){var r=this;this.REAUTH_SCOPE="reauthenticated",this.valid=!1,this.isReauth=function(){return r.scope.indexOf(r.REAUTH_SCOPE)>=0},this.client_id="",this.scope="",this.expire=new Date,this.user_id="",this.tokenValue="",this.sid="",this.state=null,this.fromFragment=!1,this.impersonatorId="",this.isImpersonatedSession=!1;var n=e.valid,i=e.tokenValue,a=e.access_token,s=e.state,c=e.other,u=i||a,l=this.parseJwt(u);if(!l)throw new Error("token cannot be decoded "+u);this.state=o.default.toJson(s);var f=l.client_id,p=l.user_id,d=l.scope,h=l.sid,v=l.imp_id,y=l.imp_sid,m=l.pba;this.client_id=f,this.expire=t,this.user_id=p,this.scope=d,this.valid=n,this.tokenValue=u,this.sid=h,this.other=c,this.impersonatorId=v||"",this.isImpersonatedSession=!!y,this.pbaSatisfiedPolicies=m&&m.split(",")||[]}return e.prototype.parseJwt=function(e){if(!e)return null;try{return JSON.parse(atob(e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/")))}catch(t){return i.default.error("error on decoding token ",e,t),null}},e.prototype.validate=function(e,t){var r=this,n=r.valid,o=r.client_id,s=r.scope,c=r.expire;return c<new Date?(i.default.error("token invalid  --\x3e expires_at",c),!1):null==n||n?o!==e?(i.default.error("token invalid  --\x3e client id",o,e),!1):!!a.validateScopeInclusion(t,s)||(i.default.error("token invalid  --\x3e scope"," token scope =",s,"vs adobeIdScope =",t,"."),!1):(i.default.error("token invalid  --\x3e valid"),!1)},e}();t.TokenFields=s},19764:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(25021)),s=r(76241),c=r(36752),u=i(r(48631)),l=r(12262),f=r(38699),p=r(9892),d=r(26112),h=r(412),v=i(r(23681)),y=r(41020),m=r(76794),g=r(53373),b=r(2673),_=r(56869),w=r(39284),E=["authorize","check_token"],S=function(){function e(e,t){var r=this;this.getTokenAndProfile=function(e){void 0===e&&(e={});var t=r.getTokenFields();return t instanceof g.ModalSignInEvent||t instanceof l.FragmentException?Promise.reject(t):t instanceof m.AuthorizationCode?r.tokenServiceRequest.imsApis.getTokenFromCode(t,e).then((function(e){var r=e.access_token,n=e.state,i=e.expires_in,a=e.scope,s=void 0===a?"":a,u=o(e,["access_token","state","expires_in","scope"]),l=new c.TokenFields({scope:s,tokenValue:r,valid:!0,state:n,other:t.other},new Date((new Date).getTime()+parseFloat(i)));return Promise.resolve(new p.TokenProfileResponse(l,u))})):t instanceof c.TokenFields?t.fromFragment||!r.tokenServiceRequest.autoValidateToken?Promise.resolve(new p.TokenProfileResponse(t,null)):r.callValidateTokenApi(t.tokenValue).then((function(){return new p.TokenProfileResponse(t,null)})).catch((function(){return r.callRefreshToken(e)})):r.callRefreshToken(e)};var n=e.useLocalStorage;this.csrfService=t,this.tokenServiceRequest=e,this.storage=a.default.getStorageByName(n?s.STORAGE_MODE.LocalStorage:s.STORAGE_MODE.SessionStorage)}return e.prototype.getTokenFields=function(){var e=this.tokenServiceRequest,t=e.clientId,r=e.scope,n=this.getTokenFromFragment();return n instanceof g.ModalSignInEvent||n instanceof l.FragmentException||n instanceof m.AuthorizationCode?n:n&&n.validate(t,r)?(n.fromFragment=!0,this.addTokenToStorage(n),n):this.getTokenFieldsFromStorage()},e.prototype.validateToken=function(){var e=this.getTokenFieldsFromStorage();return e?this.callValidateTokenApi(e.tokenValue):Promise.reject(null)},e.prototype.getReleaseFlags=function(){var e=this.tokenServiceRequest,t=e.clientId,r=e.imsApis,n=this.getTokenFieldsFromStorage();return n?r.getReleaseFlags({token:n.tokenValue,client_id:t}):Promise.reject(null)},e.prototype.getDecodedReleaseFlags=function(){return this.getReleaseFlags().then((function(e){return w.decodeToBitstring(e.releaseFlags,!0)}))},e.prototype.callValidateTokenApi=function(e){var t=this,r=this.tokenServiceRequest,o=r.clientId,i=r.scope;return r.imsApis.validateToken({client_id:o,token:e}).then((function(r){v.default.info("validateToken response",r);var a=new c.TokenFields(n(n({},r),{tokenValue:e}),new Date(parseFloat(r.expires_at)));if(a.validate(o,i))return t.addTokenToStorage(a),Promise.resolve(a);throw new Error("could not validate tokenFields")})).catch((function(e){return v.default.error("validateToken response",e),e instanceof y.HttpErrorResponse||t.removeTokenFromLocalStorage(),Promise.reject(e)}))},e.prototype.getTokenFromFragment=function(e){var t=u.default.fragmentToObject(e);if(!t)return null;var r=t.access_token,i=t.scope,a=t.error,s=t.api,p=t.state,d=void 0===p?{}:p,h=t.expires_in,v=t.client_id,y=t.code,_=void 0===y?"":y,w=o(t,["access_token","scope","error","api","state","expires_in","client_id","code"]),S=d||{},O=S.imslibmodal,k=S.nonce;if(!0===O)return new g.ModalSignInEvent(k);if(!t.from_ims)return null;if(v!==this.tokenServiceRequest.clientId)return null;if(a)return new l.FragmentException(f.IFragmentExceptionType.FRAGMENT,a);if(!E.includes(s))return new l.FragmentException(f.IFragmentExceptionType.API_NOT_ALLOWED,"api should be authorize or check token and "+s+" is used");if(!this.csrfService.verify(k))return new l.FragmentException(f.IFragmentExceptionType.CSRF,"CSRF exception");if(_){var C=(new b.CodeChallenge).getVerifierByKey(k);if(!C)throw new Error("no verifier value has been found");return new m.AuthorizationCode(n(n({},t),{verifier:C}))}return r?new c.TokenFields({client_id:v,scope:i,tokenValue:r,valid:!0,state:d,other:w},new Date((new Date).getTime()+parseFloat(h))):null},e.prototype.getItemFromStorage=function(e){return this.storage.getItem(e)},e.prototype.getTokenFieldsFromStorage=function(e){void 0===e&&(e=!1);var t=this.tokenServiceRequest,r=t.clientId,n=t.scope,o=this.getAccessTokenKey(e),i=this.getItemFromStorage(o);if(!i)return null;var a=JSON.parse(i),s=a.expire?new Date(Date.parse(a.expire)):new Date(a.expiresAtMilliseconds),u=new c.TokenFields(a,s);return u.validate(r,n)?u:null},e.prototype.getAccessTokenKey=function(e){void 0===e&&(e=!1);var t=this.tokenServiceRequest,r=t.clientId,n=t.scope;return s.TOKEN_STORAGE_KEY+"/"+r+"/"+e+"/"+_.sortScopes(n)},e.prototype.addTokenToStorage=function(e){if(e){var t=e.isReauth(),r=this.getAccessTokenKey(t),o=n({},e);o.state={},o.other="{}";var i=JSON.stringify(o);this.storage.setItem(r,i)}},e.prototype.removeTokenFromLocalStorage=function(){var e=this.getAccessTokenKey();this.storage.removeItem(e)},e.prototype.removeReauthTokenFromLocalStorage=function(){var e=this.getAccessTokenKey(!0);this.storage.removeItem(e)},e.prototype.refreshToken=function(e){var t=this;void 0===e&&(e={});var r=this.tokenServiceRequest,i=r.clientId,a=r.imsApis,s=r.scope,c=this.getTokenFieldsFromStorage(),u=c?c.user_id:"";return a.checkToken({client_id:i,scope:s},e,u).then((function(e){if(!e)throw new Error("refresh token --\x3e no response");var r=e.access_token,i=e.expires_in,a=e.token_type,s=e.error,c=e.error_description,u=void 0===c?"":c,l=e.sid,f=o(e,["access_token","expires_in","token_type","error","error_description","sid"]);if(s)throw new Error(s+" "+u);var p=Object.keys(f).length?f:null,d={token:r,expire:new Date(Date.now()+parseFloat(i)),token_type:a,sid:l},h=t.updateToken(d)||{},v={tokenInfo:n(n({},d),{impersonatorId:h.impersonatorId||"",isImpersonatedSession:h.isImpersonatedSession||!1,pbaSatisfiedPolicies:h.pbaSatisfiedPolicies||[]}),profile:p};return Promise.resolve(v)})).catch((function(e){return void 0===e&&(e={}),e instanceof y.HttpErrorResponse||e instanceof d.RideException?Promise.reject(e):(t.removeTokenFromLocalStorage(),Promise.reject(new h.TokenExpiredException(e)))}))},e.prototype.switchProfile=function(e,t){var r=this;void 0===t&&(t={});var i=this.tokenServiceRequest,a=i.clientId,s=i.imsApis,c=i.scope;return s.switchProfile({client_id:a,scope:c},t,e).then((function(e){if(!e)throw new Error("refresh token --\x3e no response");var t=e.access_token,i=e.expires_in,a=e.token_type,s=e.error,c=e.error_description,u=void 0===c?"":c,l=e.sid,f=o(e,["access_token","expires_in","token_type","error","error_description","sid"]);if(s)throw new Error(s+" "+u);var p=Object.keys(f).length?f:null,d={token:t,expire:new Date(Date.now()+parseFloat(i)),token_type:a,sid:l},h=r.updateToken(d)||{},v={tokenInfo:n(n({},d),{impersonatorId:h.impersonatorId||"",isImpersonatedSession:h.isImpersonatedSession||!1}),profile:p};return Promise.resolve(v)})).catch((function(e){return void 0===e&&(e={}),Promise.reject(e)}))},e.prototype.callRefreshToken=function(e){return void 0===e&&(e={}),this.refreshToken(e).then((function(e){var t=e.tokenInfo,r=t.token,n=t.expire,o=e.profile,i=new c.TokenFields({valid:!0,tokenValue:r},n),a=new p.TokenProfileResponse(i,o);return Promise.resolve(a)})).catch((function(e){return Promise.reject(e)}))},e.prototype.updateToken=function(e){var t=e.token,r=e.expire,n=new c.TokenFields({tokenValue:t},r);return n?(n.tokenValue=t,this.addTokenToStorage(n),n):null},e.prototype.purge=function(){this.removeTokenFromLocalStorage(),this.removeReauthTokenFromLocalStorage()},e.prototype.setStandAloneToken=function(e){var t=e.token,r=e.sid,n=e.expirems,o=void 0===n?-1:n,i=this.tokenServiceRequest,a=i.clientId,s=i.scope,u=new Date((new Date).getTime()+o);if(!new c.TokenFields({valid:!0,tokenValue:t},u).validate(a,s))return!1;var l={expire:u,token:t,sid:r};return this.updateToken(l),!0},e.prototype.exchangeIjt=function(e){var t=this,r=this.tokenServiceRequest,n={client_id:r.clientId,scope:r.scope};return r.imsApis.exchangeIjt(n,e).then((function(e){var r=e.valid,n=e.access_token,o=e.expires_in,i=e.profile;if(!1===r)return Promise.reject(e);var a=new Date(Date.now()+1e3*parseFloat(o)),s=new c.TokenFields({valid:!0,tokenValue:n},a);t.addTokenToStorage(s);var u=new p.TokenProfileResponse(s,i);return Promise.resolve(u)}))},e}();t.TokenService=S},48631:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(65926)),i=function(){function e(){}return e.prototype.fragmentToObject=function(e){var t=this.getHashFromURL(e);if(!t)return null;var r=this.processHashUrl(t),n=this.getOldHash(r),i=n?r.slice(r.indexOf("old_hash")):r,a=this.removeOldHash(i),s=this.getQueryParamsAsMap(a);n&&(s.old_hash=n);var c=s.state;return c&&(s.state=o.default.toJson(c)),s},e.prototype.getOldHash=function(e){if(!e)return"";var t=e.match("old_hash=(.*?)&from_ims=true");return t?t[1]:""},e.prototype.removeOldHash=function(e){return e?e.replace(/old_hash=(.*?)&from_ims=true/gi,"from_ims=true"):e},e.prototype.getHashFromURL=function(e){void 0===e&&(e=window.location.href);var t=e.indexOf("#");return-1!==t?e.substring(t+1):""},e.prototype.getQueryParamsAsMap=function(e){if(!e)return{};var t={};return(e=e.replace(/^(#\/|\/|#|\?|&)/,"")).split("&").forEach((function(e){if(e.length){var r=e.split("=");t[r[0]]=decodeURIComponent(r[1])}})),t},e.prototype.processHashUrl=function(e){return e.replace("?error","#error").replace(/#/gi,"&").replace("from_ims=true?","from_ims=true&")},e}();t.default=new i},45156:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.uriEncodeData=function(e){if("object"!=typeof e)return"";var t,r=[],n="";for(var o in e)void 0!==(t=e[o])&&(n=this.encodeValue(t),r.push(encodeURIComponent(o)+"="+n));return r.join("&")},e.prototype.encodeValue=function(e){return null===e?"null":"object"==typeof e?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},e.prototype.replaceUrl=function(e){e&&window.location.replace(e)},e.prototype.sleep=function(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))},e.prototype.replaceUrlAndWait=function(e,t){return r(this,void 0,void 0,(function(){return n(this,(function(r){switch(r.label){case 0:return e?(window.location.replace(e),[4,this.sleep(t)]):[2,Promise.resolve()];case 1:return r.sent(),[2,Promise.resolve()]}}))}))},e.prototype.setHrefUrl=function(e){e&&(window.location.href=e)},e.prototype.setHash=function(e){void 0===e&&(e=""),window.location.hash=e},e}();t.default=new o},39284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="abcdefghijklmnopqrstuvwxyz234567".split("").reduce((function(e,t,r){return e[t]=r,e}),{"=":0});t.decodeToBitstring=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("Data is not a string");var n=e.toLowerCase().split("");!function(e){if(e.length%8!=0)throw new Error("Data length is not a multiple of 8");e.forEach((function(e){if(!(e in r))throw new Error("Unknown encoded character "+e)}));var t=!1;e.forEach((function(e){if("="!==e&&t)throw new Error("Found padding char in the middle of the string");"="===e&&(t=!0)}))}(n);var o=function(e){for(var t=e.length-1,r=0;"="===e[t];)++r,--t;return r}(n),i=[];n.forEach((function(e){i.push(function(e){return t=e.toString(2),(r=5-t.length)>0&&(t=new Array(r+1).join("0")+t),t;var t,r}(r[e]))}));var a=i.join("");return o>0&&(a=a.slice(0,-5*o)),a.length%8!=0&&(a=a.slice(0,a.length%8*-1)),t?function(e){var t="";if(e.length%8!=0)throw new Error("Length must be a multiple of 8");for(var r=0,n=e.length;r<n;r+=8)t+=e.slice(r,r+8).split("").reverse().join("");return t}(a):a}},45088:(e,t)=>{"use strict";function r(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=r,t.merge=function e(t,n){if(null==t)return n;if(t===n)return t;if(!r(t))return t;var o=Object.assign({},t);return r(n)&&Object.keys(n).forEach((function(i){var a,s;r(n[i])?i in t?o[i]=e(t[i],n[i]):Object.assign(o,((a={})[i]=n[i],a)):Object.assign(o,((s={})[i]=n[i],s))})),o}},56869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=",";t.sortScopes=function(e){return e.split(r).sort().join(r)},t.validateScopeInclusion=function(e,t){var n=(null==t?void 0:t.split(r))||[];return((null==e?void 0:e.split(r))||[]).every((function(e){return n.includes(e)}))}},88369:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRegionDefaultLocale=t.getCountryLanguages=t.createLocaleFromIMS=t.getAppNameFromURL=t.isUmbrellaRegionApp=t.getUmbrellaRegions=t.getAllLocales=t.stripUrl=t.langScript=t.normalize=t.priuse=t.regions=t.region=t.script=t.extlang=t.lang=t.findValueByKeyIgnoreCase=t.findKey=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(3)),i=u(r(67)),a=r(2),s=u(a),c=u(r(1));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var f=/^([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})(?=$))?$/,p=function(e){return e.match(f)||[]},d=function(e,t){return Object.keys(e).find((function(r){return t(e[r])}))},h=function(e,t){return void 0!==t?e[Object.keys(e).filter((function(e){return e.toLowerCase()===t.toLowerCase()}))[0]]:void 0},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",n=p(e);if(n.length>0)if(void 0!==n[3])r=!0===t?n[1]+"-"+n[3].charAt(0).toUpperCase()+n[3].slice(1):n[1]+"-"+n[3];else if("zh"===n[1].toLowerCase()&&void 0!==n[4]){var o=n[4].toLowerCase();r=["tw","hk","mo"].includes(o)?"zh-Hant":"zh-Hans"}else r=n[1];return r},y={};Object.keys(o).forEach((function(e){var t=o[e];Object.keys(t).forEach((function(e){var r=t[e];y[e]=r,void 0===y[r]&&(y[r]=r)}))}));var m=function(){return y},g=function(e){return e.replace(/^https?:\/\//,"").replace(/^www\./,"")};t.findKey=d,t.findValueByKeyIgnoreCase=h,t.lang=function(e){return p(e)[1]||""},t.extlang=function(e){return p(e)[2]||""},t.script=function(e){return p(e)[3]||""},t.region=function(e){return p(e)[4]||""},t.regions=i.default,t.priuse=function(e){return p(e)[5]||""},t.normalize=function(e,t){var r=void 0;if(t){var n=(0,c.default)(t,e);r=o[t][n]}return r||h(m(),e)},t.langScript=v,t.stripUrl=g,t.getAllLocales=m,t.getUmbrellaRegions=function(e,t){return d(a.umbrellaRegions,(function(r){return Array.isArray(r)?r.includes(e.toLowerCase()):r[["adobedotcom","helpx"].includes(t)?"adobedotcom":"generic"].includes(e.toLowerCase())}))},t.isUmbrellaRegionApp=function(e){return a.umbrellaRegionApp.includes(e)},t.getAppNameFromURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"==typeof e&&e.length){var r=g(e.trim().toLowerCase()),o=!0,i=!1,a=void 0;try{for(var c,u=s.default[Symbol.iterator]();!(o=(c=u.next()).done);o=!0)for(var f=n(c.value,2),p=f[0],d=f[1],h=d.production?Array.isArray(d.production)?d.production:[d.production]:[],v=d.stage?Array.isArray(d.stage)?d.stage:[d.stage]:[],y=[].concat(l(h),l(v)),m=0;m<y.length;m++){var b=y[m],_=g(b);if(0===r.indexOf(_))return!0===t?{name:p,appBaseURL:_.split("/")[0]}:p}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}},t.createLocaleFromIMS=function(e,t){var r=!1,n="en-US";if("string"==typeof e&&"string"==typeof t&&2===t.length){var o=v(e,!0),a=t.toUpperCase(),s=i.default[a];void 0!==s&&(s.includes(o)?r=!0:o=s[0]||"en",n=o+"-"+a)}return{match:r,locale:n}},t.getCountryLanguages=function(e){var t=["en"],r="string"==typeof e?i.default[e.toUpperCase()]||[]:t;return r.length?r:t},t.getRegionDefaultLocale=function(e){var t=void 0;if("string"==typeof e&&2===e.length){var r=e.toUpperCase();i.default[r]&&i.default[r][0]&&(t=i.default[r][0]+"-"+r)}return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(3)),o=r(0);t.default=function e(t,r,i){if(void 0===n[t])return console.warn('[@intl/adobe-locales] App "'+t+'" is not supported. Please refer to https://git.corp.adobe.com/intl/adobe-locales#supported-apps'),"";if("string"==typeof r&&"zz"===r.substring(0,2)){var a=e(t,"en-US");return a.includes("-")?"zz-ZZ":a.includes("_")?"zz_ZZ":"zz"}var s=void 0;if(r&&void 0!==n[t][r])s=r;else{var c=(0,o.getAllLocales)();if(r&&(""!==(0,o.lang)(r)||void 0!==c[r])){var u=(0,o.findValueByKeyIgnoreCase)(c,r);if(void 0===u&&(u=2===r.length?(0,o.getRegionDefaultLocale)(r)||r:r.includes("_")?r.replace(/_/g,"-"):r),void 0===(s=(0,o.findKey)(n[t],(function(e){return e===u})))&&(0,o.isUmbrellaRegionApp)(t)){var l=(0,o.getUmbrellaRegions)((0,o.region)(r),t);if(l){var f=(0,o.lang)(r)+"-x-"+l.toUpperCase(),p=r.slice(0,-2)+l.toUpperCase();void 0===(s=(0,o.findKey)(n[t],(function(e){return e===f||e===p})))&&void 0!==n[t][l]&&(s=l)}}if(void 0===s&&""!==(0,o.script)(u)){var d=u.substr(0,7).toLowerCase();s=(0,o.findKey)(n[t],(function(e){return e.substr(0,7).toLowerCase()===d}))}if(void 0===s){var h=u.substr(0,2).toLowerCase();s=(0,o.findKey)(n[t],(function(e){return e.substr(0,2).toLowerCase()===h}))}if(void 0===s){var v=u.split("-").pop().toLowerCase();s=(0,o.findKey)(n[t],(function(e){return e.substr(e.length-v.length,v.length).toLowerCase()===v}))}}void 0===s&&void 0!==i&&(s=(0,o.findKey)(n[t],(function(e){return e===i||e===c[i]})))}return"stock"===t&&"us"===s&&(s=""),s||""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=new Map(Object.entries({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/proxy/pricing",production:"https://acrobat.adobe.com/proxy/pricing"},acrobat_web:{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"},assets:{stage:"https://assets-stage.adobecc.com",production:"https://assets.adobe.com"},behance:{stage:"https://net.s2stagehance.com",production:"https://www.behance.net"},spice:{stage:"https://stage.projectspice.corp.adobe.com",production:"https://projectspice.adobe.com"},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"},dcweb:{stage:"https://dc.stage.acrobat.com",production:"https://documentcloud.adobe.com"},experiencecloud:{stage:"https://experiencecloud-stage.adobe.com",production:"https://experiencecloud.adobe.com"},firefly:{stage:"https://firefly-stage.corp.adobe.com",production:"https://firefly.adobe.com"},firefly_nonprod:{stage:"https://firefly-stage.corp.adobe.com",dev:"https://firefly-dev.corp.adobe.com"},frameio:{stage:"https://support.frame.io",production:"https://support.frame.io"},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"},psweb:{stage:"https://stage.photoshop.adobe.com",production:"https://photoshop.adobe.com"},portfolio:{stage:"https://portfolio.ccpsx.com",production:"https://portfolio.adobe.com"},projectx:{stage:"https://stage.projectx.corp.adobe.com",production:["https://preview.projectx.corp.adobe.com","https://projectx.corp.adobe.com","https://new.express.adobe.com"],regions:["AU","BR","CO","DE","ES","FR","ID","IN","IT","JP","KR","MX","TH","GB","US","ZZ"]},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"},stock_contributor:{stage:"https://contributor.stock.stage.adobe.com",production:"https://contributor.stock.adobe.com"},spark:{stage:"https://express-stage.adobe.com",production:["https://spark.adobe.com","https://express.adobe.com"]},s3diweb:{stage:["https://dev.substance3d.adobe.com/assets","https://dev.substance3d.adobe.com/community-assets","https://dev.substance3d.adobe.com/tutorials"],production:"https://substance3d.adobe.com"},s3diwebviewer:{stage:["https://rte-web-viewer-develop.dev.substance3d.io","https://rte-web-viewer-beehive.dev.substance3d.io"],production:["https://rte-web-viewer.substance3d.com"]},commerce_ui:{stage:"https://commerce-stg.adobe.com",production:"https://commerce.adobe.com"},unifiedcheckout:{stage:"https://commerce-stg.adobe.com",production:"https://commerce.adobe.com"},unfurl:{stage:"N/A",production:"N/A"},xd:{stage:"https://stage.xd.adobe.com",production:"https://xd.adobe.com"},adobedotcom:{stage:"https://www.stage.adobe.com",production:"https://www.adobe.com"}}));t.urlApp=["adobedotcom","helpx","spark","stock_contributor","stock","accountmanagement","creativecloudapp","ngl","color","mini_plans","frameio"],t.langParamApp=["adobeaccount","redemption_ui","unifiedcheckout","academic_verification","community","psweb","s3diweb","s3diwebviewer"],t.umbrellaRegionApp=["adobedotcom","helpx","globalnav","ims","acrobat_plan","ngl","jarvis","mini_plans"],t.umbrellaRegions={africa:{generic:["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"],adobedotcom:["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","rw","sc","sd","sl","sn","so","st","sz","td","tg","tz","ug","za","zm","zw"]},cis:["cis","by","kg","kz","tj","uz"],la:{generic:["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","tt"],adobedotcom:["la","bl","bo","br","bz","cl","cr","cu","do","fk","gf","gy","hn","ht","mf","mq","ni","pa","py","sr","sv","uy","ve","tt"]},mena:{generic:["mena","ae","bh","dz","eg","jo","kw","lb","ma","om","qa","sa","tn","ye","iq","ly","mr"],adobedotcom:["mena","ae","bh","dz","jo","lb","ma","om","sa","tn","ye","iq","ly","mr"]},sea:{generic:["sea","id","my","ph","sg","th","vn","lk"],adobedotcom:["sea","sg","lk"]},hk:["mo"],ie:["hr"]},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8);Object.defineProperty(t,"academic_verification",{enumerable:!0,get:function(){return ue(n).default}});var o=r(9);Object.defineProperty(t,"adminconsole",{enumerable:!0,get:function(){return ue(o).default}});var i=r(10);Object.defineProperty(t,"adobeaccount",{enumerable:!0,get:function(){return ue(i).default}});var a=r(11);Object.defineProperty(t,"adobedotcom",{enumerable:!0,get:function(){return ue(a).default}});var s=r(12);Object.defineProperty(t,"acrobat_plan",{enumerable:!0,get:function(){return ue(s).default}});var c=r(13);Object.defineProperty(t,"acrobat_web",{enumerable:!0,get:function(){return ue(c).default}});var u=r(14);Object.defineProperty(t,"acrs",{enumerable:!0,get:function(){return ue(u).default}});var l=r(15);Object.defineProperty(t,"assets",{enumerable:!0,get:function(){return ue(l).default}});var f=r(16);Object.defineProperty(t,"behance",{enumerable:!0,get:function(){return ue(f).default}});var p=r(17);Object.defineProperty(t,"spice",{enumerable:!0,get:function(){return ue(p).default}}),Object.defineProperty(t,"quick_actions",{enumerable:!0,get:function(){return ue(p).default}});var d=r(18);Object.defineProperty(t,"squirrel",{enumerable:!0,get:function(){return ue(d).default}});var h=r(4);Object.defineProperty(t,"cchome",{enumerable:!0,get:function(){return ue(h).default}});var v=r(19);Object.defineProperty(t,"cchome_learn",{enumerable:!0,get:function(){return ue(v).default}});var y=r(20);Object.defineProperty(t,"cchome_leftnav",{enumerable:!0,get:function(){return ue(y).default}});var m=r(21);Object.defineProperty(t,"cclibrary",{enumerable:!0,get:function(){return ue(m).default}});var g=r(22);Object.defineProperty(t,"ccsearch",{enumerable:!0,get:function(){return ue(g).default}});var b=r(23);Object.defineProperty(t,"color",{enumerable:!0,get:function(){return ue(b).default}});var _=r(24);Object.defineProperty(t,"comments",{enumerable:!0,get:function(){return ue(_).default}}),Object.defineProperty(t,"commerce_ui",{enumerable:!0,get:function(){return ue(n).default}});var w=r(25);Object.defineProperty(t,"community",{enumerable:!0,get:function(){return ue(w).default}});var E=r(26);Object.defineProperty(t,"creativecloudapp",{enumerable:!0,get:function(){return ue(E).default}});var S=r(27);Object.defineProperty(t,"dva_voice",{enumerable:!0,get:function(){return ue(S).default}}),Object.defineProperty(t,"dcweb",{enumerable:!0,get:function(){return ue(c).default}});var O=r(28);Object.defineProperty(t,"editbilling",{enumerable:!0,get:function(){return ue(O).default}});var k=r(29);Object.defineProperty(t,"experiencecloud",{enumerable:!0,get:function(){return ue(k).default}});var C=r(30);Object.defineProperty(t,"firefly",{enumerable:!0,get:function(){return ue(C).default}});var x=r(31);Object.defineProperty(t,"firefly_nonprod",{enumerable:!0,get:function(){return ue(x).default}});var L=r(32);Object.defineProperty(t,"fonts",{enumerable:!0,get:function(){return ue(L).default}});var I=r(33);Object.defineProperty(t,"font_picker",{enumerable:!0,get:function(){return ue(I).default}});var P=r(34);Object.defineProperty(t,"frameio",{enumerable:!0,get:function(){return ue(P).default}});var A=r(35);Object.defineProperty(t,"globalnav",{enumerable:!0,get:function(){return ue(A).default}}),Object.defineProperty(t,"helpx",{enumerable:!0,get:function(){return ue(a).default}});var T=r(36);Object.defineProperty(t,"ims",{enumerable:!0,get:function(){return ue(T).default}});var R=r(37);Object.defineProperty(t,"lightroom",{enumerable:!0,get:function(){return ue(R).default}});var j=r(38);Object.defineProperty(t,"jarvis",{enumerable:!0,get:function(){return ue(j).default}});var N=r(39);Object.defineProperty(t,"mcs",{enumerable:!0,get:function(){return ue(N).default}});var D=r(40);Object.defineProperty(t,"mini_plans_photoshop_lightroom_start_trial",{enumerable:!0,get:function(){return ue(D).default}});var U=r(41);Object.defineProperty(t,"mini_plans",{enumerable:!0,get:function(){return ue(U).default}});var M=r(42);Object.defineProperty(t,"mt",{enumerable:!0,get:function(){return ue(M).default}});var F=r(43);Object.defineProperty(t,"ngl",{enumerable:!0,get:function(){return ue(F).default}});var H=r(44);Object.defineProperty(t,"panel_licensing",{enumerable:!0,get:function(){return ue(H).default}});var z=r(45);Object.defineProperty(t,"psweb",{enumerable:!0,get:function(){return ue(z).default}});var B=r(46);Object.defineProperty(t,"portfolio",{enumerable:!0,get:function(){return ue(B).default}});var G=r(47);Object.defineProperty(t,"projectx",{enumerable:!0,get:function(){return ue(G).default}});var K=r(48);Object.defineProperty(t,"publiclinks",{enumerable:!0,get:function(){return ue(K).default}});var V=r(49);Object.defineProperty(t,"react_spectrum",{enumerable:!0,get:function(){return ue(V).default}});var W=r(50);Object.defineProperty(t,"redemption_ui",{enumerable:!0,get:function(){return ue(W).default}});var Z=r(51);Object.defineProperty(t,"sharesheet",{enumerable:!0,get:function(){return ue(Z).default}});var Y=r(52);Object.defineProperty(t,"spark",{enumerable:!0,get:function(){return ue(Y).default}});var J=r(53);Object.defineProperty(t,"stock",{enumerable:!0,get:function(){return ue(J).default}});var q=r(54);Object.defineProperty(t,"stock_api",{enumerable:!0,get:function(){return ue(q).default}});var $=r(55);Object.defineProperty(t,"stock_contributor",{enumerable:!0,get:function(){return ue($).default}});var X=r(56);Object.defineProperty(t,"s3diweb",{enumerable:!0,get:function(){return ue(X).default}});var Q=r(57);Object.defineProperty(t,"s3diwebviewer",{enumerable:!0,get:function(){return ue(Q).default}}),Object.defineProperty(t,"switchplan_app",{enumerable:!0,get:function(){return ue(i).default}});var ee=r(58);Object.defineProperty(t,"timeline",{enumerable:!0,get:function(){return ue(ee).default}});var te=r(59);Object.defineProperty(t,"unfurl",{enumerable:!0,get:function(){return ue(te).default}}),Object.defineProperty(t,"unifiedcheckout",{enumerable:!0,get:function(){return ue(n).default}});var re=r(60);Object.defineProperty(t,"unifiedcheckout_v1",{enumerable:!0,get:function(){return ue(re).default}});var ne=r(61);Object.defineProperty(t,"unifiedpanel",{enumerable:!0,get:function(){return ue(ne).default}});var oe=r(62);Object.defineProperty(t,"uss",{enumerable:!0,get:function(){return ue(oe).default}});var ie=r(63);Object.defineProperty(t,"utilitynav",{enumerable:!0,get:function(){return ue(ie).default}});var ae=r(64);Object.defineProperty(t,"ututs",{enumerable:!0,get:function(){return ue(ae).default}});var se=r(65);Object.defineProperty(t,"xd",{enumerable:!0,get:function(){return ue(se).default}});var ce=r(66);function ue(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"_supplement",{enumerable:!0,get:function(){return ue(ce).default}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(1))&&n.__esModule?n:{default:n},i=r(0);t.default=function(e,t,r){"string"==typeof e&&(e=e.replace(/-/g,"_"));var n=(0,i.createLocaleFromIMS)(t,r),a=n.locale,s=n.match,c=(0,o.default)(e,a);return"mini_plans"!==e&&"mini_plans_photoshop_lightroom_start_trial"!==e||(s=s&&a===(0,i.normalize)(c,e)),{match:s,locale:c}}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(2),i=r(0),a=(n=r(1))&&n.__esModule?n:{default:n};t.default=function(t,r){try{if("string"!=typeof t||"string"!=typeof r)throw Error('expect "url" and "locale" to be string.');if((t=t.trim()).toLowerCase().includes("adobe.com/go/"))return t;var n=t,s=(0,i.getAppNameFromURL)(t,!0),c=s.name,u=s.appBaseURL;if(void 0===c)throw Error('this app is not supported yet: "'+t+'"');var l=(0,a.default)(c,r);if(l){var f=(0,i.getAllLocales)();if(o.urlApp.includes(c)){"en"!==l&&"us"!==l&&"en-US"!==l||(l="");var p=u+"/(.*?)(?=/|$)",d=(t.match(p)||[])[1];void 0!==d&&void 0!==f[d]?n=t.replace(u+"/"+d,""===l?u:u+"/"+l):(""!==l&&(n=t.replace(u,u+"/"+l)),"helpx"===c&&t.includes(".ug.html")&&(n=n.replace(".html/",".html/"+l+"/")))}else{var h=o.langParamApp.includes(c)?"community"===c?"profile.language":"lang":"locale",v=new RegExp("("+h+"=)(.*?)(?=&|$)");n=void 0!==(t.match(v)||[])[2]?t.replace(v,"$1"+l):t+(t.includes("?")?"&":"?")+h+"="+l}}return n}catch(t){"development"===e.env.NODE_ENV&&console.error("[getLocalizedURL] Error: "+t.message)}return t}}).call(t,r(70))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);Object.defineProperty(t,"getAppLocale",{enumerable:!0,get:function(){return f(n).default}});var o=r(68);Object.defineProperty(t,"getAppLocales",{enumerable:!0,get:function(){return f(o).default}});var i=r(69);Object.defineProperty(t,"getAppRegions",{enumerable:!0,get:function(){return f(i).default}});var a=r(5);Object.defineProperty(t,"getAppLocaleFromIMS",{enumerable:!0,get:function(){return f(a).default}});var s=r(6);Object.defineProperty(t,"getLocalizedURL",{enumerable:!0,get:function(){return f(s).default}});var c=r(71);Object.defineProperty(t,"getLocalizedURLFromIMS",{enumerable:!0,get:function(){return f(c).default}});var u=r(72);Object.defineProperty(t,"parseLocaleParam",{enumerable:!0,get:function(){return f(u).default}});var l=r(0);function f(e){return e&&e.__esModule?e:{default:e}}Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bg:"bg-BG",cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",el:"el-GR",es:"es-ES",et:"et-EE",fi:"fi-FI",fr:"fr-FR",hu:"hu-HU",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",ms:"ms-MY",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",th:"th-TH",tr:"tr-TR",uk:"uk-UA",vi:"vi-VN","zh-hant":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ar:"ar-AE",bg:"bg-BG",cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",el:"el-GR",es:"es-ES",et:"et-EE",fi:"fi-FI",fr:"fr-FR",id:"id-ID",he:"he-IL",hu:"hu-HU",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",ms:"ms-MY",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",th:"th-TH",tr:"tr-TR",uk:"uk-UA",vi:"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mena_ar:"ar-x-MENA",ae_ar:"ar-AE",eg_ar:"ar-EG",sa_ar:"ar-SA",kw_ar:"ar-KW",qa_ar:"ar-QA",bg:"bg-BG",cz:"cs-CZ",dk:"da-DK",de:"de-DE",at:"de-AT",ch_de:"de-CH",lu_de:"de-LU",ph_fil:"fil-PH",us:"en-US",ae_en:"en-AE",au:"en-AU",be_en:"en-BE",ca:"en-CA",cy_en:"en-CY",uk:"en-GB",gr_en:"en-GR",eg_en:"en-EG",hk_en:"en-HK",ie:"en-IE",il_en:"en-IL",in:"en-IN",kw_en:"en-KW",lu_en:"en-LU",mt:"en-MT",ng:"en-NG",nz:"en-NZ",sa_en:"en-SA",sg:"en-SG",th_en:"en-TH",ph_en:"en-PH",qa_en:"en-QA",id_en:"en-ID",my_en:"en-MY",vn_en:"en-VN",africa:"en-x-AFRICA",cis_en:"en-x-CIS",mena_en:"en-x-MENA",sea:"en-x-SEA",ec:"es-EC",es:"es-ES",gt:"es-GT",mx:"es-MX",cl:"es-CL",ar:"es-AR",co:"es-CO",pe:"es-PE",pr:"es-PR",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",in_hi:"hi-IN",id_id:"id-ID",it:"it-IT",ch_it:"it-CH",jp:"ja-JP",kr:"ko-KR",lt:"lt-LT",lv:"lv-LV",my_ms:"ms-MY",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",th_th:"th-TH",tr:"tr-TR",ua:"uk-UA",vn_vi:"vi-VN",cn:"zh-Hans-CN",tw:"zh-Hant-TW",hk_zh:"zh-Hant-HK"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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","hu-HU":"hu-HU","sk-SK":"sk-SK","sl-SI":"sl-SI","uk-UA":"uk-UA","hr-HR":"hr-HR","ro-RO":"ro-RO","ca-ES":"ca-ES","eu-ES":"eu-ES","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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","eu-ES":"eu-ES","id-ID":"id-ID","ms-MY":"ms-MY","th-TH":"th-TH","vi-VN":"vi-VN","hr-HR":"hr-HR","sl-SI":"sl-SI","sk-SK":"sk-SK","uk-UA":"uk-UA","hu-HU":"hu-HU","is-IS":"is-IS","cy-GB":"cy-GB"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"cs-CZ":"cs-CZ","cy-GB":"cy-GB","da-DK":"da-DK","de-DE":"de-DE","en-GB":"en-GB","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","pt-BR":"pt-BR","ru-RU":"ru-RU","sv-SE":"sv-SE","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"cy-GB":"cy-GB","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","pt-BR":"pt-BR","sv-SE":"sv-SE","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=o({},((n=r(4))&&n.__esModule?n:{default:n}).default,{hu:"hu-HU",uk:"uk-UA"});t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=o({},((n=r(4))&&n.__esModule?n:{default:n}).default,{cy:"cy-GB",ms:"ms-MY",id:"id-ID",hu:"hu-HU",th:"th-TH",uk:"uk-UA"});t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cs_CZ:"cs-CZ",cy_GB:"cy-GB",da_DK:"da-DK",de_DE:"de-DE",en_US:"en-US",es_ES:"es-ES",es_MX:"es-MX",fi_FI:"fi-FI",fr_FR:"fr-FR",fr_CA:"fr-CA",fr_MA:"fr-MA",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",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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cs:"cs-CZ",cy:"cy-GB",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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",ja:"ja-JP",ko:"ko-KR",pt:"pt-BR"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"da-dk":"da-DK","de-de":"de-DE","en-us":"en-US","en-gb":"en-GB","es-es":"es-ES","fr-fr":"fr-FR","hi-in":"hi-IN","it-it":"it-IT","ja-jp":"ja-JP","ko-kr":"ko-KR","pt-br":"pt-BR","pt-pt":"pt-PT","nb-no":"nb-NO","nl-nl":"nl-NL","sv-se":"sv-SE","ru-ru":"ru-RU","cmn-hans":"zh-Hans-CN","cmn-hant":"zh-Hant-TW","zh-hk":"zh-Hant-HK"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ar:"ar-AE",bg:"bg-BG",cs:"cs-CZ",da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",el:"el-GR",et:"et-EE",fi:"fi-FI",fr:"fr-FR",he:"he-IL",hu:"hu-HU",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lt:"lt-LT",lv:"lv-LV",ms:"ms-MY",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",th:"th-TH",tr:"tr-TR",uk:"uk-UA",vi:"vi-VN","zh-hans":"zh-Hans-CN","zh-hant":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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","ru-RU":"ru-RU","sv-SE":"sv-SE","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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-BL","pt-BR":"pt-BR","ru-RU":"ru-RU","sv-SE":"sv-SE","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"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","pt-BR":"pt-BR","sv-SE":"sv-SE","ru-RU":"ru-RU","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"cs-CZ":"cs-CZ","cy-GB":"cy-GB","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","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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",ru:"ru-RU","pt-BR":"pt-BR","zh-CN":"zh-Hans-CN"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mena_ar:"ar-x-MENA",ae_ar:"ar-AE",sa_ar:"ar-SA",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",ae_en:"en-AE",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",sa_en:"en-SA",sg:"en-SG",th_en:"en-TH",africa:"en-x-AFRICA",cis_en:"en-x-CIS",mena_en:"en-x-MENA",sea:"en-x-SEA",es:"es-ES",mx:"es-MX",cl:"es-CL",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",th_th:"th-TH",tr:"tr-TR",ua:"uk-UA",cn:"zh-Hans-CN",tw:"zh-Hant-TW",hk_zh:"zh-Hant-HK"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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-SI",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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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-Latn-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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={au:"en-AU",nz:"en-NZ"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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",ar:"es-AR",cl:"es-CL",co:"es-CO",es:"es-ES",mx:"es-MX",pe:"es-PE",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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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","id-ID":"id-ID","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","ms-MY":"ms-MY","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-TW":"zh-Hant-TW","zh-HK":"zh-Hant-HK"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={en:"en-US",en_GB:"en-GB",cs:"cs-CZ",da:"da-DK",de:"de-DE",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",uk:"uk-UA",zh_Hans:"zh-Hans-CN",zh_Hant:"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"cy-GB":"cy-GB","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","pt-BR":"pt-BR","sv-SE":"sv-SE","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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","es-ES":"es-ES","et-EE":"et-EE","fi-FI":"fi-FI","fr-FR":"fr-FR","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-SP":"sr-Latn-RS","sv-SE":"sv-SE","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cs:"cs-CZ",cy:"cy-GB",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",uk:"uk-UA","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"cy-GB":"cy-GB","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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bg:"bg-BG",cz:"cs-CZ",dk:"da-DK",de:"de-DE",at:"de-AT",ch_de:"de-CH",lu_de:"de-LU",gr_en:"el-GR",cy_en:"el-CY",us:"en-US",be_en:"en-BE",ca:"en-CA",au:"en-AU",uk:"en-GB",ie:"en-IE",lu_en:"en-LU",nz:"en-NZ",ph:"en-PH",sg:"en-SG",es:"es-ES",ar:"es-AR",cl:"es-CL",co:"es-CO",cr:"es-CR",ec:"es-EC",gt:"es-GT",mx:"es-MX",pe:"es-PE",ve:"es-VE",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-IL",in:"hi-IN",hu:"hu-HU",it:"it-IT",ch_it:"it-CH",jp:"ja-JP",kr:"ko-KR",lt:"lt-LT",lv:"lv-LV",mt:"mt-MT",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",tr:"tr-TR",ua:"uk-UA",tw:"zh-Hant-TW",hk:"zh-Hant-HK"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cs_CZ:"cs-CZ",da_DK:"da-DK",de_AT:"de-AT",de_CH:"de-CH",de_DE:"de-DE",de_LU:"de-LU",en_US:"en-US",cy_EN:"en-CY",be_EN:"en-BE",ca_EN:"en-CA",en_AE:"en-AE",en_AU:"en-AU",en_BG:"en-BG",en_BH:"en-BH",en_DZ:"en-DZ",en_EE:"en-EE",en_EG:"en-EG",en_FI:"en-FI",en_HR:"en-HR",en_HU:"en-HU",en_ID:"en-ID",en_IE:"en-IE",en_IL:"en-IL",en_JO:"en-JO",en_KE:"en-KE",en_KW:"en-KW",en_LB:"en-LB",en_LK:"en-LK",en_LT:"en-LT",en_LV:"en-LV",en_MA:"en-MA",en_MT:"en-MT",en_MY:"en-MY",en_NG:"en-NG",en_NZ:"en-NZ",en_OM:"en-OM",en_QA:"en-QA",en_RO:"en-RO",en_SA:"en-SA",en_SI:"en-SI",en_SK:"en-SK",en_TH:"en-TH",en_TR:"en-TR",en_UA:"en-UA",en_UK:"en-UK",en_VN:"en-VN",gr_EN:"en-GR",lu_EN:"lu-EN",es_ES:"es-ES",es_BO:"es-BO",es_DO:"es-DO",es_MX:"es-MX",es_PA:"es-PA",es_PY:"es-PY",es_SV:"es-SV",fr_FR:"fr-FR",fr_CA:"fr-CA",fr_BE:"fr-BE",fr_CH:"fr-CH",fr_LU:"fr-LU",fr_MA:"fr-MA",it_IT:"it-IT",it_CH:"it-CH",ja_JP:"ja-JP",ko_KR:"ko-KR",nb_NO:"nb-NO",nl_NL:"nl-NL",nl_BE:"nl-BE",pl_PL:"pl-PL",pt_BR:"pt-BR",pt_PT:"pt-PT",ru_RU:"ru-RU",ru_KZ:"ru-KZ",ru_UZ:"ru-UZ",sv_SE:"sv-SE"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bg:"bg-BG",cz:"cs-CZ",dk:"da-DK",de:"de-DE",at:"de-AT",ch_de:"de-CH",lu_de:"de-LU",gr_en:"el-GR",cy_en:"el-CY",en:"en-US",be_en:"en-BE",ca:"en-CA",au:"en-AU",uk:"en-GB",ie:"en-IE",lu_en:"en-LU",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",mt:"mt-MT",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",tr:"tr-TR",ua:"uk-UA"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"de-DE":"de-DE","en-US":"en-US","fr-FR":"fr-FR","ja-JP":"ja-JP","zh-Hans":"zh-Hans-CN"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"cs-CZ":"cs-CZ","da-DK":"da-DK","de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","es-MX":"es-MX","fi-FI":"fi-FI","fr-CA":"fr-CA","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-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cs:"cs-CZ",cy:"cy-GB",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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"cy-GB":"cy-GB","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","pt-BR":"pt-BR","sv-SE":"sv-SE","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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",fi_FI:"fi-FI",fr_FR:"fr-FR",fr_CA:"fr-CA",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",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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cs_CZ:"cs-CZ",cy_GB:"cy-GB",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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={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",es_ES:"es-ES",es_MX:"es-MX",fi_FI:"fi-FI",fr_FR:"fr-FR",fr_CA:"fr-CA",fr_MA:"fr-MA",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",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",de_AT:"de-AT",de_CH:"de-CH",de_LU:"de-LU",en_ZA:"en-x-AFRICA",en_AU:"en-AU",en_BE:"en-BE",en_CA:"en-CA",en_LU:"en-LU",en_MENA:"en-x-MENA",en_MT:"en-MT",en_NZ:"en-NZ",en_SA:"en-SA",en_SG:"en-SG",en_TH:"en-TH",en_IN:"en-IN",en_IE:"en-IE",en_GR:"en-GR",en_HK:"en-HK",en_CY:"en-CY",en_PH:"en-PH",en_ID:"en-ID",en_MY:"en-MY",en_VN:"en-VN",es_LA:"es-x-LA",es_CL:"es-CL",es_AR:"es-AR",es_PE:"es-PE",es_CO:"es-CO",fr_BE:"fr-BE",fr_CH:"fr-CH",fr_LU:"fr-LU",it_CH:"it-CH",nl_BE:"nl-BE",pt_PT:"pt-PT",zh_HK:"zh-Hant-HK",bg_BG:"bg-BG",et_EE:"et-EE",he_IL:"he-IL",lt_LT:"lt-LT",lv_LV:"lv-LV",ar_MENA:"ar-x-MENA",ar_AE:"ar-AE",ar_SA:"ar-SA",ro_RO:"ro-RO",sl_SL:"sl-SL",sk_SK:"sk-SK",th_TH:"th-TH",fil_PH:"fil-PH",id_ID:"id-ID",my_MS:"ms-MY",vn_VI:"vn-VI",in_HI:"hi-IN"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","fr-FR":"fr-FR","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","pt-BR":"pt-BR","ru-RU":"ru-RU"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={uk:"uk-UA",pt:"pt-BR","ar-mena":"ar-x-MENA","en-africa":"en-x-AFRICA","en-cis":"en-x-CIS","en-mena":"en-x-MENA","en-sea":"en-x-SEA","es-la":"es-x-LA","ru-cis":"ru-x-CIS",zh:"zh-Hans-CN","es-419":"es-419","zh-CN":"zh-Hans-CN","zh-HK":"zh-Hant-HK","zh-TW":"zh-Hant-TW"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={AF:[],AX:[],AL:[],DZ:["en","fr","ar"],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"],CX:[],CC:["en"],CO:["es"],KM:[],CG:["en","fr"],CD:["en","fr"],CK:[],CR:["es"],CI:["en","fr"],HR:["hr","en"],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:["el","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"],HU:["hu"],IS:[],IN:["en"],ID:["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:["en","ar"],LS:["en"],LR:["en"],LY:["ar"],LI:[],LT:["lt"],LU:["en","de","fr"],MO:["en","zh-Hant"],MK:[],MG:["en","fr"],MW:[],MY:["ms","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:["en","fr","ar"],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","ca","eu"],LK:["en"],SD:[],SR:["nl"],SJ:[],SZ:[],SE:["sv"],CH:["de","fr","it"],SY:[],TW:["zh-Hant"],TJ:["ru","en"],TZ:["en"],TH:["th","en"],TL:[],TG:[],TK:[],TO:[],TT:["en"],TN:["en","fr","ar"],TR:["tr"],TM:["en","ru"],TC:["en"],TV:[],UG:["en"],UA:["uk"],AE:["en","ar"],GB:["en"],US:["en"],UM:[],UY:["es"],UZ:["ru","en"],VU:[],VE:["es"],VN:["vi","en"],VG:["en"],VI:[],WF:[],EH:[],YE:["en","ar"],ZM:["en"],ZW:["en"]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(3));t.default=function(e){return n[e]&&Object.keys(n[e])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_REGION_TRANSLATIONS=void 0;var n,o=(n=r(2))&&n.__esModule?n:{default:n},i=r(0),a={cs:"Globální",cy:"Byd-eang",da:"Global",de:"Global",en:"Global",es:"Global",fi:"Kansainvälinen",fr:"Global",hu:"Globális",it:"Globale",ja:"グローバル",ko:"글로벌",nb:"Global",nl:"Wereldwijd",pl:"Cały świat",pt:"Global",ru:"Глобальный",sv:"Globalt",tr:"Global",uk:"Весь світ","zh-Hans":"全球","zh-Hant":"全球"};t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US",n=o.default.get(e),s=n&&n.regions||[];if(s.length>0&&!0===t){var c=Intl.DisplayNames&&new Intl.DisplayNames([r],{type:"region"}),u=a[(0,i.langScript)(r,e)]||"Global";return s.map((function(e){return{code:e,name:"ZZ"===e?u:c&&c.of(e)}}))}return s},t.GLOBAL_REGION_TRANSLATIONS=a},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(6)),o=a(r(5)),i=r(0);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){var a=(0,i.getAppNameFromURL)(e),s=(0,o.default)(a,t,r),c=s.locale;return{match:s.match,url:(0,n.default)(e,c)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(1))&&n.__esModule?n:{default:n},i=r(0),a=r(2);t.default=function(e){var t=void 0;if("string"==typeof e){var r=(0,i.getAppNameFromURL)(e);if(r){var n=a.langParamApp.includes(r)?"lang":"locale",s=new RegExp("("+n+"=)(.*?)(?=&|$)");t=(e.match(s)||[])[2]||"",t=(0,o.default)(r,t,"en-US")}}return t}}])},e.exports=t()},26453:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.umbrellaRegions=t.umbrellaRegionApp=t.langParamApp=t.urlApp=void 0,t.urlApp=["adobedotcom","helpx","spark","stock_contributor","stock","accountmanagement","creativecloudapp","ngl","color","mini_plans","frameio"],t.langParamApp=["adobeaccount","redemption_ui","unifiedcheckout","academic_verification","community","psweb","s3diweb","s3diwebviewer"],t.umbrellaRegionApp=["adobedotcom","helpx","globalnav","ims","acrobat_plan","ngl","jarvis","mini_plans"],t.umbrellaRegions={africa:{generic:["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"],adobedotcom:["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","rw","sc","sd","sl","sn","so","st","sz","td","tg","tz","ug","za","zm","zw"],mini_plans:["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","rw","sc","sd","sl","sn","so","st","sz","td","tg","tz","ug","za","zm","zw"]},cis:["cis","by","kg","kz","tj","uz"],la:{generic:["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","tt"],adobedotcom:["la","bl","bo","br","bz","cl","cr","cu","do","fk","gf","gy","hn","ht","mf","mq","ni","pa","py","sr","sv","uy","ve","tt"]},mena:{generic:["mena","ae","bh","dz","eg","jo","kw","lb","ma","om","qa","sa","tn","ye","iq","ly","mr"],adobedotcom:["mena","ae","bh","dz","jo","lb","ma","om","sa","tn","ye","iq","ly","mr"],mini_plans:["mena","bh","dz","jo","lb","ma","om","tn","ye","iq","ly","mr"]},sea:{generic:["sea","id","my","ph","sg","th","vn","lk"],adobedotcom:["sea","sg","lk"]},hk:["mo"],ie:["hr","cy","mt"]}},45866:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(85201)),i=r(81653),a=(e,t,r)=>{if(void 0===e||void 0===o.default[e])return console.warn(`[@intl/adobe-locales] App "${e}" is not supported. Please refer to https://git.corp.adobe.com/intl/adobe-locales#supported-apps`),"";if(t&&"zz"===t.substring(0,2)){const t=a(e,"en-US");return t.includes("-")?"zz-ZZ":t.includes("_")?"zz_ZZ":"zz"}let n;if(e&&t&&void 0!==o.default[e][t])n=t;else{const a=(0,i.getAllLocales)();if(t&&(""!==(0,i.lang)(t)||void 0!==a[t])){let r=(0,i.findValueByKeyIgnoreCase)(a,t);if(void 0===r&&(r=2===t.length?(0,i.getRegionDefaultLocale)(t)||t:t.includes("_")?t.replace(/_/g,"-"):t),n=e&&(0,i.findKey)(o.default[e],(e=>e===r)),void 0===n&&e&&(0,i.isUmbrellaRegionApp)(e)){const r=(0,i.getUmbrellaRegions)((0,i.region)(t),e);if(r){const a=`${(0,i.lang)(t)}-x-${r.toUpperCase()}`,s=t.slice(0,-2)+r.toUpperCase();n=(0,i.findKey)(o.default[e],(e=>e===a||e===s)),void 0===n&&void 0!==o.default[e][r]&&(n=r)}}if(void 0===n&&r&&"string"==typeof r&&""!==(0,i.script)(r)){const t=r.substr(0,7).toLowerCase();n=(0,i.findKey)(o.default[e],(e=>e.substr(0,7).toLowerCase()===t))}if(void 0===n&&"string"==typeof r){const t=-1!==r.indexOf("-")?r.indexOf("-"):2,a=r.substr(0,t).toLowerCase();n=(0,i.findKey)(o.default[e],(e=>e.substr(0,t).toLowerCase()===a))}if(void 0===n&&"string"==typeof r){const t=r.split("-").pop().toLowerCase();n=(0,i.findKey)(o.default[e],(e=>e.substr(e.length-t.length,t.length).toLowerCase()===t))}}void 0===n&&void 0!==r&&(n=(0,i.findKey)(o.default[e],(e=>e===r||e===a[r])))}return"stock"===e&&"us"===n&&(n=""),n||""};t.default=a},82618:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(45866)),i=r(81653);t.default=(e,t,r)=>{const n=e.replace(/-/g,"_");if(void 0!==t&&void 0!==r){const{locale:e,match:a}=(0,i.createLocaleFromIMS)(t,r);return{match:a,locale:(0,o.default)(n,e)}}return{locale:"us",match:!1}}},30196:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(85201));t.default=e=>e&&o.default[e]?Object.keys(o.default[e]):void 0},42388:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_REGION_TRANSLATIONS=void 0;const n=r(81653),o={bg:"Глобален",bn:"বিশ্বব্যাপী",cs:"Globální",cy:"Byd-eang",da:"Global",de:"Global",el:"Παγκόσμιος",en:"Global",es:"Global",fi:"Kansainvälinen",fil:"Pandaigdig",fr:"Global",hi:"वैश्विक",hr:"Globalno",hu:"Globális",id:"Global",it:"Globale",ja:"グローバル",ko:"글로벌",mr:"वैश्विक",ms:"Global",nb:"Global",ne:"वैश्विक",nl:"Wereldwijd",pl:"Cały świat",pt:"Global",ro:"Global",ru:"Глобальный",sr:"Глобално",sv:"Globalt",ta:"உலகளாவிய",te:"గ్లోబల్",th:"ทั่วโลก",tr:"Global",uk:"Весь світ",vi:"Toàn cầu","zh-Hans":"全球","zh-Hant":"全球"};t.GLOBAL_REGION_TRANSLATIONS=o,t.default=(e,t=!0,r="en-US")=>{const i=e?n.apps.get(e):void 0,a=i&&i.regions||[];if(a.length>0&&t){const t=Intl.DisplayNames?new Intl.DisplayNames([r],{type:"region"}):void 0,i=o[(0,n.langScript)(r,void 0!==e)]||"Global";return a.map((e=>({code:e,name:"ZZ"===e?i:(null==t?void 0:t.of(e))||e})))}return a}},90184:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(81653),i=r(26453),a=n(r(45866));t.default=(e,t)=>{try{if((e=e.trim()).toLowerCase().includes("adobe.com/go/"))return e;let r=e;const n=(0,o.getAppNameFromURL)(e,!0);if(void 0===n.name)throw new Error(`This app is not supported yet: "${e}"`);let s=(0,a.default)(n.name,t);if(s){const t=(0,o.getAllLocales)();if(i.urlApp.includes(n.name)){"en"!==s&&"us"!==s&&"en-US"!==s||(s="");const o=`${n.appBaseURL}/(.*?)(?=/|$)`,i=(e.match(o)||[])[1];void 0!==n.appBaseURL&&void 0!==i&&void 0!==t[i]?r=e.replace(`${n.appBaseURL}/${i}`,""===s?n.appBaseURL:`${n.appBaseURL}/${s}`):(""!==s&&(r=e.replace(n.appBaseURL,`${n.appBaseURL}/${s}`)),"helpx"===n.name&&e.includes(".ug.html")&&(r=r.replace(".html/",`.html/${s}/`)))}else{const t=i.langParamApp.includes(n.name)?"community"===n.name?"profile.language":"lang":"locale",o=new RegExp(`(${t}=)(.*?)(?=&|$)`);r=void 0!==(e.match(o)||[])[2]?e.replace(o,`$1${s}`):`${e}${e.includes("?")?"&":"?"}${t}=${s}`}}return r}catch(e){}return e}},61308:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(90184)),i=n(r(82618)),a=r(81653);t.default=(e,t,r)=>{if(void 0===e||""===e)return void 0===e?{url:void 0,match:!1}:{url:"",match:!1};const n=(0,a.getAppNameFromURL)(e),{locale:s,match:c}=(0,i.default)(n,t,r);return{match:c,url:(0,o.default)(e,s)}}},73913:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseLocaleParam=t.getLocalizedURLFromIMS=t.getLocalizedURL=t.getAppLocaleFromIMS=t.getAppRegions=t.getAppLocales=t.getAppLocale=void 0;var a=r(45866);Object.defineProperty(t,"getAppLocale",{enumerable:!0,get:function(){return i(a).default}});var s=r(30196);Object.defineProperty(t,"getAppLocales",{enumerable:!0,get:function(){return i(s).default}});var c=r(42388);Object.defineProperty(t,"getAppRegions",{enumerable:!0,get:function(){return i(c).default}});var u=r(82618);Object.defineProperty(t,"getAppLocaleFromIMS",{enumerable:!0,get:function(){return i(u).default}});var l=r(90184);Object.defineProperty(t,"getLocalizedURL",{enumerable:!0,get:function(){return i(l).default}});var f=r(61308);Object.defineProperty(t,"getLocalizedURLFromIMS",{enumerable:!0,get:function(){return i(f).default}});var p=r(99687);Object.defineProperty(t,"parseLocaleParam",{enumerable:!0,get:function(){return i(p).default}}),o(r(81653),t)},85201:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(47029)),i=n(r(72860)),a=n(r(95191)),s=n(r(15215)),c=n(r(87228)),u=n(r(25147)),l=n(r(74359)),f=n(r(48256)),p=n(r(62626)),d=n(r(39162)),h=n(r(62303)),v=n(r(4810)),y=n(r(86337)),m=n(r(36232)),g=n(r(80240)),b=n(r(60847)),_=n(r(60847)),w=n(r(6188)),E=n(r(89912)),S=n(r(12738)),O=n(r(95986)),k=n(r(94752)),C=n(r(81666)),x=n(r(26314)),L=n(r(47029)),I=n(r(73988)),P=n(r(57285)),A=n(r(95538)),T=n(r(48256)),R=n(r(92322)),j=n(r(4968)),N=n(r(22838)),D=n(r(81846)),U=n(r(13194)),M=n(r(54136)),F=n(r(96786)),H=n(r(10956)),z=n(r(23191)),B=n(r(87228)),G=n(r(78658)),K=n(r(3078)),V=n(r(78509)),W=n(r(56985)),Z=n(r(76680)),Y=n(r(13627)),J=n(r(90348)),q=n(r(67861)),$=n(r(38571)),X=n(r(33270)),Q=n(r(39867)),ee=n(r(79732)),te=n(r(64659)),re=n(r(62667)),ne=n(r(3716)),oe=n(r(33194)),ie=n(r(87182)),ae=n(r(60107)),se=n(r(21311)),ce=n(r(85990)),ue=n(r(89856)),le=n(r(67760)),fe=n(r(37754)),pe=n(r(6352)),de=n(r(15215)),he=n(r(14141)),ve=n(r(76586)),ye=n(r(47029)),me=n(r(89183)),ge=n(r(76436)),be=n(r(40152)),_e=n(r(48062)),we=n(r(11484)),Ee=n(r(28553)),Se=n(r(7143)),Oe=n(r(84162)),ke={academic_verification:o.default,account_menu:i.default,adminconsole:a.default,adobeaccount:s.default,adobedotcom:c.default,adobelearn:u.default,acrobat_plan:l.default,acrobat_web:f.default,acrs:p.default,assets:d.default,aura:h.default,behance:v.default,business_essentials:y.default,quick_actions:m.default,squirrel:g.default,adobehome:b.default,cchome:_.default,cchome_learn:w.default,cchome_leftnav:E.default,cclibrary:S.default,ccsearch:O.default,ccsurfaces:k.default,color:C.default,comments:x.default,commerce_ui:L.default,community:I.default,creativecloudapp:P.default,dva_voice:A.default,dcweb:T.default,editbilling:R.default,experiencecloud:j.default,firefly:N.default,firefly_nonprod:D.default,fonts:U.default,font_picker:M.default,frameio:F.default,globalnav:H.default,glaas:z.default,helpx:B.default,ims:G.default,ims_preferred_lang:K.default,lightroom:V.default,jarvis:W.default,mcs:Z.default,mini_plans_photoshop_lightroom_start_trial:Y.default,mini_plans:J.default,mt:q.default,ngl:$.default,panel_licensing:X.default,psweb:Q.default,portfolio:ee.default,projectx:te.default,projectx_nonprod:re.default,publiclinks:ne.default,react_spectrum:oe.default,redemption_ui:ie.default,sharesheet:ae.default,spark:se.default,stock:ce.default,stock_api:ue.default,stock_contributor:le.default,s3diweb:fe.default,s3diwebviewer:pe.default,switchplan_app:de.default,timeline:he.default,unfurl:ve.default,unifiedcheckout:ye.default,unifiedcheckout_v1:me.default,unifiedpanel:ge.default,uss:be.default,universalnav:_e.default,utilitynav:we.default,ututs:Ee.default,xd:Se.default,_supplement:Oe.default};t.default=ke},99687:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(45866)),i=r(81653),a=r(26453);t.default=e=>{let t;if(void 0===e)return;const r=(0,i.getAppNameFromURL)(e);if(r){const n=a.langParamApp.includes(r)?"lang":"locale",i=new RegExp(`(${n}=)(.*?)(?=&|$)`);return t=(e.match(i)||[])[2]||"",t=(0,o.default)(r,t,"en-US"),t}}},81653:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.apps=t.getRegionDefaultLocale=t.getCountryLanguages=t.createLocaleFromIMS=t.getAppNameFromURL=t.isUmbrellaRegionApp=t.getUmbrellaRegions=t.getAllLocales=t.stripUrl=t.langScript=t.normalize=t.priuse=t.regions=t.region=t.script=t.extlang=t.lang=t.findValueByKeyIgnoreCase=t.findKey=void 0;const o=n(r(85201)),i=n(r(93653)),a=n(r(7340)),s=r(26453),c=n(r(45866)),u=new Map(Object.entries(i.default));t.apps=u;const l=a.default;t.regions=l;const f=/^([a-zA-Z]{2,3})(?:[_-]+([a-zA-Z]{3})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{4})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{2}|[0-9]{3})(?=$|[_-]+))?(?:-x-([a-zA-Z0-9]{1,8})(?=$))?$/,p=e=>e.match(f)||[],d=(e,t)=>Object.keys(e).find((r=>t(e[r])));t.findKey=d;const h=(e,t)=>{const r=t&&t.toLowerCase(),n=Object.keys(e).find((e=>e.toLowerCase()===r));return n?e[n]:void 0};t.findValueByKeyIgnoreCase=h,t.lang=e=>p(e)[1]||"",t.extlang=e=>p(e)[2]||"",t.script=e=>p(e)[3]||"",t.region=e=>p(e)[4]||"",t.priuse=e=>p(e)[5]||"";const v=(e,t)=>{let r="";const n=p(e);if(n.length>0)if(void 0!==n[3])r=t?`${n[1]}-${n[3].charAt(0).toUpperCase()}${n[3].slice(1)}`:`${n[1]}-${n[3]}`;else if("zh"===n[1].toLowerCase()&&void 0!==n[4]){let e=n[4].toLowerCase();r=["tw","hk","mo"].includes(e)?"zh-Hant":"zh-Hans"}else r=n[1];return r};t.langScript=v;const y={};Object.keys(o.default).forEach((e=>{const t=o.default[e];Object.keys(t).forEach((e=>{const r=t[e];y[e]=r,void 0===y[r]&&(y[r]=r)}))}));const m=()=>y;t.getAllLocales=m,t.getUmbrellaRegions=(e,t)=>d(s.umbrellaRegions,(r=>{var n,o;return Array.isArray(r)?r.includes(e.toLowerCase()):null!==(o=null===(n=r[t&&["adobedotcom","helpx"].includes(t)?"adobedotcom":"generic"])||void 0===n?void 0:n.includes(e.toLowerCase()))&&void 0!==o&&o})),t.isUmbrellaRegionApp=e=>s.umbrellaRegionApp.includes(e),t.normalize=(e,t)=>{let r;if(t){const n=(0,c.default)(t,e);r=o.default[t][n]}return r||h(m(),e)},t.createLocaleFromIMS=(e,t)=>{let r=!1,n="en-US";if(void 0!==e&&void 0!==t&&2===t.length){let o=v(e,!0),i=t.toUpperCase(),a=l[i];void 0!==a&&(a.includes(o)?r=!0:o=a[0]||"en",n=`${o}-${i}`)}return{match:r,locale:n}};const g=e=>e.replace(/^https?:\/\//,"").replace(/^www\./,"");t.stripUrl=g,t.getAppNameFromURL=(e,t=!1)=>{0===e.length&&console.error("URL must be a non-empty string.");const r=g(e.trim().toLowerCase());for(const[e,n]of u){const o=[...Array.isArray(n.production)?n.production:[n.production],...Array.isArray(n.stage)?n.stage:[n.stage]];for(const n of o){const o=n?g(n):"";if(o&&r.startsWith(o))return t?{name:e,appBaseURL:o.split("/")[0]}:e}}return""},t.getRegionDefaultLocale=e=>{let t;if(2===e.length){const r=e.toUpperCase();l[r]&&l[r][0]&&(t=`${l[r][0]}-${r}`)}return t},t.getCountryLanguages=e=>{const t=["en"],r=void 0!==e?l[e.toUpperCase()]||[]:t;return r.length?r:t}},40174:(e,t,r)=>{"use strict";r.d(t,{AJ:()=>c,BU:()=>u,Y5:()=>l,ZP:()=>m,ad:()=>p,ci:()=>s,gk:()=>f,hT:()=>v});var n=r(73913);const o=e=>{let t="";if("undefined"!=typeof document&&e.length){const r=document.cookie?document.cookie.split("; "):[];for(const n of r){const[r,o]=n.split("=");if(decodeURIComponent(r)===e){t=decodeURIComponent(o);break}}}return t},i="international",a="adobedotcom",s="LocaleCookieName",c="QueryParameter",u="UrlPath",l="imsFn",f="en-US",p="language",d="format",h="region",v="isTestLocaleEnabled",y="zz-ZZ";class m{static async parse(e="",t={},r){let m="",g="",b="";const _=new Map,w=new Map,E=t[l];let S=new Map;try{if("function"==typeof E&&(S=await E()),0===e.length)throw new Error('[LanguageRegionNegotiator]: please provide an "appCode". Please refer to in https://git.corp.adobe.com/intl/adobe-locales#supported-apps');const l=r=>!0===t[v]&&r===y?y:(0,n.getAppLocale)(e,r);let O=t[s];if(O){w.set("localeCodeCookies",O);for(const e of"string"==typeof O?[O]:O)if(m=o(e),m?.length)break;m=l(m)}if(""===m&&!0===t[u]){const e=location?.pathname.split("/")[1];e&&(m=l(m))}if(""===m){const e=t[c];e&&(m=(e=>{const t=`${encodeURIComponent(e)}=`,r=location?.search.substr(1).split("&").find((e=>e.startsWith(t)));return r&&decodeURIComponent(r.replace(t,""))})(e),m=l(m))}if(""===m&&"function"==typeof E&&S.has(p)&&(m=l(S.get(p))),""===m&&(m=l((0,n.normalize)(o(i),a))),""===m){const t=[navigator?.language].concat(navigator?.languages);for(const r of t)if(r&&(m=(0,n.getAppLocale)(e,r),""!==m))break}if(m||(m=(0,n.getAppLocale)(e,f)),_.set(p,m),w.set("localeCode",m),O=t.FormatCookieName,O){w.set("formatterCookies",O);for(const e of"string"==typeof O?[O]:O)if(g=o(e),g?.length)break;g=(0,n.normalize)(g)||g}if(""===g&&navigator?.languages)for(const e of navigator?.languages)if(e&&(g=(0,n.normalize)(e),""!==g))break;if(g||(g=f),_.set(d,g),w.set("formatCode",g),O=t.RegionCookieName,O){w.set("regionCookies",O);for(const e of"string"==typeof O?[O]:O)if(b=o(e),b?.length)break}if(""===b&&"function"==typeof E&&S.has(h)&&(b=(0,n.normalize)(S.get(h),e)),""===b&&o(i)&&(b=(0,n.normalize)(o(i),a)),""===b&&navigator?.languages)for(const t of navigator?.languages)if(t&&(b=(0,n.normalize)(t,e),""!==b))break;b||(b=(0,n.normalize)(f,e));try{_.set(h,b.includes("-")?(0,n.region)(b):b),w.set("regionCode",b)}catch(t){_.set(h,"US"),w.set("error",t),w.set("erroredRegionCode",b),w.set("appCode",e)}return"function"==typeof r&&await r(_),new Map([..._,...w])}catch(e){return w.set("error","Failed Language Region Negotiator parse call. Falling back to backups. Error:"+e),new Map([[p,f],[d,f],[h,"US"],...w])}}}},13050:(e,t,r)=>{"use strict";r.d(t,{HN:()=>g,EV:()=>y,vu:()=>o});class n{constructor(e){this.config=e}updateToken(e){this.config.accessToken=e}}class o extends Error{constructor(e,t,r,n=new Headers){super(r),this.name="FireflyApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e,this.headers=n}}var i=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const a=e=>null!=e,s=e=>"string"==typeof e,c=e=>"object"==typeof e&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.arrayBuffer&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]),u=e=>e instanceof FormData,l=(e,t)=>i(void 0,void 0,void 0,(function*(){return"function"==typeof t?t(e):t})),f=(e,t)=>i(void 0,void 0,void 0,(function*(){const[r,n]=yield Promise.all([l(t,e.accessToken),l(t,e.headers)]),o=Object.entries(Object.assign(Object.assign({Accept:"application/json"},n),t.headers)).filter((([e,t])=>a(t))).reduce(((e,[t,r])=>Object.assign(Object.assign({},e),{[t]:String(r)})),{});var i;return s(i=r)&&""!==i&&(o.Authorization=`Bearer ${r}`),t.body&&(c(t.body)&&t.body.type?o["Content-Type"]=t.body.type:t.mediaType?o["Content-Type"]=t.mediaType:c(t.body)?o["Content-Type"]=t.body.type||"application/octet-stream":s(t.body)?o["Content-Type"]="text/plain":u(t.body)||(o["Content-Type"]="application/json")),new Headers(o)})),p=(e,t)=>new Promise(((r,n)=>i(void 0,void 0,void 0,(function*(){var l;try{const n=((e,t)=>{const r=encodeURI,n=t.url.replace(/{(.*?)}/g,((e,n)=>{var o;return(null===(o=t.path)||void 0===o?void 0:o.hasOwnProperty(n))?r(String(t.path[n])):e}));let o=e.baseUrl;const i=t.url;e.urlOverrides&&e.urlOverrides[i]&&(o=e.urlOverrides[i]);let s=`${o}${n}`;return o.endsWith("/")&&n.startsWith("/")&&(s=`${o}${n.substr(1)}`),t.query?`${s}${(e=>{const t=[],r=(e,n)=>{a(n)&&(Array.isArray(n)?n.forEach((t=>{r(e,t)})):"object"==typeof n?Object.entries(n).forEach((([t,n])=>{r(`${e}[${t}]`,n)})):((e,r)=>{t.push(`${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`)})(e,n))};return Object.entries(e).forEach((([e,t])=>{r(e,t)})),t.length>0?`?${t.join("&")}`:""})(t.query)}`:s})(e,t),p=(e=>{if(e.formData){const t=new FormData,r=(e,r)=>{s(r)||c(r)?t.append(e,r):t.append(e,JSON.stringify(r))};return Object.entries(e.formData).filter((([e,t])=>a(t))).forEach((([e,t])=>{Array.isArray(t)?t.forEach((t=>r(e,t))):r(e,t)})),t}})(t),d=(e=>{var t;if(void 0!==e.body)return(null===(t=e.mediaType)||void 0===t?void 0:t.includes("/json"))?JSON.stringify(e.body):s(e.body)||c(e.body)||u(e.body)?e.body:JSON.stringify(e.body)})(t),h=yield f(e,t),v=yield((e,t,r,n,o,a)=>i(void 0,void 0,void 0,(function*(){const e={headers:a,body:null!=n?n:o,method:t.method,signal:t.signal};return yield fetch(r,e)})))(0,t,n,d,p,h),y=yield(e=>i(void 0,void 0,void 0,(function*(){if(204!==e.status)try{const t=e.headers.get("Content-Type");if(t){const r=["application/json","application/problem+json"].some((e=>t.toLowerCase().startsWith(e))),n=t.toLowerCase().includes("multipart/form-data");return r?yield e.json():n?yield e.formData():yield e.text()}}catch(e){console.error(e)}})))(v),m={url:n,ok:v.ok,status:v.status,statusText:v.statusText,body:y,response:v};if(((e,t,r)=>{var n,i;const a=Object.assign({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},e.errors)[t.status];if(a)throw new o(e,t,a,r);if(!t.ok){const a=null!==(n=t.status)&&void 0!==n?n:"unknown",s=null!==(i=t.statusText)&&void 0!==i?i:"unknown",c=(()=>{try{return JSON.stringify(t.body,null,2)}catch(e){return}})();throw new o(e,t,`Generic Error: status: ${a}; status text: ${s}; body: ${c}`,r)}})(t,m,v.headers),null===(l=v.headers.get("Content-Type"))||void 0===l?void 0:l.includes("multipart/form-data")){const e={"response.json":null,files:new Map};for(const t of m.body.entries()){const r=t[0],n=t[1];if("response"===r){const t=yield n.text();e["response.json"]=JSON.parse(t)}else n instanceof Blob&&void 0!==e.files&&null!==e.files&&e.files.set(r,n)}let t={result:e,headers:v.headers};r(t)}else{let e={result:m.body,headers:v.headers};r(e)}}catch(e){n(e)}}))));class d extends n{constructor(e){super(e)}request(e){return p(this.config,e)}}class h{constructor(e){this.httpRequest=e}jobResult(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"GET",url:"/jobs/result/{job_id}",path:{job_id:e},headers:Object.assign({},r),errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}cancelJob(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"PUT",url:"/jobs/cancel/{job_id}",path:{job_id:e},headers:Object.assign({},r),errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}}class v{constructor(e){this.httpRequest=e}fillImages(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v2/images/fill",headers:Object.assign({},r),body:e,mediaType:"application/json",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}backgroundReplace(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v2/images/background-replace",headers:Object.assign({},r),body:e,mediaType:"application/json",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}generateObjectComposite(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v2/images/generate-object-composite",headers:Object.assign({},r),body:e,mediaType:"application/json",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}expandImages(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v2/images/expand",headers:Object.assign({},r),body:e,mediaType:"application/json",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}v2ImagesGenerateV2ImagesGeneratePost(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v2/images/generate",headers:Object.assign({},r),body:e,mediaType:"application/json",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}v2ImagesGenerateV2ImagesGenerateAsyncPost(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v2/images/generate-async",headers:Object.assign({},r),body:e,mediaType:"application/json",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}v2ImagesGenerateSimilarV2ImagesGenerateSimilarPost(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v2/images/generate-similar",headers:Object.assign({},r),body:e,mediaType:"application/json",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}storageImage(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),e instanceof Blob&&!e.type?Promise.reject(new Error("The type of the file is not specified. Set type while creating Blob object.")):this.httpRequest.request({method:"POST",url:"/v2/storage/image",headers:Object.assign({},r),body:e,mediaType:"image/jpeg",errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}createSession(e){let t={};return(null==e?void 0:e.additionalHeaders)&&(t=e.additionalHeaders()),this.httpRequest.request({method:"POST",url:"/v3/session",headers:Object.assign({},t),errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==e?void 0:e.signal})}cancelSession(e,t){let r={};return(null==t?void 0:t.additionalHeaders)&&(r=t.additionalHeaders()),this.httpRequest.request({method:"DELETE",url:"/v3/session/{session_id}",path:{session_id:e},headers:Object.assign({},r),errors:{400:"Bad Request",403:"Forbidden",404:"Not Found",408:"Request Timeout",409:"Conflict",410:"Gone",415:"Unsupported Media Type",422:"Unprocessable Entity",451:"Unavailable For Legal Reasons",499:"Additional Response",500:"Internal Server Error",501:"Not Implemented",503:"Service Unavailable"},signal:null==t?void 0:t.signal})}}class y{constructor(e,t=d){this.config=this.validateApiConfig(e),this.request=new t(this.config),this.async=new h(this.request),this.public=new v(this.request)}updateToken(e){this.config.accessToken=e}validateApiConfig(e){var t;const r=e;try{r.baseUrl=new URL(e.baseUrl).href}catch(e){throw new Error("config.baseUrl is not valid URL")}if("string"!=typeof e.accessToken||e.accessToken.length<=0)throw new Error("config.accessToken is not valid");if("string"!=typeof e.clientId||e.clientId.length<=0)throw new Error("config.clientId is not valid");const n=null!==(t=e.headers)&&void 0!==t?t:{};return r.headers=Object.assign({"x-api-key":e.clientId},n),r}}var m,g,b,_;!function(e){e.MODEL_NOT_FOUND="model_not_found",e.MODEL_NOT_LOADED="model_not_loaded",e.NOT_IMPLEMENTED="not_implemented",e.VALIDATION_ERROR="validation_error",e.RUNTIME_ERROR="runtime_error",e.CANCELLED_ERROR="cancelled_error",e.TIMEOUT_ERROR="timeout_error",e.LEGAL_ERROR="legal_error",e.PROMPT_UNSAFE="prompt_unsafe",e.IMAGE_UNSAFE="image_unsafe",e.REFERENCE_IMAGE_UNSAFE_ERROR="reference_image_unsafe_error",e.LANGUAGE_NOT_SUPPORTED="language_not_supported",e.FILE_NOT_FOUND="file_not_found",e.JOB_ALREADY_CANCELED="job_already_canceled",e.JOB_CANCELED="job_canceled",e.JOB_TIMEOUT="job_timeout",e.JOB_COMPLETED="job_completed",e.UNKNOWN_JOB_ID="unknown_job_id",e.ACCESS_ERROR="access_error",e.INVALID_CONTENT_TYPE="invalid_content_type",e.EMPTY_INPUT_BODY="empty_input_body"}(m||(m={})),function(e){e.PHOTO="photo",e.ART="art",e.VECTOR="vector"}(g||(g={})),function(e){e.NONE="none",e.STYLE_ZERO_LOW="style-zero-low",e.STYLE_ZERO_MEDIUM="style-zero-medium",e.STYLE_ZERO_HIGH="style-zero-high"}(b||(b={})),function(e){e.DEFAULT="default",e.TEXTURE="texture",e.SURFACE="surface",e.T5="t5"}(_||(_={}))},17578:(e,t,r)=>{"use strict";r.d(t,{Dj:()=>f,JA:()=>v,f7:()=>o,fw:()=>h,hU:()=>d,lE:()=>p,mQ:()=>u,sB:()=>a,u7:()=>c,vC:()=>l});var n=r(78842),o=function(e){return e[e.NEVER=0]="NEVER",e[e.DEV=1]="DEV",e[e.STAGE_1=2]="STAGE_1",e[e.STAGE_2=4]="STAGE_2",e[e.INTERNAL_PROD=8]="INTERNAL_PROD",e[e.EXTERNAL_RELEASE=16]="EXTERNAL_RELEASE",e}({}),i=o.DEV|o.STAGE_1,a=i|o.STAGE_2,s=a|o.INTERNAL_PROD;function c(e){return Boolean(16&e)}function u(){switch(16){case o.INTERNAL_PROD:case o.EXTERNAL_RELEASE:return n.IEnvironment.PROD;case o.STAGE_2:return n.IEnvironment.STAGE;case o.STAGE_1:return"dev";default:return"local"}}function l(){return c(o.INTERNAL_PROD|o.EXTERNAL_RELEASE)}function f(){return c(a)}function p(){return c(i)}function d(){return c(o.DEV)}function h(){return c(s)}function v(){return 16===o.STAGE_1?"stage1":16===o.INTERNAL_PROD?"internalProd":16===o.EXTERNAL_RELEASE?"externalRelease":"stage2"}o.EXTERNAL_RELEASE},85824:(e,t,r)=>{"use strict";r.d(t,{Lq:()=>v,OQ:()=>y,cD:()=>p,hg:()=>m,pB:()=>_,rv:()=>h,uz:()=>f});var n=r(86116),o=r(45016);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,a,s,c){var u=p(e[n],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==i(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return o("throw",e,s,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function s(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,c,"next",e)}function c(e){s(i,n,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===i(o)?o:String(o)),n)}var o}var l="https:",f={oneOf:[{required:["remoteBlobRef"],properties:{remoteBlobRef:{type:"string",pattern:"".concat(l,".*")}}},{required:["localBlobRef","mimeType"],properties:{localBlobRef:{type:"string"},mimeType:{type:"string"}}}]};function p(e){return h(e)||v(e)}function d(e){return e.startsWith(l)}function h(e){return"string"==typeof(null==e?void 0:e.remoteBlobRef)}function v(e){return"string"==typeof(null==e?void 0:e.localBlobRef)}function y(e){if(!d(e))throw new Error("Invalid url, expected to start with (".concat(l,"): ").concat(e));return{remoteBlobRef:e}}var m=Symbol("hasBlob"),g=(0,n.w)("blobstore",10,100);function b(e,t){if(!t&&function(e){return new URL(e).host.endsWith("adobe.io")}(e))throw new Error("BlobStore: Header with Access token is expected for Adobe I/O urls.");return fetch(e,{headers:null!=t?t:{}})}var _=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,i,s,l;return t=e,r=[{key:"getRef",value:(l=c(a().mark((function e(t){var r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof t){e.next=8;break}if(!d(t)){e.next=3;break}return e.abrupt("return",y(t));case 3:return e.next=5,fetch(t);case 5:return e.next=7,e.sent.blob();case 7:t=e.sent;case 8:return e.next=10,g;case 10:return r=e.sent,e.next=13,(0,o.wi)(t);case 13:return e.t0=e.sent,e.t1=t.type,n={localBlobRef:e.t0,mimeType:e.t1},e.next=18,r.put(new Request("".concat(window.location.origin,"/").concat(n.localBlobRef)),new Response(t));case 18:return e.abrupt("return",n);case 19:case"end":return e.stop()}}),e)}))),function(e){return l.apply(this,arguments)})},{key:m,value:(s=c(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h(t)){e.next=2;break}return e.abrupt("return",!0);case 2:return e.next=4,g;case 4:return r=e.sent,e.t0=void 0,e.next=8,r.match(new Request("".concat(window.location.origin,"/").concat(t.localBlobRef)));case 8:return e.t1=e.sent,e.abrupt("return",e.t0!==e.t1);case 10:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"getBlob",value:(i=c(a().mark((function e(t,r){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h(t)){e.next=4;break}e.t0=b(t.remoteBlobRef,r),e.next=7;break;case 4:return e.next=6,g;case 6:e.t0=e.sent.match(new Request("".concat(window.location.origin,"/").concat(t.localBlobRef)));case 7:return e.next=9,e.t0;case 9:if(n=e.sent){e.next=12;break}return e.abrupt("return",void 0);case 12:if(n.ok){e.next=14;break}throw new Error(n.statusText);case 14:return e.next=16,n.blob();case 16:return e.abrupt("return",e.sent);case 17:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})},{key:"borrowUrl",value:(n=c(a().mark((function e(t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h(t)){e.next=4;break}return e.abrupt("return",t.remoteBlobRef);case 4:return e.next=6,this.getBlob(t);case 6:return r=e.sent,e.abrupt("return",r?URL.createObjectURL(r):void 0);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"returnUrl",value:function(e){void 0===e||d(e)||URL.revokeObjectURL(e)}}],r&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())},26116:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(45016);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var s={mutable:function(e){return structuredClone(e)},readonly:function(e){return structuredClone(e)},parse:function(e){return JSON.parse(e)},stringify:function(e){return JSON.stringify(e)},hash:function(e){return(0,n.Lp)(e)},equals:function(e,t){return s.stringify(e)===s.stringify(t)},normalize:function(e){return JSON.parse(JSON.stringify(e),(function(e,t){return t&&!Array.isArray(t)&&"object"===a(t)?Object.fromEntries(Object.entries(t).sort((function(e,t){var r=o(e,1)[0],n=o(t,1)[0];return r<n?-1:r>n?1:0}))):t}))}}},42465:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(44697);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){"object"!==o({env:{}})&&n.Gr(e)}},41742:(e,t,r)=>{"use strict";function n(e){return encodeURI(function(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}(e))}r.d(t,{c:()=>C});const o={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},i={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},a={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};let s="undefined"!=typeof self&&self.location&&"null"!==self.location.origin?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function c(e,t=Object.create(null),r=s,u=""){if(e&&"object"==typeof e&&!Array.isArray(e)){const n=e.$id||e.id;if(n){const o=new URL(n,r.href);o.hash.length>1?t[o.href]=e:(o.hash="",""===u?r=o:c(e,t,r))}}else if(!0!==e&&!1!==e)return t;const l=r.href+(u?"#"+u:"");if(void 0!==t[l])throw new Error(`Duplicate schema URI "${l}".`);if(t[l]=e,!0===e||!1===e)return t;if(void 0===e.__absolute_uri__&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:l}),e.$ref&&void 0===e.__absolute_ref__){const t=new URL(e.$ref,r.href);t.hash=t.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:t.href})}if(e.$recursiveRef&&void 0===e.__absolute_recursive_ref__){const t=new URL(e.$recursiveRef,r.href);t.hash=t.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:t.href})}e.$anchor&&(t[new URL("#"+e.$anchor,r.href).href]=e);for(let s in e){if(a[s])continue;const l=`${u}/${n(s)}`,f=e[s];if(Array.isArray(f)){if(o[s]){const e=f.length;for(let n=0;n<e;n++)c(f[n],t,r,`${l}/${n}`)}}else if(i[s])for(let e in f)c(f[e],t,r,`${l}/${n(e)}`);else c(f,t,r,l)}return t}function u(e,t){const r=typeof e;if(r!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(!u(e[n],t[n]))return!1;return!0}if("object"===r){if(!e||!t)return e===t;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const n of r)if(!u(e[n],t[n]))return!1;return!0}return e===t}const l=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,f=[0,31,28,31,30,31,30,31,31,30,31,30,31],p=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function d(e){return e.test.bind(e)}const h={date:v,time:y.bind(void 0,!1),"date-time":function(e){const t=e.split(m);return 2==t.length&&v(t[0])&&y(!0,t[1])},duration:e=>e.length>1&&e.length<80&&(/^P\d+([.,]\d+)?W$/.test(e)||/^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(e)&&/^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(e)),uri:function(e){return g.test(e)&&b.test(e)},"uri-reference":d(/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i),"uri-template":d(/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i),url:d(/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu),email:e=>{if('"'===e[0])return!1;const[t,r,...n]=e.split("@");return!(!t||!r||0!==n.length||t.length>64||r.length>253)&&"."!==t[0]&&!t.endsWith(".")&&!t.includes("..")&&!(!/^[a-z0-9.-]+$/i.test(r)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(t))&&r.split(".").every((e=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(e)))},hostname:d(/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i),ipv4:d(/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/),ipv6:d(/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i),regex:function(e){if(_.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:d(/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i),"json-pointer":d(/^(?:\/(?:[^~/]|~0|~1)*)*$/),"json-pointer-uri-fragment":d(/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i),"relative-json-pointer":d(/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/),date:d(/^\d\d\d\d-[0-1]\d-[0-3]\d$/),time:d(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i),"date-time":d(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i),"uri-reference":d(/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i)};function v(e){const t=e.match(l);if(!t)return!1;const r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:f[n])}function y(e,t){const r=t.match(p);if(!r)return!1;const n=+r[1],o=+r[2],i=+r[3],a=!!r[5];return(n<=23&&o<=59&&i<=59||23==n&&59==o&&60==i)&&(!e||a)}const m=/t|\s/i,g=/\/|:/,b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,_=/[^\\]\\Z/;function w(e,t,r="2019-09",o=c(t),i=!0,a=null,s="#",l="#",f=Object.create(null)){if(!0===t)return{valid:!0,errors:[]};if(!1===t)return{valid:!1,errors:[{instanceLocation:s,keyword:"false",keywordLocation:s,error:"False boolean schema."}]};const p=typeof e;let d;switch(p){case"boolean":case"number":case"string":d=p;break;case"object":d=null===e?"null":Array.isArray(e)?"array":"object";break;default:throw new Error(`Instances of "${p}" type are not supported.`)}const{$ref:v,$recursiveRef:y,$recursiveAnchor:m,type:g,const:b,enum:_,required:E,not:S,anyOf:O,allOf:k,oneOf:C,if:x,then:L,else:I,format:P,properties:A,patternProperties:T,additionalProperties:R,unevaluatedProperties:j,minProperties:N,maxProperties:D,propertyNames:U,dependentRequired:M,dependentSchemas:F,dependencies:H,prefixItems:z,items:B,additionalItems:G,unevaluatedItems:K,contains:V,minContains:W,maxContains:Z,minItems:Y,maxItems:J,uniqueItems:q,minimum:$,maximum:X,exclusiveMinimum:Q,exclusiveMaximum:ee,multipleOf:te,minLength:re,maxLength:ne,pattern:oe,__absolute_ref__:ie,__absolute_recursive_ref__:ae}=t,se=[];if(!0===m&&null===a&&(a=t),"#"===y){const n=null===a?o[ae]:a,c=`${l}/$recursiveRef`,u=w(e,null===a?t:a,r,o,i,n,s,c,f);u.valid||se.push({instanceLocation:s,keyword:"$recursiveRef",keywordLocation:c,error:"A subschema had errors."},...u.errors)}if(void 0!==v){const t=o[ie||v];if(void 0===t){let e=`Unresolved $ref "${v}".`;throw ie&&ie!==v&&(e+=`  Absolute URI "${ie}".`),e+=`\nKnown schemas:\n- ${Object.keys(o).join("\n- ")}`,new Error(e)}const n=`${l}/$ref`,c=w(e,t,r,o,i,a,s,n,f);if(c.valid||se.push({instanceLocation:s,keyword:"$ref",keywordLocation:n,error:"A subschema had errors."},...c.errors),"4"===r||"7"===r)return{valid:0===se.length,errors:se}}if(Array.isArray(g)){let t=g.length,r=!1;for(let n=0;n<t;n++)if(d===g[n]||"integer"===g[n]&&"number"===d&&e%1==0&&e==e){r=!0;break}r||se.push({instanceLocation:s,keyword:"type",keywordLocation:`${l}/type`,error:`Instance type "${d}" is invalid. Expected "${g.join('", "')}".`})}else"integer"===g?("number"!==d||e%1||e!=e)&&se.push({instanceLocation:s,keyword:"type",keywordLocation:`${l}/type`,error:`Instance type "${d}" is invalid. Expected "${g}".`}):void 0!==g&&d!==g&&se.push({instanceLocation:s,keyword:"type",keywordLocation:`${l}/type`,error:`Instance type "${d}" is invalid. Expected "${g}".`});if(void 0!==b&&("object"===d||"array"===d?u(e,b)||se.push({instanceLocation:s,keyword:"const",keywordLocation:`${l}/const`,error:`Instance does not match ${JSON.stringify(b)}.`}):e!==b&&se.push({instanceLocation:s,keyword:"const",keywordLocation:`${l}/const`,error:`Instance does not match ${JSON.stringify(b)}.`})),void 0!==_&&("object"===d||"array"===d?_.some((t=>u(e,t)))||se.push({instanceLocation:s,keyword:"enum",keywordLocation:`${l}/enum`,error:`Instance does not match any of ${JSON.stringify(_)}.`}):_.some((t=>e===t))||se.push({instanceLocation:s,keyword:"enum",keywordLocation:`${l}/enum`,error:`Instance does not match any of ${JSON.stringify(_)}.`})),void 0!==S){const t=`${l}/not`;w(e,S,r,o,i,a,s,t).valid&&se.push({instanceLocation:s,keyword:"not",keywordLocation:t,error:'Instance matched "not" schema.'})}let ce=[];if(void 0!==O){const t=`${l}/anyOf`,n=se.length;let c=!1;for(let n=0;n<O.length;n++){const u=O[n],l=Object.create(f),p=w(e,u,r,o,i,!0===m?a:null,s,`${t}/${n}`,l);se.push(...p.errors),c=c||p.valid,p.valid&&ce.push(l)}c?se.length=n:se.splice(n,0,{instanceLocation:s,keyword:"anyOf",keywordLocation:t,error:"Instance does not match any subschemas."})}if(void 0!==k){const t=`${l}/allOf`,n=se.length;let c=!0;for(let n=0;n<k.length;n++){const u=k[n],l=Object.create(f),p=w(e,u,r,o,i,!0===m?a:null,s,`${t}/${n}`,l);se.push(...p.errors),c=c&&p.valid,p.valid&&ce.push(l)}c?se.length=n:se.splice(n,0,{instanceLocation:s,keyword:"allOf",keywordLocation:t,error:"Instance does not match every subschema."})}if(void 0!==C){const t=`${l}/oneOf`,n=se.length,c=C.filter(((n,c)=>{const u=Object.create(f),l=w(e,n,r,o,i,!0===m?a:null,s,`${t}/${c}`,u);return se.push(...l.errors),l.valid&&ce.push(u),l.valid})).length;1===c?se.length=n:se.splice(n,0,{instanceLocation:s,keyword:"oneOf",keywordLocation:t,error:`Instance does not match exactly one subschema (${c} matches).`})}if("object"!==d&&"array"!==d||Object.assign(f,...ce),void 0!==x){const t=`${l}/if`;if(w(e,x,r,o,i,a,s,t,f).valid){if(void 0!==L){const n=w(e,L,r,o,i,a,s,`${l}/then`,f);n.valid||se.push({instanceLocation:s,keyword:"if",keywordLocation:t,error:'Instance does not match "then" schema.'},...n.errors)}}else if(void 0!==I){const n=w(e,I,r,o,i,a,s,`${l}/else`,f);n.valid||se.push({instanceLocation:s,keyword:"if",keywordLocation:t,error:'Instance does not match "else" schema.'},...n.errors)}}if("object"===d){if(void 0!==E)for(const t of E)t in e||se.push({instanceLocation:s,keyword:"required",keywordLocation:`${l}/required`,error:`Instance does not have required property "${t}".`});const t=Object.keys(e);if(void 0!==N&&t.length<N&&se.push({instanceLocation:s,keyword:"minProperties",keywordLocation:`${l}/minProperties`,error:`Instance does not have at least ${N} properties.`}),void 0!==D&&t.length>D&&se.push({instanceLocation:s,keyword:"maxProperties",keywordLocation:`${l}/maxProperties`,error:`Instance does not have at least ${D} properties.`}),void 0!==U){const t=`${l}/propertyNames`;for(const c in e){const e=`${s}/${n(c)}`,u=w(c,U,r,o,i,a,e,t);u.valid||se.push({instanceLocation:s,keyword:"propertyNames",keywordLocation:t,error:`Property name "${c}" does not match schema.`},...u.errors)}}if(void 0!==M){const t=`${l}/dependantRequired`;for(const r in M)if(r in e){const n=M[r];for(const o of n)o in e||se.push({instanceLocation:s,keyword:"dependentRequired",keywordLocation:t,error:`Instance has "${r}" but does not have "${o}".`})}}if(void 0!==F)for(const t in F){const c=`${l}/dependentSchemas`;if(t in e){const u=w(e,F[t],r,o,i,a,s,`${c}/${n(t)}`,f);u.valid||se.push({instanceLocation:s,keyword:"dependentSchemas",keywordLocation:c,error:`Instance has "${t}" but does not match dependant schema.`},...u.errors)}}if(void 0!==H){const t=`${l}/dependencies`;for(const c in H)if(c in e){const u=H[c];if(Array.isArray(u))for(const r of u)r in e||se.push({instanceLocation:s,keyword:"dependencies",keywordLocation:t,error:`Instance has "${c}" but does not have "${r}".`});else{const l=w(e,u,r,o,i,a,s,`${t}/${n(c)}`);l.valid||se.push({instanceLocation:s,keyword:"dependencies",keywordLocation:t,error:`Instance has "${c}" but does not match dependant schema.`},...l.errors)}}}const c=Object.create(null);let u=!1;if(void 0!==A){const t=`${l}/properties`;for(const l in A){if(!(l in e))continue;const p=`${s}/${n(l)}`,d=w(e[l],A[l],r,o,i,a,p,`${t}/${n(l)}`);if(d.valid)f[l]=c[l]=!0;else if(u=i,se.push({instanceLocation:s,keyword:"properties",keywordLocation:t,error:`Property "${l}" does not match schema.`},...d.errors),u)break}}if(!u&&void 0!==T){const t=`${l}/patternProperties`;for(const l in T){const p=new RegExp(l),d=T[l];for(const h in e){if(!p.test(h))continue;const v=`${s}/${n(h)}`,y=w(e[h],d,r,o,i,a,v,`${t}/${n(l)}`);y.valid?f[h]=c[h]=!0:(u=i,se.push({instanceLocation:s,keyword:"patternProperties",keywordLocation:t,error:`Property "${h}" matches pattern "${l}" but does not match associated schema.`},...y.errors))}}}if(u||void 0===R){if(!u&&void 0!==j){const t=`${l}/unevaluatedProperties`;for(const c in e)if(!f[c]){const u=`${s}/${n(c)}`,l=w(e[c],j,r,o,i,a,u,t);l.valid?f[c]=!0:se.push({instanceLocation:s,keyword:"unevaluatedProperties",keywordLocation:t,error:`Property "${c}" does not match unevaluated properties schema.`},...l.errors)}}}else{const t=`${l}/additionalProperties`;for(const l in e){if(c[l])continue;const p=`${s}/${n(l)}`,d=w(e[l],R,r,o,i,a,p,t);d.valid?f[l]=!0:(u=i,se.push({instanceLocation:s,keyword:"additionalProperties",keywordLocation:t,error:`Property "${l}" does not match additional properties schema.`},...d.errors))}}}else if("array"===d){void 0!==J&&e.length>J&&se.push({instanceLocation:s,keyword:"maxItems",keywordLocation:`${l}/maxItems`,error:`Array has too many items (${e.length} > ${J}).`}),void 0!==Y&&e.length<Y&&se.push({instanceLocation:s,keyword:"minItems",keywordLocation:`${l}/minItems`,error:`Array has too few items (${e.length} < ${Y}).`});const t=e.length;let n=0,c=!1;if(void 0!==z){const u=`${l}/prefixItems`,p=Math.min(z.length,t);for(;n<p;n++){const t=w(e[n],z[n],r,o,i,a,`${s}/${n}`,`${u}/${n}`);if(f[n]=!0,!t.valid&&(c=i,se.push({instanceLocation:s,keyword:"prefixItems",keywordLocation:u,error:"Items did not match schema."},...t.errors),c))break}}if(void 0!==B){const u=`${l}/items`;if(Array.isArray(B)){const l=Math.min(B.length,t);for(;n<l;n++){const t=w(e[n],B[n],r,o,i,a,`${s}/${n}`,`${u}/${n}`);if(f[n]=!0,!t.valid&&(c=i,se.push({instanceLocation:s,keyword:"items",keywordLocation:u,error:"Items did not match schema."},...t.errors),c))break}}else for(;n<t;n++){const t=w(e[n],B,r,o,i,a,`${s}/${n}`,u);if(f[n]=!0,!t.valid&&(c=i,se.push({instanceLocation:s,keyword:"items",keywordLocation:u,error:"Items did not match schema."},...t.errors),c))break}if(!c&&void 0!==G){const u=`${l}/additionalItems`;for(;n<t;n++){const t=w(e[n],G,r,o,i,a,`${s}/${n}`,u);f[n]=!0,t.valid||(c=i,se.push({instanceLocation:s,keyword:"additionalItems",keywordLocation:u,error:"Items did not match additional items schema."},...t.errors))}}}if(void 0!==V)if(0===t&&void 0===W)se.push({instanceLocation:s,keyword:"contains",keywordLocation:`${l}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(void 0!==W&&t<W)se.push({instanceLocation:s,keyword:"minContains",keywordLocation:`${l}/minContains`,error:`Array has less items (${t}) than minContains (${W}).`});else{const n=`${l}/contains`,c=se.length;let u=0;for(let c=0;c<t;c++){const t=w(e[c],V,r,o,i,a,`${s}/${c}`,n);t.valid?(f[c]=!0,u++):se.push(...t.errors)}u>=(W||0)&&(se.length=c),void 0===W&&void 0===Z&&0===u?se.splice(c,0,{instanceLocation:s,keyword:"contains",keywordLocation:n,error:"Array does not contain item matching schema."}):void 0!==W&&u<W?se.push({instanceLocation:s,keyword:"minContains",keywordLocation:`${l}/minContains`,error:`Array must contain at least ${W} items matching schema. Only ${u} items were found.`}):void 0!==Z&&u>Z&&se.push({instanceLocation:s,keyword:"maxContains",keywordLocation:`${l}/maxContains`,error:`Array may contain at most ${Z} items matching schema. ${u} items were found.`})}if(!c&&void 0!==K){const c=`${l}/unevaluatedItems`;for(;n<t;n++){if(f[n])continue;const t=w(e[n],K,r,o,i,a,`${s}/${n}`,c);f[n]=!0,t.valid||se.push({instanceLocation:s,keyword:"unevaluatedItems",keywordLocation:c,error:"Items did not match unevaluated items schema."},...t.errors)}}if(q)for(let r=0;r<t;r++){const n=e[r],o="object"==typeof n&&null!==n;for(let i=0;i<t;i++){if(r===i)continue;const t=e[i];(n===t||o&&"object"==typeof t&&null!==t&&u(n,t))&&(se.push({instanceLocation:s,keyword:"uniqueItems",keywordLocation:`${l}/uniqueItems`,error:`Duplicate items at indexes ${r} and ${i}.`}),r=Number.MAX_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER)}}}else if("number"===d){if("4"===r?(void 0!==$&&(!0===Q&&e<=$||e<$)&&se.push({instanceLocation:s,keyword:"minimum",keywordLocation:`${l}/minimum`,error:`${e} is less than ${Q?"or equal to ":""} ${$}.`}),void 0!==X&&(!0===ee&&e>=X||e>X)&&se.push({instanceLocation:s,keyword:"maximum",keywordLocation:`${l}/maximum`,error:`${e} is greater than ${ee?"or equal to ":""} ${X}.`})):(void 0!==$&&e<$&&se.push({instanceLocation:s,keyword:"minimum",keywordLocation:`${l}/minimum`,error:`${e} is less than ${$}.`}),void 0!==X&&e>X&&se.push({instanceLocation:s,keyword:"maximum",keywordLocation:`${l}/maximum`,error:`${e} is greater than ${X}.`}),void 0!==Q&&e<=Q&&se.push({instanceLocation:s,keyword:"exclusiveMinimum",keywordLocation:`${l}/exclusiveMinimum`,error:`${e} is less than ${Q}.`}),void 0!==ee&&e>=ee&&se.push({instanceLocation:s,keyword:"exclusiveMaximum",keywordLocation:`${l}/exclusiveMaximum`,error:`${e} is greater than or equal to ${ee}.`})),void 0!==te){const t=e%te;Math.abs(0-t)>=1.1920929e-7&&Math.abs(te-t)>=1.1920929e-7&&se.push({instanceLocation:s,keyword:"multipleOf",keywordLocation:`${l}/multipleOf`,error:`${e} is not a multiple of ${te}.`})}}else if("string"===d){const t=void 0===re&&void 0===ne?0:function(e){let t,r=0,n=e.length,o=0;for(;o<n;)r++,t=e.charCodeAt(o++),t>=55296&&t<=56319&&o<n&&(t=e.charCodeAt(o),56320==(64512&t)&&o++);return r}(e);void 0!==re&&t<re&&se.push({instanceLocation:s,keyword:"minLength",keywordLocation:`${l}/minLength`,error:`String is too short (${t} < ${re}).`}),void 0!==ne&&t>ne&&se.push({instanceLocation:s,keyword:"maxLength",keywordLocation:`${l}/maxLength`,error:`String is too long (${t} > ${ne}).`}),void 0===oe||new RegExp(oe).test(e)||se.push({instanceLocation:s,keyword:"pattern",keywordLocation:`${l}/pattern`,error:"String does not match pattern."}),void 0!==P&&h[P]&&!h[P](e)&&se.push({instanceLocation:s,keyword:"format",keywordLocation:`${l}/format`,error:`String does not match format "${P}".`})}return{valid:0===se.length,errors:se}}class E{constructor(e,t="2019-09",r=!0){this.schema=e,this.draft=t,this.shortCircuit=r,this.lookup=c(e)}validate(e){return w(e,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(e,t){t&&(e={...e,$id:t}),c(e,this.lookup)}}function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===S(t)?t:String(t)}var C=function(){function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,o=void 0,(n=k(n="validator"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this.validator=new E(t,"2020-12",!1)}var t,r;return t=e,(r=[{key:"isValidated",value:function(e){if(!e)return!1;try{return this.validator.validate(e).valid}catch(e){return console.error("Error validating",e),!1}}},{key:"validate",value:function(e){var t=this.validator.validate(e);if(!t.valid)throw new Error("JSON Schema Validation errors: ".concat(JSON.stringify(t.errors,null,2)))}}])&&O(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},86116:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new x(n||[]);return i(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return o("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,c,"next",e)}function c(e){s(i,n,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function l(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}r.d(t,{w:()=>k});var p="ManagedAsyncCache.Created",d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=t,this.optimumEntries=r,l(this,"maximumEntries",void 0),l(this,"putCount",0),this.maximumEntries=2*r}var t,r,n,a,s,f,d;return t=e,r=[{key:"maybeManageCacheOnPut",value:(d=c(o().mark((function e(){var t,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.putCount++%this.optimumEntries!=0){e.next=14;break}return e.t0=i,e.next=4,this.cache.keys();case 4:if(e.t1=e.sent,!((t=(0,e.t0)(e.t1)).length>=this.maximumEntries)){e.next=14;break}t=t.sort((function(e,t){return e.headers.get(p).localeCompare(t.headers.get(p))}));case 8:if(!(t.length>this.optimumEntries)){e.next=14;break}return r=t.shift(),e.next=12,this.delete(r);case 12:e.next=8;break;case 14:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"put",value:(f=c(o().mark((function e(t,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.headers.set(p,(new Date).toISOString()),e.next=3,this.cache.put(t,r);case 3:return e.next=5,this.maybeManageCacheOnPut();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"match",value:(s=c(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.cache.match(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"delete",value:(a=c(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.cache.delete(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getKeyCountForTesting",value:(n=c(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.cache.keys();case 2:return e.abrupt("return",e.sent.length);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}],r&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function m(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===h(t)?t:String(t)}var g=function(){function e(){var t,r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r="cache",n=new Map,(r=m(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}var t,r;return t=e,(r=[{key:"put",value:function(e,t){return this.cache.set(e.url,[e,t]),Promise.resolve()}},{key:"match",value:function(e){var t;return Promise.resolve(null===(t=this.cache.get(e.url))||void 0===t?void 0:t[1])}},{key:"delete",value:function(e){return Promise.resolve(this.cache.delete(e.url))}},{key:"keys",value:function(){return Promise.resolve((e=this.cache.values(),function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){return e[0]})));var e}}])&&y(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function _(){_=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==b(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function w(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){w(i,n,o,a,s,"next",e)}function s(e){w(i,n,o,a,s,"throw",e)}a(void 0)}))}}function S(e){return O.apply(this,arguments)}function O(){return(O=E(_().mark((function e(t){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(globalThis.caches){e.next=2;break}return e.abrupt("return",new g);case 2:return e.next=4,globalThis.caches.open(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e,t,r){return C.apply(this,arguments)}function C(){return(C=E(_().mark((function e(t,r,n){var o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=d,e.next=3,S(t);case 3:return e.t1=e.sent,e.t2=n,o=new e.t0(e.t1,e.t2),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},45016:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new x(n||[]);return i(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return o("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Lp:()=>f,wi:()=>m});var c=globalThis.crypto;function u(e){return(t=new Uint8Array(e),function(e){if(Array.isArray(e))return s(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){return e.toString(16).padStart(2,"0")})).join("");var t}function l(e){for(var t=new ArrayBuffer(2*e.length),r=new Uint16Array(t),n=0,o=e.length;n<o;n++)r[n]=e.charCodeAt(n);return t}function f(e){return p.apply(this,arguments)}function p(){return(p=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(JSON.stringify(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return h.apply(this,arguments)}function h(){return(h=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(l(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return y.apply(this,arguments)}function y(){return(y=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=u,e.next=3,c.subtle.digest("SHA-256",t);case 3:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return g.apply(this,arguments)}function g(){return(g=a(o().mark((function e(t){var r,n,i,a,s,c,u,l,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=t.type,n=2*r.length,i=new ArrayBuffer(n+t.size),a=new Uint16Array(i,0,r.length),s=0,c=r.length;s<c;s++)a[s]=r.charCodeAt(s);return u=new Uint8Array(i),e.next=8,t.arrayBuffer();case 8:return l=e.sent,u.set(new Uint8Array(l),n),e.next=12,v(i);case 12:return f=e.sent,e.abrupt("return",f);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},41481:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>n,F8:()=>i,IG:()=>u,Kw:()=>l,Qv:()=>y,RW:()=>o,TL:()=>v,Uh:()=>h,_L:()=>a,kQ:()=>p,lx:()=>s,sJ:()=>d,tc:()=>c,xe:()=>f});var n=function(e){return e.History="history",e.StyleKit="styleTemplate",e}({}),o=function(e){return e.historyCreateRequest="historyCreateRequest",e.historyThubnailUpdate="historyThubnailUpdate",e.historyCreationError="historyCreationError",e.historyCreationSuccess="historyCreationSuccess",e}({}),i=function(e){return e.history="history",e.favorites="favorites",e.styleKits="stylekits",e.empty="",e}({}),a=function(e){return e.CREATING_HISTORY_ITEM="uploadingHistoryItem",e.CREATING_HISTORY_ERROR="uploadHistoryError",e.CREATING_HISTORY_SUCCESS="uploadHistorySuccess",e.UPDATING_THUMBNAIL="updatingThumbnail",e.UPDATING_THUMBNAIL_ERROR="updateThumbnailError",e.UPDATING_THUMBNAIL_SUCCESS="updateThumbnailSuccess",e}({}),s=function(e){return e.INIT_API_UNINITIALIZED="initApiUninitialized",e.INIT_API_INITIALIZED="initApiInitialized",e.INIT_API_ERROR="initApiError",e}({}),c=function(e){return e.CANCEL="cancel",e.SUCCESS="success",e.ERROR="error",e}({}),u=function(e){return e.NOT_FETCHED="notFetched",e.FETCHING="fetching",e.FETCHING_ERROR="fetchingError",e.FETCHING_SUCCESS="fetchingSuccess",e}({}),l=function(e){return e.NOT_FETCHED="notFetched",e.FETCHING_PAGE_MODEL_ERROR="fetchingPageModelError",e.FETCHING_PAGE_MODEL_SUCCESS="fetchingPageModelSuccess",e.FETCHING_PAGE_MODEL="fetchingPageModel",e.DELETING_HISTORY_ITEM="deletingHistoryItem",e.DELETING_HISTORY_ITEM_ERROR="deletingHistoryItemError",e}({}),f=function(e){return e.NOT_FETCHED="notFetched",e.FETCHING="fetching",e.FETCHING_ERROR="fetchingError",e.FETCHING_SUCCESS="fetchingSuccess",e}({}),p=function(e){return e.NOT_FETCHED="notFetched",e.FETCHING_PAGE_MODEL_ERROR="fetchingPageModelError",e.FETCHING_PAGE_MODEL_SUCCESS="fetchingPageModelSuccess",e.FETCHING_PAGE_MODEL="fetchingPageModel",e.DELETING_ITEM="deletingItem",e.DELETING_ITEM_ERROR="deletingItemError",e.LEAVING_ITEM="leavingItem",e.LEAVE_ITEM_ERROR="leaveItemError",e.LEAVE_ITEM_ERROR_NO_MATCHING_COLLABORATOR="leaveItemErrorNoMatchingCollaborator",e}({}),d=function(e){return e.DELETE_HISTORY="deleteHistory",e.DELETE_STYLEKITS="deleteStyleKits",e.LEAVE_STYLEKITS="leaveStyleKits",e}({}),h=function(e){return e.IRL1="IRL1",e.JPN3="JPN3",e.DEFAULT="Default",e}({}),v=function(e){return e.All="ALL",e.Your="YOUR",e.Shared="SHARED",e}({}),y={USER_NOT_ENTITLED:"User not entitled",CONFLICT:"Conflict",NO_STORAGE_QUOTA:"No storage quota"}},58431:(e,t,r)=>{"use strict";r.d(t,{bm:()=>j,Sx:()=>N,sZ:()=>T,rW:()=>H,hQ:()=>M,dK:()=>D,cR:()=>x,RD:()=>B});var n=r(85824),o=r(41481),i=r(19504),a=r(42739);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,c){var u=p(e[n],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function u(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var l=function(){var e,t=(e=c().mark((function e(t,r,n){var s,u,l,f;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={Authorization:"Bearer ".concat(r),"x-api-key":i.m8},u=new URL("".concat((0,a.LY)(n),"/asset")),e.next=4,fetch(u,{method:"POST",headers:s,body:t});case 4:return l=e.sent,e.next=7,l.json();case 7:if(f=e.sent,l.ok){e.next=22;break}if(409!==l.status){e.next=13;break}throw new Error(o.Qv.CONFLICT);case 13:if(401!==l.status){e.next=17;break}throw new Error(o.Qv.USER_NOT_ENTITLED);case 17:if("NoStorageQuota"!==f.type){e.next=21;break}throw new Error(o.Qv.NO_STORAGE_QUOTA);case 21:throw new Error("Failed to update history for asset");case 22:return e.abrupt("return",f);case 23:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,s,"next",e)}function s(e){u(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==f(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function d(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var h=function(){var e,t=(e=p().mark((function e(t,r,n,o){var s,c,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={Authorization:"Bearer ".concat(r),"x-api-key":i.m8},c=new URL("".concat((0,a.LY)(o),"/asset/").concat(n)),e.next=4,fetch(c,{method:"PUT",headers:s,body:t});case 4:if((u=e.sent).ok){e.next=7;break}throw new Error("Failed to update history for asset");case 7:return e.abrupt("return",u.json());case 8:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n,o){return t.apply(this,arguments)}}(),v=r(15440),y=r(90778),m=r(89210),g=r(52539);function b(){b=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==_(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function w(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){w(i,n,o,a,s,"next",e)}function s(e){w(i,n,o,a,s,"throw",e)}a(void 0)}))}}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var C={Conflict:"Style kit with the same name already exists",ReferenceImageNotFound:"Style reference Image not found"};function x(e){return e in C?C[e]:"Unknown style kit error"}function L(e,t,r){var o,i=(0,n.rv)(e.blobRef)?e.blobRef.remoteBlobRef:void 0,a={name:e.name,seed:null===(o=e.seed)||void 0===o?void 0:o.toString(),height:r,width:t};return i?O(O({},a),{},{url:i}):a}var I=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0.0.0",a=0,s=0;if(e.aspectRatio){var c=e.aspectRatio.toString(),u=y.Zm[c],l=u.width,f=u.height;a=l,s=f}var p=t.map((function(e){return L(e,a,s)})),d=r.map((function(e){return function(e,t,r){return{name:e.name,height:r,width:t}}(e,a,s)}));return{prompt:e.prompt,module:m.Zk.Text2Image,assetType:o.Ag.History,modelInfo:{docVersion:i,module:m.Zk.Text2Image},inputModel:{model:{Text2ImageEditModel:e}},outputModel:{model:{predictedModel:n}},components:{outputComponents:p,inputComponents:d}}};function P(e,t){return A.apply(this,arguments)}function A(){return(A=E(b().mark((function e(t,r){var o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.pB.getBlob(r.blobRef);case 2:if(o=e.sent){e.next=5;break}throw new Error("Component Blob not found");case 5:t.append(r.name,o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e,t){return R.apply(this,arguments)}function R(){return(R=E(b().mark((function e(t,r){var o,i,a,s,c,u;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.model,i=t.outputComponents,a=t.predictedModel,s=t.inputComponents,c=I(o,i,s,a),(u=new FormData).append("model",JSON.stringify(c)),e.next=6,Promise.all(s.map((function(e){return P(u,e)})));case 6:return e.next=8,Promise.all(i.map((function(e){if(!(0,n.rv)(e.blobRef))return P(u,e)})));case 8:return e.abrupt("return",l(u,r,v.Z.getStorageRegion()));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var j=[{propertyName:"referenceImage",imageRefProperty:""},{propertyName:"structureReferenceImage",imageRefProperty:""},{propertyName:"objectComposite",imageRefProperty:"heroImage"}],N=new Map(j.map((function(e){return[e.propertyName,e.imageRefProperty]})));function D(e,t){var r=e[t];if(r){var n=N.get(t),o=r[U];if(n.length>0&&"object"===_(r)){if(!Object.hasOwn(r,n))return;o=r[n][U]}return o}}var U="ref",M=function(){var e=E(b().mark((function e(t){var r,o,i,a,s,c;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,o=t.generateModel,i=t.seed,a=t.templateModel,e.next=3,n.pB.getRef(r);case 3:return s=e.sent,c={model:o,outputComponents:[{seed:i,blobRef:s,name:"gt_GEN_IMAGE",type:s.mimeType}],templateModel:a},e.abrupt("return",O(O({},c),{},{inputComponents:[]}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(e,t,r,n,i){var a,s,c=e.aspectRatio.toString(),u=y.Zm[c],l=u.width,f=u.height;a=l,s=f;var p=L(t[0],a,s),d=[];return j.forEach((function(t){var r=t.propertyName;D(e,r)&&d.push({name:r,width:a,height:s})})),{prompt:e.prompt,module:m.Zk.Text2Image,assetType:o.Ag.StyleKit,name:r,modelInfo:{docVersion:"0.0.0",module:m.Zk.Text2Image},inputModel:{model:{Text2ImageEditModel:e},additionalData:{Text2ImageTemplateModel:i}},outputModel:{model:{predictedModel:n}},components:{outputComponents:[p],inputComponents:d,renditionComponent:p}}};function H(e,t,r,n){return z.apply(this,arguments)}function z(){return(z=E(b().mark((function e(t,r,o,i){var a,s,c,u,f,p;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.model,s=t.outputComponents,c=t.templateModel,u=F(a,s,r,i,c),(f=new FormData).append("model",JSON.stringify(u)),!((p=u.components.inputComponents).length>0)){e.next=8;break}return e.next=8,Promise.all(p.map((function(e){var t=e.name,r=D(a,t);return r?n.pB.getBlob(r).then((function(e){if(!e)return console.error("Blob not found => ",t),Promise.reject(new Error("BlobNotFound"));f.append(t,e)})):Promise.reject(new Error("ImageRefNotFound"))})));case 8:return e.next=10,Promise.all(s.map((function(e){if(!(0,n.rv)(e.blobRef))return P(f,e)})));case 10:return e.abrupt("return",l(f,o,v.Z.getStorageRegion()));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e,t){return G.apply(this,arguments)}function G(){return(G=E(b().mark((function e(t,r){var o,i;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.pB.getBlob(t.thumbnailRef);case 2:if(o=e.sent,i=new FormData,o){e.next=6;break}throw new Error("Thumbnail not found");case 6:if(t.assetId){e.next=8;break}throw new Error("AssetId not found");case 8:return i.append("thumbnail",o),i.append("model",JSON.stringify({components:{createRenditionComponent:{name:"thumbnail",height:2*g.FW,width:2*g.FW}}})),e.abrupt("return",h(i,r,t.assetId,v.Z.getStorageRegion()));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},88791:(e,t,r)=>{"use strict";r.d(t,{$P:()=>_,Av:()=>v,BF:()=>l,DZ:()=>f,H:()=>m,TW:()=>a,W$:()=>u,dD:()=>h,fC:()=>g,om:()=>d,rh:()=>y,wr:()=>b});var n=r(2363);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=function(e){return e.mini="mini",e.mobile="mobile",e.tablet="tablet",e.desktop="desktop",e}({}),s=function(e){return e.small="small",e.medium="medium",e.large="large",e.xlarge="xlarge",e}({});function c(){var e=window.innerWidth;return e<=360?s.small:e<=375?s.medium:e<=530?s.large:s.xlarge}function u(e){var t=window.innerWidth,r=window.innerHeight,n=t>r;return t<=384||n&&e&&r<=384?a.mini:t<=768||n&&e&&r<=768?a.mobile:t<=1024?a.tablet:a.desktop}function l(){var e=m(),t=o((0,n.useState)(u(e)),2),r=t[0],i=t[1];return(0,n.useEffect)((function(){var t=function(){i(u(e))};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[]),r}function f(){var e=o((0,n.useState)(c()),2),t=e[0],r=e[1];return(0,n.useEffect)((function(){var e=function(){r(c())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),t}function p(){return void 0!==screen.orientation}function d(){var e=o((0,n.useState)(!1),2),t=e[0],r=e[1],i=m();return(0,n.useEffect)((function(){var e=function(){p()?r(screen.orientation.type.includes("landscape")):i?setTimeout((function(){r(window.innerWidth>window.innerHeight)}),5):r(!1)};return e(),p()&&screen.orientation.addEventListener("change",e),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),function(){p()&&screen.orientation.removeEventListener("change",e),window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}}),[]),t}function h(){return v(l())}function v(e){return{mini:!0,mobile:!0,tablet:!1,desktop:!1}[e]}function y(){var e=navigator.userAgent.toLowerCase();return e.includes("mac os")&&navigator.maxTouchPoints>1||/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)}function m(){return/(Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini)/i.test(navigator.userAgent)}var g=function(e){return e[e.IOS=0]="IOS",e[e.ANDROID=1]="ANDROID",e[e.UNKNOWN=2]="UNKNOWN",e}({});function b(){var e=navigator.userAgent;return/android/i.test(e)?g.ANDROID:/iPad|iPhone|iPod/.test(e)?g.IOS:g.UNKNOWN}function _(){var e=navigator.userAgent.toLowerCase(),t={mini:!1,mobile:!1,tablet:!0,desktop:!0}[l()];return/(ipad)/.test(e)||t&&/(mac)/.test(e)&&navigator.maxTouchPoints>1}},18084:(e,t,r)=>{"use strict";r.d(t,{ir:()=>T,Aw:()=>S,rC:()=>k,CP:()=>O,Jz:()=>x,oP:()=>L});var n=r(88369),o=r(36827),i=r(63143),a=r(31729),s=r(91086);var c,u=r(72236);function l(e){var t,r=atob(e.asnp.payload.replace(/_/g,"/").replace(/-/g,"+")),n=JSON.parse(r);return null!==(t=e.workflow)&&void 0!==t&&t.entryUrl&&(n.paywallURL=e.workflow.entryUrl.toString()),n}function f(e,t){var r=function(e,t){var r,o=void 0;if(t){var i=(0,a.Qs)(t.variation,t.reasonCode),c=(0,n.getAppLocale)("unifiedcheckout",e),l=t.deviceType,f=t.countryCode,p=s.i_.getModuleForRoute(location.pathname),d=null==p?void 0:p.defaultModuleRoute,h=new URL(window.location.origin);h.pathname=null!=d?d:"",h.searchParams.set(S,"true"),h.searchParams.set(O,t.variation);var v=h.toString(),y={cli:a.vM.clientID,ctx:a.vM.context,lang:c,co:f,ctxRtUrl:v};o={type:a.TQ.modalType,version:a.TQ.version,id:a.TQ.workflowId,instanceId:(0,u.Z)(),response:"ondemand_request::reason=".concat(i,"&contextual_params=").concat((r=JSON.stringify(y),window.btoa(r)),"&device_type=").concat(l)}}return o}(e,t),o={appDetails:{nglAppId:a.x4.appId,nglAppVersion:a.x4.appVersion,nglLibRuntimeMode:"NAMED_USER_ONLINE",locale:e},workflowResult:r};return JSON.stringify(o)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=v(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function v(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(){m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function d(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(y=b);var _=v.prototype=d.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==p(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return h.prototype=v,n(_,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:h,configurable:!0}),h.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function g(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function b(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){g(i,n,o,a,s,"next",e)}function s(e){g(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function w(e,t,r){return(t=E(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}var S="launchPaywall",O="paywallVariation",k="fireflyPaywallReturnUrl",C=function(e){return e.PROFILE_AVAILABLE="PROFILE_AVAILABLE",e.PROFILE_EXPIRED="PROFILE_EXPIRED",e.PROFILE_DENIED="PROFILE_DENIED",e.PROFILE_UNAVAILABLE="PROFILE_UNAVAILABLE",e}({}),x=function(e){return e.UPSELL_NAVBAR="UPSELL_NAVBAR",e.UPSELL_UAM="UPSELL_UAM",e.UPSELL_TOAST_NEAR_LIMIT="UPSELL_TOAST_NEAR_LIMIT",e.UPSELL_TOAST_OUT_OF_CREDIT="UPSELL_TOAST_OUT_OF_CREDIT",e.UPSELL_BOTTOM_BANNER="UPSELL_BOTTOM_BANNER",e.UPSELL_DOWNLOAD_NO_WATERMARK="UPSELL_DOWNLOAD_NO_WATERMARK",e.UPSELL_CUSTOM_BALLANCE="UPSELL_CUSTOM_BALLANCE",e.DVA_ADLS_UPGRADE="DVA_ADLS_UPGRADE",e.DVA_OBJ_REMOVE_UPGRADE="DVA_OBJ_REMOVE_UPGRADE",e.QUOTA_EXPIRED="QUOTA_EXPIRED",e.PAID_UPSELL_UAM="PAID_UPSELL_UAM",e.PAID_UPSELL_TOAST_NEAR_LIMIT="PAID_UPSELL_TOAST_NEAR_LIMIT",e.PAID_UPSELL_TOAST_OUT_OF_CREDIT="PAID_UPSELL_TOAST_OUT_OF_CREDIT",e.PAID_UPSELL_BOTTOM_BANNER="PAID_UPSELL_BOTTOM_BANNER",e.PAID_DVA_ADLS_UPGRADE="PAID_DVA_ADLS_UPGRADE",e.PAID_DVA_OBJ_REMOVE_UPGRADE="PAID_DVA_OBJ_REMOVE_UPGRADE",e.PAID_QUOTA_EXPIRED="PAID_QUOTA_EXPIRED",e}({}),L=(w(c={},x.UPSELL_NAVBAR,"ff_free_user_upgrade"),w(c,x.UPSELL_UAM,"ff_free_user_upgrade"),w(c,x.UPSELL_TOAST_NEAR_LIMIT,"ff_free_user_upgrade"),w(c,x.UPSELL_TOAST_OUT_OF_CREDIT,"ff_free_user_upgrade"),w(c,x.UPSELL_BOTTOM_BANNER,"toastbanner_free_upgrade"),w(c,x.UPSELL_DOWNLOAD_NO_WATERMARK,"download_without_watermark"),w(c,x.UPSELL_CUSTOM_BALLANCE,"ff_free_user_upgrade"),w(c,x.QUOTA_EXPIRED,"firefly_quota_exhausted"),w(c,x.DVA_ADLS_UPGRADE,"dva_dublipsync_free_upgrade"),w(c,x.DVA_OBJ_REMOVE_UPGRADE,"dva_objremoval_free_upgrade"),w(c,x.PAID_UPSELL_UAM,"ff_paid_user_upgrade"),w(c,x.PAID_UPSELL_TOAST_NEAR_LIMIT,"ff_paid_user_upgrade"),w(c,x.PAID_UPSELL_TOAST_OUT_OF_CREDIT,"ff_paid_user_upgrade"),w(c,x.PAID_UPSELL_BOTTOM_BANNER,"ff_paid_user_upgrade"),w(c,x.PAID_QUOTA_EXPIRED,"firefly_quota_exhausted_paid_user"),w(c,x.PAID_DVA_ADLS_UPGRADE,"dva_dublipsync_paid_upgrade"),w(c,x.PAID_DVA_OBJ_REMOVE_UPGRADE,"dva_objremoval_paid_upgrade"),c),I=function(e){return e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e}({}),P=function(e){return e.BASIC="basic",e.PREMIUM="premium",e.HARD_CAPPED="hard_capped",e.SOFT_CAPPED="soft_capped",e.K12="k12",e}({}),A=Math.pow(2,31)-1,T=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t,this._onTokenExpired=r,this._onError=n,w(this,"_profile",void 0),w(this,"_profileExpiration",-1),w(this,"_nonModalFetchPromise",void 0),w(this,"_modalFetchPromise",void 0),w(this,"_profileUpdateTimerId",null),w(this,"_listeners",[])}var t,r,s,c;return t=e,r=[{key:"needsUpdateAccessProfile",value:function(){return this._profileExpiration<Date.now()}},{key:"handleErrorResponse",value:function(e){var t,r,n=(0,i.Bs)(e);if("INVALID_TOKEN"===n.code)return null===(r=this._onTokenExpired)||void 0===r?void 0:r.call(this);null===(t=this._onError)||void 0===t||t.call(this,n)}},{key:"updateAccessProfile",value:(c=b(m().mark((function e(t,r){var n,o,i=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>2&&void 0!==i[2]&&i[2],(o=i.length>3?i[3]:void 0)&&(n=!0),n||this.needsUpdateAccessProfile()){e.next=5;break}return e.abrupt("return",this._profile);case 5:return this._stopProfileUpdateTimer(),e.next=8,this._fetchAccessProfile(t,r,o);case 8:return this._profile=e.sent,this._scheduleProfileUpdate(t,r),e.abrupt("return",this._profile);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"addListener",value:function(e){this._listeners.push(e)}},{key:"removeListener",value:function(e){var t=this._listeners.indexOf(e);t>=0&&this._listeners.splice(t,1)}},{key:"_stopProfileUpdateTimer",value:function(){null!==this._profileUpdateTimerId&&(clearTimeout(this._profileUpdateTimerId),this._profileUpdateTimerId=null)}},{key:"_scheduleProfileUpdate",value:function(e,t){var r=this._profileExpiration-Date.now();r<=0&&console.warn("AccessProfileService: invalid expiration time",new Date(this._profileExpiration));var n=r<6e4?6e4:Math.min(r,A),o=new WeakRef(this);this._profileUpdateTimerId=setTimeout((function(){var r=o.deref();r&&(r._profileUpdateTimerId=null,r.updateAccessProfile(e,t,!0).then((function(){return r._listeners.forEach((function(e){return e(r)}))})).catch((function(e){return console.error("AccessProfileService: failed to update profile",e)})))}),n)}},{key:"profile",get:function(){return this._profile}},{key:"authorizationRequests",get:function(){var e,t;if(!this._profile)throw new Error("Can't get authorizationRequests without profile");return(null===(e=this._profile.appProfile.authorizationRequestsProfile)||void 0===e||null===(t=e.orgProfile)||void 0===t?void 0:t.authorizationRequests)||!1}},{key:"requestAccessEnabled",get:function(){var e,t,r=this.authorizationRequests;if(!r)return!1;var n=r.enabled,o=r.applicationURL;if(!this._profile)throw new Error("Can't get request access enabled without profile");var i=(null===(e=this.jitProductAuthorization)||void 0===e?void 0:e.length)&&(null===(t=this.jitProductAuthorization.at(0))||void 0===t?void 0:t.applicationURL);return Boolean(i||n&&o)}},{key:"jitProductAuthorization",get:function(){var e,t,r;return null===(e=this.profile)||void 0===e||null===(t=e.appProfile.authorizationRequestsProfile)||void 0===t||null===(r=t.productAuthorizationRules)||void 0===r?void 0:r[this._options.appId]}},{key:"requestAccessDisabled",get:function(){var e,t,r=this.authorizationRequests;if(!r)return!0;var n=r.enabled,o=r.applicationURL;return!(null!==(e=this.jitProductAuthorization)&&void 0!==e&&null!==(t=e.at(0))&&void 0!==t&&t.applicationURL)&&Boolean(!n||!o)}},{key:"isFulfillableItemEnabled",value:function(e){var t;if(!this._profile)return!1;var r=null===(t=this.profile)||void 0===t?void 0:t.appProfile.accessibleItems;if(r&&r.length>0){var n,o=h(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.status===I.ACTIVE&&i.fulfillable_items){var a,s=null!==(a=i.fulfillable_items[e])&&void 0!==a?a:i.fulfillable_items[e.toLowerCase()];if(null!=s&&s.enabled)return!0}}}catch(e){o.e(e)}finally{o.f()}}return!1}},{key:"isChargingModelCapped",value:function(e){var t;if(!this._profile)return!1;var r=null===(t=this.profile)||void 0===t?void 0:t.appProfile.accessibleItems;if(r&&r.length>0){var n,o=h(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.status===I.ACTIVE&&i.fulfillable_items){var a,s,c=null!==(a=i.fulfillable_items[e])&&void 0!==a?a:i.fulfillable_items[e.toLowerCase()];if(null!=c&&c.enabled&&void 0!==(null===(s=c.charging_model)||void 0===s?void 0:s.cap)){if(c.charging_model.cap<=0)return!0;continue}}}}catch(e){o.e(e)}finally{o.f()}}return!1}},{key:"_getModalType",value:function(){var e;return null!==(e=this.profile)&&void 0!==e&&e.paywallURL?o.zN.Paywall:this.requestAccessEnabled?o.zN.RequestAccess:o.zN.None}},{key:"_getLicensingWorkflow",value:function(e,t,r,n){if(!this._profile)return o.cE.AccessDisabled;var i=this._profile.profileStatus;return r||n?o.cE.AccessDisabled:i===C.PROFILE_AVAILABLE&&t&&e?o.cE.AccessEnabled:o.cE.AccessDisabled}},{key:"needsLicensingDialog",get:function(){var e,t,r,n;return!!this._profile&&Boolean(null!==(e=null!==(t=this._profile.paywallURL)&&void 0!==t?t:null===(r=this.jitProductAuthorization)||void 0===r||null===(n=r.at(0))||void 0===n?void 0:n.applicationURL)&&void 0!==e?e:this._profile.appProfile.authorizationRequestsProfile)}},{key:"_buildRequestAccessUrl",value:function(e,t,r,o){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({flow:"frame",applicationId:this._options.appId,userId:this.profile.userProfile.userId,colorScheme:r,locale:(0,n.getAppLocale)("acrs",o)},t),s=new URL(e),c=0,u=Object.entries(a);c<u.length;c++){var l=(h=u[c],y=2,function(e){if(Array.isArray(e))return e}(h)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(h,y)||v(h,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],p=l[1];void 0!==p&&s.searchParams.set(f,p)}var h,y,m=i.length?"&ruleIds=".concat(i):"";return"".concat(s).concat(m)}},{key:"_getRequestAccessModalEntryUrl",value:function(e,t,r){var n,o,i,a,s;if(!this.requestAccessEnabled)return"";var c=null===(n=this._profile)||void 0===n||null===(o=n.appProfile.authorizationRequestsProfile)||void 0===o||null===(i=o.orgProfile)||void 0===i?void 0:i.authorizationRequests;if(null!==(a=this.jitProductAuthorization)&&void 0!==a&&null!==(s=a[0])&&void 0!==s&&s.applicationURL){var u,l=this.jitProductAuthorization.map((function(e){return e.ruleId})).join(",");return this._buildRequestAccessUrl(null===(u=this.jitProductAuthorization[0])||void 0===u?void 0:u.applicationURL,e,t,r,l)}return this._buildRequestAccessUrl(c.applicationURL,e,t,r)}},{key:"parseEntitlement",value:function(e,t){var r,n=Object.create(o.h_);if(!this._profile)return n;var i=this._profile,a=!1,s=!1;return null!==(r=i.appProfile.accessibleItems)&&void 0!==r&&r.length&&i.appProfile.accessibleItems.forEach((function(e){if(e.status===I.ACTIVE&&e.fulfillable_items){var t=e.fulfillable_items.firefly_credits;if(t){var r,o;a=a||t.enabled,s=s||Boolean((null===(r=t.charging_model)||void 0===r?void 0:r.cap)&&t.charging_model.cap>0);var i,c,u,l,f,p,d,h=t.feature_sets;h&&(n.isFree=n.isFree||!(null===(i=h[P.BASIC])||void 0===i||!i.enabled),n.isPremium=n.isPremium||!(null===(c=h[P.PREMIUM])||void 0===c||!c.enabled),n.isK12=n.isK12||!(null===(u=h[P.K12])||void 0===u||!u.enabled),n.isHardCapped=n.isHardCapped||!(null===(l=h[P.HARD_CAPPED])||void 0===l||!l.enabled),n.isSoftCapped=n.isSoftCapped||!(null===(f=h[P.SOFT_CAPPED])||void 0===f||!f.enabled)||void 0===(null===(p=h[P.SOFT_CAPPED])||void 0===p?void 0:p.enabled)&&void 0===(null===(d=h[P.HARD_CAPPED])||void 0===d?void 0:d.enabled)),n.statusOverrideReason=null!==(o=n.statusOverrideReason)&&void 0!==o?o:t.status_override_reason}var v=e.fulfillable_items.asset_indemnification;v&&(n.isIndemnified=n.isIndemnified||!!v.enabled)}})),n.isPremium&&(n.isFree=!1),n.isSoftCapped&&(n.isHardCapped=!1),n.paywallURL=i.paywallURL,n.requestAccessURL=this._getRequestAccessModalEntryUrl(i.requestAccessOption,e,t),n.isRestrictedUser=n.statusOverrideReason===o.R$.LegalMisuseBlock,n.isZeroGBUser=this.isChargingModelCapped("cc_storage"),n.userWorkflow=this._getLicensingWorkflow(a,s,n.isRestrictedUser,n.isZeroGBUser),n.licensingModalType=this.needsLicensingDialog?this._getModalType():void 0,n.isRequestAccessDisabled=!!n.isK12||this.requestAccessDisabled,n}},{key:"_fetchAccessProfile",value:(s=b(m().mark((function e(t,r,n){var o,s,c,u=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}if(!this._modalFetchPromise){e.next=3;break}return e.abrupt("return",this._modalFetchPromise);case 3:e.next=11;break;case 5:if(!this._nonModalFetchPromise){e.next=9;break}return e.abrupt("return",this._nonModalFetchPromise);case 9:if(!this._modalFetchPromise){e.next=11;break}return e.abrupt("return",this._modalFetchPromise);case 11:return o={Authorization:"Bearer ".concat(t),"X-Api-Key":this._options.apiKey,"Content-Type":"application/json"},s=f(r,n),c=new Promise((function(e,t){fetch(a.tr,{method:"POST",headers:o,body:s}).then((function(e){if(e.ok)return e.json();throw console.error("err from access profile service",e),(0,i.Bs)(e)})).then((function(t){var r=l(t);if(r.appProfile.appId!==u._options.appId)throw new Error("AppId doesn't match in Access Profile: expected: ".concat(u._options.appId,", actual: ").concat(r.appProfile.appId));r.requestAccessOption=a.N5,r.controlProfile&&(u._profileExpiration=r.controlProfile.validUptoTimestamp),e(r)})).catch((function(e){u.handleErrorResponse(e),t(e)})).finally((function(){n?u._modalFetchPromise=void 0:u._nonModalFetchPromise=void 0}))})),n?this._modalFetchPromise=c:this._nonModalFetchPromise=c,e.abrupt("return",c);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return s.apply(this,arguments)})},{key:"removeAccessProfile",value:function(){this._profile=void 0,this._profileExpiration=-1,this._stopProfileUpdateTimer()}}],r&&_(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},83513:(e,t,r)=>{"use strict";r.d(t,{Hg:()=>V,KZ:()=>Z,Zv:()=>A,cz:()=>F,kn:()=>R});var n=r(54778),o=r(19504),i=r(84086),a=r(6181),s=r(20351),c=r(38843);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==h(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function v(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,s,"next",e)}function s(e){v(i,n,o,a,s,"throw",e)}a(void 0)}))}}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===h(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g="firefly#inputModel",b="firefly#model",_="firefly#prompts",w="input",E={CONTENT_INPUT:"content/input",CONTENT:"content",VERSION_0:"version/0"},S="guideImage",O="structurematch",k=m({},"api_key",o.K2.apiKey),C="rendition";function x(e,t){return L.apply(this,arguments)}function L(){return(L=y(d().mark((function e(t,r){var n,o,a,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,c.o)(r.links,i.V.PRIMARY),e.next=3,(0,s.p)(t,n);case 3:if(o=e.sent,a=o.parsedBody,u=a.children){e.next=8;break}return e.abrupt("return",void 0);case 8:return e.abrupt("return",u.map((function(e){var t=e,r=t["repo:assetClass"],n=t["repo:assetId"],o=t["repo:path"],i=t["repo:name"];return{assetClass:r,assetId:n,repoPath:o,repoId:t["repo:repositoryId"],repoName:i,links:t._links}})));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t,r){return P.apply(this,arguments)}function P(){return(P=y(d().mark((function e(t,r,n){var o,i,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r!==n.repoPath){e.next=2;break}return e.abrupt("return",n);case 2:return e.next=4,x(t,n);case 4:if(o=e.sent){e.next=7;break}return e.abrupt("return",void 0);case 7:i=f(o),e.prev=8,i.s();case 10:if((a=i.n()).done){e.next=18;break}if((s=a.value).repoPath!==r){e.next=14;break}return e.abrupt("return",s);case 14:if(!r.startsWith("".concat(s.repoPath,"/"))){e.next=16;break}return e.abrupt("return",I(t,r,s));case 16:e.next=10;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(8),i.e(e.t0);case 23:return e.prev=23,i.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[8,20,23,26]])})))).apply(this,arguments)}function A(e,t,r){return T.apply(this,arguments)}function T(){return(T=y(d().mark((function e(t,r,n){var o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=r.replace(/^\/+/,""),"",o=n.repoPath.endsWith("/")?"".concat(n.repoPath).concat(r):"".concat(n.repoPath,"/").concat(r),e.next=5,I(t,o,n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e,t,r){return j.apply(this,arguments)}function j(){return(j=y(d().mark((function e(t,r,n){var o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A(t,r,n);case 2:return o=e.sent,e.abrupt("return",(null==o?void 0:o.assetClass)===a.O.DIRECTORY?o:void 0);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e,t){return D.apply(this,arguments)}function D(){return(D=y(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G(t,r);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e,t){var r=e.components.find((function(e){return e.name===C}));return(0,n.Q2)("".concat(o.K2.renditionUrl,"/").concat(t,"/").concat(E.CONTENT,"/").concat(null==r?void 0:r.path,"/").concat(E.VERSION_0),k)}function M(e,t,r){var i=e.children.find((function(e){return e.path===w})),a=null==i?void 0:i.components.find((function(e){return e.name===r}));return a?(0,n.Q2)("".concat(o.K2.renditionUrl,"/").concat(t,"/").concat(E.CONTENT_INPUT,"/").concat(a.path,"/").concat(E.VERSION_0),k):null}function F(e,t,r){return H.apply(this,arguments)}function H(){return(H=y(d().mark((function e(t,r,n){var i,a,s,c,u,f,p,h,v,y,m,w,E,k,C,x,L;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u="".concat(o.K2.modelUrl,"/").concat(t),e.next=4,z(u,r);case 4:return f=e.sent,(p=JSON.parse(f.custom.input[g])).model.prompt=null!==(i=null===(a=f.custom.input[_])||void 0===a?void 0:a["".concat(n)])&&void 0!==i?i:f.title,h=f.is_owner,v=null==p||null===(s=p.model)||void 0===s?void 0:s.referenceImage,y=null==p||null===(c=p.model)||void 0===c?void 0:c.structureReferenceImage,m=f._links.dcx_manifest.href,e.next=13,N(m,r);case 13:return w=e.sent,E=U(w,t),k=v?M(w,t,S):null,C=y?M(w,t,O):null,x=f.custom[b].dataModelVersion,L=l(l({},p),{},{cdnAccessToken:"",assetId:t,isOwner:h,imageUrl:E,dataModelVersion:x,referenceImage:k,structureReferenceImage:C}),e.abrupt("return",L);case 22:throw e.prev=22,e.t0=e.catch(0),console.error(e.t0),e.t0;case 26:case"end":return e.stop()}}),e,null,[[0,22]])})))).apply(this,arguments)}function z(e,t){return B.apply(this,arguments)}function B(){return(B=y(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,{method:"GET",headers:l({"X-Api-Key":o.K2.apiKey},r?{Authorization:"Bearer ".concat(r)}:{})});case 2:if((n=e.sent).ok){e.next=5;break}throw new Error("Cannot get CCStorageModel: ".concat(JSON.stringify(n)));case 5:return e.abrupt("return",n.json());case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e,t){return K.apply(this,arguments)}function K(){return(K=y(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,{method:"GET",headers:l({"X-Api-Key":o.K2.apiKey},r?{Authorization:"Bearer ".concat(r)}:{})});case 2:if((n=e.sent).ok){e.next=5;break}throw new Error("Cannot get CCStorageManifest: ".concat(JSON.stringify(n)));case 5:return e.abrupt("return",n.json());case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e,t){return W.apply(this,arguments)}function W(){return(W=y(d().mark((function e(t,r){var n,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.startsWith("https://clio-assets.adobe.com/clio-playground")||(n=l({"X-Api-Key":o.K2.apiKey},r?{Authorization:"Bearer ".concat(r)}:{})),e.next=3,fetch(t,{method:"GET",headers:n});case 3:return i=e.sent,e.abrupt("return",i.blob());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e,t){var r,n,o,i,a;return t?null!==(r=null===(n=e.get("id"))||void 0===n||null===(o=n.split(":"))||void 0===o||null===(i=o.slice(-1))||void 0===i?void 0:i.pop())&&void 0!==r?r:"":null!==(a=e.get("id"))&&void 0!==a?a:""}},20351:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(19504);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(n,a,s,c){var u=p(e[n],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function a(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function s(e,t,r){return c.apply(this,arguments)}function c(){var e;return e=i().mark((function e(t,r,o){var a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={"X-Api-Key":n.Lr.apiKey,Authorization:"Bearer ".concat(t)},o&&(a["cache-control"]="no-cache"),e.next=4,fetch(r,{method:"GET",headers:a});case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Cannot get metadata: ".concat(JSON.stringify(s)));case 7:return e.t0=s,e.next=10,s.json();case 10:return e.t1=e.sent,e.abrupt("return",{response:e.t0,parsedBody:e.t1});case 12:case"end":return e.stop()}}),e)})),c=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,c,"next",e)}function c(e){a(i,n,o,s,c,"throw",e)}s(void 0)}))},c.apply(this,arguments)}},38843:(e,t,r)=>{"use strict";r.d(t,{_:()=>a,o:()=>i});var n=r(30707),o=r.n(n);function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"id",i=arguments.length>4?arguments[4]:void 0;try{var a=e[t];if(Array.isArray(a)){var s=a.find((function(e){return e.mode===n}));i&&!s&&(s=a[0]),a=s}if(!a)return;var c=a,u=c.templated,l=c.href;return u&&!1!==r?decodeURIComponent(o()(l).fill(r)):l}catch(e){return}}function a(e,t){try{return e.find((function(e){return e.rel===t}))}catch(e){return}}},1656:(e,t,r)=>{"use strict";r.d(t,{B8:()=>g,hI:()=>_,uN:()=>y});var n=r(19504),o=r(11648),i=r(83513),a=(r(38843),r(64264)),s=r(84086),c=r(6181);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=f(e[n],e,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==u(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function h(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,s,"next",e)}function s(e){h(i,n,o,a,s,"throw",e)}a(void 0)}))}}function y(e,t,r){return m.apply(this,arguments)}function m(){return(m=v(d().mark((function e(t,r,i){var s,c,u,l,p;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,{method:"GET",headers:f({"X-Api-Key":n.Lr.apiKey},r),cache:i});case 2:if((s=e.sent).ok){e.next=16;break}return e.next=6,s.json();case 6:if(c=e.sent,400!==s.status||c.type!==a.QS.RESPONSE_TOO_LARGE){e.next=15;break}if(u=s.headers.get("Location")){e.next=11;break}throw new Error("presigned url not in header: ".concat(JSON.stringify(s)));case 11:return e.next=13,(0,o.q)(u).then((function(e){return e.blob()}));case 13:return l=e.sent,e.abrupt("return",l);case 15:throw new Error("FetchAssetBlob: Cannot fetch asset blob: ".concat(JSON.stringify(s)));case 16:return e.next=18,s.blob();case 18:return p=e.sent,e.abrupt("return",p);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e,t,r){return b.apply(this,arguments)}function b(){return(b=v(d().mark((function e(t,r,n){var o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=r.assetDownloadUrl){e.next=6;break}return e.next=4,(0,i.Zv)(t,r.path,n);case 4:(a=e.sent)&&a.assetClass===c.O.FILE&&(o=a.links[s.V.BLOCK_DOWNLOAD].href);case 6:if(o){e.next=8;break}return e.abrupt("return",Promise.reject());case 8:return e.abrupt("return",_(t,o));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e,t){return w.apply(this,arguments)}function w(){return(w=v(d().mark((function e(t,r){var o,i,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=E(r),e.next=3,fetch(o,{headers:{"X-Api-Key":n.Lr.apiKey,Authorization:"Bearer ".concat(t),"cache-control":"no-cache"}});case 3:if((i=e.sent).ok){e.next=6;break}throw new Error("Cannot get index: ".concat(JSON.stringify(i)));case 6:return e.next=8,i.json();case 8:return a=e.sent,e.abrupt("return",a.href);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return e.split("{?")[0]}},64264:(e,t,r)=>{"use strict";r.d(t,{A8:()=>p,EQ:()=>l,Mq:()=>f,Q4:()=>g,QS:()=>_,Qz:()=>y,Sv:()=>m,cN:()=>v,iz:()=>h,rv:()=>b,x_:()=>d});var n,o,i=r(17578),a=r(41481),s=r(19504);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=(0,i.vC)()?"https://invitations.adobe.io":"https://invitations-stage.adobe.io",f=20,p="512",d=20,h="512",v={"Content-Type":"application/json","x-api-key":s.m8},y="firefly-acp-history",m="image/jpeg",g=(u(n={},a.Uh.IRL1,"https://platform-cs-edge-stage-irl1.adobe.io/fps"),u(n,a.Uh.DEFAULT,"https://platform-cs-edge-stage-va6.adobe.io/fps"),n),b=(u(o={},a.Uh.IRL1,"https://platform-cs-edge-irl1.adobe.io/fps"),u(o,a.Uh.JPN3,"https://platform-cs-edge-jpn3.adobe.io/fps"),u(o,a.Uh.DEFAULT,"https://platform-cs-edge-va6.adobe.io/fps"),o),_=function(e){return e.RESPONSE_TOO_LARGE="http://ns.adobe.com/adobecloud/problem/responsetoolarge",e}({})},84086:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});var n=function(e){return e.ACCESS_CHECK="http://ns.adobe.com/adobecloud/rel/ac/check",e.ACL_POLICY="http://ns.adobe.com/adobecloud/rel/ac/policy",e.ANNOTATIONS="http://ns.adobe.com/adobecloud/rel/annotations",e.APP_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/application",e.BASE_DIRECTORY="http://ns.adobe.com/adobecloud/rel/directory/base",e.BLOCK_DOWNLOAD="http://ns.adobe.com/adobecloud/rel/download",e.BLOCK_EXTEND="http://ns.adobe.com/adobecloud/rel/block/extend",e.BLOCK_FINALIZE="http://ns.adobe.com/adobecloud/rel/block/finalize",e.BLOCK_TRANSFER="http://ns.adobe.com/adobecloud/rel/block/transfer",e.BLOCK_UPLOAD_INIT="http://ns.adobe.com/adobecloud/rel/block/init",e.BULK_REQUEST="http://ns.adobe.com/adobecloud/rel/bulk",e.COMPONENT="http://ns.adobe.com/adobecloud/rel/component",e.CREATE="http://ns.adobe.com/adobecloud/rel/create",e.DESCRIBED_BY="describedBy",e.DIRECTORY="http://ns.adobe.com/adobecloud/rel/directory",e.DISCARD="http://ns.adobe.com/adobecloud/rel/discard",e.EFFECTIVE_PRIVILAGES="http://ns.adobe.com/adobecloud/rel/ac/effective",e.EMBEDDED_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/embedded",e.ID="http://ns.adobe.com/adobecloud/rel/id",e.MANIFEST="http://ns.adobe.com/adobecloud/rel/manifest",e.PAGE="http://ns.adobe.com/adobecloud/rel/page",e.PATH="http://ns.adobe.com/adobecloud/rel/path",e.PRIMARY="http://ns.adobe.com/adobecloud/rel/primary",e.RENDITION="http://ns.adobe.com/adobecloud/rel/rendition",e.REPO_METADATA="http://ns.adobe.com/adobecloud/rel/metadata/repository",e.REPO_OPS="http://ns.adobe.com/adobecloud/rel/ops",e.REPOSITORY="http://ns.adobe.com/adobecloud/rel/repository",e.RESOLVE_BY_ID="http://ns.adobe.com/adobecloud/rel/resolve/id",e.RESOLVE_BY_PATH="http://ns.adobe.com/adobecloud/rel/resolve/path",e.RESTORE="http://ns.adobe.com/adobecloud/rel/restore",e.REL_QUOTA="http://ns.adobe.com/adobecloud/rel/quota",e.VERSION_HISTORY="version-history",e}({})},6181:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});var n=function(e){return e.DIRECTORY="directory",e.FILE="file",e}({})},82542:(e,t,r)=>{"use strict";r.d(t,{B:()=>$,ET:()=>re,J_:()=>K,S0:()=>D,TT:()=>L,Z:()=>x,ZW:()=>k,b:()=>W,iA:()=>z,id:()=>I,u7:()=>A,v_:()=>ae});var n,o=r(99686),i=r.n(o),a=r(85824),s=r(90778),c=r(89210),u=r(11701),l=r(40408),f=r(63143),p=r(89149),d=r(25550);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(){y=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function v(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==h(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=v,n(_,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:d,configurable:!0}),d.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===h(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function w(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){S(i,n,o,a,s,"next",e)}function s(e){S(i,n,o,a,s,"throw",e)}a(void 0)}))}}var k="en-US",C="locales";function x(e,t){return"string"==typeof e?e:t.has(e.id)?t.get(e.id):e.defaultMessage}function L(){return document.documentElement.lang||navigator.language||k}function I(e,t,r){return P.apply(this,arguments)}function P(){return(P=O(y().mark((function e(t,r,n){var o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=void 0,e.prev=1,e.next=4,fetch("".concat("https://clio-assets.adobe.com/clio-playground","/").concat(t,"/").concat(C,"/").concat(r,".json"),{signal:n});case 4:if(200===(o=e.sent).status){e.next=8;break}throw new f.lR(o.status,o.type,"Error fetching locale resource");case 8:return e.t0=Map,e.t1=Object,e.next=12,o.json();case 12:return e.t2=e.sent,e.t3=e.t1.entries.call(e.t1,e.t2),i=new e.t0(e.t3),e.abrupt("return",i);case 18:e.prev=18,e.t4=e.catch(1),o=void 0,console.warn("the ".concat(r," locale file does not exist when calling fetchLocalizationFile(), fallback to ").concat(k," or use defaultMessage. ").concat(e.t4));case 22:if(r===k){e.next=24;break}return e.abrupt("return",I(t,k,n));case 24:return e.abrupt("return",new Map);case 25:case"end":return e.stop()}}),e,null,[[1,18]])})))).apply(this,arguments)}function A(e,t,r){return T.apply(this,arguments)}function T(){return T=O(y().mark((function e(t,r,n){var o,i,a,s=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=s.length>3&&void 0!==s[3]?s[3]:"content.json",e.prev=1,e.next=4,fetch("".concat("https://clio-assets.adobe.com/clio-playground","/").concat(t,"/").concat(o),{signal:r});case 4:if(200===(i=e.sent).status){e.next=8;break}throw new f.lR(i.status,i.type,"Error fetching content schema");case 8:return e.next=10,i.json();case 10:if((a=e.sent).locales==="".concat(C,"/")){e.next=13;break}throw new f.c6("INVALID_DATA","Default locale path does not match the content schema.");case 13:if(!n||(0,p.q)(a,n)){e.next=15;break}throw new f.c6("INVALID_DATA","Content schema does not match the schema type.");case 15:return e.abrupt("return",a);case 18:throw e.prev=18,e.t0=e.catch(1),new f.c6("SERVICE_ERROR","Failed to load CDN schema, ".concat(e.t0));case 21:case"end":return e.stop()}}),e,null,[[1,18]])}))),T.apply(this,arguments)}function R(e,t){var r,n=_(t);try{for(n.s();!(r=n.n()).done;){var o,i=_(r.value.gallery);try{for(i.s();!(o=i.n()).done;){var s=o.value;if(s.id===e)return(0,a.OQ)(s.url)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}throw new Error("Style zero image with id ".concat(e," not found"))}var j="image-inspirations/v9",N="".concat("https://clio-assets.adobe.com/clio-playground","/").concat(j);function D(e,t,r){return U.apply(this,arguments)}function U(){return(U=O(y().mark((function e(t,r,n){var o,i,a,s,c,u,l;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={version:"",locales:"",pipelineVersion:"",inspirations:new Array},e.next=3,Promise.all([I(j,t,n),A(j,n,o)]);case 3:return i=e.sent,a=v(i,2),s=a[0],c=a[1],u=r.sections,l=c.inspirations.map((function(e){return F(e,s,u)})),e.abrupt("return",{inspirations:l,pipelineVersion:c.pipelineVersion});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e,t){if(t)return"".concat(e,"/").concat(t)}function F(e,t,r){for(var n,o,i,a=null!==(n=e.seedSuggestions)&&void 0!==n?n:[];a.length<l.yR.properties.seeds.minItems-1;)a.push((0,d.X4)());var u,f=null!==(o=e.aspectRatio)&&void 0!==o?o:"square";return{type:c.Zk.Text2Image,thumbnail:null!==(i=M(N,e.thumbnail.url))&&void 0!==i?i:"",title:e.title?x(e.title,t):x(e.localizedPrompt,t),aspectRatio:(0,s.xV)({aspectRatio:f,modelInputVersion:e.modelVersion}).fraction,seed:e.thumbnail.seed,seeds:[e.thumbnail.seed].concat((u=a,function(e){if(Array.isArray(e))return E(e)}(u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||w(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).sort(),model:(0,l.k3)(g(g({prompt:x(e.localizedPrompt,t),promptType:"inspiration",promptInDefaultLocale:e.prompt,styles:e.styles?e.styles:{mode:"manual",value:[]},seed:e.thumbnail.seed,locale:L(),aspectRatio:f,advancedParams:{},rlhfCreativity:e.rlhfCreativity?Number(e.rlhfCreativity):void 0,modelInputVersion:e.modelVersion,exif:e.exif,avoidKeywords:e.avoidKeywords},e.referenceImage&&{referenceImage:g(g({},e.referenceImage),{},{ref:R(e.referenceImage.id,r)})}),{},{guideStrength:e.guideStrength}))}}var H="image-style-zeros/v3",z="".concat("https://clio-assets.adobe.com/clio-playground","/").concat(H),B="structure-match/v0",G="".concat("https://clio-assets.adobe.com/clio-playground","/").concat(B);function K(e,t){return V.apply(this,arguments)}function V(){return(V=O(y().mark((function e(t,r){var n,o,a,s,c,u,l,f,p,d,h,m;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={version:"",locales:"",featured:{images:[]},styles:[]},e.next=3,Promise.all([I(H,t,r),A(H,r,n)]);case 3:o=e.sent,a=v(o,2),s=a[0],c=a[1],u=c.styles.map((function(e){var t,r,n;return{value:e.id,label:x(e.title,s),image:null!==(t=M(z,null===(r=e.thumbnail)||void 0===r?void 0:r.url))&&void 0!==t?t:i(),imageArea:null===(n=e.thumbnail)||void 0===n?void 0:n.rect,gallery:e.images.map((function(e){var t;return{id:e.id,url:null!==(t=M(z,e.url))&&void 0!==t?t:"",authorName:e.authorName,authorProfile:e.authorProfile}}))}})),l=new Set,f=[],p=_(u);try{for(p.s();!(d=p.n()).done;)h=d.value,l.has(h.value)?console.warn("There is a duplicate on CDN image styles for id",h.value):(f.push(h),l.add(h.value))}catch(e){p.e(e)}finally{p.f()}return m=c.featured.images.map((function(e){var t;return{id:e.id,url:null!==(t=M(z,e.url))&&void 0!==t?t:"",authorName:e.authorName,authorProfile:e.authorProfile}})),e.abrupt("return",{sections:f,featured:m});case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e,t){return Z.apply(this,arguments)}function Z(){return(Z=O(y().mark((function e(t,r){var n,o,a,s,c,u,l,f,p,d,h,m;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={version:"",locales:"",featured:{images:[]},gallery:[]},e.next=3,Promise.all([I(B,t,r),A(B,r,n)]);case 3:o=e.sent,a=v(o,2),s=a[0],c=a[1],u=c.gallery.map((function(e){var t,r,n;return{value:e.id,label:x(e.title,s),image:null!==(t=M(G,null===(r=e.thumbnail)||void 0===r?void 0:r.url))&&void 0!==t?t:i(),imageArea:null===(n=e.thumbnail)||void 0===n?void 0:n.rect,gallery:e.images.map((function(e){var t;return{id:e.id,url:null!==(t=M(G,e.url))&&void 0!==t?t:"",authorName:e.authorName,authorProfile:e.authorProfile}}))}})),l=new Set,f=[],p=_(u);try{for(p.s();!(d=p.n()).done;)h=d.value,l.has(h.value)?console.warn("There is a duplicate on CDN image styles for id",h.value):(f.push(h),l.add(h.value))}catch(e){p.e(e)}finally{p.f()}return m=c.featured.images.map((function(e){var t;return{id:e.id,url:null!==(t=M(G,e.url))&&void 0!==t?t:"",authorName:e.authorName,authorProfile:e.authorProfile}})),e.abrupt("return",{sections:f,featured:m});case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Y="home-screen/v1",J="".concat("https://clio-assets.adobe.com/clio-playground","/").concat(Y);function q(e,t){var r=new Map;return e.styles.forEach((function(e){var n,o;r.set(e.id,{id:e.id,title:x(e.title,t),modelV1:null!==(n=M(J,e.modelV1))&&void 0!==n?n:"",modelV2:null!==(o=M(J,e.modelV2))&&void 0!==o?o:""})})),{styles:r}}function $(e,t){return X.apply(this,arguments)}function X(){return(X=O(y().mark((function e(t,r){var n,o,i,a,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={version:"",locales:"",styles:[]},e.next=3,Promise.all([I(Y,t,r),A(Y,r,n)]);case 3:return o=e.sent,i=v(o,2),a=i[0],s=i[1],e.abrupt("return",q(s,a));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Q="image-styles/v7",ee="".concat("https://clio-assets.adobe.com/clio-playground","/").concat(Q),te=(b(n={},u.y4.Text2Image,"content.json"),b(n,u.y4.Text2ImageOC,"objectcomposite_content.json"),n);function re(e){return ne.apply(this,arguments)}function ne(){return ne=O(y().mark((function e(t){var r,n,o,a,s,c,l,f,p,d,h,m,g,b,w,E=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=E.length>1&&void 0!==E[1]?E[1]:u.y4.Text2Image,n=L(),o={version:"",locales:"",styles:[],groups:[],popular:[]},e.next=5,Promise.all([I(Q,n,t),A(Q,t,o,te[r])]);case 5:a=e.sent,s=v(a,2),c=s[0],l=s[1],f=l.styles.map((function(e){var t,r,n;return{value:e.id,label:x(e.title,c),image:null!==(t=M(ee,null===(r=e.thumbnail)||void 0===r?void 0:r.url))&&void 0!==t?t:i(),imageArea:null===(n=e.thumbnail)||void 0===n?void 0:n.rect,group:e.group,stylePrompt:e.style_prompt,anchorPrompt:e.anchor_prompt}})),p=new Set,d=[],h=[],m=_(f);try{for(m.s();!(g=m.n()).done;)b=g.value,p.has(b.value)?console.warn("There is a duplicate on CDN image styles for id",b.value):(d.push(b),p.add(b.value),l.popular.includes(b.value)&&h.push(b))}catch(e){m.e(e)}finally{m.f()}return w=l.groups.map((function(e){return{id:e.id,title:x(e.title,c)}})),e.abrupt("return",{styles:d,groups:w,popular:h});case 17:case"end":return e.stop()}}),e)}))),ne.apply(this,arguments)}var oe={v2:{stage:"super-hero-stage-v2/v0",prod:"super-hero-prod-v2/v0"},v3:{stage:"super-hero-stage-v3/v0",prod:"super-hero-prod-v3/v0"}},ie=function(e,t){var r;return null===(r=oe[t])||void 0===r?void 0:r[e?"prod":"stage"]};function ae(e,t,r,n){return se.apply(this,arguments)}function se(){return(se=O(y().mark((function e(t,r,n,o){var i,a,s,c,u,l,f;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=ie(t,r)){e.next=3;break}return e.abrupt("return",[]);case 3:return a={version:"",locales:"",items:new Array},e.next=6,Promise.all([I(i,n,o),A(i,o,a)]);case 6:return s=e.sent,c=v(s,2),u=c[0],l=c[1],f=l.items.map((function(e){return ce(e,u,i)})),e.abrupt("return",f);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ce(e,t,r){var n,o="".concat("https://clio-assets.adobe.com/clio-playground","/").concat(r);return{prompt:x(e.prompt,t),image:null!==(n=M(o,e.image.url))&&void 0!==n?n:"",docId:e.docId}}},51473:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new x(n||[]);return i(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return o("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}r.d(t,{Mo:()=>d,Wv:()=>f,eK:()=>h,oo:()=>p});var f=200,p=201,d=6e3,h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t}var t,r,n,i;return t=e,r=[{key:"getHeaders",value:function(e){var t=this._options.apiKey,r={};""!==e&&(r={Authorization:"Bearer ".concat(e)});var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({"X-Api-Key":t},r);return n}},{key:"getUrl",value:function(){return this._options.url}},{key:"enrollUser",value:(i=a(o().mark((function e(t){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",{statusCode:void 0,isRequestAccessDisabled:!0});case 2:return e.next=4,fetch(this.getUrl(),{method:"POST",body:JSON.stringify({}),headers:this.getHeaders(t)});case 4:if((r=e.sent).status!==f){e.next=9;break}return e.abrupt("return",{statusCode:r.status,isRequestAccessDisabled:!1});case 9:if(r.status!==p){e.next=11;break}return e.abrupt("return",{statusCode:r.status,isRequestAccessDisabled:!0});case 11:throw new Error("User is not enrolled to access CME");case 12:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"retryEnrollment",value:(n=a(o().mark((function e(t){var r,n,i,a,s,c=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=c.length>1&&void 0!==c[1]?c[1]:5e3,n=d,i=!0,a=Date.now(),e.prev=4;case 5:if(!(Date.now()-a<r)){e.next=23;break}return e.next=8,fetch(this.getUrl(),{method:"POST",body:JSON.stringify({}),headers:this.getHeaders(t)});case 8:if((s=e.sent).status!==f){e.next=15;break}return e.next=12,new Promise((function(e){return setTimeout(e,2e3)}));case 12:return e.abrupt("return",{statusCode:s.status,isRequestAccessDisabled:!1});case 15:if(s.status!==p){e.next=20;break}return e.next=18,new Promise((function(e){return setTimeout(e,1e3)}));case 18:e.next=21;break;case 20:return e.abrupt("return",{statusCode:n,isRequestAccessDisabled:i});case 21:e.next=5;break;case 23:return e.abrupt("return",{statusCode:n,isRequestAccessDisabled:i});case 26:return e.prev=26,e.t0=e.catch(4),e.abrupt("return",{statusCode:n,isRequestAccessDisabled:i});case 29:case"end":return e.stop()}}),e,this,[[4,26]])}))),function(e){return n.apply(this,arguments)})}],r&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},76219:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(60364),o=r(17578);window.ComponentLoader={ComponentLoader:n.s_,CCACLoader:n.s_};var i=new n.s_({config:{cdnEnvironment:(0,o.vC)()?"prod":"stage"}})},19504:(e,t,r)=>{"use strict";r.d(t,{CQ:()=>g,G3:()=>d,K2:()=>l,Kl:()=>a,Lr:()=>u,PU:()=>h,QT:()=>f,_Z:()=>b,ay:()=>p,fv:()=>o,m8:()=>i,rS:()=>m,vz:()=>y,y2:()=>v});var n=r(17578),o=(0,n.vC)()?"https://platform-cs.adobe.io":"https://platform-cs-stage.adobe.io",i="clio-playground-web",a="ff_community",s="".concat((0,n.vC)()?"https://community-hubs.adobe.io":"https://community-hubs-stage.adobe.io","/api/v2/").concat(a,"/assets"),c="".concat((0,n.vC)()?"https://cdn.cp.adobe.io":"https://cdn-stage.cp.adobe.io","/content/2/dcx"),u={url:o,apiKey:i,cacheControl:"max-age=60"},l={modelUrl:s,renditionUrl:c,apiKey:"alfred-community-hubs"},f="rendition",p="sharedImage",d="guideImage",h="structurematch",v="v1",y=1024,m=1024,g=function(e){return e.production="prod",e.corporate="corp",e.staging="stage",e}({}),b={stage:"https://firefly-stage.corp.adobe.com/",corp:"https://firefly.adobe.com/",prod:"https://firefly.adobe.com/"}},31729:(e,t,r)=>{"use strict";r.d(t,{N5:()=>a,Qs:()=>c,TQ:()=>u,tr:()=>f,vM:()=>s,x4:()=>i});var n=r(17578),o=r(18084),i={appId:"Firefly1",appVersion:"1.0",apiKey:r(23788).jf.clientId,accessProfileHostUrl:(0,n.vC)()?"https://aps-web.adobe.io":"https://aps-web-stage.adobe.io"},a={appId:"Firefly1"},s={clientID:"firefly",context:"if"},c=function(e,t){return null!=t?t:o.oP[e]},u={modalType:"WEB_APP_MODAL_WORKFLOW",version:"2",workflowId:"ondemand_purchase_subscription_workflow"},l=new URL("".concat(i.accessProfileHostUrl,"/webapps/access_profile/v3"));l.searchParams.append("include_disabled_fis","true");var f=l.toString()},4771:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var n=r(23788),o="https://ccx-melville-stage.adobe.io/api/v1/cme_beta/enrollment?clientId=".concat(n.jf.clientId),i="https://libraries.adobe.io/api/v1/cme_beta/enrollment?clientId=".concat(n.jf.clientId),a={url:"prod"===n.jf.environment?i:o,apiKey:n.jf.clientId}},89347:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(17578),o={url:(0,n.vC)()?"https://cc-api-data.adobe.io/ingest":"https://cc-api-data-stage.adobe.io/ingest/",projectKey:"genai-web-service",apiKey:"genai-web-service",cookieName:"AMCV_9E1005A551ED61CA0A490D45%40AdobeOrg",env:(0,n.vC)()?"prod":"stage",generatedContent:{projectKey:"genaiugc-web-service",apiKey:"genaiugc-web-service"},userInputContent:{projectKey:"genaiuic-web-service",apiKey:"genaiuic-web-service"}}},79521:(e,t,r)=>{"use strict";r.d(t,{Gm:()=>C,Ld:()=>O,Wk:()=>g,Zj:()=>x,fs:()=>w,kM:()=>E});var n,o,i,a,s,c,u,l,f,p,d=r(64085),h=r(4021),v=r(81278);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=(m(n={local:"https://firefly-stage.adobe.io",dev:"https://firefly-dev.adobe.io"},d.b.STAGE,"https://firefly-stage.adobe.io"),m(n,d.b.PROD,"https://firefly.adobe.io"),n),b=(m(i={local:"https://firefly-clio-imaging-stage.adobe.io",dev:"https://firefly-clio-imaging-dev.adobe.io"},d.b.STAGE,"https://firefly-clio-imaging-stage.adobe.io"),m(i,d.b.PROD,"https://firefly-clio-imaging.adobe.io"),m(i,"alternative",(m(o={local:"https://firefly-clio-imaging-preview-stage.adobe.io"},d.b.STAGE,"https://firefly-clio-imaging-preview-stage.adobe.io"),m(o,d.b.PROD,"https://firefly-clio-imaging-preview.adobe.io"),o)),i),_=(m(s={local:"https://firefly-clio-imaging-stage.adobe.io",dev:"https://firefly-clio-imaging-dev.adobe.io"},d.b.STAGE,"https://firefly-clio-imaging-stage.adobe.io"),m(s,d.b.PROD,"https://firefly-clio-imaging.adobe.io"),m(s,"alternative",(m(a={local:"https://firefly-clio-imaging-preview-stage.adobe.io"},d.b.STAGE,"https://firefly-clio-imaging-preview-stage.adobe.io"),m(a,d.b.PROD,"https://firefly-clio-imaging-preview.adobe.io"),a)),s),w=(m(u={local:"https://firefly-clio-imaging-stage.adobe.io",dev:"https://firefly-clio-imaging-dev.adobe.io"},d.b.STAGE,"https://firefly-clio-imaging-stage.adobe.io"),m(u,d.b.PROD,"https://firefly-clio-imaging.adobe.io"),m(u,"alternative",(m(c={local:"https://firefly-clio-imaging-preview-stage.adobe.io"},d.b.STAGE,"https://firefly-clio-imaging-preview-stage.adobe.io"),m(c,d.b.PROD,"https://firefly-clio-imaging-preview.adobe.io"),c)),u),E=(m(l={local:"https://firefly-cme-stage-inference.adobe.io",dev:"https://firefly-cme-dev-inference.adobe.io"},d.b.STAGE,"https://firefly-cme-stage-inference.adobe.io"),m(l,d.b.PROD,"https://firefly-cme-inference.adobe.io"),l),S=(m(f={local:"https://firefly-cm-clio-imaging-stage.adobe.io",dev:"https://firefly-cm-clio-imaging-dev.adobe.io"},d.b.STAGE,"https://firefly-cm-clio-imaging-stage.adobe.io"),m(f,d.b.PROD,"https://firefly-cm-clio-imaging.adobe.io"),f),O=(m(p={local:"https://firefly-stage.adobe.io",dev:"https://firefly-dev.adobe.io"},d.b.STAGE,"https://firefly-stage.adobe.io"),m(p,d.b.PROD,"https://firefly.adobe.io"),p),k=function(e){return m({local:e,dev:e},d.b.STAGE,e)},C={"t2i-v1":void 0,"clio-v2":{generate:g,upload:O},"clio-v2-structure-match":{generate:b,upload:O},"clio-v3":{generate:_,upload:O},"clio-v3-exp":{generate:k("https://clio-exp-colligov2-dev.corp.ethos851-stage-or2.ethos.adobe.net"),upload:k("https://clio-exp-colligov2-dev.corp.ethos851-stage-or2.ethos.adobe.net")},"clio-v3-dev":{generate:k(_.dev),upload:k(O.dev)},"clio-v2-cme":{generate:E,upload:O},"clio-v3-cme":{generate:S,upload:O}};function x(e,t,r,n){var o;if(!0===n){if("v3dev"===e.modelInputVersion)return"clio-v3-dev";if("v3exp"===e.modelInputVersion)return"clio-v3-exp"}if(e.customModelId)return"v3"===e.modelInputVersion?"clio-v3-cme":"clio-v2-cme";if(null!==(o=e.objectComposite)&&void 0!==o&&o.heroImage)return"clio-v3";var i=(0,h.uX)({isClioV2Enabled:t,isClioV3Enabled:r,modelInputVersion:e.modelInputVersion});if("v2"===i&&(0,v.vn)(e))return"clio-v2-structure-match";switch(i){case"v3":return"clio-v3";case"v2":return"clio-v2";case"v1":return"t2i-v1";default:throw new Error("Unsupported model version: ".concat(i))}}},23788:(e,t,r)=>{"use strict";r.d(t,{bV:()=>i,jf:()=>a,pp:()=>s});var n=r(78842),o=r(17578),i=(0,o.vC)()?"https://adobeid-na1.services.adobe.com":"https://adobeid-na1-stg1.services.adobe.com",a={clientId:"clio-playground-web",environment:(0,o.vC)()?n.IEnvironment.PROD:n.IEnvironment.STAGE,scope:"AdobeID,firefly_api,openid,pps.read,additional_info.projectedProductContext,additional_info.ownerOrg,uds_read,uds_write,ab.manage,read_organizations,additional_info.roles",locale:navigator.language},s={consentProfile:"adobe-id-sign-up"}},44489:(e,t,r)=>{"use strict";r.d(t,{X8:()=>c,v1:()=>u,g$:()=>l});const n=r.p+"235f70452dbd947d9bb4.wasm",o=r.p+"6db236aa51f661cadd81.js";var i=r(36258),a="clio-playground-web",s="prod"===r(23788).jf.environment,c=(0,i.vU)({url:{id:"@clio/playground:cai-learn-more-url",defaultMessage:[{type:0,value:"https://www.adobe.com/go/firefly-faq#using-firefly"}]}}),u=s?"https://verify.contentauthenticity.org":"https://verify-stage.contentauthenticity.org",l={wasmSrc:n,workerSrc:o,poolOptions:{maxWorkers:Math.min(navigator.hardwareConcurrency,4)},claimsSigner:{host:s?"https://cai.adobe.io":"https://cai-stage.adobe.io",apiKey:a,reserveSizeCacheMs:36e5},manifestStorage:{post:{host:s?"https://cai-msb.adobe.io":"https://cai-msb-stage.adobe.io",apiKey:a},get:{host:s?"https://cai-manifests.adobe.com":"https://cai-manifests-stage.adobe.com"}},signTimeoutMs:1e4,thumbnail:{maxSize:800,quality:40}}},84507:(e,t,r)=>{"use strict";r.d(t,{G:()=>b});var n=r(45016),o=r(63143),i=r(97717);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function h(){}function v(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,s,c){var u=p(e[n],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return o("throw",e,s,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),u(_,c,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function d(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}function v(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,s,"next",e)}function s(e){v(i,n,o,a,s,"throw",e)}a(void 0)}))}}function m(e){return g.apply(this,arguments)}function g(){return(g=y(f().mark((function e(t){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.Lp)(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var b=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxSeeds=t,this.executeFn=r,d(this,"_timeoutIds",new Map),d(this,"_queues",new Map)}var t,r,n,a;return t=e,r=[{key:"executeWithBatch",value:(a=y(f().mark((function e(t,r,n){var a,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,o.hu)(!t.seeds&&void 0===t.n,"Request already has seeds or n"),a=new i.B,e.next=4,m(t);case 4:return s=e.sent,this._addRequestToQueue(s,{request:t,seed:r,signal:n,deferred:a}),this._scheduleNextBatchIfNeeded(s),e.next=9,a.promise;case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return a.apply(this,arguments)})},{key:"_addRequestToQueue",value:function(e,t){this._queues.has(e)||this._queues.set(e,[]),this._queues.get(e).push(t)}},{key:"_executeBatch",value:(n=y(f().mark((function e(t){var r,n,i,a,s,l,p,d,h,v,y,m,g,b=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,o.hu)(t.length<=this.maxSeeds&&t.length>0,"Too many items"),r=new AbortController,n=t.length,i=u(t),e.prev=4,s=f().mark((function e(){var t,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a.value,(0,o.hu)(!t.signal.aborted,"Job is not supposed to be aborted"),i=function e(){t.signal.removeEventListener("abort",e),b._abortJob(t),0==--n&&r.abort()},t.signal.addEventListener("abort",i);case 4:case"end":return e.stop()}}),e)})),i.s();case 7:if((a=i.n()).done){e.next=11;break}return e.delegateYield(s(),"t0",9);case 9:e.next=7;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),i.e(e.t1);case 16:return e.prev=16,i.f(),e.finish(16);case 19:return e.prev=19,l=c(c({},t[0].request),{},{seeds:t.map((function(e){return e.seed}))}),e.next=23,this.executeFn(l,r.signal);case 23:p=e.sent,d=u(t);try{for(d.s();!(h=d.n()).done;)(v=h.value).signal.aborted||v.deferred.resolve(p)}catch(e){d.e(e)}finally{d.f()}e.next=32;break;case 28:e.prev=28,e.t2=e.catch(19),y=u(t);try{for(y.s();!(m=y.n()).done;)(g=m.value).signal.aborted||g.deferred.reject(e.t2)}catch(e){y.e(e)}finally{y.f()}case 32:case"end":return e.stop()}}),e,this,[[4,13,16,19],[19,28]])}))),function(e){return n.apply(this,arguments)})},{key:"_abortJob",value:function(e){e.deferred.reject(new DOMException("The request aborted by user","AbortError"))}},{key:"_scheduleBatchWork",value:function(e){for(var t=this,r=this._queues.get(e);r&&r.length>0;){var n=r.splice(0,this.maxSeeds).filter((function(e){return!e.signal.aborted||(t._abortJob(e),!1)}));n.length>0&&this._executeBatch(n)}}},{key:"_scheduleNextBatchIfNeeded",value:function(e){var t=this;if(!this._timeoutIds.has(e)){var r=setTimeout((function(){var r=t._timeoutIds.get(e);r&&(clearTimeout(r),t._timeoutIds.delete(e)),t._scheduleBatchWork(e)}),100);this._timeoutIds.set(e,r)}}}],r&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},27409:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(12983);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(n,a,s,c){var u=p(e[n],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function a(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}function u(e){return e.id}var l=function(){function e(t){var r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,i=void 0,(o=c(o="_imageCache"))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,this._imageCache=new n.qH(u,(function(e){return t(e.model,e.signal)}))}var t,r,o,l;return t=e,r=[{key:"loadImage",value:(o=i().mark((function e(t,r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._imageCache.load(t,r,!0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})),l=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=o.apply(e,t);function s(e){a(i,r,n,s,c,"next",e)}function c(e){a(i,r,n,s,c,"throw",e)}s(void 0)}))},function(e,t){return l.apply(this,arguments)})}],r&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},89049:(e,t,r)=>{"use strict";r.d(t,{A6:()=>C,BG:()=>k,Fp:()=>G,NG:()=>z,Ty:()=>ce,_i:()=>N,cP:()=>pe,e8:()=>U,eh:()=>oe,fq:()=>F,gN:()=>ae,gj:()=>Z,lJ:()=>A,my:()=>de,sq:()=>V,sx:()=>le,t$:()=>J,yx:()=>Y});var n=r(13050),o=r(17578),i=r(85824),a=r(90778),s=r(79296),c=r(63143),u=r(16158),l=r(52539),f=r(11648),p=r(81278),d=r(94649);function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(){m=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(v=b);var _=h.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==y(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(_,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function g(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function b(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){g(i,n,o,a,s,"next",e)}function s(e){g(i,n,o,a,s,"throw",e)}a(void 0)}))}}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S="X-Access-Error",O=[p.WD.ART,p.WD.ILLUSTRATION,p.WD.PHOTO,p.WD.VECTOR,p.WD.RAW],k=2e3,C=12e4;function x(e){return e.includes(p.WD.VECTOR)?n.HN.VECTOR:e.includes(p.WD.RAW)?"raw":e.includes(p.WD.ART)||e.includes(p.WD.ILLUSTRATION)?n.HN.ART:e.includes(p.WD.PHOTO)?n.HN.PHOTO:void 0}function L(e){var t=e.filter((function(e){return!O.includes(e)}));return t.length>0?t:void 0}function I(e){switch(e){case"art":case"vector":return"illustration";case"photo":return"photo";case"raw":return"raw";default:return}}function P(e){if(e)return{aperture:e.aperture,shutter_speed:e.shutterSpeed,focal_length:e.fieldOfView}}function A(e){var t=(0,u.Zt)(e.headers);return w(w({},e.result),t)}function T(e,t,r){return R.apply(this,arguments)}function R(){return(R=b(m().mark((function e(t,r,n){var o,i,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==(o=t.outputs.find((function(e){return e.seed===r})))||!o.image.presignedUrl){e.next=13;break}return e.next=4,(0,f.q)(new URL(o.image.presignedUrl),{signal:n});case 4:if((i=e.sent).ok){e.next=7;break}throw new Error("Could not download the image from the presigned url");case 7:return e.next=9,i.blob();case 9:return a=e.sent,e.abrupt("return",{image:a,presignedUrl:o.image.presignedUrl});case 13:throw new Error("Output is not correctly formatted.");case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var j=function(e,t,r){if(e||r)return{presets:r,strength:(null!=t?t:p.MR)||1,referenceImage:e}};function N(e,t,r){return D.apply(this,arguments)}function D(){return D=b(m().mark((function e(t,r,n){var o,i,s,c,u,l,f,h,v,y,g,b,_,E=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=E.length>3&&void 0!==E[3]&&E[3],null!=(i=t.objectComposite)&&i.heroImage){e.next=4;break}return e.abrupt("return",void 0);case 4:return e.next=6,re(i.heroImage,r,n);case 6:if(s=e.sent){e.next=9;break}return e.abrupt("return",void 0);case 9:return c=o?t.seeds:void 0,u={source:s},l={width:a.TY[t.aspectRatio].width,height:a.TY[t.aspectRatio].height},f=void 0,i.placement&&i.heroImageSize&&(h=(0,d.q_)(l,i.heroImageSize,i.placement),f={inset:{left:h.x,top:h.y,right:l.width-Math.floor(Number(h.x)+Number(h.width)),bottom:l.height-Math.floor(Number(h.y)+Number(h.height))}}),v={inputImage:u,prompt:t.prompt,seeds:c,size:l,placement:f},e.next=17,X(t.referenceImage,r,n);case 17:return y=e.sent,g=L(t.styles.value||[]),b=x(t.styles.value||[]),_=j(y,p.MR,g),e.abrupt("return",w(w({},v),{},{contentClass:b,styles:_}));case 22:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function U(e,t,r){return M.apply(this,arguments)}function M(){return(M=b(m().mark((function e(t,r,n){var o,i,a,s,c,u,l;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(t,r,n);case 2:return o=e.sent,i=o.image,a=o.presignedUrl,s=t.version,c=t.appliedUntilDate,u=t.consumptionStatus,l={image:i,clientVersion:"2d808117c",imageServiceVersion:s,hasDeniedWords:!1,hasBlockedWords:!1,isNotSupportedLanguage:!1,predictedModel:{},appliedUntilDate:c,consumptionStatus:u,presignedUrl:a},e.abrupt("return",l);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,t,r){return H.apply(this,arguments)}function H(){return H=b(m().mark((function e(t,r,n){var o,i,s,c,u,l,f,p,d,h,v,y,g,b=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(i=b.length>3&&void 0!==b[3]&&b[3])?t.avoid:t.avoidKeywords,c=i?t.seeds:void 0,e.next=5,X(t.referenceImage,r,n);case 5:return u=e.sent,e.next=8,ee(t.structureReferenceImage,r,n);case 8:return l=e.sent,f=L(t.styles.value||[]),p=x(t.styles.value||[]),d=a.TY[t.aspectRatio],h=t.exif&&"auto"!==t.exif.mode&&t.exif.value?{aperture:t.exif.value.aperture,shutterSpeed:t.exif.value.shutter_speed,fieldOfView:t.exif.value.focal_length}:void 0,v=j(u,t.guideStrength,f),y=l?{cannyData:{referenceImage:l},depthData:{referenceImage:l},adherenceThreshold:t.structureAdherence}:void 0,g={prompt:t.prompt,seeds:c,negativePrompt:s,contentClass:p,size:d,visualIntensity:null!==(o=t.rlhfCreativity)&&void 0!==o?o:6,photoSettings:h,styles:v,controlData:y,locale:t.locale,customModelId:t.customModelId,promptDebiasing:t.promptDebiasing},e.abrupt("return",g);case 17:case"end":return e.stop()}}),e)}))),H.apply(this,arguments)}function z(e,t,r){return B.apply(this,arguments)}function B(){return(B=b(m().mark((function e(t,r,n){var o,i,a,s,c,u,l,f,p,d,h,v;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(t,r,n);case 2:return i=e.sent,a=i.image,s=i.presignedUrl,c=t.version,u=t.promptHasDeniedWords,l=t.promptHasBlockedArtists,f=t.predictedContentClass,p=t.predictedPhotoSettings,d=t.appliedUntilDate,h=t.consumptionStatus,v={image:a,clientVersion:"2d808117c",imageServiceVersion:c,hasDeniedWords:null!==(o=u||l)&&void 0!==o&&o,hasBlockedWords:!1,isNotSupportedLanguage:!1,predictedModel:{content:I(f),exif:P(p)},appliedUntilDate:d,consumptionStatus:h,presignedUrl:s},e.abrupt("return",v);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(e,t,r){return K.apply(this,arguments)}function K(){return K=b(m().mark((function e(t,r,n){var o,i,s,c,u,l=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=l.length>3&&void 0!==l[3]&&l[3],e.next=3,X(t.referenceImage,r,n);case 3:if(i=e.sent){e.next=6;break}throw new Error("Reference image is required");case 6:return s=o?t.seeds:void 0,c=a.TY[t.aspectRatio],u={seeds:s,size:c,image:i},e.abrupt("return",u);case 10:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}function V(e,t,r){return W.apply(this,arguments)}function W(){return(W=b(m().mark((function e(t,r,n){var o,i,a,s,c,u,l;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(t,r,n);case 2:return o=e.sent,i=o.image,a=o.presignedUrl,s=t.version,c=t.appliedUntilDate,u=t.consumptionStatus,l={image:i,clientVersion:"2d808117c",imageServiceVersion:s,hasDeniedWords:!1,hasBlockedWords:!1,isNotSupportedLanguage:!1,appliedUntilDate:c,consumptionStatus:u,presignedUrl:a},e.abrupt("return",l);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){if(e.body){var t=e.status,r=e.body,n=r.message,o=r.error_code;if(console.error("Firefly Error",o,n),422===t&&"language_not_supported"===o)return{image:new Blob,clientVersion:"2d808117c",imageServiceVersion:"",hasDeniedWords:!1,hasBlockedWords:!1,isNotSupportedLanguage:!0};if(451===t)switch(o){case"prompt_unsafe":return{image:new Blob,clientVersion:"2d808117c",imageServiceVersion:"",hasDeniedWords:!1,hasBlockedWords:!0,isNotSupportedLanguage:!1};case"image_unsafe":throw new c.c6("NSFW_IMAGE","NSFW image detected");case"reference_image_unsafe_error":throw new c.c6("NSFW_REFERENCE_IMAGE","NSFW reference image detected");default:throw new c.c6("BLOCKED_REGION","Blocked region detected")}if(429===t)throw new c.c6("SERVICE_AT_CAPACITY","Service at capacity");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"user_profile_denied":return new c.c6("USER_PROFILE_DENIED",t);case"user_not_entitled":return new c.c6("USER_NOT_ENTITLED",t);case"user_blocked_by_admin":return new c.c6("USER_BLOCKED_BY_ADMIN",t);case"quota_exhausted":return new c.c6("INSUFFICIENT_CREDITS",t);case"invalid_subscription":case"user_blocked_due_to_violation":return new c.c6("USER_BLOCKED_VIOLATION",t);case"invalid_ims_scope":return new c.c6("INVALID_SCOPE",t);case"429050":return new c.c6("DAILY_LIMIT","Daily limit exceeded");default:return}}("access_error"===o?e.headers.get(S):o,n);if(i)throw i}throw e}function Y(e){var t;if((0,o.Dj)()){var r=e.prompt.match(/\{[^{}]*\}/);r&&(t=r[0],e.prompt=e.prompt.replace(t,"").trim(),t=t.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"'))}return t}var J=function(){var e=b(m().mark((function e(t,r){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],r.forEach((function(e){n.push(T(t,e).then((function(e){return e.image})))})),o=[],e.next=5,Promise.allSettled(n);case 5:return e.sent.forEach((function(e){"fulfilled"===e.status?o.push(e.value):o.push(void 0)})),e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();function q(e,t,r,n){return $.apply(this,arguments)}function $(){return($=b(m().mark((function e(t,r,n,o){var i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,o(t);case 4:if(i=e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,r.loadImage(n,{blob:i,id:"".concat(t.type,":").concat(t.id)});case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e,t,r){return Q.apply(this,arguments)}function Q(){return Q=b(m().mark((function e(t,r,n){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(t,r,n,function(){var e=b(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.sk)(t.ref,p.GN,"image/jpeg");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),Q.apply(this,arguments)}function ee(e,t,r){return te.apply(this,arguments)}function te(){return te=b(m().mark((function e(t,r,n){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(t,r,n,function(){var e=b(m().mark((function e(t){var r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.xe)(t.ref,p.jG,"image/jpeg");case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.blob);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),te.apply(this,arguments)}function re(e,t,r){return ne.apply(this,arguments)}function ne(){return ne=b(m().mark((function e(t,r,n){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(t,r,n,function(){var e=b(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.pB.getBlob(t.ref);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),ne.apply(this,arguments)}function oe(e,t,r){return ie.apply(this,arguments)}function ie(){return(ie=b(m().mark((function e(t,r,n){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F(t,r,n,!0);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ae(e,t,r){return se.apply(this,arguments)}function se(){return(se=b(m().mark((function e(t,r,n){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(t,r,n,!0));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ce(e,t,r){return ue.apply(this,arguments)}function ue(){return(ue=b(m().mark((function e(t,r,n){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",N(t,r,n,!0));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(e,t){return fe.apply(this,arguments)}function fe(){return(fe=b(m().mark((function e(t,r){var n,o,i,a,c,l,p,d,v,y,g,b,_,E,S,O,k,C,x;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.result,i=o.version,a=o.outputs,c=t.result,l=c.promptHasDeniedWords,p=c.promptHasBlockedArtists,d=c.predictedContentClass,v=c.predictedPhotoSettings,y=new Array,g=h(a),e.prev=4,g.s();case 6:if((b=g.n()).done){e.next=22;break}if((_=b.value).image.presignedUrl){e.next=10;break}return e.abrupt("continue",20);case 10:return e.next=12,(0,f.q)(new URL(_.image.presignedUrl),{signal:r});case 12:if((E=e.sent).ok){e.next=16;break}throw new Error("Could not download the image from the presigned url");case 16:return e.next=18,E.blob();case 18:S=e.sent,y.push({seed:_.seed,image:S,isInferenceGenerated:!0,presignedUrl:_.image.presignedUrl});case 20:e.next=6;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(4),g.e(e.t0);case 27:return e.prev=27,g.f(),e.finish(27);case 30:return O=(0,u.Zt)(t.headers),k=null!==(n=null!=l?l:p)&&void 0!==n&&n,C=k?s.BK.DeniedWords:s.BK.Ok,x=w({status:C,images:y,imageServiceVersion:i,hasDeniedWords:k,hasBlockedWords:!1,isNotSupportedLanguage:!1,predictedModel:{content:I(d),exif:P(v)}},O),e.abrupt("return",x);case 35:case"end":return e.stop()}}),e,null,[[4,24,27,30]])})))).apply(this,arguments)}function pe(e){var t=Z(e),r=t.clientVersion,n=t.imageServiceVersion,o=t.hasDeniedWords,i=t.hasBlockedWords,a=t.isNotSupportedLanguage,c=s.BK.Error;return a?c=s.BK.NonEnglishWord:o?c=s.BK.DeniedWords:i&&(c=s.BK.BlockedWord),{status:c,images:[],clientVersion:r,imageServiceVersion:n,hasDeniedWords:o,hasBlockedWords:i,isNotSupportedLanguage:a}}function de(e){var t,r=A(e).links.result.href;try{t=new URL(r).origin}catch(e){}return{baseUrl:t,id:r.split("/").pop()}}},68622:(e,t,r)=>{"use strict";r.d(t,{_:()=>g});var n=r(13050),o=r(11648),i=r(81278),a=r(84507),s=r(27409),c=r(89049);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=f(e[n],e,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==u(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function d(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))}}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function y(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}var g=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),y(this,"_generateImageBatchManager",void 0),y(this,"_generateImageOCBatchManager",void 0),y(this,"_generateSimilarBatchManager",void 0),y(this,"_uploadCache",void 0),y(this,"firefly",void 0),this.firefly=new n.EV(t),this._generateImageOCBatchManager=new a.G(4,function(){var e=h(p().mark((function e(t,n){var o,i,a,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(0,c.yx)(t),i=o?{"x-colligo-debug-input":o}:{},a={signal:n,additionalHeaders:function(){return i}},e.next=5,r.firefly.public.generateObjectComposite(t,a);case 5:return s=e.sent,e.abrupt("return",(0,c.lJ)(s));case 7:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this._generateImageBatchManager=new a.G(4,function(){var e=h(p().mark((function e(t,n){var o,i,a,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(0,c.yx)(t),i=o?{"x-colligo-debug-input":o}:{},a={signal:n,additionalHeaders:function(){return i}},!t.customModelId){e.next=9;break}return e.next=6,r.generateImageAsyncPost(t,a,n);case 6:e.t0=e.sent,e.next=12;break;case 9:return e.next=11,r.firefly.public.v2ImagesGenerateV2ImagesGeneratePost(t,a);case 11:e.t0=e.sent;case 12:return s=e.t0,e.abrupt("return",(0,c.lJ)(s));case 14:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this._generateSimilarBatchManager=new a.G(4,function(){var e=h(p().mark((function e(t,n){var o,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={signal:n},e.next=3,r.firefly.public.v2ImagesGenerateSimilarV2ImagesGenerateSimilarPost(t,o);case 3:return i=e.sent,e.abrupt("return",(0,c.lJ)(i));case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this._uploadCache=new s.N(function(){var e=h(p().mark((function e(t,n){var o,i,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={signal:n},e.next=3,r.firefly.public.storageImage(t.blob,o);case 3:return i=e.sent,a=i.result.images[0],e.abrupt("return",{id:a.id,presignedUrl:a.presignedUrl});case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}())}var t,r,u,l,d,m,g,b,_,w,E;return t=e,r=[{key:"generateImageFromPromptForObjectComposite",value:(E=h(p().mark((function e(t,r){var o,i,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c._i)(t,this._uploadCache,r);case 2:if(!(o=e.sent)){e.next=19;break}return e.prev=4,e.next=7,this._generateImageOCBatchManager.executeWithBatch(o,t.seed,r);case 7:return i=e.sent,e.next=10,(0,c.e8)(i,t.seed,r);case 10:return a=e.sent,e.abrupt("return",a);case 14:if(e.prev=14,e.t0=e.catch(4),!(e.t0 instanceof n.vu)){e.next=18;break}return e.abrupt("return",(0,c.gj)(e.t0));case 18:throw e.t0;case 19:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(e,t){return E.apply(this,arguments)})},{key:"generateImageFromPrompt",value:(w=h(p().mark((function e(t,r){var o,i,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.fq)(t,this._uploadCache,r);case 2:return o=e.sent,e.prev=3,e.next=6,this._generateImageBatchManager.executeWithBatch(o,t.seed,r);case 6:return i=e.sent,e.next=9,(0,c.NG)(i,t.seed,r);case 9:return a=e.sent,e.abrupt("return",a);case 13:if(e.prev=13,e.t0=e.catch(3),!(e.t0 instanceof n.vu)){e.next=17;break}return e.abrupt("return",(0,c.gj)(e.t0));case 17:throw e.t0;case 18:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e,t){return w.apply(this,arguments)})},{key:"generateSimilarImages",value:(_=h(p().mark((function e(t,r){var o,i,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Fp)(t,this._uploadCache,r);case 2:return o=e.sent,e.prev=3,e.next=6,this._generateSimilarBatchManager.executeWithBatch(o,t.seed,r);case 6:return i=e.sent,e.next=9,(0,c.sq)(i,t.seed,r);case 9:return a=e.sent,e.abrupt("return",a);case 13:if(e.prev=13,e.t0=e.catch(3),!(e.t0 instanceof n.vu)){e.next=17;break}return e.abrupt("return",(0,c.gj)(e.t0));case 17:throw e.t0;case 18:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e,t){return _.apply(this,arguments)})},{key:"text2Image",value:(b=h(p().mark((function e(t,r,n,o){var a,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(a=r.objectComposite)||void 0===a||!a.heroImage){e.next=14;break}return s=void 0,e.next=4,this.generateImageFromPromptForObjectComposite(r,n);case 4:if(!(s=e.sent)){e.next=9;break}return e.abrupt("return",s);case 9:return e.next=11,this.generateImageFromPrompt(r,n);case 11:case 20:case 23:case 29:return e.abrupt("return",e.sent);case 12:case 25:e.next=30;break;case 14:if(!r.referenceImage){e.next=27;break}e.t0=i.dm[r.referenceImage.type],e.next="style_zero"===e.t0?18:"show_similar"===e.t0?21:24;break;case 18:return e.next=20,this.generateImageFromPrompt(r,n);case 21:return e.next=23,this.generateSimilarImages(r,n);case 24:throw new Error("Reference image is only supported in Clio V1");case 27:return e.next=29,this.generateImageFromPrompt(r,n);case 30:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return b.apply(this,arguments)})},{key:"updateAuthToken",value:function(e){this.firefly.updateToken(e)}},{key:"text2ImageForEditModel",value:(g=h(p().mark((function e(t,r){var n,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=t.objectComposite)||void 0===n||!n.heroImage){e.next=14;break}return o=void 0,e.next=4,this.generateObjectCompositeImageFromPromptForEditModel(t,r);case 4:if(!(o=e.sent)){e.next=9;break}return e.abrupt("return",o);case 9:return e.next=11,this.generateImageFromPromptForEditModel(t,r);case 11:case 20:case 23:case 29:return e.abrupt("return",e.sent);case 12:case 25:e.next=30;break;case 14:if(!t.referenceImage){e.next=27;break}e.t0=i.dm[t.referenceImage.type],e.next="style_zero"===e.t0?18:"show_similar"===e.t0?21:24;break;case 18:return e.next=20,this.generateImageFromPromptForEditModel(t,r);case 21:return e.next=23,this.generateSimilarImagesForEditModel(t,r);case 24:throw new Error("Reference image is only supported in Clio V1");case 27:return e.next=29,this.generateImageFromPromptForEditModel(t,r);case 30:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"generateImageFromPromptForEditModel",value:(m=h(p().mark((function e(t,r){var o,i,a,s,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.eh)(t,this._uploadCache,r);case 2:if(o=e.sent,i=(0,c.yx)(o),a=i?{"x-colligo-debug-input":i}:{},s={signal:r,additionalHeaders:function(){return a}},e.prev=6,!o.customModelId){e.next=13;break}return e.next=10,this.generateImageAsyncPost(o,s,r);case 10:e.t0=e.sent,e.next=16;break;case 13:return e.next=15,this.firefly.public.v2ImagesGenerateV2ImagesGeneratePost(o,s);case 15:e.t0=e.sent;case 16:return u=e.t0,e.next=19,(0,c.sx)(u,r);case 19:return e.abrupt("return",e.sent);case 22:if(e.prev=22,e.t1=e.catch(6),!(e.t1 instanceof n.vu)){e.next=26;break}return e.abrupt("return",(0,c.cP)(e.t1));case 26:throw e.t1;case 27:case"end":return e.stop()}}),e,this,[[6,22]])}))),function(e,t){return m.apply(this,arguments)})},{key:"generateSimilarImagesForEditModel",value:(d=h(p().mark((function e(t,r){var o,i,a,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={signal:r},e.next=3,(0,c.gN)(t,this._uploadCache,r);case 3:return i=e.sent,e.prev=4,e.next=7,this.firefly.public.v2ImagesGenerateSimilarV2ImagesGenerateSimilarPost(i,o);case 7:return a=e.sent,e.next=10,(0,c.sx)(a,r);case 10:return s=e.sent,e.abrupt("return",s);case 14:if(e.prev=14,e.t0=e.catch(4),!(e.t0 instanceof n.vu)){e.next=18;break}return e.abrupt("return",(0,c.cP)(e.t0));case 18:throw e.t0;case 19:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(e,t){return d.apply(this,arguments)})},{key:"generateObjectCompositeImageFromPromptForEditModel",value:(l=h(p().mark((function e(t,r){var o,i,a,s,u,l;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Ty)(t,this._uploadCache,r);case 2:if(o=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return i=(0,c.yx)(o),a=i?{"x-colligo-debug-input":i}:{},s={signal:r,additionalHeaders:function(){return a}},e.prev=8,e.next=11,this.firefly.public.generateObjectComposite(o,s);case 11:return u=e.sent,e.next=14,(0,c.sx)(u,r);case 14:return l=e.sent,e.abrupt("return",l);case 18:if(e.prev=18,e.t0=e.catch(8),!(e.t0 instanceof n.vu)){e.next=22;break}return e.abrupt("return",(0,c.cP)(e.t0));case 22:throw e.t0;case 23:case"end":return e.stop()}}),e,this,[[8,18]])}))),function(e,t){return l.apply(this,arguments)})},{key:"generateImageAsyncPost",value:(u=h(p().mark((function e(t,r,i){var a,s,u,l,d,h;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.firefly.public.v2ImagesGenerateV2ImagesGenerateAsyncPost(t,r);case 2:a=e.sent,s=(0,c.my)(a),u=Date.now();case 5:if(!(Date.now()-u<c.A6)||i.aborted){e.next=22;break}return l=s.baseUrl&&s.baseUrl!==this.firefly.config.baseUrl?new n.EV(f(f({},this.firefly.config),{},{baseUrl:s.baseUrl})):this.firefly,e.next=9,l.async.jobResult(s.id,r);case 9:if(d=e.sent,"COMPLETED"!==(h=d.headers.get("x-task-status"))){e.next=15;break}return e.abrupt("return",d);case 15:if("FAILED"!==h){e.next=17;break}return e.abrupt("break",22);case 17:return s=(0,c.my)(d),e.next=20,(0,o.D)(c.BG);case 20:e.next=5;break;case 22:throw new Error("Failed to generate image");case 23:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return u.apply(this,arguments)})}],r&&v(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},41377:(e,t,r)=>{"use strict";r.d(t,{YJ:()=>U});var n=r(97351),o=r(93147);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){if(e)try{return JSON.parse(e)}catch(t){return e}}function l(e){var t={};return e.releases.forEach((function(e){var r=e.features.flat(),n=Object.fromEntries(e.meta.map((function(e){return[e.k,(t=e.v,window.atob(unescape(encodeURIComponent(t))))];var t}))),i=r.filter((function(e){return o.$.has(e)})).map((function(e){return[e,{name:e,meta:u(n[e])}]}));t=s(s({},t),Object.fromEntries(i))})),t}var f=r(54778),p=r(23788),d="https://p13n-stage.adobe.io/fg/api/v3/feature?clientId=".concat(p.jf.clientId,"&meta=true"),h="https://p13n.adobe.io/fg/api/v3/feature?clientId=".concat(p.jf.clientId,"&meta=true"),v={url:"prod"===p.jf.environment?h:d,apiKey:p.jf.clientId},y=r(47788);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(L([])));b&&b!==t&&r.call(b,i)&&(v=b);var _=h.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==m(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(_,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function S(e,t,r,n,o){return O.apply(this,arguments)}function O(){var e;return e=g().mark((function e(t,r,n,o,i){var a,s,c,u,l,p,d,h,m;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=v.url,c=v.apiKey,u=i?{"If-None-Match":i}:{},l={},""!==t&&(l={Authorization:"Bearer ".concat(t)}),p=_(_({"X-Api-Key":c},l),u),o&&(p["x-adobe-uuid"]=null!==(d=(0,y.db)())&&void 0!==d?d:""),e.next=8,fetch((0,f.Q2)(s,w({},"clioPreferredLocale",r)),{method:"GET",headers:p,signal:n});case 8:if(304!==(h=e.sent).status){e.next=11;break}return e.abrupt("return",void 0);case 11:return e.next=13,h.json();case 13:return m=e.sent,e.abrupt("return",{data:m,etag:null!==(a=h.headers.get("ETag"))&&void 0!==a?a:"",ttl:m.ttl});case 15:case"end":return e.stop()}}),e)})),O=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){E(i,n,o,a,s,"next",e)}function s(e){E(i,n,o,a,s,"throw",e)}a(void 0)}))},O.apply(this,arguments)}var k=r(49774);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function x(){x=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==C(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function L(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N(n.key),n)}}function P(){return P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=R(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},P.apply(this,arguments)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function j(e,t,r){return(t=N(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===C(t)?t:String(t)}var D=1*n.EB,U=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(u,e);var t,r,o,i,a,s,c=(a=u,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R(a);if(s){var r=R(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}(this,e)});function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return j(T(e=c.call.apply(c,[this].concat(r))),"_eTag",void 0),j(T(e),"_updateInterval",D),j(T(e),"_timer",Date.now()),j(T(e),"_userConsentedToPerformance",!1),e}return t=u,r=[{key:"needToUpdate",value:function(){return P(R(u.prototype),"needToUpdate",this).call(this)||Date.now()-this._timer>this._updateInterval}},{key:"setUpdateInterval",value:function(e){this._updateInterval=e}},{key:"setTimer",value:function(e){this._timer=e}},{key:"setUserConsentedToPerformance",value:function(e){this._userConsentedToPerformance=e}},{key:"updateCleanUp",value:function(){P(R(u.prototype),"updateCleanUp",this).call(this),this.setTimer(Date.now())}},{key:"update",value:function(){P(R(u.prototype),"update",this).call(this)}},{key:"fetchPersonalizationData",value:(o=x().mark((function e(t){var r,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(this._accessToken,this._locale,t,this._userConsentedToPerformance,this._eTag);case 2:if(null==(r=e.sent)||!r.data){e.next=10;break}this.setLastParsedResults(l(r.data)),this._eTag=r.etag,(o=r.ttl*n.sh)>D&&o!==this._updateInterval&&this.setUpdateInterval(o),e.next=12;break;case 10:if(this._lastParsedResults){e.next=12;break}throw new Error("When etag was specified we expect lastFlags to exist");case 12:return e.abrupt("return",this._lastParsedResults);case 13:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=o.apply(e,t);function a(e){L(i,r,n,a,s,"next",e)}function s(e){L(i,r,n,a,s,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})}],r&&I(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(k.y))},93147:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n=new Set(["clio-access","firefly-favorites-access","firefly-live-event","firefly-cc-library-access","firefly-acp-sharing","firefly-acp-history","firefly-inpainting-access","firefly-gingerbread-access","firefly-tyom-access","firefly-clio-feedback-module","firefly-cme-access","firefly-Inference-beta-access","firefly-video-popcorn","firefly-video-object-removal","firefly-autodub","firefly-text-to-document-access","firefly-sketch-to-image-access","firefly-enable-publish-action","firefly-gingerbread-backend-devbox","firefly-gingerbread-backend-colligo-old","firefly-gingerbread-fov-control","firefly-gingerbread-backend-url-path-migration","firefly-text2Image-style-upload-cai-check","plg-homepage-banner-test","plg-upsell-navbar-button","plg-watermark-button","plg-custom-paywall-trigger","disable-apple-pay","firefly-apis-colligo-v2","firefly-apis-colligo-v3","firefly-unified-account-credits-button","firefly-commercialization-hard-cap","firefly-debug-menu-enable","firefly-style-kit","firefly-browse-style-kits","firefly-cme-enable-quick-training","firefly-cme-disable-copy-link","firefly-cme-enable-preview-actions","firefly-object-composites","firefly-cme-enable-auto-tags","firefly-cme-enable-auto-caption-debugger","firefly-cme-enable-clio3","firefly-cme-enable-retrain-learn-more","firefly-cme-clio3-enable-all-panels","firefly-cme-clio3-enable-structure-reference","firefly-cm-separation","firefly-sidebar-redesign","firefly-sidebar-redesign-mobile","firefly-cme-training-queue-capacity","firefly-cme-enable-duplicate","firefly-prompt-debiasing","firefly-homepage-auto-scroll","firefly-express-modal-checkbox","clio-pick-a-winner","clio-parametric-comparison","firefly-whats-new","unit-test-flag1","unit-test-flag2","unit-test-flag3","unit-test-flag4","firefly-alt-environment","firefly-object-composite-enabling-properties","firefly-remove-batch-generation","firefly-gallery-schema-validation"])},49774:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function i(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}r.d(t,{y:()=>s});var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"_resultCollector",void 0),i(this,"_internalUpdateNeeded",!1),i(this,"_updateIsRunning",!1),i(this,"_accessToken",void 0),i(this,"_lastParsedResults",void 0),i(this,"_locale","en_US")}var t,r;return t=e,(r=[{key:"needToUpdate",value:function(){return this._internalUpdateNeeded||!this._lastParsedResults}},{key:"shouldSkipUpdate",value:function(){return this._updateIsRunning||void 0===this._accessToken}},{key:"setUpdateIsRunning",value:function(e){this._updateIsRunning=e}},{key:"setInternalUpdateNeeded",value:function(e){this._internalUpdateNeeded=e}},{key:"setAccessToken",value:function(e){this._accessToken=e,this.setInternalUpdateNeeded(!0)}},{key:"setResultCollector",value:function(e){this._resultCollector=e}},{key:"setLastParsedResults",value:function(e){this._lastParsedResults=e}},{key:"setLocale",value:function(e){this._locale=e,this.setInternalUpdateNeeded(!0)}},{key:"updateResults",value:function(e){var t;null===(t=this._resultCollector)||void 0===t||t.call(this,e)}},{key:"initializeUpdate",value:function(){this.setInternalUpdateNeeded(!1),this.setUpdateIsRunning(!0)}},{key:"updateCleanUp",value:function(){this.setUpdateIsRunning(!1)}},{key:"update",value:function(){var e=this;this.shouldSkipUpdate()||(this.initializeUpdate(),this.fetchPersonalizationData((new AbortController).signal).then((function(t){e.updateResults(t)})).catch((function(e){console.log("error fetching from floodgate",e)})).finally((function(){return e.updateCleanUp()})))}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},24720:(e,t,r)=>{"use strict";r.d(t,{F:()=>N});var n=r(97351),o=r(49774),i=r(54778),a=r(23788),s={url:"prod"===a.jf.environment?"https://p13n.adobe.io/psdk/v2/content":"https://p13n-stage.adobe.io/psdk/v2/content",apiKey:a.jf.clientId};function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=p(e[n],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,s,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){var r=t?{"If-None-Match":t}:{};return p(p({"X-Api-Key":s.apiKey},""!==e?{Authorization:"Bearer ".concat(e)}:{}),r)}function v(e,t,r,n,o){return y.apply(this,arguments)}function y(){var e;return e=c().mark((function e(t,r,n,o,a){var u,l,f,p,d;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u=s.url,l=h(t),f=(0,i.Q2)(u,{surfaceId:o,productLanguage:r,clioPreferredLocale:r}),e.next=7,fetch(f,{method:"GET",headers:l,signal:n});case 7:if((p=e.sent).ok){e.next=10;break}throw new Error("Error fetching content! HTTP status code: ".concat(p.status));case 10:return e.next=12,p.json();case 12:return d=e.sent,e.abrupt("return",{data:d,expirationTimeStamp:new Date(d.expirationDTS)});case 16:return e.prev=16,e.t0=e.catch(0),console.error("An error occurred while fetching Sophia content:",e.t0),e.abrupt("return",void 0);case 20:case"end":return e.stop()}}),e,null,[[0,16]])})),y=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,s,"next",e)}function s(e){l(i,n,o,a,s,"throw",e)}a(void 0)}))},y.apply(this,arguments)}var m=r(55181);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e){var t={};m.cY.forEach((function(e){t[e]=null}));for(var r=function(){var e,r,i=(e=o[n],r=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,r)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];if(m.cY.includes(a)){var c=s.containers.map((function(e){return"application/json"===e.dataType?function(e,t){try{var r=function(e,t){return m.PX.includes(e)?function(e){var t,r,n=null!==(t=null===(r=e.data.fireflyToastBannerByPath)||void 0===r?void 0:r.item)&&void 0!==t?t:{},o=n.name,i=n.toastBannerPlacement,a=n.bannerItem;return o&&i&&a?{name:o,placement:i,bannerItems:a.map((function(e){var t,r,n,o,i,a,s,c,u,l,f,p,d=function(e){var t=[],r=[];return e.forEach((function(e){["primary","secondary"].includes(e.type)?t.push(e):"hyperlink"===e.type&&r.push(e)})),{buttons:t,hyperLinks:r}}([{label:null!==(i=(o=e.cta).label)&&void 0!==i?i:"",type:null!==(a=o.type)&&void 0!==a?a:"",url:null!==(s=null===(c=o.actionUrl)||void 0===c?void 0:c.url)&&void 0!==s?s:"",isPaywall:null!==(u=null===(l=o.actionUrl)||void 0===l?void 0:l.isPaywall)&&void 0!==u&&u,paywallReasonCode:null!==(f=null===(p=o.actionUrl)||void 0===p?void 0:p.paywallReasonCode)&&void 0!==f?f:void 0}]),h=d.buttons,v=d.hyperLinks;return{name:null!==(t=e.name)&&void 0!==t?t:"",backgroundColor:null!==(r=e.backgroundColor)&&void 0!==r?r:"",description:null!==(n=e.description)&&void 0!==n?n:"",imageList:e.imageList,buttons:h,hyperLinks:v}}))}:null}(t):t}(t,JSON.parse(e.data));return w(w({},e),{},{data:r})}catch(t){return console.error("Failed to parse JSON data for container: ".concat(e.containerId)),w(w({},e),{},{data:null})}}(e,a):e}));t[a]={containers:c,surfaceAnalyticsData:s.surfaceAnalyticsData}}},n=0,o=Object.entries(e.surfaces);n<o.length;n++)r();return t}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function k(){k=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==O(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function C(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j(n.key),n)}}function I(){return I="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=T(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},I.apply(this,arguments)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function R(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=function(e,t){if("object"!==O(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===O(t)?t:String(t)}var N=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(u,e);var t,r,o,i,a,s,c=(a=u,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(a);if(s){var r=T(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}(this,e)});function u(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return R(A(e=c.call.apply(c,[this].concat(o))),"_surfaceIds",function(e){if(Array.isArray(e))return x(e)}(t=m.cY)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),R(A(e),"_expirationTimer",n.EB+Date.now()),R(A(e),"_useAnonymousId",!1),e}return t=u,r=[{key:"needToUpdate",value:function(){return I(T(u.prototype),"needToUpdate",this).call(this)||Date.now()>=this._expirationTimer}},{key:"setExpirationTimer",value:function(e){this._expirationTimer=e}},{key:"setUseAnonymousId",value:function(e){this._useAnonymousId=e}},{key:"update",value:function(){I(T(u.prototype),"update",this).call(this)}},{key:"fetchPersonalizationData",value:(o=k().mark((function e(t){var r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(this._accessToken,this._locale,t,this._surfaceIds,this._useAnonymousId);case 2:return null!=(r=e.sent)&&r.data&&(this.setLastParsedResults(S(r.data)),this.setExpirationTimer(r.expirationTimeStamp.getTime())),e.abrupt("return",this._lastParsedResults);case 5:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=o.apply(e,t);function a(e){C(i,r,n,a,s,"next",e)}function s(e){C(i,r,n,a,s,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})}],r&&L(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.y))},55181:(e,t,r)=>{"use strict";r.d(t,{PX:()=>n,cY:()=>o,kl:()=>i});var n=["Test_Firefly_Banner_Growth"],o=[].concat(n),i=function(e){return e.BOTTOM="bottom",e.TOP="top",e}({})},97351:(e,t,r)=>{"use strict";r.d(t,{EB:()=>o,i:()=>i,sh:()=>n});var n=1e3,o=60*n,i=10*n},78718:(e,t,r)=>{"use strict";r.d(t,{R$:()=>_,E$:()=>w,Fd:()=>S,K9:()=>O});var n=r(66023),o=r(41020),i=r(17578),a=r(75514),s=r(60492),c=(r(23788).jf.environment,r(63143)),u=r(97717);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=p(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function d(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}function v(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,s,"next",e)}function s(e){v(i,n,o,a,s,"throw",e)}a(void 0)}))}}var m="anonymous_user_id",g=(0,i.vC)()?"@adobe.com":"@c62f24cc5b5b7e0e0a494004",b=function(e){return e.uninitialized="uninitialized",e.anonymous="anonymous",e.authenticated="authenticated",e.expired="expired",e}({}),_=function(e){return e.TYPE1="type1",e.TYPE2="type2",e.TYPE3="type3",e.TYPE2E="type2e",e.UNKNOWN="unknown",e}({}),w=function(){function e(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._imsServiceOptions=t,this.allowLoggedOutUser=o,d(this,"_adobeIMS",void 0),d(this,"_imsDeferred",void 0),d(this,"_userState",b.uninitialized),d(this,"_profilePromise",void 0),d(this,"_validateTokenPromise",void 0),d(this,"_refreshTokenPromise",void 0),d(this,"_currentToken",void 0),d(this,"_tokenListeners",new Set),d(this,"_profileListeners",new Set),d(this,"_profile",void 0),d(this,"_onSignInCallback",void 0),d(this,"_onAccessToken",(function(e){var t,n;r._userState=b.authenticated,e.token!==r._currentToken&&(r._currentToken=e.token,r._tokenListeners.forEach((function(t){return t(e.token)})),r._profilePromise=void 0,r.getProfile().catch((function(e){console.error("Error getting profile",e)}))),!0!==(null===(t=r._imsDeferred)||void 0===t?void 0:t.isSettled)&&(null===(n=r._imsDeferred)||void 0===n||n.resolve())})),d(this,"_onReady",y(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.isSignedInUser()){e.next=3;break}return e.next=3,r._onAccessTokenHasExpired();case 3:if(r.allowLoggedOutUser){e.next=6;break}return e.next=6,r.ensureSignedInUser();case 6:case"end":return e.stop()}}),e)})))),d(this,"_onAccessTokenHasExpired",y(f().mark((function e(){var t,n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._userState===b.uninitialized||r._userState===b.authenticated){e.next=2;break}return e.abrupt("return");case 2:if(r._userState=r._userState===b.uninitialized?b.anonymous:b.expired,r._userState===b.anonymous&&r.allowLoggedOutUser&&r._makeAnonymousProfile(),r._userState!==b.expired&&r.allowLoggedOutUser){e.next=11;break}return e.next=7,r.validateAndRefreshToken();case 7:if(e.sent){e.next=11;break}return e.next=11,r._signIn("access token expired");case 11:!0!==(null===(t=r._imsDeferred)||void 0===t?void 0:t.isSettled)&&(null===(n=r._imsDeferred)||void 0===n||n.resolve());case 12:case"end":return e.stop()}}),e)})))),d(this,"_onError",(function(e,t){var n;throw null===(n=r._imsDeferred)||void 0===n||n.reject(t),new c.I4("GENERIC",e,new Error(t))})),d(this,"_generateAnonymousUserId",(function(){return"".concat((0,s.HP)(),"@anonymous")})),d(this,"_persistAnonymousProfile",(function(e,t){window.sessionStorage.setItem(m,JSON.stringify({userId:e,name:t}))})),d(this,"_retrieveAnonymousProfile",(function(){try{var e;return JSON.parse(null!==(e=window.sessionStorage.getItem(m))&&void 0!==e?e:"")}catch(e){console.warn("Could not parse anonymous user profile",e)}})),d(this,"_makeAnonymousProfile",(function(){var e=r._retrieveAnonymousProfile(),t=null!=e?e:{userId:r._generateAnonymousUserId(),name:"Guest"},n=t.userId,o=t.name;e||r._persistAnonymousProfile(n,o),r._profilePromise=Promise.resolve({account_type:"anonymous",countryCode:"UD",displayName:o,email:"",emailVerified:"false",first_name:o,last_name:"",mrktPerm:"",mrktPermEmail:"false",name:o,phoneNumber:"",preferred_languages:null,userId:n,utcOffset:"",isPaid:!1,avatarUrl:""})})),window.adobeid=this.adobeIdData,this._adobeIMS=new n.AdobeIMS(this.adobeIdData)}var t,r,o,i,l,h,v,g,_,w,S,O;return t=e,r=[{key:"setOnSignInCallback",value:function(e){this._onSignInCallback=e}},{key:"adobeIMS",get:function(){return this._adobeIMS}},{key:"adobeIdData",get:function(){return{client_id:this._imsServiceOptions.clientId,redirect_uri:window.location.href,environment:this._imsServiceOptions.environment,scope:this._imsServiceOptions.scope,useLocalStorage:!1,autoValidateToken:!0,locale:this._imsServiceOptions.locale,onReady:this._onReady,onError:this._onError,onAccessToken:this._onAccessToken.bind(this),onAccessTokenHasExpired:this._onAccessTokenHasExpired.bind(this)}}},{key:"isLoaded",get:function(){var e;return!0===(null===(e=this._imsDeferred)||void 0===e?void 0:e.isSettled)}},{key:"load",value:(O=y(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._imsDeferred){e.next=4;break}return this._imsDeferred=new u.B,e.next=4,this.adobeIMS.initialize();case 4:return e.abrupt("return",this._imsDeferred.promise);case 5:case"end":return e.stop()}}),e,this)}))),function(){return O.apply(this,arguments)})},{key:"isSignedInUser",value:function(){return this.adobeIMS.isSignedInUser()}},{key:"getProfile",value:(S=y(f().mark((function e(){var t=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.allowLoggedOutUser){e.next=5;break}return e.next=3,this.ensureSignedInUser();case 3:e.next=7;break;case 5:return e.next=7,this.load();case 7:if(!this._profilePromise){e.next=9;break}return e.abrupt("return",this._profilePromise);case 9:return this._profilePromise=this.adobeIMS.getProfile().then((function(e){var r;return t._profile=e,t._profileListeners.forEach((function(t){return t(e)})),null===(r=t._onSignInCallback)||void 0===r||r.call(t),t._onSignInCallback=void 0,e})),e.abrupt("return",this._profilePromise);case 11:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"profile",get:function(){if(!this.isLoaded)throw new c.c6("INVALID_OPERATION","Cannot access profile before clio is loaded");return this._profile}},{key:"getAccessTokenValue",value:(w=y(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isLoaded){e.next=3;break}return e.next=3,this.load();case 3:return e.abrupt("return",null===(t=this.adobeIMS.getAccessToken())||void 0===t?void 0:t.token);case 4:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"accessToken",get:function(){var e;if(!this.isLoaded)throw new c.c6("INVALID_OPERATION","Cannot access token before clio is loaded");return null===(e=this.adobeIMS.getAccessToken())||void 0===e?void 0:e.token}},{key:"addTokenListener",value:function(e){this._tokenListeners.add(e)}},{key:"removeTokenListener",value:function(e){this._tokenListeners.delete(e)}},{key:"addProfileListener",value:function(e){this._profileListeners.add(e)}},{key:"removeProfileListener",value:function(e){this._profileListeners.delete(e)}},{key:"updateAnonymousProfile",value:function(e){var t,r=this._retrieveAnonymousProfile();this._persistAnonymousProfile(null!==(t=null==r?void 0:r.userId)&&void 0!==t?t:this._generateAnonymousUserId(),e),this._makeAnonymousProfile(),this._profile={},this._profileListeners.forEach((function(e){return e({})}))}},{key:"ensureSignedInUser",value:(_=y(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isLoaded){e.next=3;break}return e.next=3,this.load();case 3:if(!this.allowLoggedOutUser){e.next=5;break}return e.abrupt("return");case 5:if(this.isSignedInUser()){e.next=12;break}return e.next=8,this.validateAndRefreshToken();case 8:if(e.sent){e.next=12;break}return e.next=12,this._signIn("user not signed in");case 12:case"end":return e.stop()}}),e,this)}))),function(){return _.apply(this,arguments)})},{key:"config",get:function(){return this._imsServiceOptions}},{key:"_signIn",value:(g=y(f().mark((function e(t,r){var n=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.debug("Will redirect to IMS login. Reason: ".concat(t)),e.abrupt("return",new Promise((function(){n.adobeIMS.signIn(r)})));case 2:case"end":return e.stop()}}),e)}))),function(e,t){return g.apply(this,arguments)})},{key:"signOut",value:function(e){var t=void 0;e&&(t={redirect_uri:window.location.origin+e}),this.adobeIMS.signOut(t),localStorage.removeItem(a._8)}},{key:"signIn",value:(v=y(f().mark((function e(t){var r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.validateAndRefreshToken();case 2:if(!e.sent){e.next=5;break}return e.abrupt("return");case 5:return r=new URL(window.location.href),t||(t="en_US"),e.next=9,this._signIn("Manual trigger",{redirect_uri:r.href,locale:t});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"signInExternal",value:(h=y(f().mark((function e(t,r,o){var i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.debug("Will redirect externally to IMS login."),i=new n.AdobeIMS({client_id:t,redirect_uri:r,environment:this._imsServiceOptions.environment,scope:o}),e.abrupt("return",new Promise((function(){i.signIn()})));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return h.apply(this,arguments)})},{key:"validateAndRefreshToken",value:(l=y(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.validateToken();case 2:if(!e.sent){e.next=7;break}return e.abrupt("return",!0);case 7:return e.prev=7,e.next=10,this.refreshToken();case 10:return window.location.reload(),e.abrupt("return",!0);case 14:return e.prev=14,e.t0=e.catch(7),t=E(e.t0),console.error('validateAndRefreshToken failed with error "'.concat(t,'"')),e.abrupt("return",!1);case 19:case"end":return e.stop()}}),e,this,[[7,14]])}))),function(){return l.apply(this,arguments)})},{key:"validateToken",value:(i=y(f().mark((function e(){var t=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._validateTokenPromise){e.next=2;break}return e.abrupt("return",this._validateTokenPromise);case 2:return this._validateTokenPromise=new Promise(function(){var e=y(f().mark((function e(r){var n,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.adobeIMS.validateToken();case 3:n=e.sent,r(n),e.next=12;break;case 7:e.prev=7,e.t0=e.catch(0),o=E(e.t0),console.warn('validateToken failed with error "'.concat(o,'"')),r(!1);case 12:return e.prev=12,t._validateTokenPromise=void 0,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,7,12,15]])})));return function(t){return e.apply(this,arguments)}}()),e.abrupt("return",this._validateTokenPromise);case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"refreshToken",value:(o=y(f().mark((function e(){var t=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._refreshTokenPromise){e.next=2;break}return e.abrupt("return",this._refreshTokenPromise);case 2:return this._refreshTokenPromise=new Promise(function(){var e=y(f().mark((function e(r,n){var o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.adobeIMS.refreshToken();case 3:r("noError"),e.next=11;break;case 6:e.prev=6,e.t0=e.catch(0),o=E(e.t0),console.error('refreshToken failed with error "'.concat(o,'"')),n(String(o));case 11:t._refreshTokenPromise=void 0;case 12:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,r){return e.apply(this,arguments)}}()),e.abrupt("return",this._refreshTokenPromise);case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})}],r&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function E(e){return String(e instanceof o.HttpErrorResponse)}function S(e){return e===_.TYPE2||e===_.TYPE2E||e===_.TYPE3}function O(e){return null==e?void 0:e.endsWith(g)}},47788:(e,t,r)=>{"use strict";r.d(t,{TV:()=>T,iR:()=>z,db:()=>D,i8:()=>A});var n=r(78718),o=r(96550),i=r(49873),a=r(34637),s=r(72236),c=r(89347),u=r(11648);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=p(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function p(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,s,"next",e)}function s(e){p(i,n,o,a,s,"throw",e)}a(void 0)}))}}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function v(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}var m=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"_queue",[]),v(this,"_timerId",null),v(this,"_initRetryTimerId",null),v(this,"_isInitialized",!1),v(this,"_accessToken",null),v(this,"_isSignedIn",!1),v(this,"_isDevMode",!1)}var t,r,n,o,i;return t=e,r=[{key:"init",value:function(e,t){this._isInitialized||(this._accessToken=e,this._isSignedIn=t,this._isInitialized=!0)}},{key:"_trySendQueue",value:(i=d(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.length){e.next=2;break}return e.abrupt("return");case 2:return t=this._queue,this._queue=[],e.prev=4,e.next=7,this._postToIngest(t);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),console.error("err sending analytics");case 12:case"end":return e.stop()}}),e,this,[[4,9]])}))),function(){return i.apply(this,arguments)})},{key:"sendToIngest",value:(o=d(f().mark((function e(t,r){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==r||!r.useGeneratedContentCredentials||!r.useUserInputUploadCredentials){e.next=3;break}throw console.error("err in ingest request, both special upload credentials set to true"),new Error("err in ingest request, both special upload credentials set to true");case 3:if(!(null!=r&&r.useGeneratedContentCredentials||null!=r&&r.useUserInputUploadCredentials||null!=r&&r.fireImmediately)||!this._isInitialized){e.next=7;break}return e.next=6,this._postToIngest([t],{useGeneratedContentCredentials:Boolean(r.useGeneratedContentCredentials),useUserInputUploadCredentials:Boolean(r.useUserInputUploadCredentials)});case 6:return e.abrupt("return",t);case 7:return this._addToQueue(t),this._startQueueTimer(t),e.abrupt("return",t);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"_startQueueTimer",value:function(e){var t=this;return this._isInitialized?this._queue.length>10?(null!==this._timerId&&clearTimeout(this._timerId),this._trySendQueue().catch((function(e){return console.error("error sending analytics")})),e):(null!==this._timerId&&clearTimeout(this._timerId),this._timerId=setTimeout((function(){d(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t._timerId=null,e.next=3,t._trySendQueue();case 3:case"end":return e.stop()}}),e)})))().catch((function(e){console.error("err sending analytics")}))}),1e3),e):(this._initRetryTimerId||(this._initRetryTimerId=setTimeout((function(){t._initRetryTimerId=null,t._startQueueTimer(e)}),5e3)),e)}},{key:"_addToQueue",value:function(e){this._queue.push(e)}},{key:"_postToIngest",value:(n=d(f().mark((function e(t,r){var n,o,i,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={projectKey:c.i.projectKey,apiKey:c.i.apiKey},null!=r&&r.useGeneratedContentCredentials&&(n=c.i.generatedContent),null!=r&&r.useUserInputUploadCredentials&&(n=c.i.userInputContent),o=new Headers({"Content-Type":"application/json","x-api-key":n.apiKey}),this._isSignedIn&&this._accessToken&&o.append("Authorization","Bearer ".concat(this._accessToken)),i={events:t.map((function(e){return{project:n.projectKey,environment:c.i.env,time:(new Date).toISOString(),ingesttype:"dunamis",data:e}}))},this._isDevMode&&this._logIngestBody(i),e.prev=7,a=JSON.stringify(i),e.next=11,(0,u.q)(c.i.url,{method:"POST",headers:o,body:a});case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),console.warn("ingest failed to post.");case 16:case"end":return e.stop()}}),e,this,[[7,13]])}))),function(e,t){return n.apply(this,arguments)})},{key:"_logIngestBody",value:function(e){console.log(JSON.stringify(e,null,2))}}],r&&h(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(){b=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==t&&r.call(m,i)&&(v=m);var _=h.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==g(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(_,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function _(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function E(){E=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==w(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function S(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){S(i,n,o,a,s,"next",e)}function s(e){S(i,n,o,a,s,"throw",e)}a(void 0)}))}}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I(n.key),n)}}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return(t=I(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){var t=function(e,t){if("object"!==w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===w(t)?t:String(t)}var P,A="1.0.8",T="GenAI Playground",R=new i.G,j="mcid_guid";function N(e,t,r,n){var o=0;return o+=e?1:0,o+=t?2:0,(o+=r?4:0)+(n?8:0)}function D(){var e=localStorage.getItem(j);return e||(e=(0,s.Z)(),localStorage.setItem(j,e),localStorage.getItem(j))}var U={"event.category":"WEB","event.workflow":"Playground","event.user_agent":navigator.userAgent,"event.offline":!1},M={"source.client_id":"clio-playground-web","source.name":"GenAI Playground","source.version":A,"source.platform":"WEB"},F={"env.com.name":T},H=x(x(x(x(x(x(x({},U),M),{"user.service_code":"creativecloud"}),F),{"context.init":!1}),{}),{"ui.view_type":""}),z=function(){function e(){var t,r,n,o,i,a,s,c,u,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),L(this,"_isConfigured",!1),L(this,"_isPrivacyEnforced",!1),L(this,"_sessionGUID",""),L(this,"_userProfile",null),L(this,"_campaignVariationValues",{}),L(this,"_isFree",void 0),L(this,"_isPremium",void 0),L(this,"_isK12",void 0),L(this,"_isIndemnified",void 0),L(this,"_userStatusInteger",void 0),L(this,"_imsInfo",{scope:""}),L(this,"_envServiceVersion",""),L(this,"_eventAcookie",void 0),this.fireEvent=(t=this.fireEvent.bind(this),r=this._checkLock.bind(this),n=function(){},o=function(){},i=500,a=!1,c=null,u=!1,l=function(){var e,f=(e=b().mark((function e(){var f,p,d,h,v=this,y=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(f=y.length,p=new Array(f),d=0;d<f;d++)p[d]=y[d];if(!r()){e.next=5;break}return!u&&s&&(u=!0,s()),a&&c&&(clearTimeout(c),c=null),e.abrupt("return",new Promise((function(e){var t;t=setTimeout((function(){l.apply(v,p).then((function(t){return e(t)}))}),i),c=t})));case 5:return c=null,e.prev=6,n(),e.next=10,t.apply(this,p);case 10:return h=e.sent,e.abrupt("return",h);case 12:return e.prev=12,c&&o(c),c=null,u=!1,e.finish(12);case 17:case"end":return e.stop()}}),e,this,[[6,,12,17]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){_(i,n,o,a,s,"next",e)}function s(e){_(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return f.apply(this,arguments)}}(),l)}var t,r,i,u;return t=e,r=[{key:"_checkLock",value:function(){return!this._isConfigured}},{key:"setPrivacyEnforced",value:function(e){this._isPrivacyEnforced=e,this._ensurePrivacyEnforced()}},{key:"_ensurePrivacyEnforced",value:function(){this._isPrivacyEnforced&&localStorage.removeItem(j)}},{key:"isConfigured",get:function(){return this._isConfigured}},{key:"_getComputedUserValues",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o={"user.service_level":null!==(e=null===(t=this._userProfile)||void 0===t?void 0:t.account_type)&&void 0!==e?e:""};return o["event.mcid_guid"]=this._getComputedMCIDGUID(),null!==(r=this._userProfile)&&void 0!==r&&r.userId&&(o["event.user_guid"]=n?"NonConsentAdobeID":this._userProfile.userId),o}},{key:"_getComputedMCIDGUID",value:function(){return this._isPrivacyEnforced?"":D()}},{key:"_getComputedContextValues",value:function(){return{"context.init":!1}}},{key:"_getComputedContentValues",value:function(){return{"content.name":"","content.category":"","content.type":""}}},{key:"_getComputedIMSValues",value:function(){return{"user.service_code":this._imsInfo.scope}}},{key:"_getComputedEnvValues",value:function(){return{"env.svc.name":this._envServiceVersion}}},{key:"_getComputedABTestValues",value:function(){return this._campaignVariationValues?{"exp.campaign_id":this._campaignVariationValues.campaignId,"exp.variation_id":this._campaignVariationValues.variationId}:{}}},{key:"_getComputedModelValues",value:function(){return{"model.metadata":JSON.stringify({clientVersion:"2d808117c",serviceVersion:this.getEnvServiceInformation()})}}},{key:"_ensureAndComputeCookieValue",value:function(){var e;return this._isPrivacyEnforced?this._eventAcookie=void 0:this._eventAcookie||(this._eventAcookie=R.read(c.i.cookieName,!0)),{"event.acookie":null!==(e=this._eventAcookie)&&void 0!==e?e:""}}},{key:"makeFinalPayload",value:function(e,t){var r,n,i,a=this._isPrivacyEnforced&&(null==t?void 0:t.anonymizeIfPrivacyEnforced)||e["content.name"]===o.I3.Feedback;return x(x(x(x(x(x(x(x(x(x(x(x({},H),this._getComputedModelValues()),(r=this.sessionGUID,{"event.referrer":document.referrer,"event.url":(n=location.href,i=new URL(n),i.hash.includes("access_token")?"".concat(i.origin).concat(i.pathname).concat(i.search):n),"event.coll_dts":(new Date).toString(),"event.dts_start":(new Date).toString(),"event.dts_end":(new Date).toString(),"event.guid":(0,s.Z)(),"event.session_guid":r,"event.language":P})),this._ensureAndComputeCookieValue()),this._getComputedUserValues(a)),this._getComputedContextValues()),this._getComputedContentValues()),this._getComputedIMSValues()),this._getComputedEnvValues()),this._getComputedABTestValues()),{"custom.user_status":this._userStatusInteger}),e)}},{key:"shouldSend",value:function(e){return!(!this._isConfigured||this._isPrivacyEnforced&&(null==e||!e.anonymizeIfPrivacyEnforced))}},{key:"fireEvent",value:(u=O(E().mark((function e(t,r){var n;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.shouldSend(r)){e.next=2;break}return e.abrupt("return",null);case 2:return n=null,e.prev=3,e.next=6,m.sendToIngest(t,{fireImmediately:null==r?void 0:r.fireImmediately,useGeneratedContentCredentials:null==r?void 0:r.useGeneratedContentCredentials,useUserInputUploadCredentials:null==r?void 0:r.useUserInputUploadCredentials});case 6:n=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.debug("sendToIngest Failed. Payload was:",JSON.stringify(t,null,2));case 12:return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(e,t){return u.apply(this,arguments)})},{key:"updateSessionGUID",value:function(){this._sessionGUID=(0,s.Z)()}},{key:"updateEnvServiceInformation",value:function(e){this._envServiceVersion=e}},{key:"getEnvServiceInformation",value:function(){return this._envServiceVersion}},{key:"getIsEnterpriseUser",value:function(){var e;return!!this._userProfile&&(0,n.Fd)(null===(e=this._userProfile)||void 0===e?void 0:e.account_type)}},{key:"sessionGUID",get:function(){return this._sessionGUID}},{key:"configure",value:(i=O(E().mark((function e(t){var r,n,o,i,s,c,u,l;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.Q5)();case 2:P=e.sent,this._isConfigured=!1,r=t.userProfile,n=t.accessToken,o=t.isSignedIn,i=t.isFree,s=t.isPremium,c=t.isK12,u=t.isIndemnified,l=t.campaignVariationValues;try{this.updateSessionGUID(),this._userProfile=r,this._campaignVariationValues=l,this._isFree=i,this._isPremium=s,this._isK12=c,this._isIndemnified=u,this._userStatusInteger=N(Boolean(this._isFree),Boolean(this._isPremium),Boolean(this._isK12),Boolean(this._isIndemnified)),m.init(n,o)}finally{this._isConfigured=!0}case 6:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],r&&k(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},52406:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>o,Ee:()=>i,GB:()=>a,Hu:()=>u,Q4:()=>n,dX:()=>c,f_:()=>s});var n=function(e){return e.positive="positive",e.negative="negative",e.report="report",e.inspiration="inspiration",e}({}),o=function(e){return e.select="select",e.report="report",e.skip="skip",e}({}),i=function(e){return e.landingPage="Landing Page",e.whatsNew="What's New",e.beakerMenu="Beaker Menu",e.home="Home",e}({}),a=function(e){return e.structureReference="structure-reference",e.outpaintingCard="outpainting-card",e}({}),s=function(e){return e.positive="positive",e.negative="negative",e.report="report",e.inspiration="inspiration",e}({}),c=function(e){return e.Normal="Normal",e["1Up"]="1Up",e.Carousel="Carousel",e.Favorite="Favorite",e.Share="Share",e.PromptSuggestion="PromptSuggestion",e.Home="Home",e.Header="header",e.CommunityView="CommunityView",e.DragDrop="drag-drop",e.FileBrowser="file-browser",e.Modal="modal",e.Toast="toast",e.ImageCaption="ImageCaption",e}({}),u=function(e){return e.feedback="feedback",e.report="report",e}({})},25550:(e,t,r)=>{"use strict";r.d(t,{em:()=>j,Pt:()=>J,MM:()=>y,J0:()=>U,TX:()=>Z,NA:()=>V,zX:()=>z,aX:()=>v,X4:()=>h,I8:()=>H,bu:()=>Q,Ii:()=>X,Zb:()=>$,Tk:()=>M,MW:()=>F});for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<n.length;i++)o[n.charCodeAt(i)]=i;var a=function(e){var t,r,n,i,a,s=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),f=new Uint8Array(l);for(t=0;t<c;t+=4)r=o[e.charCodeAt(t)],n=o[e.charCodeAt(t+1)],i=o[e.charCodeAt(t+2)],a=o[e.charCodeAt(t+3)],f[u++]=r<<2|n>>4,f[u++]=(15&n)<<4|i>>2,f[u++]=(3&i)<<6|63&a;return l},s=r(98027),c=r.n(s),u=r(20086),l=r(31173),f=r(17578),p=r(63143),d=r(34637),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e5;return Math.floor(Math.random()*(t-e+1))+e};function v(e){for(var t=h();t===e;)t=h();return t}var y="vIC8GES5HJ9iMMUvmRFPeLVBzHcJM4Jc3nYQrrVZPk1/fi0sBAP8qAxIBmQzNYtNCmew0XjSreyAwP0HFpZEbbevxOSvIuD/sHZcLcVenRLi5qwjEVa2878qKM0dwE//8oK1uzppEOIC6N8nRiL7gKp1zn1mCci5QVjTaYu2a0xAOpPFWNnMrv/CbnblkUTvtWKqWsSo91bLokFyKBzCjR+BN/tJme6jBjxELh1PhhvaW8hol6SDrx1QbX227fkA46y6lDjybl4235FbQzCOD0e2cW/f6nl5o0TRTuEfIPLICLtreBjxWgaTzWNXpm1UvHgH6wJHDgOIk19hl271Ez31H15/vsvy3vMwIjDSfo72tA6XLQaoUV/fwLpvRsGF6TlsDRyZWQZmjeuFYMJAskYLazeD4kVwG7GMbEHOfZxSAqmViM8WF6NOSMwSaaOYFl1MQP2e1owC8lYBFP/DM3kq3ieVtt44wVWfGGoYWJtF2Fw3hzh08uXt7Y/LLho3KiY1nkSnZC0ATglbItLk2NMHj5v0PQqNA04IG3fGNZyO7NC1Aaeu2lTDj94UC9tfXNkht+vvd6DqMKLfEdXewuzo8czZf27XSduPkKETaNAMK4XBpup+UwMxloQEX9QHhMLIRYD5d1Q988si7kwRtqYr06bOCD+jhr19ekiz55Q8DBA3d43fIFquipcSPPTNU6dwrk4usU2QR/m2yYslmQCF79VlE/CA5NRPlFfZCEkdYiZxbrr4Q11CQZT/qS4eY+mqky+9GSTLGGTaPmT22do3CJ4agnD0KIap1Qyc5Vkpi6zpiVfx436GcyTBTqRVRkVN6/Yp6YXkf9cO/HKSjuaWRvDEGy/tA227PohLOp6RGcS0VkBr/0RTWGpOHDR4NaPjZQF3JU4nPRfteYYBuEFh2DkZGWnUNG7kLmkjivYrt3XzorWYAx/EdbcNOFTfXhVlp8B46djxAsIEczY2BVBznLmkLu2+msypS+Z2/YnVmfJOlSLvGX51XfPNdcG3q44inooh2PG7DPe/RzdKLDkkas7lrOWDzjSc7UCgFzjGan/6B4LaPjuPD871tzwggessiCkuIm8iLejSVT4jMdTMCA+TmIIslxBnVJdl7wBgz1sxzvX+3lQPDPTaclaJR3DARZEabj0AY7UdKLdOjcl4ZiHhGBVTZbCgMaw3fv/s8Hbleuu/LQI+23Uk0TJgMqD1XF4taF766Sk0oluh8JjAuHhp3HdEJA6fo7KCGhaB+8iXcD6+Ov1wD5Wq2M48Ri/xeYw0bXQhqr1t8WoZj/zP3JixGEV9402WOPH6V3OomWYxhhNCxug0hONuf181EABC5fSZMVF59SkvLPBsiZjJjHyUy3ZlwlWlz1G0XdZSIXE9rEpqdC7m8cQ3pNE4ECLXk/kH25CJzGbPN1PkI+SyvjiFeOoj9kCAN+uQa90PFyXjzvLjxgP6S/YC9iGyWd8cUyLMRiHU9M5msIm1od7B16QzE2vxFllmtaLH8JhTfzt3xhfEcGYi4iF0ILkbuyPbHoxh4Tzxk8mp7UU4/TOGH0LP6mwn/6pLgE9z+4f+Kzn2FoiBSgGu+D4UeRb7j0g9MV2pDZYbBggEcGSNiNI6Ps+CyXQbXHJiwCNCWrCY9fbRF19GxAL5h1ovudr7fynHMI+iUjszalt+Dq9QSn/a4q+d94PidW5ZGWJ5wsGfs0gLXKkpQgPx3kaM2b00wALkmQ59OUr+JIX1GFVXJ4rOTQZa5C90EZa1McYeRC385ebjHA7xkrfXQ01fPFY+Ex1p5jKN4GMTkOGfJWCGCTCk6ocXILGrpTP+z3F4c2teaf9BwREIqinX0e0VmhgcTJb70GMU+1THAsGne5Z9un7ixvJhvMRrEcCTVQMq+01Z4/v1RYRGQ8K9u3Qha3PRsofsVZqJ6ETV7waSLYDyOdOFbztEgk9pakd4eWbw3w4DU6xNvcWlsg7P3ckYTlfdRs8iyMcryYtXACtfo2bOpN2hXwdqGE7yncENLB4IW7J6zujkqnsfCW8/lY+qaoak0Cv1oN9k0wH7HhdewdDr2JyX0HlsQIgSfcFRfF+LljK3AlhNgYRHtJ9WN04zDuJJw7VVd/57bolz81aOjlhZFRACfwjQOYeQyzkHzroVXlvJPfvKi0d8Z2KVS0eb19tcRxWMYCDKdUriR9f3EV2nnp0RB6jWW9HDFra6dkCM9WP9Swkj6BOWPgYHDfkOJTZb4Rm9/a0XIhXTOh2ezlhWPFcXqeIyc18sOnnIkH4FEJxeuj3ccpNTn+LPssbtwtt2E0/VxJ5xeEKlytZYnvilPFrMJT/cGamlF7eFoVaxocDwAYGLhRN6nKzZ67iH4W/2CEMPYR6aaHzc+83tTku9JoUY+bHD4NlvlLlgY9GYyu1zY9kc0iCIIEAC/i7bMi5rdNYEB8RYCzxF4uLrjK1dQT782s/Bpc6kDk4B2S3KEuV5l3ccY1TyV0Y8n/XYn3hnELnY+9kvShDOCwwJFKUFLH7/gFd9xYcWPpxGrxTaDLAQUrjv8dzhW7GIlrmM2Q4HB+TxGGLFp7Uj5tBbgOC2ec/3LLHpZI88unTudi3veMnW+pQbCBZkGDM8Gsq16Mb/K4/trXx/u4FtFEPHkJ4q9PHtV6Z013T9yv5Mr1ANY3uLp3qTZiji39TOcjlrDscWfaZC2JT+mPKgFQKRpuJh18lfRdDzX90pecQ3cshROs6kZoc38fSrJJUw98/NMcKU1DkiQSwecUbIUcwy8/5fLEwKMZMEliENdP4VYESK9wf7C0R6aX0fbbMjZJU/qOTgjFjPaWC1MTf+JZzS9JUgGe/OBCo4GZmd+RDJszwW79V6kTtDnduxffRaDmk3ANaoR3I3xNQ/CI+XXGndMUGywviM5XT0GqlXzvPTjsetukolZgt4snAxKubqWuoD8pgpEf5b389OvR8s1L/T8PwRPKcukb6ZjyGLREAmfAauLMIyOjdQPa7n1NEWI3JdbSnWMgxL9aKhcdzeC0QYcaUKHWk4qG/idwB7S6DSWFAkA2CeCl/xFPZXgEtPvlq2vKulDnKOi+BUAjQTd+dOXFXrRcQjW6o0K8ElPDentSAONkRbN91qCE/4eiDlFcs8hRWhJ3a8tZgG36amcU8ahWGvBdKKwPDGijI5pJH0Dlyp98nPvibIQDE6L3oMdAq9ObIVsvTBZHVYYa984KsAWRuTZZTam7KM/d5xLj+NwgHeEMlk1yTYLC87MSClAs3Q7+orAwVY9Rz2srU5Wn2IED+U7DQKX0zzJlaqAkDFH+NpGXARuSHcvALqRBcTIfdKI1mu/QqvQejPnuBz3YqheLXdWDCyS7k5NyNH73kN54Sk+RkG/igJy/eKa6f7TiGgiFfdZAXnOObpJzDcgPBE7t7b1oSYpncxs5MVKjJSQICv84yXiC4q0YNkH1io0ZL9W4xkU9bydq04NFe8hELS9J2LBX2U9hF9TALrgosXSLsP0Fec1bBr7z8AvgzN3hK8e6h6m6QxFiPEF4bvr1GTjtUjd6m6boqaabD5MSa1R6yxZHzuASLbOOPBZB5rWQrXkLhQ/RRG4yC6tyLQWUxj+UYfEmXN8jop0lSggduxN3/GpHP8E3T0kwrMqBXVbA7928TlfJS3FafLs4a4L1vrdIUtnFWQuSpUTUmKTrl08oSUsIMvDgNsym7RdZE29xEnY8f/9AiWc/V7IAmDX/bkmAAqJZMpvVj+AFLUr0M0KB2MSWpvOaH/HWWpLFqCZM+OyQfLI4UQBc76UCyvFbuTkkM4IJKiYOjn+HwFq9QKEAi935NUamPLWjaQpt3vKRxEmGNG8Pp5bDpa58B0O8TWSXU2pbJBa1/4yAJ1cNDODt2fExx2FEx7c57XYIfjjNkroV4dO9yWtHOGjWW9BWZbjhw5jIH6NRy1wCd/6Gmudi795hrUoFoO+5d7bQrtTzj9F/8dtC3pgMNCT7FmytbyMpneHb3yNXUstmfJAekMAny4LbRBel6OIgBtksYxThx1IQoMMHL4GgPhWDsXdFqn3OUKngYVP6+OwMNqbvx1AFFEfRZTErhpDkQ/NNiyi1zSdaxAbXNGGucoKNG7fIWJb7Kamc/DUyPovpDW1fkXwT9utYH3nLUpSpuiTp1syi8g31XHQ0N8bsfRsZsmbN1j9swmuHOKm2kgEMJzHGo0XiYirn5Dq35J/j39ynnnKJFgbWS72fIGqe89AkcXjbT9Lerd+fJaBztz3niNKI3UXo49b5FuHdYK9M7hCA+o6H7hRUec9E1ocmEJRuVuN/vYtMNRTmcd5EZNnyFOyCEpe2vtLVtsdNIRwMLybQIZwteOhK+zlpSApRkESh3j+piMc1qQ72MsNNslQ8g2VrtXhAye6CLpkL1c85l8SxnwSG9dNpEIbqIK0p5mkEPw5ld1LEyY22PIiB9XHsuPfOekI+PPpvQPh1wcULKqo+tSiPdn/ulzphOpgFR9oxxOzFr8rAJUAWOnbQtQ9VAls938CbSqtmx4rS/vCWEnqzGluXU4HxX7MHjGiz0S9pgcaLffQuyU/2Gncg0dlsxLBtPEca/PHsmYD3y9j5cDRvlQgRxthT1hwnuhCSuQhZ8ilyx7e8mOWdWNQDHFe/o1OsXGls0ry17pb/DVieutBM1zfdtrpiuOCsxvI8V/uq+GuP7PylZt/wFu/Rr42mZ2ON1JtV0TqGc5bgu9n7pBb4BQeTKUezHhZknYn6kV/1eNNm4vxNLBGHAKAj5Fw6INfs7PAdDM569EO8NlK3vO/O2qf/HplxDGip7Z0i8DVz6HtiiefhMM1DW8v3TBJhUaxvOeAvLYcO56x6SoT18gX2Mpf+q1M4eshrKejuJ6YSwikYyNKsySMW9Imnnqf/Omu2eMFW9J7ef3oeeMueN3CLMWKR+yT5cOF9OlT2eFpm4jmOgNlQhqCaeiiYK8DAyHcPWZhGnMdugBKs8esM6JSQrJk5Y1jhVqYvDUiTebcI0m0qJxH/JpOo3KEQ8IAqNMKtORB56BqknsmdiHPzXxwZaHuB3lw0ldjiudvm3IKTOodQrSsM9qzI9qdOxqyhq1jGZtO+rNV+Quj0YiRZiqwpwDKv68M9npsVpNvB7HeElcdhC1X+FXy1o+jAWjaWNfmvw8XCt0dRM/Ishc6ApOmbhkEkpZ/C5yJ79VqXX7oDI/SE6nuBbDaFw6M//eIpo04xmj1Ng/1MgbVGLIEi9ovRArXWO6CQeY62Yxj08uX+XsB50ga2eZWc7yCCk1yQGUbM1XRdFhxbT2N51Eqyldb3oMs4ySyPP1DomdIFeyJSgIqn8GiFgha1A5djkKrYBTBbCzQ5cMVyJt01MglGkWQ0xmSjZCwDjT5OUpdQ7x/1/ui6jc2Juj0Nadb3RjrXM4BeIethpL6xfpV+PRdB+7mTSz8wuSSzhNQegjIU3bbW6TGw3vWL5EsRwGxVAKV4u1SJHgnCJrvVzolhzpDpDyUTfjzhqwZcFzza78SV1ks+b9Nruae0XOYD9Yk3qjTQKHtSuGyuHPIkdySoQv+coj66kmi2crSOT+EgLmzRtUBnuLsUOlwc37Lg4fGg49KWPhQl8NAtD4UhspIzck7/iVcmcGYdlIURMlk90V8LxzFxdC8Qbp7+t2/CPWMroluqULYqQc38NuvWWgHAsyqbCaafnurb4MAsKMb+6edxsiV1yIGdWSGmvsqgoTvDYmYrQw4Yej83fC+RYNHtWtWwFwg+ktIfub+YhDKC59BDo+r0R8+1tckW1EuT7TjoYjBF2vd+pNNCCkR8Ljv2yG3FvhVUoaP2mYsE8jHJaE1s2x2z6KIkwxjdQ0NczhmfAb3398pt8Wtby24RkvIQFg7OqKAG1FpmSVsZfoj3mo8LYcxNXCtovAT9tTRGo+w/QW7Ch0OviuXnZzaPdQfMXgHLqUMvKtyCrurXmBkZpPQSrCsX+n5xXBuSe06cA696Wzee0GJ6UKJiOEgl3WQiO4QqZJ26YE809hHUu5h9R+1ptq/MnWYbpYMHNLbOqdIahZJugzMbFI8gjmPz24Nf7DqNnEypVHGWnXY6+Vu4XhVTi8ptF2hpWL4n+U3zPgUB8S28tAUj2Z/6PiEYq4xXLjsVSPpBtMp4sy54GJo4Gfc3jzyad/DGg5ooS5rLzqszJ2WkH3tx2Ph5rasV8HWCfrQMY+DF9I4835go1gwEaEtb34ZhVegOJZmu+qlbqMCuoGt4PO9y0Go1mAYtszqkUWxbBXt1bDUpbkjJNTbb/sR91Snf9e5u5Bcgd0f7lXqsph22nYNBZLQ4dBtIMrSG3fMpIFt6d2kedMzNAamxHrHgSBTxzR+tdrJmmGjTl+NtP19IXwVI2JaTPmKLNn5BGrEt/eTfXbwdQ1IMVwFUHx8TWUU441VdCJyFrrkVMWxyvGJFxGIaCSL9CHJy2rV4Oaq00ewhg+ikOdAmVqZF+XB3+M9DbdsI/lYcM31zLjo2umhc+EvWdGhacWZb2tnQqCjm3t67eS/tBM3/uTjgFiLRvEJUWEOp43w0nS5eCdetdWArHrAbtF9dp9NQwDHRSvAq1XyEcgBD0KeaA99u5FTC01dIIwmhlDsUqX3G0jabvOV4nPg0Cy14qfRI32pz7YoIWvPEoZq0drQnhwJIAjYlDMAbh9Fr/X48DEdwGp2o1hAuK2piJd8WBd64LpIkaadwqUh88z1cH5xSIn5MvxMp0r4U2XboMQLeunDPKcxeLkXuwSNTmUJJBk44RxkzkqB2N7ePApfPcYXfP7q/UMEWQ3rdhB6S/JTGiArkY+J2vni5wGN/4leAB9CC1WUdFfvsHFoZJ39a9UWEwu//o3kWRN6559b8lq4AG09A/lN9nz22g+q57bW4UoIwOLp2PyjbICxgkQuD+f8xlBKmfs7uwl7wlqwo89niphZscN5DEcdpYH8mw799XqX/7SiTyV8U51/PBIUptzgA9FBkdWCDoOTTPOQ9x4pNsUP/53wMXTW/FUKiv3ddk7Szl7bvfBgFtKJDM5B/9irDujMMeCZRRr3cCnTZNmlGxgPufs5Wl75pCOMaavBR8RzqIbZrJ3ITaopxV1Nwmh79DsB/sDMR7lMwO8JPn5qOMhK6R5FTAQ1ezt3RdyFn1AV1m1ydD0eQm/j7i2J/umKYqlBlJK3LSQiRgr5jvimu3MgduDv5jLh6Umy2G7yNEqnycH81rJl6ntAmIPzv2PZ1NnzTpMASy1aSyodFbpuOuPOUnTKfULkmaaaqI1sZd0EPSkGtT17EqWhFr0t9eWvKAHIfcaLyDpTzca0T2kZloPgyFMHCvpc1Uzmmz8yYNR0SE1cKUN4RJPOz2sX1eWKDL2Rs5q9qe8GMji/xNyVENuyNsEQO++BU6T64iV71VWle8StyweN+tNGvTc3zLY5UcqKdvm7Ig/R4lGKkeXwbIKm15Kw4fuW1EmeggVVw0xxfeoU11bgpHpqb9QLnDhZRvKOZsX+3eQYnZVGQqn3dWmqF/XwrEWiHH52qUkTTP5cHiMvHoRpKHCDdD8chlvCJDofZKBTHUvE+Vaw6sJqz1LHzeInmTdLLGeVcky0zlkuSSII6h4JLTVJmcCxO0GcSbfjX486TFtCA/vBqahhUtLhq8ilu41ssVtYxwmsPSiRv5IEiOdOujp6AfDlqfjgaB+Nwsh5yvrSvmR8aSSgV8hCD9fX7FgzB0OUeHQ8sOSC2XRAxWJWHaljJsRR8OOo7aUbalPy2UVQMcs8gtHAT+Z1pn2mThpE6L4uWk1UjWB0zxflh8eQ0tSTSv/k0gpalox9d9cIkSrahmKIx9KegVVZ0NXbNW8jZUTdZPa59OCQalIipJiMqyd0htV8xavMBAnME7BW2HF0Lu+YyuP7zSx2P+QqSltyKJ+xB79uEI3eq1do23BdQFl0kwoSeC8UgHS";function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(L([])));b&&b!==t&&r.call(b,i)&&(v=b);var _=h.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==m(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(_,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function b(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){b(i,n,o,a,s,"next",e)}function s(e){b(i,n,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=x(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function k(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var I=["vector art","digital art","realistic, detailed","oil painting"];function P(e,t,r){var n=e;return void 0!==r&&(n=Math.min(n,r)),void 0!==t&&(n=Math.max(n,t)),n}function A(e){return P(e,0,100)}function T(e){var t=e.match(/^\s*([+-]?[0-9][0-9]*)(\.\d*)?\s*$/);return null!=t&&t[1]?parseInt(t[1]):NaN}var R={parseStylize:function(e){if(e){var t=C(e.split(",").map((function(e){return T(e)})),2),r=t[0],n=t[1];if(!isNaN(r))return{start:r=A(r),end:n=A(r<=(n=isNaN(n)?100:n)?n:r)}}},parseFaceFixing:function(e){if(e){var t,r,n=C(e.split(",").map((function(e){return e.trim().toLowerCase()})),2),o=n[0],i=n[1],a=C([o,i].map((function(e){return parseInt(e)})),2),s=a[0],c=a[1];if(o&&l.uK.includes(o))t=o,r=c;else if(i&&l.uK.includes(i))t=i,r=s;else{if(i)return;r=s}if(t||!isNaN(r))return{strategy:t||void 0,threshold:isNaN(r)?void 0:r}}},parseStyleIDs:function(e){var t,r=null!==(t=null==e?void 0:e.split(",").map((function(e){return e.trim()})).filter((function(e){return Boolean(e)})))&&void 0!==t?t:[];return k(new Set(r))},parseStringValue:function(e){return null==e?void 0:e.trim()},parseGuidance:function(e){var t=T(null!=e?e:"");return isNaN(t)?void 0:P(t,0,25)},parseIterations:function(e){var t=T(null!=e?e:"");return isNaN(t)?void 0:P(t,5,60)},parseRawStyle:function(e){return"false"!==e.trim()},parseStyleIterations:function(e){var t=T(e);if(!isNaN(t)&&l.O9.includes(t))return t},parseStyleSeeds:function(e){var t=T(e);return isNaN(t)?void 0:P(t,1,10)},parsePromptSeed:function(e){var t=T(e);return isNaN(t)?void 0:t},parseUseTextEmbedding:function(e){return"false"!==e.trim()},parseStyleStrength:function(e){var t=parseFloat(e);return isNaN(t)?void 0:t},parseSkipType:function(e){return l.u0.includes(e)?e:void 0},parsePromptSuffix:function(e){return I.includes(e)?e:void 0},parseDraftIterations:function(e){var t=T(e);return isNaN(t)?void 0:P(t,0,60)},parseSampler:function(e){return l.Fp.includes(e)?e:void 0},parseFast:function(e){var t=T(e);return isNaN(t)?void 0:P(t,0,10)},parseOutlineStrength:function(e){var t=T(e);return isNaN(t)?void 0:P(t,0,100)},parseCreativityStrength:function(e){var t=T(e);return isNaN(t)?void 0:P(t,0,100)},parseCheckStockMatchThreshold:function(e){var t=parseFloat(e);return isNaN(t)?void 0:P(t,0,1)},parseMasking:function(e){var t=e.trim();return l.JM.includes("default_".concat(t))?t:void 0},parseUseConditionRefinement:function(e){if(!(0,f.vC)())return"true"===e.trim()},parseStartRatio:function(e){var t=parseFloat(e);return isNaN(t)?void 0:P(t,0,1)}},j={serializeStyleIDs:function(e){return e.join(",")},serializeStylize:function(e){return"".concat(e.start,",").concat(e.end)},serializeFaceFixing:function(e){return e.strategy&&void 0!==e.threshold?"".concat(e.strategy,",").concat(e.threshold):e.strategy?e.strategy:void 0!==e.threshold?e.threshold.toString():""}};function N(e,t){var r=R.parseStylize,n=R.parseStyleIDs,o=R.parseStringValue,i=R.parseFaceFixing,a=R.parseGuidance,s=R.parseIterations,c=R.parseRawStyle,u=R.parseStyleIterations,l=R.parseStyleSeeds,f=R.parseSkipType,p=R.parseDraftIterations,d=R.parseSampler,h=R.parseFast,v=R.parseOutlineStrength,y=R.parseCreativityStrength,m=R.parseMasking,g=R.parseUseConditionRefinement,b=R.parseStartRatio,_=j.serializeStyleIDs,w=j.serializeFaceFixing,E=j.serializeStylize;switch(e){case"stylize":var S=r(t);return S?E(S):void 0;case"style-id":var O=n(t);return O.length>0?_(O):void 0;case"style":return o(t)||void 0;case"fix-face":var k=i(t);return k?w(k):void 0;case"guidance":var C=a(t);return void 0!==C?C.toString():void 0;case"raw-style":return t?c(t)?"true":"false":"";case"iterations":var x=s(t);return void 0!==x?x.toString():void 0;case"style-iterations":return void 0!==u(t)?t:void 0;case"style-seeds":var L=l(t);return void 0!==L?L.toString():void 0;case"skip-type":return f(t);case"draft-iterations":var I=p(t);return void 0!==I?I.toString():void 0;case"sampler":return d(t);case"fast":var P=h(t);return void 0!==P?P.toString():void 0;case"outline-strength":var A=v(t);return void 0!==A?A.toString():void 0;case"creativity-strength":var T=y(t);return void 0!==T?T.toString():void 0;case"masking":return m(t);case"use-condition-refinement":return t?g(t)?"true":"false":void 0;case"start-ratio":var N=b(t);return void 0!==N?N.toString():void 0;default:return}}function D(e){if(e){var t=e.split(",");return t.map((function(e){return e.trim()})),k(new Set(t)).join(",")}}function U(e){for(var t={},r=R.parseStylize,n=R.parseStyleIDs,o=R.parseStringValue,i=R.parseFaceFixing,a=R.parseGuidance,s=R.parseIterations,c=R.parseRawStyle,u=R.parseStyleIterations,l=R.parseStyleSeeds,f=R.parseSkipType,p=R.parsePromptSeed,d=R.parseUseTextEmbedding,h=R.parseStyleStrength,v=R.parseDraftIterations,y=R.parseSampler,m=R.parseFast,g=R.parseOutlineStrength,b=R.parseCreativityStrength,_=R.parseCheckStockMatchThreshold,w=R.parseMasking,E=R.parseUseConditionRefinement,S=R.parsePromptSuffix,O=R.parseStartRatio,k=j.serializeStyleIDs,x=0,L=Object.entries(e);x<L.length;x++){var I=C(L[x],2),P=I[0],A=I[1];switch(P){case"stylize":var T=r(A);T&&(t.ediffi_switch=1e3-10*T.start,t.ediffi_revert=1e3-10*T.end);break;case"style-id":var N=n(A);N.length>0&&(t.style_id=k(N));break;case"style":var U=D(o(A));U&&(t.style_prompt=U);break;case"concepts":var M=n(A);M.length&&(t.concept=M[0]);break;case"fix-face":var F=i(A);null!=F&&F.strategy&&(t.fix_face_strategy=F.strategy),void 0!==(null==F?void 0:F.threshold)&&(t.fix_face_threshold=F.threshold/100);break;case"guidance":var H=a(A);void 0!==H&&(t.base_guidance=H);break;case"raw-style":var z=A?c(A):void 0;(void 0===z||z)&&(t.prior_style_only=!0);break;case"iterations":var B=s(A);void 0!==B&&(t.num_inference_steps=B);break;case"prompt-seed":var G=p(A);void 0!==G&&(t.prompt_seed=G);break;case"use-text-embedding":var K=d(A);void 0!==K&&(t.use_text_embedding=K);break;case"prompt-suffix":var V=S(A);void 0!==V&&(t.prompt_suffix=V);break;case"style-strength":var W=h(A);void 0!==W&&(t.style_strength=W);break;case"style-iterations":var Z=A?u(A):void 0;void 0!==Z&&(t.prior_inference_iterations=Z);break;case"style-seeds":var Y=A?l(A):void 0;void 0!==Y&&(t.prior_samples_per_caption=Y);break;case"skip-type":var J=A?f(A):void 0;J&&(t.skip_type=J);break;case"draft-iterations":var q=A?v(A):void 0;void 0!==q&&(t.consistency_baseline_timesteps=q);break;case"sampler":var $=A?y(A):void 0;$&&(t.schedule_type=$);break;case"fast":var X=m(A);void 0!==X&&(t.skip_uncond_every_n_iters=X);break;case"outline-strength":var Q=g(A);void 0!==Q&&(t.outline_strength=Q/100);break;case"creativity-strength":var ee=b(A);void 0!==ee&&(t.prior_strength=ee/100*-.35+.4);break;case"masking":var te=w(A);void 0!==te&&(t.masking="default_".concat(te));break;case"check-stock-match-threshold":var re=_(A);void 0!==re&&(t.check_stock_match_threshold=re);break;case"use-condition-refinement":var ne=E(A);void 0!==ne&&(t.use_condition_refinement=ne);break;case"start-ratio":var oe=O(A);void 0!==oe&&(t.timesteps_start_ratio=oe)}}return t}function M(e){for(var t=e.prompt,r=0,n=Object.entries(e.advancedParams);r<n.length;r++){var o=C(n[r],2),i=o[0],a=o[1];t+="string"==typeof a?" [".concat(i,"=").concat(a,"]"):" [".concat(i,"]")}return t}function F(e){var t=e.prompt,r=e.variableParams;return"".concat(t," ").concat(c()(r)).trim()}function H(e){var t,r={},n=O(u.z);try{for(n.s();!(t=n.n()).done;){var o=t.value,i=e.get("adv:".concat(o));if(null!==i){var a=N(o,i);void 0!==a&&(r[o]=a)}}}catch(e){n.e(e)}finally{n.f()}return r}function z(e,t,r){var n,o=function(e,t){var r,n=e.replaceAll(B,"").split(",").filter((function(e){return""!==e})),o=[],i=t.map((function(e){return E(E({},e),{},{stylePrompt:e.stylePrompt.toLowerCase().trim()})})),a=[],s=O(n);try{for(s.s();!(r=s.n()).done;){var c,u=r.value,l=u.toLowerCase().trim(),f=O(i);try{for(f.s();!(c=f.n()).done;){var p=c.value;l===p.stylePrompt&&(a.push(u),o.push(p.value))}}catch(e){f.e(e)}finally{f.f()}}}catch(e){s.e(e)}finally{s.f()}if(0===a.length)return{styles:[]};for(var d=e,h=0,v=a;h<v.length;h++){var y=v[h];d=d.replace(y,"")}return(d=d.replace(/^(\s*,\s*)+/g,"").replace(/(\s*,\s*)+$/g,"").replaceAll(/,(\s*,)+/g,",").trim())?{styles:o}:{styles:[]}}(e,null!=r?r:[]),i=function(e){var t,r=e.matchAll(B),n=e,o={},i=O(r);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=a[0],c=a[1],u=N(c,a[3]);void 0!==u&&(o[c]=u),n=n.replace(s,"")}}catch(e){i.e(e)}finally{i.f()}return{prompt:n=n.replace(/^(\s*,\s*)+/g,"").replace(/(\s*,\s*)+$/g,"").replaceAll(/,(\s*,)+/g,",").replaceAll(/\s\s+/g," ").trim(),advancedParams:o}}(null!==(n=o.contentReplacement)&&void 0!==n?n:e);return E(E(E({promptType:t},o),i),{},{serializedContent:M(i)})}var B=/\[\s*([\w_-]+)\s*(=\s*([^\]]*)\s*)?\]/g,G={alg:"A256CBC",ext:!0,k:"1d467c6R08U0cYHwbfiT6SVtkp_-Ll-2BlAOW6qVEB4",key_ops:["encrypt","decrypt"],kty:"oct"},K="jMqe8Mby2PuWAWblSGhMwQ==";function V(e){return W.apply(this,arguments)}function W(){return(W=_(g().mark((function e(t){var r,n,o,i;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.importKey("jwk",G,"AES-CBC",!0,["encrypt","decrypt"]);case 2:return r=e.sent,n=a(K),o=a(t),e.next=7,window.crypto.subtle.decrypt({name:"AES-CBC",iv:n},r,o);case 7:return i=e.sent,e.abrupt("return",(new TextDecoder).decode(i));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return Y.apply(this,arguments)}function Y(){return(Y=_(g().mark((function e(t){var r,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t));case 2:return r=e.sent,n=Array.from(new Uint8Array(r)),e.abrupt("return",n.map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var J=1024,q=25;function $(e){if(e){if(e.length>J)throw new p.c6("INVALID_PARAMETER","The input is too long.");if((0,d.A0)(e).some((function(e){return e.length>q})))throw new p.c6("INVALID_PARAMETER","The input words are too long.")}}function X(e){if(e.length>J)throw new p.c6("INVALID_PARAMETER","The input is too long.");return(0,d.A0)(e).some((function(e){return e.length>q}))?e.replace(/\b\w{25,}\b/g,""):e}function Q(e){e&&(e.anchor_prompt=D(e.anchor_prompt),e.style_prompt=D(e.style_prompt))}},81278:(e,t,r)=>{"use strict";r.d(t,{MR:()=>F,jG:()=>M,fV:()=>H,GN:()=>U,fz:()=>V,lg:()=>z,WD:()=>W,a1:()=>K,NT:()=>B,_r:()=>G,dm:()=>Z,qq:()=>J,J5:()=>ee,VY:()=>$,vn:()=>te,HL:()=>X,T4:()=>q});var n=r(85824),o=r(41481),i=r(58431),a=r(1656),s=r(64264),c=r(42739),u=r(30707),l=r.n(u);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==f(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function m(e,t,r){return g.apply(this,arguments)}function g(){var e;return e=p().mark((function e(t,r,n){var o,i,a,u,f,d,v,y,m,g,b;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=function(e){return{docType:v(e),editModel:a(e),guideImages:f(e.templatedComponentURI,e.inputComponents),outputImageComponents:f(e.templatedComponentURI,e.outputComponents),predictedModel:d(e),templateModel:u(e),canShare:e.canShare,name:y(e)}},y=function(e){return e.name},v=function(e){return e.assetType},d=function(e){return e.outputModel.model.predictedModel},f=function(e,t){var r=[];if(t){var n=e;r=t.map((function(e){return{url:l()(n).fill({component_id:e.id,revision:e.revision}),name:e.name}}))}return r},u=function(e){var t,r;return null===(t=e.inputModel)||void 0===t||null===(r=t.additionalData)||void 0===r?void 0:r.Text2ImageTemplateModel},a=function(e){return e.inputModel.model.Text2ImageEditModel},o=h({Authorization:"Bearer ".concat(r)},s.cN),i=new URL("".concat((0,c.LY)(n),"/asset/").concat(t)),e.next=11,fetch(i,{method:"GET",headers:o});case 11:if((g=e.sent).ok){e.next=14;break}throw new Error("HistoryGetResource: Cannot fetch history resource: ".concat(JSON.stringify(g)));case 14:return e.next=16,g.json();case 16:return b=e.sent,e.abrupt("return",m(b));case 18:case"end":return e.stop()}}),e)})),g=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){y(i,n,o,a,s,"next",e)}function s(e){y(i,n,o,a,s,"throw",e)}a(void 0)}))},g.apply(this,arguments)}var b=r(19504);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function w(){w=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==_(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var C=function(){var e,t=(e=w().mark((function e(t,r){var n,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(s.EQ,"/api/v4/invitations/urn/").concat(t),e.next=3,fetch(n,{method:"POST",headers:S({Authorization:"Bearer ".concat(r)},s.cN)});case 3:(o=e.sent).ok||console.error("Error confirming invitation",o.status,o.statusText);case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){k(i,n,o,a,s,"next",e)}function s(e){k(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),x=r(15440),L=r(79296),I=r(4021);function P(){P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==R(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function A(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function T(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){A(i,n,o,a,s,"next",e)}function s(e){A(i,n,o,a,s,"throw",e)}a(void 0)}))}}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==R(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===R(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U=512,M=1024,F=50,H=1,z=L.Py.Grid,B=function(e){return e.colorAndTone="colorAndTone",e.lighting="lighting",e.composition="composition",e}({}),G=function(e){return e.color="colors",e.lighting="lighting",e.composition="composition",e}({}),K=3072,V={left:.25,top:.25,right:.25,bottom:.25},W={NONE:"none",PHOTO:"photo",ART:"art",VECTOR:"vector",RAW:"raw",GRAPHIC:"graphic",ILLUSTRATION:"illustration"},Z={"style-reference":"style_zero","favorite-reference":"style_zero","image-style-reference":"style_zero","image-file-style-reference":"style_zero","show-similar-reference":"show_similar","image-reference":"reference_image","object-reference":"reference_image"};function Y(e){var t=e.guideStrength,r=e.modelInputVersion;return(0,I.tx)(r)&&void 0!==t?Math.max(5,Math.min(95,t)):t}function J(e,t){var r,n,o={prompt:e.prompt,styles:e.styles,seed:t,locale:e.locale,aspectRatio:e.aspectRatio,modelInputVersion:null!==(r=e.modelInputVersion)&&void 0!==r?r:"v1",exif:e.exif,guideStrength:Y(e),keywords:e.keywords,rlhfCreativity:e.rlhfCreativity,advancedParams:e.advancedParams,avoidKeywords:e.avoid,customModelId:e.customModelId,promptDebiasing:e.promptDebiasing,structureAdherence:null!==(n=e.structureAdherence)&&void 0!==n?n:H},i=e.referenceImage,a=e.structureReferenceImage,s=e.sourceSeed,c=e.objectComposite;return i||a||null!=c&&c.heroImage?(0,I.QS)(o.modelInputVersion)?N(N({},o),{},{referenceImage:i,structureReferenceImage:a,objectComposite:e.objectComposite}):i&&"image-reference"===i.type?N(N({},o),{},{referenceImage:i,objectComposite:c}):N(N({},o),{},{referenceImage:i,objectComposite:c,guideStrength:100,advancedParams:N(N({},o.advancedParams),{},{"prompt-seed":String(s),"use-text-embedding":"true","style-strength":"0.3"})}):o}function q(e){var t=Object.keys(e).sort().reduce((function(t,r){var n=e[r];return"object"!==R(n)||Array.isArray(n)?t[r]=n:t[r]=q(n),t}),{});return JSON.stringify(t)}function $(e){try{return JSON.parse(e),e.length>0&&e.startsWith("{")&&e.endsWith("}")}catch(e){return!1}}function X(e){return function e(t){return Object.keys(t).reduce((function(r,n){var o=t[n];return Array.isArray(o)?r[n]=o.map((function(t){return"object"===R(t)&&null!==t?e(t):t})):"object"===R(o)&&null!==o?r[n]=e(o):r[n]=$(o)?e(JSON.parse(o)):o,r}),{})}(JSON.parse(e))}var Q=function(){var e=T(P().mark((function e(t){var r;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.map((function(e){return n.pB.getRef(e)})),e.next=3,Promise.all(r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=function(){var e=T(P().mark((function e(t,r,s){var c,u,l,f,p,d,h,v;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(t,r);case 2:return e.next=4,m(t,r,x.Z.getStorageRegion());case 4:return c=e.sent,e.next=7,Q(c.outputImageComponents.map((function(e){return e.url})));case 7:if(u=e.sent,!((l=c.guideImages).length>0)){e.next=14;break}return f={Authorization:"Bearer ".concat(r),"X-Api-Key":b.m8},p=l.map(function(){var e=T(P().mark((function e(t){var r,o,s,u,l,p,d,h;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.url,o=t.name,s=o,void 0!==(u=i.Sx.get(s))){e.next=6;break}return console.error("No image property name found for guide image ".concat(o)),e.abrupt("return");case 6:return e.next=8,(0,a.uN)(r,f);case 8:return l=e.sent,e.next=11,n.pB.getRef(l);case 11:p=e.sent,d=c.editModel[s],u.length>0?(h=d[u],c=N(N({},c),{},{editModel:N(N({},c.editModel),{},D({},s,N(N({},d),{},D({},u,N(N({},h),{},{ref:p})))))})):c=N(N({},c),{},{editModel:N(N({},c.editModel),{},D({},s,N(N({},d),{},{ref:p})))});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=14,Promise.all(p);case 14:if(c.docType!==o.Ag.StyleKit){e.next=19;break}if(c.templateModel){e.next=17;break}throw new Error("Unable to fetch locked model from StyleKit document");case 17:if(c.editModel.previewSeed){e.next=19;break}throw new Error("StyleKit document model is missing preview seed");case 19:return d=c.docType===o.Ag.StyleKit?[c.editModel.previewSeed]:c.editModel.seeds,e.next=22,Promise.all(d.map((function(e){return e?J(c.editModel,e):Promise.reject(new Error("Seed can't be undefined from document"))})));case 22:return h=e.sent,v=void 0,!s&&u.length>0&&c.docType===o.Ag.StyleKit&&(v=u[0]),e.abrupt("return",{docType:c.docType,model:c.editModel,assets:new Set(h.map((function(e){return{modelKey:q(e),ref:u.shift()}}))),predictedModel:c.predictedModel,templateModel:c.templateModel,thumbnailRef:v,name:c.name,canShare:c.canShare});case 26:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),te=function(e){return(0,I.QS)(e.modelInputVersion)&&e.structureReferenceImage}},94649:(e,t,r)=>{"use strict";r.d(t,{AX:()=>u,q_:()=>c,wD:()=>p,x9:()=>l});var n=r(97713);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t,r){return function(e,t){if(t.width<=e.width&&t.height<=e.height)return{x:Number(e.x)+(e.width-t.width)/2,y:Number(e.y)+(e.height-t.height)/2,width:t.width,height:t.height};var r=e.width/e.height,n=t.width/t.height,o=a({},e);return r>n?(o.width=e.height*n,o.x+=(e.width-o.width)/2):(o.height=e.width/n,o.y+=(e.height-o.height)/2),o}({x:r.left*e.width,y:r.top*e.height,width:(1-r.right-r.left)*e.width,height:(1-r.bottom-r.top)*e.height},t)}function u(e,t){return{left:t.x/e.width,top:t.y/e.height,right:Number((Number(e.width)-Number(t.x)-Number(t.width))/e.width),bottom:(Number(e.height)-Number(t.y)-Number(t.height))/e.height}}function l(e,t){var r={x:t.x,y:t.y};return r.x<e.left&&(r.x=e.left),r.y<e.top&&(r.y=e.top),r.x>e.right&&(r.x=e.right),r.y>e.bottom&&(r.y=e.bottom),r}var f=function(e){return e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT",e}({});function p(e,t,r,o,i){var s={};switch(t){case f.TOP_LEFT:s.left=e.right-o.width,s.top=e.bottom-o.height,s.right=e.right-i.width,s.bottom=e.bottom-i.height;break;case f.TOP_RIGHT:s.top=e.bottom-o.height,s.right=Number(e.left)+Number(o.width),s.bottom=e.bottom-i.height,s.left=Number(e.left)+Number(i.width);break;case f.BOTTOM_RIGHT:s.bottom=Number(e.top)+Number(o.height),s.right=Number(e.left)+Number(o.width),s.top=Number(e.top)+Number(i.height),s.left=Number(e.left)+Number(i.width);break;case f.BOTTOM_LEFT:s.left=e.right-o.width,s.bottom=Number(e.top)+Number(o.height),s.right=e.right-i.width,s.top=Number(e.top)+Number(i.height)}r=l(s,r);var c=a({},e),u=o.width/o.height;switch(t){case f.TOP_LEFT:c.left=r.x,c.top=r.y;break;case f.TOP_RIGHT:c.top=r.y,c.right=r.x;break;case f.BOTTOM_RIGHT:c.bottom=r.y,c.right=r.x;break;case f.BOTTOM_LEFT:c.bottom=r.y,c.left=r.x}return function(e,t,r){var o=(0,n.NG)(e),i=a({},e),s=o.width/o.height;switch(t){case f.TOP_LEFT:s>r?i.left=i.right-o.height*r:i.top=i.bottom-o.width/r;break;case f.TOP_RIGHT:s>r?i.right=Number(i.left)+o.height*r:i.top=i.bottom-o.width/r;break;case f.BOTTOM_RIGHT:s>r?i.right=Number(i.left)+o.height*r:i.bottom=Number(i.top)+o.width/r;break;case f.BOTTOM_LEFT:s>r?i.left=i.right-o.height*r:i.bottom=Number(i.top)+o.width/r}return i}(c,t,u)}},85959:(e,t,r)=>{"use strict";r.d(t,{wh:()=>_,qO:()=>g,EA:()=>b});var n=r(60447),o=r(23788),i=r(11648);const a=JSON.parse('{"X":{"AUTODUB_CREDITS_INFO_CONFIRM_KEY":"autodub-credits-info-confirmed","AUTODUB_ETHICS_CONFIRM_KEY":"autodub-ethics-confirmed","CAI_COPY_LINK_CONFIRM_KEY":"cai-copy-link-confirmed","CAI_DOWNLOAD_INFO_CONFIRM_KEY":"cai-download-info-confirmed","CAI_SAVE_TO_LIBRARY_CONFIRM_KEY":"cai-save-to-library-confirmed","CME_AUTO_CAPTION_COACHMARK_SESSIONS_KEY":"cme-auto-caption-coachmark-sessions","CME_INVENTORY_FIREFLY_DIALOG_KEY":"cme-inventory-firefly-dialog","CME_TRAIN_PERMISSION_DIALOG_CONFIRM_KEY":"cme-train-permission-dialog-confirmed","COMMUNITY_MESSAGE_CONFIRM_KEY":"community-message-user-confirmed","CUSTOM_MODELS_COACHMARK_CONFIRM_KEY":"custom-models-confirmed","EXIF_SETTING_CONFIRM_KEY":"exif-setting-confirmed","FEEDBACK_INTRO_CONFIRM_KEY":"feedback-intro-confirmed","GENERATIVE_CREDIT_COST_CONFIRM_KEY":"generative-credit-cost-confirmed","LEGAL_USER_ACCEPT_KEY":"legal-user-acceptance","OBJECT_COMPOSITE_PROMPTBAR_COACHMARK_KEY":"oc-promptbar-coachmark-confirmed","OBJECT_COMPOSITE_PROMPTBAR_UPLOAD_COACHMARK_KEY":"oc-image-upload-coachmark-confirmed","OBJECT_COMPOSITE_SIDEBAR_COACHMARK_KEY":"oc-structure-coachmark-confirmed","PAINT_OBJECT_TO_ERASE_CONFIRM_KEY":"paint-to-erase-object-comfirmed","STRUCTURE_COACHMARK_CONFIRM_KEY":"structure-coachmark-confirmed","STYLE_KIT_BROWSE_CONFIRM_KEY":"style-kit-browse-confirmed","STYLE_KIT_CONFIRM_KEY":"style-kit-confirmed","STYLE_MESSAGE_CONFIRM_KEY":"style-message-confirmed","TEXT2IMAGE_ADVANCE_SETTING_CONFIRM_KEY":"text2image-advance-setting-confirmed","TEXT2IMAGE_MODEL_VERSION_CONFIRM_KEY":"text2image-new-model-version-confirmed","VIDEO_OBJECT_REMOVAL_DOWNLOAD_CONFIRMED":"video-object-removal-download-confirmed","VIDEO_OBJECT_REMOVAL_ETHICS_CONFIRM_KEY":"video-object-removal-ethics-confirmed","WHATS_NEW_CONFIRM_KEY":"whats-new-dialog-confirmed"}}');function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){c=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,c){var u=p(e[n],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function u(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,s,"next",e)}function s(e){u(i,n,o,a,s,"throw",e)}a(void 0)}))}}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function p(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y,m="firefly-web",g=function(e){return e[e.AUTODUB_CREDITS_INFO_CONFIRM_KEY=0]="AUTODUB_CREDITS_INFO_CONFIRM_KEY",e[e.AUTODUB_ETHICS_CONFIRM_KEY=1]="AUTODUB_ETHICS_CONFIRM_KEY",e[e.CAI_COPY_LINK_CONFIRM_KEY=2]="CAI_COPY_LINK_CONFIRM_KEY",e[e.CAI_DOWNLOAD_INFO_CONFIRM_KEY=3]="CAI_DOWNLOAD_INFO_CONFIRM_KEY",e[e.CAI_SAVE_TO_LIBRARY_CONFIRM_KEY=4]="CAI_SAVE_TO_LIBRARY_CONFIRM_KEY",e[e.CME_AUTO_CAPTION_COACHMARK_SESSIONS_KEY=5]="CME_AUTO_CAPTION_COACHMARK_SESSIONS_KEY",e[e.CME_INVENTORY_FIREFLY_DIALOG_KEY=6]="CME_INVENTORY_FIREFLY_DIALOG_KEY",e[e.CME_TRAIN_PERMISSION_DIALOG_CONFIRM_KEY=7]="CME_TRAIN_PERMISSION_DIALOG_CONFIRM_KEY",e[e.COMMUNITY_MESSAGE_CONFIRM_KEY=8]="COMMUNITY_MESSAGE_CONFIRM_KEY",e[e.CUSTOM_MODELS_COACHMARK_CONFIRM_KEY=9]="CUSTOM_MODELS_COACHMARK_CONFIRM_KEY",e[e.EXIF_SETTING_CONFIRM_KEY=10]="EXIF_SETTING_CONFIRM_KEY",e[e.FEEDBACK_INTRO_CONFIRM_KEY=11]="FEEDBACK_INTRO_CONFIRM_KEY",e[e.GENERATIVE_CREDIT_COST_CONFIRM_KEY=12]="GENERATIVE_CREDIT_COST_CONFIRM_KEY",e[e.LEGAL_USER_ACCEPT_KEY=13]="LEGAL_USER_ACCEPT_KEY",e[e.OBJECT_COMPOSITE_PROMPTBAR_COACHMARK_KEY=14]="OBJECT_COMPOSITE_PROMPTBAR_COACHMARK_KEY",e[e.OBJECT_COMPOSITE_PROMPTBAR_UPLOAD_COACHMARK_KEY=15]="OBJECT_COMPOSITE_PROMPTBAR_UPLOAD_COACHMARK_KEY",e[e.OBJECT_COMPOSITE_SIDEBAR_COACHMARK_KEY=16]="OBJECT_COMPOSITE_SIDEBAR_COACHMARK_KEY",e[e.PAINT_OBJECT_TO_ERASE_CONFIRM_KEY=17]="PAINT_OBJECT_TO_ERASE_CONFIRM_KEY",e[e.STRUCTURE_COACHMARK_CONFIRM_KEY=18]="STRUCTURE_COACHMARK_CONFIRM_KEY",e[e.STYLE_KIT_BROWSE_CONFIRM_KEY=19]="STYLE_KIT_BROWSE_CONFIRM_KEY",e[e.STYLE_KIT_CONFIRM_KEY=20]="STYLE_KIT_CONFIRM_KEY",e[e.STYLE_MESSAGE_CONFIRM_KEY=21]="STYLE_MESSAGE_CONFIRM_KEY",e[e.TEXT2IMAGE_ADVANCE_SETTING_CONFIRM_KEY=22]="TEXT2IMAGE_ADVANCE_SETTING_CONFIRM_KEY",e[e.TEXT2IMAGE_MODEL_VERSION_CONFIRM_KEY=23]="TEXT2IMAGE_MODEL_VERSION_CONFIRM_KEY",e[e.VIDEO_OBJECT_REMOVAL_DOWNLOAD_CONFIRMED=24]="VIDEO_OBJECT_REMOVAL_DOWNLOAD_CONFIRMED",e[e.VIDEO_OBJECT_REMOVAL_ETHICS_CONFIRM_KEY=25]="VIDEO_OBJECT_REMOVAL_ETHICS_CONFIRM_KEY",e[e.WHATS_NEW_CONFIRM_KEY=26]="WHATS_NEW_CONFIRM_KEY",e}({}),b=Object.assign.apply(Object,[{}].concat(function(e){if(Array.isArray(e))return v(e)}(y=Object.entries(a.X).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],n=t[1];return p({},Object.keys(g).find((function(e){return g[e]===r})),n)})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(y)||h(y)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),_=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"_accessToken",""),p(this,"_userId",""),p(this,"_isSignedInUser",!1),p(this,"_initialized",!1),p(this,"_fetchDocumentPromiseMap",void 0),p(this,"_documentCache",void 0),this._fetchDocumentPromiseMap=new Map,this._documentCache=new Map}var t,r,a,u,d,h,v;return t=e,r=[{key:"_getDocumentUID",value:function(e,t){return t?e+":"+t:e}},{key:"_getAppDomain",value:function(e){var t=e.appDomain;if(!t.length)throw new Error("Invalid appDomain");return t}},{key:"_getCachedDocument",value:function(e){return this._documentCache.get(e)}},{key:"_setCachedDocument",value:function(e,t){t&&this._documentCache.set(e,t)}},{key:"_fetchDocumentUtil",value:(v=l(c().mark((function e(t,r){var n,o,i,a,s,u,l=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>2&&void 0!==l[2]&&l[2],o=this._getAppDomain(r),i=r.docType,a=this._getDocumentUID(o,i),s=this._getCachedDocument(a),!n&&s){e.next=11;break}return(u=this._fetchDocumentPromiseMap.get(a))||(u=this._fetchDocument(t,r),this._fetchDocumentPromiseMap.set(a,u)),e.next=10,u;case 10:s=e.sent;case 11:return e.abrupt("return",s);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"_addQueryParam",value:function(e,t,r){if(e&&t&&r){var n=new URL(e);return n.searchParams.set(t,r),n.href}return e}},{key:"_getUrl",value:function(e,t,r){var n="".concat("https://uds.adobe-identity.com","/userdocs/").concat(e);return t&&(n=this._addQueryParam(n,"docType",t)),void 0!==r&&r>=0&&(n=this._addQueryParam(n,"version",r.toString())),n}},{key:"_fetchDocument",value:(h=l(c().mark((function e(t,r){var n,a,s,u,l,f,p;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.appDomain,a=r.docType,s={method:"GET",headers:new Headers({Accept:"*/*","x-api-key":o.jf.clientId,Authorization:"Bearer ".concat(t),"Access-Control-Allow-Origin":window.location.origin}),mode:"cors"},e.prev=3,l=this._getUrl(n,a),e.next=7,(0,i.q)(l,s);case 7:if(200===(f=e.sent).status){e.next=10;break}throw f;case 10:return e.next=12,f.json();case 12:u=e.sent,e.next=22;break;case 15:if(e.prev=15,e.t0=e.catch(3),!(e.t0 instanceof Response&&404===e.t0.status)){e.next=21;break}u={version:0,data:{}},e.next=22;break;case 21:throw e.t0;case 22:return p=this._getDocumentUID(n,a),this._setCachedDocument(p,u),this._fetchDocumentPromiseMap.delete(p),e.abrupt("return",u);case 26:case"end":return e.stop()}}),e,this,[[3,15]])}))),function(e,t){return h.apply(this,arguments)})},{key:"_isSafeToSave",value:function(e,t,r){if(!r)return!0;var o=r.data[e],i=t.data[e],a=s(o);return a===s(i)&&("object"===a?(0,n.Z)(o,i):o===i)}},{key:"init",value:function(e,t,r){var n;this._accessToken=e,this._isSignedInUser=t,this._userId=null!==(n=null==r?void 0:r.userId)&&void 0!==n?n:"",this._initialized=e.length>0&&t&&void 0!==r}},{key:"isInitialized",get:function(){return this._initialized}},{key:"fetchAppSectionData",value:(d=l(c().mark((function e(t){var r,n,o,i,a=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],o=a.length>2?a[2]:void 0,this._isSignedInUser){e.next=5;break}return console.debug("Unable to fetch UDS data for anonymous user"),e.abrupt("return",void 0);case 5:return o=null!==(r=o)&&void 0!==r?r:{appDomain:m},e.next=8,this._fetchDocumentUtil(this._accessToken,o,n);case 8:if(!(i=e.sent)){e.next=11;break}return e.abrupt("return",i.data[t]);case 11:return e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"saveAppSectionData",value:(u=l(c().mark((function e(t,r){var n,a,s,u,l,f,d,h,v,y,g,b,_,w,E=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=E.length>2&&void 0!==E[2]&&E[2],s=E.length>3?E[3]:void 0,u=E.length>4?E[4]:void 0,this._isSignedInUser){e.next=5;break}throw new Error("Unable to save UDS data for anonymous user");case 5:return s=null!==(n=s)&&void 0!==n?n:{appDomain:m},l=this._getAppDomain(s),f=s.docType,d=p({},t,r),h={documentId:{appDomain:"".concat(l),ownerEntity:"".concat(this._userId),docType:f},data:d},e.prev=10,e.next=13,this._fetchDocumentUtil(this._accessToken,s,a);case 13:if(!(v=e.sent)){e.next=29;break}if(this._isSafeToSave(t,v,u)){e.next=18;break}throw new Error("Unable to save section data due to concurrent write");case 18:return y=v.version,g=this._getUrl(l,f,y),b={method:"PATCH",body:JSON.stringify(h),headers:new Headers({Accept:"*/*","x-api-key":o.jf.clientId,Authorization:"Bearer ".concat(this._accessToken),"Content-Type":"application/json","Access-Control-Allow-Origin":window.location.origin}),mode:"cors"},e.next=23,(0,i.q)(g,b);case 23:if(200===(_=e.sent).status||201===_.status){e.next=26;break}throw _;case 26:return w=this._getDocumentUID(l,f),this._documentCache.delete(w),e.abrupt("return",_.json());case 29:e.next=38;break;case 31:if(e.prev=31,e.t0=e.catch(10),!(e.t0 instanceof Response&&409===e.t0.status)){e.next=37;break}return e.next=36,this.saveAppSectionData(t,r,!0,s,v);case 36:return e.abrupt("return",e.sent);case 37:throw e.t0;case 38:case"end":return e.stop()}}),e,this,[[10,31]])}))),function(e,t){return u.apply(this,arguments)})},{key:"deleteDocument",value:(a=l(c().mark((function e(t){var r,n,a,s,u,l,f;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._isSignedInUser){e.next=2;break}throw new Error("Unable to save UDS data for anonymous user");case 2:return t=null!==(r=t)&&void 0!==r?r:{appDomain:m},n=this._getAppDomain(t),a=t.docType,s=this._getUrl(n,a),u={method:"DELETE",headers:new Headers({Accept:"*/*","x-api-key":o.jf.clientId,Authorization:"Bearer ".concat(this._accessToken),"Access-Control-Allow-Origin":window.location.origin}),mode:"cors"},e.next=9,(0,i.q)(s,u);case 9:if(200===(l=e.sent).status||204===l.status){e.next=12;break}throw new Error("UDS deleting failure, ".concat(l.status," ").concat(l.statusText));case 12:f=this._getDocumentUID(n,a),this._documentCache.delete(f);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})}],r&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},15440:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(37585),o=r(41481);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}var c=new(function(){function e(){var t,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r="_storageRegion",i=o.Uh.DEFAULT,(r=s(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,(0,n.ky)(this)}var t,r;return t=e,(r=[{key:"setStorageRegion",value:function(e){this._storageRegion=e}},{key:"getStorageRegion",value:function(){return this._storageRegion}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}())},12948:(e,t,r)=>{"use strict";r.d(t,{V:()=>M,N:()=>D});var n=r(37585),o=r(36258),i=r(82542),a=r(96550),s=r(89210),c=r(4743),u=r(17578),l=r(44489);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(){v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function d(){}function h(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=d.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==f(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return h.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:h,configurable:!0}),h.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function m(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}function b(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){b(i,n,o,a,s,"next",e)}function s(e){b(i,n,o,a,s,"throw",e)}a(void 0)}))}}var w=(0,u.Dj)()?["56783068420118581440565548964952308221","60972511412439594576904661301471097652"]:["779093970307782209133434876006471558","24897911096329145909963757630267805798"];function E(e){return S.apply(this,arguments)}function S(){return(S=_(v().mark((function e(t){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.abrupt("return",r.blob());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t,r){var n=[s.Zk.Text2Image],o=[s.Zk.InPainting],i=r&&n.includes(r)?"http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia":"http://cv.iptc.org/newscodes/digitalsourcetype/compositeWithTrainedAlgorithmicMedia",a={label:"c2pa.actions",data:{actions:[{action:r&&o.includes(r)?"c2pa.edited":"c2pa.created",softwareAgent:"Adobe Firefly",digitalSourceType:i}]}};return t&&(a.data.metadata={"com.adobe.inference":t}),{claim_generator:"Adobe_Firefly",title:"Generated image",format:e,assertions:[a]}}function k(e){return C.apply(this,arguments)}function C(){return(C=_(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Blob)){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,E(t);case 6:e.t0=e.sent;case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var x=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._config=t,m(this,"_sdk",void 0)}var t,r,n,o,i,a,s,u,f,p,g,b,E;return t=e,r=[{key:"_getSDK",value:(E=_(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===this._sdk&&(t=Object.assign({},l.g$,this._config),this._sdk=(0,c.Fz)(t).catch((function(e){throw console.error("Error initializing C2PA SDK"),e}))),e.abrupt("return",this._sdk);case 2:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"readAsset",value:(b=_(v().mark((function e(t){var r,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t);case 2:return r=e.sent,e.prev=3,e.next=6,this._getSDK();case 6:return n=e.sent,e.abrupt("return",n.read(r));case 10:e.prev=10,e.t0=e.catch(3),console.error("Error reading C2PA data:",e.t0);case 13:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return b.apply(this,arguments)})},{key:"getCAIManifestMapAndActiveKey",value:(g=_(v().mark((function e(t){var r,n,o,i,a,s,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.readAsset(t);case 2:if(o=e.sent,i=null==o||null===(r=o.manifestStore)||void 0===r?void 0:r.manifests,a=null==o||null===(n=o.manifestStore)||void 0===n?void 0:n.activeManifest){e.next=7;break}return e.abrupt("return",{activeManifestId:void 0,manifestMap:i});case 7:if(c=a.instanceId,i){e.next=10;break}return e.abrupt("return",{activeManifestId:void 0,manifestMap:void 0});case 10:return Object.keys(i).forEach((function(e){i[e].instanceId===c&&(s=e)})),e.abrupt("return",{activeManifestId:s,manifestMap:i});case 12:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"checkAssertionDataValueAllManifests",value:(p=_(v().mark((function e(t,r,n,o){var i,a,s,c,u,l;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.readAsset(t);case 2:if(a=e.sent,s=null==a||null===(i=a.manifestStore)||void 0===i?void 0:i.manifests,c=!0,u=[],s)for(l in s)Object.prototype.hasOwnProperty.call(s,l)&&(u=u.concat(s[l].assertions.get(r)));if(0!==u.length){e.next=9;break}return e.abrupt("return",void 0);case 9:return c=u.every((function(e){var t=n.every((function(t){if(o.includes(e.data.entries[t].use))return!0}));return t})),e.abrupt("return",c);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return p.apply(this,arguments)})},{key:"isInferenceAllowed",value:(f=_(v().mark((function e(t){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkAssertionDataValueAllManifests(t,"c2pa.training-mining",["c2pa.ai_inference"],["notAllowed","constrained"]);case 2:return r=e.sent,e.abrupt("return",!r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"scanAssetUrl",value:(u=_(v().mark((function e(t){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getSDK();case 3:return r=e.sent,e.abrupt("return",r.scanUrl(t));case 7:return e.prev=7,e.t0=e.catch(0),console.error("Error scanning C2PA data:",e.t0),e.abrupt("return",{found:!1});case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"signAsset",value:(s=_(v().mark((function e(t,r,n){var o,i,a,s,c,u,l,f,p,y,m,g=arguments;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=!(g.length>3&&void 0!==g[3])||g[3],i=g.length>4?g[4]:void 0,a=g.length>5?g[5]:void 0,s=g.length>6?g[6]:void 0,e.next=6,Promise.all([k(t),this._getSDK()]);case 6:return c=e.sent,b=2,u=function(e){if(Array.isArray(e))return e}(v=c)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(v,b)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(v,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=u[0],f=u[1],e.next=12,this.buildManifest(l,f,n,i,a);case 12:return p=e.sent,e.next=15,f.sign(l,p,d({authToken:r,storageLocations:["cloud","embedded"],onProgress:function(e){return null==s?void 0:s(e.value)}},!o&&{thumbnail:o}));case 15:return y=e.sent,m=y.embeddedAsset,e.abrupt("return",m);case 18:case"end":return e.stop()}var v,b}),e,this)}))),function(e,t,r){return s.apply(this,arguments)})},{key:"buildManifest",value:(a=_(v().mark((function e(t,r,n,o,i){var a,s,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=Boolean(o)||Boolean(i),s=O(t.type,a,n),c=r.createManifest(s),!o){e.next=6;break}return e.next=6,this.addIngredientToManifest(r,o,"Reference Image",c);case 6:if(!i){e.next=9;break}return e.next=9,this.addIngredientToManifest(r,i,"Composition Reference Image",c);case 9:return e.abrupt("return",c);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return a.apply(this,arguments)})},{key:"addIngredientToManifest",value:(i=_(v().mark((function e(t,r,n,o){var i,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(r);case 2:return i=e.sent,e.next=5,i.blob();case 5:return a=e.sent,e.next=8,t.createIngredient({input:a,title:n});case 8:return delete(s=e.sent).ingredient.thumbnail,delete s.ingredient.manifest_data,s.resources=[],s.ingredient.relationship="inputTo",e.next=15,o.addIngredient(s);case 15:case"end":return e.stop()}}),e)}))),function(e,t,r,n){return i.apply(this,arguments)})},{key:"isAssetSigned",value:(o=_(v().mark((function e(t){var r,n,o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.readAsset(t);case 2:return n=e.sent,o=null==n||null===(r=n.manifestStore)||void 0===r?void 0:r.activeManifest.signatureInfo,e.abrupt("return",Boolean(o));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"verifyAssetSignature",value:(n=_(v().mark((function e(t){var r,n,o,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.readAsset(t);case 2:if(n=e.sent,!(o=null==n||null===(r=n.manifestStore)||void 0===r?void 0:r.activeManifest.signatureInfo)){e.next=8;break}if(i=o.cert_serial_number,!w.includes(i)){e.next=8;break}return e.abrupt("return",!0);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}],r&&y(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),L=r(11579);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function P(){P=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==I(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function A(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function T(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){A(i,n,o,a,s,"next",e)}function s(e){A(i,n,o,a,s,"throw",e)}a(void 0)}))}}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N(n.key),n)}}function j(e,t,r){return(t=N(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===I(t)?t:String(t)}(0,o.vU)({"content-summary.header":{id:"@cai-adobe-c2pa/content-summary.header",defaultMessage:[{type:0,value:"Content summary"}]},"content-summary.content.aiGenerated":{id:"@cai-adobe-c2pa/content-summary.content.aiGenerated",defaultMessage:[{type:0,value:"This content was generated with an AI tool."}]},"process.header":{id:"@cai-adobe-c2pa/process.header",defaultMessage:[{type:0,value:"Process"}]},"produced-with.header":{id:"@cai-adobe-c2pa/product-source.header",defaultMessage:[{type:0,value:"Product used:"}]},"process.aiModelUsed.subheading":{id:"@cai-adobe-c2pa/process.aiModelUsed.subheading",defaultMessage:[{type:0,value:"AI model used:"}]},"process.actionsIngredients.subheading":{id:"@cai-adobe-c2pa/process.actionsIngredients.subheading",defaultMessage:[{type:0,value:"Actions and ingredients"}]},"manifest-summary.viewMore":{id:"@cai-adobe-c2pa/manifest-summary.viewMore",defaultMessage:[{type:0,value:"View more"}]}});var D=(0,o.vU)({toastHeader:{id:"@clio/playground:cai-provider-sign-asset-error-toast-header",defaultMessage:[{type:0,value:"There was an issue with applying Content Credentials."}]},toastDescription:{id:"@clio/playground:cai-provider-sign-asset-error-toast-description",defaultMessage:[{type:0,value:"Your download will continue without them."}]}}),U={onCancel:function(){throw new Error("onCancel is not defined")},onContinue:function(){throw new Error("onContinue is not defined")},isOpen:!1},M=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),j(this,"utils",void 0),j(this,"analyticsModel",void 0),j(this,"introModalConfig",U),j(this,"signAsset",function(){var e=T(P().mark((function e(t){var n,o,s,c,u,l,f,p,d,h,v;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.image,o=t.moduleId,s=t.referenceImage,c=t.viewType,u=t.generationMetadata,l=r.shouldIncludeThumbnail(o),e.prev=2,e.next=5,r.utils.signAsset(n,L.Mz.accessToken,o,l,null==s?void 0:s.styleReferenceImage,null==s?void 0:s.structureReferenceImage);case 5:if(f=e.sent,null==s||!s.styleReferenceImage||s.styleReferenceImage.includes(i.iA)||!u){e.next=15;break}return p=a.I3.Unknown,o&&(p=(0,a.sd)(o)),e.next=11,r.getCAIManifestMapAndActiveKey(f);case 11:d=e.sent,h=d.manifestMap,v=d.activeManifestId,h&&r.analyticsModel.sendBase64StyleReferenceImage(null==s?void 0:s.styleReferenceImage,null!=v?v:"",JSON.stringify(h),p,null!=c?c:a.cp.Unknown,u,n);case 15:return e.abrupt("return",{err:null,result:f});case 18:return e.prev=18,e.t0=e.catch(2),console.error("Error signing C2PA data:",e.t0),e.t1=e.t0,e.next=24,k(n);case 24:return e.t2=e.sent,e.abrupt("return",{err:e.t1,result:e.t2});case 26:case"end":return e.stop()}}),e,null,[[2,18]])})));return function(t){return e.apply(this,arguments)}}()),j(this,"getCAIManifestMapAndActiveKey",function(){var e=T(P().mark((function e(t){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){try{e(r.utils.getCAIManifestMapAndActiveKey(t))}catch(e){n(e)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),j(this,"shouldIncludeThumbnail",(function(e){return!e||e!==s.Zk.InPainting})),(0,n.ky)(this),this.analyticsModel=t,this.utils=new x}var t,r;return t=e,(r=[{key:"openIntroModal",value:function(){this.introModalConfig.isOpen=!0}},{key:"closeIntroModal",value:function(){this.introModalConfig.isOpen=!1}},{key:"showSigningErrorToast",value:function(e,t,r){t(r),console.error("Error signing asset",e)}}])&&R(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},57518:(e,t,r)=>{"use strict";r.d(t,{P0:()=>K,W:()=>G,dP:()=>W,Nm:()=>F});var n=r(37585);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function a(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}var c,u,l,f,p,d,h,v,y,m,g,b,_,w,E,S,O=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._updater=t,a(this,"_removeListeners",[]),a(this,"_onChange",(function(){return n._updater()})),r&&this.renewListeners(r)}var t,r;return t=e,(r=[{key:"renewListeners",value:function(e){var t=this;this._removeListeners.forEach((function(e){return e()})),this._removeListeners=e.map((function(e){return function(){return e.off("change",t._onChange)}})),e.forEach((function(e){return e.on("change",t._onChange)}))}},{key:"disposeListeners",value:function(){this._removeListeners.forEach((function(e){return e()})),this._removeListeners=[]}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),k=r(51473),C=r(4771),x=r(12106);function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function I(){I=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==L(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function P(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function A(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){P(i,n,o,a,s,"next",e)}function s(e){P(i,n,o,a,s,"throw",e)}a(void 0)}))}}function T(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,U(n.key),n)}}function D(e,t,r){return(t=U(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e){var t=function(e,t){if("object"!==L(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===L(t)?t:String(t)}function M(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var F={CURRENT:"1.1"},H=function(e){return e.Queued="queued",e.InProgress="inProgress",e.Success="success",e.Failed="failed",e.Cancelled="cancelled",e}(H||{}),z=function(e){return e.Unpublished="unpublished",e.Published="published",e}(z||{}),B=function(e){return e.Style="style",e.Subject="subject",e}(B||{}),G=function(e){return e.NotAccessible="notAccessible",e.Published="published",e.InferenceReady="inferenceReady",e}({}),K=function(e){return e.Uninitialized="Uninitialized",e.Initialized="Initialized",e.NotPreselected="NotPreselected",e.Preselected="Preselected",e}({});function V(e){var t,r,n,o,i,a,s=e.appMetadata;if((null!==(t=s["cme:training.state"])&&void 0!==t?t:null===(r=s["cme:training"])||void 0===r?void 0:r.state)===H.Success){var c=null===(n=s["cme:publishedState"])||void 0===n?void 0:n.toLowerCase(),u=s["cme:inferenceReady"],l="",f=null===(o=e.renditionGrid)||void 0===o||null===(i=o.main)||void 0===i?void 0:i.id;if(f){var p=e.getElementById(f);p&&(l=p.getThumbnailURL(200))}var d=e.getValue("firefly","cme"),h=(null==d?void 0:d.trainingMode)===B.Subject?null==d?void 0:d.superclass:void 0,v=(null==d?void 0:d.trainingMode)===B.Subject?null==d?void 0:d.conceptId:void 0,y=c===z.Published?G.Published:u?G.InferenceReady:G.NotAccessible;return{modelId:e.assetId,modelName:e.name,samplePrompt:null!==(a=s["cme:samplePrompt"])&&void 0!==a?a:"",superClass:h,conceptId:v,thumbnailUrl:l,state:y,version:null==d?void 0:d.version,baseModelVersion:null==d?void 0:d.baseModelVersion}}}var W=(c=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),j(this,"customModels",u,this),j(this,"needsUpdate",l,this),j(this,"hasCustomModelAccess",f,this),j(this,"hasCustomModelPreviewAccess",p,this),j(this,"_loadingState",d,this),j(this,"customModelPreSelectState",h,this),j(this,"hasErrorPreselectingCustomModel",v,this),j(this,"reactionDisposer",y,this),D(this,"_service",new k.eK(C.f)),D(this,"_librariesChangeUpdater",new O((function(){t.setNeedsUpdate(!0)}))),j(this,"setLoadingState",m,this),j(this,"initialize",g,this),j(this,"updateCustomModels",b,this),j(this,"allowCustomModelAccess",_,this),j(this,"allowCustomModelPreviewAccess",w,this),j(this,"setNeedsUpdate",E,this),j(this,"setCustomModelPreSelectedState",S,this),(0,n.rC)(this)}var t,r,o,i;return t=e,r=[{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===x.o.Loaded}},{key:"customModelById",value:function(e){return this.customModels.find((function(t){return t.modelId===e}))}},{key:"_renewCallbacks",value:function(e,t){this._librariesChangeUpdater.renewListeners([e].concat(T(t)))}},{key:"_fetchLicensingData",value:(i=A(I().mark((function e(t){var r,n,o;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=k.Mo,e.prev=1,e.next=4,this._service.enrollUser(t);case 4:if((n=e.sent).statusCode===k.Wv&&(r=n.statusCode),n.statusCode!==k.oo){e.next=11;break}return e.next=9,this._service.retryEnrollment(t);case 9:o=e.sent,r=o.statusCode;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),console.error("Error fetching licensing data for CME",e.t0);case 16:return e.abrupt("return",r);case 17:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e){return i.apply(this,arguments)})},{key:"_fetchCustomModels",value:(o=A(I().mark((function e(t,r){var n,o,i,a,s,c,u,l,f;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],o=Array.from({length:4},(function(e,t){return 50*t})),i=!0,a=!0,s=0;case 5:if(!i){e.next=33;break}return e.prev=6,c=o.map((function(e){return t.getCMELibrariesPage(s+e,50)})),e.next=10,Promise.all(c);case 10:if(u=e.sent,l=a&&u.every((function(e){return 0===e.length})),a=!1,!l){e.next=22;break}return e.next=16,this._fetchLicensingData(r);case 16:if(e.sent!==k.Wv){e.next=21;break}return e.abrupt("continue",5);case 21:throw new Error("Failed to fetch licensing data for CME");case 22:u.some((function(e){return e.length<50}))&&(i=!1),n.push.apply(n,T(u.flat())),s+=200,e.next=31;break;case 27:e.prev=27,e.t0=e.catch(6),i=!1,console.error("Error fetching custom models",e.t0);case 31:e.next=5;break;case 33:return f=n.filter((function(e){return Boolean(null==e?void 0:e.assetId)})),this._renewCallbacks(t,f),e.abrupt("return",f.map((function(e){return V(e)})).filter((function(e){return(null==e?void 0:e.state)===G.InferenceReady||(null==e?void 0:e.state)===G.Published})));case 36:case"end":return e.stop()}}),e,this,[[6,27]])}))),function(e,t){return o.apply(this,arguments)})},{key:"loadCompleted",get:function(){return this.isLoaded}},{key:"preSelectLoaderState",get:function(){return this.customModelPreSelectState}}],r&&N(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=M(c.prototype,"customModels",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l=M(c.prototype,"needsUpdate",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=M(c.prototype,"hasCustomModelAccess",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=M(c.prototype,"hasCustomModelPreviewAccess",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d=M(c.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return x.o.Uninitialized}}),h=M(c.prototype,"customModelPreSelectState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return K.Uninitialized}}),v=M(c.prototype,"hasErrorPreselectingCustomModel",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=M(c.prototype,"reactionDisposer",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=M(c.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),M(c.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(c.prototype,"loadingState"),c.prototype),M(c.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(c.prototype,"isLoaded"),c.prototype),g=M(c.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=A(I().mark((function t(r){var o,i,a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r.ccLibraries,i=r.accessToken,!e.hasCustomModelAccess&&!e.hasCustomModelPreviewAccess){t.next=8;break}return e.setLoadingState(x.o.Loading),t.next=6,e._fetchCustomModels(o,i);case 6:a=t.sent,(0,n.z)((function(){e.customModels=a,e.setLoadingState(x.o.Loaded)}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),b=M(c.prototype,"updateCustomModels",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=A(I().mark((function t(r,o){var i;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loadingState===x.o.Loaded){t.next=3;break}return console.warn("Custom models are not initialized yet"),t.abrupt("return");case 3:if(!e.hasCustomModelAccess&&!e.hasCustomModelPreviewAccess){t.next=8;break}return t.next=6,e._fetchCustomModels(r,o);case 6:i=t.sent,(0,n.z)((function(){e.customModels=i,e.needsUpdate=!1}));case 8:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}}),_=M(c.prototype,"allowCustomModelAccess",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.hasCustomModelAccess=t}}}),w=M(c.prototype,"allowCustomModelPreviewAccess",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.hasCustomModelPreviewAccess=t}}}),E=M(c.prototype,"setNeedsUpdate",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.needsUpdate=t}}}),M(c.prototype,"loadCompleted",[n.Fl],Object.getOwnPropertyDescriptor(c.prototype,"loadCompleted"),c.prototype),S=M(c.prototype,"setCustomModelPreSelectedState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.customModelPreSelectState=t,t===K.NotPreselected&&(e.hasErrorPreselectingCustomModel=!0)}}}),c)},91086:(e,t,r)=>{"use strict";r.d(t,{Ab:()=>w,Qd:()=>k,Rn:()=>p,Tp:()=>b,XA:()=>g,bY:()=>m,f1:()=>E,fd:()=>y,gl:()=>S,gn:()=>f,i_:()=>O,mE:()=>C,os:()=>l,p4:()=>v,sv:()=>h,u$:()=>d,vv:()=>u,zo:()=>_});var n=r(89210);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}var u="/generate",l="/upload",f="/inspire",p="/preview",d="/shared",h="/cme",v="/community/view",y="/loading-express";function m(e){return"".concat(u,"/").concat(e)}function g(e){return"".concat(f,"/").concat(e)}function b(e){return"".concat(l,"/").concat(e)}function _(e){return"".concat(p,"/").concat(e)}function w(e){return"".concat(d,"/").concat(e)}function E(e){return"".concat(h,"/").concat(e)}function S(e){return"".concat(v,"/").concat(e)}var O=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"_registeredModules",new Array),s(this,"_lookupById",new Map)}var t,r;return t=e,(r=[{key:"registerModule",value:function(e){if(this._lookupById.set(e.id,e),!e.disabled)return this._registeredModules=[].concat((t=this._registeredModules,function(e){if(Array.isArray(e))return i(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[e]).sort((function(e,t){return e.position-t.position})),e;var t}},{key:"registeredModules",get:function(){return this._registeredModules}},{key:"getModuleForRoute",value:function(e){return this.registeredModules.find((function(t){return t.routePaths.some((function(t){return t===e||e.startsWith("".concat(t,"/"))}))}))}},{key:"getModuleConfig",value:function(e){return this._lookupById.get(e)}},{key:"getModuleIdFromFeedbackId",value:function(e){var t=n.Zk.Unknown;return this._registeredModules.forEach((function(r){r.analyticsId===e&&(t=r.id)})),t}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());function k(e){return O.getModuleIdFromFeedbackId(e)}function C(e){return O.getModuleConfig(e)}},11579:(e,t,r)=>{"use strict";r.d(t,{Nd:()=>Ba,Mz:()=>Ua,zQ:()=>Ga,BY:()=>Za,Hb:()=>Wa,Jv:()=>Ka,mO:()=>Va,XU:()=>Da,vH:()=>Ha,Bz:()=>Fa,k7:()=>Ma,fp:()=>za,Aw:()=>Ya,p3:()=>Ja});var n=r(37585),o=r(41481),i=r(52406),a=r(96550),s=r(2025),c=r(84087),u=r(52539),l=r(72236),f=r(82542);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=["prompt"];function h(){h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function d(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=d.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==p(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function v(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,s,"next",e)}function s(e){v(i,n,o,a,s,"throw",e)}a(void 0)}))}}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function _(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}var E={styleKit:!0};function S(e){e.prompt;var t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,d);return JSON.stringify(t)}function O(e){switch(e){case o.F8.history:return a.QQ.History;case o.F8.styleKits:return a.QQ.StyleKits;case o.F8.favorites:return a.QQ.Favorites}}var k=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ingest=t,_(this,"_clickSource",{triggerSource:a.lk.create,pageSource:a.w7.contentModule}),_(this,"_renderedPage",{pageSource:"",feedbackId:""}),_(this,"_contextModel",{prompt:""}),_(this,"_contextGuid",(0,l.Z)())}var t,r,n,o,p,d,v,m,w,k,C,x,L,I,P,A,T,R,j,N,D,U,M,F,H,z,B,G,K,V,W,Z,Y,J,q,$,X,Q,ee,te,re,ne,oe,ie,ae,se,ce,ue,le,fe,pe,de,he,ve,ye,me,ge,be,_e,we,Ee,Se,Oe,ke,Ce,xe,Le,Ie,Pe,Ae,Te,Re,je,Ne,De,Ue,Me,Fe,He,ze,Be,Ge,Ke,Ve,We,Ze,Ye,Je,qe,$e,Xe,Qe,et,tt,rt,nt,ot,it,at,st,ct,ut,lt,ft,pt,dt,ht,vt,yt,mt,gt,bt,_t,wt,Et,St,Ot,kt,Ct,xt,Lt,It,Pt,At,Tt,Rt,jt,Nt,Dt,Ut,Mt,Ft,Ht,zt,Bt,Gt,Kt,Vt,Wt,Zt,Yt,Jt,qt,$t,Xt,Qt,er,tr,rr,nr,or;return t=e,r=[{key:"updateEnvironmentServiceInformation",value:function(e){this._ingest.updateEnvServiceInformation(e)}},{key:"setContextModel",value:function(e){var t=this._contextModel;return this._contextModel=e,t}},{key:"getContextModel",value:function(){return this._contextModel}},{key:"getContextGuid",value:function(){return this._contextGuid}},{key:"updateClickSource",value:function(e){this._clickSource=g({},e)}},{key:"updateRenderedPage",value:function(e){this._renderedPage=g({},e)}},{key:"_handleRecordAnalyticsEvent",value:(or=y(h().mark((function e(t,r){var n,o,i,a,s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._contextGuid,(o="generate"===t["event.subtype"]&&"click"===t["event.type"])&&(n=(0,l.Z)(),this._contextGuid=n),i=this._contextModel,a=S(i),s=this._ingest.makeFinalPayload(g({"context.params":a,"context.guid":this._contextGuid,"context.init":!!o},t),r),e.next=8,this._ingest.fireEvent(s,r);case 8:return e.abrupt("return",s);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return or.apply(this,arguments)})},{key:"prompt",get:function(){var e=this._contextModel.prompt;return e&&"string"==typeof e||(e=""),e}},{key:"recordSPLServiceResponse",value:(nr=y(h().mark((function e(t,r,n){var o,i,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._clickSource,i=o.triggerSource,a=o.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":a,"event.subtype":"generate","event.type":"response","content.name":r,"ui.search_keyword":this.prompt,"ui.view_type":i,"trn.duration":n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return nr.apply(this,arguments)})},{key:"recordSPLServiceRequest",value:(rr=y(h().mark((function e(t){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._clickSource,n=r.triggerSource,o=r.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":o,"event.subtype":"generate","event.type":"request","content.name":t,"ui.search_keyword":this.prompt,"ui.view_type":n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return rr.apply(this,arguments)})},{key:"recordSPLServiceResponseInfo",value:(tr=y(h().mark((function e(t,r,n){var o,i,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._clickSource,i=o.triggerSource,a=o.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":a,"event.subtype":"generate","event.type":"info","event.value":JSON.stringify({prompt:r}),"content.name":t,"ui.search_keyword":n,"ui.view_type":i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return tr.apply(this,arguments)})},{key:"recordSPLServiceResponseError",value:(er=y(h().mark((function e(t,r,n){var o,i,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._clickSource,i=o.triggerSource,a=o.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":a,"event.subtype":"generate","event.type":"error","event.value":JSON.stringify({prompt:n}),"event.error_code":r.data.status,"event.error_type":JSON.stringify(r.data.reason),"event.error_desc":r.message,"content.name":t,"ui.view_type":i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return er.apply(this,arguments)})},{key:"recordBlockedUserByOverrideStatusReason",value:(Qt=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._renderedPage.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":r?a.w7.contentModule:n,"event.type":"request-access","event.subtype":"blocked-user","event.value":null!=t?t:"UNKNOWN_REASON","content.name":r,"ui.view_type":"banner"});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return Qt.apply(this,arguments)})},{key:"recordGenericError",value:(Xt=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"site","event.subtype":"render","event.type":"error","event.error_code":r,"event.error_type":"General error","event.error_desc":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Xt.apply(this,arguments)})},{key:"recordRenderPage",value:($t=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"content.id":"","content.name":null!=r?r:"","event.subcategory":t,"event.subtype":"page","event.type":"render"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return $t.apply(this,arguments)})},{key:"recordRenderSharedPage",value:(qt=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":t,"event.subtype":"homePage","event.type":"render","ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return qt.apply(this,arguments)})},{key:"recordRenderFilesPage",value:(Jt=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Files","event.type":"render","event.subtype":"page","event.value":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return Jt.apply(this,arguments)})},{key:"recordRenderModal",value:(Yt=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"content.name":null!=r?r:"","event.subcategory":"modal","event.type":"render","event.subtype":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Yt.apply(this,arguments)})},{key:"recordRenderToast",value:(Zt=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"content.name":null!=r?r:"","event.subcategory":"toast","event.type":"render","event.subtype":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Zt.apply(this,arguments)})},{key:"recordClickGenerate",value:(Wt=y(h().mark((function e(t,r,n,o,i){var s,c,u,l,f;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=this._clickSource,c=s.triggerSource,u=s.pageSource,l=s.homePromptModified,this.setContextModel(r),f={"event.subcategory":u,"event.subtype":"generate","event.type":"click","content.name":i||t,"ui.search_keyword":this.prompt,"ui.view_type":c},u===a.w7.home&&(f["event.value"]=l?"changed prompt":"default prompt"),n&&(f["custom.model_params"]=JSON.stringify({customModelId:n,customModelName:o})),e.next=7,this._handleRecordAnalyticsEvent(f);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return Wt.apply(this,arguments)})},{key:"recordClickUpgrade",value:(Vt=y(h().mark((function e(t){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._renderedPage,n=r.pageSource,o=r.feedbackId,e.next=3,this._handleRecordAnalyticsEvent({"content.name":o,"event.subcategory":"Navigation","event.subtype":"upgrade","event.type":"click","ui.view_type":n,"event.value":t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return Vt.apply(this,arguments)})},{key:"recordCDNRequest",value:(Kt=y(h().mark((function e(t,r){var n,o,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._clickSource,o=n.triggerSource,i=n.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":i,"event.subtype":"generate","event.type":"cdn","content.name":t,"ui.search_keyword":r,"ui.view_type":o});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return Kt.apply(this,arguments)})},{key:"recordClickNavigation",value:(Gt=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Navigation","event.subtype":t,"event.type":"click"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return Gt.apply(this,arguments)})},{key:"recordClickCoachmark",value:(Bt=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.subtype":r,"event.type":"click","event.value":t,"content.name":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Bt.apply(this,arguments)})},{key:"recordRenderCoachmark",value:(zt=y(h().mark((function e(t){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._renderedPage,n=r.pageSource,o=r.feedbackId,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":n,"event.type":"render","event.subtype":"component","content.name":o,"event.value":t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return zt.apply(this,arguments)})},{key:"recordRequestAccess",value:(Ht=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Navigation","event.subtype":"request-access","event.type":"click"},{fireImmediately:!0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return Ht.apply(this,arguments)})},{key:"recordClickSignIn",value:(Ft=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Navigation","event.subtype":"signin","event.type":"click"},{fireImmediately:!0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return Ft.apply(this,arguments)})},{key:"recordClickUserAvatar",value:(Mt=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Navigation","event.subtype":"user-avatar","event.type":"click","event.value":"available-credits:".concat(t.toString())});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return Mt.apply(this,arguments)})},{key:"recordLegalConsentSuccess",value:(Ut=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Product Improvement","event.subtype":"consent","event.type":"success","event.value":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return Ut.apply(this,arguments)})},{key:"recordNSFWPromptError",value:(Dt=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"NSFW","event.type":"error","event.subtype":"negative","event.value":"nsfw","ui.view_type":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return Dt.apply(this,arguments)})},{key:"recordSPLStatusError",value:(Nt=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.type":"error","event.subtype":"generate","event.subcategory":a.w7.contentModule,"event.error_type":t,"event.error_code":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Nt.apply(this,arguments)})},{key:"recordSPLAtCapacityNotifyMe",value:(jt=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.type":"click","event.subtype":"email","event.value":t,"event.subcategory":a.w7.contentModule,"event.error_type":r,"event.error_code":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return jt.apply(this,arguments)})},{key:"recordInpaintClickEvent",value:(Rt=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":t,"event.value":r,"content.name":a.I3.Inpaint,"ui.view_type":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Rt.apply(this,arguments)})},{key:"recordInpaintUploadEvent",value:(Tt=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"image-source","event.value":t,"content.name":a.I3.Inpaint});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return Tt.apply(this,arguments)})},{key:"recordIndemnificationStatus",value:(At=y(h().mark((function e(t,r,n,o){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":r,"event.subtype":"indemnify","event.error_desc":o,"content.name":t,"ui.view_type":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return At.apply(this,arguments)})},{key:"recordACPCopyLinkSuccess",value:(Pt=y(h().mark((function e(t){var r,n,o,i,a,s,c;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.feedbackId,n=t.eventSubtype,o=t.source,i=t.seed,a=t.eventDtsStart,s=t.eventDtsEnd,c=t.eventCloudID,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":o,"content.name":r,"content.id":i,"event.type":"success","event.subtype":n,"event.dts_start":a,"event.dts_end":s,"event.cloud_id":c});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return Pt.apply(this,arguments)})},{key:"recordACPCopyLinkError",value:(It=y(h().mark((function e(t){var r,n,o,i,a,s,c;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.feedbackId,n=t.eventSubtype,o=t.source,i=t.seed,a=t.errorCode,s=t.errorType,c=t.errorDesc,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":o,"content.name":r,"content.id":i,"event.type":"error","event.subtype":n,"event.error_code":a,"event.error_type":s,"event.error_desc":c});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return It.apply(this,arguments)})},{key:"recordSaveToLibrarySuccess",value:(Lt=y(h().mark((function e(t){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.feedbackId,n=t.feedbackSource,o=t.seed,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":n,"content.name":r,"content.id":o,"event.type":"success","event.subtype":a.cp.SaveToLibrary});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return Lt.apply(this,arguments)})},{key:"recordSaveToLibraryError",value:(xt=y(h().mark((function e(t){var r,n,o,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.feedbackId,n=t.feedbackSource,o=t.seed,i=t.errorDesc,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":n,"content.name":r,"content.id":o,"event.type":"error","event.subtype":a.cp.SaveToLibrary,"event.error_desc":i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return xt.apply(this,arguments)})},{key:"recordACPCopyLinkInfo",value:(Ct=y(h().mark((function e(t){var r,n,o,i,a,s,c,u,l,f;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.feedbackId,n=t.eventSubtype,o=t.source,i=t.seed,a=t.errorCode,s=t.errorType,c=t.errorDesc,u=t.eventCloudID,l=t.eventDtsStart,f=t.eventDtsEnd,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":o,"content.name":r,"content.id":i,"event.type":"info","event.subtype":n,"event.error_code":a,"event.error_type":s,"event.error_desc":c,"event.dts_start":l,"event.dts_end":f,"event.cloud_id":u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return Ct.apply(this,arguments)})},{key:"recordFeedbackQuickAction",value:(kt=y(h().mark((function e(t){var r,n,o,i,a,s,c,u,l,f;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.feedbackId,n=t.eventSubtype,o=t.eventValue,i=t.source,a=t.seed,s=t.augmentContextParams,c=t.paywallType,u=t.customModelId,l=t.customModelName,f=this._contextModel,s&&(f=g(g({},f),s)),e.next=5,this._handleRecordAnalyticsEvent({"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(f),"ui.search_keyword":this.prompt,"ui.view_type":i,"content.name":u?"CME":r,"content.id":a,"event.type":"click","event.subtype":n,"event.value":null!=c?c:o,"custom.model_params":JSON.stringify({customModelId:u,customModelName:l})});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return kt.apply(this,arguments)})},{key:"recordClickFeedback",value:(Ot=y(h().mark((function e(t,r,n,o,i,a,s){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordClickFeedbackWithImage(t,r,n,"",o,i,a,s);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i,a){return Ot.apply(this,arguments)})},{key:"recordFeedbackModuleResponse",value:(St=y(h().mark((function e(t,r,n,o){var i,a,s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={"context.params":o,"ui.search_keyword":this.prompt,"ui.view_type":r,"content.name":t},a=g(g({},i),{},{"event.subcategory":"Feedback Module","event.type":"success","event.subtype":"feedback-module","event.value":n,"event.count":2,"context.guid":this._contextGuid}),s={anonymizeIfPrivacyEnforced:!0},e.next=5,this._handleRecordAnalyticsEvent(a,s);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return St.apply(this,arguments)})},{key:"recordFeedbackModuleEntry",value:(Et=y(h().mark((function e(t,r,n){var o,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={"event.subcategory":r,"content.name":t,"event.type":"click","event.subtype":"feature","event.count":1,"event.value":n},i={anonymizeIfPrivacyEnforced:!0},e.next=4,this._handleRecordAnalyticsEvent(o,i);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Et.apply(this,arguments)})},{key:"recordClickFeedbackWithImage",value:(wt=y(h().mark((function e(t,r,n,o,s,c,u,l){var f,p,d,v,y;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r,e.next=e.t0===i.Q4.positive?3:e.t0===i.Q4.negative?5:e.t0===i.Q4.report?7:e.t0===i.Q4.inspiration?9:11;break;case 3:return f=i.f_.positive,e.abrupt("break",13);case 5:return f=i.f_.negative,e.abrupt("break",13);case 7:return f=i.f_.report,e.abrupt("break",13);case 9:return f=i.f_.inspiration,e.abrupt("break",13);case 11:return console.error("err unknown subtype",r),e.abrupt("return");case 13:return p={"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":n,"content.name":c||t,"content.id":s,"event.type":"click","event.subtype":r,"event.value":f,"custom.model_params":JSON.stringify({customModelId:u,customModelName:l})},d={anonymizeIfPrivacyEnforced:!0,fireImmediately:!0},e.next=17,this._handleRecordAnalyticsEvent(p,d);case 17:if(v=e.sent,y=void 0,!o){e.next=23;break}return e.next=22,this.sendBase64FeedbackImage(o,a.pp.Transformed,n,t,f,{anonymizeIfPrivacyEnforced:!0,useGeneratedContentCredentials:!0,useUserInputUploadCredentials:!1});case 22:y=e.sent;case 23:return e.abrupt("return",{clickFeedbackFinalPayload:v,sendImageFinalPayload:y});case 24:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i,a,s){return wt.apply(this,arguments)})},{key:"submitFeedbackForm",value:(_t=y(h().mark((function e(t,r,n,o,s,c,u,l,f){var p,d,v;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p={"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":o,"content.name":t},l&&this.sendBase64FeedbackImage(l,o===i.dX.ImageCaption?a.pp.ImageCaption:a.pp.Transformed,o,t,n,{anonymizeIfPrivacyEnforced:!0,useGeneratedContentCredentials:!0,useUserInputUploadCredentials:!1}),null!=f&&f.structureReferenceImage&&this.sendBase64FeedbackImage(f.structureReferenceImage,a.pp.StructureMatch,o,t,n,{anonymizeIfPrivacyEnforced:!0,useGeneratedContentCredentials:!1,useUserInputUploadCredentials:!0}),null!=f&&f.styleReferenceImage&&this.sendBase64FeedbackImage(f.styleReferenceImage,a.pp.UserStyle,o,t,n,{anonymizeIfPrivacyEnforced:!0,useGeneratedContentCredentials:!1,useUserInputUploadCredentials:!0}),d=g(g({},p),{},{"event.subcategory":"Feedback","event.type":"success","context.guid":this._contextGuid,"event.subtype":r,"event.value":n,"content.category":s,"content.status":c,"custom.feedback_comments":u}),v={anonymizeIfPrivacyEnforced:!0},e.next=8,this._handleRecordAnalyticsEvent(d,v);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i,a,s,c){return _t.apply(this,arguments)})},{key:"sendBase64StyleReferenceImage",value:(bt=y(h().mark((function e(t,r,n,o,i,s,l){var p;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.includes(f.iA)){e.next=2;break}return e.abrupt("return");case 2:if(p=void 0,!(l instanceof Blob)){e.next=9;break}return e.next=6,(0,c.Gt)(l);case 6:p=e.sent,e.next=13;break;case 9:if("string"!=typeof l){e.next=13;break}return e.next=12,(0,u.SI)(l);case 12:p=e.sent;case 13:return e.abrupt("return",this._sendBase64Image(t,{"event.subcategory":"User Style","context.guid":this._contextGuid,"custom.manifest_guid":r,"context.params":S(this._contextModel),"ui.search_keyword":this.prompt,"ui.view_type":i,"content.name":o,"event.type":"content","event.subtype":a.pp.UserStyle,"model.metadata":JSON.stringify(s),"custom.manifest":n,"custom.sha2":p},{anonymizeIfPrivacyEnforced:!0,useGeneratedContentCredentials:!1,useUserInputUploadCredentials:!0}));case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i,a){return bt.apply(this,arguments)})},{key:"sendBase64FeedbackImage",value:(gt=y(h().mark((function e(t,r,n,o,i,a){var s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._sendBase64Image(t,{"event.subcategory":"Feedback","context.guid":this._contextGuid,"context.params":S(this._contextModel),"ui.search_keyword":null!==(s=this._contextModel.prompt)&&void 0!==s?s:"","ui.view_type":n,"content.name":o,"event.type":"content","event.subtype":r,"event.value":i},a));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i){return gt.apply(this,arguments)})},{key:"_sendBase64Image",value:(mt=y(h().mark((function e(t,r,n){var o,i,a,s,c,l,f,p,d;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=null===(o=n.useGeneratedContentCredentials)||void 0===o||o,c=null!==(i=n.useUserInputUploadCredentials)&&void 0!==i&&i,l=null!==(a=n.anonymizeIfPrivacyEnforced)&&void 0!==a&&a,e.prev=3,e.next=6,(0,u.su)(t,512);case 6:if(!(f=e.sent)){e.next=15;break}return e.next=10,(0,u.w8)(f.blob);case 10:return p=e.sent,d={useGeneratedContentCredentials:s,useUserInputUploadCredentials:c,fireImmediately:!0,anonymizeIfPrivacyEnforced:l},e.next=14,this._handleRecordAnalyticsEvent(g(g({},r),{},{"custom.content_params":p}),d);case 14:return e.abrupt("return",e.sent);case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(3),console.error("error sending base64",e.t0);case 20:case"end":return e.stop()}}),e,this,[[3,17]])}))),function(e,t,r){return mt.apply(this,arguments)})},{key:"recordRenderComponentEvent",value:(yt=y(h().mark((function e(t,r,n){var o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._renderedPage.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":t,"event.type":"render","event.subtype":"component","event.value":null!=r?r:"text","content.name":null!=n?n:o});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return yt.apply(this,arguments)})},{key:"recordRenderMerchandizingEvent",value:(vt=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":t,"event.type":"render","event.subtype":"banner","event.value":null!=r?r:"","content.name":null!=n?n:"","exp.container_id":null==o?void 0:o.containerId,"exp.control_group_id":null==o?void 0:o.controlGroupId,"exp.treatment_id":null==o?void 0:o.treatmentId,"exp.campaign_id":null==i?void 0:i.campaignId,"exp.variation_id":null==i?void 0:i.variationId});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return vt.apply(this,arguments)})},{key:"recordCloseMerchandizingEvent",value:(ht=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.mx.Merchandizing,"event.type":"close","event.subtype":"banner","event.value":null!=t?t:"","content.name":r,"exp.container_id":null==n?void 0:n.containerId,"exp.control_group_id":null==n?void 0:n.controlGroupId,"exp.treatment_id":null==n?void 0:n.treatmentId});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return ht.apply(this,arguments)})},{key:"recordClickMerchandizingUrlEvent",value:(dt=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.mx.Merchandizing,"event.type":"click","event.subtype":"banner","event.value":null!=t?t:"","content.name":r,"exp.container_id":null==n?void 0:n.containerId,"exp.control_group_id":null==n?void 0:n.controlGroupId,"exp.treatment_id":null==n?void 0:n.treatmentId});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return dt.apply(this,arguments)})},{key:"recordPaywallCloseComponentEvent",value:(pt=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._renderedPage.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":a.mx.Paywall,"event.type":"close","event.subtype":"component","event.value":r,"content.name":null!=t?t:""===n?a.w7.home:n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return pt.apply(this,arguments)})},{key:"recordPaywallPurchaseErrorEvent",value:(ft=y(h().mark((function e(t){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._renderedPage.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":a.mx.Paywall,"event.type":"error","event.subtype":"purchase","content.name":null!=t?t:""===r?a.w7.home:r});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return ft.apply(this,arguments)})},{key:"recordPaywallPurchaseSuccessEvent",value:(lt=y(h().mark((function e(t,r,n,o){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._renderedPage.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":a.mx.Paywall,"event.type":"success","event.subtype":"purchase","event.value":o,"content.name":null!=t?t:""===i?a.w7.home:i,"trn.number":r,"trn.product":n,"trn.quantity":1,"trn.amount":""});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return lt.apply(this,arguments)})},{key:"recordPaywallClickLinkEvent",value:(ut=y(h().mark((function e(t,r,n){var o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._renderedPage.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":a.mx.Paywall,"event.type":"click","event.subtype":"link","event.value":r,"content.name":null!=t?t:""===o?a.w7.home:o,"content.action":n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return ut.apply(this,arguments)})},{key:"recordContentModuleClickUpgradeEvent",value:(ct=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"upgrade","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return ct.apply(this,arguments)})},{key:"recordClickRequestUpgradeEvent",value:(st=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"request","event.value":r,"content.name":t,"ui.view_type":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return st.apply(this,arguments)})},{key:"recordClickPromptToggle",value:(at=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"toggle","event.value":n?"on":"off","content.name":r,"context.params":JSON.stringify(t)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return at.apply(this,arguments)})},{key:"recordClickRefreshPromptSuggestion",value:(it=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"context.params":JSON.stringify({seed:t,pipelineVersion:r,"org.search_keyword":n}),"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"refresh-prompt-suggestion","content.name":o,"ui.view_type":i});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return it.apply(this,arguments)})},{key:"recordClickPromptSuggestion",value:(ot=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"autocomplete","content.name":r,"ui.search_keyword":n,"context.params":JSON.stringify(t)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return ot.apply(this,arguments)})},{key:"recordClickConsentUserStyle",value:(nt=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"User Style","event.type":"click","event.subtype":"consent","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return nt.apply(this,arguments)})},{key:"recordInfoUploadUserStyle",value:(rt=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"User Style","event.type":"info","event.subtype":"upload","content.name":t,"event.error_code":0,"event.error_type":o,"event.error_desc":i,"custom.manifest_guid":r,"custom.manifest":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return rt.apply(this,arguments)})},{key:"recordSuccessStyleMatchUpload",value:(tt=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordUpload({feedbackId:t,viewType:r,subcategory:"User Style",type:a.AJ.Success});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return tt.apply(this,arguments)})},{key:"recordErrorUploadUserStyle",value:(et=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"User Style","event.type":"error","event.subtype":"upload","content.name":t,"event.error_code":0,"event.error_type":"Upload error","event.error_desc":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return et.apply(this,arguments)})},{key:"recordHoverCommunityHubCard",value:(Qe=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"hover","event.subtype":"community-card","event.value":i,"content.name":t,"ui.search_keyword":o,"content.type":n,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return Qe.apply(this,arguments)})},{key:"recordClickLikeCommunityHubCard",value:(Xe=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"community-card-like","event.value":i,"content.name":t,"ui.search_keyword":o,"content.type":n,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return Xe.apply(this,arguments)})},{key:"recordClickViewCommunityHubCard",value:($e=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"community-card-view","event.value":i,"content.name":t,"ui.search_keyword":o,"content.type":n,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return $e.apply(this,arguments)})},{key:"recordClickPlayCommunityHubCard",value:(qe=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"community-card-play","event.value":i,"content.name":t,"ui.search_keyword":o,"content.type":n,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return qe.apply(this,arguments)})},{key:"recordClickWatchCommunityHubCard",value:(Je=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"community-card-watch","event.value":i,"content.name":t,"ui.search_keyword":o,"content.type":n,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return Je.apply(this,arguments)})},{key:"recordClickTikTokTryNowCommunityHub",value:(Ye=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"tik-tok-lightbox-try","event.value":r,"ui.search_keyword":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Ye.apply(this,arguments)})},{key:"recordClickInstagramTryNowCommunityHub",value:(Ze=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"instagram-lightbox-try","event.value":r,"ui.search_keyword":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Ze.apply(this,arguments)})},{key:"recordClickPlayCommunityHubLive",value:(We=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"community-hub-live-play","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return We.apply(this,arguments)})},{key:"recordClickPauseCommunityHubLive",value:(Ve=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"community-hub-live-pause","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Ve.apply(this,arguments)})},{key:"recordClickMaximizeCommunityHubLive",value:(Ke=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Community Hub","event.type":"click","event.subtype":"community-hub-live-maximize","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Ke.apply(this,arguments)})},{key:"recordClickDownloadLiveSubmission",value:(Ge=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"PageSource.yourSubmissions","event.type":"click","event.subtype":"live-submission-download","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Ge.apply(this,arguments)})},{key:"recordClickDeleteLiveSubmission",value:(Be=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"PageSource.yourSubmissions","event.type":"click","event.subtype":"live-submission-delete","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Be.apply(this,arguments)})},{key:"recordClickConfirmArchiveLiveSubmission",value:(ze=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"PageSource.yourSubmissions","event.type":"click","event.subtype":"live-submission-confirm-archive","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return ze.apply(this,arguments)})},{key:"recordClickViewLiveSubmission",value:(He=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"PageSource.yourSubmissions","event.type":"click","event.subtype":"live-submission-view","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return He.apply(this,arguments)})},{key:"recordClickDownloadPendingSubmission",value:(Fe=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"PageSource.yourSubmissions","event.type":"click","event.subtype":"pending-submission-download","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Fe.apply(this,arguments)})},{key:"recordClickDeletePendingSubmission",value:(Me=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"PageSource.yourSubmissions","event.type":"click","event.subtype":"pending-submission-delete","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Me.apply(this,arguments)})},{key:"recordClickViewPendingSubmission",value:(Ue=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.yourSubmissions,"event.type":"click","event.subtype":"pending-submission-view","event.value":n,"content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Ue.apply(this,arguments)})},{key:"recordSubmitImageCommunityHub",value:(De=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"community-hub-submit","content.name":t,"ui.search_keyword":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return De.apply(this,arguments)})},{key:"recordDownloadWithoutWatermarkSuccess",value:(Ne=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":r,"event.type":"success","event.subtype":"download-without-watermark","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Ne.apply(this,arguments)})},{key:"recordClickBuyCredits",value:(je=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Paywall","event.type":"click","event.subtype":"buy-credits","event.value":n,"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return je.apply(this,arguments)})},{key:"recordClickRequestAccess",value:(Re=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Request Access","event.type":"click","event.subtype":"request-credits","content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Re.apply(this,arguments)})},{key:"recordClickChangeModel",value:(Te=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"property","event.value":"model-picker","content.name":t,"model.version":n,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Te.apply(this,arguments)})},{key:"recordClickImageThumbnail",value:(Ae=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"action","event.value":"thumbnail","event.count":n,"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Ae.apply(this,arguments)})},{key:"recordClickCarouselRightNavigation",value:(Pe=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"action","event.value":"right-carousel","event.count":n,"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Pe.apply(this,arguments)})},{key:"recordClickCarouselLeftNavigation",value:(Ie=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"action","event.value":"left-carousel","event.count":n,"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Ie.apply(this,arguments)})},{key:"recordClickCarouselImage",value:(Le=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"action","event.value":"image","event.count":n,"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Le.apply(this,arguments)})},{key:"recordClickExpandControl",value:(xe=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"action","event.value":"expand:".concat(n),"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return xe.apply(this,arguments)})},{key:"recordClickCollapseControl",value:(Ce=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"action","event.value":"collapse:".concat(n),"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return Ce.apply(this,arguments)})},{key:"recordRenderErrorUnsupportedVersion",value:(ke=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"render","event.subtype":"error","content.name":t,"ui.view_type":r,"event.error_code":n,"event.error_type":o,"event.error_desc":i});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return ke.apply(this,arguments)})},{key:"recordUpload",value:(Oe=y(h().mark((function e(t){var r,n,o,i,a,s,c,u,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.feedbackId,n=t.viewType,o=t.subcategory,i=t.type,a=t.errorCode,s=t.errorType,c=t.errorDesc,u=t.contextParams,l={"event.subcategory":o,"event.type":i,"event.subtype":"upload","content.name":r,"ui.view_type":n,"event.error_code":a,"event.error_type":s,"event.error_desc":c},u&&(l["context.params"]=u),e.next=5,this._handleRecordAnalyticsEvent(l);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return Oe.apply(this,arguments)})},{key:"recordSuccessStructureMatchUpload",value:(Se=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordUpload({feedbackId:t,viewType:r,subcategory:"Structure Match",type:a.AJ.Success});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return Se.apply(this,arguments)})},{key:"recordErrorStructureMatchUpload",value:(Ee=y(h().mark((function e(t,r,n,o,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordUpload({feedbackId:t,viewType:r,subcategory:"Structure Match",type:a.AJ.Success,errorCode:n,errorType:o,errorDesc:i});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o){return Ee.apply(this,arguments)})},{key:"recordClickStructureMatchStrength",value:(we=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Content Module","event.type":"click","event.subtype":"property","event.value":"structure:strength","event.count":n,"content.name":t,"ui.view_type":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return we.apply(this,arguments)})},{key:"recordCustomModelEditorRenderPage",value:(_e=y(h().mark((function e(t,r,n,o,i,a,s){var c,u,l,f,p,d,v,y,m;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v=this._renderedPage,y=v.pageSource,m=v.feedbackId,e.next=3,this._handleRecordAnalyticsEvent({"content.name":m,"event.value":null!=t?t:"","event.subcategory":y,"event.subtype":n,"event.type":"render","ui.view_type":null!=r?r:"","model.id":null!==(c=null==o?void 0:o.modelId)&&void 0!==c?c:"","model.name":null!==(u=null==o?void 0:o.modelName)&&void 0!==u?u:"","model.desc":null!==(l=null==o?void 0:o.description)&&void 0!==l?l:"","model.type":null!==(f=null==o?void 0:o.type)&&void 0!==f?f:"","model.status":null!==(p=null==o?void 0:o.status)&&void 0!==p?p:"","model.version":null!==(d=null==o?void 0:o.version)&&void 0!==d?d:"","event.error_code":null!=i?i:0,"event.error_type":null!=a?a:"","event.error_desc":null!=s?s:""});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i,a){return _e.apply(this,arguments)})},{key:"recordCustomModelsRenderPage",value:(be=y(h().mark((function e(t,r,n,o,i,a,s){var c,u,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this._renderedPage,u=c.pageSource,l=c.feedbackId,e.next=3,this._handleRecordAnalyticsEvent({"content.name":l,"event.value":null!=t?t:"","event.subcategory":u,"event.subtype":n,"event.type":"render","event.count":null!=o?o:0,"ui.view_type":null!=r?r:"","event.error_code":null!=i?i:0,"event.error_type":null!=a?a:"","event.error_desc":null!=s?s:""});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i,a){return be.apply(this,arguments)})},{key:"recordCustomModelClick",value:(ge=y(h().mark((function e(t,r,n){var o,i,c,u,l,f,p,d,v,y,m,g,b,_=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=_.length>3&&void 0!==_[3]?_[3]:s.xW.Click,i=_.length>4&&void 0!==_[4]?_[4]:s.Zp.Action,u=_.length>6?_[6]:void 0,l=_.length>7?_[7]:void 0,f=_.length>8?_[8]:void 0,p=_.length>9?_[9]:void 0,d=_.length>10?_[10]:void 0,!(c=_.length>5?_[5]:void 0)){e.next=14;break}return e.next=11,this._handleRecordAnalyticsEvent({"content.name":t,"event.value":r,"event.subcategory":a.w7.customModelsTraining,"event.subtype":i,"event.type":o,"model.id":null!==(v=null==c?void 0:c.modelId)&&void 0!==v?v:"","model.name":null!==(y=null==c?void 0:c.modelName)&&void 0!==y?y:"","model.desc":null!==(m=null==c?void 0:c.description)&&void 0!==m?m:"","model.type":null!==(g=null==c?void 0:c.type)&&void 0!==g?g:"","model.status":null!==(b=null==c?void 0:c.status)&&void 0!==b?b:"","event.count":l,"ui.view_type":null!=n?n:"","ui.filter":u,"event.error_code":null!=f?f:0,"event.error_type":null!=p?p:"","event.error_desc":null!=d?d:""});case 11:case 16:return e.abrupt("return",e.sent);case 14:return e.next=16,this._handleRecordAnalyticsEvent({"content.name":t,"event.value":r,"event.subcategory":a.w7.customModelsTraining,"event.subtype":i,"event.type":o,"ui.view_type":null!=n?n:"","ui.filter":u,"event.error_code":null!=f?f:0,"event.error_type":null!=p?p:"","event.error_desc":null!=d?d:""});case 17:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return ge.apply(this,arguments)})},{key:"recordClickTryCustomModels",value:(me=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.customModelsTraining,"content.name":t,"event.type":"click","event.subtype":"try"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return me.apply(this,arguments)})},{key:"recordClickModuleCarouselChevron",value:(ye=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.home,"event.type":"click","event.subtype":"action","event.value":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return ye.apply(this,arguments)})},{key:"recordClickModuleCarouselCard",value:(ve=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.home,"event.type":"click","event.subtype":"carousel","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return ve.apply(this,arguments)})},{key:"recordClickViewCommunityGallery",value:(he=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.home,"event.type":"click","event.subtype":"view-community-gallery"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return he.apply(this,arguments)})},{key:"recordClickNavbarItem",value:(de=y(h().mark((function e(t){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.subtype,n=t.eventValue,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Navigation","event.type":"click","event.subtype":r,"event.value":n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return de.apply(this,arguments)})},{key:"recordClickFeedbackMenuItem",value:(pe=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordClickNavbarItem({subtype:a.kk.Feedback,eventValue:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return pe.apply(this,arguments)})},{key:"recordClickWhatsNewIcon",value:(fe=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordClickNavbarItem({subtype:a.kk.WhatsNew});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return fe.apply(this,arguments)})},{key:"recordClickWhatsNewSectionTitle",value:(le=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"What's New","event.type":"click","event.subtype":"section","event.value":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return le.apply(this,arguments)})},{key:"recordClickWhatsNewCTA",value:(ue=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"What's New","event.type":"click","event.subtype":"feature","event.value":t,"content.name":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return ue.apply(this,arguments)})},{key:"recordClickSaveStyleKit",value:(ce=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Style Kit","event.type":"click","event.subtype":"save","context.params":"{}","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return ce.apply(this,arguments)})},{key:"recordClickSelectAllStyleKit",value:(se=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Style Kit","event.type":"click","event.subtype":"select all","context.params":"{}","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return se.apply(this,arguments)})},{key:"recordSuccessSaveStyleKit",value:(ae=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Style Kit","event.type":"success","event.subtype":"save","context.params":JSON.stringify(r),"content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return ae.apply(this,arguments)})},{key:"recordErrorSaveStyleKit",value:(ie=y(h().mark((function e(t,r,n,o){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Style Kit","event.type":"error","event.subtype":"save","context.params":JSON.stringify(r),"content.name":t,"event.error_type":n,"event.error_desc":o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return ie.apply(this,arguments)})},{key:"recordClickCancelSaveStyleKit",value:(oe=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Style Kit","event.type":"click","event.subtype":"action","event.value":"cancel","context.params":"{}","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return oe.apply(this,arguments)})},{key:"recordClickResetSettingsStyleKit",value:(ne=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Style Kit","event.type":"click","event.subtype":"action","event.value":"reset-settings","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return ne.apply(this,arguments)})},{key:"recordClickBrowseStyleKit",value:(re=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"action","event.value":"browse-kits","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return re.apply(this,arguments)})},{key:"recordClickSelectStyleKit",value:(te=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=g(g({},n=this._contextModel),r),e.next=4,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"context.params":S(n),"event.type":"click","event.subtype":"action","event.value":"select-style-kit","content.name":t});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return te.apply(this,arguments)})},{key:"recordClickRemoveStyleKit",value:(ee=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=g(g({},n=this._contextModel),r),e.next=4,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"context.params":S(n),"event.type":"click","event.subtype":"action","event.value":"remove-style-kit","content.name":t});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return ee.apply(this,arguments)})},{key:"recordClickDeselectStyleKit",value:(Q=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=g(g({},n=this._contextModel),r),e.next=4,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"context.params":S(n),"event.type":"click","event.subtype":"action","event.value":"deselect-style-kit","content.name":t});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return Q.apply(this,arguments)})},{key:"recordClickStyleKitGalleryViewInFiles",value:(X=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"action","event.value":"view-in-files","content.name":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"recordClickInviteShareStyleKit",value:($=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=g({},E),e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Share","event.type":"click","event.subtype":"action","event.value":"share","event.count":r,"context.params":JSON.stringify(n),"content.name":t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return $.apply(this,arguments)})},{key:"recordClickCopyLinkShareStyleKit",value:(q=y(h().mark((function e(t,r,n){var o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=g(g({},n),E),e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Share","event.type":"click","event.subtype":"action","event.value":"copy-link","event.count":r,"context.params":JSON.stringify(o),"content.name":t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return q.apply(this,arguments)})},{key:"recordClickCancelShareStyleKit",value:(J=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=g({},E),e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Share","event.type":"click","event.subtype":"action","event.count":r,"event.value":"cancel","context.params":JSON.stringify(n),"content.name":t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return J.apply(this,arguments)})},{key:"recordSuccessShareStyleKit",value:(Y=y(h().mark((function e(t,r,n,o){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=g(g({},o),{},{accessType:n},E),e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Share","event.type":"success","event.subtype":"share","event.count":r,"context.params":JSON.stringify(i),"content.name":t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return Y.apply(this,arguments)})},{key:"recordErrorShareStyleKit",value:(Z=y(h().mark((function e(t,r,n,o,i,a){var s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=g(g({},r),E),e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":"Share","event.type":"error","event.subtype":"share","context.params":JSON.stringify(s),"content.name":t,"event.count":n,"event.error_code":o,"event.error_type":i,"event.error_desc":a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i){return Z.apply(this,arguments)})},{key:"recordClickTabViewInFiles",value:(W=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Files","event.type":"click","event.subtype":"action","event.value":O(t)});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return W.apply(this,arguments)})},{key:"recordClickViewStyleKitCard",value:(V=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Files","event.type":"click","event.subtype":"style-kit-card-view","event.value":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return V.apply(this,arguments)})},{key:"recordAutodubUploadStartEvent",value:(K=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setContextModel(t),e.next=3,this.recordUpload({feedbackId:a.I3.Autodub,viewType:r,subcategory:a.w7.dubbingAndLipSync,type:a.AJ.Click});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return K.apply(this,arguments)})},{key:"recordAutodubUploadSuccessEvent",value:(G=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordUpload({feedbackId:a.I3.Autodub,viewType:t,subcategory:a.w7.dubbingAndLipSync,type:a.AJ.Success});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return G.apply(this,arguments)})},{key:"recordAutodubUploadFailureEvent",value:(B=y(h().mark((function e(t,r,n,o){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordUpload({feedbackId:a.I3.Autodub,viewType:t,subcategory:a.w7.dubbingAndLipSync,type:a.AJ.Failure,errorCode:r,errorType:n,errorDesc:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return B.apply(this,arguments)})},{key:"recordAutodubGenerateError",value:(z=y(h().mark((function e(t,r,n,o){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._clickSource.pageSource,e.next=3,this._handleRecordAnalyticsEvent({"event.subcategory":i,"event.subtype":"generate","event.type":"error","event.error_code":r,"event.error_type":n,"event.error_desc":o,"content.name":t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return z.apply(this,arguments)})},{key:"recordAutodubRenderPostUploadPage",value:(H=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"content.name":null!=t?t:"","event.subcategory":a.w7.dubbingAndLipSync,"event.subtype":"page","event.type":"render","event.value":"adls-post-upload"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return H.apply(this,arguments)})},{key:"recordClickAutodubAsyncQueue",value:(F=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"content.name":null!=t?t:"","event.subcategory":a.w7.dubbingAndLipSync,"event.subtype":"queue","event.type":"click"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return F.apply(this,arguments)})},{key:"recordAutodubGenericError",value:(M=y(h().mark((function e(t,r,n,o){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.dubbingAndLipSync,"event.subtype":t,"event.type":"error","content.name":a.I3.Autodub,"event.error_code":n,"event.error_type":o,"event.error_desc":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return M.apply(this,arguments)})},{key:"recordRenderObjectCompositeInPromptBar",value:(U=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"render","event.subtype":"object-composite-prompt","content.name":a.I3.Text2Image});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return U.apply(this,arguments)})},{key:"recordClickCancelObjectComposite",value:(D=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Object Composite","event.type":"click","event.subtype":"action","event.value":"cancel","ui.view_type":"set-position","content.name":a.I3.Text2Image});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"recordClickConfirmObjectComposite",value:(N=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Object Composite","event.type":"click","event.subtype":"action","event.value":"confirm","content.name":a.I3.Text2Image,"ui.view_type":"set-position"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return N.apply(this,arguments)})},{key:"recordClickRemoveBackgroundObjectComposite",value:(j=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"Object Composite","event.type":"click","event.subtype":"action","event.value":"remove-background","content.name":a.I3.Text2Image});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return j.apply(this,arguments)})},{key:"recordClickClearStyleObjectComposite",value:(R=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"clear-style","content.name":a.I3.Text2Image});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"recordClickCustomModelsVideoClick",value:(T=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.customModelsVideoPage,"event.type":"click","event.subtype":"action","event.value":t,"event.count":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"recordCustomModelsVideoPageRender",value:(A=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"content.id":"","content.name":null!=r?r:"","event.subcategory":t,"event.subtype":"page","event.type":"render","event.value":t.toLowerCase()});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"recordWorkFlowLandingPageRender",value:(P=y(h().mark((function e(t,r,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"content.id":"","event.subcategory":t,"event.subtype":"page","event.type":"render","event.value":r,"event.referrer":n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return P.apply(this,arguments)})},{key:"recordPickWinnerRendered",value:(I=y(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.pickWinnerView,"event.type":"render","event.subtype":"feedback-winner","content.name":a.I3.WinnerProject});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return I.apply(this,arguments)})},{key:"recordPickWinnerClickMode",value:(L=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.pickWinnerView,"event.type":"click","event.subtype":"feature","event.value":"".concat(t,"-mode"),"content.name":a.I3.WinnerProject});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"recordPickWinnerModelWinnerClick",value:(x=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.pickWinnerView,"event.type":"click","event.subtype":"winner","content.name":a.I3.WinnerProject,"event.value":t,"event.count":r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return x.apply(this,arguments)})},{key:"recordClickChangeText2ImageView",value:(C=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"switch-view","content.name":a.I3.Text2Image,"event.value":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return C.apply(this,arguments)})},{key:"recordVideoObjectRemovalTimelinePageInteractions",value:(k=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={"content.name":a.I3.VideoObjectRemoval,"event.subcategory":a.w7.contentModule,"event.type":"click","event.subtype":"action","event.value":t},r&&(n["context.params"]=JSON.stringify(r)),e.next=4,this._handleRecordAnalyticsEvent(n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return k.apply(this,arguments)})},{key:"recordVideoObjectRemovalRenderPage",value:(w=y(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t||void 0!==r){e.next=2;break}return e.abrupt("return");case 2:return n={"content.name":a.I3.VideoObjectRemoval,"event.subcategory":a.w7.contentModule,"event.subtype":"page","event.type":"render"},t&&(n["event.count"]=t),r&&(n["event.value"]=r.toString()),e.next=7,this._handleRecordAnalyticsEvent(n);case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"recordVideoObjectRemovalUploadEvent",value:(m=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.recordUpload({feedbackId:a.I3.VideoObjectRemoval,subcategory:"Object Removal",viewType:t,type:a.AJ.Click});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"recordCustomModelsRenderCoachmark",value:(v=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":t,"event.type":"render","event.subtype":"component","event.value":"coachmark"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"recordClickCustomModelsCoachmark",value:(d=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._handleRecordAnalyticsEvent({"event.subcategory":"CME","event.subtype":"coachmark","event.type":"click","event.value":t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"recordVideoObjectRemovalServiceEventResponse",value:(p=y(h().mark((function e(t,r,n,o){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={"content.name":a.I3.VideoObjectRemoval,"event.subcategory":a.w7.contentModule,"event.type":t,"event.subtype":"remove"},void 0!==r&&(i["event.count"]=r),n&&(i["event.error_desc"]=n),o&&(i["event.error_type"]=o),e.next=6,this._handleRecordAnalyticsEvent(i);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return p.apply(this,arguments)})},{key:"recordVideoObjectRemovalDownloadEvent",value:(o=y(h().mark((function e(t,r,n,o){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={"content.name":a.I3.VideoObjectRemoval,"event.subcategory":a.w7.contentModule,"event.type":t,"event.subtype":"download","event.value":"download","ui.view_type":"Header"},r&&(i["context.params"]=JSON.stringify(r)),n&&(i["event.error_desc"]=n),o&&(i["event.error_type"]=o),e.next=6,this._handleRecordAnalyticsEvent(i);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"recordVideoObjectRemovalStatusEvent",value:(n=y(h().mark((function e(t,r,n,o,i){var s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=i?JSON.stringify(i):void 0,e.next=3,this.recordUpload({feedbackId:a.I3.VideoObjectRemoval,subcategory:"Object Removal",viewType:t,type:r,errorType:n,errorDesc:o,contextParams:s});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r,o,i){return n.apply(this,arguments)})}],r&&b(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),C=r(47788);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}function I(e,t,r){return t&&L(e.prototype,t),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e,t,r){return(t=A(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===x(t)?t:String(t)}var T,R,j,N,D,U,M,F,H,z,B,G,K,V,W,Z,Y,J,q,$,X=I((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),P(this,"ingest",void 0),P(this,"analytics",void 0),(0,n.ky)(this),this.ingest=new C.iR,this.analytics=new k(this.ingest)})),Q=r(23788),ee=r(78718),te=r(12106),re=r(44926),ne=r(5591);function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ie(){ie=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==oe(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function ae(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function se(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ae(i,n,o,a,s,"next",e)}function s(e){ae(i,n,o,a,s,"throw",e)}a(void 0)}))}}function ce(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fe(n.key),n)}}function le(e,t,r){return(t=fe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e){var t=function(e,t){if("object"!==oe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===oe(t)?t:String(t)}function pe(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var de="signOut",he=(T=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.languageStore=t,le(this,"ims",void 0),le(this,"broadcastChannel",void 0),ce(this,"_userProfile",R,this),ce(this,"_accessToken",j,this),ce(this,"_shouldResumeHomePageFlow",N,this),ce(this,"_loadingState",D,this),ce(this,"_entitlementStore",U,this),ce(this,"showSUSIDialog",M,this),ce(this,"signedInCallbackCalled",F,this),ce(this,"_isSignedIn",H,this),ce(this,"initialize",z,this),ce(this,"setLoadingState",B,this),ce(this,"setAccessToken",G,this),ce(this,"setSignedInCallbackCalled",K,this),ce(this,"setShouldResumeHomePageFlow",V,this),ce(this,"updateSignedInState",W,this),le(this,"setIsSignedIn",(function(){var e;r._isSignedIn=r.ims.isSignedInUser(),r._accessToken&&null!==(e=r._entitlementStore)&&void 0!==e&&e.isLoaded&&r._entitlementStore.forceUpdateEntitlement()})),ce(this,"setUserProfile",Z,this),le(this,"ensureSignedInUser",(function(){r.ims.ensureSignedInUser()})),le(this,"clearPagePersistedState",(function(){(0,ne.ze)("pagePersistedState"),r.shouldResumeHomePageFlow&&r.setShouldResumeHomePageFlow(!1)})),ce(this,"signOut",Y,this),le(this,"signedInCallback",void 0),ce(this,"setShowSUSIDialog",J,this),ce(this,"hideSUSIDialog",q,this),ce(this,"signIn",$,this),le(this,"imsRefreshToken",(function(){r.ims.adobeIMS.refreshToken()})),(0,n.rC)(this),this.ims=new ee.E$(Q.jf,!0),this.broadcastChannel=new BroadcastChannel("authProvider"),this.broadcastChannel.onmessage=function(e){var t=e.data,n=t.message,o=t.route;n===de&&r._isSignedIn&&r.signOut(o)}}var t,r;return t=e,(r=[{key:"imsLocale",get:function(){return this.languageStore.lang.replace("_","-").toLowerCase()}},{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"userId",get:function(){var e,t;return null!==(e=null===(t=this.userProfile)||void 0===t?void 0:t.authId)&&void 0!==e?e:""}},{key:"userProfile",get:function(){return this._userProfile||null}},{key:"accessToken",get:function(){return this._accessToken}},{key:"isSignedIn",get:function(){return this._isSignedIn}},{key:"isEnterprise",get:function(){var e;return(0,ee.Fd)(null===(e=this.userProfile)||void 0===e?void 0:e.account_type)}},{key:"isNonAdobeEnterpriseUser",get:function(){var e,t;return(0,ee.Fd)(null===(e=this.userProfile)||void 0===e?void 0:e.account_type)&&!(0,ee.K9)(null===(t=this.userProfile)||void 0===t?void 0:t.authId)}},{key:"shouldResumeHomePageFlow",get:function(){return this._shouldResumeHomePageFlow}},{key:"persistedPrompt",get:function(){if(this.shouldResumeHomePageFlow){var e,t=null===(e=this.parsePagePersistedState())||void 0===e?void 0:e.state;return null==t?void 0:t.prompt}return null}},{key:"parsePagePersistedState",value:function(){var e=(0,ne.m3)("pagePersistedState");if(!e)return{};try{return JSON.parse(e)}catch(e){return console.error("Error parsing page persisted state",e),{}}}},{key:"config",get:function(){return this.ims.config}}])&&ue(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),R=pe(T.prototype,"_userProfile",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=pe(T.prototype,"_accessToken",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),N=pe(T.prototype,"_shouldResumeHomePageFlow",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=pe(T.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),U=pe(T.prototype,"_entitlementStore",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=pe(T.prototype,"showSUSIDialog",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F=pe(T.prototype,"signedInCallbackCalled",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H=pe(T.prototype,"_isSignedIn",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pe(T.prototype,"imsLocale",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"imsLocale"),T.prototype),z=pe(T.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=se(ie().mark((function t(r){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setLoadingState(te.o.Loading),e._entitlementStore=r.entitlementStore,e.ims.addTokenListener((function(){e.updateSignedInState(),e.signedInCallback&&!e.signedInCallbackCalled?(e.signedInCallback(),e.setSignedInCallbackCalled(!0)):(0,re.G6)()&&"Home"===e.parsePagePersistedState().page&&e.setShouldResumeHomePageFlow(!0)})),e.ims.addProfileListener((function(t){e.setUserProfile(t)})),t.prev=4,t.next=7,e.ims.load().catch((function(e){return console.error("Failed to load IMS script",e)}));case 7:return t.next=9,e.updateSignedInState();case 9:e.setLoadingState(te.o.Loaded),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),console.error("Error loading IMS: ",t.t0);case 15:case"end":return t.stop()}}),t,null,[[4,12]])})));return function(e){return t.apply(this,arguments)}}()}}),B=pe(T.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),pe(T.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"loadingState"),T.prototype),pe(T.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"isLoaded"),T.prototype),G=pe(T.prototype,"setAccessToken",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var r;e._accessToken=t,t&&null!==(r=e._entitlementStore)&&void 0!==r&&r.isLoaded&&e._entitlementStore.forceUpdateEntitlement()}}}),K=pe(T.prototype,"setSignedInCallbackCalled",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.signedInCallbackCalled=t}}}),V=pe(T.prototype,"setShouldResumeHomePageFlow",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._shouldResumeHomePageFlow=t}}}),pe(T.prototype,"userId",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"userId"),T.prototype),W=pe(T.prototype,"updateSignedInState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return se(ie().mark((function t(){var r;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null!=(r=e.ims.adobeIMS.getAccessToken())&&r.token&&e.setAccessToken(r.token),e.setIsSignedIn(),t.t0=e,t.next=6,e.ims.getProfile();case 6:t.t1=t.sent,t.t0.setUserProfile.call(t.t0,t.t1);case 8:case"end":return t.stop()}}),t)})))}}),pe(T.prototype,"userProfile",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"userProfile"),T.prototype),Z=pe(T.prototype,"setUserProfile",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._userProfile=t}}}),pe(T.prototype,"accessToken",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"accessToken"),T.prototype),pe(T.prototype,"isSignedIn",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"isSignedIn"),T.prototype),pe(T.prototype,"isEnterprise",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"isEnterprise"),T.prototype),pe(T.prototype,"isNonAdobeEnterpriseUser",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"isNonAdobeEnterpriseUser"),T.prototype),pe(T.prototype,"shouldResumeHomePageFlow",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"shouldResumeHomePageFlow"),T.prototype),pe(T.prototype,"persistedPrompt",[n.Fl],Object.getOwnPropertyDescriptor(T.prototype,"persistedPrompt"),T.prototype),Y=pe(T.prototype,"signOut",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._isSignedIn=!1,e.ims.signOut(t),e.broadcastChannel.postMessage({message:de,route:t})}}}),J=pe(T.prototype,"setShowSUSIDialog",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.showSUSIDialog=t}}}),q=pe(T.prototype,"hideSUSIDialog",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.showSUSIDialog=!1}}}),$=pe(T.prototype,"signIn",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,r){(0,re.G6)()&&r&&sessionStorage.setItem("pagePersistedState",JSON.stringify({page:r.page,state:r.state})),e.signedInCallback=t?function(){return t()}:void 0,e.setShowSUSIDialog(!0)}}}),T),ve=r(12948),ye=r(57518),me=r(42465),ge=r(42739),be=r(64264);function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function we(){we=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==_e(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach((function(t){Oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_e(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_e(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ke(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var Ce,xe,Le,Ie,Pe,Ae,Te,Re,je,Ne,De,Ue,Me,Fe,He,ze,Be,Ge,Ke,Ve,We,Ze,Ye,Je,qe,$e,Xe,Qe,et,tt,rt,nt,ot,it=function(){var e,t=(e=we().mark((function e(t,r){var n,o,i;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Se({Authorization:"Bearer ".concat(t)},be.cN),o="".concat((0,ge.LY)(r),"/init"),e.next=4,fetch(o,{method:"PUT",headers:n});case 4:if((i=e.sent).ok){e.next=7;break}throw new Error("FPS Init API failed ".concat(i.body));case 7:return e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ke(i,n,o,a,s,"next",e)}function s(e){ke(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),at=r(81278),st=r(15440);function ct(e){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(e)}function ut(){ut=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==ct(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pt(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function dt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){pt(i,n,o,a,s,"next",e)}function s(e){pt(i,n,o,a,s,"throw",e)}a(void 0)}))}}function ht(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function vt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mt(n.key),n)}}function yt(e,t,r){return(t=mt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mt(e){var t=function(e,t){if("object"!==ct(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ct(t)?t:String(t)}function gt(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var bt="last-used-template-model",_t=(Ce=n.LO.ref,xe=n.LO.ref,Le=n.LO.ref,Ie=n.LO.ref,Pe=n.LO.ref,Ae=n.LO.ref,Te=n.LO.ref,Re=n.LO.ref,je=function(){function e(t,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.history=t,this.styleKits=r,yt(this,"dataCache",new Map),yt(this,"commonAssetCache",new Map),ht(this,"_loadingState",Ne,this),ht(this,"documentTaskStatus",De,this),ht(this,"historyCreationModelKey",Ue,this),ht(this,"shouldPublishHistory",Me,this),ht(this,"selectedDocViewTab",Fe,this),ht(this,"showDeleteModal",He,this),ht(this,"dialogConfig",ze,this),ht(this,"initApiStatus",Be,this),ht(this,"deleteModelType",Ge,this),ht(this,"historyFlagStatus",Ke,this),ht(this,"setLoadingState",Ve,this),ht(this,"initialize",We,this),ht(this,"ensureFPSinit",Ze,this),ht(this,"setInitApiStatus",Ye,this),ht(this,"addDocument",Je,this),ht(this,"setShouldShowDeleteModal",qe,this),ht(this,"setDialogConfig",$e,this),ht(this,"setDeleteModelType",Xe,this),ht(this,"setPublishHistoryFlag",Qe,this),ht(this,"clearPublishHistoryFlag",et,this),ht(this,"setHistoryCreationModelKey",tt,this),ht(this,"setDocumentViewTab",rt,this),ht(this,"setHistoryFlagStatus",nt,this),ht(this,"setDocumenTaskStatus",ot,this),yt(this,"confirmPermanentlyDelete",(function(){return new Promise((function(e){i.setShouldShowDeleteModal(!0),i.setDialogConfig({onClickCancel:function(){i.setShouldShowDeleteModal(!1),e({type:o.tc.CANCEL})},onClickPermanentlyDelete:function(){i.setShouldShowDeleteModal(!1),e({type:o.tc.SUCCESS})}})}))})),yt(this,"saveSession",(function(e,t){if(i.hasDocument(t)){var r=i.dataCache.get(t);if(r){var n=Array.from(r.assets),o=n.length>0&&n.every((function(e){return i.commonAssetCache.has(e.modelKey)}));(0,ne.n4)(bt,JSON.stringify({sessionId:e,pageAsset:r,isSharedAcrossGeneration:o}))}}})),yt(this,"resurrectLastSession",(function(e){var t=sessionStorage.getItem(bt);if(t&&(0,at.VY)(t)){var r=JSON.parse(t),n=r.sessionId,o=r.pageAsset,a=r.isSharedAcrossGeneration;if(e===n&&o.model.docId)return i.addDocument(o,a),o.model.docId}})),yt(this,"getHistoryItemModel",function(){var e=dt(ut().mark((function e(t){var r;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.hasDocument(t)){e.next=2;break}return e.abrupt("return",Promise.resolve({type:o.tc.SUCCESS,data:null===(r=i.dataCache.get(t))||void 0===r?void 0:r.model}));case 2:return e.abrupt("return",new Promise((function(e){i.history.fetchPageModel(t).then((function(r){var n=r.type,a=r.data;if(n===o.tc.SUCCESS&&a){var s=ft(ft({},a.model),{},{browserId:(0,re.Lv)(),docId:t}),c={docType:o.Ag.History,model:s,assets:a.assets,predictedModel:a.predictedModel,canShare:a.canShare};return i.addDocument(c),void e({type:o.tc.SUCCESS,data:s})}e({type:o.tc.ERROR})}))})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),yt(this,"getStyleKitItemModel",function(){var e=dt(ut().mark((function e(t,r,n){var a;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.hasDocument(r)){e.next=2;break}return e.abrupt("return",Promise.resolve({type:o.tc.SUCCESS,data:null===(a=i.dataCache.get(r))||void 0===a?void 0:a.model}));case 2:return e.abrupt("return",new Promise((function(e){i.styleKits.fetchStylekitAsset(r,n).then((function(a){var s=a.type,c=a.data;if(s===o.tc.SUCCESS&&c){var u,l=ft(ft({},c.model),{},{browserId:(0,re.Lv)(),styleKitTemplate:{name:t,docId:r,canShare:c.canShare},docId:r}),f={docType:o.Ag.StyleKit,model:l,assets:c.assets,predictedModel:c.predictedModel,templateModel:c.templateModel,thumbnailRef:null!==(u=c.thumbnailRef)&&void 0!==u?u:n,canShare:c.canShare};return i.addDocument(f),void e({type:o.tc.SUCCESS,data:l})}e({type:o.tc.ERROR})}))})));case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),yt(this,"hasDocument",(function(e){return i.dataCache.has(e)})),yt(this,"getDocumentAssets",(function(e){var t,r;return null!==(t=null===(r=i.dataCache.get(e))||void 0===r?void 0:r.assets)&&void 0!==t?t:new Set})),yt(this,"getPredictedModel",(function(e){var t;return null===(t=i.dataCache.get(e))||void 0===t?void 0:t.predictedModel})),yt(this,"getDocumentPageModel",(function(e){var t;return null===(t=i.dataCache.get(e))||void 0===t?void 0:t.model})),yt(this,"getStyleKitModel",(function(e){var t;return null===(t=i.dataCache.get(e))||void 0===t?void 0:t.templateModel})),yt(this,"getDocumentThumbnailRef",(function(e){var t;return null===(t=i.dataCache.get(e))||void 0===t?void 0:t.thumbnailRef})),yt(this,"getDocumentType",(function(e){var t;return null===(t=i.dataCache.get(e))||void 0===t?void 0:t.docType})),yt(this,"getDocumentCanShare",(function(e){var t,r;return null!==(t=null===(r=i.dataCache.get(e))||void 0===r?void 0:r.canShare)&&void 0!==t&&t})),(0,n.rC)(this),(0,me.G)(this)}var t,r;return t=e,(r=[{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"documentTaskStatusListener",get:function(){return this.documentTaskStatus}},{key:"getHistoryFlagStatus",get:function(){return this.historyFlagStatus}},{key:"initApiFetchStatus",get:function(){return this.initApiStatus}},{key:"getDialogConfig",get:function(){return this.dialogConfig}},{key:"isShowDeleteModal",get:function(){return this.showDeleteModal}},{key:"getDeleteModelType",get:function(){return this.deleteModelType}},{key:"activeHistoryUploadModelId",get:function(){return this.historyCreationModelKey}},{key:"historyCreationTaskStatus",get:function(){if(this.historyCreationModelKey)return this.documentTaskStatus.get(this.historyCreationModelKey)}}])&&vt(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ne=gt(je.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),De=gt(je.prototype,"documentTaskStatus",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return n.LO.map()}}),Ue=gt(je.prototype,"historyCreationModelKey",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Me=gt(je.prototype,"shouldPublishHistory",[xe],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fe=gt(je.prototype,"selectedDocViewTab",[Le],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.F8.empty}}),He=gt(je.prototype,"showDeleteModal",[Ie],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ze=gt(je.prototype,"dialogConfig",[Pe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be=gt(je.prototype,"initApiStatus",[Ae],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.lx.INIT_API_UNINITIALIZED}}),Ge=gt(je.prototype,"deleteModelType",[Te],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ke=gt(je.prototype,"historyFlagStatus",[Re],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ve=gt(je.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),gt(je.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"loadingState"),je.prototype),gt(je.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"isLoaded"),je.prototype),We=gt(je.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return dt(ut().mark((function t(){return ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setLoadingState(te.o.Loading),e.setLoadingState(te.o.Loaded),t.next=4,Promise.resolve();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))}}),Ze=gt(je.prototype,"ensureFPSinit",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=dt(ut().mark((function t(r){return ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.initApiStatus!==o.lx.INIT_API_INITIALIZED){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,it(r,st.Z.getStorageRegion());case 5:e.setInitApiStatus(o.lx.INIT_API_INITIALIZED),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),e.setInitApiStatus(o.lx.INIT_API_ERROR);case 11:case"end":return t.stop()}}),t,null,[[2,8]])})));return function(e){return t.apply(this,arguments)}}()}}),Ye=gt(je.prototype,"setInitApiStatus",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.initApiStatus=t}}}),Je=gt(je.prototype,"addDocument",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,r){var n=t.docType,i=t.model;if(n===o.Ag.History){if(!i.docId)throw new Error("Cannot add document without docId");e.dataCache.set(i.docId,t)}else{if(n!==o.Ag.StyleKit)throw new Error("Unknown doc type is provided");var a;if(null===(a=i.styleKitTemplate)||void 0===a||!a.docId)throw new Error("Cannot add stylekit document without docId");e.dataCache.set(i.styleKitTemplate.docId,t)}r&&t.assets.forEach((function(t){return e.commonAssetCache.set(t.modelKey,t)}))}}}),qe=gt(je.prototype,"setShouldShowDeleteModal",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.showDeleteModal=t}}}),$e=gt(je.prototype,"setDialogConfig",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.dialogConfig=t}}}),Xe=gt(je.prototype,"setDeleteModelType",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.deleteModelType=t}}}),Qe=gt(je.prototype,"setPublishHistoryFlag",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.historyFlagStatus&&(e.shouldPublishHistory=!0)}}}),et=gt(je.prototype,"clearPublishHistoryFlag",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.shouldPublishHistory=!1}}}),tt=gt(je.prototype,"setHistoryCreationModelKey",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.historyCreationModelKey=t}}}),gt(je.prototype,"documentTaskStatusListener",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"documentTaskStatusListener"),je.prototype),gt(je.prototype,"getHistoryFlagStatus",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"getHistoryFlagStatus"),je.prototype),gt(je.prototype,"getDialogConfig",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"getDialogConfig"),je.prototype),gt(je.prototype,"isShowDeleteModal",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"isShowDeleteModal"),je.prototype),gt(je.prototype,"getDeleteModelType",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"getDeleteModelType"),je.prototype),gt(je.prototype,"activeHistoryUploadModelId",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"activeHistoryUploadModelId"),je.prototype),gt(je.prototype,"historyCreationTaskStatus",[n.Fl],Object.getOwnPropertyDescriptor(je.prototype,"historyCreationTaskStatus"),je.prototype),rt=gt(je.prototype,"setDocumentViewTab",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.selectedDocViewTab=t}}}),nt=gt(je.prototype,"setHistoryFlagStatus",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.historyFlagStatus=t}}}),ot=gt(je.prototype,"setDocumenTaskStatus",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,r,n){n instanceof Error?e.documentTaskStatus.set(t,{status:r,error:n}):e.documentTaskStatus.set(t,{status:r,data:n})}}}),je);function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function Et(){Et=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==wt(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?St(Object(r),!0).forEach((function(t){kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==wt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===wt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var xt,Lt,It,Pt,At,Tt,Rt,jt,Nt,Dt=function(){var e,t=(e=Et().mark((function e(t,r,n){var o,i,a;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Ot({Authorization:"Bearer ".concat(r)},be.cN),i=new URL("".concat((0,ge.LY)(n),"/asset/").concat(t)),e.next=4,fetch(i,{method:"DELETE",headers:o});case 4:if((a=e.sent).ok){e.next=7;break}throw new Error("Failed to delete asset ".concat(t));case 7:return e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ct(i,n,o,a,s,"next",e)}function s(e){Ct(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Mt(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zt(n.key),n)}}function Ht(e,t,r){return(t=zt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zt(e){var t=function(e,t){if("object"!==Ut(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ut(t)?t:String(t)}function Bt(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Gt=(xt=n.LO.ref,Lt=n.LO.ref,It=n.LO.ref,Pt=function(){function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Mt(this,"_items",At,this),Mt(this,"_status",Tt,this),Mt(this,"_itemsStatus",Rt,this),Mt(this,"_activeItemId",jt,this),Mt(this,"_isDirty",Nt,this),Ht(this,"_defaultListStatus",void 0),Ht(this,"_defaultItemStatus",void 0),(0,n.rC)(this),(0,me.G)(this),this._status=t,this._defaultListStatus=t,this._defaultItemStatus=r,this._isDirty=o}var t,r;return t=e,r=[{key:"items",get:function(){return this._items}},{key:"status",get:function(){return this._status}},{key:"setStatus",value:function(e){this._status=e}},{key:"activeItemId",get:function(){return this._activeItemId}},{key:"setActiveItemId",value:function(e){this._activeItemId=e}},{key:"isDirtyFlag",get:function(){return this._isDirty}},{key:"setIsDirtyFlag",value:function(e){this._isDirty=e}},{key:"getItemsStatus",get:function(){return this._itemsStatus}},{key:"setItemsStatus",value:function(e,t){this._itemsStatus.set(e,t)}},{key:"addItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this._itemsStatus.has(e.key),n=t&&r?null:e;n&&(this._itemsStatus.set(e.key,this._defaultItemStatus),this._items=this._items.concat(n))}},{key:"addItems",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:e.filter((function(e){return!t._itemsStatus.has(e.key)}));r.forEach((function(e){t._itemsStatus.set(e.key,t._defaultItemStatus)})),this._items=this._items.concat(r)}},{key:"removeItem",value:function(e){this._items=this._items.filter((function(t){return t.key!==e})),this._itemsStatus.delete(e)}},{key:"reset",value:function(){this._items=[],this._itemsStatus.clear(),this._status=this._defaultListStatus,this._isDirty=!1,this._activeItemId=void 0}}],r&&Ft(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),At=Bt(Pt.prototype,"_items",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Tt=Bt(Pt.prototype,"_status",[xt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rt=Bt(Pt.prototype,"_itemsStatus",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return n.LO.map()}}),jt=Bt(Pt.prototype,"_activeItemId",[Lt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nt=Bt(Pt.prototype,"_isDirty",[It],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt(Pt.prototype,"items",[n.Fl],Object.getOwnPropertyDescriptor(Pt.prototype,"items"),Pt.prototype),Bt(Pt.prototype,"status",[n.Fl],Object.getOwnPropertyDescriptor(Pt.prototype,"status"),Pt.prototype),Bt(Pt.prototype,"setStatus",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"setStatus"),Pt.prototype),Bt(Pt.prototype,"activeItemId",[n.Fl],Object.getOwnPropertyDescriptor(Pt.prototype,"activeItemId"),Pt.prototype),Bt(Pt.prototype,"setActiveItemId",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"setActiveItemId"),Pt.prototype),Bt(Pt.prototype,"isDirtyFlag",[n.Fl],Object.getOwnPropertyDescriptor(Pt.prototype,"isDirtyFlag"),Pt.prototype),Bt(Pt.prototype,"setIsDirtyFlag",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"setIsDirtyFlag"),Pt.prototype),Bt(Pt.prototype,"getItemsStatus",[n.Fl],Object.getOwnPropertyDescriptor(Pt.prototype,"getItemsStatus"),Pt.prototype),Bt(Pt.prototype,"setItemsStatus",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"setItemsStatus"),Pt.prototype),Bt(Pt.prototype,"addItem",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"addItem"),Pt.prototype),Bt(Pt.prototype,"addItems",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"addItems"),Pt.prototype),Bt(Pt.prototype,"removeItem",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"removeItem"),Pt.prototype),Bt(Pt.prototype,"reset",[n.aD],Object.getOwnPropertyDescriptor(Pt.prototype,"reset"),Pt.prototype),Pt);function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Vt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Kt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===Kt(o)?o:String(o)),n)}var o}function Wt(e,t){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wt(e,t)}function Zt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yt(e){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yt(e)}var Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wt(e,t)}(c,e);var t,r,i,a,s=(i=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Yt(i);if(a){var r=Yt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Kt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zt(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=s.call(this,o.IG.NOT_FETCHED,o.Kw.NOT_FETCHED,!1)).authStore=e,(0,n.rC)(Zt(t)),t}return t=c,(r=[{key:"deleteItem",value:function(e){var t=this;return this.setItemsStatus(e,o.Kw.DELETING_HISTORY_ITEM),new Promise((function(r){Dt(e,t.authStore.accessToken,st.Z.getStorageRegion()).then((function(){t.removeItem(e),r({type:o.tc.SUCCESS})})).catch((function(){t.setItemsStatus(e,o.Kw.DELETING_HISTORY_ITEM_ERROR),r({type:o.tc.ERROR})}))}))}},{key:"fetchPageModel",value:function(e){var t=this;return this.setItemsStatus(e,o.Kw.FETCHING_PAGE_MODEL),new Promise((function(r){(0,at.J5)(e,t.authStore.accessToken).then((function(n){t.setItemsStatus(e,o.Kw.FETCHING_PAGE_MODEL_SUCCESS),r({type:o.tc.SUCCESS,data:n})})).catch((function(){t.setItemsStatus(e,o.Kw.FETCHING_PAGE_MODEL_ERROR),r({type:o.tc.ERROR})}))}))}}])&&Vt(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(Gt);function qt(e){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(e)}function $t(){$t=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==qt(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(r),!0).forEach((function(t){er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function er(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==qt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tr(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var rr=function(){var e,t=(e=$t().mark((function e(t,r){var n,o,i;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(be.EQ,"/api/v4/share/").concat(t,"?extraFeatures=direct_acl"),e.next=3,fetch(n,{method:"GET",headers:Qt({Authorization:"Bearer ".concat(r)},be.cN)});case 3:if((o=e.sent).ok){e.next=6;break}throw new Error("Failed to leave request for asset ".concat(t));case 6:return e.next=8,o.json();case 8:return i=e.sent,e.abrupt("return",i.directCollaborators);case 10:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){tr(i,n,o,a,s,"next",e)}function s(e){tr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}();function nr(e){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr(e)}function or(){or=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==nr(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(r),!0).forEach((function(t){sr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==nr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==nr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===nr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cr(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var ur,lr,fr,pr,dr=function(){var e,t=(e=or().mark((function e(t,r,n){var o,i,a,s;return or().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(be.EQ,"/api/v4/share/").concat(t),e.next=3,fetch(o,{method:"PATCH",headers:ar({Authorization:"Bearer ".concat(r)},be.cN),body:JSON.stringify({collaborators:[{id:n,action:"remove"}]})});case 3:if((i=e.sent).ok){e.next=6;break}throw new Error("Request failed with status ".concat(i.status));case 6:return e.next=8,i.json();case 8:if(a=e.sent,s=a.collaborators){e.next=12;break}throw new Error("Failed to leave the document ".concat(t));case 12:if(!(s.length>0&&200!==s[0].statusCode)){e.next=14;break}throw new Error("Failed to leave the document ".concat(t," error :: ").concat(s[0].statusText));case 14:return e.abrupt("return",i);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){cr(i,n,o,a,s,"next",e)}function s(e){cr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}(),hr=function(e){return e.IMS_USER="imsUser",e.ADDRESS_BOOK_CONTACT="addressBookContact",e.ADRESS_BOOK_GROUP="addressBookGroup",e}({});function vr(e){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(e)}function yr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function mr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==vr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),"symbol"===vr(i)?i:String(i)),n)}var o,i}function gr(e,t){return gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gr(e,t)}function br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_r(e)}function wr(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Er,Sr,Or,kr,Cr,xr,Lr,Ir,Pr,Ar,Tr,Rr,jr,Nr,Dr,Ur,Mr,Fr,Hr=(ur=n.LO.ref,lr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gr(e,t)}(c,e);var t,r,i,a,s=(i=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_r(i);if(a){var r=_r(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===vr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return br(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=s.call(this,o.xe.NOT_FETCHED,o.kQ.NOT_FETCHED,!1)).authStore=e,yr(br(t),"styleKitsFilterValue",fr,br(t)),yr(br(t),"hasMoreItems",pr,br(t)),(0,n.rC)(br(t)),t}return t=c,(r=[{key:"setStyleKitFilterStatus",value:function(e){this.styleKitsFilterValue=e}},{key:"styleKitsFilterStatus",get:function(){return this.styleKitsFilterValue}},{key:"setHasMoreItemsStatus",value:function(e){this.hasMoreItems=e}},{key:"hasMoreItemsStatus",get:function(){return this.hasMoreItems}},{key:"deleteItem",value:function(e){var t=this;return this.setItemsStatus(e,o.kQ.DELETING_ITEM),new Promise((function(r){Dt(e,t.authStore.accessToken,st.Z.getStorageRegion()).then((function(){t.removeItem(e),r({type:o.tc.SUCCESS})})).catch((function(){t.setItemsStatus(e,o.kQ.DELETING_ITEM_ERROR),r({type:o.tc.ERROR})}))}))}},{key:"leaveItem",value:function(e){var t=this;return this.setItemsStatus(e,o.kQ.LEAVING_ITEM),new Promise((function(r){rr(e,t.authStore.accessToken).then((function(n){var i=n.find((function(e){var r,n;return void 0!==(null===(r=t.authStore.userProfile)||void 0===r?void 0:r.userId)&&function(e,t){if(e.type===hr.IMS_USER&&e.additionalData.userId===t||e.type===hr.ADDRESS_BOOK_CONTACT&&e.additionalData.linkedIdentity===t)return e.id}(e,null===(n=t.authStore.userProfile)||void 0===n?void 0:n.userId)}));i?dr(e,t.authStore.accessToken,i.id).then((function(){t.removeItem(e),r({type:o.tc.SUCCESS})})).catch((function(){t.setItemsStatus(e,o.kQ.LEAVE_ITEM_ERROR),r({type:o.tc.ERROR})})):(t.setItemsStatus(e,o.kQ.LEAVE_ITEM_ERROR_NO_MATCHING_COLLABORATOR),r({type:o.tc.ERROR}))})).catch((function(){t.setItemsStatus(e,o.kQ.LEAVE_ITEM_ERROR),r({type:o.tc.ERROR})}))}))}},{key:"fetchStylekitAsset",value:function(e,t){var r=this;return this.setItemsStatus(e,o.kQ.FETCHING_PAGE_MODEL),new Promise((function(n){(0,at.J5)(e,r.authStore.accessToken,t).then((function(t){r.setItemsStatus(e,o.kQ.FETCHING_PAGE_MODEL),n({type:o.tc.SUCCESS,data:t})})).catch((function(t){console.error("error in fetching stylekit asset",t),r.setItemsStatus(e,o.kQ.FETCHING_PAGE_MODEL),n({type:o.tc.ERROR})}))}))}}])&&mr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(Gt),fr=wr(lr.prototype,"styleKitsFilterValue",[ur],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.TL.All}}),pr=wr(lr.prototype,"hasMoreItems",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wr(lr.prototype,"setStyleKitFilterStatus",[n.aD],Object.getOwnPropertyDescriptor(lr.prototype,"setStyleKitFilterStatus"),lr.prototype),wr(lr.prototype,"styleKitsFilterStatus",[n.Fl],Object.getOwnPropertyDescriptor(lr.prototype,"styleKitsFilterStatus"),lr.prototype),wr(lr.prototype,"setHasMoreItemsStatus",[n.aD],Object.getOwnPropertyDescriptor(lr.prototype,"setHasMoreItemsStatus"),lr.prototype),wr(lr.prototype,"hasMoreItemsStatus",[n.Fl],Object.getOwnPropertyDescriptor(lr.prototype,"hasMoreItemsStatus"),lr.prototype),lr),zr=r(60447),Br=r(88791),Gr=r(18084),Kr=r(31729),Vr=r(36827);function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}function Zr(){Zr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Wr(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Yr(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Jr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Yr(i,n,o,a,s,"next",e)}function s(e){Yr(i,n,o,a,s,"throw",e)}a(void 0)}))}}function qr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function $r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qr(n.key),n)}}function Xr(e,t,r){return(t=Qr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(e){var t=function(e,t){if("object"!==Wr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Wr(t)?t:String(t)}function en(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var tn,rn,nn,on,an,sn,cn=(Er=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),qr(this,"_authStore",Sr,this),qr(this,"_service",Or,this),qr(this,"_serviceError",kr,this),qr(this,"_entitlement",Cr,this),qr(this,"_locale",xr,this),qr(this,"_colorTheme",Lr,this),qr(this,"_deviceType",Ir,this),qr(this,"initialize",Pr,this),qr(this,"setServiceError",Ar,this),qr(this,"_loadingState",Tr,this),qr(this,"setLoadingState",Rr,this),qr(this,"isFulfillableItemEnabled",jr,this),qr(this,"updateEntitlement",Nr,this),Xr(this,"forceUpdateEntitlement",Jr(Zr().mark((function e(){var t;return Zr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.setLoadingState(te.o.Loading),null!==(t=r._authStore)&&void 0!==t&&t.accessToken){e.next=3;break}throw new Error("Cannot forceUpdateEntitlement  without accessToken");case 3:return e.next=5,r.updateAccessProfile(!0);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))),qr(this,"checkPaywallWorkflow",Dr,this),qr(this,"checkModalWorkflow",Ur,this),qr(this,"setEntitlement",Mr,this),Xr(this,"updateAccessProfile",function(){var e=Jr(Zr().mark((function e(t,o){var i,a,s,c;return Zr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._authStore){e.next=2;break}throw new Error("Cannot update AccessProfile without authStore");case 2:if(i=r._authStore.accessToken){e.next=5;break}throw new Error("Cannot update AccessProfile without accessToken");case 5:if(r._service){e.next=7;break}throw new Error("Cannot update AccessProfile without service");case 7:if(null!==(a=r._locale)){e.next=10;break}throw new Error("Cannot update AccessProfile without locale");case 10:if(null!==(s=r._colorTheme)){e.next=13;break}throw new Error("Cannot update AccessProfile without colorTheme");case 13:return e.prev=13,e.next=16,r._service.updateAccessProfile(i,a,t,o);case 16:return c=r._service.parseEntitlement(s,a),(0,zr.Z)(c,r._entitlement)||(0,n.z)((function(){r.setEntitlement(c)})),r.setLoadingState(te.o.Loaded),e.abrupt("return",c);case 22:throw e.prev=22,e.t0=e.catch(13),console.error("Cannot update AccessProfile: ".concat(e.t0)),e.t0;case 26:case"end":return e.stop()}}),e,null,[[13,22]])})));return function(t,r){return e.apply(this,arguments)}}()),qr(this,"removeEntitlement",Fr,this),(0,n.ky)(this),this._authStore=t;var o=this._authStore.signIn;this._service=new Gr.ir(Kr.x4,o,(function(e){return r.setServiceError(e)}))}var t,r;return t=e,(r=[{key:"licensingModalType",get:function(){return this._entitlement.licensingModalType}},{key:"requestAccessURL",get:function(){return this._entitlement.requestAccessURL}},{key:"paywallURL",get:function(){return this._entitlement.paywallURL}},{key:"isK12",get:function(){return this._entitlement.isK12}},{key:"isFree",get:function(){return this._entitlement.isFree}},{key:"isPremium",get:function(){return this._entitlement.isPremium}},{key:"isHardCapped",get:function(){return this._entitlement.isHardCapped}},{key:"isSoftCapped",get:function(){return this._entitlement.isSoftCapped}},{key:"isIndemnified",get:function(){return this._entitlement.isIndemnified}},{key:"userWorkflow",get:function(){return this._entitlement.userWorkflow}},{key:"isRestrictedUser",get:function(){return this._entitlement.isRestrictedUser}},{key:"isZeroGBUser",get:function(){return this._entitlement.isZeroGBUser}},{key:"serviceError",get:function(){return this._serviceError}},{key:"isRequestAccessDisabled",get:function(){return this._entitlement.isRequestAccessDisabled}},{key:"entitlement",get:function(){return this._entitlement}},{key:"setupListener",value:function(e){var t;null===(t=this._service)||void 0===t||t.addListener(e)}},{key:"tearDownListener",value:function(e){var t;null===(t=this._service)||void 0===t||t.removeListener(e)}},{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"loadCompleted",get:function(){return this.isLoaded}},{key:"deviceType",get:function(){return(0,Br.dD)()||(0,Br.rh)()?"MOBILE":"DESKTOP"}},{key:"isChargingModelCapped",value:function(e){if(!this._service)throw new Error("Cannot check charging model capped without service");return this._service.isChargingModelCapped(e)}}])&&$r(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Sr=en(Er.prototype,"_authStore",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Or=en(Er.prototype,"_service",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),kr=en(Er.prototype,"_serviceError",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Cr=en(Er.prototype,"_entitlement",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Vr.h_}}),xr=en(Er.prototype,"_locale",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Lr=en(Er.prototype,"_colorTheme",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ir=en(Er.prototype,"_deviceType",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),en(Er.prototype,"licensingModalType",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"licensingModalType"),Er.prototype),en(Er.prototype,"requestAccessURL",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"requestAccessURL"),Er.prototype),en(Er.prototype,"paywallURL",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"paywallURL"),Er.prototype),en(Er.prototype,"isK12",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isK12"),Er.prototype),en(Er.prototype,"isFree",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isFree"),Er.prototype),en(Er.prototype,"isPremium",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isPremium"),Er.prototype),en(Er.prototype,"isHardCapped",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isHardCapped"),Er.prototype),en(Er.prototype,"isSoftCapped",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isSoftCapped"),Er.prototype),en(Er.prototype,"isIndemnified",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isIndemnified"),Er.prototype),en(Er.prototype,"userWorkflow",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"userWorkflow"),Er.prototype),en(Er.prototype,"isRestrictedUser",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isRestrictedUser"),Er.prototype),en(Er.prototype,"isZeroGBUser",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isZeroGBUser"),Er.prototype),en(Er.prototype,"serviceError",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"serviceError"),Er.prototype),en(Er.prototype,"isRequestAccessDisabled",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isRequestAccessDisabled"),Er.prototype),en(Er.prototype,"entitlement",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"entitlement"),Er.prototype),Pr=en(Er.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Jr(Zr().mark((function t(r){return Zr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loadingState===te.o.Uninitialized){t.next=2;break}return t.abrupt("return");case 2:if(e.setLoadingState(te.o.Loading),e._locale=r.locale,e._colorTheme=r.colorTheme,e._deviceType=r.deviceType,!e._authStore.accessToken){t.next=10;break}return t.next=10,e.forceUpdateEntitlement();case 10:e.setLoadingState(te.o.Loaded);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),Ar=en(Er.prototype,"setServiceError",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._serviceError=t}}}),Tr=en(Er.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),Rr=en(Er.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),en(Er.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"loadingState"),Er.prototype),en(Er.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isLoaded"),Er.prototype),en(Er.prototype,"loadCompleted",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"loadCompleted"),Er.prototype),en(Er.prototype,"deviceType",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"deviceType"),Er.prototype),jr=en(Er.prototype,"isFulfillableItemEnabled",[n.Fl],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){if(!e._service)throw new Error("Cannot check fulfillable item without service");return e._service.isFulfillableItemEnabled(t)}}}),en(Er.prototype,"isChargingModelCapped",[n.Fl],Object.getOwnPropertyDescriptor(Er.prototype,"isChargingModelCapped"),Er.prototype),Nr=en(Er.prototype,"updateEntitlement",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){return e.updateAccessProfile(!1)}}}),Dr=en(Er.prototype,"checkPaywallWorkflow",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Jr(Zr().mark((function t(r,n){var o,i,a,s,c;return Zr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._authStore){t.next=2;break}throw new Error("Cannot check paywall workflow without authStore");case 2:if(null!==(o=e._authStore)&&void 0!==o&&o.accessToken){t.next=4;break}throw new Error("Cannot check paywall workflow without accessToken");case 4:if(a=e._authStore.userProfile,s=e._deviceType){t.next=8;break}throw new Error("Cannot check paywall workflow without deviceType");case 8:return c={countryCode:null!==(i=null==a?void 0:a.countryCode)&&void 0!==i?i:"US",deviceType:s,variation:r,reasonCode:n},t.abrupt("return",e.updateAccessProfile(!0,c));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}}),Ur=en(Er.prototype,"checkModalWorkflow",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Jr(Zr().mark((function t(r){var n,o,i,a,s;return Zr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._authStore){t.next=2;break}throw new Error("Cannot check paywall workflow without authStore");case 2:if(null!==(n=e._authStore)&&void 0!==n&&n.accessToken){t.next=4;break}throw new Error("Cannot check paywall workflow without accessToken");case 4:if(i=e._authStore.userProfile,a=e._deviceType){t.next=8;break}throw new Error("Cannot check paywall workflow without deviceType");case 8:return s={countryCode:null!==(o=null==i?void 0:i.countryCode)&&void 0!==o?o:"US",deviceType:a,variation:r},t.abrupt("return",e.updateAccessProfile(!0,s));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}),Mr=en(Er.prototype,"setEntitlement",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._entitlement=t}}}),Fr=en(Er.prototype,"removeEntitlement",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Jr(Zr().mark((function t(){return Zr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._service){t.next=2;break}throw new Error("Cannot remove AccessProfile without service");case 2:return e._service.removeAccessProfile(),e.setEntitlement(Vr.h_),t.abrupt("return",Promise.resolve());case 5:case"end":return t.stop()}}),t)})))}}),Er),un=r(17578),ln=r(79521),fn=r(68622),pn=r(63143);function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vn(){vn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==dn(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function yn(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function mn(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function gn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_n(n.key),n)}}function bn(e,t,r){return(t=_n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _n(e){var t=function(e,t){if("object"!==dn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===dn(t)?t:String(t)}function wn(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var En,Sn,On,kn,Cn,xn,Ln,In=(tn=n.LO.ref,rn=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._authStore=t,this._personalizationStore=r,bn(this,"_text2ImageAdapters",void 0),bn(this,"_featureFlags",void 0),mn(this,"fireflyServiceErrors",nn,this),mn(this,"initialize",on,this),mn(this,"_setServiceError",an,this),mn(this,"resetServiceErrors",sn,this),(0,n.ky)(this),(0,me.G)(this),this.initialize(),this._text2ImageAdapters={"t2i-v1":void 0,"clio-v2":void 0,"clio-v2-structure-match":void 0,"clio-v3":void 0,"clio-v2-cme":void 0,"clio-v3-cme":void 0},this._updateFeatureFlags(this._personalizationStore.floodgateFlagsWithOverrides)}var t,r,o,i;return t=e,r=[{key:"_getText2ImageAdapter",value:function(e){var t=this._text2ImageAdapters[e];if(!t){var r=this._authStore.accessToken,n=this._authStore.config.clientId,o=ln.Gm[e];if(!o||"t2i-v1"===e)throw console.error("SPL(V1) is not supported"),new Error("SPL(V1) is not supported");var i,a,s,c=(0,un.mQ)(),u=null!==(i=null===(a=this._featureFlags)||void 0===a?void 0:a.isAltEnvironment)&&void 0!==i&&i?null===(s=o.generate.alternative)||void 0===s?void 0:s[c]:o.generate[c],l=null!=u?u:o.generate[c],f=o.upload[c];if(!l||!f)throw new Error("Unable to use '".concat(e,"' in '").concat(c,"' environment."));var p={baseUrl:l,accessToken:r,clientId:n,urlOverrides:{"/v2/storage/image":f}};t=new fn._(p),this._text2ImageAdapters[e]=t}return t}},{key:"_updateAccessToken",value:function(e){if(e)for(var t in this._text2ImageAdapters){var r=t,n=this._text2ImageAdapters[r];n&&n.updateAuthToken(e)}}},{key:"_updateFeatureFlags",value:function(e){var t=Boolean(null==e?void 0:e["firefly-commercialization-hard-cap"]),r=Boolean(null==e?void 0:e["firefly-apis-colligo-v2"]),n=Boolean(null==e?void 0:e["firefly-apis-colligo-v3"]),o=Boolean(null==e?void 0:e["clio-parametric-comparison"]),i=Boolean(null==e?void 0:e["firefly-alt-environment"]);this._featureFlags={enableHardCap:t,enableColligoV2:r,enableColligoV3:n,enableParametricComparison:o,isAltEnvironment:i}}},{key:"text2ImageForEditModel",value:(o=vn().mark((function e(t,r){var n,o,i,a,s,c,u,l,f,p,d,h,v,y,m;return vn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f=null!==(n=null===(o=this._featureFlags)||void 0===o?void 0:o.enableHardCap)&&void 0!==n&&n,p=null!==(i=null===(a=this._featureFlags)||void 0===a?void 0:a.enableColligoV2)&&void 0!==i&&i,d=null!==(s=null===(c=this._featureFlags)||void 0===c?void 0:c.enableColligoV3)&&void 0!==s&&s,h=null!==(u=null===(l=this._featureFlags)||void 0===l?void 0:l.enableParametricComparison)&&void 0!==u&&u,e.prev=4,v=(0,ln.Zj)(t,p,d,h),(y=this._getText2ImageAdapter(v)).text2ImageForEditModel){e.next=9;break}throw new Error("Endpoint does not support text2ImageForEditModel");case 9:return e.next=11,y.text2ImageForEditModel(t,r);case 11:return m=e.sent,f||(m.consumptionStatus=void 0,m.appliedUntilDate=void 0),e.abrupt("return",m);case 16:throw e.prev=16,e.t0=e.catch(4),this._handleServiceError(e.t0),e.t0;case 20:case"end":return e.stop()}}),e,this,[[4,16]])})),i=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=o.apply(e,t);function a(e){yn(i,r,n,a,s,"next",e)}function s(e){yn(i,r,n,a,s,"throw",e)}a(void 0)}))},function(e,t){return i.apply(this,arguments)})},{key:"_handleServiceError",value:function(e){var t=(0,pn.Bs)(e);"INVALID_TOKEN"===t.code&&this._authStore.signIn(),this._setServiceError(t)}}],r&&gn(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),nn=wn(rn.prototype,"fireflyServiceErrors",[tn],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),on=wn(rn.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){(0,n.U5)((function(){return[e._authStore.isLoaded,e._authStore.accessToken]}),(function(){e._authStore.isLoaded&&e._updateAccessToken(e._authStore.accessToken)})),(0,n.U5)((function(){return[e._personalizationStore.floodgateFlagsWithOverrides]}),(function(){e._personalizationStore.isFloodgateLoaded&&e._updateFeatureFlags(e._personalizationStore.floodgateFlagsWithOverrides)}))}}}),an=wn(rn.prototype,"_setServiceError",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var r;e.fireflyServiceErrors=[].concat(function(e){if(Array.isArray(e))return hn(e)}(r=e.fireflyServiceErrors)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return hn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hn(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t.code])}}}),sn=wn(rn.prototype,"resetServiceErrors",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.fireflyServiceErrors.length>0&&(e.fireflyServiceErrors=[])}}}),rn),Pn=r(40174),An=r(34637);function Tn(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Rn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zn(n.key),n)}}function jn(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}function Nn(){Nn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Dn(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Dn(e){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(e)}function Un(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Mn(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Un(i,n,o,a,s,"next",e)}function s(e){Un(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hn(e,t,r){return(t=zn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zn(e){var t=function(e,t){if("object"!==Dn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Dn(t)?t:String(t)}var Bn="zz-ZZ",Gn="ja-JP",Kn="ko-KR",Vn="zh-Hans-CN",Wn="zh-Hant-TW",Zn=[Gn,Kn,Vn,Wn],Yn=(Hn(En={},Gn,"bki3viz"),Hn(En,Kn,"xkf0urp"),Hn(En,Vn,"xub2olg"),Hn(En,Wn,"eyl2ggk"),En),Jn=[],qn={};(0,un.vC)()||An.Zh.push(Bn);var $n,Xn=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Fn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fn(e,t):void 0}}(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(An.Zh);try{var Qn=function(){var e=$n.value;qn[e]=function(){return r(25357)("./".concat(e,".json"))}};for(Xn.s();!($n=Xn.n()).done;)Qn()}catch(e){Xn.e(e)}finally{Xn.f()}function eo(){return(eo=Mn(Nn().mark((function e(){var t;return Nn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.navigator.language,e.prev=1,e.next=4,qn[t]();case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.error("LanguageProvider: Failed to preload message strings for local: ".concat(t),e.t0);case 9:case"end":return e.stop()}}),e,null,[[1,6]])})))).apply(this,arguments)}function to(e){var t,r=Yn[e];r&&!Jn.includes(r)&&(t=r,new Promise((function(e,r){var n,o,i,a,s,c,u,l,f;n=document,a={kitId:t,classes:!0,events:!1,scriptTimeout:4500,async:!0,active:function(){e()},inactive:function(){console.error("Kit with id ".concat(t," became inactive.")),e()}},s=n.documentElement,c=setTimeout((function(){s.className=s.className.replace(/\bwf-loading\b/g,"")+" wf-inactive"}),a.scriptTimeout),u=n.createElement("script"),l=n.getElementsByTagName("script")[0],f=!1,s.className+=" wf-loading",u.src="https://use.typekit.net/"+a.kitId+".js",u.async=!0,u.onload=u.onreadystatechange=function(){if(i=this.readyState,!(f||i&&"complete"!==i&&"loaded"!==i)){f=!0,clearTimeout(c);try{window.Typekit.load(a)}catch(e){console.error("err",e),r(e)}}},null===(o=l.parentNode)||void 0===o||o.insertBefore(u,l)})),Jn.push(r))}function ro(e){return no.apply(this,arguments)}function no(){return(no=Mn(Nn().mark((function e(t){var r;return Nn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t in qn)){e.next=6;break}return e.next=3,qn[t]();case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,qn[Bn]();case 8:e.t0=e.sent;case 9:return r=e.t0,e.abrupt("return",r);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){eo.apply(this,arguments)}();var oo,io,ao,so,co,uo,lo,fo,po,ho,vo,yo,mo,go,bo,_o,wo,Eo,So=(Sn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Tn(this,"lang",On,this),Tn(this,"messages",kn,this),Tn(this,"_loadingState",Cn,this),Hn(this,"segmenter",void 0),Tn(this,"initialize",xn,this),Tn(this,"setLoadingState",Ln,this),(0,n.rC)(this)}var t,o,i,a;return t=e,o=[{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"initializeIntlSegmenter",value:(a=Mn(Nn().mark((function e(t){var r;return Nn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Zn.includes(t)){e.next=7;break}return e.next=3,this.createIntlSegmenter(t);case 3:r=e.sent,this.segmenter=r,e.next=8;break;case 7:this.segmenter=void 0;case 8:(0,An.qC)(this.segmenter);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"createIntlSegmenter",value:(i=Mn(Nn().mark((function e(t){var n,o,i,a;return Nn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,An.G3)(t),e.next=3,r.e(13).then(r.bind(r,40013));case 3:return o=e.sent,i=o.IntlSegmenterBundled,e.next=7,i(n);case 7:return a=e.sent,e.abrupt("return",new a(n,{granularity:"word"}));case 9:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})}],o&&Rn(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),On=jn(Sn.prototype,"lang",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Pn.gk}}),kn=jn(Sn.prototype,"messages",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Cn=jn(Sn.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),xn=jn(Sn.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Mn(Nn().mark((function t(){var r;return Nn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.setLoadingState(te.o.Loading),t.next=4,(0,An.Q5)();case 4:return e.lang=t.sent,to(e.lang),t.next=8,ro(e.lang);case 8:return r=t.sent,t.next=11,e.initializeIntlSegmenter(e.lang);case 11:e.messages=r,document.documentElement.setAttribute("lang",e.lang),e.setLoadingState(te.o.Loaded),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),console.error("Error loading language module: ",t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})))}}),Ln=jn(Sn.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),jn(Sn.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(Sn.prototype,"loadingState"),Sn.prototype),jn(Sn.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(Sn.prototype,"isLoaded"),Sn.prototype),Sn);function Oo(e){return Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oo(e)}function ko(){ko=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Oo(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Co(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function xo(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Co(i,n,o,a,s,"next",e)}function s(e){Co(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Lo(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Io(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Po(n.key),n)}}function Po(e){var t=function(e,t){if("object"!==Oo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Oo(t)?t:String(t)}function Ao(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var To,Ro,jo,No,Do,Uo,Mo,Fo,Ho,zo,Bo,Go,Ko,Vo,Wo,Zo,Yo,Jo,qo,$o,Xo=(oo=function(){function e(t){var r,o,i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.authStore=t,Lo(this,"_isTouStatusReady",io,this),Lo(this,"_showTouModal",ao,this),Lo(this,"_touAccepted",so,this),Lo(this,"_touCanceled",co,this),Lo(this,"callback",uo,this),Lo(this,"pendingPromise",lo,this),Lo(this,"resolvePromise",fo,this),Lo(this,"_loadingState",po,this),Lo(this,"setLoadingState",ho,this),r=this,i=function(e){a._isTouStatusReady=e},(o=Po(o="setIsTouStatusReady"))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,Lo(this,"initialize",vo,this),Lo(this,"setShowTouModal",yo,this),Lo(this,"setCallback",mo,this),Lo(this,"setTouAccepted",go,this),Lo(this,"setTouCanceled",bo,this),Lo(this,"checkTOUAccepted",_o,this),Lo(this,"shouldShowTouModal",wo,this),Lo(this,"shouldShowTouBanner",Eo,this),(0,n.ky)(this),(0,n.gx)((function(){return a.isTouStatusReady}),(function(){return a.resolvePromise()}))}var t,r;return t=e,(r=[{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"isTouStatusReady",get:function(){return this._isTouStatusReady}},{key:"showTouModal",get:function(){return this._showTouModal}},{key:"touAccepted",get:function(){return this._touAccepted}},{key:"touCanceled",get:function(){return this._touCanceled}}])&&Io(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),io=Ao(oo.prototype,"_isTouStatusReady",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ao=Ao(oo.prototype,"_showTouModal",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),so=Ao(oo.prototype,"_touAccepted",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),co=Ao(oo.prototype,"_touCanceled",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uo=Ao(oo.prototype,"callback",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){}}}),lo=Ao(oo.prototype,"pendingPromise",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),fo=Ao(oo.prototype,"resolvePromise",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(){}}}),po=Ao(oo.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),ho=Ao(oo.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),Ao(oo.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(oo.prototype,"loadingState"),oo.prototype),Ao(oo.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(oo.prototype,"isLoaded"),oo.prototype),vo=Ao(oo.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return xo(ko().mark((function t(){return ko().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setLoadingState(te.o.Loading),e.setLoadingState(te.o.Loaded),t.next=4,Promise.resolve();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))}}),yo=Ao(oo.prototype,"setShowTouModal",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._showTouModal=t}}}),mo=Ao(oo.prototype,"setCallback",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e.callback=t}}}),go=Ao(oo.prototype,"setTouAccepted",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._touAccepted=t,e.resolvePromise()}}}),bo=Ao(oo.prototype,"setTouCanceled",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._touCanceled=t,e.resolvePromise()}}}),Ao(oo.prototype,"isTouStatusReady",[n.Fl],Object.getOwnPropertyDescriptor(oo.prototype,"isTouStatusReady"),oo.prototype),Ao(oo.prototype,"showTouModal",[n.Fl],Object.getOwnPropertyDescriptor(oo.prototype,"showTouModal"),oo.prototype),Ao(oo.prototype,"touAccepted",[n.Fl],Object.getOwnPropertyDescriptor(oo.prototype,"touAccepted"),oo.prototype),Ao(oo.prototype,"touCanceled",[n.Fl],Object.getOwnPropertyDescriptor(oo.prototype,"touCanceled"),oo.prototype),_o=Ao(oo.prototype,"checkTOUAccepted",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return null===e.pendingPromise&&(e.pendingPromise=new Promise((function(t){e.resolvePromise=t}))),e.authStore.isSignedIn?e.isTouStatusReady&&(e.touAccepted?e.resolvePromise():(e.resolvePromise(),e.setShowTouModal(!0))):e.authStore.signIn(void 0,t),e.pendingPromise}}}),wo=Ao(oo.prototype,"shouldShowTouModal",[n.Fl],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,r){return e.isTouStatusReady&&(t&&!r||e.showTouModal&&!e.touAccepted||!e.touAccepted)}}}),Eo=Ao(oo.prototype,"shouldShowTouBanner",[n.Fl],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){if(e.isTouStatusReady&&t)return e.touCanceled}}}),oo),Qo=r(76219),ei=r(41377),ti=r(93147),ri=r(24720);function ni(){ni=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==ai(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function oi(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function ii(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){oi(i,n,o,a,s,"next",e)}function s(e){oi(i,n,o,a,s,"throw",e)}a(void 0)}))}}function ai(e){return ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ai(e)}function si(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ci(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ui(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fi(n.key),n)}}function li(e,t,r){return(t=fi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){var t=function(e,t){if("object"!==ai(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ai(t)?t:String(t)}function pi(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var di="floodgateConfigOverride",hi=(To=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.authStore=t,this.privacyStore=r,ci(this,"_loadingState",Ro,this),ci(this,"_locale",jo,this),ci(this,"_surfaces",No,this),ci(this,"_isFloodgateLoaded",Do,this),ci(this,"_floodgateFlags",Uo,this),ci(this,"configOverrides",Mo,this),ci(this,"_surfacesCampaignVariationValues",Fo,this),ci(this,"_featureFlagsCampaignVariationValues",Ho,this),ci(this,"setLoadingState",zo,this),ci(this,"initialize",Bo,this),ci(this,"setFloodgateFlags",Go,this),ci(this,"setSurfaces",Ko,this),ci(this,"setIsFloodgateLoaded",Vo,this),ci(this,"updatePersonalizationData",Wo,this),ci(this,"setFloodgateConfigOverrides",Zo,this),li(this,"_saveFloodgateConfigOverridesToStorage",(function(e){try{var t=JSON.stringify(e);sessionStorage.setItem(di,t)}catch(e){console.error("Failed to save floodgate config overrides to storage",e)}})),li(this,"_retrieveFloodgateConfigOverridesFromStorage",(function(){var e=sessionStorage.getItem(di);if(!e)return{};try{var t=JSON.parse(e);return null!=t?t:{}}catch(e){return console.error("Failed to parse floodgate config overrides from storage",e),{}}})),ci(this,"setLocale",Yo,this),ci(this,"setSurfacesCampaignVariationValues",Jo,this),ci(this,"setFeatureFlagCampaignValues",qo,this),li(this,"getCampaignVariationValuesFromAllSurfaces",(function(e){for(var t=new Set,r=[],n=0,o=Object.values(e);n<o.length;n++){var i=o[n];null==i||i.containers.forEach((function(e){var n=e.containerAnalyticsData,o=n.campaignId,i=n.variationId;t.has(o)||(t.add(o),r.push({campaignId:o,variationId:i}))}))}return r})),li(this,"joinCampaignVariationValues",(function(e){return e.length>=1?{campaignId:e.map((function(e){return e.campaignId})).join("|"),variationId:1===e.length?e[0].variationId:e.map((function(e){return"".concat(e.campaignId,":").concat(e.variationId)})).join("|")}:{}})),ci(this,"isFeatureEnabled",$o,this),(0,n.ky)(this)}var t,r;return t=e,r=[{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"_updateDataUpdaters",value:function(){this.authStore.isLoaded&&(ei.YJ.setAccessToken(this.authStore.accessToken),ri.F.setAccessToken(this.authStore.accessToken))}},{key:"getFeatureFlagCampaignValues",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["plg-custom-paywall-trigger"];return t.length?t.map((function(t){var r;return"".concat(t,":").concat(null!==(r=e.floodgateFlagsWithOverrides)&&void 0!==r&&r[t]?1:0)})).join("|"):""}},{key:"floodgateFlags",get:function(){return this._floodgateFlags}},{key:"surfaces",get:function(){return this.privacyStore.userConsentAdvertising?this._surfaces:{}}},{key:"isFloodgateLoaded",get:function(){return this._isFloodgateLoaded&&void 0!==this.floodgateFlags}},{key:"campaignVariationValues",get:function(){var e,t,r;if(!this.privacyStore.userConsentPerformance)return{};var n=null!==(e=this._surfacesCampaignVariationValues.campaignId)&&void 0!==e?e:"",o=null!==(t=this._featureFlagsCampaignVariationValues.campaignId)&&void 0!==t?t:"",i=null!==(r=this._surfacesCampaignVariationValues.variationId)&&void 0!==r?r:"",a="";return n&&o?a="".concat(n,"|").concat(o):n?a=n:o&&(a=o),a||i?{campaignId:a,variationId:i}:{}}},{key:"floodgateFlagsWithOverrides",get:function(){var e=this;if(this.floodgateFlags){var t,r={},n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return si(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?si(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(ti.$.values());try{for(n.s();!(t=n.n()).done;){var o,i=t.value;r[i]=null!==(o=this.floodgateFlags[i])&&void 0!==o?o:null}}catch(e){n.e(e)}finally{n.f()}return Object.keys(this.configOverrides).forEach((function(t){e.configOverrides[t]?r[t]=e.configOverrides[t]:r[t]=null})),r}}},{key:"getMarketingBannerItemsData",value:function(e,t){var r;if(this.surfaces){var n=this.surfaces.Test_Firefly_Banner_Growth;if(!n)return null;var o=n.containers.filter((function(r){var n;return"object"===ai(r.data)&&(null===(n=r.data)||void 0===n?void 0:n.placement)===e&&r.containerLabel.includes(t)&&""!==t}));return o.length?{bannerItems:(null===(r=o[0])||void 0===r?void 0:r.data).bannerItems,containerAnalyticsData:o[0].containerAnalyticsData}:{bannerItems:[],containerAnalyticsData:{}}}}}],r&&ui(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ro=pi(To.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),jo=pi(To.prototype,"_locale",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"en-US"}}),No=pi(To.prototype,"_surfaces",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Do=pi(To.prototype,"_isFloodgateLoaded",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Uo=pi(To.prototype,"_floodgateFlags",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Mo=pi(To.prototype,"configOverrides",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Fo=pi(To.prototype,"_surfacesCampaignVariationValues",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ho=pi(To.prototype,"_featureFlagsCampaignVariationValues",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),zo=pi(To.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),pi(To.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"loadingState"),To.prototype),pi(To.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"isLoaded"),To.prototype),Bo=pi(To.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return ii(ni().mark((function t(){return ni().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setLoadingState(te.o.Loading),ei.YJ.setResultCollector((function(t){(0,zr.Z)(t,e.floodgateFlags)||(0,n.z)((function(){e.setFloodgateFlags(t),e.setIsFloodgateLoaded(!0),e.setFeatureFlagCampaignValues()}))})),ri.F.setResultCollector((function(t){(0,zr.Z)(t,e._surfaces)||(e.setSurfaces(t),e.setSurfacesCampaignVariationValues(t))})),e.configOverrides=e._retrieveFloodgateConfigOverridesFromStorage(),(0,n.U5)((function(){return[e.authStore.isLoaded,e.authStore.accessToken]}),(function(){e.authStore.isLoaded&&e._updateDataUpdaters()})),e.setLoadingState(te.o.Loaded),t.next=8,Promise.resolve();case 8:return t.abrupt("return",t.sent);case 9:case"end":return t.stop()}}),t)})))}}),Go=pi(To.prototype,"setFloodgateFlags",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._floodgateFlags=t}}}),Ko=pi(To.prototype,"setSurfaces",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._surfaces=t}}}),Vo=pi(To.prototype,"setIsFloodgateLoaded",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._isFloodgateLoaded=t}}}),Wo=pi(To.prototype,"updatePersonalizationData",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(e){var t=Date.now()+e;ei.YJ.setTimer(Date.now()),ei.YJ.setUpdateInterval(e),ri.F.setExpirationTimer(t)}}}),Zo=pi(To.prototype,"setFloodgateConfigOverrides",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){return e.configOverrides=t,e._saveFloodgateConfigOverridesToStorage(e.configOverrides),t}}}),Yo=pi(To.prototype,"setLocale",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._locale=t,Qo.I.updateConfig({context:{locale:t},locale:t}),ei.YJ.setLocale(e._locale),ri.F.setLocale(e._locale)}}}),Jo=pi(To.prototype,"setSurfacesCampaignVariationValues",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){t&&(e._surfacesCampaignVariationValues=e.joinCampaignVariationValues(e.getCampaignVariationValuesFromAllSurfaces(t)))}}}),qo=pi(To.prototype,"setFeatureFlagCampaignValues",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e._featureFlagsCampaignVariationValues.campaignId=e.getFeatureFlagCampaignValues()}}}),pi(To.prototype,"getFeatureFlagCampaignValues",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"getFeatureFlagCampaignValues"),To.prototype),pi(To.prototype,"floodgateFlags",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"floodgateFlags"),To.prototype),pi(To.prototype,"surfaces",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"surfaces"),To.prototype),$o=pi(To.prototype,"isFeatureEnabled",[n.Fl],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var r;return void 0!==(null===(r=e.floodgateFlagsWithOverrides)||void 0===r?void 0:r[t])&&null!==e.floodgateFlagsWithOverrides[t]}}}),pi(To.prototype,"isFloodgateLoaded",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"isFloodgateLoaded"),To.prototype),pi(To.prototype,"campaignVariationValues",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"campaignVariationValues"),To.prototype),pi(To.prototype,"floodgateFlagsWithOverrides",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"floodgateFlagsWithOverrides"),To.prototype),pi(To.prototype,"getMarketingBannerItemsData",[n.Fl],Object.getOwnPropertyDescriptor(To.prototype,"getMarketingBannerItemsData"),To.prototype),To),vi=r(67232),yi=r(97717);function mi(e){return mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mi(e)}function gi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bi(n.key),n)}}function bi(e){var t=function(e,t){if("object"!==mi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==mi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mi(t)?t:String(t)}var _i,wi,Ei,Si,Oi,ki,Ci=["adobePrivacy:PrivacyConsent","adobePrivacy:PrivacyCustom","adobePrivacy:PrivacyReject"],xi=function(){function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._privacyConfig=t,r=this,o=void 0,(n=bi(n="_loadPromise"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o}var t,r;return t=e,r=[{key:"addUserConsentChangeListener",value:function(e){var t=this;this._loadPromise?this._loadPromise.promise.catch((function(){return null})).finally((function(){return t._addPrivacyListener(e)})):console.log("this method should be called after load() is called")}},{key:"_addPrivacyListener",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function(){e(),t._removePrivacyListener(r)}:e;Ci.forEach((function(e){window.addEventListener(e,r)}))}},{key:"removeUserConsentListener",value:function(e){var t=this;this._loadPromise?this._loadPromise.promise.catch((function(){return null})).finally((function(){return t._removePrivacyListener(e)})):console.log("this method should be called after load() is called")}},{key:"_removePrivacyListener",value:function(e){Ci.forEach((function(t){window.removeEventListener(t,e)}))}},{key:"getPrivacyGroups",value:function(){return window.adobePrivacy?window.adobePrivacy.activeCookieGroups():[vi.D.strictlyNecessary]}},{key:"load",value:function(){var e=this;if(this._loadPromise)return this._loadPromise.promise;this._registerConfigs(),this._loadPromise=new yi.B;var t=document.createElement("script");return t.src=this._privacyConfig.privacyUrl,t.async=!0,t.onload=function(){var t,r;window.adobePrivacy?null===(t=e._loadPromise)||void 0===t||t.resolve():null===(r=e._loadPromise)||void 0===r||r.reject("PrivacyService: the privacy lib is not available after load event.")},t.onerror=function(){var t;null===(t=e._loadPromise)||void 0===t||t.reject("PrivacyService: Failed to load the privacy script.")},document.head.appendChild(t),this._loadPromise.promise}},{key:"_registerConfigs",value:function(){window.fedsConfig={privacy:{otDomainId:this._privacyConfig.otDomainId,footerLinkSelector:this._privacyConfig.footerLinkSelector,documentLanguage:this._privacyConfig.documentLanguage}}}}],r&&gi(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Li(e){return Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Li(e)}function Ii(){Ii=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==Li(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Pi(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Ai(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Pi(i,n,o,a,s,"next",e)}function s(e){Pi(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Ti(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Ri(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ji(n.key),n)}}function ji(e){var t=function(e,t){if("object"!==Li(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Li(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Li(t)?t:String(t)}function Ni(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Di,Ui,Mi,Fi,Hi,zi,Bi=(0,un.vC)()?"7a5eb705-95ed-4cc4-a11d-0cc5760e93db":"7a5eb705-95ed-4cc4-a11d-0cc5760e93db-test",Gi=(_i=function(){function e(){var t,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,o=void 0,(r=ji(r="privacyService"))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,Ti(this,"privacyGroups",wi,this),Ti(this,"_loadingState",Ei,this),Ti(this,"setLoadingState",Si,this),Ti(this,"initialize",Oi,this),Ti(this,"updatePrivacyGroups",ki,this),(0,n.rC)(this)}var t,r;return t=e,(r=[{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"userConsentAdvertising",get:function(){return this.privacyGroups.includes(vi.D.advertising)}},{key:"userConsentPerformance",get:function(){return this.privacyGroups.includes(vi.D.performance)}},{key:"addConsentChangeListener",value:function(e){this.privacyService.addUserConsentChangeListener(e)}},{key:"removeConsentChangeListener",value:function(e){this.privacyService.removeUserConsentListener(e)}}])&&Ri(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),wi=Ni(_i.prototype,"privacyGroups",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[vi.D.strictlyNecessary]}}),Ei=Ni(_i.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),Si=Ni(_i.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),Ni(_i.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(_i.prototype,"loadingState"),_i.prototype),Ni(_i.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(_i.prototype,"isLoaded"),_i.prototype),Oi=Ni(_i.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Ai(Ii().mark((function t(){return Ii().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setLoadingState(te.o.Loading),e.privacyService=new xi({otDomainId:Bi,footerLinkSelector:"#privacy-cookie-preferences",documentLanguage:!0,privacyUrl:"https://www.adobe.com/etc.clientlibs/globalnav/clientlibs/base/privacy-standalone.js"}),t.prev=2,t.next=5,e.privacyService.load().catch((function(e){return console.error("Failed to load privacy script",e)}));case 5:(0,n.z)((function(){e.updatePrivacyGroups(),e.privacyService.addUserConsentChangeListener((function(){return e.updatePrivacyGroups()}))})),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),console.error("Failed to load privacy script",t.t0);case 11:return t.prev=11,(0,n.z)((function(){e.setLoadingState(te.o.Loaded)})),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[2,8,11,14]])})))}}),Ni(_i.prototype,"userConsentAdvertising",[n.Fl],Object.getOwnPropertyDescriptor(_i.prototype,"userConsentAdvertising"),_i.prototype),Ni(_i.prototype,"userConsentPerformance",[n.Fl],Object.getOwnPropertyDescriptor(_i.prototype,"userConsentPerformance"),_i.prototype),ki=Ni(_i.prototype,"updatePrivacyGroups",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.privacyGroups=e.privacyService.getPrivacyGroups()}}}),_i);function Ki(e){return Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ki(e)}function Vi(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Wi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==Ki(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),"symbol"===Ki(i)?i:String(i)),n)}var o,i}function Zi(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Yi,Ji,qi,$i,Xi,Qi,ea,ta,ra=(Di=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Vi(this,"_toastQueue",Ui,this),Vi(this,"addToast",Mi,this),Vi(this,"replaceToast",Fi,this),Vi(this,"removeCurrentToast",Hi,this),Vi(this,"resetToastQueue",zi,this),(0,n.ky)(this)}var t,r;return t=e,(r=[{key:"toastQueue",get:function(){return this._toastQueue}}])&&Wi(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ui=Zi(Di.prototype,"_toastQueue",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zi(Di.prototype,"toastQueue",[n.Fl],Object.getOwnPropertyDescriptor(Di.prototype,"toastQueue"),Di.prototype),Mi=Zi(Di.prototype,"addToast",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._toastQueue.push(t)}}}),Fi=Zi(Di.prototype,"replaceToast",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._toastQueue=t}}}),Hi=Zi(Di.prototype,"removeCurrentToast",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e._toastQueue.shift()}}}),zi=Zi(Di.prototype,"resetToastQueue",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e._toastQueue=[]}}}),Di),na=r(85959);function oa(e){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oa(e)}function ia(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return aa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?aa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sa(){sa=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==oa(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function ca(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function ua(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ca(i,n,o,a,s,"next",e)}function s(e){ca(i,n,o,a,s,"throw",e)}a(void 0)}))}}function la(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function fa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,da(n.key),n)}}function pa(e,t,r){return(t=da(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function da(e){var t=function(e,t){if("object"!==oa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===oa(t)?t:String(t)}function ha(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var va=function(e){return e.Uninitialized="uninitialized",e.Undefined="undefined",e.Accepted="accepted",e.Cancelled="cancelled",e}({}),ya=[{key:na.qO.LEGAL_USER_ACCEPT_KEY,timestamp:ba(2023,12,1)},{key:na.qO.WHATS_NEW_CONFIRM_KEY,timestamp:ba(2024,4,23)},{key:na.qO.FEEDBACK_INTRO_CONFIRM_KEY,timestamp:ba(2024,2,29)},{key:na.qO.EXIF_SETTING_CONFIRM_KEY,timestamp:ba(2024,3,5)},{key:na.qO.STYLE_MESSAGE_CONFIRM_KEY,timestamp:ba(2024,3,5)},{key:na.qO.TEXT2IMAGE_MODEL_VERSION_CONFIRM_KEY,timestamp:ba(2024,4,17)},{key:na.qO.TEXT2IMAGE_ADVANCE_SETTING_CONFIRM_KEY,timestamp:ba(2024,2,5)},{key:na.qO.COMMUNITY_MESSAGE_CONFIRM_KEY,timestamp:ba(2024,3,7)},{key:na.qO.STYLE_KIT_CONFIRM_KEY,timestamp:ba(2024,3,7)},{key:na.qO.CAI_DOWNLOAD_INFO_CONFIRM_KEY,timestamp:ba(2024,3,14)},{key:na.qO.CAI_COPY_LINK_CONFIRM_KEY,timestamp:ba(2024,3,14)},{key:na.qO.CAI_SAVE_TO_LIBRARY_CONFIRM_KEY,timestamp:ba(2024,3,14)},{key:na.qO.PAINT_OBJECT_TO_ERASE_CONFIRM_KEY,timestamp:ba(2024,3,28)},{key:na.qO.GENERATIVE_CREDIT_COST_CONFIRM_KEY,timestamp:ba(2024,5,8)},{key:na.qO.VIDEO_OBJECT_REMOVAL_ETHICS_CONFIRM_KEY,timestamp:ba(2024,5,16)},{key:na.qO.VIDEO_OBJECT_REMOVAL_DOWNLOAD_CONFIRMED,timestamp:ba(2024,5,16)},{key:na.qO.CME_TRAIN_PERMISSION_DIALOG_CONFIRM_KEY,timestamp:ba(2024,3,28)},{key:na.qO.STRUCTURE_COACHMARK_CONFIRM_KEY,timestamp:ba(2024,4,11)},{key:na.qO.AUTODUB_ETHICS_CONFIRM_KEY,timestamp:ba(2024,3,28)},{key:na.qO.AUTODUB_CREDITS_INFO_CONFIRM_KEY,timestamp:ba(2024,3,28)},{key:na.qO.STYLE_KIT_BROWSE_CONFIRM_KEY,timestamp:ba(2024,6,24)},{key:na.qO.OBJECT_COMPOSITE_PROMPTBAR_COACHMARK_KEY,timestamp:ba(2024,6,5)},{key:na.qO.OBJECT_COMPOSITE_PROMPTBAR_UPLOAD_COACHMARK_KEY,timestamp:ba(2024,6,5)},{key:na.qO.OBJECT_COMPOSITE_SIDEBAR_COACHMARK_KEY,timestamp:ba(2024,6,5)},{key:na.qO.CUSTOM_MODELS_COACHMARK_CONFIRM_KEY,timestamp:ba(2024,4,4)},{key:na.qO.CME_INVENTORY_FIREFLY_DIALOG_KEY,timestamp:ba(2024,4,4)}],ma=ya.map((function(e){return e.key}));function ga(e){var t;return null===(t=ya.find((function(t){return t.key===e})))||void 0===t?void 0:t.timestamp}function ba(e,t,r){var n=t-1,o=new Date(e,n,r);if(o.getFullYear()!==e||o.getMonth()!==n||o.getDate()!==r)throw new Error("Invalid date");return o.getTime()}var _a,wa,Ea,Sa,Oa,ka,Ca,xa=(Yi=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),la(this,"_confirmationStates",Ji,this),la(this,"_loadingState",qi,this),pa(this,"udsClient",void 0),la(this,"setLoadingState",$i,this),la(this,"initialize",Xi,this),la(this,"setConfirmationState",Qi,this),pa(this,"getConfirmationStates",(function(e){var r=na.EA[e];return t._confirmationStates.has(r)?t._confirmationStates.get(r):va.Uninitialized})),la(this,"reset",ea,this),la(this,"setConfirmationAccepted",ta,this),pa(this,"saveAppSectionData",function(){var e=ua(sa().mark((function e(r,n){var o;return sa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=na.EA[r],e.next=3,t.udsClient.saveAppSectionData(o,n);case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),pa(this,"fetchAppSectionData",function(){var e=ua(sa().mark((function e(r,n){var o;return sa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=na.EA[r],e.next=3,t.udsClient.fetchAppSectionData(o,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),pa(this,"deleteDocument",ua(sa().mark((function e(){return sa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.udsClient.deleteDocument();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))),pa(this,"confirmationAccepted",(function(e){return t.getConfirmationStates(e)===va.Accepted})),pa(this,"confirmationCancelled",(function(e){return t.getConfirmationStates(e)===va.Cancelled})),(0,n.rC)(this),this.udsClient=new na.wh}var t,r;return t=e,(r=[{key:"loadingState",get:function(){return this._loadingState}},{key:"isLoaded",get:function(){return this._loadingState===te.o.Loaded}},{key:"allConfirmationStates",get:function(){return JSON.stringify(Object.fromEntries(this._confirmationStates))}}])&&fa(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ji=ha(Yi.prototype,"_confirmationStates",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),qi=ha(Yi.prototype,"_loadingState",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return te.o.Uninitialized}}),$i=ha(Yi.prototype,"setLoadingState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._loadingState=t}}}),ha(Yi.prototype,"loadingState",[n.Fl],Object.getOwnPropertyDescriptor(Yi.prototype,"loadingState"),Yi.prototype),ha(Yi.prototype,"isLoaded",[n.Fl],Object.getOwnPropertyDescriptor(Yi.prototype,"isLoaded"),Yi.prototype),Xi=ha(Yi.prototype,"initialize",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=ua(sa().mark((function t(r){var o,i,a,s,c,u,l;return sa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.reset(),o=r.authStore,i=o.accessToken,a=o.isSignedIn,s=o.userProfile,e.setLoadingState(te.o.Loading),s&&e.udsClient.init(i,a,s),c=ia(ma),t.prev=6,l=sa().mark((function t(){var r,o,i;return sa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.value,t.prev=1,t.next=4,e.fetchAppSectionData(r);case 4:if("number"==typeof(o=t.sent)){t.next=8;break}return(0,n.z)((function(){e.setConfirmationState(r,va.Undefined)})),t.abrupt("return","continue");case 8:i=La(r,o),e.setConfirmationState(r,i),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(1),console.error("Error in initializeUserSettingStore",t.t0),e.setConfirmationState(r,va.Undefined);case 16:case"end":return t.stop()}}),t,null,[[1,12]])})),c.s();case 9:if((u=c.n()).done){t.next=16;break}return t.delegateYield(l(),"t0",11);case 11:if("continue"!==t.t0){t.next=14;break}return t.abrupt("continue",14);case 14:t.next=9;break;case 16:t.next=21;break;case 18:t.prev=18,t.t1=t.catch(6),c.e(t.t1);case 21:return t.prev=21,c.f(),t.finish(21);case 24:e.setLoadingState(te.o.Loaded);case 25:case"end":return t.stop()}}),t,null,[[6,18,21,24]])})));return function(e){return t.apply(this,arguments)}}()}}),Qi=ha(Yi.prototype,"setConfirmationState",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,r){var n=na.EA[t];e._confirmationStates.set(n,r)}}}),ea=ha(Yi.prototype,"reset",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e._confirmationStates.clear()}}}),ha(Yi.prototype,"allConfirmationStates",[n.Fl],Object.getOwnPropertyDescriptor(Yi.prototype,"allConfirmationStates"),Yi.prototype),ta=ha(Yi.prototype,"setConfirmationAccepted",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=ua(sa().mark((function t(r,n){return sa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.setConfirmationState(r,n?va.Accepted:va.Cancelled),t.prev=1,t.next=4,e.saveAppSectionData(r,n?ga(r):0);case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.error("Error in setConfirmationAccepted",t.t0);case 9:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(e,r){return t.apply(this,arguments)}}()}}),Yi),La=function(e,t){return t>=ga(e)?va.Accepted:va.Cancelled};function Ia(e){return Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(e)}function Pa(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Aa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==Ia(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),"symbol"===Ia(i)?i:String(i)),n)}var o,i}function Ta(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(e){i[e]=n[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var Ra=(_a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Pa(this,"_showModal",wa,this),Pa(this,"_activeId",Ea,this),Pa(this,"_visibleHeadings",Sa,this),Pa(this,"setShowModal",Oa,this),Pa(this,"setActiveId",ka,this),Pa(this,"setVisibleHeadings",Ca,this),(0,n.ky)(this)}var t,r;return t=e,(r=[{key:"showModal",get:function(){return this._showModal}},{key:"activeId",get:function(){return this._activeId}},{key:"visibleHeadings",get:function(){return this._visibleHeadings}},{key:"getShouldShowDialog",value:function(e){var t=e.isSignedIn,r=e.authId,n=e.confirmationAccepted,o=e.touAccepted,i=e.isModalFlagEnabled;return!!(t&&r&&!n&&o&&i)}}])&&Aa(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),wa=Ta(_a.prototype,"_showModal",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ea=Ta(_a.prototype,"_activeId",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Sa=Ta(_a.prototype,"_visibleHeadings",[n.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Oa=Ta(_a.prototype,"setShowModal",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._showModal=t}}}),ka=Ta(_a.prototype,"setActiveId",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._activeId=t}}}),Ca=Ta(_a.prototype,"setVisibleHeadings",[n.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){e._visibleHeadings=t}}}),_a);function ja(e){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(e)}function Na(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==ja(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===ja(o)?o:String(o)),n)}var o}new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,n.ky)(this)}var t,r;return t=e,(r=[{key:"isSignedIn",get:function(){return Ua.isSignedIn}}])&&Na(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());var Da=new So,Ua=new he(Da),Ma=new Gi,Fa=new hi(Ua,Ma),Ha=new Xo(Ua),za=new ra,Ba=new X,Ga=new ve.V(Ba.analytics),Ka=new cn(Ua),Va=new In(Ua,Fa),Wa=new _t(new Jt(Ua),new Hr(Ua)),Za=new ye.dP,Ya=new xa,Ja=new Ra},96550:(e,t,r)=>{"use strict";r.d(t,{AJ:()=>g,Ap:()=>z,F8:()=>T,FW:()=>F,Fh:()=>x,Hu:()=>o.Hu,I3:()=>i,JU:()=>y,LI:()=>E,MR:()=>_,Q4:()=>o.Q4,QQ:()=>M,SF:()=>H,TZ:()=>U,V4:()=>w,Wn:()=>h,XS:()=>j,Z6:()=>k,_u:()=>P,aC:()=>a,aY:()=>A,cX:()=>S,cp:()=>d,dX:()=>o.dX,eo:()=>u,f_:()=>o.f_,hy:()=>O,iw:()=>N,kk:()=>D,lk:()=>f,mB:()=>I,mx:()=>b,nw:()=>p,pp:()=>v,qi:()=>L,sd:()=>c,uR:()=>C,w7:()=>l,wK:()=>R,yw:()=>s,zw:()=>m});var n=r(89210),o=r(52406),i=function(e){return e.Unknown="",e.Text2Image="Text2Image",e.FontStyles="FontStyles",e.Inpaint="Inpaint",e.Text2Document="Text2Document",e.Text2Vector="Text2Vector",e.Gingerbread="Gingerbread",e.TrainYourOwnModel="TrainYourOwnModel",e.Sketch2Image="Sketch2Image",e.SharedLink="SharedLink",e.Feedback="FeedbackModule",e.Enterprise="Enterprise",e.DreamBoard="DreamBoard",e.CommunityView="CommunityView",e.VideoObjectRemoval="ObjectRemoval",e.Autodub="Autodub",e.WinnerProject="WinnerFeedback",e}({}),a=function(e){return e.CME="CME",e.GenAV="Generative Audio And Video",e}({}),s=function(e){return e.CME="CME",e.CMEPreviewAndTest="CM_PT",e}({});function c(e){switch(e){case n.Zk.Text2Image:return i.Text2Image;case n.Zk.InPainting:return i.Inpaint;case n.Zk.Text2Document:return i.Text2Document;case n.Zk.Gingerbread:return i.Gingerbread;case n.Zk.TrainYourOwnModel:return i.TrainYourOwnModel;case n.Zk.Sketch2Image:return i.Sketch2Image;case n.Zk.SharedLink:return i.SharedLink;case n.Zk.VideoObjectRemoval:return i.VideoObjectRemoval;case n.Zk.Autodub:return i.Autodub;default:throw new Error("Unknown module id: ".concat(e))}}var u=function(e){return e.IncludeImageData="include-image-data",e.ReportAbuseName="report-abuse-reporter-name",e.ReportAbuseEmail="report-abuse-reporter-email",e.ReportAbuseResultsOptions="report-abuse-results-options",e.ReportAbuseDetails="report-abuse-details",e}({}),l=function(e){return e.inspirationPage="Inspiration Feed",e.contentModule="Content Module",e.landingPage="Landing Page",e.sharedAssetPage="Share",e.home="Home",e.gallery="Gallery",e.favorites="Favorites",e.inspiration="Inspiration",e.history="History",e.communityHub="Community Hub",e.yourSubmissions="Your Submissions",e.communityView="Community View",e.customModelsTraining="CME Training",e.customModelsVideoPage="CME-Video",e.pickWinnerView="Pick Winner",e.workflowLandingPage="WorkFlow Landing Page",e.dubbingAndLipSync="Dubbing And Lip Sync",e}({}),f=function(e){return e.try="try",e.refresh="refresh",e.inspiration="inspiration",e.update="update",e.create="create",e.adjust="adjust",e.nsfwEntry="nsfw-retry",e.reportEntry="report-retry",e.ui="ui",e.error="error",e.communityCard="community-card",e.insert="inpaint-insert",e.remove="inpaint-remove",e.expand="inpaint-expand",e.backgroundReplace="inpaint-background-replace",e}({}),p=function(e){return e.Negative="negative",e.Positive="positive",e.Report="report",e}({}),d=function(e){return e.Unknown="",e.Action="action",e.AddDesignElements="add-design-elements-express",e.AddText="add-text-new-express",e.CreateSocialPost="create-social-post-express",e.CopyClipboard="copy-clipboard",e.Download="download",e.DownloadAll="download-all",e.EditImage="edit-image",e.EditOptions="edit-options",e.Favorite="favorite",e.InpaintImage="inpaint-image",e.Inspiration="inspiration",e.MoreLikeThis="more-like-this",e.UseAsStyleReference="use-as-style-reference",e.OpenExpress="open-express",e.Property="property",e.SaveToLibrary="save-to-library",e.ShuffleColors="shuffle-colors",e.Unfavorite="unfavorite",e.CopyLink="copy-link",e.CancelCopyLinkDisclosure="cancel-copy-link-disclosure",e.CopyLinkDisclosure="copy-link-disclosure",e.LearnMoreManualCopyLink="learn-more-manual-copy-link",e.CancelManualCopyLink="cancel-manual-copy-link",e.OkManualCopyLink="ok-manual-copy-link",e.LearnCopyLinkDisclosure="learn-copy-link-disclosure",e.DeleteLink="unshare",e.CAISignImageTime="cai-sign-image-time",e.DownloadNoWatermark="download-watermark-upgrade",e.ShareOptions="share-options",e.SubmitToCommunityLink="SubmitToCommunityLink",e.SaveStyleKit="save-style-kit",e.ShareAsStyleKit="share-as-style-kit",e}({}),h=function(e){return e.Text="Text",e.TextArea="TextArea",e.SingleSelect="SingleSelect",e.MultiSelect="MultiSelect",e.Checkbox="Checkbox",e.MultiSelectCollapse="MultiSelectCollapse",e.Title="Title",e.TitleWithLink="TitleWithLink",e.ImageCheckbox="ImageCheckbox",e}({}),v=function(e){return e.Transformed="transformed",e.UserStyle="user-style",e.StructureMatch="structure-match",e.ImageCaption="captioned-image",e}({}),y=function(e){return e.Denylist="denylist",e.Blocklist="blocklist",e.UnsupportedLanguage="unsupported-language",e}({}),m=function(e){return e.Success="success",e.Failure="failure",e}({}),g=function(e){return e.Click="click",e.Success="success",e.Failure="failure",e.Error="error",e}({}),b=function(e){return e.Metering="Metering",e.Paywall="Paywall",e.Merchandizing="Merchandizing",e.CommunityHub="Community Hub",e.Prompt="Prompt",e}({}),_=function(e){return e.Firefly="Firefly",e.AdobeExpress="Adobe Express",e}({}),w=function(e){return e.Express="express",e.Photoshop="photoshop",e.Illustrator="illustrator",e.Community="community",e}({}),E=function(e){return e.Banner="banner",e.Module="module",e}({}),S=function(e){return e.Upload="upload",e.Inspiration="inspiration",e.Unknown="unknown",e}({}),O=function(e){return e.InferenceNotAllowed="inference-not-allowed",e}({}),k=function(e){return e.InferenceNotAllowed="Manifest indicated image should not be used for inference.",e}({}),C=function(e){return e.ImageInvalid="image-invalid",e}({}),x=function(e){return e.ImageInvalid="Exception thrown while attempting to inspect manifest.",e}({}),L={enum:["user-written","auto-suggestion","external","inspiration"]},I=function(e){return e.Model="Model",e.Style="Style",e.Photo="Photo",e.Structure="Structure",e.Stylekit="Stylekit",e.AccessStyleKit="access-style-kit",e.ObjectComposite="ObjectComposite",e.CustomModels="CME",e}({}),P=function(e){return e.CTA="CTA",e.OkayCoachmark="okay-coachmark",e.SkipCoachmark="skip-coachmark",e.TrainaModelCoachmark="train-a-model-coachmark",e.Coachmark="coachmark",e}({}),A=function(e){return e.Unknown="unknown",e.FreeUnknown="free-unknown",e.FreePersistentUpgradeButton="free-persistent-upgrade-button",e.FreeDownloadWatermarkUpgrade="free-download-watermark-upgrade",e.FreeRanOutOfCredit="free-ran-out-of-credit",e.FreeNotificationPanel="free-notification-panel",e.FreeNearLimit="free-near-limit",e.FreeOutOfCredit="free-out-of-credit",e.FreeAccountMenu="free-account-menu",e.FreeBottomBanner="free-bottom-toast-banner",e.FreeDvaADLSUpgrade="free-dva-adls-upgrade",e.FreeDvaObjRemoveUpgrade="free-obj-remove-upgrade",e.FreeCustomBalance="free-custom-balance",e.PaidUnknown="paid-unknown",e.PaidPersistentUpgradeButton="paid-persistent-upgrade-button",e.PaidRanOutOfCredit="paid-ran-out-of-credit",e.PaidNotificationPanel="paid-notification-panel",e.PaidNearLimit="paid-near-limit",e.PaidOutOfCredit="paid-out-of-credit",e.PaidAccountMenu="paid-account-menu",e.PaidBottomBanner="paid-bottom-banner",e.PaidDvaADLSUpgrade="paid-dva-adls-upgrade",e.PaidDvaObjRemoveUpgrade="paid-dva-obj-remove-upgrade",e}({}),T=function(e){return e.TikTokLightbox="tik-tok-lightbox",e.InstagramLightbox="instagram-lightbox",e.CommunityHubLive="community-hub-live",e.CommunitySubmissionGuidelines="community-submission-guidelines",e.CommunitySubmissionSuccess="community-submission-success",e.CommunitySubmissionError="community-submission-error",e}({}),R=function(e){return e.AutoSuggestion="auto-suggestion",e}({}),j=function(e){return e.AccountMenu="account-menu",e.CreditsExhaustedErrorPage="credits-exhausted-error-page",e.NotificationToast="notification-toast",e}({}),N=function(e){return e.Next="right-carousel",e.Previous="left-carousel",e}({}),D=function(e){return e.WhatsNew="whats-new",e.SubmitIdea="submit-idea",e.ReportBug="report-bug",e.JoinCommunity="join-community",e.RateImages="rate-images",e.JoinDiscord="join-discord",e.Feedback="feedback",e}({}),U=function(e){return e.PLAY="play",e.PAUSE="pause",e}({}),M=function(e){return e.StyleKits="style-kits-tab",e.History="history-tab",e.Favorites="favorites-tab",e}({}),F=function(e){return e.ExpressPostDownload="express-post-download-modal",e}({}),H=function(e){return e.ExpressPostDownload="express-post-download-toast",e}({}),z=function(e){return e.Upload="upload",e.Generate="generate",e.Preview="preview",e}({})},2025:(e,t,r)=>{"use strict";r.d(t,{Bb:()=>o,J9:()=>a,XB:()=>c,Zp:()=>i,mf:()=>n,xW:()=>s});var n=function(e){return e.Edit="edit",e.Duplicate="duplicate",e.Delete="delete",e.PreviewAndTest="preview-and-test",e.Cancel="cancel",e.Publish="publish",e.UnPublish="un-publish",e.ImageUpload="image-upload",e.Train="train",e.RetrainContinue="retrain-continue",e.RetrainDuplicate="retrain-duplicate",e.Ok="ok",e.Model3RemindMe="model3-remind-me",e}({}),o=function(e){return e.Inventory="inventory",e.Continue="continue",e.Model="model",e.Cancel="cancel",e.SelectImages="select-images",e.Confirm="confirm",e.DontShowAgain="dont-show-again",e.CancelTraining="cancel-training",e.BackToYourModels="back-to-your-models",e.ContinueTraining="continue-training",e.SortRecentlyAccessed="sort-lastUsedOn",e.SortDateCreated="sort-createdOn",e.SortModelName="sort-modelName",e.SortStatus="sort-status",e}({}),i=function(e){return e.Try="try",e.TrainModel="train-a-model",e.Action="action",e.Page="page",e.Error="error",e.Train="train",e.ImageUpload="image-upload",e.PreviousModel="previous-model",e}({}),a=function(e){return e.List="list",e.Grid="grid",e.Inventory="cme-inventory",e.Editor="cme-editor",e.DeleteDilog="delete-dialog",e.CancelDialog="cancel-dialog",e.PublishDialog="publish-dialog",e.DragDrop="drag-drop",e.FileBrowser="file-browser",e.ThirdPartyImageUsage="third-party-image-use",e.ProgressPage="progress-page",e.CancelTrainingDialog="cancel-training-dialog",e.RetrainDialog="retrain-dialogue",e.Model3AvailableDialog="model3-available-dialogue",e}({}),s=function(e){return e.Render="render",e.Click="click",e.Succcess="success",e.Error="error",e.Retrain="retrain",e}({}),c=function(e){return e.ListView="list-view",e.GridView="grid-view",e.EditorView="editor-view",e}({})},36827:(e,t,r)=>{"use strict";r.d(t,{R$:()=>i,cE:()=>n,h_:()=>a,zN:()=>o});var n=function(e){return e.AccessEnabled="AccessEnabled",e.AccessDisabled="AccessDisabled",e}({}),o=function(e){return e.Paywall="Paywall",e.RequestAccess="RequestAccess",e.None="None",e}({}),i=function(e){return e.LegalMisuseBlock="LEGAL_MISUSE_BLOCK",e}({}),a={isPremium:!1,isFree:!1,isK12:!1,isHardCapped:!1,isSoftCapped:!1,isIndemnified:!1,isLoaded:!1,loadCompleted:!1,isRestrictedUser:!1,isZeroGBUser:!1,serviceError:null,userWorkflow:n.AccessDisabled,isRequestAccessDisabled:!0};n.AccessEnabled},97713:(e,t,r)=>{"use strict";function n(e){return{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}function o(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function i(e,t,r){return n=e,o=t,Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))<=r;var n,o}function a(e,t){return s(e,{left:t.x,top:t.y,right:Number(t.x)+Number(t.width),bottom:Number(t.y)+Number(t.height)})}function s(e,t){return e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom}function c(e,t){return{x:e.x-t,y:e.y-t,width:e.width+2*t,height:e.height+2*t}}function u(e,t){return e.width===t.width&&e.height===t.height}function l(e,t){return e.width<t&&e.height<t}r.d(t,{EN:()=>u,NG:()=>o,Wp:()=>l,ao:()=>c,bO:()=>n,f9:()=>s,fG:()=>a,kI:()=>i})},62083:(e,t,r)=>{"use strict";r.d(t,{$X:()=>h,a6:()=>v,aA:()=>d,er:()=>p,gS:()=>f});var n=r(85824);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(n,a,s,c){var u=p(e[n],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var u={enum:["image-reference","image-style-reference","show-similar-reference","style-reference","image-file-style-reference","favorite-reference","object-reference"]},l={"image-reference":{source:"variation"},"image-style-reference":{source:"variation"},"show-similar-reference":{source:"variation"},"style-reference":{source:"url"},"object-reference":{source:"url"},"image-file-style-reference":{source:"url"},"favorite-reference":{source:"url"}},f={required:["type","id","ref"],properties:{type:u,id:{type:"string"},ref:n.uz}},p={required:["type","id","ref"],properties:{type:u,id:{type:"string"},ref:n.uz}},d={required:["type","id","ref"],properties:{type:{enum:["structure-reference","image-file-structure-reference","image-file-structure-object-reference"]},id:{type:"string"},ref:n.uz}};function h(e){return"variation"===l[e.type].source}function v(e,t){return y.apply(this,arguments)}function y(){var e;return e=i().mark((function e(t,r){var o,s,c,u,l,f,p,d,h;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.ref,e.next=3,n.pB.borrowUrl(s);case 3:if(e.t1=o=e.sent,e.t0=null!==e.t1,!e.t0){e.next=7;break}e.t0=void 0!==o;case 7:if(!e.t0){e.next=11;break}e.t2=o,e.next=12;break;case 11:e.t2=null;case 12:if(!(c=e.t2)){e.next=15;break}return e.abrupt("return",c);case 15:if("style-reference"!==t.type){e.next=48;break}u=a(r.sections),e.prev=17,u.s();case 19:if((l=u.n()).done){e.next=40;break}f=l.value,p=a(f.gallery),e.prev=22,p.s();case 24:if((d=p.n()).done){e.next=30;break}if((h=d.value).id!==t.id){e.next=28;break}return e.abrupt("return",h.url);case 28:e.next=24;break;case 30:e.next=35;break;case 32:e.prev=32,e.t3=e.catch(22),p.e(e.t3);case 35:return e.prev=35,p.f(),e.finish(35);case 38:e.next=19;break;case 40:e.next=45;break;case 42:e.prev=42,e.t4=e.catch(17),u.e(e.t4);case 45:return e.prev=45,u.f(),e.finish(45);case 48:return e.abrupt("return",null);case 49:case"end":return e.stop()}}),e,null,[[17,42,45,48],[22,32,35,38]])})),y=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,s,"next",e)}function s(e){c(i,n,o,a,s,"throw",e)}a(void 0)}))},y.apply(this,arguments)}},64085:(e,t,r)=>{"use strict";r.d(t,{b:()=>n.IEnvironment});var n=r(78842)},90778:(e,t,r)=>{"use strict";r.d(t,{Eb:()=>v,sX:()=>d,xV:()=>h,eu:()=>p,Zm:()=>l,TY:()=>c,Ak:()=>f});var n=r(4021);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=o(e,2),r=t[0],n=t[1];return[r,"".concat(n.width," / ").concat(n.height)]})))}function s(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=o(e,2),r=t[0],n=t[1];return[r,n.width/n.height]})))}var c={square:{width:2048,height:2048},landscape:{width:2304,height:1792},portrait:{width:1792,height:2304},widescreen:{width:2688,height:1536},vertical:{width:1792,height:2304}},u=(a(c),s(c)),l={square:{width:1024,height:1024},landscape:{width:1408,height:1024},portrait:{width:1024,height:1408},widescreen:{width:1792,height:1024},vertical:{width:1024,height:1792}},f=a(l),p=s(l);function d(e,t){var r,o=(0,n.QS)(t)?c:l;return(r=o,Object.keys(r)).find((function(t){var r=o[t],n=r.width,i=r.height;return n===e.width&&i===e.height}))}function h(e){var t=e.aspectRatio;if((0,n.QS)(e.modelInputVersion)){var r=c[t],o=r.width,i=r.height;return{fraction:u[t],aspectRatio:t,width:o,height:i}}var a=l[t],s=a.width,f=a.height;return{fraction:p[t],aspectRatio:t,width:s,height:f}}var v={enum:["square","portrait","landscape","widescreen","vertical"]}},89210:(e,t,r)=>{"use strict";r.d(t,{VN:()=>i,Yt:()=>o,Zk:()=>n});var n=function(e){return e.Unknown="",e.HostApp="hostApp",e.TextEffects="textEffects",e.Text2Image="text2Image",e.Recolor="recolor",e.InPainting="inPainting",e.CacheGenerator="cacheGenerator",e.Text2Document="text2Document",e.Text2Template="text2Template",e.Text2Vector="text2Vector",e.Gingerbread="gingerbread",e.Enterprise="enterprise",e.TrainYourOwnModel="trainYourOwnModel",e.Sketch2Image="sketch2Image",e.SharedLink="sharedLink",e.Feedback="feedback",e.VideoObjectRemoval="ObjectRemoval",e.Autodub="autodub",e}({}),o=function(e){return e.GENERATE="generate",e.UPLOAD="upload",e.INSPIRE="inspire",e.PREVIEW="preview",e.SHARED="shared",e.TRAIN="train",e.COMMUNITY_VIEW="community/view",e.CUSTOMMODEL_PREVIEW="cmpreview",e}({}),i={GINGER_BREAD_RESULT:{general:["download","publish","share","copy","report","inpaint","favorite","more"],enterprise:["download","share","copy","report","inpaint","favorite","more"]},GINGER_BREAD_APP:{general:["publish","copy","download","share","report","edit","more"],enterprise:["copy","download","share","report","edit","more"]},TEXT_TO_DOCUMENT:{general:["open","publish","download"],enterprise:["open","download"]},TEXT_TO_VECTOR:{general:["open","publish","copy","download","more","similar","report","favorite"]},TEXT_TO_IMAGE:{general:["publish","copy","download","downloadNoWatermark","report","inpaint","outpaint","editOptions","share","favorite","similar","saveToLibrary","copyLink","shareLink","removeLink","fireflyActions","edit","useAsStyleReference","submitToCommunity","downloadAll","more"],express:["expressActions","addText","addDesignElements","createSocialPost","open"],enterprise:["copy","download","report","inpaint","outpaint","editOptions","share","favorite","similar","saveToLibrary","copyLink","shareLink","fireflyActions","edit","publish","submitToCommunity","styleKit","shareStylekit","more"],header:["download","downloadNoWatermark","copy","copyLink","shareLink","saveToLibrary","publish","submitToCommunity","open","removeLink","shareStylekit","styleKit"],shared:["copy","download","copyLink","shareLink","removeLink","shareStylekit","share","saveToLibrary","submitToCommunity","open"],community:["copy","download","share"],V3:["useAsStructureReference"]},TEXT_TO_IMAGE_GALLERY:{general:["publish","copy","download","downloadNoWatermark","report","inpaint","outpaint","editOptions","share","favorite","similar","saveToLibrary","copyLink","shareLink","removeLink","fireflyActions","submitToCommunity","useAsStructureReference","more"],v1Actions:["edit"],v2Actions:["useAsStyleReference"],enterprise:["copy","download","report","inpaint","outpaint","editOptions","share","favorite","similar","saveToLibrary","copyLink","shareLink","fireflyActions","publish","submitToCommunity","styleKit","useAsStructureReference","more"],express:["expressActions","addText","addDesignElements","createSocialPost","open"]},GALLERY_MODAL:{general:["download","publish","share","copy","report","inpaint","favorite","submitToCommunity","more"],enterprise:["download","share","copy","report","inpaint","favorite","styleKit","more"]},RECOLOR:{general:["download","downloadNoWatermark","copy","shuffle","share"],express:["open"]}}},4929:(e,t,r)=>{"use strict";r.d(t,{Z_:()=>i,pr:()=>o});var n=r(62083),o={required:["left","top","right","bottom"],properties:{left:{type:"number"},top:{type:"number"},right:{type:"number"},bottom:{type:"number"}}},i={properties:{heroImage:n.er,heroImageSize:{required:["width","height"],properties:{width:{type:"number"},height:{type:"number"}}},placement:o}}},67232:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var n=function(e){return e.strictlyNecessary="C0001",e.performance="C0002",e.functional="C0003",e.advertising="C0004",e}({})},12106:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});var n=function(e){return e.Uninitialized="Uninitialized",e.Loading="Loading",e.Loaded="Loaded",e}({})},40408:(e,t,r)=>{"use strict";r.d(t,{$A:()=>y,Op:()=>k,eh:()=>E,gU:()=>_,k3:()=>L,vh:()=>g,y2:()=>m,yR:()=>b});var n=r(32147),o=r(26116),i=r(81278),a=r(96550),s=r(62083),c=r(90778),u=r(4929),l=r(38374),f=r(4021);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(e){return e.V1="v1",e.V2="v2",e.V3="v3",e.V3exp="v3exp",e.V3dev="v3dev",e}({}),m="v2",g=6,b={required:["prompt","promptType","styles","seeds","aspectRatio","advancedParams"],properties:{previewUrl:{type:"string"},focusedSeed:{type:"integer"},pipelineVersion:{type:"string"},browserId:{type:"string"},prompt:{type:"string"},promptType:a.qi,styles:(0,l.zU)({type:"array",items:{type:"string"}}),referenceImage:s.gS,structureReferenceImage:s.aA,structureAdherence:l.kB,sourceSeed:{type:"integer"},seeds:{type:"array",minItems:1,maxItems:4,items:{type:"integer"}},previewSeed:{type:"integer"},docId:{type:"string"},styleKitTemplate:{required:["name","docId","canShare"],properties:{name:{type:"string"},docId:{type:"string"},canShare:{type:"boolean"}}},aspectRatio:c.Eb,advancedParams:l.DE,locale:{type:"string"},guideStrength:l.Sj,rlhfCreativity:{type:"number"},keywords:(0,l.zU)({type:"string"}),modelInputVersion:l.Ab,exif:(0,l.zU)(l.KP),avoid:{type:"string"},contentType:(0,l.zU)(l.u0),customModelId:{type:"string"},promptDebiasing:{type:"boolean"},objectComposite:u.Z_,compareModelVersions:l.KY,hasVariableParams:{type:"boolean"},variableParams:l.t}},_={previewUrl:void 0,focusedSeed:void 0,pipelineVersion:void 0,browserId:void 0,referenceImage:void 0,structureReferenceImage:void 0,structureAdherence:void 0,locale:void 0,guideStrength:void 0,rlhfCreativity:void 0,keywords:void 0,modelInputVersion:void 0,exif:void 0,avoid:void 0,contentType:void 0,customModelId:void 0,sourceSeed:void 0,docId:void 0,promptDebiasing:void 0,objectComposite:void 0,styleKitTemplate:void 0,previewSeed:void 0,compareModelVersions:void 0,hasVariableParams:void 0,variableParams:void 0},w=["previewUrl","focusedSeed","browserId","docId","promptType"];function E(e){var t=(0,n.Z)(e,w);return o.D.normalize(t)}function S(e){var t;if((0,f.QS)(e.modelInputVersion)&&null!==(t=e.styles.value)&&void 0!==t&&t.includes("photo"))return e.exif?e.exif:{mode:"auto",value:[]}}function O(e){var t;return null!==(t=e.styles)&&void 0!==t?t:{mode:"manual",value:[]}}function k(e){var t;return(0,f.QS)(e.modelInputVersion)?null!==(t=e.guideStrength)&&void 0!==t?t:i.MR:void 0}function C(e){var t;return(0,f.QS)(e.modelInputVersion)?null!==(t=e.rlhfCreativity)&&void 0!==t?t:g:void 0}function x(e){var t;return null!==(t=e.aspectRatio)&&void 0!==t?t:"square"}function L(e){return h(h({},e),{aspectRatio:x(e),styles:O(e),rlhfCreativity:C(e),exif:S(e),guideStrength:k(e)})}},79296:(e,t,r)=>{"use strict";r.d(t,{BK:()=>i,Ms:()=>o,Py:()=>n});var n=function(e){return e.Grid="grid",e.Carousel="carousel",e}({}),o={enum:["grid","carousel"]},i=function(e){return e.Ok="ok",e.DeniedWords="denied",e.NonEnglishWord="non-english",e.BlockedWord="blocked",e.NSFWReferenceImage="nsfw-reference-image",e.Error="error",e.Pending="pending",e}({})},21203:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});var n=function(e){return e.ADD_FAVORITE="add-favorite",e.ERROR="error",e.EXPRESS_OPEN_FAILED="express-open-failed",e.FEEDBACK_BUTTON="feedback-button",e.SUBMITTED_GALLERY="submitted-gallery",e.DELETE_HISTORY_ITEM="delete-history-item",e.DELETE_HISTORY_ITEM_ERROR="delete-history-item-error",e.DELETE_STYLEKITS_ITEM="delete-styleKits-item",e.DELETE_STYLEKITS_ITEM_ERROR="delete-styleKits-item-error",e.LEAVE_STYLEKITS_ITEM="leave-styleKits-item",e.LEAVE_STYLEKITS_ITEM_ERROR="leave-styleKits-item-error",e.LEAVE_ITEM_ERROR_NO_MATCHING_COLLABORATOR="leave-item-error-no-matching-collaborator",e.DENIED_WORD="denied-word",e.NSFW_REFERENCE_IMAGE="nsfw-reference-image",e.CANNOT_COPY_DOWNLOAD="cannot-copy-download",e.CANNOT_LOAD_IMAGE="cannot-load-image",e.PROMPT_SHORT="prompt-short",e.LARGE_TOKENS="large-tokens",e.CUSTOM_MODEL_DELAY="custom-model-delay",e.CUSTOM_MODEL_AUTO_CAPTION_PROGRESS="custom-model-auto-caption-progress",e.CUSTOM_MODEL_AUTO_CAPTION_SUCCESS="custom-model-auto-caption-success",e.CUSTOM_MODEL_AUTO_CAPTION_FAILURE="custom-model-auto-caption-failure",e.UPLOAD_SVG="upload-svg",e.SAVE_TO_LIBRARY="cc-libraries:save-to-library",e.PUBLIC_LINK_COPIED="public-link-copied",e.CONTINUE_NATIVE_SHARE="continue-native-share",e.LINK_DELETED_PERMANENTLY="link-deleted-permanently",e.GENERIC_SERVICE_ERROR="generic-service-error",e.SEND_EMAIL_VERIFICATION_ERROR="send-email-verification-error",e.SEND_EMAIL_VERIFICATION_SUCCESS="send-email-verification-success",e.RATING_PROGRESS="rating-progress",e.UPLOAD_HISTORY_ITEM="upload-history-item",e.UPLOAD_HISTORY_ITEM_SUCCESS="upload-history-item-success",e.UPLOAD_HISTORY_ITEM_ERROR="upload-history-item-error",e.HISTORY_ITEM_LOAD_ERROR="history-item-load-error",e.UPLOAD_HISTORY_QUOTA_ERROR="upload-history-quota-error",e.STYLEKIT_ITEM_LOAD_ERROR="stylekit-item-load-error",e.STYLEKIT_LISTING_LOAD_ERROR="stylekit-listing-load-error",e.WEB_COMPONENT="web-component",e.INSUFFICIENT_CREDITS="insufficient-credits",e.INFO="info",e.FEEDBACK_COUNT="feedback-count",e.FEEDBACK_REPORT="feedback-report",e.CREDIT_LIMITS_WARNING_NEAR_LIMIT="credit-limits-warning-near-limit",e.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS="credit-limits-warning-out-of-credits",e.SUBMITTED_TO_COMMUNITY="submit-to-community",e.SUBMIT_TO_COMMUNITY_ERROR="submit-to-community-error",e.ALREADY_SUBMITTED_TO_COMMUNITY="already-submitted-to-community",e.VIDEO_OBJECT_REMOVAL_RETRY="video-object-removal-retry",e.EXPRESS_POST_DOWNLOAD="express-post-download",e.SAVING_TO_LIBRARY="cc-libraries:saving-to-library",e.PARAMETRIC_COMPARISON_PARSE_ERROR="parameter-comparison-parse-error",e.OBJECT_COMPOSITE_UNSUPPORTED_STYLES_REMOVED="object-composite-unsupported-styles-removed",e.REQUEST_UPGRADE_TO_REMOVE_APPROVED="request-upgrade-to-remove-approved",e}({})},6478:(e,t,r)=>{"use strict";r.d(t,{Nq:()=>a,az:()=>n,pC:()=>o,x7:()=>i});var n=function(e){return e.TOP="top",e.BOTTOM="bottom",e.TOP_RIGHT="top-right",e.CENTER_PROMPT="center-prompt",e.CUSTOM="custom",e}({}),o=function(e){return e.TOAST="toast",e.TRAY="tray",e.WEB_COMPONENT="web-component",e}({}),i=function(e){return e.POSITIVE="positive",e.NEGATIVE="negative",e.INFO="info",e.NONE="none",e.UNSTYLED="unstyled",e.MOBILE="mobile",e.NO_MANUAL_DISMISS="noManualDismiss",e}({}),a=function(e){return e.ONEUP="1up",e.NORMAL="normal",e}({})},11701:(e,t,r)=>{"use strict";r.d(t,{uz:()=>n,y4:()=>o});var n={styles:[],groups:[],popular:[]},o=function(e){return e.Text2Image="Text2Image",e.Text2ImageOC="Text2ImageOC",e}({})},38374:(e,t,r)=>{"use strict";r.d(t,{Ab:()=>i,DE:()=>b,HK:()=>g,KH:()=>v,KP:()=>u,KY:()=>a,SE:()=>c,Sj:()=>l,kB:()=>f,t:()=>y,u0:()=>s,zU:()=>m});var n=r(41742),o=r(53683),i={enum:["v1","v2","v3","v3exp","v3dev"]},a={enum:["v2VsV3"]},s={enum:["","photo","illustration","raw","vector"]},c=function(e){return e.QUOTA_WARNING_HARD_CAP="QUOTA_WARNING_HARD_CAP",e.QUOTA_EXHAUSTED_USING_DAILY_CREDITS="QUOTA_EXHAUSTED_USING_DAILY_CREDITS",e.QUOTA_EXHAUSTED="QUOTA_EXHAUSTED",e}({}),u={required:["aperture","focal_length","shutter_speed"],properties:{aperture:{type:"number",minimum:0,maximum:25},focal_length:{type:"number",minimum:0,maximum:1900},shutter_speed:{type:"number",minimum:1/8e3,maximum:32}}},l={type:"number"},f={type:"number"},p={enum:["auto","manual"]};function d(e){return{anyOf:[e,{type:"array",items:e}]}}var h={properties:{model:d(i),contentType:d(s),seed:d({type:"number",minimum:1,maximum:1e5}),styles:d({type:"array",items:{type:"string"}}),styleStrength:d(l),visualIntensity:d({type:"number"})},patternProperties:{"^debug:":d({anyOf:[{type:"string"},{type:"number"},{type:"boolean"}]})},additionalProperties:!1},v=new n.c(h),y={properties:{model:{type:"array",items:i},contentType:{type:"array",items:s},seed:{type:"array",items:{type:"number",minimum:1,maximum:1e5}},styles:{type:"array",items:{type:"array",items:{type:"string"}}},styleStrength:{type:"array",items:l},visualIntensity:{type:"array",items:{type:"number"}}},patternProperties:{"^debug:":{type:"array",items:{anyOf:[{type:"string"},{type:"number"},{type:"boolean"}]}}},additionalProperties:!1};function m(e){return{required:["mode"],properties:{value:e,mode:p}}}function g(e){return{oneOf:[e,{type:"null"}]}}var b={properties:Object.fromEntries(o.zg.map((function(e){return[e,{type:"string"}]})))}},42739:(e,t,r)=>{"use strict";r.d(t,{A_:()=>u,Ec:()=>c,LY:()=>l});var n=r(17578),o=r(41481),i=r(64264),a=r(19504),s=function(){return(0,n.u7)(n.f7.EXTERNAL_RELEASE)?{hostName:a._Z.prod,env:a.CQ.production}:(0,n.u7)(n.f7.INTERNAL_PROD)?{hostName:a._Z.corp,env:a.CQ.corporate}:{hostName:a._Z.stage,env:a.CQ.staging}},c=function(e){var t=s(),r=t.hostName,n=t.env,o=new URL("".concat(r,"public/t2i"));return o.searchParams.set("id",e),n===a.CQ.corporate&&o.searchParams.set("env","corp"),o.toString()},u=function(e){var t=s().hostName,r=new URL("".concat(t,"generate/images"));return r.searchParams.set("docId",e),r.searchParams.set("type","stylekit"),r.toString()},l=function(e){var t=(0,n.vC)(),r=e.toUpperCase();return t?r===o.Uh.IRL1?i.rv[o.Uh.IRL1]:r===o.Uh.JPN3?i.rv[o.Uh.JPN3]:i.rv[o.Uh.DEFAULT]:r===o.Uh.IRL1?i.Q4[o.Uh.IRL1]:i.Q4[o.Uh.DEFAULT]}},49941:(e,t,r)=>{"use strict";function n(e){return e.split("@")[0]}r.d(t,{L:()=>n})},44926:(e,t,r)=>{"use strict";r.d(t,{DR:()=>a,G6:()=>o,Lv:()=>p,TY:()=>s,ZH:()=>f,b1:()=>c,o5:()=>l,tH:()=>u});var n={Chrome:108,Edge:108,Safari:15,Firefox:108,Opera:40,IE:0,MSIE:0,"Chrome Android":108,"Firefox for Android":108,"Safari on iOS":15,"Samsung Internet":17};function o(){return"Safari"===i.name}var i=function(){var e,t,r,n=navigator.userAgent,o=navigator.appName,i=parseFloat(navigator.appVersion).toString(),a=parseInt(navigator.appVersion,10);return-1!==(t=n.indexOf("Chrome"))?(o="Chrome",i=n.substring(t+7)):-1!==(t=n.indexOf("MSIE"))?(o="Microsoft Internet Explorer",i=n.substring(t+5)):-1!==(t=n.indexOf("Safari"))?(o="Safari",i=n.substring(t+7),-1!==(t=n.indexOf("Version"))&&(i=n.substring(t+8))):(e=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/"))&&(o=n.substring(e,t),i=n.substring(t+1),o.toLowerCase()===o.toUpperCase()&&(o=navigator.appName)),-1!==(r=i.indexOf(";"))&&(i=i.substring(0,r)),-1!==(r=i.indexOf(" "))&&(i=i.substring(0,r)),a=parseInt(""+i,10),isNaN(a)&&(i=parseFloat(navigator.appVersion).toString(),a=parseInt(navigator.appVersion,10)),{name:o,majorVersion:a,version:parseFloat(i)}}();function a(){return i}var s=function(){var e=a(),t=n[e.name];return!!t&&e.majorVersion>=t};function c(){return"ontouchstart"in window||navigator.maxTouchPoints>0}function u(){return navigator.userAgent.includes("Firefox")}function l(){return"undefined"!=typeof ClipboardItem}function f(){return navigator.userAgent.toLowerCase().includes("playwright")&&o()}function p(){var e="browserUUID",t=localStorage.getItem(e);return t||localStorage.setItem(e,t=crypto.randomUUID().slice(0,6)),t}},12983:(e,t,r)=>{"use strict";r.d(t,{qH:()=>k});var n=r(63143),o=r(97717),i=r(34486);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function p(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(){h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function d(){}function v(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=d.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var u=f(e[n],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==c(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),u(_,s,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function v(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,s,"next",e)}function s(e){v(i,n,o,a,s,"throw",e)}a(void 0)}))}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function b(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}var E=function(){function e(){m(this,e),_(this,"_abortController",new AbortController),_(this,"lastResult",void 0),_(this,"lastError",void 0),_(this,"completed",!1),_(this,"_callbacks",new Map),_(this,"_clients",new Set)}var t,r,i,a,s,c;return b(e,[{key:"signal",get:function(){return this._abortController.signal}},{key:"failed",get:function(){return this.completed&&this.lastError}},{key:"setError",value:function(e){this.lastError=e,this.completed=!0,this._invokeCallbacks().catch((function(e){return console.error("Exception while executing CancelableRequest.setError",e)}))}},{key:"setPartialResult",value:(c=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.lastResult=t,e.next=3,this._invokeCallbacks();case 3:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"setFinalResult",value:(s=y(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.lastResult=t,this.completed=!0,e.next=4,this._invokeCallbacks();case 4:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"getResult",value:function(){var e=this.completed,t=this.lastResult,r=this.lastError;if(!e)throw new n.c6("UNREACHABLE","Request is not yet completed.");if(r)throw r;if(t)return t;throw new n.c6("UNREACHABLE","Completion without result nor error.")}},{key:"track",value:(a=y(h().mark((function e(t,r){var n,i,a=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.completed){e.next=6;break}if(t.throwIfAborted(),!r){e.next=5;break}return e.next=5,this._invokeCallback(r);case 5:return e.abrupt("return");case 6:return n=new o.B,this._clients.add(n),i=function(){r&&a._callbacks.delete(r),a._removeClient(n),n.reject(new DOMException("The request aborted by user","AbortError"))},t.addEventListener("abort",i),this._clients.add(n),e.prev=11,r&&this._callbacks.set(r,n),e.next=15,n.promise;case 15:return e.prev=15,t.removeEventListener("abort",i),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[11,,15,18]])}))),function(e,t){return a.apply(this,arguments)})},{key:"_invokeCallbacks",value:(i=y(h().mark((function e(){var t,r,n,o,i,a,s,c;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],r=f(this._callbacks);try{for(r.s();!(n=r.n()).done;)u=n.value,l=2,o=function(e){if(Array.isArray(e))return e}(u)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(u,l)||p(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1],t.push(this._invokeCallbacksInnerLoop(i,a))}catch(e){r.e(e)}finally{r.f()}if(this.completed){s=f(this._clients);try{for(s.s();!(c=s.n()).done;)c.value.resolve()}catch(e){s.e(e)}finally{s.f()}this._callbacks.clear(),this._clients.clear()}if(!t.length){e.next=7;break}return e.next=7,Promise.all(t);case 7:case"end":return e.stop()}var u,l}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"_invokeCallbacksInnerLoop",value:(r=y(h().mark((function e(t,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._invokeCallback(t);case 3:e.next=10;break;case 5:e.prev=5,e.t0=e.catch(0),this._callbacks.delete(t),this._removeClient(r),r.reject(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return r.apply(this,arguments)})},{key:"_invokeCallback",value:(t=y(h().mark((function e(t){var r,o,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.completed,o=this.lastResult,!(i=this.lastError)){e.next=3;break}throw i;case 3:if(!o){e.next=7;break}return e.next=6,t(o,r);case 6:return e.abrupt("return");case 7:throw new n.c6("UNREACHABLE","Callback invocation without result nor error.");case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_removeClient",value:function(e){this._clients.delete(e),this._abortIfNoClients()}},{key:"_abortIfNoClients",value:function(){this.completed||this._callbacks.size||this._clients.size||this._abortController.abort()}}]),e}(),S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=l(t);if(r){var o=l(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;return m(this,o),(t=n.call(this)).model=e,t}return b(o)}(E),O=new i.C("CancelableCache_PersistentCache_Shared"),k=function(){function e(t,r,n){m(this,e),this._hashFn=t,this._executorFn=r,this.sessionCacheType=n,_(this,"_cache",new Map)}var t;return b(e,[{key:"clearCache",value:function(e){var t=this._hashFn(e);this._cache.delete(t)}},{key:"load",value:(t=y(h().mark((function e(t,r,n,o){var i,a,u,l,f=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this._hashFn(r),!(!(a=this._cache.get(i))||a.signal.aborted||a.failed&&n)){e.next=14;break}if(a=new S(r),this._cache.set(i,a),u={type:this.sessionCacheType,model:r},!this.sessionCacheType){e.next=13;break}return e.next=9,O.get(u);case 9:if(!(l=e.sent)){e.next=13;break}return a.setFinalResult(l).catch((function(e){return console.error("Error setting final result",e)})),e.abrupt("return",l);case 13:this._executorFn(a).then((function(e){if(f.sessionCacheType){var t="object"===c(e)&&"Text2Image"===f.sessionCacheType?s(s({},e),{},{isInferenceGenerated:!1}):e;O.set(u,t).catch((function(e){console.error("Error storing in sessionCache",e)}))}a.setFinalResult(e).catch((function(e){console.error("Error setting final result",e)}))})).catch((function(e){console.log("error",e),a.setError(e)}));case 14:return e.next=16,a.track(t,o);case 16:return e.abrupt("return",a.getResult());case 17:case"end":return e.stop()}}),e,this)}))),function(e,r,n,o){return t.apply(this,arguments)})}]),e}()},63143:(e,t,r)=>{"use strict";r.d(t,{$L:()=>D,Bs:()=>Z,I4:()=>k,Ni:()=>B,O$:()=>T,Pe:()=>A,Py:()=>U,Rd:()=>F,Wu:()=>N,Yb:()=>S,c6:()=>O,hu:()=>I,lR:()=>x,lS:()=>Y,n3:()=>P,pC:()=>H,pp:()=>M,tu:()=>C,yD:()=>R,zE:()=>_,zR:()=>j,z_:()=>z});var n=r(44793);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function u(e){var t=d();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}(this,r)}}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t="function"==typeof Map?new Map:void 0;return f=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)},f(e)}function p(e,t,r){return p=d()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o},p.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(e){return new DOMException(null!=e?e:"The signal was aborted.","AbortError")}var w,E=new Map([[404,{code:"NOT_FOUND",message:"Resource not found"}],[403,{code:"ACCESS_DENIED",message:"Access to resource denied"}],[304,{code:"NOT_MODIFIED",message:"Resource has not changed."}],[409,{code:"CONFLICT",message:"Resource has a naming conflict."}],[500,{code:"SERVICE_ERROR",message:"Internal server error."}]]),S=new Map([["NOT_FOUND",404],["ACCESS_DENIED",403],["NOT_MODIFIED",304],["CONFLICT",409],["SERVICE_ERROR",500],["INSUFFICIENT_CREDITS",403],["USER_PROFILE_DENIED",403],["USER_NOT_ENTITLED",403],["USER_BLOCKED_BY_ADMIN",403],["USER_BLOCKED_VIOLATION",403],["SERVICE_AT_CAPACITY",429],["DAILY_LIMIT",429],["BLOCKED_REGION",451],["INVALID_SCOPE",403],["FORBIDDEN",403],["INVALID_TOKEN",401],["CME_USER_NOT_ENROLLED",403],["500",500]]),O=(new Map((w=E.entries(),function(e){if(Array.isArray(e))return b(e)}(w)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(w)||g(w)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0];return[t[1].code,r]}))),function(e){c(r,e);var t=u(r);function r(e,n){var o;return i(this,r),(o=t.call(this,"[".concat(e,"] ").concat(n))).code=e,o.title=n,y(l(o),"name","ClioError"),Object.setPrototypeOf(l(o),(this instanceof r?this.constructor:void 0).prototype),o}return s(r,[{key:"response",get:function(){}},{key:"underlyingError",get:function(){}}]),r}(f(Error))),k=function(e){c(r,e);var t=u(r);function r(e,n,o){var a;i(this,r);var s="";if(null!=o)try{s=" -> ".concat(String(o))}catch(e){}return y(l(a=t.call(this,e,"".concat(n).concat(s))),"_underlyingError",void 0),y(l(a),"name","ClioGenericError"),a._underlyingError=o,a}return s(r,[{key:"underlyingError",get:function(){return this._underlyingError}}],[{key:"wrapErrorIfNeeded",value:function(e,t,n){return n instanceof O?n:new r(e,t,n)}}]),r}(O);function C(e){for("string"==typeof e&&(e=parseInt(e)),e=Math.floor(e);e>999;)e=Math.floor(e/10);return e}var x=function(e){c(r,e);var t=u(r);function r(e,n,o){var a,s;i(this,r);var c=C(e),u=void 0!==c?E.get(c):void 0;return y(l(s=t.call(this,null!==(a=null==u?void 0:u.code)&&void 0!==a?a:"UNEXPECTED_RESPONSE",o)),"_type",void 0),y(l(s),"_status",void 0),y(l(s),"name","ClioRepositoryError"),s._type=n,s._status=c,s}return s(r,[{key:"status",get:function(){return this._status}},{key:"type",get:function(){return this._type}}]),r}(O),L=function(e){c(r,e);var t=u(r);function r(e){return i(this,r),t.call(this,"ASSERTION_ERROR",e)}return s(r)}(O);function I(e,t){if(!e)throw new L(t)}function P(e){return e instanceof O&&"NSFW_IMAGE"===e.code}function A(e){return e instanceof O&&"NSFW_REFERENCE_IMAGE"===e.code}function T(e){if(e){if(e instanceof n.Ds){var t,r=e,o=r.data.reason;return{statusCode:r.data.status,statusCodeText:r.data.statusText,errorCode:o.error_code,message:o.message,reason:null!==(t=o.reason)&&void 0!==t?t:""}}return e instanceof Response?{statusCode:e.status,statusCodeText:e.statusText}:void 0}}function R(e){var t=T(e);return t?403===t.statusCode&&"quotaExhausted"===t.reason:e instanceof O&&"INSUFFICIENT_CREDITS"===e.code}function j(e){return"SPLTaskInputValidationError"===e.name}function N(e){var t=T(e);return t?403===t.statusCode&&"userNotEntitled"===t.reason:e instanceof O&&"USER_NOT_ENTITLED"===e.code}function D(e){var t=T(e);return t?403===t.statusCode&&"userBlockedByAdmin"===t.reason:e instanceof O&&"USER_BLOCKED_BY_ADMIN"===e.code}function U(e){var t=T(e);return t?403===t.statusCode&&"userBlockedDueToViolation"===t.reason:e instanceof O&&"USER_BLOCKED_VIOLATION"===e.code}function M(e){var t=T(e);return t?429===t.statusCode:e instanceof O&&"SERVICE_AT_CAPACITY"===e.code}function F(e){var t=T(e);return t?429===t.statusCode&&"429050"===t.errorCode:e instanceof O&&"DAILY_LIMIT"===e.code}function H(e){var t=T(e);return t?451===t.statusCode:e instanceof O&&"BLOCKED_REGION"===e.code}function z(e){var t=T(e);return t?403===t.statusCode&&"invalidScope"===t.reason:e instanceof O&&"INVALID_SCOPE"===e.code}function B(e){var t=T(e);return!!t&&500===t.statusCode}var G=function(e){return e instanceof O&&"CME_USER_NOT_ENROLLED"===e.code},K=function(e){return e instanceof O&&"UNSUPPORTED_MEDIA_TYPE"===e.code},V=function(e){return e instanceof O&&"UNSUPPORTED_SCREEN_TYPE"===e.code},W=function(e){return e instanceof O&&"RETIRE_TO_EXPRESS"===e.code};function Z(e){return e instanceof O?e:navigator.onLine?(t=T(e))&&401===t.statusCode?Y("INVALID_TOKEN"):F(e)?Y("DAILY_LIMIT"):M(e)?Y("SERVICE_AT_CAPACITY"):B(e)?Y("500"):R(e)?Y("INSUFFICIENT_CREDITS"):function(e){var t=T(e);return t?403===t.statusCode&&"userProfileDenied"===t.reason:e instanceof O&&"USER_PROFILE_DENIED"===e.code}(e)?Y("USER_PROFILE_DENIED"):N(e)?Y("USER_NOT_ENTITLED"):D(e)?Y("USER_BLOCKED_BY_ADMIN"):U(e)?Y("USER_BLOCKED_VIOLATION"):H(e)?Y("BLOCKED_REGION"):z(e)?Y("INVALID_SCOPE"):G(e)?Y("CME_USER_NOT_ENROLLED"):K(e)?Y("UNSUPPORTED_MEDIA_TYPE"):V(e)?Y("UNSUPPORTED_SCREEN_TYPE"):W(e)?Y("RETIRE_TO_EXPRESS"):new O("GENERIC",String(e)):Y("NETWORK_OFFLINE");var t}function Y(e){switch(e){case"NETWORK_OFFLINE":return new O(e,"Network offline");case"INVALID_TOKEN":return new O(e,"Invalid token");case"DAILY_LIMIT":return new O(e,"Daily limit");case"SERVICE_AT_CAPACITY":return new O(e,"Service at capacity");case"500":return new O(e,"Internal server error");case"INSUFFICIENT_CREDITS":return new O(e,"Insufficient credits");case"USER_PROFILE_DENIED":return new O(e,"User profile denied");case"USER_NOT_ENTITLED":return new O(e,"User not entitled");case"USER_BLOCKED_BY_ADMIN":return new O(e,"User blocked by admin");case"USER_BLOCKED_VIOLATION":return new O(e,"User blocked due to violation");case"BLOCKED_REGION":return new O(e,"Region blocked");case"INVALID_SCOPE":return new O(e,"Invalid scope");case"CME_USER_NOT_ENROLLED":return new O(e,"CME User is not Enrolled");case"UNSUPPORTED_MEDIA_TYPE":return new O(e,"No mobilesupport");case"UNSUPPORTED_SCREEN_TYPE":return new O(e,"Resolution too low");case"RETIRE_TO_EXPRESS":return new O(e,"Feature retired");case"MODULE_UNAVAILABLE":case"MODULE_UNAVAILABLE_ON_DEVICE":return new O(e,"Module unavailable");default:return new O(e,e)}}},16158:(e,t,r)=>{"use strict";r.d(t,{I4:()=>V,TP:()=>q,VD:()=>$,Zt:()=>X,nq:()=>x,oQ:()=>K});var n,o,i,a,s,c,u,l,f,p,d,h,v,y,m=r(36258),g=r(18084),b=r(96550),_=r(38374),w=r(21203),E=r(6478),S=r(47203);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function k(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==O(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===O(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var C=(k(n={},g.Jz.UPSELL_NAVBAR,b.aY.FreePersistentUpgradeButton),k(n,g.Jz.UPSELL_UAM,b.aY.FreeAccountMenu),k(n,g.Jz.UPSELL_TOAST_NEAR_LIMIT,b.aY.FreeNearLimit),k(n,g.Jz.UPSELL_TOAST_OUT_OF_CREDIT,b.aY.FreeOutOfCredit),k(n,g.Jz.UPSELL_BOTTOM_BANNER,b.aY.FreeBottomBanner),k(n,g.Jz.UPSELL_DOWNLOAD_NO_WATERMARK,b.aY.FreeDownloadWatermarkUpgrade),k(n,g.Jz.UPSELL_CUSTOM_BALLANCE,b.aY.FreeCustomBalance),k(n,g.Jz.DVA_ADLS_UPGRADE,b.aY.FreeDvaADLSUpgrade),k(n,g.Jz.DVA_OBJ_REMOVE_UPGRADE,b.aY.FreeDvaObjRemoveUpgrade),k(n,g.Jz.QUOTA_EXPIRED,b.aY.FreeRanOutOfCredit),k(n,g.Jz.PAID_UPSELL_UAM,b.aY.PaidAccountMenu),k(n,g.Jz.PAID_UPSELL_TOAST_NEAR_LIMIT,b.aY.PaidNearLimit),k(n,g.Jz.PAID_UPSELL_TOAST_OUT_OF_CREDIT,b.aY.PaidOutOfCredit),k(n,g.Jz.PAID_UPSELL_BOTTOM_BANNER,b.aY.PaidBottomBanner),k(n,g.Jz.PAID_DVA_ADLS_UPGRADE,b.aY.PaidDvaADLSUpgrade),k(n,g.Jz.PAID_DVA_OBJ_REMOVE_UPGRADE,b.aY.PaidDvaObjRemoveUpgrade),k(n,g.Jz.PAID_QUOTA_EXPIRED,b.aY.PaidRanOutOfCredit),n),x=function(e){return e?C[e]:b.aY.Unknown},L={month:"long",day:"numeric"},I=(0,m.Em)({id:"@clio/playground:purchase-button-label-buy-credits",defaultMessage:[{type:0,value:"Buy credits"}]}),P=(0,m.Em)({id:"@clio/playground:purchase-button-label-request-credits",defaultMessage:[{type:0,value:"Request credits"}]}),A=(0,m.Em)({id:"@clio/playground:purchase-button-label-upgrade-credits",defaultMessage:[{type:0,value:"Upgrade"}]}),T={message:(0,m.Em)({id:"@clio/playground:toast-out-of-credits-warning-message-over-24-hours",defaultMessage:[{type:0,value:"You're out of monthly generative credits. You can only generate content up to twice a day until your next credit reset on "},{type:8,value:"date",children:[]},{type:0,value:"."}]})},R={message:(0,m.Em)({id:"@clio/playground:toast-out-of-credits-warning-message-less-than-24-hours",defaultMessage:[{type:0,value:"You're out of monthly generative credits. You can only generate contnet up to twice a day until your next credit reset in about "},{type:8,value:"hour",children:[]},{type:0,value:" hours."}]})},j={message:(0,m.Em)({id:"@clio/playground:toast-out-of-credits-warning-message-less-than-one-hour",defaultMessage:[{type:0,value:"You're out of monthly generative credits. You can only generate content up to twice a day until your next credit reset in less than 1 hour."}]})},N={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-less-than-one-hour-no-request-access",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. When credit runs out, you can still generate content up to twice day until your next credit reset in less than 1 hour."}]})},D={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-less-than-24-hours-no-request-access",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. When credit runs out, you can still generate content up to twice day until your next credit reset in about "},{type:8,value:"hour",children:[]},{type:0,value:" hours."}]})},U={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-over-24-hours-no-request-access",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. When credit runs out, you can still generate content up to twice day until your next credit reset on "},{type:8,value:"date",children:[]},{type:0,value:"."}]})},M={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-less-than-one-hour-enterprise",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. To avoid running out before your next credit reset in less than 1 hour, you can request more from your admin."}]})},F={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-less-than-24-hours-enterprise",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. To avoid running out before your next credit reset in about "},{type:8,value:"hour",children:[]},{type:0,value:" hours, you can request more from your admin."}]})},H={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-over-24-hours-enterprise",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. To avoid running out before your next credit reset on "},{type:8,value:"date",children:[]},{type:0,value:", you can request more from your admin."}]})},z={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-less-than-one-hour-individual",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. To avoid running out before your next credit reset in less than 1 hour, you can buy a subscription for more credits."}]})},B={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-less-than-24-hours-individual",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. To avoid running out before your next credit reset in about "},{type:8,value:"hour",children:[]},{type:0,value:" hours, you can buy a subscription for more credits."}]})},G={message:(0,m.Em)({id:"@clio/playground:toast-nearing-credit-limits-warning-message-over-24-hours-individual",defaultMessage:[{type:0,value:"You're almost out of monthly generative credits. To avoid running out before your next credit reset on "},{type:8,value:"date",children:[]},{type:0,value:", you can buy a subscription for more credits."}]})};function K(e,t){return e?t?P:I:A}var V=function(e,t,r,n,o,i,a){if(W(e,t)){var s=void 0;switch(e){case _.SE.QUOTA_EXHAUSTED_USING_DAILY_CREDITS:s=w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS;break;case _.SE.QUOTA_WARNING_HARD_CAP:s=w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT;break;default:s=void 0}if(s)return{messageType:s,messageParameters:{date:t,isEnterprise:o,requestAccessDisabled:i,isPremium:n,locale:r},el:a,typeOfError:w.C.INFO,toastVariant:E.x7.INFO}}},W=function(e,t){var r=!1;if(e&&t){var n="CREDITS_TIMESTAMP_"+String(e);if((0,S.PM)(n)){var o=(0,S.PM)(n);Number(o)<t&&((0,S.Ee)(n,String(t)),r=!0)}else(0,S.Ee)(n,String(t)),r=!0}else r=!1;return r},Z=function(e){return e.LessThanOneHour="LessThanOneHour",e.LessThan24Hour="LessThan24Hour",e.MoreThan24Hour="MoreThan24Hour",e}(Z||{}),Y=function(e){return e.CCI="CCI",e.CCE_RA_OFF="CCE_NO_RA",e.CCE_RA_ON="CCE_RA",e}(Y||{}),J=(k(y={},Z.LessThanOneHour,(k(s={},Y.CCI,(k(o={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,z),k(o,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,j),o)),k(s,Y.CCE_RA_OFF,(k(i={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,N),k(i,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,j),i)),k(s,Y.CCE_RA_ON,(k(a={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,M),k(a,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,j),a)),s)),k(y,Z.LessThan24Hour,(k(f={},Y.CCI,(k(c={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,B),k(c,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,R),c)),k(f,Y.CCE_RA_OFF,(k(u={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,D),k(u,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,R),u)),k(f,Y.CCE_RA_ON,(k(l={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,F),k(l,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,R),l)),f)),k(y,Z.MoreThan24Hour,(k(v={},Y.CCI,(k(p={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,G),k(p,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,T),p)),k(v,Y.CCE_RA_OFF,(k(d={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,U),k(d,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,T),d)),k(v,Y.CCE_RA_ON,(k(h={},w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT,H),k(h,w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS,T),h)),v)),y),q=function(e,t){if(null!=t&&t.date){var r=t.date,n=t.isPremium,o=void 0!==n&&n,i=t.isEnterprise,a=void 0!==i&&i,s=t.requestAccessDisabled,c=void 0!==s&&s,u=new Date(r),l=new Intl.DateTimeFormat(t.locale,L).format(u),f=Math.floor((r-Date.now())/1e3/3600),p=function(e){var t=Math.floor((e-Date.now())/1e3/3600);return t<1?Z.LessThanOneHour:t<24?Z.LessThan24Hour:Z.MoreThan24Hour}(r),d=function(e,t,r){return t?r?Y.CCE_RA_OFF:Y.CCE_RA_ON:Y.CCI}(0,a,c),h=J[p][d][e];if(h){var v=h.message;if(v){var y;switch(p){case Z.LessThan24Hour:y={hour:function(){return String(f)}};break;case Z.MoreThan24Hour:y={date:function(){return l}};break;default:y=void 0}var m={message:v};return y&&(m.messageValues=y),a&&c||(m.cta=K(o,a)),m}}}},$=function(e,t){switch(e){case w.C.CREDIT_LIMITS_WARNING_OUT_OF_CREDITS:return t?g.Jz.PAID_UPSELL_TOAST_OUT_OF_CREDIT:g.Jz.UPSELL_TOAST_OUT_OF_CREDIT;case w.C.CREDIT_LIMITS_WARNING_NEAR_LIMIT:return t?g.Jz.PAID_UPSELL_TOAST_NEAR_LIMIT:g.Jz.UPSELL_TOAST_NEAR_LIMIT}},X=function(e){var t=null,r=null,n="X-Access-Consumption-Status",o="X-Access-Applied-Until-Date";e instanceof Headers?(t=e.get(n),r=e.get(o)):(t=e[n],r=e[o]),t&&r||(n="X-Credits-Consumption-Status",o="X-Credits-Applied-Until-Date",e instanceof Headers?(t=e.get(n),r=e.get(o)):(t=e[n],r=e[o])),t&&(t=t.toUpperCase());var i=t&&t in _.SE?t:void 0,a=Number(r);return{consumptionStatus:i,appliedUntilDate:isNaN(a)?void 0:a}}},49873:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===n(i)?i:String(i)),o)}var i}r.d(t,{G:()=>i,m:()=>a});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"read",value:function(e,t){var r,n=t?e:encodeURIComponent(e);if(document.cookie.split(";").some((function(e){return e.replace(/\s*=.*$/,"").trim()===n&&(r=decodeURIComponent(e.replace(/^[^=]+=\s*/,"").trim()),!0)})))return r}},{key:"write",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.path,o=r.domain,i=r.maxAge,a=r.expires,s=r.samesite,c=r.secure,u=["".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t))];n&&n.length>0?u.push("path=".concat(encodeURI(n))):void 0===n&&u.push("path=/"),o&&o.length>0&&u.push("domain=".concat(o)),i&&i>0&&u.push("max-age=".concat(i)),a&&u.push("expires=".concat(a.toUTCString())),!0===c&&u.push("secure"),s&&u.push("samesite=".concat(s)),document.cookie=u.join("; ")}},{key:"delete",value:function(e){this.write(e,"",{expires:new Date(0)})}}],r&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),a="locale"},75514:(e,t,r)=>{"use strict";r.d(t,{N4:()=>s,Yn:()=>c,_8:()=>n,_t:()=>o});var n="show-firefly-image-dialog",o={IMAGE_2:"2.0.0",IMAGE_3:"3.0.0"},i={IMAGE_2:"IMAGE 2",IMAGE_3:"IMAGE 3"},a={"2.0.0":{background:"var(--spectrum-global-color-gray-300)",color:"var(--spectrum-global-color-gray-900)"},"3.0.0":{background:"var(--spectrum-global-color-gray-800)",color:"var(--spectrum-global-color-gray-50)"}},s=function(e){if(e)return function(e){for(var t in o)if(o[t]===e)return i[t]}(e)},c=function(e){if(e){var t=a[e];return{borderRadius:"4px",fontSize:"9px",fontWeight:"500",lineHeight:"130%",padding:"4px 8px",background:null==t?void 0:t.background,color:null==t?void 0:t.color}}}},97717:(e,t,r)=>{"use strict";r.d(t,{B:()=>c});var n=r(63143);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function a(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"_promise",void 0),a(this,"_resolvePromise",void 0),a(this,"_rejectPromise",void 0),a(this,"_isFulfilled",!1),a(this,"_isRejected",!1),a(this,"_hasAdoptedOnce",!1),a(this,"_promiseInUse",!1),this.reset()}var t,r;return t=e,(r=[{key:"promise",get:function(){return this._promiseInUse=!0,this._promise}},{key:"isSettled",get:function(){return this._isFulfilled||this._isRejected}},{key:"isFulfilled",get:function(){return this._isFulfilled}},{key:"isRejected",get:function(){return this._isRejected}},{key:"adopt",value:function(e){return this._promiseInUse=!0,e.then(this._resolvePromise).catch(this._rejectPromise),this.promise}},{key:"adoptOnce",value:function(e){return this._promiseInUse=!0,this._hasAdoptedOnce||(this.adopt(e()),this._hasAdoptedOnce=!0),this.promise}},{key:"resolve",value:function(e){this._resolvePromise(e)}},{key:"reject",value:function(e){this._rejectPromise(e)}},{key:"reset",value:function(){var e=this;this._isFulfilled||this._isRejected||!this._promiseInUse||this._rejectPromise(new n.c6("ABORTED","Deferred was reset before result arrived")),this._isFulfilled=!1,this._isRejected=!1,this._hasAdoptedOnce=!1,this._promiseInUse=!1,this._promise=new Promise((function(t,r){e._resolvePromise=function(r){e._isFulfilled=!0,e._isRejected=!1,t(r)},e._rejectPromise=function(t){e._isRejected=!0,e._isFulfilled=!1,r(t)}}))}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},62636:(e,t,r)=>{"use strict";r.d(t,{mD:()=>V,bE:()=>F,o8:()=>B,bQ:()=>S,A3:()=>k,jH:()=>j,ch:()=>D,BZ:()=>z,aD:()=>b,JL:()=>g,Ry:()=>w,_N:()=>x}),globalThis.showDirectoryPicker,globalThis.showOpenFilePicker,globalThis.showSaveFilePicker;var n,o,i=r(20069);async function a(e,t={}){var r,n,o,a;if(!e){if(!(null===(r=globalThis.navigator)||void 0===r?void 0:r.storage)&&"http:"===(null===(n=globalThis.location)||void 0===n?void 0:n.protocol))throw new Error("Native getDirectory not supported in HTTP context. Please use HTTPS instead or provide an adapter.");if(!(null===(a=null===(o=globalThis.navigator)||void 0===o?void 0:o.storage)||void 0===a?void 0:a.getDirectory))throw new Error("Native StorageManager.getDirectory() is not supported in current environment. Please provide an adapter instead.");return globalThis.navigator.storage.getDirectory()}const s=await e,c="function"==typeof s?await s(t):await s.default(t);return new i.FileSystemDirectoryHandle(c)}r(24738),r(72032);const s={adapter:{cache:!!(globalThis.CacheStorage&&globalThis.caches instanceof CacheStorage),native:"function"==typeof(null===(o=null===(n=globalThis.navigator)||void 0===n?void 0:n.storage)||void 0===o?void 0:o.getDirectory),sandbox:"undefined"!=typeof window&&"function"==typeof window.webkitRequestFileSystem}};var c=r(44926);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=f(e[n],e,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==u(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function h(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,s,"next",e)}function s(e){h(i,n,o,a,s,"throw",e)}a(void 0)}))}}function y(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new m(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function m(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return m=function(e){this.s=e,this.n=e.next},m.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new m(e)}function g(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(){return t(n.result)},n.onerror=function(){return r(n.error)},n.onabort=function(){return r(new Error("Read aborted"))},n.readAsDataURL(e)}))}function b(e){return _.apply(this,arguments)}function _(){return(_=v(d().mark((function e(t){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return E.apply(this,arguments)}function E(){return E=v(d().mark((function e(t){var r,n,o,i=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"image/jpeg",e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.blob();case 6:return o=e.sent,e.abrupt("return",new Blob([o],{type:r}));case 8:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function S(e,t,r){return O.apply(this,arguments)}function O(){return(O=v(d().mark((function e(t,r,n){var o,i,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return o=e.sent,(i=document.createElement("canvas")).width=r,i.height=n,a=i.getContext("2d"),(s=document.createElement("img")).src=o,e.abrupt("return",new Promise((function(e){s.onload=function(){null==a||a.scale(r/s.width,n/s.height),null==a||a.drawImage(s,0,0),i.toBlob(e,"image/jpeg")}})));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e,t){return C.apply(this,arguments)}function C(){return(C=v(d().mark((function e(t,r){var n,o,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(r.split("/")),e.prev=1,n.s();case 3:if((o=n.n()).done){e.next=10;break}return i=o.value,e.next=7,t.getDirectoryHandle(i,{create:!0});case 7:t=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})))).apply(this,arguments)}function x(e,t,r){return L.apply(this,arguments)}function L(){return(L=v(d().mark((function e(t,r,n){var o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFileHandle(r,{create:!0});case 2:return o=e.sent,e.next=5,I(o,n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t){return P.apply(this,arguments)}function P(){return(P=v(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof t.createWritable){e.next=4;break}A(t,r),e.next=11;break;case 4:return e.next=6,t.createWritable();case 6:return n=e.sent,e.next=9,n.write(r);case 9:return e.next=11,n.close();case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e,t){console.log("writeFileUsingWorker",{file:e,content:t})}function T(e){return R.apply(this,arguments)}function R(){return(R=v(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFile();case 2:return e.next=4,e.sent.text();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return N.apply(this,arguments)}function N(){return(N=v(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=JSON,e.next=3,T(t);case 3:return e.t1=e.sent,e.abrupt("return",e.t0.parse.call(e.t0,e.t1));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return U.apply(this,arguments)}function U(){return(U=v(d().mark((function e(t){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFile();case 2:return r=e.sent,e.abrupt("return",URL.createObjectURL(r));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return"file"===(null==e?void 0:e.kind)}function F(e){return H.apply(this,arguments)}function H(){return(H=v(d().mark((function e(t){var r,n,o,i,a,s,c,u,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r={},n=!1,o=!1,e.prev=3,a=y(t.entries());case 5:return e.next=7,a.next();case 7:if(!(n=!(s=e.sent).done)){e.next=13;break}p=s.value,d=2,c=function(e){if(Array.isArray(e))return e}(p)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(p,d)||f(p,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=c[0],M(l=c[1])&&(r[u]=l);case 10:n=!1,e.next=5;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(3),o=!0,i=e.t0;case 19:if(e.prev=19,e.prev=20,!n||null==a.return){e.next=24;break}return e.next=24,a.return();case 24:if(e.prev=24,!o){e.next=27;break}throw i;case 27:return e.finish(24);case 28:return e.finish(19);case 29:return e.abrupt("return",r);case 30:case"end":return e.stop()}var p,d}),e,null,[[3,15,19,29],[20,,24,28]])})))).apply(this,arguments)}function z(e){return e.replace(/[^A-Za-z 0-9]/g,"").trim().split(/ +/).join(" ")}function B(){return G.apply(this,arguments)}function G(){return(G=v(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.adapter.native&&!(0,c.G6)()){e.next=6;break}return e.next=3,a(r.e(1247).then(r.bind(r,1247)));case 3:case 8:return e.abrupt("return",e.sent);case 6:return e.next=8,navigator.storage.getDirectory();case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var K={"image/png":"png","image/jpeg":"jpg","image/webp":"webp","image/svg+xml":"svg"};function V(e){return K[e]}},84087:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new x(n||[]);return i(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,s)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return o("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}function s(e){for(var t=e.length,r=5381,n=0;n<t;++n)r=(r<<5)+r+e.charCodeAt(n)&4294967295;return(r>>>0).toString(16)}function c(e){return u.apply(this,arguments)}function u(){return(u=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return","");case 2:return e.abrupt("return",new Promise((function(e,r){var n=new FileReader;n.readAsArrayBuffer(t),n.onloadend=a(o().mark((function t(){var i,a,s,c,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(i=n.result)&&r(),t.next=4,crypto.subtle.digest("SHA-256",i);case 4:a=t.sent,s=new Uint8Array(a),c=new TextDecoder("utf8"),u=btoa(unescape(encodeURIComponent(c.decode(s)))),e(u);case 9:case"end":return t.stop()}}),t)})))})));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}r.d(t,{Gt:()=>c,_D:()=>s})},52539:(e,t,r)=>{"use strict";r.d(t,{$O:()=>U,FW:()=>m,Kv:()=>Y,Li:()=>J,R2:()=>w,R5:()=>H,Rb:()=>O,SI:()=>V,Sk:()=>B,XK:()=>E,mY:()=>N,n5:()=>M,qq:()=>A,sk:()=>x,su:()=>R,vw:()=>_,w8:()=>k,xe:()=>I});var n=r(36258),o=r(85824),i=r(63143),a=r(84087),s=r(97717),c=r(62636);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};c(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=p(e[n],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),c(_,s,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function f(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,s,"next",e)}function s(e){f(i,n,o,a,s,"throw",e)}a(void 0)}))}}var d=(0,n.Em)({id:"@clio/playground:shared-image-utils-reported-cta",defaultMessage:[{type:0,value:"Replace Image"}]}),h=(0,n.Em)({id:"@clio/playground:shared-image-utils-something-went-wrong",defaultMessage:[{type:0,value:"Something went wrong"}]}),v=(0,n.Em)({id:"@clio/playground:shared-image-utils-retry",defaultMessage:[{type:0,value:"Retry"}]}),y={nsfw:{heading:h,errorMsg:(0,n.Em)({id:"@clio/playground:shared-image-utils-nsfw-error-msg-edit-prompt",defaultMessage:[{type:0,value:"Please edit your prompt and try again."}]}),cta:d},reported:{heading:(0,n.Em)({id:"@clio/playground:shared-image-utils-reported-heading",defaultMessage:[{type:0,value:"Reported image removed from view"}]}),errorMsg:(0,n.Em)({id:"@clio/playground:shared-image-utils-reported-error-msg",defaultMessage:[{type:0,value:"Thank you for reporting and we strive to improve results."}]}),cta:d},atCapacity:{heading:(0,n.Em)({id:"@clio/playground:shared-image-utils-at-capacity-heading",defaultMessage:[{type:0,value:"Service at capacity"}]}),errorMsg:(0,n.Em)({id:"@clio/playground:shared-image-utils-at-capacity-error-msg",defaultMessage:[{type:0,value:"The service is currently at capacity. Please try again later."}]}),cta:v},default:{heading:h,errorMsg:(0,n.Em)({id:"@clio/playground:shared-image-utils-default-error-msg",defaultMessage:[{type:0,value:"This image produced an error. Please try again."}]}),cta:v}},m=512,g=.4,b=100;function _(e,t,r){var n=(0,c.mD)(e),o=void 0!==t?" ".concat(t):"",i="Firefly".concat(r?" "+r:"").concat(o).slice(0,b);return i=(i=i.replace(/[\/\\?%*:|"<>]/g,"-")).replace(/(\r\n|\n|\r)/gm,"_"),"".concat(i,".").concat(n)}function w(){var e=new Date,t=e.getFullYear(),r=e.getMonth()+1,n=e.getDate(),o=String(r).padStart(2,"0"),i=String(n).padStart(2,"0"),a=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),c=String(e.getSeconds()).padStart(2,"0");return Number("".concat(t).concat(o).concat(i).concat(a).concat(s).concat(c))}function E(e,t){return e&&(0,i.n3)(e)?y.nsfw:t?y.reported:y.default}var S=20;function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S;if(!e)return{width:t,height:t};var r=t/e.width,n=t/e.height;return{transform:"translate(".concat(-e.x*r,"px, ").concat(-e.y*n,"px) scale(").concat(r,", ").concat(n,")")}}function k(e){return new Promise((function(t,r){var n=new FileReader;n.onloadend=function(){"string"==typeof n.result&&t(n.result)},n.onerror=function(e){r(e)},n.readAsDataURL(e)}))}function C(){var e=document.createElement("canvas");return e.width=10,e.height=10,e.getContext("2d")}function x(e,t,r){return L.apply(this,arguments)}function L(){return(L=p(l().mark((function e(t,r,n){var i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.pB.borrowUrl(t);case 2:if(i=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,j(i,r,n);case 7:return a=e.sent,e.next=10,o.pB.returnUrl(i);case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t,r){return P.apply(this,arguments)}function P(){return(P=p(l().mark((function e(t,r,n){var i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.pB.borrowUrl(t);case 2:if(i=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,R(i,r,null!=n?n:"image/webp");case 7:return a=e.sent,e.next=10,o.pB.returnUrl(i);case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/png",n=new Image;n.crossOrigin="anonymous";var o=URL.createObjectURL(e);return new Promise((function(i,a){n.src=o,n.onload=function(){i(function(n){var o=n.width,i=n.height;return o<=t&&i<=t?Promise.resolve({blob:e,size:{width:o,height:i}}):T(n,t,r).then((function(e){if(void 0!==e)return e;throw new Error("Failed to resize image")}))}(n)),URL.revokeObjectURL(o)},n.onerror=function(e){a(e),URL.revokeObjectURL(o)}}))}function T(e,t,r){var n=e.width,o=e.height;n>o?n>t&&(o*=t/n,n=t):o>t&&(n*=t/o,o=t);var i=C(),a=i.canvas;return n=Math.floor(n),o=Math.floor(o),a.width=n,a.height=o,i.clearRect(0,0,n,o),i.drawImage(e,0,0,n,o),new Promise((function(e){a.toBlob((function(t){e(t?{blob:t,size:{width:n,height:o}}:void 0)}),r)}))}function R(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/png",n=new Image;return n.crossOrigin="anonymous",new Promise((function(o,i){n.src=e,n.onload=function(){return o(T(n,t,r))},n.onerror=function(e){return i(e)}}))}function j(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/webp",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=C(),i=o.canvas,a=new Image;return a.crossOrigin="anonymous",new Promise((function(s,c){a.src=e,a.onload=function(){return s((u=0,l=0,(e=a.width)<(c=a.height)?l=-((c*=t/e)-(e=t))/2:u=-((e*=t/c)-(c=t))/2,i.width=t,i.height=t,o.drawImage(a,u,l,e,c),new Promise((function(e){i.toBlob((function(t){e(t||void 0)}),r,n)}))));var e,c,u,l},a.onerror=function(e){return c(e)}}))}function N(e,t){return D.apply(this,arguments)}function D(){return(D=p(l().mark((function e(t,r){var n,o,i,a,s,c,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=1024*r*1024,!(t.size<=n)){e.next=3;break}return e.abrupt("return",{resizedImage:t});case 3:return(o=new Image).src=URL.createObjectURL(t),e.next=7,new Promise((function(e,t){o.onload=e,o.onerror=function(){return t(new Error("Image failed to load during resizing"))}}));case 7:i=t,a=document.createElement("canvas"),s=a.getContext("2d"),a.width=o.width,a.height=o.height,c=Math.sqrt(n/t.size);case 13:if(!(i.size>n)){e.next=26;break}return a.width=o.width*c,a.height=o.height*c,s.drawImage(o,0,0,a.width,a.height),e.next=19,new Promise((function(e){return a.toBlob(e,t.type)}));case 19:if(u=e.sent){e.next=22;break}throw new Error("Failed to resize image");case 22:i=u,c*=Math.sqrt(n/u.size),e.next=13;break;case 26:return URL.revokeObjectURL(o.src),e.abrupt("return",{resizedImage:i,width:a.width,height:a.height});case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){for(var t,r=e.split(","),n=null===(t=r[0].match(/:(.*?);/))||void 0===t?void 0:t[1],o=atob(r[1]),i=o.length,a=new Uint8Array(i);i--;)a[i]=o.charCodeAt(i);return new Blob([a],{type:n})}function M(e){return F.apply(this,arguments)}function F(){return(F=p(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var n=new FileReader;n.onload=function(t){var r;"string"==typeof(null===(r=t.target)||void 0===r?void 0:r.result)&&e(t.target.result)},n.onerror=r,n.readAsDataURL(t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return z.apply(this,arguments)}function z(){return(z=p(l().mark((function e(t){var r,n,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return n=e.sent,e.next=8,createImageBitmap(n);case 8:return o=e.sent,e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e){return G.apply(this,arguments)}function G(){return(G=p(l().mark((function e(t){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,createImageBitmap(t);case 2:return r=e.sent,e.abrupt("return",K(r).toDataURL());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("bitmaprenderer").transferFromImageBitmap(e),t}function V(e){return W.apply(this,arguments)}function W(){return(W=p(l().mark((function e(t){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z(t);case 2:return r=e.sent,e.next=5,(0,a.Gt)(r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){var t=new s.B,r=document.createElement("canvas"),n=r.getContext("2d"),o=new Image;return o.onload=function(){r.width=o.width,r.height=o.height,null==n||n.drawImage(o,0,0),r.toBlob((function(e){e?t.resolve(e):t.reject("Failed to convert to blob")}))},o.onerror=function(){t.reject("Failed to convert to blob")},o.src=e,t.promise}var Y=function(){var e=p(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){var r=new Image,n=URL.createObjectURL(t);r.src=n,r.onload=function(){URL.revokeObjectURL(n),e({width:r.width,height:r.height})}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function J(e){return q.apply(this,arguments)}function q(){return(q=p(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var n=t.length,o=Math.ceil(Math.sqrt(n)),i=m*o,a=document.createElement("canvas");a.width=i,a.height=i;var s=a.getContext("2d");if(s){var c=function(e,t,r){var n=Math.floor(r/o),i=r%o*m,a=n*m,s=t.width,c=t.height,u=Math.min(s,c),l=(s-u)/2,f=(c-u)/2;return e.drawImage(t,l,f,u,u,i,a,m,m),e},u=t.map((function(e){return createImageBitmap(e)}));Promise.all(u).then((function(e){return e.reduce(c,s)})).then((function(){a.toBlob((function(t){t?e(t):r(new Error("Failed to convert canvas to Blob"))}),"image/jpeg",g)})).catch((function(e){r(e)}))}else r(new Error("Could not get 2D context"))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},47203:(e,t,r)=>{"use strict";r.d(t,{Ee:()=>p,PM:()=>f,kT:()=>c,yW:()=>u,ym:()=>l});var n=r(49941);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=["id"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="auto-use-keywords";function u(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:localStorage;if(""===e)return r;var a=function(e,t){var r=d(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:localStorage),o=(0,n.L)(e);return r.find((function(e){return e.id===o}))}(e,t,o);return a?(a.id,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(a,i)):r}function l(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:localStorage;if(""!==e){var i=d(t),c=(0,n.L)(e),u=i.findIndex((function(e){return e.id===c})),l=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:c},r);u>-1?i[u]=l:i.push(l),o.setItem(t,JSON.stringify(i))}}function f(e){return localStorage.getItem(e)}function p(e,t){localStorage.setItem(e,t)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:localStorage;try{var r;return JSON.parse(null!==(r=t.getItem(e))&&void 0!==r?r:"[]")}catch(e){return[]}}},34637:(e,t,r)=>{"use strict";r.d(t,{A0:()=>x,AA:()=>A,Bj:()=>k,G3:()=>L,N_:()=>P,PZ:()=>S,Q5:()=>_,Xu:()=>b,Zh:()=>g,qC:()=>C,yL:()=>O,z4:()=>I});var n=r(88369),o=r(40174),i=r(36258),a=r(17578),s=r(49873);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var d={};function h(){}function v(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,i)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var u=p(e[n],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==c(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),u(_,s,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function f(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,s,"next",e)}function s(e){f(i,n,o,a,s,"throw",e)}a(void 0)}))}}var d="en_US",h={"zh-hans-cn":"zh-CN",zh_hans_cn:"zh_CN",zh_hans:"zh_CN","zh-hant-tw":"zh-TW",zh_hant_tw:"zh_TW",zh_hant:"zh_TW"},v="en-US",y="locale",m=(0,a.vC)()?"firefly":"firefly_nonprod",g=(0,n.getAppLocales)(m);function b(e){if(e){var t="adobedotcom",r=(0,n.getAppLocaleFromIMS)(t,navigator.language,e);return(0,n.normalize)(r.locale,t)}return(0,n.normalize)(navigator.language)}function _(e){return w.apply(this,arguments)}function w(){return w=p(l().mark((function e(t){var r,n,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t||(t=function(){var e=p(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Map,e.abrupt("return",t.set("language",""));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),e.next=3,o.ZP.parse(m,(u(r={},o.ci,[s.m]),u(r,o.BU,!1),u(r,o.AJ,y),u(r,o.Y5,t),u(r,o.hT,!1),r));case 3:return i=e.sent,e.abrupt("return",null!==(n=i.get(o.ad))&&void 0!==n?n:v);case 5:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}var E=void 0,S=(0,i.Em)({id:"@clio/playground:loc-terms-of-use-go-link",defaultMessage:[{type:0,value:"https://www.adobe.com/go/firefly_help"}]}),O=((0,i.Em)({id:"@clio/playground:loc-cai-learn-more-go-link",defaultMessage:[{type:0,value:"https://www.adobe.com/go/about_cai"}]}),(0,i.Em)({id:"@clio/playground:loc-user-violation-block-learn-more-go-link",defaultMessage:[{type:0,value:"https://www.adobe.com/go/firefly-faq"}]})),k=(0,i.Em)({id:"@clio/playground:loc-guidelines-violation-learn-more-go-link",defaultMessage:[{type:0,value:"https://www.adobe.com/go/firefly-troubleshooting"}]});function C(e){E!==e&&(E=e)}function x(e){var t,r=null===(t=E)||void 0===t?void 0:t.segment(e);return r?r.map((function(e){return e.segment})):e.split(/[-.,=[\]\s\n\r]/)}function L(e){return e.replace(/[\W_].*$/i,"")}function I(e){for(var t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!0;return!1}function P(e){return e.replace(/[\uFF10-\uFF19]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)-65248)}))}function A(e){var t=e.toLowerCase();return t in h?h[t]:t.startsWith("zh")?t.includes("hans")||t.includes("hant")?e.replace(/((-|_)(hans|hant)(-|_))/gi,"_"):d:e}(0,i.Em)({id:"@clio/playground:loc-gen-ai-guidelines-learn-more-go-link",defaultMessage:[{type:0,value:"https://www.adobe.com/go/firefly_userguidelines"}]})},4021:(e,t,r)=>{"use strict";r.d(t,{GJ:()=>s,QS:()=>o,_U:()=>c,tx:()=>i,uX:()=>u,wk:()=>a});var n=["v2","v3","v3exp","v3dev"];function o(e){return Boolean(e&&n.includes(e))}function i(e){return"v1"===e}function a(e){var t=e.isClioV2Enabled,r=e.isClioV3Enabled;switch(e.modelInputVersion){case"v2":return t||!r;case"v3":return r;default:return!1}}var s=function(e){return e?2:4};function c(e){return e?"v3":"v2"}function u(e){var t=e.isClioV2Enabled,r=e.isClioV3Enabled,n=e.modelInputVersion;return n&&a({isClioV2Enabled:t,isClioV3Enabled:r,modelInputVersion:n})?n:c(r)}},54778:(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r,i,a=new URL(e);if(t)for(var s=0,c=Object.entries(t);s<c.length;s++){var u=(r=c[s],i=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(r,i)||o(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=u[0],f=u[1];if(Array.isArray(f)){var p,d=n(f);try{for(d.s();!(p=d.n()).done;){var h=p.value;a.searchParams.append(l,h)}}catch(e){d.e(e)}finally{d.f()}}else a.searchParams.set(l,f)}return a.toString()}function s(e,t,r){var n=a(e,r);window.open(n,null!=t?t:"_blank")}function c(e,t){window.open(e,null!=t?t:"_blank")}r.d(t,{EN:()=>c,Q2:()=>a,gB:()=>s})},11648:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,q:()=>s});var n=3,o=5e3;function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function a(e,t,r,n,o){function s(){var s=Math.floor(Math.min(1e3*(Math.pow(2,t)+Math.random()),n));return console.warn("Retry after ".concat(s," milliseconds. Remaining number of retries: ").concat(r-t)),i(s).then((function(){return a(e,t+1,r,n,o)}))}return fetch(e,o).then((function(e){return t<r&&(429===e.status||e.status>=500&&e.status<600)?(console.warn("FetchWithRetry response status ",e.status),s()):e})).catch((function(e){if(console.warn("FetchWithRetry error ",e),e instanceof Error&&"AbortError"===e.name||t>=r)throw e;return s()}))}function s(e,t){return a(e,0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:o,t)}},34486:(e,t,r)=>{"use strict";r.d(t,{C:()=>D});var n=r(84087),o=r(52539);function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new x(o||[]);return n(a,"_invoke",{value:S(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function h(){}function v(){}function y(){}var m={};u(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&r.call(b,a)&&(m=b);var _=y.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,s){var c=f(e[n],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==d(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),u(_,c,"Generator"),u(_,a,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,c,"next",e)}function c(e){a(i,n,o,s,c,"throw",e)}s(void 0)}))}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e){return e&&"object"===d(e)?Array.isArray(e)?l(e):function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e):e}var v="$map$",y="$blob$",m="$image_bitmap$";function g(e,t){return t instanceof Map?u({},v,l(t.entries())):t}function b(e,t){return t&&"object"===d(t)&&t[v]?new Map(t[v]):t}function _(e){return w.apply(this,arguments)}function w(){return(w=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=n._D,e.next=3,E(t);case 3:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=JSON,e.next=3,I(t);case 3:return e.t1=e.sent,e.t2=g,e.abrupt("return",e.t0.stringify.call(e.t0,e.t1,e.t2));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return k.apply(this,arguments)}function k(){return(k=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L(JSON.parse(t,b));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e,t){return x.apply(this,arguments)}function x(){return(x=s(i().mark((function e(t,r){var n,o,a,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(!(t=e.sent)){e.next=16;break}if("object"!==d(t)){e.next=16;break}t=h(t),n=0,o=Object.entries(t);case 7:if(!(n<o.length)){e.next=16;break}if(i=o[n],u=2,a=function(e){if(Array.isArray(e))return e}(i)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(i,u)||f(i,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=a[0],"object"!==d(c=a[1])){e.next=13;break}return e.next=12,r(c);case 12:t[s]=e.sent;case 13:n++,e.next=7;break;case 16:return e.abrupt("return",t);case 17:case"end":return e.stop()}var i,u}),e)})))).apply(this,arguments)}function L(e){return C(e,function(){var e=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||"object"!==d(t)||"string"!=typeof t[y]){e.next=4;break}return e.abrupt("return",(0,o.$O)(t[y]));case 4:if(!t||"object"!==d(t)||"string"!=typeof t[m]){e.next=10;break}return e.next=7,(0,o.R5)(t[m]);case 7:return e.abrupt("return",e.sent);case 10:return e.abrupt("return",t);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}function I(e){return C(e,function(){var e=s(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof ImageBitmap)){e.next=10;break}return e.t0=u,e.t1={},e.t2=m,e.next=6,(0,o.Sk)(t);case 6:return e.t3=e.sent,e.abrupt("return",(0,e.t0)(e.t1,e.t2,e.t3));case 10:if(!(t instanceof Blob)){e.next=20;break}return e.t4=u,e.t5={},e.t6=y,e.next=16,(0,o.n5)(t);case 16:return e.t7=e.sent,e.abrupt("return",(0,e.t4)(e.t5,e.t6,e.t7));case 20:return e.abrupt("return",t);case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function A(){A=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function d(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==t&&r.call(m,i)&&(v=m);var g=h.prototype=p.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var c=l(e[n],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==P(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function T(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function R(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){T(i,n,o,a,s,"next",e)}function s(e){T(i,n,o,a,s,"throw",e)}a(void 0)}))}}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N(n.key),n)}}function N(e){var t=function(e,t){if("object"!==P(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===P(t)?t:String(t)}var D=function(){function e(t){var r,n,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,o=void 0,(n=N(n="cache"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,caches.open(t).then((function(e){i.cache=e})).catch((function(e){console.error("Error opening cache",e)}))}var t,r,n,o,i,a;return t=e,r=[{key:"getRequest",value:(a=R(A().mark((function e(t){return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Request,e.next=3,_(t);case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"get",value:(i=R(A().mark((function e(t){var r,n,o;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cache){e.next=32;break}return e.t2=this.cache,e.next=4,this.getRequest(t);case 4:return e.t3=e.sent,e.next=7,e.t2.match.call(e.t2,e.t3);case 7:if(e.t4=n=e.sent,e.t1=null===e.t4,e.t1){e.next=11;break}e.t1=void 0===n;case 11:if(!e.t1){e.next=15;break}e.t5=void 0,e.next=16;break;case 15:e.t5=n.text();case 16:return e.next=18,e.t5;case 18:if(e.t6=r=e.sent,e.t0=null!==e.t6,!e.t0){e.next=22;break}e.t0=void 0!==r;case 22:if(!e.t0){e.next=26;break}e.t7=r,e.next=27;break;case 26:e.t7=null;case 27:if(!(o=e.t7)){e.next=32;break}return e.next=31,O(o);case 31:return e.abrupt("return",e.sent);case 32:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"set",value:(o=R(A().mark((function e(t,r){return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cache){e.next=12;break}return e.t0=this.cache,e.next=4,this.getRequest(t);case 4:return e.t1=e.sent,e.t2=Response,e.next=8,E(r);case 8:return e.t3=e.sent,e.t4=new e.t2(e.t3),e.next=12,e.t0.put.call(e.t0,e.t1,e.t4);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"delete",value:(n=R(A().mark((function e(t){return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cache){e.next=7;break}return e.t0=this.cache,e.next=4,this.getRequest(t);case 4:return e.t1=e.sent,e.next=7,e.t0.delete.call(e.t0,e.t1);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}],r&&j(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},5591:(e,t,r)=>{"use strict";function n(e){return sessionStorage.getItem(e)}function o(e,t){sessionStorage.setItem(e,t)}function i(e){sessionStorage.removeItem(e)}r.d(t,{m3:()=>n,n4:()=>o,ze:()=>i})},89149:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{q:()=>i,w:()=>o});var o=function(){return function(e){return e}};function i(e,t){var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var a=0,s=r;a<s.length;a++){var c=s[a];if(!Object.prototype.hasOwnProperty.call(t,c))return!1;if(n(e[c])!==n(t[c]))return!1;if("object"===n(e[c])&&!Array.isArray(e[c])&&!i(e[c],t[c]))return!1}return!0}},98027:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,n){var o={key:t,value:e[t]},i={key:n,value:e[n]};return r(o,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(o&&o(t));for(a="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return i.splice(s,1),"{"+a+"}"}}(e)}},13266:(e,t,r)=>{"use strict";var n=r(80364),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),v=c(r),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||n&&n[m]||v&&v[m]||s&&s[m])){var g=p(r,m);try{u(t,m,g)}catch(e){}}}}return t}},99686:e=>{e.exports="data:image/png;base64,UklGRhgQAABXRUJQVlA4IAwQAABQVQCdASrqAOoAPpFGnUolpCKpJ3SpiSASCU3REAWNO7stX9raDfiS/2PnZ3D+/fj/+1e6/yJ6q8xzpTzff6b1g/oP0eem5/afQh/R/836v3or/v/qAfyz/W9bd6BX7AenR+6nw7fux+5ftnarLL3pMAXO62bzDTZcy5AecHhvwPCuv1tYZapqDl5nYaEoj5NVp8d5/pOsrRY2vQ6a/rIYEfpsWR6gc6LD3gDZ1LBIV/hoWpEF9QOSBeoOGvj7A9Th7DoJsVG8wUGA4NwxTEWs8LGP/h1tEbeKjLB5NPkJ+Go9E5X7tak2RjlHHPQdXIqa4prUlxyQuXT+3OfNtbRISjD4Z12N9RvYANQRvdvRFXgNi4+oFfhrg2TDOktcSBWV8Gy/3Behtv01Cx/9C5L9qScfsJ3MFJgg1opwopw62OB7/i8605BZJK5EBypCVttl31nLmYXRIY8Zff56gdcYooDiJG6oHuMyYwt3gJXmz2qHTbZ9PgVRfHIzq6j49by7u/dB5q4bsbPkH3636pVg1o7WawZVuiF6hO080T/rB2vcu3ni+cAsHZ8taOAFjmX+qaeyuppnIRDrIVCZWikCJ5kTzEZgKuvWLyhuuvEH31XRVtrSfvzB/gE+Yr0E+3XYMtiJhUDPk4+eYG+LtnhXtnQJycJ7/8xBPdzIHPw764PHlSJ4GMuvHP2LzV+YjFLnk4tpJw7oRPoQFvkfRXD9bukyzNw1QfOyw3Lw+l2Yu9/S1XuUu7qNgKSjivVcKOT3rfHbMfH6JmxuAMcdU6KyPv35yyTVCErpZXPWRzt72mBgoUNZE3iKRxDAvsahkqg69kS9Ve6q/HXe+8BehQ6HEkh2MdejemqgppivhzTxzaE5S+u6HaraMwYY2MbsA65N6mljv4hsKmMUqr53wyR9R1PwAP7vkWzwDU8HqO0x/9csgJ7ZIf+7uvuQYq6eznRLb7r/PTuB0WkU6rmVyIBuPJq/NQNR3DSjdPF36uSoLAifDoMkCeUL8YX6FDDVtdK0VJqYAFeh1bm05q6BOmZ0R7rK/T5oZgPzhoxLCTJdUsWmpm4E4tQZRK4qNtXLHMEIrwIxoI2z8FaTqZidUq0ur/S1txT8cRatIGUKINgrNe0WKTfnLc+ufcC8aICDVyrMfuRrnZ8Pr+NNZ885wLjJev2kh4/3r/m6YXOtKuDVjNSsMLp4dfO7YEp9YPKwLqsjey8L2Z3oIo7xfRT/GffC9pnLrj/ydClOSOkSvdIofcGwk3QBuGN/wOoyCE9TOEpSsMT/cc1D1HrwT6lLMthRiE5UkyGSwHlxy4fmATXoLYQJlwKwbDQcXyxyrszVGTngASc8Kl6FrbwTQDdR8ORiU3vIsvylolx2+7bSlhalSWZcfbjX4HjVfDrhS8lLTN3ExpJL4kUB+a9keUXxnYXeRpjVty58L4IRd4tc0Pp9Y4d0u9qn2a2IEl7enEc1/X9yu/D4Dp0U9cpwTZ0SLalDB1fTV0aHKcQhrBm3VbTQOIBR03u3hIWrE4UtxkRpkCAGn0psKn7QRbY1IHz9P1gZSmSSjYs+lA2MQVWSFBJd5BwFaEGOgs+rcT8CeNKxh/EFEL/RksFmXdKjuxLtEECVY8I7EV+bzDkW4D6vgFSe0Bc2z769ouonoBEmeWv2hAVp2Gz/HpN2KR6Jzsth7kxROaDh8kFMDSlMdVhEWMxcvptGeYPN/cZTVXvdg0lOWLtlepi7K5ZApZdReIrVdcQuK6/07dFezqdYwmyMB+ssnUgwOjMo1Fk9LEcS8XXQ4NLAzsvN7+bfOs3pDzBJHupqvdR5WmQKCCCxJAs+3ncE5SqwLDXPQONQtJ+jsPnnMChvTOiRCJaUiobFfbbYqkXHW1cH/62zqSH8RcmKbM0KvIcR2LMbLRGtQgKSOia36sIQN9MfqyQAGG8N84EQoySsJDHdQHsqDzYP3sxtvwL3eveQg0iv7YX0H1C9x4qDA2WPYTTfhfX8Lu11jhLYpFPC1+2R0dhJn+CdVEqZ0gSui5ArpTTnDqTxdWS/ez11Wc3m1D09wibH4Q9wRSe7Wc0VTLvrxnKp8M3TBjxP4c7wCwdchDdXgJZTAfFnRsxGab81kjzNDbmpTJ4aFWJZC4c22eEiMI0lTPPULPADIWrfH4yOjJbVn/0UkAokPUgJ2mYb3VsjF4WlFDmNItUlQsVO3maYoapCMPRejSSVMPzgiXdH0N/a8Mf8G/FAsdy3HbSxUKPjxn1BADvH6zZtJY6EmE362S2D2RrCX0PRSOx3BvV6F26zFQQc7/kepeuCR4wU6NfVa1gsplyiCRS1ifOp/Uer+2aD4chlmqlFkZGW1lWyF9nlW4LoK+VeSMZRcHyLBGkrT1uySmd9+TfqcA5Aem2mPpj2MSoh9Zgb5vMDpQ1B8ADLmxJ+v+YT4jJJAiua36+tMTcqn6NRGZZfvV/0kKTo3V8R/njx7U/mAACX8jVG9qY1w+bzoIIRUcNJkBkQ9C5ADGdxBe6WcY003D4eL73kzxeEkOtTHg2gkBkxS6AkUOS4BkMSZgKp+ek9YhasKvfTWAlF/BWx0PS7ECOyL26wZpY7FGiiWAUnhLSR/fdH5aWyl5RA3Qc+LTUtA+W4u6diCUDcw5yqYKht5g/kNu7i7wxLrBMFnJxK7atvyLJzdlvh65zFBEuD5YTP7Qi/RcQMPqv+Mw9txAaJwO8UucmBiNPyQlDM4HpC5IJDikFi68fIB8cMBUjYYiAz9wZSfnh+2sVSb3rIVz0iYyni8SFkcx2D7cpC2UmJ43WO/XIASW5Je1807EkEtEzYy6d7Li+sm2cYhqxGQ5oafUwegp4F35fLcnHcKhMz5JjkeDpSf2RNMFtK3qT8eWhzw2lu/w1V3El8bipLJBQP4rxt7pYCr/Okc/sz5ZwhNUr7wZMCAqbrmrVexfMlU7FsUYu1M5poh42nbg+EHfTaPxOWK/tKDiQ+t0fBEmAQnOK8yf2NWHJw0Bq1fTEDBMFsoX1hzR4gf3h1Ky7oFmAzWFwWtENskGvrjfUqHLY44oPa/Vt/ooJWBk+xw7dsrjQi6f/zCn05v7yy5RHvkGOv5Ryw2rM1PkIerDBiMgeZiVURMizxDtRMXd8H0KJvyoLc81SB2hjxrqwYHS5+HNjj4SpicYS7UOeBG7xr5P9oOr/Ptc9ue9cNK8L2E5ohFYiPBNBTZSwRpOJ9oCb3WMwJfJXcGLfThIa/16WaKFQGatz/pTAFGyhyfn2wnjnhGer0w+QhWEu/hcA67gx9ggbmDnuBzdvI5HvwWWDMx4Kn6AzqvTnRAFuVNwuc1reBOnAMbarDiyad2NaHZel2dHkXHePTfQs8jgLQAhEc8qwgCOubWjYtX0ixqsSsosKulI3zXPu0P5NdBwFyfn3IwT8KYguPorE7ihiZHkpiJvOvRJR9dXghIqAORYwcGkHqLbVyVpRLLFyRMRQNviKT9ciWtmjijVQQbDmgNV7Ec17kd314jknlR4pBrM0YZxMpNPdDgWBuvfEHiHEagi4HuEUfBN8u/54wWcL70bIYxZ3NhE/DFRnQJP1/l1wpZo2KdLjPD1THzBUzjmz/BMHrt4XzziOYFybGf/rXkiP/43Q2TvJ8DnEOFJhIrkzvPL5bumlffaecSaNvWAp8d4NzVr63W0aV7yg0ke3X/X5FcRZRjKLrg3eV8a+cT0oVyTBj0THUyJCMdTyvuk3ND5Abqh1nCyHItTMu0nntSDXWvjKees+2J8IVg9WI2JVm8gI8B5BrbGHZsrRncfIZ/Vb8CHWyo9h3UG+GC4TVnWVe/PTc5gUN6m9DyRSaEgUmqX3cfE/yOlAkyeD3I/4qHYZtq1vwbVHqvOoFTRjn0o/Dn7eQAobEA6AazGOz0xYnTfK3aetzy2a5J7gxFUh+lxCd61UvGVF6sx0uQAU8/jPeNcvC0cRN8dgkqg5Zpd8kgeV8V2m0TKArwXOO0jKf+sJI42hrcSeqkUrxGqwAxWbMxr+UzPIv64pAExQF8jjf/p+I8w3QXZBj2kNAmXS/iEl7ZzvcFROSyaSJbZCtpxWKpB0oRKfSGsDH1jF77qO3nASjpVE0tZfYKXoDzp8HDD42wFk58TfdfpyalMU1pucjEShUQ9rLKVECzjzQ/8BpNJIVKMtU3MFGqs8ARKBcLyLGiyC7I0xk2X0u1taW3S84AStzwyDSbMUh45J6hGMX8OLbD/sCCIR2yXueWevE9YiilPh5C4LYsX3OmrSzFqrU3c0c8Mu+jv5KItUscxr3KkLh5RuG3l1WnABePBHaCBe3wzY3i/n5CF3m5fUGF2DqR2Fn1DVosbK+mS4P0Gfuy6kBVqqiGK0ceAJTxT/zl9d7CohPR54A1F/MPPF5unp2U5vfCwtnXdptYNW5m0nS+2Wxp8i0DyXiqjhJMpREW/fqgBUiFs9wUXOaP9Fskm+0Es4rlBs959Rc/3CUlRTPtNZ/O++LLatVyQC03dAGw8uOuVB9ujP8I3XwMAMM/FCiKMPO/Qd+m5UgvCo4qD38LNVhuVajYnXLaE6JyxsMCrlVz8ZBIiZIK0ZpcYTeuH/wCM10+hq1FHfsFvF0w/ZCxihV0DsApc+5uUm86NLvPn2ZCvdUjIP1k1GkWEAgO4eBvhFSsNHGh11OlP6ffo4Y12/R7MTFawfbsPv5jntbguU2o2vhabvoc/gZx0q3t52/tZynbu2n53a+rQDKu8mkeM6tsCvMK4bsouI/ElfPM3q35qF0MhpptNtLEJ9eqGig9pW2aIII05IdUg1StM5RUm82EdCHLt/u68J1EKdqBXfvqGmDUW/906Nwe8ebMUG9vQiGxkR3gF9QoclZScxR4Vjm7dDX608VOArDcFzjEH0lOmQZNGVpWS2x2SnyzroWi7H1QX7zoWjIhZy9YOA5yByp+H+EYZTELg2DxR6Bno+0IJuH0eJKoJeVvigcfiaPk20iUoz1Y+3CtIZ3UR4tQQ8veJAnVEIQdlpuzjY0wmMm7x8Y37ZbHI9HwWkv0joXt6vLCTv3idxIyL+iCxnarNhcJJjIr8Na1KH26PoXYNH6cu71D4VeFodAhAhXXScpM1/dJNG9B998tSDv87QWc2I+Uofp2fhNUmEmtYngsIlAsW/+Ze5A0EOwOzqiNcyFhXYet59hvjSxAaN/AULUAM36KADkXHjwzbSDETvdi7M90/yChuCTp+kMvxhIhwNme4DQrQTtB4rRYG68lt8sAH6aQu5v32j/37/WfMHopBEV9ecG3nP6HHgJqep9siW5K5QTZPtpWgzjUIK6TgfSQ/XwbjfrWdBI1Qg05er5LUHJdru1eMFcr4NuxVizkArkIQRWjEyVdAjiHL9fGJRV0XKD8AXjgeiTHUI0cyR5Ig1fPLZVAk1J9AmxIMdRPQMH+thDTnwcT/bTuM35xfl4w/UdFHkQUKzWcgEFDOCP8izhgKwaioDjJyyewNxRWBIAIAAA"},11183:(e,t,r)=>{"use strict";r.d(t,{C:()=>c});var n=r(66989),o=r(32473),i=r(80687),a=r(16462);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var c=function(){function e(t,r,o,c){void 0===r&&(r=e.defaultLocale);var u,l,f,p=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=p.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===a.du.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,a.FK)(p.ast,p.locales,p.formatters,p.formats,e,void 0,p.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=p.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(p.locales)[0]}},this.getAst=function(){return p.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=c||{},h=(d.formatters,(0,n._T)(d,["formatters"]));this.ast=e.__parse(t,(0,n.pi)((0,n.pi)({},h),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(l=e.formats,(f=o)?Object.keys(l).reduce((function(e,t){var r,o;return e[t]=(r=l[t],(o=f[t])?(0,n.pi)((0,n.pi)((0,n.pi)({},r||{}),o||{}),Object.keys(r).reduce((function(e,t){return e[t]=(0,n.pi)((0,n.pi)({},r[t]),o[t]||{}),e}),{})):r),e}),(0,n.pi)({},l)):l),this.formatters=c&&c.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.H)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:s(u.number),strategy:i.A.variadic}),getDateTimeFormat:(0,i.H)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:s(u.dateTime),strategy:i.A.variadic}),getPluralRules:(0,i.H)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.ev)([void 0],t,!1)))}),{cache:s(u.pluralRules),strategy:i.A.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=o.Qc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},86770:(e,t,r)=>{"use strict";r.d(t,{C8:()=>a,HR:()=>c,YR:()=>s,jK:()=>n,u_:()=>i});var n,o=r(66989);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var i=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return(0,o.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,r,o,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),n.INVALID_VALUE,i)||this}return(0,o.ZT)(t,e),t}(i),s=function(e){function t(t,r,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,o)||this}return(0,o.ZT)(t,e),t}(i),c=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,o.ZT)(t,e),t}(i)},16462:(e,t,r)=>{"use strict";r.d(t,{FK:()=>s,Gt:()=>a,du:()=>n});var n,o=r(32473),i=r(86770);function a(e){return"function"==typeof e}function s(e,t,r,c,u,l,f){if(1===e.length&&(0,o.O4)(e[0]))return[{type:n.literal,value:e[0].value}];for(var p=[],d=0,h=e;d<h.length;d++){var v=h[d];if((0,o.O4)(v))p.push({type:n.literal,value:v.value});else if((0,o.yx)(v))"number"==typeof l&&p.push({type:n.literal,value:r.getNumberFormat(t).format(l)});else{var y=v.value;if(!u||!(y in u))throw new i.HR(y,f);var m=u[y];if((0,o.VG)(v))m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),p.push({type:"string"==typeof m?n.literal:n.object,value:m});else if((0,o.rp)(v)){var g="string"==typeof v.style?c.date[v.style]:(0,o.Ii)(v.style)?v.style.parsedOptions:void 0;p.push({type:n.literal,value:r.getDateTimeFormat(t,g).format(m)})}else if((0,o.pe)(v))g="string"==typeof v.style?c.time[v.style]:(0,o.Ii)(v.style)?v.style.parsedOptions:c.time.medium,p.push({type:n.literal,value:r.getDateTimeFormat(t,g).format(m)});else if((0,o.uf)(v))(g="string"==typeof v.style?c.number[v.style]:(0,o.Wh)(v.style)?v.style.parsedOptions:void 0)&&g.scale&&(m*=g.scale||1),p.push({type:n.literal,value:r.getNumberFormat(t,g).format(m)});else{if((0,o.HI)(v)){var b=v.children,_=v.value,w=u[_];if(!a(w))throw new i.YR(_,"function",f);var E=w(s(b,t,r,c,u,l).map((function(e){return e.value})));Array.isArray(E)||(E=[E]),p.push.apply(p,E.map((function(e){return{type:"string"==typeof e?n.literal:n.object,value:e}})))}if((0,o.Wi)(v)){if(!(S=v.options[m]||v.options.other))throw new i.C8(v.value,m,Object.keys(v.options),f);p.push.apply(p,s(S.value,t,r,c,u))}else if((0,o.Jo)(v)){var S;if(!(S=v.options["=".concat(m)])){if(!Intl.PluralRules)throw new i.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',i.jK.MISSING_INTL_API,f);var O=r.getPluralRules(t,{type:v.pluralType}).select(m-(v.offset||0));S=v.options[O]||v.options.other}if(!S)throw new i.C8(v.value,m,Object.keys(v.options),f);p.push.apply(p,s(S.value,t,r,c,u,m-(v.offset||0)))}}}}return(k=p).length<2?k:k.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===n.literal&&t.type===n.literal?r.value+=t.value:e.push(t),e}),[]);var k}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(n||(n={}))},44697:(e,t,r)=>{"use strict";r.d(t,{Gr:()=>g});var n=r(37585),o=(r(2363),function(e){switch(function(e){return"Object"===e.constructor.name?"object":"classInstance"}(e)){case"object":return"loggableName"in e&&"string"==typeof e.loggableName?e.loggableName:null;case"classInstance":return e.constructor.name}}),i=function(e){return e.replace(/@\d+/,"")},a=(function(){function e(e,t,r){void 0===t&&(t=!1),this.logger=e,this.debug=t,this.globalFilters=r,this.filtersPerStore={}}e.prototype.listen=function(){var e=this;(0,n.rV)((function(t){var r,a,s,c,u,l,f=e.logger;if(e.debug&&console.log(t),"update"===t.type){if("computed"===t.observableKind){if(!e.globalFilters.computeds)return;if(!(0,n.p6.default)(t.oldValue,t.newValue)){var p=i(t.debugObjectName),d=p.split(".")[0];if(!(null===(r=e.filtersPerStore[d])||void 0===r?void 0:r.computeds))return;f.logComputed({name:p,oldValue:t.oldValue,newValue:t.newValue})}}if("object"===t.observableKind){if(!e.globalFilters.observables)return;if(d=(b=i(t.debugObjectName)).split(".")[0],!(null===(a=e.filtersPerStore[d])||void 0===a?void 0:a.observables))return;var h=b.endsWith("[..]"),v="".concat(h?b:d,".").concat(t.name.toString());f.logObservable({type:"update",name:v,newValue:t.newValue,oldValue:t.oldValue})}}if("action"!==t.type){if("observableKind"in t){if(!e.globalFilters.observables)return;if("array"===t.observableKind){var y=(b=i(t.debugObjectName)).split("."),m=(d=y[0],y[1]);if(!(null===(c=e.filtersPerStore[d])||void 0===c?void 0:c.observables))return;f.logObservable({type:t.observableKind,name:"".concat(d,".").concat(m.toString()),removed:t.removed,added:t.added})}if("map"===t.observableKind){var g=(b=i(t.debugObjectName)).split(".");if(d=g[0],m=g[1],!(null===(u=e.filtersPerStore[d])||void 0===u?void 0:u.observables))return;f.logObservable({type:"map",key:t.name,value:"newValue"in t?t.newValue:void 0,oldValue:"oldValue"in t?t.oldValue:void 0,name:"".concat(d,".").concat(m.toString()),mapType:t.type})}if("set"===t.observableKind){var b,_=(b=i(t.debugObjectName)).split(".");if(d=_[0],m=_[1],!(null===(l=e.filtersPerStore[d])||void 0===l?void 0:l.observables))return;var w="delete"===t.type?t.oldValue:"add"===t.type?t.newValue:void 0;f.logObservable({type:"set",value:w,name:"".concat(d,".").concat(m.toString()),setType:t.type})}}}else{if(!(t.object instanceof Object&&e.globalFilters.actions))return;if(null===(d=o(t.object))||!(null===(s=e.filtersPerStore[d])||void 0===s?void 0:s.actions))return;var E="loggableName"in t.object?t.name.split(".")[1]:t.name;f.logAction({name:"".concat(d,".").concat(E),arguments:t.arguments})}}))},e.prototype.addFilterByStore=function(e,t){this.filtersPerStore[e]=t}}(),function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)}),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var u,l="#FFBC2D",f=function(){function e(e){this.logWriter=e}return e.prototype.logObservable=function(e){var t,r,n,o,i,a;if("update"===e.type){var s=["%c[O]","color:".concat(l),e.name,e.oldValue,"->",e.newValue];(t=this.logWriter).write.apply(t,s)}"array"===e.type&&(s=["%c[O]","color:".concat(l),e.name,"has changed."],(null===(i=e.removed)||void 0===i?void 0:i.length)&&s.push("Removed: ",e.removed),(null===(a=e.added)||void 0===a?void 0:a.length)&&s.push("Added: ",e.added),(r=this.logWriter).write.apply(r,s)),"map"===e.type&&(s=["%c[O]","color:".concat(l),e.name],"add"===e.mapType&&s.push("- added",e.key,":",e.value),"delete"===e.mapType&&s.push("- deleted",e.key),"update"===e.mapType&&s.push("- updated",e.key,"value",e.oldValue,"->",e.value),(n=this.logWriter).write.apply(n,s)),"set"===e.type&&(s=["%c[O]","color:".concat(l),e.name],"add"===e.setType&&s.push("- added",e.value),"delete"===e.setType&&s.push("- removed",e.value),(o=this.logWriter).write.apply(o,s))},e.prototype.logAction=function(e){var t,r=e.arguments.length>0?"%o, ".repeat(e.arguments.length).slice(0,-2):"",n=c(["%c[A]%c ".concat(e.name,"(").concat(r,")"),"color:".concat("#FF6157"),"color:inherit"],e.arguments,!0);(t=this.logWriter).write.apply(t,n)},e.prototype.logComputed=function(e){var t,r=["%c[C]","color:".concat("#28B7F6"),e.name,e.oldValue,"->",e.newValue];(t=this.logWriter).write.apply(t,r)},e}(),p=function(){function e(){}return e.prototype.write=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.log.apply(console,e)},e}();!function(e){e.ReduxDevtools="redux-devtools",e.BrowserConsole="browser-console"}(u||(u={})),new f(new p);var d,h={mobxName:{style:"color: rgb(232,98,0)"},nullName:{style:"color: #777"},list:{style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"}},v=function(e){return void 0===e||null===typeof e?["span",h.nullName,typeof e]:["object",{object:e}]},y=function(e,t){var r=(0,n.LJ)(e)||(0,n.iP)(e)?e.size:e.length;return["span",["span",h.mobxName,t],["span","[".concat(r,"]")]]},m=function(e,t){if((0,n.LJ)(e)||(0,n.iP)(e)){var r=Array.from((0,n.ZN)(e)).map(t);return c(["ol",h.list],r,!0)}var o,i=(o=e,s(s({},(0,n.ZN)(o)),function(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(r){if((0,n.eJ)(e,r))try{t[r]=e[r]}catch(e){t[r]="*Exception*"}})),t}(o))),a=Object.entries(i).map(t);return c(["ol",h.list],a,!0)},g=(function(){function e(){}e.prototype.header=function(e){var t;return(0,n.Pb)(e)?y(Object.keys(e),null!==(t=null==e?void 0:e.constructor.name)&&void 0!==t?t:"Object"):null},e.prototype.hasBody=function(e){return Object.keys(e).length>0},e.prototype.body=function(e){return m(e,(function(e){var t=e[0],r=e[1];return["li",{},v(t),": ",v(r)]}))}}(),function(){function e(){}e.prototype.header=function(e){return(0,n.Ei)(e)?y(e,"Array"):null},e.prototype.hasBody=function(e){return e.length>0},e.prototype.body=function(e){return m(e,(function(e){e[0];var t=e[1];return["li",v(t)]}))}}(),function(){function e(){}e.prototype.header=function(e){return(0,n.LJ)(e)?y(e,"Map"):null},e.prototype.hasBody=function(e){return e.size>0},e.prototype.body=function(e){return m(e,(function(e){var t=e[0],r=e[1];return["li",{},v(t),": ",v(r)]}))}}(),function(){function e(){}e.prototype.header=function(e){return(0,n.iP)(e)?y(e,"Set"):null},e.prototype.hasBody=function(e){return e.size>0},e.prototype.body=function(e){return m(e,(function(e){return["li",v(e)]}))}}(),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}((function(e){return d.call(this,"mobx-log: Unreachable case. ".concat(e))||this}),d=Error),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,new Map,function(e,t){return e})},37585:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}r.d(t,{EH:()=>Nt,Ei:()=>Nr,Fl:()=>Ae,Gf:()=>Yt,LJ:()=>Br,LO:()=>xe,PS:()=>cr,Pb:()=>Xr,U5:()=>Mt,ZN:()=>sr,aD:()=>At,bi:()=>or,cp:()=>W,eJ:()=>nr,fE:()=>dn,gx:()=>ur,iP:()=>Vr,jQ:()=>Wt,ky:()=>wr,le:()=>mt,ls:()=>er,p6:()=>Z,rC:()=>br,rV:()=>St,vP:()=>zr,z:()=>Rt});var o={};function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:o}var a=Object.assign,s=Object.getOwnPropertyDescriptor,c=Object.defineProperty,u=Object.prototype,l=[];Object.freeze(l);var f={};Object.freeze(f);var p="undefined"!=typeof Proxy,d=Object.toString();function h(){p||n("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var y=function(){};function m(e){return"function"==typeof e}function g(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function b(e){return null!==e&&"object"==typeof e}function _(e){if(!b(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r.toString()===d}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function E(e,t,r){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function S(e,t,r){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function O(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return b(e)&&!0===e[r]}}function k(e){return e instanceof Map}function C(e){return e instanceof Set}var x=void 0!==Object.getOwnPropertySymbols,L="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:x?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function I(e){return null===e?null:"object"==typeof e?""+e:e}function P(e,t){return u.hasOwnProperty.call(e,t)}var A=Object.getOwnPropertyDescriptors||function(e){var t={};return L(e).forEach((function(r){t[r]=s(e,r)})),t};function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key))?o:String(o)),n)}var o}function R(e,t,r){return t&&T(e.prototype,t),r&&T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(this,arguments)}function N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,D(e,t)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var H=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,r){B(t,r,e)}),e)}function B(e,t,r){P(e,H)||E(e,H,j({},e[H])),function(e){return e.annotationType_===q}(r)||(e[H][t]=r)}var G=Symbol("mobx administration"),K=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return vt(this)},t.reportChanged=function(){dt(),yt(this),ut.stateVersion=ut.stateVersion<Number.MAX_SAFE_INTEGER?ut.stateVersion+1:Number.MIN_SAFE_INTEGER,ht()},t.toString=function(){return this.name_},e}(),V=O("Atom",K);function W(e,t,r){void 0===t&&(t=y),void 0===r&&(r=y);var n=new K(e);return t!==y&&Bt(Ft,n,t,undefined),r!==y&&zt(n,r),n}var Z={identity:function(e,t){return e===t},structural:function(e,t){return vn(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return vn(e,t,1)}};function Y(e,t,r){return or(e)?e:Array.isArray(e)?xe.array(e,{name:r}):_(e)?xe.object(e,void 0,{name:r}):k(e)?xe.map(e,{name:r}):C(e)?xe.set(e,{name:r}):"function"!=typeof e||jt(e)||rr(e)?e:w(e)?er(e):Tt(r,e)}function J(e){return e}var q="override";function $(e,t){return{annotationType_:e,options_:t,make_:X,extend_:Q}}function X(e,t,r,n){var o;if(null!=(o=this.options_)&&o.bound)return null===this.extend_(e,t,r,!1)?0:1;if(n===e.target_)return null===this.extend_(e,t,r,!1)?0:2;if(jt(r.value))return 1;var i=ee(e,this,t,r,!1);return c(n,t,i),2}function Q(e,t,r,n){var o=ee(e,this,t,r);return e.defineProperty_(t,o,n)}function ee(e,t,r,n,o){var i,a,s,c,u,l,f,p;void 0===o&&(o=ut.safeDescriptors),p=n,t.annotationType_,p.value;var d,h=n.value;return null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(d=e.proxy_)?d:e.target_)),{value:Ue(null!=(a=null==(s=t.options_)?void 0:s.name)?a:r.toString(),h,null!=(c=null==(u=t.options_)?void 0:u.autoAction)&&c,null!=(l=t.options_)&&l.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function te(e,t){return{annotationType_:e,options_:t,make_:re,extend_:ne}}function re(e,t,r,n){var o;if(n===e.target_)return null===this.extend_(e,t,r,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!P(e.target_,t)||!rr(e.target_[t]))&&null===this.extend_(e,t,r,!1))return 0;if(rr(r.value))return 1;var i=oe(e,this,0,r,!1,!1);return c(n,t,i),2}function ne(e,t,r,n){var o,i=oe(e,this,0,r,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,n)}function oe(e,t,r,n,o,i){var a;void 0===i&&(i=ut.safeDescriptors),a=n,t.annotationType_,a.value;var s,c=n.value;return rr(c)||(c=er(c)),o&&((c=c.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:c,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ie(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se}}function ae(e,t,r){return null===this.extend_(e,t,r,!1)?0:1}function se(e,t,r,n){return o=r,this.annotationType_,o.get,e.defineComputedProperty_(t,j({},this.options_,{get:r.get,set:r.set}),n);var o}function ce(e,t){return{annotationType_:e,options_:t,make_:ue,extend_:le}}function ue(e,t,r){return null===this.extend_(e,t,r,!1)?0:1}function le(e,t,r,n){var o,i;return this.annotationType_,e.defineObservableProperty_(t,r.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:Y,n)}var fe="true",pe=de();function de(e){return{annotationType_:fe,options_:e,make_:he,extend_:ve}}function he(e,t,r,n){var o,i,a,s;if(r.get)return Ae.make_(e,t,r,n);if(r.set){var u=Ue(t.toString(),r.set);return n===e.target_?null===e.defineProperty_(t,{configurable:!ut.safeDescriptors||e.isPlainObject_,set:u})?0:2:(c(n,t,{configurable:!0,set:u}),2)}if(n!==e.target_&&"function"==typeof r.value)return w(r.value)?(null!=(s=this.options_)&&s.autoBind?er.bound:er).make_(e,t,r,n):(null!=(a=this.options_)&&a.autoBind?Tt.bound:Tt).make_(e,t,r,n);var l,f=!1===(null==(o=this.options_)?void 0:o.deep)?xe.ref:xe;return"function"==typeof r.value&&null!=(i=this.options_)&&i.autoBind&&(r.value=r.value.bind(null!=(l=e.proxy_)?l:e.target_)),f.make_(e,t,r,n)}function ve(e,t,r,n){var o,i,a;return r.get?Ae.extend_(e,t,r,n):r.set?e.defineProperty_(t,{configurable:!ut.safeDescriptors||e.isPlainObject_,set:Ue(t.toString(),r.set)},n):("function"==typeof r.value&&null!=(o=this.options_)&&o.autoBind&&(r.value=r.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?xe.ref:xe).extend_(e,t,r,n))}var ye={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function me(e){return e||ye}Object.freeze(ye);var ge=ce("observable"),be=ce("observable.ref",{enhancer:J}),_e=ce("observable.shallow",{enhancer:function(e,t,r){return null==e||Xr(e)||Nr(e)||Br(e)||Vr(e)?e:Array.isArray(e)?xe.array(e,{name:r,deep:!1}):_(e)?xe.object(e,void 0,{name:r,deep:!1}):k(e)?xe.map(e,{name:r,deep:!1}):C(e)?xe.set(e,{name:r,deep:!1}):void 0}}),we=ce("observable.struct",{enhancer:function(e,t){return vn(e,t)?t:e}}),Ee=z(ge);function Se(e){return!0===e.deep?Y:!1===e.deep?J:(t=e.defaultDecorator)&&null!=(r=null==(n=t.options_)?void 0:n.enhancer)?r:Y;var t,r,n}function Oe(e,t,r){if(!g(t))return or(e)?e:_(e)?xe.object(e,t,r):Array.isArray(e)?xe.array(e,t):k(e)?xe.map(e,t):C(e)?xe.set(e,t):"object"==typeof e&&null!==e?e:xe.box(e,t);B(e,t,ge)}a(Oe,Ee);var ke,Ce,xe=a(Oe,{box:function(e,t){var r=me(t);return new Ge(e,Se(r),r.name,!0,r.equals)},array:function(e,t){var r=me(t);return(!1===ut.useProxies||!1===r.proxy?ln:Cr)(e,Se(r),r.name)},map:function(e,t){var r=me(t);return new zr(e,Se(r),r.name)},set:function(e,t){var r=me(t);return new Kr(e,Se(r),r.name)},object:function(e,t,r){return Zt(!1===ut.useProxies||!1===(null==r?void 0:r.proxy)?Jr({},r):function(e,t){var r,n;return h(),null!=(n=(r=(e=Jr(e,t))[G]).proxy_)?n:r.proxy_=new Proxy(e,pr)}({},r),e,t)},ref:z(be),shallow:z(_e),deep:Ee,struct:z(we)}),Le="computed",Ie=ie(Le),Pe=ie("computed.struct",{equals:Z.structural}),Ae=function(e,t){if(g(t))return B(e,t,Ie);if(_(e))return z(ie(Le,e));var r=_(t)?t:{};return r.get=e,r.name||(r.name=e.name||""),new Ze(r)};Object.assign(Ae,Ie),Ae.struct=z(Pe);var Te,Re=0,je=1,Ne=null!=(ke=null==(Ce=s((function(){}),"name"))?void 0:Ce.configurable)&&ke,De={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ue(e,t,r,n){function o(){return Me(0,r,t,n||this,arguments)}return void 0===r&&(r=!1),o.isMobxAction=!0,Ne&&(De.value=e,c(o,"name",De)),o}function Me(e,t,r,o,i){var a=function(e,t,r,n){var o=ut.trackingDerivation,i=!t||!o;dt();var a=ut.allowStateChanges;i&&(tt(),a=He(!0));var s={runAsAction_:i,prevDerivation_:o,prevAllowStateChanges_:a,prevAllowStateReads_:nt(!0),notifySpy_:!1,startTime_:0,actionId_:je++,parentActionId_:Re};return Re=s.actionId_,s}(0,t);try{return r.apply(o,i)}catch(e){throw a.error_=e,e}finally{!function(e){Re!==e.actionId_&&n(30),Re=e.parentActionId_,void 0!==e.error_&&(ut.suppressReactionErrors=!0),ze(e.prevAllowStateChanges_),ot(e.prevAllowStateReads_),ht(),e.runAsAction_&&rt(e.prevDerivation_),ut.suppressReactionErrors=!1}(a)}}function Fe(e,t){var r=He(e);try{return t()}finally{ze(r)}}function He(e){var t=ut.allowStateChanges;return ut.allowStateChanges=e,t}function ze(e){ut.allowStateChanges=e}Te=Symbol.toPrimitive;var Be,Ge=function(e){function t(t,r,n,o,i){var a;return void 0===n&&(n="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=Z.default),(a=e.call(this,n)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=r,a.name_=n,a.equals=i,a.value_=r(t,void 0,n),a}N(t,e);var r=t.prototype;return r.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},r.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ut.UNCHANGED&&this.setNewValue_(e)},r.prepareNewValue_=function(e){if(dr(this)){var t=vr(this,{object:this,type:Sr,newValue:e});if(!t)return ut.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ut.UNCHANGED:e},r.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),yr(this)&&gr(this,{type:Sr,object:this,newValue:e,oldValue:t})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(e){return hr(this,e)},r.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Sr,newValue:this.value_,oldValue:void 0}),mr(this,e)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return I(this.get())},r[Te]=function(){return this.valueOf()},t}(K),Ke=O("ObservableValue",Ge);Be=Symbol.toPrimitive;var Ve,We,Ze=function(){function e(e){this.dependenciesState_=Ve.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Je(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=We.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||n(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ue("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Z.structural:Z.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Ve.UP_TO_DATE_&&(e.lowestObserverState_=Ve.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&(e.dependenciesState_=Ve.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&n(32,this.name_,this.derivation),0!==ut.inBatch||0!==this.observers_.size||this.keepAlive_){if(vt(this),$e(this)){var e=ut.trackingContext;this.keepAlive_&&!e&&(ut.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Ve.STALE_&&(e.lowestObserverState_=Ve.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ve.POSSIBLY_STALE_?t.dependenciesState_=Ve.STALE_:t.dependenciesState_===Ve.UP_TO_DATE_&&(e.lowestObserverState_=Ve.UP_TO_DATE_)})))}(this),ut.trackingContext=e}}else $e(this)&&(this.warnAboutUntrackedRead_(),dt(),this.value_=this.computeValue_(!1),ht());var t=this.value_;if(qe(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&n(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else n(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ve.NOT_TRACKING_,r=this.computeValue_(!0),n=t||qe(e)||qe(r)||!this.equals_(e,r);return n&&(this.value_=r),n},t.computeValue_=function(e){this.isComputing_=!0;var t,r=He(!1);if(e)t=Xe(this,this.derivation,this.scope_);else if(!0===ut.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Je(e)}return ze(r),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Qe(this),this.value_=void 0)},t.observe_=function(e,t){var r=this,n=!0,o=void 0;return Nt((function(){var i=r.get();if(!n||t){var a=tt();e({observableKind:"computed",debugObjectName:r.name_,type:Sr,object:r,newValue:i,oldValue:o}),rt(a)}n=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return I(this.get())},t[Be]=function(){return this.valueOf()},e}(),Ye=O("ComputedValue",Ze);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ve||(Ve={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(We||(We={}));var Je=function(e){this.cause=void 0,this.cause=e};function qe(e){return e instanceof Je}function $e(e){switch(e.dependenciesState_){case Ve.UP_TO_DATE_:return!1;case Ve.NOT_TRACKING_:case Ve.STALE_:return!0;case Ve.POSSIBLY_STALE_:for(var t=nt(!0),r=tt(),n=e.observing_,o=n.length,i=0;i<o;i++){var a=n[i];if(Ye(a)){if(ut.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return rt(r),ot(t),!0}if(e.dependenciesState_===Ve.STALE_)return rt(r),ot(t),!0}}return it(e),rt(r),ot(t),!1}}function Xe(e,t,r){var n=nt(!0);it(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++ut.runId;var o,i=ut.trackingDerivation;if(ut.trackingDerivation=e,ut.inBatch++,!0===ut.disableErrorBoundaries)o=t.call(r);else try{o=t.call(r)}catch(e){o=new Je(e)}return ut.inBatch--,ut.trackingDerivation=i,function(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=Ve.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=r[a];0===s.diffValue_&&(s.diffValue_=1,o!==a&&(r[o]=s),o++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=o,e.newObserving_=null,i=t.length;i--;){var c=t[i];0===c.diffValue_&&ft(c,e),c.diffValue_=0}for(;o--;){var u=r[o];1===u.diffValue_&&(u.diffValue_=0,lt(u,e))}n!==Ve.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}(e),ot(n),o}function Qe(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)ft(t[r],e);e.dependenciesState_=Ve.NOT_TRACKING_}function et(e){var t=tt();try{return e()}finally{rt(t)}}function tt(){var e=ut.trackingDerivation;return ut.trackingDerivation=null,e}function rt(e){ut.trackingDerivation=e}function nt(e){var t=ut.allowStateReads;return ut.allowStateReads=e,t}function ot(e){ut.allowStateReads=e}function it(e){if(e.dependenciesState_!==Ve.UP_TO_DATE_){e.dependenciesState_=Ve.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=Ve.UP_TO_DATE_}}var at=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},st=!0,ct=!1,ut=function(){var e=i();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(st=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new at).version&&(st=!1),st?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new at):(setTimeout((function(){ct||n(35)}),1),new at)}();function lt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ft(e,t){e.observers_.delete(t),0===e.observers_.size&&pt(e)}function pt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,ut.pendingUnobservations.push(e))}function dt(){ut.inBatch++}function ht(){if(0==--ut.inBatch){_t();for(var e=ut.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation_=!1,0===r.observers_.size&&(r.isBeingObserved_&&(r.isBeingObserved_=!1,r.onBUO()),r instanceof Ze&&r.suspend_())}ut.pendingUnobservations=[]}}function vt(e){var t=ut.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&ut.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(0===e.observers_.size&&ut.inBatch>0&&pt(e),!1)}function yt(e){e.lowestObserverState_!==Ve.STALE_&&(e.lowestObserverState_=Ve.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ve.STALE_})))}var mt=function(){function e(e,t,r,n){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ve.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=We.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=r,this.requiresObservable_=n}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,ut.pendingReactions.push(this),_t())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){dt(),this.isScheduled_=!1;var e=ut.trackingContext;if(ut.trackingContext=this,$e(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ut.trackingContext=e,ht()}},t.track=function(e){if(!this.isDisposed_){dt(),this.isRunning_=!0;var t=ut.trackingContext;ut.trackingContext=this;var r=Xe(this,e,void 0);ut.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Qe(this),qe(r)&&this.reportExceptionInDerivation_(r.cause),ht()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ut.disableErrorBoundaries)throw e;var r="[mobx] uncaught error in '"+this+"'";ut.suppressReactionErrors||console.error(r,e),ut.globalReactionErrorHandlers.forEach((function(r){return r(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(dt(),Qe(this),ht()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[G]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){n("trace() is not available in production builds");for(var e=!1,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];"boolean"==typeof r[r.length-1]&&(e=r.pop());var i=function(e){switch(e.length){case 0:return ut.trackingDerivation;case 1:return fn(e[0]);case 2:return fn(e[0],e[1])}}(r);if(!i)return n("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===We.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled"),i.isTracing_=e?We.BREAK:We.LOG}(this,e)},e}(),gt=100,bt=function(e){return e()};function _t(){ut.inBatch>0||ut.isRunningReactions||bt(wt)}function wt(){ut.isRunningReactions=!0;for(var e=ut.pendingReactions,t=0;e.length>0;){++t===gt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,o=r.length;n<o;n++)r[n].runReaction_()}ut.isRunningReactions=!1}var Et=O("Reaction",mt);function St(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Ot="action",kt="autoAction",Ct=$(Ot),xt=$("action.bound",{bound:!0}),Lt=$(kt,{autoAction:!0}),It=$("autoAction.bound",{autoAction:!0,bound:!0});function Pt(e){return function(t,r){return m(t)?Ue(t.name||"<unnamed action>",t,e):m(r)?Ue(t,r,e):g(r)?B(t,r,e?Lt:Ct):g(t)?z($(e?kt:Ot,{name:t,autoAction:e})):void 0}}var At=Pt(!1);Object.assign(At,Ct);var Tt=Pt(!0);function Rt(e){return Me(e.name,!1,e,this,void 0)}function jt(e){return m(e)&&!0===e.isMobxAction}function Nt(e,t){var r,n;void 0===t&&(t=f);var o,i=null!=(r=null==(n=t)?void 0:n.name)?r:"Autorun";if(t.scheduler||t.delay){var a=Ut(t),s=!1;o=new mt(i,(function(){s||(s=!0,a((function(){s=!1,o.isDisposed_||o.track(c)})))}),t.onError,t.requiresObservable)}else o=new mt(i,(function(){this.track(c)}),t.onError,t.requiresObservable);function c(){e(o)}return o.schedule_(),o.getDisposer_()}Object.assign(Tt,Lt),At.bound=z(xt),Tt.bound=z(It);var Dt=function(e){return e()};function Ut(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dt}function Mt(e,t,r){var n;void 0===r&&(r=f);var o,i,a,s,c=null!=(n=r.name)?n:"Reaction",u=At(c,r.onError?(o=r.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){o.call(this,e)}}):t),l=!r.scheduler&&!r.delay,p=Ut(r),d=!0,h=!1,v=r.compareStructural?Z.structural:r.equals||Z.default,y=new mt(c,(function(){d||l?m():h||(h=!0,p(m))}),r.onError,r.requiresObservable);function m(){if(h=!1,!y.isDisposed_){var t=!1;y.track((function(){var r=Fe(!1,(function(){return e(y)}));t=d||!v(a,r),s=a,a=r})),(d&&r.fireImmediately||!d&&t)&&u(a,s,y),d=!1}}return y.schedule_(),y.getDisposer_()}var Ft="onBO",Ht="onBUO";function zt(e,t,r){return Bt(Ht,e,t,r)}function Bt(e,t,r,n){var o="function"==typeof n?fn(t,r):fn(t),i=m(n)?n:r,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Gt="never",Kt="always",Vt="observed";function Wt(e){!0===e.isolateGlobalState&&function(){if((ut.pendingReactions.length||ut.inBatch||ut.isRunningReactions)&&n(36),ct=!0,st){var e=i();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ut=new at}}();var t,r,o=e.useProxies,a=e.enforceActions;if(void 0!==o&&(ut.useProxies=o===Kt||o!==Gt&&"undefined"!=typeof Proxy),"ifavailable"===o&&(ut.verifyProxies=!0),void 0!==a){var s=a===Kt?Kt:a===Vt;ut.enforceActions=s,ut.allowStateChanges=!0!==s&&s!==Kt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ut[t]=!!e[t])})),ut.allowStateReads=!ut.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,r=bt,bt=function(e){return t((function(){return r(e)}))})}function Zt(e,t,r,n){var o=A(t),i=Jr(e,n)[G];dt();try{L(o).forEach((function(e){i.extend_(e,o[e],!r||!(e in r)||r[e])}))}finally{ht()}return e}function Yt(e,t){return Jt(fn(e,t))}function Jt(e){var t,r={name:e.name_};return e.observing_&&e.observing_.length>0&&(r.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Jt)),r}var qt=0;function $t(){this.message="FLOW_CANCELLED"}$t.prototype=Object.create(Error.prototype);var Xt=te("flow"),Qt=te("flow.bound",{bound:!0}),er=Object.assign((function(e,t){if(g(t))return B(e,t,Xt);var r=e,n=r.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++qt,i=At(n+" - runid: "+o+" - init",r).apply(this,t),a=void 0,s=new Promise((function(t,r){var s=0;function c(e){var t;a=void 0;try{t=At(n+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(e){return r(e)}l(t)}function u(e){var t;a=void 0;try{t=At(n+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(e){return r(e)}l(t)}function l(e){if(!m(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(c,u);e.then(l,r)}e=r,c(void 0)}));return s.cancel=At(n+" - runid: "+o+" - cancel",(function(){try{a&&tr(a);var t=i.return(void 0),r=Promise.resolve(t.value);r.then(y,y),tr(r),e(new $t)}catch(t){e(t)}})),s};return o.isMobXFlow=!0,o}),Xt);function tr(e){m(e.cancel)&&e.cancel()}function rr(e){return!0===(null==e?void 0:e.isMobXFlow)}function nr(e,t){return function(e,t){if(void 0===t)return Ye(e);if(!1===Xr(e))return!1;if(!e[G].values_.has(t))return!1;var r=fn(e,t);return Ye(r)}(e,t)}function or(e){return function(e,t){return!!e&&(void 0!==t?!!Xr(e)&&e[G].values_.has(t):Xr(e)||!!e[G]||V(e)||Et(e)||Ye(e))}(e)}function ir(e,t,r){return e.set(t,r),r}function ar(e,t){if(null==e||"object"!=typeof e||e instanceof Date||!or(e))return e;if(Ke(e)||Ye(e))return ar(e.get(),t);if(t.has(e))return t.get(e);if(Nr(e)){var r=ir(t,e,new Array(e.length));return e.forEach((function(e,n){r[n]=ar(e,t)})),r}if(Vr(e)){var o=ir(t,e,new Set);return e.forEach((function(e){o.add(ar(e,t))})),o}if(Br(e)){var i=ir(t,e,new Map);return e.forEach((function(e,r){i.set(r,ar(e,t))})),i}var a=ir(t,e,{});return function(e){if(Xr(e))return e[G].ownKeys_();n(38)}(e).forEach((function(r){u.propertyIsEnumerable.call(e,r)&&(a[r]=ar(e[r],t))})),a}function sr(e,t){return ar(e,new Map)}function cr(e,t){void 0===t&&(t=void 0),dt();try{return e.apply(t)}finally{ht()}}function ur(e,t,r){return 1===arguments.length||t&&"object"==typeof t?function(e,t){var r,n,o;if(null!=t&&null!=(r=t.signal)&&r.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var i=new Promise((function(r,i){var a,s=lr(e,r,j({},t,{onError:i}));n=function(){s(),i(new Error("WHEN_CANCELLED"))},o=function(){s(),i(new Error("WHEN_ABORTED"))},null==t||null==(a=t.signal)||null==a.addEventListener||a.addEventListener("abort",o)})).finally((function(){var e;return null==t||null==(e=t.signal)||null==e.removeEventListener?void 0:e.removeEventListener("abort",o)}));return i.cancel=n,i}(e,t):lr(e,t,r||{})}function lr(e,t,r){var n;if("number"==typeof r.timeout){var o=new Error("WHEN_TIMEOUT");n=setTimeout((function(){if(!a[G].isDisposed_){if(a(),!r.onError)throw o;r.onError(o)}}),r.timeout)}r.name="When";var i=Ue("When-effect",t),a=Nt((function(t){Fe(!1,e)&&(t.dispose(),n&&clearTimeout(n),i())}),r);return a}function fr(e){return e[G]}er.bound=z(Qt);var pr={has:function(e,t){return fr(e).has_(t)},get:function(e,t){return fr(e).get_(t)},set:function(e,t,r){var n;return!!g(t)&&(null==(n=fr(e).set_(t,r,!0))||n)},deleteProperty:function(e,t){var r;return!!g(t)&&(null==(r=fr(e).delete_(t,!0))||r)},defineProperty:function(e,t,r){var n;return null==(n=fr(e).defineProperty_(t,r))||n},ownKeys:function(e){return fr(e).ownKeys_()},preventExtensions:function(e){n(13)}};function dr(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function hr(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),v((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function vr(e,t){var r=tt();try{for(var o=[].concat(e.interceptors_||[]),i=0,a=o.length;i<a&&((t=o[i](t))&&!t.type&&n(14),t);i++);return t}finally{rt(r)}}function yr(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function mr(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),v((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function gr(e,t){var r=tt(),n=e.changeListeners_;if(n){for(var o=0,i=(n=n.slice()).length;o<i;o++)n[o](t);rt(r)}}function br(e,t,r){var n=Jr(e,r)[G];dt();try{null!=t||(t=function(e){return P(e,H)||E(e,H,j({},e[H])),e[H]}(e)),L(t).forEach((function(e){return n.make_(e,t[e])}))}finally{ht()}return e}var _r=Symbol("mobx-keys");function wr(e,t,r){if(_(e))return Zt(e,e,t,r);var n=Jr(e,r)[G];if(!e[_r]){var o=Object.getPrototypeOf(e),i=new Set([].concat(L(e),L(o)));i.delete("constructor"),i.delete(G),E(o,_r,i)}dt();try{e[_r].forEach((function(e){return n.make_(e,!t||!(e in t)||t[e])}))}finally{ht()}return e}var Er="splice",Sr="update",Or={get:function(e,t){var r=e[G];return t===G?r:"length"===t?r.getArrayLength_():"string"!=typeof t||isNaN(t)?P(xr,t)?xr[t]:e[t]:r.get_(parseInt(t))},set:function(e,t,r){var n=e[G];return"length"===t&&n.setArrayLength_(r),"symbol"==typeof t||isNaN(t)?e[t]=r:n.set_(parseInt(t),r),!0},preventExtensions:function(){n(15)}},kr=function(){function e(e,t,r,n){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=r,this.legacyMode_=n,this.atom_=new K(e),this.enhancer_=function(e,r){return t(e,r,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return hr(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),mr(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&n("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var r=new Array(e-t),o=0;o<e-t;o++)r[o]=void 0;this.spliceWithArray_(t,0,r)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&n(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&un(e+t+1)},t.spliceWithArray_=function(e,t,r){var n=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===r&&(r=l),dr(this)){var i=vr(this,{object:this.proxy_,type:Er,index:e,removedCount:t,added:r});if(!i)return l;t=i.removedCount,r=i.added}if(r=0===r.length?r:r.map((function(e){return n.enhancer_(e,void 0)})),this.legacyMode_){var a=r.length-t;this.updateArrayLength_(o,a)}var s=this.spliceItemsIntoValues_(e,t,r);return 0===t&&0===r.length||this.notifyArraySplice_(e,r,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,r){var n;if(r.length<1e4)return(n=this.values_).splice.apply(n,[e,t].concat(r));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=r.length-t;for(var a=0;a<r.length;a++)this.values_[e+a]=r[a];for(var s=0;s<i.length;s++)this.values_[e+r.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,r){var n=!this.owned_&&!1,o=yr(this),i=o||n?{observableKind:"array",object:this.proxy_,type:Sr,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:r}:null;this.atom_.reportChanged(),o&&gr(this,i)},t.notifyArraySplice_=function(e,t,r){var n=!this.owned_&&!1,o=yr(this),i=o||n?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Er,index:e,removed:r,added:t,removedCount:r.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&gr(this,i)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var r=this.values_;if(this.legacyMode_&&e>r.length&&n(17,e,r.length),e<r.length){this.atom_;var o=r[e];if(dr(this)){var i=vr(this,{type:Sr,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,o))!==o&&(r[e]=t,this.notifyArrayChildUpdate_(e,t,o))}else{for(var a=new Array(e+1-r.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(r.length,0,a)}},e}();function Cr(e,t,r,n){void 0===r&&(r="ObservableArray"),void 0===n&&(n=!1),h();var o=new kr(r,t,n,!1);S(o.values_,G,o);var i=new Proxy(o.values_,Or);if(o.proxy_=i,e&&e.length){var a=He(!0);o.spliceWithArray_(0,0,e),ze(a)}return i}var xr={clear:function(){return this.splice(0)},replace:function(e){var t=this[G];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=this[G];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,n)},spliceWithArray:function(e,t,r){return this[G].spliceWithArray_(e,t,r)},push:function(){for(var e=this[G],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.spliceWithArray_(e.values_.length,0,r),e.values_.length},pop:function(){return this.splice(Math.max(this[G].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[G],t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.spliceWithArray_(0,0,r),e.values_.length},reverse:function(){return ut.trackingDerivation&&n(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ut.trackingDerivation&&n(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[G],r=t.dehanceValues_(t.values_).indexOf(e);return r>-1&&(this.splice(r,1),!0)}};function Lr(e,t){"function"==typeof Array.prototype[e]&&(xr[e]=t(e))}function Ir(e){return function(){var t=this[G];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function Pr(e){return function(t,r){var n=this,o=this[G];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(r,e,o,n)}))}}function Ar(e){return function(){var t=this,r=this[G];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),o=arguments[0];return arguments[0]=function(e,r,n){return o(e,r,n,t)},n[e].apply(n,arguments)}}Lr("concat",Ir),Lr("flat",Ir),Lr("includes",Ir),Lr("indexOf",Ir),Lr("join",Ir),Lr("lastIndexOf",Ir),Lr("slice",Ir),Lr("toString",Ir),Lr("toLocaleString",Ir),Lr("every",Pr),Lr("filter",Pr),Lr("find",Pr),Lr("findIndex",Pr),Lr("flatMap",Pr),Lr("forEach",Pr),Lr("map",Pr),Lr("some",Pr),Lr("reduce",Ar),Lr("reduceRight",Ar);var Tr,Rr,jr=O("ObservableArrayAdministration",kr);function Nr(e){return b(e)&&jr(e[G])}var Dr={},Ur="add",Mr="delete";Tr=Symbol.iterator,Rr=Symbol.toStringTag;var Fr,Hr,zr=function(){function e(e,t,r){var o=this;void 0===t&&(t=Y),void 0===r&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[G]=Dr,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=r,m(Map)||n(18),this.keysAtom_=W("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Fe(!0,(function(){o.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ut.trackingDerivation)return this.has_(e);var r=this.hasMap_.get(e);if(!r){var n=r=new Ge(this.has_(e),J,"ObservableMap.key?",!1);this.hasMap_.set(e,n),zt(n,(function(){return t.hasMap_.delete(e)}))}return r.get()},t.set=function(e,t){var r=this.has_(e);if(dr(this)){var n=vr(this,{type:r?Sr:Ur,object:this,newValue:t,name:e});if(!n)return this;t=n.newValue}return r?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,dr(this)&&!vr(this,{type:Mr,object:this,name:e}))return!1;if(this.has_(e)){var r=yr(this),n=r?{observableKind:"map",debugObjectName:this.name_,type:Mr,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return cr((function(){var r;t.keysAtom_.reportChanged(),null==(r=t.hasMap_.get(e))||r.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),r&&gr(this,n),!0}return!1},t.updateValue_=function(e,t){var r=this.data_.get(e);if((t=r.prepareNewValue_(t))!==ut.UNCHANGED){var n=yr(this),o=n?{observableKind:"map",debugObjectName:this.name_,type:Sr,object:this,oldValue:r.value_,name:e,newValue:t}:null;r.setNewValue_(t),n&&gr(this,o)}},t.addValue_=function(e,t){var r=this;this.keysAtom_,cr((function(){var n,o=new Ge(t,r.enhancer_,"ObservableMap.key",!1);r.data_.set(e,o),t=o.value_,null==(n=r.hasMap_.get(e))||n.setNewValue_(!0),r.keysAtom_.reportChanged()}));var n=yr(this),o=n?{observableKind:"map",debugObjectName:this.name_,type:Ur,object:this,name:e,newValue:t}:null;n&&gr(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return gn({next:function(){var r=t.next(),n=r.done,o=r.value;return{done:n,value:n?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return gn({next:function(){var r=t.next(),n=r.done,o=r.value;return{done:n,value:n?void 0:[o,e.get(o)]}}})},t[Tr]=function(){return this.entries()},t.forEach=function(e,t){for(var r,n=F(this);!(r=n()).done;){var o=r.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return Br(e)&&(e=new Map(e)),cr((function(){_(e)?function(e){var t=Object.keys(e);if(!x)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter((function(t){return u.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(r){return t.set(r,e[r])})):Array.isArray(e)?e.forEach((function(e){var r=e[0],n=e[1];return t.set(r,n)})):k(e)?(e.constructor!==Map&&n(19,e),e.forEach((function(e,r){return t.set(r,e)}))):null!=e&&n(20,e)})),this},t.clear=function(){var e=this;cr((function(){et((function(){for(var t,r=F(e.keys());!(t=r()).done;){var n=t.value;e.delete(n)}}))}))},t.replace=function(e){var t=this;return cr((function(){for(var r,o=function(e){if(k(e)||Br(e))return e;if(Array.isArray(e))return new Map(e);if(_(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}return n(21,e)}(e),i=new Map,a=!1,s=F(t.data_.keys());!(r=s()).done;){var c=r.value;if(!o.has(c))if(t.delete(c))a=!0;else{var u=t.data_.get(c);i.set(c,u)}}for(var l,f=F(o.entries());!(l=f()).done;){var p=l.value,d=p[0],h=p[1],v=t.data_.has(d);if(t.set(d,h),t.data_.has(d)){var y=t.data_.get(d);i.set(d,y),v||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var m=t.data_.keys(),g=i.keys(),b=m.next(),w=g.next();!b.done;){if(b.value!==w.value){t.keysAtom_.reportChanged();break}b=m.next(),w=g.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return mr(this,e)},t.intercept_=function(e){return hr(this,e)},R(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Rr,get:function(){return"Map"}}]),e}(),Br=O("ObservableMap",zr),Gr={};Fr=Symbol.iterator,Hr=Symbol.toStringTag;var Kr=function(){function e(e,t,r){void 0===t&&(t=Y),void 0===r&&(r="ObservableSet"),this.name_=void 0,this[G]=Gr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,m(Set)||n(22),this.atom_=W(this.name_),this.enhancer_=function(e,n){return t(e,n,r)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;cr((function(){et((function(){for(var t,r=F(e.data_.values());!(t=r()).done;){var n=t.value;e.delete(n)}}))}))},t.forEach=function(e,t){for(var r,n=F(this);!(r=n()).done;){var o=r.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,dr(this)&&!vr(this,{type:Ur,object:this,newValue:e}))return this;if(!this.has(e)){cr((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var r=yr(this),n=r?{observableKind:"set",debugObjectName:this.name_,type:Ur,object:this,newValue:e}:null;r&&gr(this,n)}return this},t.delete=function(e){var t=this;if(dr(this)&&!vr(this,{type:Mr,object:this,oldValue:e}))return!1;if(this.has(e)){var r=yr(this),n=r?{observableKind:"set",debugObjectName:this.name_,type:Mr,object:this,oldValue:e}:null;return cr((function(){t.atom_.reportChanged(),t.data_.delete(e)})),r&&gr(this,n),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),r=Array.from(this.values());return gn({next:function(){var n=e;return e+=1,n<r.length?{value:[t[n],r[n]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,r=Array.from(this.data_.values());return gn({next:function(){return t<r.length?{value:e.dehanceValue_(r[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Vr(e)&&(e=new Set(e)),cr((function(){Array.isArray(e)||C(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&n("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return mr(this,e)},t.intercept_=function(e){return hr(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Fr]=function(){return this.values()},R(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Hr,get:function(){return"Set"}}]),e}(),Vr=O("ObservableSet",Kr),Wr=Object.create(null),Zr="remove",Yr=function(){function e(e,t,r,n){void 0===t&&(t=new Map),void 0===n&&(n=pe),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=r,this.defaultAnnotation_=n,this.keysAtom_=new K("ObservableObject.keys"),this.isPlainObject_=_(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var r=this.values_.get(e);if(r instanceof Ze)return r.set(t),!0;if(dr(this)){var n=vr(this,{type:Sr,object:this.proxy_||this.target_,name:e,newValue:t});if(!n)return null;t=n.newValue}if((t=r.prepareNewValue_(t))!==ut.UNCHANGED){var o=yr(this),i=o?{type:Sr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:r.value_,name:e,newValue:t}:null;r.setNewValue_(t),o&&gr(this,i)}return!0},t.get_=function(e){return ut.trackingDerivation&&!P(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,r){return void 0===r&&(r=!1),P(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):r?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},t.has_=function(e){if(!ut.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ge(e in this.target_,J,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var r;if(null!=(r=this.target_[H])&&r[e])return;n(1,t.annotationType_,this.name_+"."+e.toString())}for(var o=this.target_;o&&o!==u;){var i=s(o,e);if(i){var a=t.make_(this,e,i,o);if(0===a)return;if(1===a)break}o=Object.getPrototypeOf(o)}Qr(this,0,e)}},t.extend_=function(e,t,r,n){if(void 0===n&&(n=!1),!0===r&&(r=this.defaultAnnotation_),!1===r)return this.defineProperty_(e,t,n);var o=r.extend_(this,e,t,n);return o&&Qr(this,0,e),o},t.defineProperty_=function(e,t,r){void 0===r&&(r=!1);try{dt();var n=this.delete_(e);if(!n)return n;if(dr(this)){var o=vr(this,{object:this.proxy_||this.target_,name:e,type:Ur,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=j({},t,{value:i}))}if(r){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ht()}return!0},t.defineObservableProperty_=function(e,t,r,n){void 0===n&&(n=!1);try{dt();var o=this.delete_(e);if(!o)return o;if(dr(this)){var i=vr(this,{object:this.proxy_||this.target_,name:e,type:Ur,newValue:t});if(!i)return null;t=i.newValue}var a=$r(e),s={configurable:!ut.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(n){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var u=new Ge(t,r,"ObservableObject.key",!1);this.values_.set(e,u),this.notifyPropertyAddition_(e,u.value_)}finally{ht()}return!0},t.defineComputedProperty_=function(e,t,r){void 0===r&&(r=!1);try{dt();var n=this.delete_(e);if(!n)return n;if(dr(this)&&!vr(this,{object:this.proxy_||this.target_,name:e,type:Ur,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=$r(e),i={configurable:!ut.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.target_,e,i))return!1}else c(this.target_,e,i);this.values_.set(e,new Ze(t)),this.notifyPropertyAddition_(e,void 0)}finally{ht()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!P(this.target_,e))return!0;if(dr(this)&&!vr(this,{object:this.proxy_||this.target_,name:e,type:Zr}))return null;try{var r,n;dt();var o,i=yr(this),a=this.values_.get(e),c=void 0;if(!a&&i&&(c=null==(o=s(this.target_,e))?void 0:o.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Ge&&(c=a.value_),yt(a)),this.keysAtom_.reportChanged(),null==(r=this.pendingKeys_)||null==(n=r.get(e))||n.set(e in this.target_),i){var u={type:Zr,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:e};i&&gr(this,u)}}finally{ht()}return!0},t.observe_=function(e,t){return mr(this,e)},t.intercept_=function(e){return hr(this,e)},t.notifyPropertyAddition_=function(e,t){var r,n,o=yr(this);if(o){var i=o?{type:Ur,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;o&&gr(this,i)}null==(r=this.pendingKeys_)||null==(n=r.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),L(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Jr(e,t){var r;if(P(e,G))return e;var n=null!=(r=null==t?void 0:t.name)?r:"ObservableObject",o=new Yr(e,new Map,String(n),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:de(e):void 0}(t));return E(e,G,o),e}var qr=O("ObservableObjectAdministration",Yr);function $r(e){return Wr[e]||(Wr[e]={get:function(){return this[G].getObservablePropValue_(e)},set:function(t){return this[G].setObservablePropValue_(e,t)}})}function Xr(e){return!!b(e)&&qr(e[G])}function Qr(e,t,r){var n;null==(n=e.target_[H])||delete n[r]}var en,tn,rn=sn(0),nn=0,on=function(){};en=on,tn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(en.prototype,tn):void 0!==en.prototype.__proto__?en.prototype.__proto__=tn:en.prototype=tn;var an=function(e,t,r){function n(t,r,n,o){var i;void 0===n&&(n="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this;var a=new kr(n,r,o,!0);if(a.proxy_=U(i),S(U(i),G,a),t&&t.length){var s=He(!0);i.spliceWithArray(0,0,t),ze(s)}return Object.defineProperty(U(i),"0",rn),i}N(n,e);var o=n.prototype;return o.concat=function(){this[G].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return Nr(e)?e.slice():e})))},o[r]=function(){var e=this,t=0;return gn({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},R(n,[{key:"length",get:function(){return this[G].getArrayLength_()},set:function(e){this[G].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),n}(on,Symbol.toStringTag,Symbol.iterator);function sn(e){return{enumerable:!1,configurable:!0,get:function(){return this[G].get_(e)},set:function(t){this[G].set_(e,t)}}}function cn(e){c(an.prototype,""+e,sn(e))}function un(e){if(e>nn){for(var t=nn;t<e+100;t++)cn(t);nn=e}}function ln(e,t,r){return new an(e,t,r)}function fn(e,t){if("object"==typeof e&&null!==e){if(Nr(e))return void 0!==t&&n(23),e[G].atom_;if(Vr(e))return e.atom_;if(Br(e)){if(void 0===t)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||n(25,t,dn(e)),r}if(Xr(e)){if(!t)return n(26);var o=e[G].values_.get(t);return o||n(27,t,dn(e)),o}if(V(e)||Ye(e)||Et(e))return e}else if(m(e)&&Et(e[G]))return e[G];n(28)}function pn(e,t){return e||n(29),void 0!==t?pn(fn(e,t)):V(e)||Ye(e)||Et(e)||Br(e)||Vr(e)?e:e[G]?e[G]:void n(24,e)}function dn(e,t){var r;if(void 0!==t)r=fn(e,t);else{if(jt(e))return e.name;r=Xr(e)||Br(e)||Vr(e)?pn(e):fn(e)}return r.name_}Object.entries(xr).forEach((function(e){var t=e[0],r=e[1];"concat"!==t&&E(an.prototype,t,r)})),un(1e3);var hn=u.toString;function vn(e,t,r){return void 0===r&&(r=-1),yn(e,t,r)}function yn(e,t,r,n,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var a=hn.call(e);if(a!==hn.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++}e=mn(e),t=mn(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,u=t.constructor;if(c!==u&&!(m(c)&&c instanceof c&&m(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return o[l]===t;if(n.push(e),o.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!yn(e[l],t[l],r-1,n,o))return!1}else{var f,p=Object.keys(e);if(l=p.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!P(t,f=p[l])||!yn(e[f],t[f],r-1,n,o))return!1}return n.pop(),o.pop(),!0}function mn(e){return Nr(e)?e.slice():k(e)||Br(e)||C(e)||Vr(e)?Array.from(e.entries()):e}function gn(e){return e[Symbol.iterator]=bn,e}function bn(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===i()[e]&&n("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:St,extras:{getDebugName:dn},$mobx:G})},36258:(e,t,r)=>{"use strict";r.d(t,{BK:()=>d,Em:()=>p,vU:()=>f});var n,o,i=r(63284),a=r(2363),s=r(12269);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(n||(n={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));var c=function(e){var t=(0,s.Z)(),r=e.value,n=e.children,o=(0,i._T)(e,["value","children"]);return n(t.formatNumberToParts(r,o))};function u(e){var t=function(t){var r=(0,s.Z)(),n=t.value,o=t.children,a=(0,i._T)(t,["value","children"]),c="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(c,a):r.formatTimeToParts(c,a))};return t.displayName=o[e],t}function l(e){var t=function(t){var r=(0,s.Z)(),n=t.value,o=t.children,c=(0,i._T)(t,["value","children"]),u=r[e](n,c);if("function"==typeof o)return o(u);var l=r.textComponent||a.Fragment;return a.createElement(l,null,u)};return t.displayName=n[e],t}function f(e){return e}function p(e){return e}c.displayName="FormattedNumberParts",c.displayName="FormattedNumberParts",l("formatDate"),l("formatTime");var d=l("formatNumber");l("formatList"),l("formatDisplayName"),u("formatDate"),u("formatTime")},96165:(e,t,r)=>{"use strict";r.d(t,{_y:()=>a,zt:()=>i});var n=r(2363);r(13266);var o="undefined"!=typeof window?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=n.createContext(null)):n.createContext(null),i=(o.Consumer,o.Provider),a=o},12269:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(2363),o=r(96165),i=r(84114);function a(){var e=n.useContext(o._y);return(0,i.lq)(e),e}},84114:(e,t,r)=>{"use strict";r.d(t,{Z0:()=>c,dt:()=>u,lq:()=>s,wU:()=>l});var n=r(63284),o=r(2363),i=r(97061),a=r(4686);function s(e){(0,i.kG)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var c=(0,n.pi)((0,n.pi)({},a.Z0),{textComponent:o.Fragment});function u(e){return function(t){return e(o.Children.toArray(t))}}function l(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},66462:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case v:case c:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||w(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===_||e.$$typeof===m)},t.typeOf=w},80364:(e,t,r)=>{"use strict";e.exports=r(66462)},92339:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,y={};function m(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}function g(){}function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var _=b.prototype=new g;_.constructor=b,v(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,S={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!O.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:r,type:e,key:a,ref:s,props:i,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var x=/\/+/g;function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return a=a(c=e),e=""===i?"."+L(c,0):i,w(a)?(o="",null!=e&&(o=e.replace(x,"$&/")+"/"),I(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var l=i+L(s=e[u],u);c+=I(s,t,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=I(s=s.value,t,o,l=i+L(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function P(e,t,r){if(null==e)return e;var n=[],o=0;return I(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},R={transition:null},j={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,r){P(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)E.call(t,u)&&!O.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:r,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,r){return T.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,r){return T.current.useReducer(e,t,r)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return T.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return T.current.useTransition()},t.version="18.2.0"},2363:(e,t,r)=>{"use strict";e.exports=r(92339)},63284:(e,t,r)=>{"use strict";r.d(t,{ZT:()=>o,_T:()=>a,ev:()=>s,pi:()=>i});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create},30707:function(e,t){var r,n;void 0===(n="function"==typeof(r=function(){var e={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},t={"*":!0};function r(e){return encodeURI(e).replace(/%25[0-9][0-9]/g,(function(e){return"%"+e.substring(3)}))}function n(e){return e=e.replace(/%../g,""),encodeURIComponent(e)===e}function o(o){var i="";e[o.charAt(0)]&&(i=o.charAt(0),o=o.substring(1));var a="",s="",c=!0,u=!1,l=!1;"+"==i?c=!1:"."==i?(s=".",a="."):"/"==i?(s="/",a="/"):"#"==i?(s="#",c=!1):";"==i?(s=";",a=";",u=!0,l=!0):"?"==i?(s="?",a="&",u=!0):"&"==i&&(s="&",a="&",u=!0);for(var f=[],p=o.split(","),d=[],h={},v=0;v<p.length;v++){var y=p[v],m=null;if(-1!=y.indexOf(":")){var g=y.split(":");y=g[0],m=parseInt(g[1])}for(var b={};t[y.charAt(y.length-1)];)b[y.charAt(y.length-1)]=!0,y=y.substring(0,y.length-1);var _={truncate:m,name:y,suffices:b};d.push(_),h[y]=_,f.push(y)}return{varNames:f,prefix:s,substitution:function(e){for(var t="",n=0,o=0;o<d.length;o++){var i=d[o],f=e(i.name);if(null==f||Array.isArray(f)&&0==f.length||"object"==typeof f&&0==Object.keys(f).length)n++;else if(t+=o==n?s:a||",",Array.isArray(f)){u&&(t+=i.name+"=");for(var p=0;p<f.length;p++)p>0&&(t+=i.suffices["*"]&&a||",",i.suffices["*"]&&u&&(t+=i.name+"=")),t+=c?encodeURIComponent(f[p]).replace(/!/g,"%21"):r(f[p])}else if("object"==typeof f){u&&!i.suffices["*"]&&(t+=i.name+"=");var h=!0;for(var v in f)h||(t+=i.suffices["*"]&&a||","),h=!1,t+=c?encodeURIComponent(v).replace(/!/g,"%21"):r(v),t+=i.suffices["*"]?"=":",",t+=c?encodeURIComponent(f[v]).replace(/!/g,"%21"):r(f[v])}else u&&(t+=i.name,l&&""==f||(t+="=")),null!=i.truncate&&(f=f.substring(0,i.truncate)),t+=c?encodeURIComponent(f).replace(/!/g,"%21"):r(f)}return t},unSubstitution:function(e,t,r){if(s&&(e=e.substring(s.length)),1==d.length&&d[0].suffices["*"]){for(var o=(S=d[0]).name,i=S.suffices["*"]?e.split(a||","):[e],l=c&&-1!=e.indexOf("="),f=1;f<i.length;f++)e=i[f],l&&-1==e.indexOf("=")&&(i[f-1]+=(a||",")+e,i.splice(f,1),f--);for(f=0;f<i.length;f++)e=i[f],c&&-1!=e.indexOf("=")&&(l=!0),1==(g=e.split(",")).length?i[f]=g[0]:i[f]=g;if(u||l){for(var p=t[o]||{},v=0;v<i.length;v++){var y=e;if(!u||y){if("string"==typeof i[v]){var m=(e=i[v]).split("=",1)[0];if(e=e.substring(m.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}y=e}else{if(m=(e=i[v][0]).split("=",1)[0],e=e.substring(m.length+1),c){if(r&&!n(e))return;e=decodeURIComponent(e)}i[v][0]=e,y=i[v]}if(c){if(r&&!n(m))return;m=decodeURIComponent(m)}void 0!==p[m]?Array.isArray(p[m])?p[m].push(y):p[m]=[p[m],y]:p[m]=y}}1==Object.keys(p).length&&void 0!==p[o]?t[o]=p[o]:t[o]=p}else{if(c)for(v=0;v<i.length;v++){var g=i[v];if(Array.isArray(g))for(var b=0;b<g.length;b++){if(r&&!n(g[b]))return;g[b]=decodeURIComponent(g[b])}else{if(r&&!n(g))return;i[v]=decodeURIComponent(g)}}void 0!==t[o]?Array.isArray(t[o])?t[o]=t[o].concat(i):t[o]=[t[o]].concat(i):1!=i.length||S.suffices["*"]?t[o]=i:t[o]=i[0]}}else{i=1==d.length?[e]:e.split(a||",");var _={};for(f=0;f<i.length;f++){for(var w=0;w<d.length-1&&w<f&&!d[w].suffices["*"];w++);if(w!=f){for(var E=d.length-1;E>0&&d.length-E<i.length-f&&!d[E].suffices["*"];E--);d.length-E!=i.length-f?_[f]=w:_[f]=E}else _[f]=f}for(f=0;f<i.length;f++)if((e=i[f])||!u){if(g=e.split(","),l=!1,u){o=(e=g[0]).split("=",1)[0],e=e.substring(o.length+1),g[0]=e;var S=h[o]||d[0]}else o=(S=d[_[f]]).name;for(v=0;v<g.length;v++)if(c){if(r&&!n(g[v]))return;g[v]=decodeURIComponent(g[v])}(u||S.suffices["*"])&&void 0!==t[o]?Array.isArray(t[o])?t[o]=t[o].concat(g):t[o]=[t[o]].concat(g):1!=g.length||S.suffices["*"]?t[o]=g:t[o]=g[0]}}return 1}}}function i(e){if(!(this instanceof i))return new i(e);for(var t=e.split("{"),r=[t.shift()],n=[],a=[],s=[],c=[];t.length>0;){var u=t.shift(),l=u.split("}")[0],f=u.substring(l.length+1),p=o(l);a.push(p.substitution),s.push(p.unSubstitution),n.push(p.prefix),r.push(f),c=c.concat(p.varNames)}this.fill=function(e){if(e&&"function"!=typeof e){var t=e;e=function(e){return t[e]}}for(var n=r[0],o=0;o<a.length;o++)n+=(0,a[o])(e),n+=r[o+1];return n},this.fromUri=function(e,t){t=t||{};for(var o={},i=0;i<r.length;i++){var a=r[i];if(e.substring(0,a.length)!==a)return;if(e=e.substring(a.length),i>=r.length-1){if(""==e)break;return}var c=n[i];if(!c||e.substring(0,c.length)===c){for(var u=r[i+1],l=i;;){if(l==r.length-2){var f=e.substring(e.length-u.length);if(f!==u)return;var p=e.substring(0,e.length-u.length);e=f}else if(u){var d=e.indexOf(u);p=e.substring(0,d),e=e.substring(d)}else if(n[l+1])-1===(d=e.indexOf(n[l+1]))&&(d=e.length),p=e.substring(0,d),e=e.substring(d);else{if(r.length>l+2){l++,u=r[l+1];continue}p=e,e=""}break}if(!s[i](p,o,t.strict))return}}return o},this.varNames=c,this.template=e}return i.prototype={toString:function(){return this.template},fillFromObject:function(e){return this.fill(e)},test:function(e,t){return!!this.fromUri(e,t)}},i})?r.apply(t,[]):r)||(e.exports=n)},72236:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));const c=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=o[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(o)}},25357:(e,t,r)=>{var n={"./cs-CZ.json":80747,"./da-DK.json":87149,"./de-DE.json":6242,"./en-US.json":14630,"./es-ES.json":31751,"./fi-FI.json":2735,"./fr-FR.json":49182,"./hu-HU.json":36954,"./inPaint/cs-CZ.json":51108,"./inPaint/da-DK.json":61578,"./inPaint/de-DE.json":24854,"./inPaint/en-US.json":49126,"./inPaint/es-ES.json":87889,"./inPaint/fi-FI.json":37406,"./inPaint/fr-FR.json":4209,"./inPaint/hu-HU.json":96994,"./inPaint/it-IT.json":12998,"./inPaint/ja-JP.json":38013,"./inPaint/ko-KR.json":22478,"./inPaint/nb-NO.json":82849,"./inPaint/nl-NL.json":39946,"./inPaint/pl-PL.json":79794,"./inPaint/pt-BR.json":14852,"./inPaint/ru-RU.json":77711,"./inPaint/sv-SE.json":76135,"./inPaint/tr-TR.json":55251,"./inPaint/uk-UA.json":65129,"./inPaint/zh-CN.json":20706,"./inPaint/zh-Hans-CN.json":21537,"./inPaint/zh-Hant-TW.json":22508,"./inPaint/zh-TW.json":21293,"./inPaint/zz-ZZ.json":49252,"./it-IT.json":25814,"./ja-JP.json":68875,"./jugnoo/cs-CZ.json":41588,"./jugnoo/da-DK.json":39182,"./jugnoo/de-DE.json":97639,"./jugnoo/en-US.json":86076,"./jugnoo/es-ES.json":93783,"./jugnoo/fi-FI.json":63824,"./jugnoo/fr-FR.json":69731,"./jugnoo/hu-HU.json":5387,"./jugnoo/it-IT.json":9405,"./jugnoo/ja-JP.json":45181,"./jugnoo/ko-KR.json":81549,"./jugnoo/nb-NO.json":35067,"./jugnoo/nl-NL.json":93410,"./jugnoo/pl-PL.json":37234,"./jugnoo/pt-BR.json":34017,"./jugnoo/ru-RU.json":73964,"./jugnoo/sv-SE.json":79051,"./jugnoo/tr-TR.json":72415,"./jugnoo/uk-UA.json":32267,"./jugnoo/zh-Hans-CN.json":47399,"./jugnoo/zh-Hant-TW.json":31431,"./jugnoo/zz-ZZ.json":43840,"./ko-KR.json":96702,"./nb-NO.json":7861,"./nl-NL.json":19850,"./pl-PL.json":50507,"./pt-BR.json":27362,"./ru-RU.json":16174,"./sv-SE.json":5018,"./tr-TR.json":34546,"./uk-UA.json":39925,"./zh-CN.json":51573,"./zh-Hans-CN.json":56187,"./zh-Hant-TW.json":38645,"./zh-TW.json":86488,"./zz-ZZ.json":63157};function o(e){return i(e).then((e=>r.t(e,19)))}function i(e){return r.e(8397).then((()=>{if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}))}o.keys=()=>Object.keys(n),o.resolve=i,o.id=25357,e.exports=o},4743:(e,t,r)=>{"use strict";r.d(t,{Db:()=>Ed,Fz:()=>Ms,q2:()=>Fs});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,a,s={exports:{}};var c=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=function(){if(a)return i;a=1;var e=1e3,t=60*e,r=60*t,n=24*r;function o(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}return i=function(i,a){a=a||{};var s=typeof i;if("string"===s&&i.length>0)return function(o){if(!((o=String(o)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*n;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(i);if("number"===s&&isFinite(i))return a.long?function(i){var a=Math.abs(i);return a>=n?o(i,a,n,"day"):a>=r?o(i,a,r,"hour"):a>=t?o(i,a,t,"minute"):a>=e?o(i,a,e,"second"):i+" ms"}(i):function(o){var i=Math.abs(o);return i>=n?Math.round(o/n)+"d":i>=r?Math.round(o/r)+"h":i>=t?Math.round(o/t)+"m":i>=e?Math.round(o/e)+"s":o+"ms"}(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"env"in{env:{}}&&(e={}.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=c(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(s,s.exports);var u=s.exports;class l extends Error{constructor(){super("The browser you are using isn't compatible with this application, or HTTPS is not being used on a non-localhost domain."),this.name=this.constructor.name}}class f extends Error{constructor(e,t,r){super(`Could not fetch web worker from ${e}`,r),this.name=this.constructor.name,this.url=e,this.response=t}}class p extends Error{constructor(){super("Invalid input passed"),this.name=this.constructor.name}}class d extends Error{constructor(e){super("Invalid mime type found on asset"),this.name=this.constructor.name,this.mimeType=e}}class h extends Error{constructor(e,t,r){super(`Could not fetch resource from ${e}`,r),this.name=this.constructor.name,this.url=e,this.response=t}}class v extends Error{constructor(){super("At least one element must be provided to storageLocations."),this.name=this.constructor.name}}class y extends Error{constructor(e=null){super(e?`${y.baseMessage} for ${e}`:y.baseMessage),this.name=this.constructor.name,this.identifier=e}}y.baseMessage="Invalid or missing config options passed";class m extends Error{constructor(e){super(`Invalid thumbnail source MIME type. Received ${e}`),this.name=this.constructor.name,this.receivedMimeType=e}}class g extends Error{constructor(e){super("Error resizing image",e),this.name=this.constructor.name}}class b extends Error{constructor(e){super("Error signing image with C2PA",e),this.name=this.constructor.name}}class _ extends Error{constructor(e){super("Error scanning image for C2PA",e),this.name=this.constructor.name}}class w extends Error{constructor(e){super("Signing operation has been cancelled",e),this.name=this.constructor.name}}class E extends Error{constructor(e){super("An identifier must be provided when creating ingredients and generateIdentifierIfMissing is set to false.",e),this.name=this.constructor.name}}class S extends Error{constructor(e,t){super("The supplied ingredient is missing a hash value",t),this.name=this.constructor.name,this.ingredient=e}}const O=["ArrayBuffer","File","FileReader","SubtleCrypto","Uint8Array","WebAssembly","fetch"];function k(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function C(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}var x=function(e,t){return e===t||e!=e&&t!=t},L=x,I=function(e,t){for(var r=e.length;r--;)if(L(e[r][0],t))return r;return-1},P=I,A=Array.prototype.splice,T=I,R=I,j=I,N=function(){this.__data__=[],this.size=0};function D(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}D.prototype.clear=N,D.prototype.delete=function(e){var t=this.__data__,r=P(t,e);return!(r<0||(r==t.length-1?t.pop():A.call(t,r,1),--this.size,0))},D.prototype.get=function(e){var t=this.__data__,r=T(t,e);return r<0?void 0:t[r][1]},D.prototype.has=function(e){return R(this.__data__,e)>-1},D.prototype.set=function(e,t){var r=this.__data__,n=j(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var U,M,F=D,H=F,z="object"==typeof n&&n&&n.Object===Object&&n,B=z,G="object"==typeof self&&self&&self.Object===Object&&self,K=B||G||Function("return this")();function V(){if(M)return U;M=1;var e=K.Symbol;return U=e}var W,Z=V(),Y=Object.prototype,J=Y.hasOwnProperty,q=Y.toString,$=Z?Z.toStringTag:void 0,X=Object.prototype.toString,Q=V(),ee=function(e){var t=J.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var o=q.call(e);return n&&(t?e[$]=r:delete e[$]),o},te=function(e){return X.call(e)},re=Q?Q.toStringTag:void 0,ne=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":re&&re in Object(e)?ee(e):te(e)},oe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ie=ne,ae=oe,se=function(e){if(!ae(e))return!1;var t=ie(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ce=K["__core-js_shared__"],ue=(W=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",le=Function.prototype.toString,fe=function(e){if(null!=e){try{return le.call(e)}catch(e){}try{return e+""}catch(e){}}return""},pe=se,de=function(e){return!!ue&&ue in e},he=oe,ve=fe,ye=/^\[object .+?Constructor\]$/,me=Function.prototype,ge=Object.prototype,be=me.toString,_e=ge.hasOwnProperty,we=RegExp("^"+be.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!he(e)||de(e))&&(pe(e)?we:ye).test(ve(e))}(r)?r:void 0},Se=Ee(K,"Map"),Oe=Ee(Object,"create"),ke=Oe,Ce=Oe,xe=Object.prototype.hasOwnProperty,Le=Oe,Ie=Object.prototype.hasOwnProperty,Pe=Oe,Ae=function(){this.__data__=ke?ke(null):{},this.size=0},Te=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Re=function(e){var t=this.__data__;if(Ce){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return xe.call(t,e)?t[e]:void 0};function je(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}je.prototype.clear=Ae,je.prototype.delete=Te,je.prototype.get=Re,je.prototype.has=function(e){var t=this.__data__;return Le?void 0!==t[e]:Ie.call(t,e)},je.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pe&&void 0===t?"__lodash_hash_undefined__":t,this};var Ne=je,De=F,Ue=Se,Me=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map},Fe=Me,He=Me,ze=Me,Be=Me;function Ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ge.prototype.clear=function(){this.size=0,this.__data__={hash:new Ne,map:new(Ue||De),string:new Ne}},Ge.prototype.delete=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t},Ge.prototype.get=function(e){return He(this,e).get(e)},Ge.prototype.has=function(e){return ze(this,e).has(e)},Ge.prototype.set=function(e,t){var r=Be(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var Ke=Ge,Ve=F,We=Se,Ze=Ke,Ye=F,Je=function(){this.__data__=new H,this.size=0},qe=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},$e=function(e){return this.__data__.get(e)},Xe=function(e){return this.__data__.has(e)};function Qe(e){var t=this.__data__=new Ye(e);this.size=t.size}Qe.prototype.clear=Je,Qe.prototype.delete=qe,Qe.prototype.get=$e,Qe.prototype.has=Xe,Qe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ve){var n=r.__data__;if(!We||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ze(n)}return r.set(e,t),this.size=r.size,this};var et,tt=Qe,rt=Ee,nt=function(){try{var e=rt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=nt,it=ot,at=function(e,t,r){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},st=at,ct=x,ut=function(e,t,r){(void 0!==r&&!ct(e[t],r)||void 0===r&&!(t in e))&&st(e,t,r)},lt=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[et?a:++n];if(!1===t(o[s],s,o))break}return e},ft={exports:{}};!function(e,t){var r=K,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}}(ft,ft.exports);var pt=K.Uint8Array,dt=pt,ht=function(e){var t=new e.constructor(e.byteLength);return new dt(t).set(new dt(e)),t},vt=ht,yt=function(e,t){var r=t?vt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},mt=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},gt=oe,bt=Object.create,_t=function(){function e(){}return function(t){if(!gt(t))return{};if(bt)return bt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),wt=function(e,t){return function(r){return e(t(r))}},Et=wt(Object.getPrototypeOf,Object),St=Object.prototype,Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||St)},kt=_t,Ct=Et,xt=Ot,Lt=function(e){return"function"!=typeof e.constructor||xt(e)?{}:kt(Ct(e))},It=function(e){return null!=e&&"object"==typeof e},Pt=ne,At=It,Tt=function(e){return At(e)&&"[object Arguments]"==Pt(e)},Rt=It,jt=Object.prototype,Nt=jt.hasOwnProperty,Dt=jt.propertyIsEnumerable,Ut=Tt(function(){return arguments}())?Tt:function(e){return Rt(e)&&Nt.call(e,"callee")&&!Dt.call(e,"callee")},Mt=Array.isArray,Ft=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ht=se,zt=Ft,Bt=function(e){return null!=e&&zt(e.length)&&!Ht(e)},Gt=Bt,Kt=It,Vt={exports:{}},Wt=function(){return!1};!function(e,t){var r=K,n=Wt,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(Vt,Vt.exports);var Zt=ne,Yt=Et,Jt=It,qt=Function.prototype,$t=Object.prototype,Xt=qt.toString,Qt=$t.hasOwnProperty,er=Xt.call(Object),tr=function(e){if(!Jt(e)||"[object Object]"!=Zt(e))return!1;var t=Yt(e);if(null===t)return!0;var r=Qt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Xt.call(r)==er},rr=ne,nr=Ft,or=It,ir={};ir["[object Float32Array]"]=ir["[object Float64Array]"]=ir["[object Int8Array]"]=ir["[object Int16Array]"]=ir["[object Int32Array]"]=ir["[object Uint8Array]"]=ir["[object Uint8ClampedArray]"]=ir["[object Uint16Array]"]=ir["[object Uint32Array]"]=!0,ir["[object Arguments]"]=ir["[object Array]"]=ir["[object ArrayBuffer]"]=ir["[object Boolean]"]=ir["[object DataView]"]=ir["[object Date]"]=ir["[object Error]"]=ir["[object Function]"]=ir["[object Map]"]=ir["[object Number]"]=ir["[object Object]"]=ir["[object RegExp]"]=ir["[object Set]"]=ir["[object String]"]=ir["[object WeakMap]"]=!1;var ar,sr;function cr(){return sr||(sr=1,ar=function(e){return function(t){return e(t)}}),ar}var ur={exports:{}};!function(e,t){var r=z,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(ur,ur.exports);var lr,fr,pr,dr=function(e){return or(e)&&nr(e.length)&&!!ir[rr(e)]},hr=cr(),vr=ur.exports,yr=vr&&vr.isTypedArray,mr=yr?hr(yr):dr,gr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},br=at,_r=x,wr=Object.prototype.hasOwnProperty,Er=function(e,t,r){var n=e[t];wr.call(e,t)&&_r(n,r)&&(void 0!==r||t in e)||br(e,t,r)},Sr=Er,Or=at,kr=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?Or(r,s,c):Sr(r,s,c)}return r},Cr=/^(?:0|[1-9]\d*)$/,xr=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Cr.test(e))&&e>-1&&e%1==0&&e<t},Lr=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Ir=Ut,Pr=Mt,Ar=Vt.exports,Tr=xr,Rr=mr,jr=Object.prototype.hasOwnProperty,Nr=function(e,t){var r=Pr(e),n=!r&&Ir(e),o=!r&&!n&&Ar(e),i=!r&&!n&&!o&&Rr(e),a=r||n||o||i,s=a?Lr(e.length,String):[],c=s.length;for(var u in e)!t&&!jr.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Tr(u,c))||s.push(u);return s},Dr=oe,Ur=Ot,Mr=Object.prototype.hasOwnProperty,Fr=Nr,Hr=function(e){if(!Dr(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Ur(e),r=[];for(var n in e)("constructor"!=n||!t&&Mr.call(e,n))&&r.push(n);return r},zr=Bt,Br=function(e){return zr(e)?Fr(e,!0):Hr(e)},Gr=kr,Kr=Br,Vr=ut,Wr=ft.exports,Zr=yt,Yr=mt,Jr=Lt,qr=Ut,$r=Mt,Xr=function(e){return Kt(e)&&Gt(e)},Qr=Vt.exports,en=se,tn=oe,rn=tr,nn=mr,on=gr,an=tt,sn=ut,cn=lt,un=function(e,t,r,n,o,i,a){var s,c=on(e,r),u=on(t,r),l=a.get(u);if(l)Vr(e,r,l);else{var f=i?i(c,u,r+"",e,t,a):void 0,p=void 0===f;if(p){var d=$r(u),h=!d&&Qr(u),v=!d&&!h&&nn(u);f=u,d||h||v?$r(c)?f=c:Xr(c)?f=Yr(c):h?(p=!1,f=Wr(u,!0)):v?(p=!1,f=Zr(u,!0)):f=[]:rn(u)||qr(u)?(f=c,qr(c)?f=Gr(s=c,Kr(s)):tn(c)&&!en(c)||(f=Jr(u))):p=!1}p&&(a.set(u,f),o(f,u,n,i,a),a.delete(u)),Vr(e,r,f)}},ln=oe,fn=Br,pn=gr,dn=function(e){return e},hn=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},vn=hn,yn=Math.max,mn=function(e,t,r){return t=yn(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=yn(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),vn(e,this,s)}},gn=ot,bn=gn?function(e,t){return gn(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:dn,_n=bn,wn=Date.now,En=function(e){var t=0,r=0;return function(){var n=wn(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Sn=En(_n),On=dn,kn=mn,Cn=Sn,xn=function(e,t){return Cn(kn(e,t,On),e+"")},Ln=x,In=Bt,Pn=xr,An=oe,Tn=function(e,t,r){if(!An(r))return!1;var n=typeof t;return!!("number"==n?In(r)&&Pn(t,r.length):"string"==n&&t in r)&&Ln(r[t],e)},Rn=Tn,jn=function e(t,r,n,o,i){t!==r&&cn(r,(function(a,s){if(i||(i=new an),ln(a))un(t,r,s,n,e,o,i);else{var c=o?o(pn(t,s),a,s+"",t,r,i):void 0;void 0===c&&(c=a),sn(t,s,c)}}),fn)},Nn=(pr=function(e,t,r){jn(e,t,r)},xn((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=pr.length>3&&"function"==typeof o?(n--,o):void 0,i&&Rn(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&pr(e,a,r)}return e})));const Dn=u("c2pa:Validator");class Un{constructor(e,t){lr.set(this,void 0),fr.set(this,void 0),C(this,lr,e,"f"),C(this,fr,t??Un.DEFAULT_DETECTION_LENGTH,"f")}static sanitizeMimeType(e){return e.split(";")[0]}static isValidMimeType(e){return this.VALID_MIME_TYPES.includes(this.sanitizeMimeType(e))}async scanChunk(e){Dn("Scanning buffer for C2PA marker with length %d",e.byteLength);const t=await k(this,lr,"f").scanInput(e);return Dn("Scanned buffer and got result",t),t}async scanInput(e){let t=null;if(e instanceof ArrayBuffer)t=e;else if(e instanceof Blob){const r=await e.arrayBuffer();t=k(this,fr,"f")>0?r.slice(0,k(this,fr,"f")):r}if(!t)throw new p;return this.scanChunk(t)}}var Mn,Fn,Hn,zn,Bn,Gn,Kn;lr=new WeakMap,fr=new WeakMap,Un.VALID_MIME_TYPES=["image/jpeg","image/png","image/webp","image/svg+xml","video/mp4","application/x-c2pa-manifest-store"],Un.DEFAULT_DETECTION_LENGTH=65535;const Vn=u("c2pa:Downloader"),Wn=u("c2pa:Downloader:Cache");class Zn{constructor(e,t={}){Fn.set(this,void 0),Hn.set(this,void 0),zn.set(this,void 0),C(this,Fn,{...k(Zn,Mn,"f",Gn),...t},"f"),C(this,Hn,e,"f"),C(this,zn,new Un(k(this,Hn,"f"),k(this,Fn,"f").inspectSize),"f")}static async download(e,t={}){Vn("Downloading",e);try{const r=k(Zn,Mn,"f",Kn),n=Nn({},r,t),o=n.rangeStart!==r.rangeStart||n.rangeEnd!==r.rangeEnd,i=[n.rangeStart,n.rangeEnd??""].join("-"),a=o?{headers:{range:`bytes=${i}`}}:null,s=await fetch(e,Nn({},n.fetchConfig,a));if(s.ok)return s;throw new h(e,s)}catch(t){throw new h(e,null,{cause:t})}}async inspect(e){let t;Vn("Inspecting",e);let r=null;const n=k(this,Fn,"f").inspectSize>0;if(n)try{t=await Zn.download(e,{rangeEnd:k(this,Fn,"f").inspectSize}),r=t.headers.get("content-type"),206===t.status?Vn("Successfully downloaded first part of url (supports range requests)",e,t):Vn("Successfully downloaded complete url (server does not support range requests)",e,t)}catch(e){Vn("Attempting to download with a range header failed, trying again without one",e)}else Vn("inspectSize of 0 given, downloading entire file");if(!t)try{r=(await Zn.download(e,{fetchConfig:{method:"HEAD"}})).headers.get("content-type"),Vn("Performed HEAD request and got content-type",e,r)}catch(e){Vn("HEAD request to check for content-type failed, downloading entire file")}if(r&&!Un.isValidMimeType(r))throw Vn("Resource has invalid content type",r),new d(r);t||(t=await Zn.download(e));const o=await t.blob();if(!n)return Vn("Skipping inspection due to disabling the config"),o;const i=await o.arrayBuffer(),{found:a}=await k(this,zn,"f").scanChunk(i);if(!a)return Vn("No C2PA metadata found for url",e),null;if(Vn("C2PA metadata found for url",e),206===t.status&&i.byteLength===k(this,Fn,"f").inspectSize+1){Vn("Continuing download at offset %d",k(this,Fn,"f").inspectSize);const t=await Zn.download(e,{rangeStart:k(this,Fn,"f").inspectSize+1}),r=await t.arrayBuffer();return Vn("Successfully downloaded rest of file (%d bytes)",r.byteLength),new Blob([i,r],{type:o.type})}return o}static async cachedGetJson(e){if(!k(this,Mn,"f",Bn).get(e)){Wn("No cache found for %s",e);const t=await Zn.download(e,{fetchConfig:{credentials:"omit",headers:{Accept:"application/json"}}}),r=await t.json();Wn("Saving data for %s",e,r),k(this,Mn,"f",Bn).set(e,r)}return Wn("Returning cached data for %s",e),k(this,Mn,"f",Bn).get(e)}}function Yn(e){const t=[],r=[],n=async()=>{const n=(()=>{for(const e of t)if(!e.isWorking())return e;if(t.length<e.maxWorkers){const r=function(e){const t=new Worker(e,{type:"module"});let r=!1;return{execute:async e=>(t.postMessage(e),r=!0,new Promise(((e,n)=>{t.onmessage=function(t){"success"===t.data.type?e(t.data.data):n(function(e){for(var t=new Error(""),r=Object.keys(e),n=0;n<r.length;n++)t[r[n]]=e[r[n]];return t}(t.data.error)),r=!1},t.onerror=function(e){r=!1,n(e)}}))),isWorking:()=>r,terminate:()=>t.terminate()}}(e.scriptSrc);return t.push(r),r}return null})();if(!n)return;const o=r.pop();if(o)try{const e=await n.execute(o.request);o.resolve(e)}catch(e){o.reject(e)}};return{execute:(e,t)=>new Promise(((o,i)=>{const a={request:{method:e,args:t},resolve:e=>{o(e),n()},reject:e=>{i(e),n()}};r.push(a),n()})),terminate:()=>{t.forEach((e=>e.terminate()))}}}Mn=Zn,Fn=new WeakMap,Hn=new WeakMap,zn=new WeakMap,Bn={value:new Map},Gn={value:{inspectSize:0}},Kn={value:{rangeStart:0,rangeEnd:void 0,fetchConfig:{}}};const Jn=u("c2pa:workers");const qn=u("c2pa:wasm");function $n(e){const t=e.sort(((e,t)=>(e?.instance??0)-(t?.instance??0)));return{data:t,get:e=>t.filter((t=>t.label===e))}}const Xn="SHA-256";async function Qn(e,t=Xn){const r=e instanceof ArrayBuffer?e:await e.arrayBuffer(),n=await crypto.subtle.digest(t,r),o=Array.from(new Uint8Array(n));return btoa(o.map((e=>String.fromCharCode(e))).join(""))}async function eo(e,t=Xn){const r=await Qn(e,t);return`${t.toString().toLowerCase().replace("-","")}-${r}.${e.type.split("/")[1]??"bin"}`}function to(e,t){const r=t&&function(e,t){const{format:r,identifier:n}=t??{},o=e.resources?.[n];return o?new Blob([Uint8Array.from(o)],{type:r}):null}(e,t);return r?{blob:r,contentType:t.format,hash:()=>Qn(r),getUrl:()=>no(r)}:null}function ro(e,t){return{blob:e,contentType:t,hash:()=>Qn(e),getUrl:()=>no(e)}}function no(e){const t=URL.createObjectURL(e);return{url:t,dispose:()=>URL.revokeObjectURL(t)}}const oo=u("c2pa:manifestStore");function io(e){const t=function(e){const{manifests:t,active_manifest:r}=e;oo("Received manifest store from toolkit",e);const n=[{data:t[r],label:r}],o=[];for(;n.length;){const t=n.pop();o.unshift(t);const{data:r}=t;r?.ingredients?.forEach((({active_manifest:t})=>{t&&(e.manifests[t]?n.push({data:e.manifests[t],label:t}):oo("No manifest found for id",t))}))}const i=o.reduce(((e,t)=>{const{data:r,label:n}=t;oo("Creating manifest with data",r);const o=function(e,t){const r=e.ingredients.map((e=>function(e,t){return{title:e.title,format:e.format,documentId:e.document_id??null,instanceId:e.instance_id,provenance:e.provenance??null,hash:e.hash??null,relationship:e.relationship??null,validationStatus:e.validation_status??[],metadata:e.metadata??null,manifest:t??null,thumbnail:to(e.resources,e.thumbnail)}}(e,e.active_manifest?t[e.active_manifest]:void 0)));return{title:e.title,format:e.format,vendor:e.vendor??null,claimGenerator:e.claim_generator,claimGeneratorHints:e.claim_generator_hints??null,instanceId:e.instance_id,signatureInfo:e.signature_info??null,credentials:e.credentials??[],ingredients:r,redactions:e.redactions??[],parent:null,thumbnail:to(e.resources,e.thumbnail),assertions:$n(e.assertions)}}(r,e);return e[n]=o,e}),{}),a=[i[r]];for(;a.length;){const e=a.pop();e.ingredients?.forEach((({manifest:t})=>{if(t){const r=t;r.parent=e,a.push(r)}}))}return i}(e);return{manifests:t,activeManifest:t[e.active_manifest],validationStatus:e?.validation_status??[]}}var ao,so,co,uo,lo,fo,po=wt(Object.keys,Object),ho=Ot,vo=po,yo=Object.prototype.hasOwnProperty,mo=function(e){if(!ho(e))return vo(e);var t=[];for(var r in Object(e))yo.call(e,r)&&"constructor"!=r&&t.push(r);return t},go=Nr,bo=mo,_o=Bt,wo=function(e){return _o(e)?go(e):bo(e)},Eo=lt,So=wo,Oo=function(e,t){return e&&Eo(e,t,So)};function ko(){if(fo)return lo;fo=1;var e=Ke,t=so?ao:(so=1,ao=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),r=uo?co:(uo=1,co=function(e){return this.__data__.has(e)});function n(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new e;++r<n;)this.add(t[r])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,lo=n}var Co,xo;function Lo(){return xo?Co:(xo=1,Co=function(e,t){return e.has(t)})}var Io,Po,Ao=ko(),To=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Ro=Lo(),jo=function(e,t,r,n,o,i){var a=1&r,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,p=!0,d=2&r?new Ao:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],v=t[f];if(n)var y=a?n(v,h,f,t,e,i):n(h,v,f,e,t,i);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!To(t,(function(e,t){if(!Ro(d,t)&&(h===e||o(h,e,r,n,i)))return d.push(t)}))){p=!1;break}}else if(h!==v&&!o(h,v,r,n,i)){p=!1;break}}return i.delete(e),i.delete(t),p};function No(){return Po||(Po=1,Io=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}),Io}var Do,Uo,Mo=V(),Fo=pt,Ho=x,zo=jo,Bo=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Go=No(),Ko=Mo?Mo.prototype:void 0,Vo=Ko?Ko.valueOf:void 0;function Wo(){return Uo?Do:(Uo=1,Do=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e})}var Zo,Yo,Jo=Wo(),qo=Mt,$o=function(e,t,r){var n=t(e);return qo(e)?n:Jo(n,r(e))},Xo=function(){return[]},Qo=Xo,ei=Object.prototype.propertyIsEnumerable,ti=Object.getOwnPropertySymbols,ri=ti?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(ti(e),(function(t){return ei.call(e,t)})))}:Qo,ni=$o,oi=ri,ii=wo,ai=function(e){return ni(e,ii,oi)},si=ai,ci=Object.prototype.hasOwnProperty,ui=Ee(K,"DataView"),li=Ee(K,"Promise");function fi(){if(Yo)return Zo;Yo=1;var e=Ee(K,"Set");return Zo=e}var pi=Ee(K,"WeakMap"),di=ui,hi=Se,vi=li,yi=fi(),mi=pi,gi=ne,bi=fe,_i="[object Map]",wi="[object Promise]",Ei="[object Set]",Si="[object WeakMap]",Oi="[object DataView]",ki=bi(di),Ci=bi(hi),xi=bi(vi),Li=bi(yi),Ii=bi(mi),Pi=gi;(di&&Pi(new di(new ArrayBuffer(1)))!=Oi||hi&&Pi(new hi)!=_i||vi&&Pi(vi.resolve())!=wi||yi&&Pi(new yi)!=Ei||mi&&Pi(new mi)!=Si)&&(Pi=function(e){var t=gi(e),r="[object Object]"==t?e.constructor:void 0,n=r?bi(r):"";if(n)switch(n){case ki:return Oi;case Ci:return _i;case xi:return wi;case Li:return Ei;case Ii:return Si}return t});var Ai=Pi,Ti=tt,Ri=jo,ji=function(e,t,r,n,o,i,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Fo(e),new Fo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ho(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Bo;case"[object Set]":var c=1&n;if(s||(s=Go),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var l=zo(s(e),s(t),n,o,i,a);return a.delete(e),l;case"[object Symbol]":if(Vo)return Vo.call(e)==Vo.call(t)}return!1},Ni=function(e,t,r,n,o,i){var a=1&r,s=si(e),c=s.length;if(c!=si(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:ci.call(t,l)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<c;){var v=e[l=s[u]],y=t[l];if(n)var m=a?n(y,v,l,t,e,i):n(v,y,l,e,t,i);if(!(void 0===m?v===y||o(v,y,r,n,i):m)){d=!1;break}h||(h="constructor"==l)}if(d&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d},Di=Ai,Ui=Mt,Mi=Vt.exports,Fi=mr,Hi="[object Arguments]",zi="[object Array]",Bi="[object Object]",Gi=Object.prototype.hasOwnProperty,Ki=It,Vi=function e(t,r,n,o,i){return t===r||(null==t||null==r||!Ki(t)&&!Ki(r)?t!=t&&r!=r:function(e,t,r,n,o,i){var a=Ui(e),s=Ui(t),c=a?zi:Di(e),u=s?zi:Di(t),l=(c=c==Hi?Bi:c)==Bi,f=(u=u==Hi?Bi:u)==Bi,p=c==u;if(p&&Mi(e)){if(!Mi(t))return!1;a=!0,l=!1}if(p&&!l)return i||(i=new Ti),a||Fi(e)?Ri(e,t,r,n,o,i):ji(e,t,c,r,n,o,i);if(!(1&r)){var d=l&&Gi.call(e,"__wrapped__"),h=f&&Gi.call(t,"__wrapped__");if(d||h){var v=d?e.value():e,y=h?t.value():t;return i||(i=new Ti),o(v,y,r,n,i)}}return!!p&&(i||(i=new Ti),Ni(e,t,r,n,o,i))}(t,r,n,o,e,i))},Wi=tt,Zi=Vi,Yi=oe,Ji=function(e){return e==e&&!Yi(e)},qi=Ji,$i=wo,Xi=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},Qi=Xi,ea=ne,ta=It,ra=function(e){return"symbol"==typeof e||ta(e)&&"[object Symbol]"==ea(e)},na=Mt,oa=ra,ia=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aa=/^\w*$/,sa=function(e,t){if(na(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!oa(e))||aa.test(e)||!ia.test(e)||null!=t&&e in Object(t)},ca=Ke;function ua(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(ua.Cache||ca),r}ua.Cache=ca;var la,fa,pa=ua,da=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ha=/\\(\\)?/g,va=function(e){var t=pa(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(da,(function(e,r,n,o){t.push(n?o.replace(ha,"$1"):r||e)})),t}));function ya(){return fa||(fa=1,la=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}),la}var ma,ga,ba=V(),_a=ya(),wa=Mt,Ea=ra,Sa=ba?ba.prototype:void 0,Oa=Sa?Sa.toString:void 0,ka=function e(t){if("string"==typeof t)return t;if(wa(t))return _a(t,e)+"";if(Ea(t))return Oa?Oa.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Ca=function(e){return null==e?"":ka(e)},xa=Mt,La=sa,Ia=va,Pa=Ca,Aa=function(e,t){return xa(e)?e:La(e,t)?[e]:Ia(Pa(e))},Ta=ra,Ra=function(e){if("string"==typeof e||Ta(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};function ja(){if(ga)return ma;ga=1;var e=Aa,t=Ra;return ma=function(r,n){for(var o=0,i=(n=e(n,r)).length;null!=r&&o<i;)r=r[t(n[o++])];return o&&o==i?r:void 0}}var Na=ja(),Da=Aa,Ua=Ut,Ma=Mt,Fa=xr,Ha=Ft,za=Ra,Ba=function(e,t){return null!=e&&t in Object(e)},Ga=Vi,Ka=function(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=Da(t,e)).length,i=!1;++n<o;){var a=za(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Ha(o)&&Fa(a,o)&&(Ma(e)||Ua(e))}(e,t,Ba)},Va=sa,Wa=Ji,Za=Xi,Ya=Ra,Ja=ja(),qa=function(e){return function(t){return null==t?void 0:t[e]}},$a=sa,Xa=Ra,Qa=function(e){var t=function(e){for(var t=$i(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,qi(o)]}return t}(e);return 1==t.length&&t[0][2]?Qi(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,i=o,a=!n;if(null==e)return!i;for(e=Object(e);o--;){var s=r[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var c=(s=r[o])[0],u=e[c],l=s[1];if(a&&s[2]){if(void 0===u&&!(c in e))return!1}else{var f=new Wi;if(n)var p=n(u,l,c,e,t,f);if(!(void 0===p?Zi(l,u,3,n,f):p))return!1}}return!0}(r,e,t)}},es=function(e,t){return Va(e)&&Wa(t)?Za(Ya(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:Na(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?Ka(r,e):Ga(t,n,3)}},ts=dn,rs=Mt,ns=function(e){return $a(e)?qa(Xa(e)):function(e){return function(t){return Ja(t,e)}}(e)},os=function(e){return"function"==typeof e?e:null==e?ts:"object"==typeof e?rs(e)?es(e[0],e[1]):Qa(e):ns(e)},is=at,as=Oo,ss=os,cs=function(e,t){var r={};return t=ss(t),as(e,(function(e,n,o){is(r,n,t(e,n,o))})),r};const us=function(e,t="maxAge"){let r,n,o;const i=async()=>{if(void 0!==r)return;const i=async i=>{o=(()=>{const e={};return e.promise=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),e})();const a=i[1][t]-Date.now();return a<=0?(e.delete(i[0]),void o.resolve()):(r=i[0],n=setTimeout((()=>{e.delete(i[0]),o&&o.resolve()}),a),"function"==typeof n.unref&&n.unref(),o.promise)};try{for(const t of e)await i(t)}catch(e){}r=void 0},a=e.set.bind(e);return e.set=(t,s)=>{e.has(t)&&e.delete(t);const c=a(t,s);return r&&r===t&&(r=void 0,void 0!==n&&(clearTimeout(n),n=void 0),void 0!==o&&(o.reject(void 0),o=void 0)),i(),c},i(),e};class ls{constructor(e,t){if(this.maxAge=e,this[Symbol.toStringTag]="Map",this.data=new Map,us(this.data),t)for(const[e,r]of t)this.set(e,r)}get size(){return this.data.size}clear(){this.data.clear()}delete(e){return this.data.delete(e)}has(e){return this.data.has(e)}get(e){const t=this.data.get(e);if(t)return t.data}set(e,t){return this.data.set(e,{maxAge:Date.now()+this.maxAge,data:t}),this}values(){return this.createIterator((e=>e[1].data))}keys(){return this.data.keys()}entries(){return this.createIterator((e=>[e[0],e[1].data]))}forEach(e,t){for(const[r,n]of this.entries())e.apply(t,[n,r,this])}[Symbol.iterator](){return this.entries()}*createIterator(e){for(const t of this.data.entries())yield e(t)}}var fs=ls;const ps=(e,t,r,n)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const o=Object.getOwnPropertyDescriptor(e,r),i=Object.getOwnPropertyDescriptor(t,r);!ds(o,i)&&n||Object.defineProperty(e,r,i)},ds=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},hs=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},vs=(e,t)=>`/* Wrapped ${e}*/\n${t}`,ys=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ms=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),gs=(e,t,r)=>{const n=""===r?"":`with ${r.trim()}() `,o=vs.bind(null,n,t.toString());Object.defineProperty(o,"name",ms),Object.defineProperty(e,"toString",{...ys,value:o})},bs=new WeakMap;function _s(e,{cacheKey:t=(([e])=>e),cache:r=new Map}={}){const n=new Map,o=function(...o){const i=t(o);if(n.has(i))return n.get(i);const a=(async()=>{try{if(r&&await r.has(i))return await r.get(i);const t=e.apply(this,o),n=await t;try{return n}finally{r&&await r.set(i,n)}}finally{n.delete(i)}})();return n.set(i,a),a};return function(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:n}=e;for(const n of Reflect.ownKeys(t))ps(e,t,n,r);hs(e,t),gs(e,t,n)}(o,e,{ignoreNonConfigurable:!0}),bs.set(o,r),o}async function ws(e,t){const r=t.global.manifestStorage?.post,{authToken:n}=t.sign;if(!r?.host||!r.apiKey||!n)throw new y("manifest_storage");const{host:o,apiKey:i}=r,a=`${o}/manifests/v1`,s=await fetch(a,{method:"POST",headers:new Headers({"x-api-key":i,Authorization:`Bearer ${n}`}),body:e});if(!s.ok)throw new h(a,s)}const Es=u("c2pa:sign:image");const Ss=["image/jpeg","image/png","image/webp","image/svg+xml"],Os=["image/svg+xml"];async function ks(e,t,r){if(!Ss.includes(e.type))throw new m(e.type);return"OffscreenCanvas"in self&&!Os.includes(e.type)?t.exportImage(e,r):"document"in self&&!Os.includes(e.type)?async function(e,t,r=null){let n;try{n=await createImageBitmap(e);const{quality:o}=t,{width:i,height:a}=function(e,t,r){const{maxSize:n}=r;if(e>n||t>n){const r=e>=t?n/e:n/t;return{width:Math.round(e*r),height:Math.round(t*r)}}return{width:e,height:t}}(n.width,n.height,t),s=function(e,t,r=null){return r?(r.width=e,r.height=t,r):new OffscreenCanvas(e,t)}(i,a,r),c=s.getContext("2d");c.drawImage(n,0,0,i,a);const u=function(e){let t=!1;for(let r=3;r<e.data.length;r+=4)if(e.data[r]<255){t=!0;break}return Es("Alpha found?",t),t}(c.getImageData(0,0,i,a))?"image/png":"image/jpeg";if("OffscreenCanvas"in globalThis&&s instanceof OffscreenCanvas)return Es("Rendering with OffscreenCanvas"),s.convertToBlob({type:u,quality:o});if(s instanceof HTMLCanvasElement)return Es("OffscreenCanvas not found, rendering in main thread"),await new Promise(((e,t)=>s.toBlob((r=>{r?e(r):t(null)}),u,o)));throw new g({cause:new Error("Canvas type not supported")})}catch(e){throw new g({cause:e})}finally{n?.close()}}(e,r,document.createElement("canvas")):null}const Cs=u("c2pa:sign:sign"),xs={connectedAccounts:{host:"https://cai-identity.adobe.io",apiKey:"cai-ps-plugin"},claimsSigner:{host:"https://cai.adobe.io",apiKey:"cai-desktop-helper",reserveSizeCacheMs:36e5},manifestStorage:{post:{host:"https://cai-msb.adobe.io",apiKey:"cai-desktop-helper"},get:{host:"https://cai-manifests.adobe.com"}},signTimeoutMs:1e4,thumbnail:{maxSize:1024,quality:80}},Ls={authToken:"",storageLocations:["embedded"]};async function Is(e,t){const r=e.claimsSigner;if(!r?.host||!r.apiKey||!t.authToken)throw new y("claims_signer");const{host:n,apiKey:o}=r,i=`${n}/signature/box_size/v1`,a=await fetch(i,{headers:new Headers({"x-api-key":o,Authorization:`Bearer ${t.authToken}`})});if(!a.ok)throw new h(i,a);return(await a.json()).box_size}function Ps(e,t,r){const n=Nn({},xs,e),{pool:o,wasm:i}=t,a=function(e){const t=e.claimsSigner?.reserveSizeCacheMs??xs.claimsSigner.reserveSizeCacheMs;return t===1/0?_s(Is):t?_s(Is,{cache:new fs(t)}):Is}(n);r&&a(n,{authToken:r});return async(e,t,r)=>{const s=n.signTimeoutMs,c="AbortSignal"in self&&"function"==typeof AbortSignal.timeout;c||console.warn("AbortSignal.timeout() not supported, disabling timeout");return(async(e,t,r,s)=>{try{const{storageLocations:c,waitForUpload:u,onProgress:l,onResult:f,onUploadComplete:p,onUploadError:d}=Nn({},Ls,r);delete r.waitForUpload,delete r.onProgress,delete r.onResult,delete r.onUploadComplete,delete r.onUploadError;const h=()=>{if(s?.signal?.aborted)throw new w},y=e=>{h(),l?.(e)},m=e=>{h(),f?.(e)};if(!c.includes("embedded"))throw new v;const g=performance.now(),b=()=>performance.now()-g;y({value:0,stage:"initialized",elapsed:b()});const _=await a(n,r),E={global:n,sign:r,reserveSize:_},S=void 0!==r?.thumbnail?r.thumbnail:E.global.thumbnail;y({value:10,stage:"got_reserve_size",elapsed:b()});const O=S?await ks(e,o,S):null;y({value:35,stage:"created_thumbnail",elapsed:b()}),t.createLabel(c.includes("cloud")?"adobe":null),c.includes("cloud")&&(E.remoteManifestUrl=function(e,t){const r=t.global.manifestStorage?.get?.host;if(!r)throw new Error("manifest_storage_get_host");const n=new URL(r);return n.pathname="/manifests",[n.toString(),e.replaceAll(":","-")].join("/")}(t.definition.label,E)),Cs("Calling embedAndSign on worker pool",{asset:e,manifest:t,thumbnail:O,settings:E});const k=await o.embedAndSign(i,e,t.definition,t.ingredients,O,E);if(y({value:75,stage:"embed_and_sign",elapsed:b()}),m(k),c.includes("cloud")&&!1===u)return setTimeout((()=>{ws(k.signedManifest,E).then((()=>{y({value:100,stage:"complete",elapsed:b()}),p?.()})).catch((e=>{if(!d)throw e;d?.(e)}))})),k;if(c.includes("cloud"))try{await ws(k.signedManifest,E),p?.()}catch(e){throw d?.(e),e}return y({value:100,stage:"complete",elapsed:b()}),k}catch(e){throw new b({cause:e})}})(e,t,r,{signal:s&&c?AbortSignal.timeout(s):void 0})}}var As,Ts,Rs;class js{static get generator(){return"c2pa-adobe-js/0.16.1"}constructor(e,t){As.set(this,void 0),Ts.set(this,void 0),Rs.set(this,{});const r=e.claim_generator.split(/\s+/);r.push(js.generator),e.claim_generator=r.join(" "),C(this,Ts,t,"f"),C(this,As,e,"f")}createLabel(e){const t=crypto.randomUUID();"string"==typeof e&&(k(this,As,"f").label=`${e.toLowerCase()}:${t}`),k(this,As,"f").label=t}async addIngredient(e){const{ingredient:t}=e;if(!t.hash)throw new S(t);k(this,Rs,"f").hasOwnProperty(t.hash)||(k(this,Rs,"f")[t.hash]=e)}get definition(){return k(this,As,"f")}get ingredients(){return Object.values(k(this,Rs,"f"))}}async function Ns(e,t,r){const{blob:n,metadata:o}=await async function(e,t,r){if(t instanceof Blob)return{blob:t,metadata:{...r,filename:t instanceof File?t.name:void 0}};{const n="string"==typeof t?t:t.src,o=await e.inspect(n);let i=n;try{const{pathname:e}=new URL(n);i=e}catch(e){}const a=i.split("/").pop()??"";return{blob:o,metadata:{...r,filename:a}}}}(e,t,r??{});if(!n)return{thumbnail:(i=t,{contentType:void 0,getUrl:()=>({url:i,dispose:()=>{}})}),metadata:{...o,...r},type:"",blob:null,arrayBuffer:async()=>new ArrayBuffer(0)};var i;if(!Un.isValidMimeType(n.type))throw new d(n.type);return{thumbnail:ro(n,n.type),metadata:{...o,...r},type:n.type,blob:n,arrayBuffer:()=>n.arrayBuffer()}}As=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,js.requiredFields=["claim_generator","format"];const Ds=u("c2pa"),Us=u("c2pa:task");async function Ms(e){let t=0;Ds("Creating c2pa with config",e),function(){if(!O.every((e=>e in self)))throw new l}();const r=await async function(e){if("undefined"==typeof Worker)return async function(e){console.debug("Using local execution environment from",e);const{worker:t}=await import(e);return{...t,dispose:()=>{}}}(e.fallbackScriptSrc??e.scriptSrc);const t=await fetch(e.scriptSrc);if(!t.ok)throw new f(e.scriptSrc,t);const r=await t.text();Jn("Fetched worker from %s (%d bytes)",e.scriptSrc,r.length);const n=new Blob([r],{type:"application/javascript"}),o=URL.createObjectURL(n),i=Yn({...e,scriptSrc:o});return{compileWasm:async(...e)=>i.execute("compileWasm",e),embedAndSign:async(...e)=>i.execute("embedAndSign",e),exportImage:async(...e)=>i.execute("exportImage",e),getReport:async(...e)=>i.execute("getReport",e),getReportFromAssetAndManifestBuffer:async(...e)=>i.execute("getReportFromAssetAndManifestBuffer",e),scanInput:async(...e)=>i.execute("scanInput",e),scanInputUrl:async(...e)=>i.execute("scanInputUrl",e),createIngredientFromArrayBuffer:async(...e)=>i.execute("createIngredientFromArrayBuffer",e),createIngredientFromFile:async(...e)=>i.execute("createIngredientFromFile",e),dispose:()=>(URL.revokeObjectURL(o),i.terminate())}}({scriptSrc:e.workerSrc,fallbackScriptSrc:e.fallbackWorkerSrc,maxWorkers:navigator.hardwareConcurrency||4}),n=new Zn(r,e.downloaderOptions),o=e.wasmSrc instanceof WebAssembly.Module?e.wasmSrc:await async function(e,t){const r="sha512-P8AmOb+mcmu3ODx6plgzQhxvdJ4R5EQYzpkpMenym4w2u7ClDoxzGCrO2r6hR5UTQvG4jcJd2s2nvf2Elovj8w==";qn("Fetching WASM binary from url %s",t,{expectedIntegrity:r});const n=await fetch(t,{integrity:r}),o=await n.arrayBuffer();qn("Sending WASM binary buffer to worker for compilation",{size:o.byteLength});const i=await e.compileWasm(o);return qn("Compilation finished"),i}(r,e.wasmSrc),i=async i=>{const a=++t;Us("[%s] Reading from input",a,i);const s=await Ns(n,i);if(Us("[%s] Processing input",a,i),!s.blob)return{manifestStore:null,source:s};const c=await s.arrayBuffer();try{const e=await r.getReport(o,c,s.type);return Us("[%s] Received worker result",a,e),{manifestStore:io(e),source:s}}catch(t){return{manifestStore:await Hs(s,t,r,o,e.fetchRemoteManifests),source:s}}},a=Ps(e,{pool:r,wasm:o}),s=function(e,t){const r=Nn({},xs,e);return e=>new js(e,{dependencies:t,globalConfig:r})}(e,{pool:r,wasm:o}),c=function(e,t){const r=Nn({},xs,e),{pool:n,wasm:o}=t;return{async createIngredient({input:e,title:t,thumbnail:i,identifier:a,generateIdentifierIfMissing:s=!0}){let c;if(e instanceof File){if(c=await n.createIngredientFromFile(o,e),!a&&!c.hash&&!s)throw new E;c.hash=a??c.hash??crypto.randomUUID()}else{const t=await e.arrayBuffer();if(c=await n.createIngredientFromArrayBuffer(o,t,e.type),!a&&!c.hash&&!s)throw new E;c.hash=a??c.hash??await eo(e)}const u=cs(c.resources.resources??{},(e=>Uint8Array.from(e).buffer));if(c.resources={},c.title=t,!c.thumbnail){const t=e.type.startsWith("image/"),o=i||(r.thumbnail&&!1!==i&&t?await ks(e,n,r.thumbnail):null);if(o){const e=await async function(e,t,r=Xn){const n=e.type.split("/")[1]??"bin",o=t?`${t.replace(/[^a-z0-9\-]+/gi,"-")}.${n}`:await eo(e,r);return{format:e.type,identifier:o}}(o,c.instance_id);c.thumbnail=e,u[e.identifier]=await o.arrayBuffer()}}return{ingredient:c,resources:u}}}}(e,{pool:r,wasm:o});return{_pool:r,read:i,readAll:async e=>Promise.all(e.map((e=>i(e)))),readAndValidateManifestData:async(t,i)=>{const a=await Ns(n,i),s=await a.arrayBuffer();try{return{manifestStore:io(await r.getReportFromAssetAndManifestBuffer(o,t,s,a.type)),source:a}}catch(t){return{manifestStore:await Hs(a,t,r,o,e.fetchRemoteManifests),source:a}}},scan:async e=>{const t=await Ns(n,e),o=await t.arrayBuffer();try{return await r.scanInput(o)}catch(e){throw new _({cause:e})}},scanUrl:async e=>{try{return await r.scanInputUrl(e)}catch(e){throw new _({cause:e})}},sign:a,createManifest:s,createIngredient:c.createIngredient,dispose:()=>r.dispose()}}function Fs(e){const t=new URL("https://verify.contentauthenticity.org/inspect");return t.searchParams.set("source",e),t.toString()}function Hs(e,t,r,n,o=!0){switch(t.name){case"Toolkit(RemoteManifestUrl)":if(o&&t.url)return async function(e,t,r,n){try{const o=new URL(t);Ds("Fetching remote manifest from",o);const i=await fetch(o.toString()),a=await i.blob(),s=await a.arrayBuffer(),c=await e.arrayBuffer();return io(await r.getReportFromAssetAndManifestBuffer(n,s,c,e.type))}catch(e){if(e instanceof TypeError)return Ds("Invalid URL given, skipping remote manifest loading",t),null;throw Ds("Error loading remote manifest from",t,e),e}}(e,t.url,r,n);break;case"C2pa(ProvenanceMissing)":case"C2pa(JumbfNotFound)":Ds("No provenance data found");break;default:throw t}return null}const zs="assertion.dataHash.mismatch";function Bs(e=[]){return e.some((e=>e.code===zs))}var Gs={exports:{}},Ks=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Vs=Bt,Ws=function(e,t){return function(r,n){if(null==r)return r;if(!Vs(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(Oo),Zs=dn,Ys=Ks,Js=Ws,qs=Mt,$s=function(e,t){return(qs(e)?Ys:Js)(e,"function"==typeof(r=t)?r:Zs);var r};!function(e){e.exports=$s}(Gs);var Xs,Qs,ec=o(Gs.exports),tc={};function rc(){return Qs?Xs:(Qs=1,Xs={})}!function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var o in r){var i=r[o];t.call(n,i)?n[i].push(o):n[i]=[o]}return n}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}}(tc);var nc=tc,oc=rc(),ic=Array.prototype.push;function ac(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function sc(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function cc(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var o=n[0]=t.apply(void 0,n);return e.apply(void 0,n),o}}}var uc,lc;function fc(){if(lc)return uc;lc=1;var e=pi&&new pi;return uc=e}var pc,dc,hc,vc,yc,mc,gc,bc,_c,wc,Ec,Sc,Oc,kc,Cc,xc,Lc,Ic,Pc,Ac,Tc=dn,Rc=fc(),jc=Rc?function(e,t){return Rc.set(e,t),e}:Tc,Nc=jc,Dc=_t,Uc=oe,Mc=function(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 r=Dc(e.prototype),n=e.apply(r,t);return Uc(n)?n:r}},Fc=Mc,Hc=K,zc=Math.max,Bc=function(e,t,r,n){for(var o=-1,i=e.length,a=r.length,s=-1,c=t.length,u=zc(i-a,0),l=Array(c+u),f=!n;++s<c;)l[s]=t[s];for(;++o<a;)(f||o<i)&&(l[r[o]]=e[o]);for(;u--;)l[s++]=e[o++];return l},Gc=Math.max,Kc=function(e,t,r,n){for(var o=-1,i=e.length,a=-1,s=r.length,c=-1,u=t.length,l=Gc(i-s,0),f=Array(l+u),p=!n;++o<l;)f[o]=e[o];for(var d=o;++c<u;)f[d+c]=t[c];for(;++a<s;)(p||o<i)&&(f[d+r[a]]=e[o++]);return f};function Vc(){return dc?pc:(dc=1,pc=function(){})}function Wc(){if(vc)return hc;vc=1;var e=_t,t=Vc();function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}return r.prototype=e(t.prototype),r.prototype.constructor=r,hc=r}function Zc(){return mc?yc:(mc=1,yc=function(){})}function Yc(){if(bc)return gc;bc=1;var e=fc(),t=Zc(),r=e?function(t){return e.get(t)}:t;return gc=r}function Jc(){if(Sc)return Ec;Sc=1;var e=wc?_c:(wc=1,_c={}),t=Object.prototype.hasOwnProperty;return Ec=function(r){for(var n=r.name+"",o=e[n],i=t.call(e,n)?o.length:0;i--;){var a=o[i],s=a.func;if(null==s||s==r)return a.name}return n},Ec}function qc(){if(kc)return Oc;kc=1;var e=_t,t=Vc();function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}return r.prototype=e(t.prototype),r.prototype.constructor=r,Oc=r}function $c(){if(Ac)return Pc;Ac=1;var e=Wc(),t=Yc(),r=Jc(),n=function(){if(Ic)return Lc;Ic=1;var e=Wc(),t=qc(),r=Vc(),n=Mt,o=It,i=function(){if(xc)return Cc;xc=1;var e=Wc(),t=qc(),r=mt;return Cc=function(n){if(n instanceof e)return n.clone();var o=new t(n.__wrapped__,n.__chain__);return o.__actions__=r(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}}(),a=Object.prototype.hasOwnProperty;function s(r){if(o(r)&&!n(r)&&!(r instanceof e)){if(r instanceof t)return r;if(a.call(r,"__wrapped__"))return i(r)}return new t(r)}return s.prototype=r.prototype,s.prototype.constructor=s,Lc=s}();return Pc=function(o){var i=r(o),a=n[i];if("function"!=typeof a||!(i in e.prototype))return!1;if(o===a)return!0;var s=t(a);return!!s&&o===s[0]},Pc}var Xc,Qc,eu,tu,ru,nu,ou,iu,au,su,cu=En(Nc),uu=/\{\n\/\* \[wrapped with (.+)\] \*/,lu=/,? & /,fu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function pu(){if(su)return au;su=1;var e=function(){if(iu)return ou;iu=1;var e=Qc?Xc:(Qc=1,Xc=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}),t=tu?eu:(tu=1,eu=function(e){return e!=e}),r=nu?ru:(nu=1,ru=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1});return ou=function(n,o,i){return o==o?r(n,o,i):e(n,t,i)}}();return au=function(t,r){return!(null==t||!t.length)&&e(t,r,0)>-1}}var du=Ks,hu=pu(),vu=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],yu=function(e){var t=e.match(uu);return t?t[1].split(lu):[]},mu=function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(fu,"{\n/* [wrapped with "+t+"] */\n")},gu=Sn,bu=function(e,t,r){var n=t+"";return gu(e,mu(n,function(e,t){return du(vu,(function(r){var n="_."+r[0];t&r[1]&&!hu(e,n)&&e.push(n)})),e.sort()}(yu(n),r)))},_u=$c(),wu=cu,Eu=bu,Su=function(e,t,r,n,o,i,a,s,c,u){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,s,c,u],p=r.apply(void 0,f);return _u(e)&&wu(p,f),p.placeholder=n,Eu(p,e,t)},Ou=function(e){return e.placeholder},ku=mt,Cu=xr,xu=Math.min,Lu="__lodash_placeholder__",Iu=function(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==Lu||(e[r]=Lu,i[o++]=r)}return i},Pu=Bc,Au=Kc,Tu=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n},Ru=Mc,ju=Su,Nu=Ou,Du=Iu,Uu=K,Mu=function e(t,r,n,o,i,a,s,c,u,l){var f=128&r,p=1&r,d=2&r,h=24&r,v=512&r,y=d?void 0:Ru(t);return function m(){for(var g=arguments.length,b=Array(g),_=g;_--;)b[_]=arguments[_];if(h)var w=Nu(m),E=Tu(b,w);if(o&&(b=Pu(b,o,i,h)),a&&(b=Au(b,a,s,h)),g-=E,h&&g<l){var S=Du(b,w);return ju(t,r,e,m.placeholder,n,b,S,c,u,l-g)}var O=p?n:this,k=d?O[t]:t;return g=b.length,c?b=function(e,t){for(var r=e.length,n=xu(t.length,r),o=ku(e);n--;){var i=t[n];e[n]=Cu(i,r)?o[i]:void 0}return e}(b,c):v&&g>1&&b.reverse(),f&&u<g&&(b.length=u),this&&this!==Uu&&this instanceof m&&(k=y||Ru(k)),k.apply(O,b)}},Fu=hn,Hu=Mc,zu=Mu,Bu=Su,Gu=Ou,Ku=Iu,Vu=K,Wu=hn,Zu=Mc,Yu=K,Ju=Bc,qu=Kc,$u=Iu,Xu="__lodash_placeholder__",Qu=Math.min,el=/\s/,tl=/^\s+/,rl=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&el.test(e.charAt(t)););return t}(e)+1).replace(tl,""):e},nl=oe,ol=ra,il=/^[-+]0x[0-9a-f]+$/i,al=/^0b[01]+$/i,sl=/^0o[0-7]+$/i,cl=parseInt,ul=function(e){return e?Infinity===(e=function(e){if("number"==typeof e)return e;if(ol(e))return NaN;if(nl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=rl(e);var r=al.test(e);return r||sl.test(e)?cl(e.slice(2),r?2:8):il.test(e)?NaN:+e}(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},ll=function(e){var t=ul(e),r=t%1;return t==t?r?t-r:t:0},fl=Nc,pl=function(e,t,r){var n=1&t,o=Fc(e);return function t(){return(this&&this!==Hc&&this instanceof t?o:e).apply(n?r:this,arguments)}},dl=function(e,t,r){var n=Hu(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,c=Gu(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==c&&a[i-1]!==c?[]:Ku(a,c);return(i-=u.length)<r?Bu(e,t,zu,o.placeholder,void 0,a,u,void 0,void 0,r-i):Fu(this&&this!==Vu&&this instanceof o?n:e,this,a)}},hl=Mu,vl=function(e,t,r,n){var o=1&t,i=Zu(e);return function t(){for(var a=-1,s=arguments.length,c=-1,u=n.length,l=Array(u+s),f=this&&this!==Yu&&this instanceof t?i:e;++c<u;)l[c]=n[c];for(;s--;)l[c++]=arguments[++a];return Wu(f,o?r:this,l)}},yl=Yc(),ml=function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,a=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!a)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?Ju(c,s,t[4]):s,e[4]=c?$u(e[3],Xu):t[4]}return(s=t[5])&&(c=e[5],e[5]=c?qu(c,s,t[6]):s,e[6]=c?$u(e[5],Xu):t[6]),(s=t[7])&&(e[7]=s),128&n&&(e[8]=null==e[8]?t[8]:Qu(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e},gl=cu,bl=bu,_l=ll,wl=Math.max,El=function(e,t,r,n,o,i,a,s){var c=2&t;if(!c&&"function"!=typeof e)throw new TypeError("Expected a function");var u=n?n.length:0;if(u||(t&=-97,n=o=void 0),a=void 0===a?a:wl(_l(a),0),s=void 0===s?s:_l(s),u-=o?o.length:0,64&t){var l=n,f=o;n=o=void 0}var p=c?void 0:yl(e),d=[e,t,r,n,o,l,f,i,a,s];if(p&&ml(d,p),e=d[0],t=d[1],r=d[2],n=d[3],o=d[4],!(s=d[9]=void 0===d[9]?c?0:e.length:wl(d[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?dl(e,t,s):32!=t&&33!=t||o.length?hl.apply(void 0,d):vl(e,t,r,n);else var h=pl(e,t,r);return bl((p?fl:gl)(h,d),e,t)},Sl=El,Ol=kr,kl=wo,Cl=function(e,t){return e&&Ol(t,kl(t),e)},xl=kr,Ll=Br,Il=kr,Pl=ri,Al=Wo(),Tl=Et,Rl=ri,jl=Xo,Nl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Al(t,Rl(e)),e=Tl(e);return t}:jl,Dl=kr,Ul=Nl,Ml=$o,Fl=Nl,Hl=Br,zl=Object.prototype.hasOwnProperty,Bl=ht,Gl=/\w*$/,Kl=V(),Vl=Kl?Kl.prototype:void 0,Wl=Vl?Vl.valueOf:void 0,Zl=ht,Yl=function(e,t){var r=t?Bl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},Jl=function(e){var t=new e.constructor(e.source,Gl.exec(e));return t.lastIndex=e.lastIndex,t},ql=yt,$l=Ai,Xl=It,Ql=cr(),ef=ur.exports,tf=ef&&ef.isMap,rf=tf?Ql(tf):function(e){return Xl(e)&&"[object Map]"==$l(e)},nf=Ai,of=It,af=cr(),sf=ur.exports,cf=sf&&sf.isSet,uf=cf?af(cf):function(e){return of(e)&&"[object Set]"==nf(e)},lf=tt,ff=Ks,pf=Er,df=Cl,hf=function(e,t){return e&&xl(t,Ll(t),e)},vf=ft.exports,yf=mt,mf=function(e,t){return Il(e,Pl(e),t)},gf=function(e,t){return Dl(e,Ul(e),t)},bf=ai,_f=function(e){return Ml(e,Hl,Fl)},wf=Ai,Ef=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&zl.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Sf=function(e,t,r){var n,o=e.constructor;switch(t){case"[object ArrayBuffer]":return Zl(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return Yl(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ql(e,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Jl(e);case"[object Symbol]":return n=e,Wl?Object(Wl.call(n)):{}}},Of=Lt,kf=Mt,Cf=Vt.exports,xf=rf,Lf=oe,If=uf,Pf=wo,Af=Br,Tf="[object Arguments]",Rf="[object Function]",jf="[object Object]",Nf={};Nf[Tf]=Nf["[object Array]"]=Nf["[object ArrayBuffer]"]=Nf["[object DataView]"]=Nf["[object Boolean]"]=Nf["[object Date]"]=Nf["[object Float32Array]"]=Nf["[object Float64Array]"]=Nf["[object Int8Array]"]=Nf["[object Int16Array]"]=Nf["[object Int32Array]"]=Nf["[object Map]"]=Nf["[object Number]"]=Nf[jf]=Nf["[object RegExp]"]=Nf["[object Set]"]=Nf["[object String]"]=Nf["[object Symbol]"]=Nf["[object Uint8Array]"]=Nf["[object Uint8ClampedArray]"]=Nf["[object Uint16Array]"]=Nf["[object Uint32Array]"]=!0,Nf["[object Error]"]=Nf[Rf]=Nf["[object WeakMap]"]=!1;var Df=function e(t,r,n,o,i,a){var s,c=1&r,u=2&r,l=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!Lf(t))return t;var f=kf(t);if(f){if(s=Ef(t),!c)return yf(t,s)}else{var p=wf(t),d=p==Rf||"[object GeneratorFunction]"==p;if(Cf(t))return vf(t,c);if(p==jf||p==Tf||d&&!i){if(s=u||d?{}:Of(t),!c)return u?gf(t,hf(s,t)):mf(t,df(s,t))}else{if(!Nf[p])return i?t:{};s=Sf(t,p,c)}}a||(a=new lf);var h=a.get(t);if(h)return h;a.set(t,s),If(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,a))})):xf(t)&&t.forEach((function(o,i){s.set(i,e(o,r,n,i,t,a))}));var v=f?void 0:(l?u?_f:bf:u?Af:Pf)(t);return ff(v||t,(function(o,i){v&&(o=t[i=o]),pf(s,i,e(o,r,n,i,t,a))})),s},Uf=Df,Mf=El;function Ff(e,t,r){var n=Mf(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=Ff.placeholder,n}Ff.placeholder={};var Hf,zf,Bf,Gf,Kf,Vf,Wf,Zf,Yf=Ff,Jf=ne,qf=It,$f=tr,Xf=Ai,Qf=It,ep=Df,tp=os;function rp(){if(Gf)return Bf;Gf=1;var e=Wo(),t=function(){if(zf)return Hf;zf=1;var e=V(),t=Ut,r=Mt,n=e?e.isConcatSpreadable:void 0;return Hf=function(e){return r(e)||t(e)||!!(n&&e&&e[n])}}();return Bf=function r(n,o,i,a,s){var c=-1,u=n.length;for(i||(i=t),s||(s=[]);++c<u;){var l=n[c];o>0&&i(l)?o>1?r(l,o-1,i,a,s):e(s,l):a||(s[s.length]=l)}return s}}function np(){if(Zf)return Wf;Zf=1;var e=function(){if(Vf)return Kf;Vf=1;var e=rp();return Kf=function(t){return null!=t&&t.length?e(t,1):[]}}(),t=mn,r=Sn;return Wf=function(n){return r(t(n,void 0,e),n+"")},Wf}var op,ip,ap,sp,cp=El,up=np()((function(e,t){return cp(e,256,void 0,void 0,void 0,t)})),lp=up,fp=ya(),pp=mt,dp=Mt,hp=ra,vp=va,yp=Ra,mp=Ca,gp=function e(t,r,n,o){var i="function"==typeof r,a=r===Object(r);if(a&&(o=n,n=r,r=void 0),null==n)throw new TypeError;o||(o={});var s={cap:!("cap"in o)||o.cap,curry:!("curry"in o)||o.curry,fixed:!("fixed"in o)||o.fixed,immutable:!("immutable"in o)||o.immutable,rearg:!("rearg"in o)||o.rearg},c=i?n:oc,u="curry"in o&&o.curry,l="fixed"in o&&o.fixed,f="rearg"in o&&o.rearg,p=i?n.runInContext():void 0,d=i?n:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},h=d.ary,v=d.assign,y=d.clone,m=d.curry,g=d.forEach,b=d.isArray,_=d.isError,w=d.isFunction,E=d.isWeakMap,S=d.keys,O=d.rearg,k=d.toInteger,C=d.toPath,x=S(nc.aryMethod),L={castArray:function(e){return function(){var t=arguments[0];return b(t)?e(sc(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return s.cap&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:ac(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!w(r))return e(r,Object(t));var n=[];return g(S(t),(function(e){w(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),g(n,(function(e){var t=e[1];w(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:k(t)+1;return m(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return m(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),o)}}};function I(e,t,r){if(s.fixed&&(l||!nc.skipFixed[e])){var n=nc.methodSpread[e],o=n&&n.start;return void 0===o?h(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var i=o[t],a=o.slice(0,t);return i&&ic.apply(a,i),t!=n&&ic.apply(a,o.slice(t+1)),e.apply(this,a)}}(t,o)}return t}function P(e,t,r){return s.rearg&&r>1&&(f||!nc.skipRearg[e])?O(t,nc.methodRearg[e]||nc.aryRearg[r]):t}function A(e,t){for(var r=-1,n=(t=C(t)).length,o=n-1,i=y(Object(e)),a=i;null!=a&&++r<n;){var s=t[r],c=a[s];null==c||w(c)||_(c)||E(c)||(a[s]=y(r==o?c:Object(c))),a=a[s]}return i}function T(t,r){var n=nc.aliasToReal[t]||t,a=nc.remap[n]||n,s=o;return function(t){var o=i?p:d,c=i?p[a]:r,u=v(v({},s),t);return e(o,n,c,u)}}function R(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var o=s.rearg?0:r-1;return n[o]=t(n[o]),e.apply(void 0,n)}}function j(e,t,r){var n,o=nc.aliasToReal[e]||e,a=t,c=L[o];return c?a=c(t):s.immutable&&(nc.mutate.array[o]?a=cc(t,sc):nc.mutate.object[o]?a=cc(t,function(e){return function(t){return e({},t)}}(t)):nc.mutate.set[o]&&(a=cc(t,A))),g(x,(function(e){return g(nc.aryMethod[e],(function(t){if(o==t){var r=nc.methodSpread[o],c=r&&r.afterRearg;return n=c?I(o,P(o,a,e),e):P(o,I(o,a,e),e),n=function(e,t,r){return u||s.curry&&r>1?m(t,r):t}(0,n=function(e,t){if(s.cap){var r=nc.iterateeRearg[e];if(r)return function(e,t){return R(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(O(ac(e,r),t),r)}))}(t,r);var n=!i&&nc.iterateeAry[e];if(n)return function(e,t){return R(e,(function(e){return"function"==typeof e?ac(e,t):e}))}(t,n)}return t}(o,n),e),!1}})),!n})),n||(n=a),n==t&&(n=u?m(n,1):function(){return t.apply(this,arguments)}),n.convert=T(o,t),n.placeholder=t.placeholder=r,n}if(!a)return j(r,n,c);var N=n,D=[];return g(x,(function(e){g(nc.aryMethod[e],(function(e){var t=N[nc.remap[e]||e];t&&D.push([e,j(e,t,N)])}))})),g(S(N),(function(e){var t=N[e];if("function"==typeof t){for(var r=D.length;r--;)if(D[r][0]==e)return;t.convert=T(e,t),D.push([e,t])}})),g(D,(function(e){N[e[0]]=e[1]})),N.convert=function(e){return N.runInContext.convert(e)(void 0)},N.placeholder=N,g(S(N),(function(e){g(nc.realToAlias[e]||[],(function(t){N[t]=N[e]}))})),N},bp={ary:function(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,Sl(e,128,void 0,void 0,void 0,void 0,t)},assign:Cl,clone:function(e){return Uf(e,4)},curry:Yf,forEach:Ks,isArray:Mt,isError:function(e){if(!qf(e))return!1;var t=Jf(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!$f(e)},isFunction:se,isWeakMap:function(e){return Qf(e)&&"[object WeakMap]"==Xf(e)},iteratee:function(e){return tp("function"==typeof e?e:ep(e,1))},keys:mo,rearg:lp,toInteger:ll,toPath:function(e){return dp(e)?fp(e,yp):hp(e)?[e]:pp(vp(mp(e)))}},_p=function(e,t,r){return gp(bp,e,t,r)},wp=_p("compact",ip?op:(ip=1,op=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o}),sp?ap:(sp=1,ap={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1}));wp.placeholder=rc();var Ep,Sp,Op,kp,Cp=wp,xp=_p("flow",function(){if(kp)return Op;kp=1;var e=function(){if(Sp)return Ep;Sp=1;var e=qc(),t=np(),r=Yc(),n=Jc(),o=Mt,i=$c();return Ep=function(a){return t((function(t){var s=t.length,c=s,u=e.prototype.thru;for(a&&t.reverse();c--;){var l=t[c];if("function"!=typeof l)throw new TypeError("Expected a function");if(u&&!f&&"wrapper"==n(l))var f=new e([],!0)}for(c=f?c:s;++c<s;){l=t[c];var p=n(l),d="wrapper"==p?r(l):void 0;f=d&&i(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?f[n(d[0])].apply(f,d[3]):1==l.length&&i(l)?f[p]():f.thru(l)}return function(){var e=arguments,r=e[0];if(f&&1==e.length&&o(r))return f.plant(r).value();for(var n=0,i=s?t[n].apply(this,e):r;++n<s;)i=t[n].call(this,i);return i}}))},Ep}(),t=e();return Op=t}());xp.placeholder=rc();var Lp,Ip,Pp,Ap,Tp,Rp,jp,Np,Dp,Up,Mp,Fp,Hp=xp;function zp(){if(Up)return Dp;Up=1;var e=ya(),t=ja(),r=os,n=function(){if(Ip)return Lp;Ip=1;var e=Ws,t=Bt;return Lp=function(r,n){var o=-1,i=t(r)?Array(r.length):[];return e(r,(function(e,t,r){i[++o]=n(e,t,r)})),i}}(),o=Ap?Pp:(Ap=1,Pp=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}),i=cr(),a=function(){if(Np)return jp;Np=1;var e=function(){if(Rp)return Tp;Rp=1;var e=ra;return Tp=function(t,r){if(t!==r){var n=void 0!==t,o=null===t,i=t==t,a=e(t),s=void 0!==r,c=null===r,u=r==r,l=e(r);if(!c&&!l&&!a&&t>r||a&&s&&u&&!c&&!l||o&&s&&u||!n&&u||!i)return 1;if(!o&&!a&&!l&&t<r||l&&n&&i&&!o&&!a||c&&n&&i||!s&&i||!u)return-1}return 0}}();return jp=function(t,r,n){for(var o=-1,i=t.criteria,a=r.criteria,s=i.length,c=n.length;++o<s;){var u=e(i[o],a[o]);if(u)return o>=c?u:u*("desc"==n[o]?-1:1)}return t.index-r.index}}(),s=dn,c=Mt;return Dp=function(u,l,f){l=l.length?e(l,(function(e){return c(e)?function(r){return t(r,1===e.length?e[0]:e)}:e})):[s];var p=-1;l=e(l,i(r));var d=n(u,(function(t,r,n){return{criteria:e(l,(function(e){return e(t)})),index:++p,value:t}}));return o(d,(function(e,t){return a(e,t,f)}))}}var Bp=_p("sortBy",function(){if(Fp)return Mp;Fp=1;var e=rp(),t=zp(),r=Tn,n=xn((function(n,o){if(null==n)return[];var i=o.length;return i>1&&r(n,o[0],o[1])?o=[]:i>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(n,e(o,1),[])}));return Mp=n}());Bp.placeholder=rc();var Gp,Kp,Vp,Wp,Zp,Yp,Jp,qp,$p=Bp;var Xp=_p("uniqBy",function(){if(qp)return Jp;qp=1;var e=os,t=function(){if(Yp)return Zp;Yp=1;var e=ko(),t=pu(),r=Kp?Gp:(Kp=1,Gp=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}),n=Lo(),o=function(){if(Wp)return Vp;Wp=1;var e=fi(),t=Zc(),r=No(),n=e&&1/r(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return Vp=n}(),i=No();return Zp=function(a,s,c){var u=-1,l=t,f=a.length,p=!0,d=[],h=d;if(c)p=!1,l=r;else if(f>=200){var v=s?null:o(a);if(v)return i(v);p=!1,l=n,h=new e}else h=s?[]:d;e:for(;++u<f;){var y=a[u],m=s?s(y):y;if(y=c||0!==y?y:0,p&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue e;s&&h.push(m),d.push(y)}else l(h,m,c)||(h!==d&&h.push(m),d.push(y))}return d}}();return Jp=function(r,n){return r&&r.length?t(r,e(n)):[]}}());Xp.placeholder=rc();var Qp=Xp,ed=at,td=Oo,rd=os,nd=Er,od=Aa,id=xr,ad=oe,sd=Ra,cd=function(e,t,r){return null==e?e:function(e,t,r,n){if(!ad(e))return e;for(var o=-1,i=(t=od(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var c=sd(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var l=s[c];void 0===(u=n?n(l,c,s):void 0)&&(u=ad(l)?l:id(t[o+1])?[]:{})}nd(s,c,u),s=s[c]}return e}(e,t,r)},ud=Object.freeze({__proto__:null,cs_CZ:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Byly upraveny vlastnosti, jako je tón, sytost, křivky, stíny nebo světla",label:"Úpravy barev nebo expozice"},"c2pa.created":{description:"Byl vytvořen nový soubor nebo obsah",label:"Vytvořeno"},"c2pa.cropped":{description:"Byly použity nástroje pro oříznutí, zmenšení nebo rozšíření viditelné oblasti obsahu",label:"Úpravy oříznutí"},"c2pa.drawing":{description:"Byly použity nástroje, jako jsou tužky, štětce, gumy nebo nástroje tvar, cesta nebo pero",label:"Úpravy kresby"},"c2pa.edited":{description:"Byly provedeny další změny",label:"Další úpravy"},"c2pa.filtered":{description:"Byly použity nástroje, jako jsou filtry, styly nebo efekty, ke změně vzhledu",label:"Úpravy filtrů nebo stylů"},"c2pa.opened":{description:"Byl otevřen existující soubor",label:"Otevřeno"},"c2pa.orientation":{description:"Byla změněna poloha nebo orientace (otočení, převrácení atd.)",label:"Orientace úpravy"},"c2pa.placed":{description:"Do tohoto souboru byl přidán existující obsah",label:"Importováno"},"c2pa.resized":{description:"Byly změněny rozměry nebo velikost souboru",label:"Změny velikosti"},"c2pa.unknown":{description:"Byly provedeny další úpravy nebo aktivita, kterou nebylo možné rozpoznat",label:"Neznámé úpravy nebo aktivita"}}}},da_DK:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Justerede egenskaber såsom tone, mætning, kurver, skygger eller fremhævninger",label:"Farve- eller eksponeringsredigeringer"},"c2pa.created":{description:"Oprettede en ny fil eller nyt indhold",label:"Oprettede"},"c2pa.cropped":{description:"Brugte beskæringsværktøjer til at reducere eller udvide synligt indholdsområde",label:"Beskæring af redigeringer"},"c2pa.drawing":{description:"Brugte værktøjer såsom blyanter, pensler, viskelædere eller form-, sti- eller penneværktøjer",label:"Tegneredigeringer"},"c2pa.edited":{description:"Foretog andre ændringer",label:"Andre redigeringer"},"c2pa.filtered":{description:"Brugte værktøjer såsom filtre, formater eller effekter til at ændre udseende",label:"Filter- eller formatredigeringer"},"c2pa.opened":{description:"Åbnede en allerede eksisterende fil",label:"Åbnede"},"c2pa.orientation":{description:"Ændrede placering eller retning (roteret, vendt osv.)",label:"Retning redigeringer"},"c2pa.placed":{description:"Føjede allerede eksisterende indhold til denne fil",label:"Importerede"},"c2pa.resized":{description:"Ændrede dimensioner eller filstørrelse",label:"Ændring af størrelse på redigeringer"},"c2pa.unknown":{description:"Foretog andre redigeringer eller aktiviteter, der ikke kunne genkendes",label:"Ukendte redigeringer eller ukendt aktivitet"}}}},de_DE:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Angepasste Eigenschaften wie Farbton, Sättigung, Kurven, Schatten oder Glanzlichter",label:"Änderung von Farbe oder Belichtung"},"c2pa.created":{description:"Neue Datei oder neuen Inhalt erstellt",label:"Erstellt"},"c2pa.cropped":{description:"Verwendete Zuschneidewerkzeuge, Verkleinerung oder Erweiterung des sichtbaren Inhaltsbereichs",label:"Zuschneiden von Änderungen"},"c2pa.drawing":{description:"Verwendete Werkzeuge wie Stifte, Pinsel, Radierer oder Form-, Pfad- oder Zeichenstift-Werkzeuge",label:"Zeichnungsänderungen"},"c2pa.edited":{description:"Vorgenommene sonstige Änderungen",label:"Sonstige Änderungen"},"c2pa.filtered":{description:"Verwendete Tools wie Filter, Stile, Formate oder Effekte, die das Erscheinungsbild ändern",label:"Änderungen filtern oder gestalten"},"c2pa.opened":{description:"Vorhandene Datei geöffnet",label:"Geöffnet"},"c2pa.orientation":{description:"Position oder Ausrichtung geändert (gedreht, gespiegelt usw.)",label:"Ausrichtung Änderungen"},"c2pa.placed":{description:"Vorhandenen Inhalt zu dieser Datei hinzugefügt",label:"Importiert"},"c2pa.resized":{description:"Geänderte Abmessungen oder Dateigröße",label:"Größenänderungen"},"c2pa.unknown":{description:"Andere Änderungen oder Aktivitäten durchgeführt, die nicht erkannt werden konnten",label:"Unbekannte Änderungen oder Aktivitäten"}}}},en_US:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Adjusted properties like tone, saturation, curves, shadows, or highlights",label:"Color or exposure edits"},"c2pa.converted":{description:"The format of the asset was changed",label:"Converted asset"},"c2pa.created":{description:"Created a new file or content",label:"Created"},"c2pa.cropped":{description:"Used cropping tools, reducing or expanding visible content area",label:"Cropping edits"},"c2pa.drawing":{description:"Used tools like pencils, brushes, erasers, or shape, path, or pen tools",label:"Drawing edits"},"c2pa.edited":{description:"Made other changes",label:"Other edits"},"c2pa.filtered":{description:"Used tools like filters, styles, or effects to change appearance",label:"Filter or style edits"},"c2pa.opened":{description:"Opened a pre-existing file",label:"Opened"},"c2pa.orientation":{description:"Changed position or orientation (rotated, flipped, etc.)",label:"Orientation edits"},"c2pa.placed":{description:"Added pre-existing content to this file",label:"Imported"},"c2pa.published":{description:"Received and distributed image",label:"Published image"},"c2pa.removed":{description:"One or more assets were removed from the file",label:"Asset removed"},"c2pa.repackaged":{description:"Asset was repackaged without being processed",label:"Repackaged asset"},"c2pa.resized":{description:"Changed dimensions or file size",label:"Resizing edits"},"c2pa.transcoded":{description:"Processed or compressed an asset to optimize for display",label:"Processed asset"},"c2pa.unknown":{description:"Performed other edits or activity that couldn't be recognized",label:"Unknown edits or activity"}}}},es_ES:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Se han ajustado propiedades como el tono, la saturación, las curvas, las sombras o las luces",label:"Ediciones de color o exposición"},"c2pa.created":{description:"Se ha creado un nuevo archivo o contenido",label:"Fecha de creación"},"c2pa.cropped":{description:"Se han usado herramientas de recorte, lo que reduce o expande el área de contenido visible",label:"Ediciones de recorte"},"c2pa.drawing":{description:"Se han usado herramientas como lápices, pinceles, borradores o herramientas de formas, trazados o bolígrafos",label:"Ediciones de dibujo"},"c2pa.edited":{description:"Se han hecho otros cambios",label:"Otras ediciones"},"c2pa.filtered":{description:"Se han usado herramientas como filtros, estilos o efectos para cambiar la apariencia",label:"Ediciones de filtro o estilo"},"c2pa.opened":{description:"Se ha abierto un archivo preexistente",label:"Abierto"},"c2pa.orientation":{description:"Se ha cambiado la posición u orientación (girado, volteado, etc.)",label:"Ediciones de orientación"},"c2pa.placed":{description:"Se ha añadido contenido preexistente a este archivo",label:"Importado"},"c2pa.resized":{description:"Se han modificado las dimensiones o el tamaño del archivo",label:"Ediciones de cambio de tamaño"},"c2pa.unknown":{description:"Se han realizado otras ediciones o actividades que no se han podido reconocer",label:"Ediciones o actividad desconocidas"}}}},fi_FI:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Säädetty ominaisuuksia, kuten sävyä, kylläisyyttä, käyriä, varjoja tai kohokohtia",label:"Väreihin tai valotukseen liittyvät muokkaukset"},"c2pa.created":{description:"Luotu uusi tiedosto tai uutta sisältöä",label:"Luotu"},"c2pa.cropped":{description:"Käytetty rajaustyökaluja, vähennetty tai laajennettu näkyvää sisältöaluetta",label:"Rajaukseen liittyvät muokkaukset"},"c2pa.drawing":{description:"Käytetty työkaluja, kuten kyniä, siveltimiä, pyyhekumeja tai muoto-, reitti- tai kynätyökaluja",label:"Piirtämiseen liittyvät muokkaukset"},"c2pa.edited":{description:"Tehty muita muutoksia",label:"Muut muokkaukset"},"c2pa.filtered":{description:"Käytetty työkaluja, kuten ulkoasun muuttamiseen tarkoitettuja suodattimia, tyylejä tai tehosteita",label:"Suodattimeen tai tyyliin liittyvät muokkaukset"},"c2pa.opened":{description:"Avattu olemassa oleva tiedosto",label:"Avattu"},"c2pa.orientation":{description:"Muutettu paikkaa tai suuntaa (kierretty, käännetty jne.)",label:"Suuntaan liittyvät muokkaukset"},"c2pa.placed":{description:"Lisätty olemassa olevaa sisältöä tähän tiedostoon",label:"Tuotu"},"c2pa.resized":{description:"Muutettu mittasuhteita tai tiedostokokoa",label:"Koon muuttamiseen liittyvät muokkaukset"},"c2pa.unknown":{description:"Suoritettu muita muokkauksia tai toimintoja, joita ei tunnistettu",label:"Tuntemattomat muokkaukset tai tuntematon toiminta"}}}},fr_FR:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Ajustement des propriétés, comme la tonalité, la saturation, les courbes, les ombres ou les tons clairs",label:"Modifications de la couleur ou de l’exposition"},"c2pa.created":{description:"Création d’un nouveau fichier ou contenu",label:"Créé"},"c2pa.cropped":{description:"Utilisation d’outils de recadrage, réduisant ou élargissant la zone de contenu visible",label:"Modifications de recadrage"},"c2pa.drawing":{description:"Utilisation d’outils, comme des crayons, des pinceaux, des gommes ou des outils de forme, de tracé ou de plume",label:"Modifications du dessin"},"c2pa.edited":{description:"Réalisation d’autres modifications",label:"Autres modifications"},"c2pa.filtered":{description:"Utilisation d’outils tels que des filtres, des styles ou des effets pour modifier l’apparence",label:"Modifications du filtre ou du style"},"c2pa.opened":{description:"Ouverture d’un fichier préexistant",label:"Ouvert"},"c2pa.orientation":{description:"Changement de position ou d’orientation (rotation, renversement, etc.)",label:"Orientation Modifications de "},"c2pa.placed":{description:"Ajout du contenu préexistant à ce fichier",label:"Importé"},"c2pa.resized":{description:"Modification des dimensions ou de la taille du fichier",label:"Modifications du redimensionnement"},"c2pa.unknown":{description:"Réalisation d’autres modifications ou activités qui n’ont pas pu être reconnues",label:"Modifications ou activité inconnues"}}}},hu_HU:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Beállított olyan tulajdonságokat mint árnyalat, telítettség, görbék, árnyékok vagy csúcsfények",label:"Szín vagy expozíció szerkesztése"},"c2pa.created":{description:"Létrehozott egy új fájlt vagy tartalmat",label:"Létrehozva"},"c2pa.cropped":{description:"Használt vágóeszközöket, amelyek csökkentik vagy bővítik a tartalom látható területét",label:"Vágást használó szerkesztések"},"c2pa.drawing":{description:"Használt olyan eszközöket mint ceruzák, ecsetek, radírok vagy alakzat-, görbe- vagy tolleszközök",label:"Rajzolást használó szerkesztések"},"c2pa.edited":{description:"Egyéb módosítások végrehajtva",label:"Egyéb szerkesztések"},"c2pa.filtered":{description:"Használt olyan eszközöket mint szűrők, stílusok vagy effektusok a megjelenés megváltoztatására",label:"Szűrőt vagy stílust használó szerkesztések"},"c2pa.opened":{description:"Megnyitott egy már létező fájlt",label:"Megnyitva"},"c2pa.orientation":{description:"Módosította a pozíciót vagy tájolást (elforgatva, megfordítva stb.)",label:"Tájolás szerkesztések"},"c2pa.placed":{description:"Már létező tartalmat adott hozzá ehhez a fájlhoz",label:"Importálva"},"c2pa.resized":{description:"A méretek vagy a fájl mérete módosult",label:"Szerkesztések átméretezése"},"c2pa.unknown":{description:"Más szerkesztéseket vagy műveleteket hajtott végre, amelyeket nem lehetett felismerni",label:"Ismeretlen szerkesztések vagy tevékenység"}}}},it_IT:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Proprietà regolate come tono, saturazione, curve, ombre o luci",label:"Modifiche del colore o dell'esposizione"},"c2pa.created":{description:"È stato creato un nuovo file o contenuto",label:"Creato"},"c2pa.cropped":{description:"Strumenti di ritaglio utilizzati, riducendo o espandendo l'area del contenuto visibile",label:"Modifiche di ritaglio"},"c2pa.drawing":{description:"Strumenti usati come matite, pennelli, gomme o strumenti forma, tracciato o penna",label:"Modifiche del disegno"},"c2pa.edited":{description:"Sono state apportate altre modifiche",label:"Altre modifiche"},"c2pa.filtered":{description:"Strumenti utilizzati come filtri, stili o effetti per modificare l'aspetto",label:"Modifiche di filtro o stile"},"c2pa.opened":{description:"È stato aperto un file preesistente",label:"Aperto"},"c2pa.orientation":{description:"Posizione o orientamento modificati (ruotati, capovolti e così via)",label:"Orientamento modifiche"},"c2pa.placed":{description:"Aggiunto contenuto preesistente a questo file",label:"Importato"},"c2pa.resized":{description:"Dimensioni o grandezza del file modificate",label:"Modifiche del ridimensionamento"},"c2pa.unknown":{description:"Sono state eseguite altre modifiche o attività che non è stato possibile riconoscere",label:"Modifiche o attività sconosciute"}}}},ja_JP:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"トーン、彩度、カーブ、シャドウ、ハイライトなどのプロパティを調整",label:"カラーまたは露出の編集"},"c2pa.created":{description:"新しいファイルまたはコンテンツを作成",label:"作成済み"},"c2pa.cropped":{description:"切り抜きツールを使用、表示されているコンテンツ領域の縮小または拡大",label:"切り抜きの編集"},"c2pa.drawing":{description:"鉛筆、ブラシ、消しゴム、シェイプ、パス、ペンツールなどのツールを使用",label:"描画の編集"},"c2pa.edited":{description:"その他の変更",label:"その他の編集"},"c2pa.filtered":{description:"フィルター、スタイル、効果などのツールを使用して外観を変更",label:"フィルターまたはスタイルの編集"},"c2pa.opened":{description:"既存のファイルを開いた",label:"開いた"},"c2pa.orientation":{description:"位置または方向を変更 (回転、反転など)",label:"画像方向編集"},"c2pa.placed":{description:"このファイルに既存のコンテンツを追加",label:"読み込み済み"},"c2pa.resized":{description:"寸法またはファイルサイズを変更",label:"サイズ変更の編集"},"c2pa.unknown":{description:"認識できない他の編集またはアクティビティを実行",label:"不明な編集またはアクティビティ"}}}},ko_KR:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"톤, 채도, 곡선, 그림자 또는 하이라이트와 같은 조정된 속성",label:"색상 또는 노출 편집"},"c2pa.created":{description:"새 파일 또는 콘텐츠 생성됨",label:"생성됨"},"c2pa.cropped":{description:"사용된 자르기 도구, 보이는 콘텐츠 영역 축소 또는 확장",label:"자르기 편집"},"c2pa.drawing":{description:"연필, 브러시, 지우개 또는 모양, 경로 또는 펜 도구와 같은 사용된 도구",label:"그리기 편집"},"c2pa.edited":{description:"기타 변경 사항 적용됨",label:"기타 편집"},"c2pa.filtered":{description:"필터, 스타일 또는 효과와 같은 모양 변경에 사용된 도구",label:"필터 또는 스타일 편집"},"c2pa.opened":{description:"기존 파일 열림",label:"열림"},"c2pa.orientation":{description:"변경된 위치 또는 방향 (회전, 반전 등)",label:"방향 편집"},"c2pa.placed":{description:"이 파일에 기존 콘텐츠 추가됨",label:"가져옴"},"c2pa.resized":{description:"변경된 치수 또는 파일 크기",label:"크기 조정 편집"},"c2pa.unknown":{description:"수행되었으나 인식할 수 없는 기타 편집 또는 활동",label:"알 수 없는 편집 또는 활동"}}}},nb_NO:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Justerte egenskaper som tone, metning, kurver, skygger eller høylys",label:"Farge- eller eksponeringsredigeringer"},"c2pa.created":{description:"Opprettet en ny fil eller nytt innhold",label:"Opprettet"},"c2pa.cropped":{description:"Brukte beskjæringsverktøy for å redusere eller utvide synlig innholdsområde",label:"Beskjæringsredigeringer"},"c2pa.drawing":{description:"Brukte verktøy som blyanter, pensler, viskelær eller form-, bane- eller pennverktøy",label:"Tegneredigeringer"},"c2pa.edited":{description:"Gjorde andre endringer",label:"Andre redigeringer"},"c2pa.filtered":{description:"Brukte verktøy som filtre, stiler eller effekter for å endre utseende",label:"Filter- eller stilredigeringer"},"c2pa.opened":{description:"Åpnet en eksisterende fil",label:"Åpnet"},"c2pa.orientation":{description:"Endret posisjon eller retning (rotert, snudd osv.)",label:"Retnings- redigeringer"},"c2pa.placed":{description:"La til eksisterende innhold i denne filen",label:"Importert"},"c2pa.resized":{description:"Endret dimensjoner eller filstørrelse",label:"Størrelsesendringer"},"c2pa.unknown":{description:"Utførte andre redigeringer eller aktiviteter som ikke gjenkjennes",label:"Ukjent endring eller aktivitet"}}}},nl_NL:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Eigenschappen zoals tint, verzadiging, curven, schaduwen of hooglichten aangepast",label:"Kleur- of belichtingsbewerkingen"},"c2pa.created":{description:"Een nieuw bestand of content gemaakt",label:"Gemaakt"},"c2pa.cropped":{description:"Uitsnedegereedschappen gebruikt om het zichtbare deel van de content te beperken of uit te breiden",label:"Uitsnedebewerkingen"},"c2pa.drawing":{description:"Gereedschappen gebruikt zoals potloden, penselen, gummetjes, pennen of vorm- of padgereedschappen",label:"Tekenbewerkingen"},"c2pa.edited":{description:"Andere wijzigingen aangebracht",label:"Andere bewerkingen"},"c2pa.filtered":{description:"Gereedschappen zoals filters, stijlen of effecten gebruikt om het uiterlijk te veranderen",label:"Filter- of stijlbewerkingen"},"c2pa.opened":{description:"Een bestaand bestand geopend",label:"Geopend"},"c2pa.orientation":{description:"Positie of stand gewijzigd (gedraaid, gespiegeld etc.)",label:"Afdrukstand bewerkingen"},"c2pa.placed":{description:"Bestaande content aan dit bestand toegevoegd",label:"Geïmporteerd"},"c2pa.resized":{description:"Afmetingen of bestandsgrootte gewijzigd",label:"Formaatbewerkingen"},"c2pa.unknown":{description:"Andere bewerkingen of activiteiten uitgevoerd die niet konden worden herkend",label:"Onbekende bewerkingen of activiteiten"}}}},pl_PL:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Zmodyfikowano właściwości, takie jak tonacja, nasycenie, krzywe, cienie lub światła",label:"Wprowadzono zmiany kolorów lub ekspozycji"},"c2pa.created":{description:"Utworzono nowy plik lub zawartość",label:"Utworzono"},"c2pa.cropped":{description:"Użyto narzędzi do kadrowania w celu zmniejszenia lub rozszerzenia widocznego obszaru zawartości",label:"Modyfikacje polegające na kadrowaniu"},"c2pa.drawing":{description:"Użyto takich narzędzi, jak ołówki, pędzle i gumki albo narzędzi kształtów, ścieżek lub pióra",label:"Modyfikacje rysunkowe"},"c2pa.edited":{description:"Wprowadzono inne zmiany",label:"Inne modyfikacje"},"c2pa.filtered":{description:"Użyto narzędzi, takich jak filtry, style lub efekty, aby zmienić wygląd",label:"Edycje filtrów lub stylów"},"c2pa.opened":{description:"Otwarto wcześniej istniejący plik",label:"Otwarto"},"c2pa.orientation":{description:"Zmieniono pozycję lub orientację (obrócono, odwrócono itp.)",label:"Orientacja modyfikacje"},"c2pa.placed":{description:"Dodano wcześniej istniejącą zawartość do tego pliku",label:"Zaimportowano"},"c2pa.resized":{description:"Zmieniono wymiary lub rozmiar pliku",label:"Modyfikacje polegające na zmianie rozmiaru"},"c2pa.unknown":{description:"Dokonano innych zmian lub wykonano operacje, których nie można rozpoznać",label:"Nieznane zmiany lub operacje"}}}},pt_BR:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Propriedades como tom, saturação, curvas, sombras ou realces ajustadas",label:"Edições de cor ou exposição"},"c2pa.created":{description:"Arquivo ou conteúdo criado",label:"Criado"},"c2pa.cropped":{description:"Ferramentas de corte usadas, reduzindo ou expandindo a área de conteúdo visível",label:"Edições de corte"},"c2pa.drawing":{description:"Ferramentas como lápis, pincéis, borrachas ou ferramentas de forma, caminho ou caneta usadas",label:"Edições de desenho"},"c2pa.edited":{description:"Outras alterações feitas",label:"Outras edições"},"c2pa.filtered":{description:"Ferramentas como filtros, estilos ou efeitos usadas para alterar a aparência",label:"Edições de filtro ou estilo"},"c2pa.opened":{description:"Arquivo pré-existente aberto",label:"Aberto"},"c2pa.orientation":{description:"Posição ou orientação alterada (girado, invertido etc.)",label:"Edições de orientação"},"c2pa.placed":{description:"Conteúdo pré-existente adicionado a este arquivo",label:"Importado"},"c2pa.resized":{description:"Dimensões ou tamanho do arquivo alterados",label:"Edições de redimensionamento"},"c2pa.unknown":{description:"Não foi possível reconhecer outras edições ou atividades realizadas",label:"Edições ou atividades desconhecidas"}}}},ru_RU:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Измененные свойства, например тон, насыщенность, кривые, тени или блики.",label:"Редактирование цвета или экспозиции"},"c2pa.created":{description:"Создан новый файл или контент",label:"Создано"},"c2pa.cropped":{description:"Используемые инструменты обрезки, уменьшение или расширение видимой области содержимого",label:"Редактирование обрезки"},"c2pa.drawing":{description:"Используемые инструменты, например карандаши, кисти, ластики или другие инструменты (форма, контур или перо)",label:"Редактирование чертежа"},"c2pa.edited":{description:"Внесены другие изменения",label:"Другие изменения"},"c2pa.filtered":{description:"Используемые инструменты для изменения внешнего вида, например фильтры, стили или эффекты",label:"Редактирование фильтров или стилей"},"c2pa.opened":{description:"Открыт ранее созданный файл",label:"Открыто"},"c2pa.orientation":{description:"Изменено положение или ориентация (повернуто, перевернуто и т. д.)",label:"Ориентация правки"},"c2pa.placed":{description:"В этот файл добавлен уже существующий контент",label:"Импортировано"},"c2pa.resized":{description:"Изменены размеры изображения или размер файла",label:"Изменение размеров"},"c2pa.unknown":{description:"Внесены другие правки или выполнены иные действия, которые не удалось распознать",label:"Неизвестные изменения или действия"}}}},sv_SE:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Justerade egenskaper som ton, mättnad, kurvor, skuggor och högdagrar",label:"Redigering av färg eller exponering"},"c2pa.created":{description:"Skapade en ny fil eller nytt innehåll",label:"Skapade"},"c2pa.cropped":{description:"Använde beskärningsverktyg, minskade eller utökade synligt innehållsområde",label:"Redigering av beskärning"},"c2pa.drawing":{description:"Använde verktyg som pennor, penslar, suddgummin eller verktygen form, bana eller penna",label:"Redigering av teckning"},"c2pa.edited":{description:"Gjorde andra ändringar",label:"Annan redigering"},"c2pa.filtered":{description:"Använde verktyg som filter, stilar eller effekter för att ändra utseende",label:"Redigering av filter eller stil"},"c2pa.opened":{description:"Öppnade en befintlig fil",label:"Öppnade"},"c2pa.orientation":{description:"Ändrade placering eller orientering (roterad, vänd osv.)",label:"Orientering redigering"},"c2pa.placed":{description:"Lade till befintligt innehåll i den här filen",label:"Importerade"},"c2pa.resized":{description:"Ändrade mått eller filstorlek",label:"Redigering av storleksändring"},"c2pa.unknown":{description:"Utförde andra redigeringar eller aktiviteter som inte kunde identifieras",label:"Okänd redigering eller aktivitet"}}}},tr_TR:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Ton, doygunluk, eğriler, gölgeler veya vurgular gibi ayarlanmış özellikler",label:"Renk veya pozlama düzenlemeleri"},"c2pa.created":{description:"Yeni bir dosya veya içerik oluşturuldu",label:"Oluşturuldu"},"c2pa.cropped":{description:"Kırpma araçları kullanılarak görünür içerik alanı küçültüldü veya genişletildi",label:"Kırpma düzenlemeleri"},"c2pa.drawing":{description:"Kurşun kalem, fırça, silgi veya şekil, yol ya da kalem araçları gibi araçlar kullanıldı",label:"Çizim düzenlemeleri"},"c2pa.edited":{description:"Diğer değişiklikler yapıldı",label:"Diğer düzenlemeler"},"c2pa.filtered":{description:"Görünümü değiştirmek için filtre, stil veya efekt gibi araçlar kullanıldı",label:"Filtre veya stil düzenlemeleri"},"c2pa.opened":{description:"Mevcut bir dosya açıldı",label:"Açıldı"},"c2pa.orientation":{description:"Konum veya yönlendirme değiştirildi (döndürüldü, ters çevrildi vb.)",label:"Yönlendirme düzenlemeleri"},"c2pa.placed":{description:"Mevcut içerik bu dosyaya eklendi",label:"İçe aktarıldı"},"c2pa.resized":{description:"Boyutlar veya dosya boyutu değiştirildi",label:"Yeniden boyutlandırma düzenlemeleri"},"c2pa.unknown":{description:"Algılanamayan başka düzenlemeler veya etkinlikler gerçekleştirildi",label:"Bilinmeyen düzenlemeler veya etkinlikler"}}}},uk_UA:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"Скориговано властивості, як-от тон, насиченість, криві, тіні або підсвічування",label:"Зміни кольору або експозиції"},"c2pa.created":{description:"Створено новий файл або вміст",label:"Створено"},"c2pa.cropped":{description:"Використано інструменти кадрування, зменшення або розширення області видимого вмісту",label:"Зміни кадрування"},"c2pa.drawing":{description:"Використано інструменти, як-от олівці, пензлі, гумки, або інструменти для форм, контурів або пера",label:"Зміни малювання"},"c2pa.edited":{description:"Внесено інші зміни",label:"Інші зміни"},"c2pa.filtered":{description:"Використано інструменти, як-от фільтри, стилі чи ефекти для зміни вигляду",label:"Зміни фільтру або стилю"},"c2pa.opened":{description:"Відкрито вже існуючий файл",label:"Відкрито"},"c2pa.orientation":{description:"Змінено положення або орієнтація (повернуто, віддзеркалено тощо)",label:"Зміни орієнтації"},"c2pa.placed":{description:"Додано вже існуючий вміст до цього файлу",label:"Імпортовано"},"c2pa.resized":{description:"Змінено геометричні розміри або розмір файлу",label:"Зміни розміру"},"c2pa.unknown":{description:"Виконано інші зміни або дії, які не вдалося розпізнати",label:"Невідомі зміни чи дії"}}}},zh_CN:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"调整后的属性，如色调、饱和度、曲线、阴影或高光",label:"颜色或曝光度编辑"},"c2pa.created":{description:"已创建新文件或内容",label:"已创建"},"c2pa.cropped":{description:"已使用的裁切工具（用于减少或扩大可见内容区域）",label:"裁切编辑"},"c2pa.drawing":{description:"已使用的工具，如铅笔、画笔、橡皮擦、形状、路径或钢笔工具",label:"绘图编辑"},"c2pa.edited":{description:"已执行其他更改",label:"其他编辑"},"c2pa.filtered":{description:"已使用滤镜、样式或效果等工具来更改外观",label:"滤镜或样式编辑"},"c2pa.opened":{description:"已打开一个预先存在的文件",label:"已打开"},"c2pa.orientation":{description:"已改变位置或方向（旋转、翻转等）",label:"方向 编辑"},"c2pa.placed":{description:"已向此文件添加预先存在的内容",label:"已导入"},"c2pa.resized":{description:"已更改尺寸或文件大小",label:"调整编辑大小"},"c2pa.unknown":{description:"已执行其他无法识别的编辑或活动",label:"未知的编辑或活动"}}}},zh_TW:{selectors:{editsAndActivity:{"c2pa.color_adjustments":{description:"調整了屬性，如色調、飽和度、曲線、陰影或亮部",label:"顏色或曝光編輯"},"c2pa.created":{description:"建立了新檔案或內容",label:"已建立"},"c2pa.cropped":{description:"使用了裁切工具，縮減或擴大可見內容區域",label:"裁切編輯"},"c2pa.drawing":{description:"使用了鉛筆、筆刷、橡皮擦等工具，或是形狀、路徑或鋼筆工具",label:"繪圖編輯"},"c2pa.edited":{description:"進行了其他變更",label:"其他編輯"},"c2pa.filtered":{description:"使用了濾鏡、風格或效果等工具來變更外觀",label:"濾鏡或風格編輯"},"c2pa.opened":{description:"開啟了已存在的檔案",label:"已開啟"},"c2pa.orientation":{description:"變更了位置或方向 (旋轉、翻轉等)",label:"方向編輯"},"c2pa.placed":{description:"對此檔案新增了已存在的內容",label:"已讀入"},"c2pa.resized":{description:"變更了尺寸或檔案大小",label:"調整大小編輯"},"c2pa.unknown":{description:"執行了其他無法辨識的編輯或活動",label:"未知的編輯或活動"}}}}});const ld={"c2pa.color_adjustments":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.a%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20ColorPalette%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22a%22%20d%3D%22M11.807%2C3.0725c-2.1855-.35-4.503%2C0-4.824%2C1.046a1.146%2C1.146%2C0%2C0%2C0%2C.647%2C1.454A1.549%2C1.549%2C0%2C0%2C1%2C8.1995%2C7.843a1.41449%2C1.41449%2C0%2C0%2C1-1.5625.563C4.763%2C7.9325%2C2.6905%2C6.965.9945%2C8.5785-.55%2C10.05.079%2C12.233%2C1.577%2C13.421a11.7%2C11.7%2C0%2C0%2C0%2C7.2565%2C2.637c4.793%2C0%2C9.0665-2.8255%2C9.0665-6.558C17.9%2C5.721%2C14.316%2C3.4715%2C11.807%2C3.0725Zm-7.46%2C10.654a1.9%2C1.9%2C0%2C1%2C1%2C1.9-1.9A1.9%2C1.9%2C0%2C0%2C1%2C4.347%2C13.7265Zm9.643-8.017a1.25%2C1.25%2C0%2C1%2C1-1.25%2C1.25A1.25%2C1.25%2C0%2C0%2C1%2C13.99%2C5.7095Zm-5.351%2C9.07a1.7805%2C1.7805%2C0%2C1%2C1%2C1.7795-1.7825V13A1.78%2C1.78%2C0%2C0%2C1%2C8.639%2C14.7795Zm3.895-.748a1.5035%2C1.5035%2C0%2C1%2C1%2C1.501-1.507v.005A1.50249%2C1.50249%2C0%2C0%2C1%2C12.534%2C14.0315ZM15%2C11.28a1.3375%2C1.3375%2C0%2C1%2C1%2C1.337-1.338v.0005A1.337%2C1.337%2C0%2C0%2C1%2C15.0005%2C11.28Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.created":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20NewItem%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M15.5%2C2H2.5a.5.5%2C0%2C0%2C0-.5.5V9H8.5a.5.5%2C0%2C0%2C1%2C.5.5V16h6.5a.5.5%2C0%2C0%2C0%2C.5-.5V2.5A.5.5%2C0%2C0%2C0%2C15.5%2C2Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M8%2C16H7.957a.5.5%2C0%2C0%2C1-.3535-.1465l-5.457-5.457A.5.5%2C0%2C0%2C1%2C2%2C10.043V10H8Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.cropped":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Crop%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M12%2C11h2V4.5a.5.5%2C0%2C0%2C0-.5-.5H7V6h5Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M6%2C12V1.5A.5.5%2C0%2C0%2C0%2C5.5%2C1h-1a.5.5%2C0%2C0%2C0-.5.5V4H1.5a.5.5%2C0%2C0%2C0-.5.5v1a.5.5%2C0%2C0%2C0%2C.5.5H4v7.5a.5.5%2C0%2C0%2C0%2C.5.5H12v2.5a.5.5%2C0%2C0%2C0%2C.5.5h1a.5.5%2C0%2C0%2C0%2C.5-.5V14h2.5a.5.5%2C0%2C0%2C0%2C.5-.5v-1a.5.5%2C0%2C0%2C0-.5-.5Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.drawing":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Draw%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M10.227%2C4%2C2.542%2C11.686a.496.496%2C0%2C0%2C0-.1255.2105L1.0275%2C16.55c-.057.188.2295.425.3915.425a.15587.15587%2C0%2C0%2C0%2C.031-.003c.138-.032%2C3.9335-1.172%2C4.6555-1.389a.492.492%2C0%2C0%2C0%2C.2075-.125L14%2C7.772ZM5.7%2C14.658c-1.0805.3245-2.431.7325-3.3645%2C1.011L3.34%2C12.304Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M16.7835%2C4.1%2C13.9%2C1.216a.60751.60751%2C0%2C0%2C0-.433-.1765H13.45a.686.686%2C0%2C0%2C0-.4635.2035l-2.05%2C2.05L14.708%2C7.0645l2.05-2.05a.686.686%2C0%2C0%2C0%2C.2-.4415A.612.612%2C0%2C0%2C0%2C16.7835%2C4.1Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.edited":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20EditInLight%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M17.8225%2C8.3425%2C15.6605%2C6.181a.456.456%2C0%2C0%2C0-.325-.1325h-.014a.51748.51748%2C0%2C0%2C0-.35.15l-7.616%2C7.621a.368.368%2C0%2C0%2C0-.094.1575l-1.222%2C3.67c-.0425.141.1725.319.294.319l.023-.0025c.1035-.024%2C3.13-1.059%2C3.672-1.222a.36653.36653%2C0%2C0%2C0%2C.155-.0935L17.8%2C9.0295a.515.515%2C0%2C0%2C0%2C.15-.331A.458.458%2C0%2C0%2C0%2C17.8225%2C8.3425Zm-10.803%2C8.644.989-2.7595%2C1.77%2C1.7655C8.968%2C16.236%2C7.7195%2C16.7775%2C7.0195%2C16.9865Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M13.5%2C1H1.5a.5.5%2C0%2C0%2C0-.5.5v12a.5.5%2C0%2C0%2C0%2C.5.5H6.0385l.1125-.339a1.35%2C1.35%2C0%2C0%2C1%2C.336-.55L6.6%2C13H2V2H13V6.583l1-1V1.5A.5.5%2C0%2C0%2C0%2C13.5%2C1Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.filtered":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Properties%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M16.75%2C3H7.95a2.5%2C2.5%2C0%2C0%2C0-4.9%2C0H1.25A.25.25%2C0%2C0%2C0%2C1%2C3.25v.5A.25.25%2C0%2C0%2C0%2C1.25%2C4h1.8a2.5%2C2.5%2C0%2C0%2C0%2C4.9%2C0h8.8A.25.25%2C0%2C0%2C0%2C17%2C3.75v-.5A.25.25%2C0%2C0%2C0%2C16.75%2C3ZM5.5%2C5A1.5%2C1.5%2C0%2C1%2C1%2C7%2C3.5%2C1.5%2C1.5%2C0%2C0%2C1%2C5.5%2C5Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M16.75%2C13H9.95a2.5%2C2.5%2C0%2C0%2C0-4.9%2C0H1.25a.25.25%2C0%2C0%2C0-.25.25v.5a.25.25%2C0%2C0%2C0%2C.25.25h3.8a2.5%2C2.5%2C0%2C0%2C0%2C4.9%2C0h6.8a.25.25%2C0%2C0%2C0%2C.25-.25v-.5A.25.25%2C0%2C0%2C0%2C16.75%2C13ZM7.5%2C15A1.5%2C1.5%2C0%2C1%2C1%2C9%2C13.5%2C1.5%2C1.5%2C0%2C0%2C1%2C7.5%2C15Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M1%2C8.25v.5A.25.25%2C0%2C0%2C0%2C1.25%2C9h8.8a2.5%2C2.5%2C0%2C0%2C0%2C4.9%2C0h1.8A.25.25%2C0%2C0%2C0%2C17%2C8.75v-.5A.25.25%2C0%2C0%2C0%2C16.75%2C8h-1.8a2.5%2C2.5%2C0%2C0%2C0-4.9%2C0H1.25A.25.25%2C0%2C0%2C0%2C1%2C8.25ZM11%2C8.5A1.5%2C1.5%2C0%2C1%2C1%2C12.5%2C10%2C1.5%2C1.5%2C0%2C0%2C1%2C11%2C8.5Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.opened":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.a%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Import%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22a%22%20d%3D%22M16.5%2C1H5.5a.5.5%2C0%2C0%2C0-.5.5v3a.5.5%2C0%2C0%2C0%2C.5.5h1A.5.5%2C0%2C0%2C0%2C7%2C4.5V3h8V15H7V13.5a.5.5%2C0%2C0%2C0-.5-.5h-1a.5.5%2C0%2C0%2C0-.5.5v3a.5.5%2C0%2C0%2C0%2C.5.5h11a.5.5%2C0%2C0%2C0%2C.5-.5V1.5A.5.5%2C0%2C0%2C0%2C16.5%2C1Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22a%22%20d%3D%22M8%2C12.6a.4.4%2C0%2C0%2C0%2C.4.4.39352.39352%2C0%2C0%2C0%2C.2635-.1l3.762-3.7225a.25.25%2C0%2C0%2C0%2C0-.35L8.666%2C5.1A.39352.39352%2C0%2C0%2C0%2C8.4025%2C5a.4.4%2C0%2C0%2C0-.4.4V8H1.5a.5.5%2C0%2C0%2C0-.5.5v1a.5.5%2C0%2C0%2C0%2C.5.5H8Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.orientation":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20RotateLeftOutline%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M16.5%2C5H5.5a.5.5%2C0%2C0%2C0-.5.5v11a.5.5%2C0%2C0%2C0%2C.5.5h11a.5.5%2C0%2C0%2C0%2C.5-.5V5.5A.5.5%2C0%2C0%2C0%2C16.5%2C5ZM16%2C16H6V6H16Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M3.75%2C7.5h-1V6a3%2C3%2C0%2C0%2C1%2C3-3h1a.5.5%2C0%2C0%2C0%2C.5-.5V2a.5.5%2C0%2C0%2C0-.5-.5h-1A4.5%2C4.5%2C0%2C0%2C0%2C1.25%2C6V7.5h-1A.25.25%2C0%2C0%2C0%2C0%2C7.75a.245.245%2C0%2C0%2C0%2C.0735.175L1.842%2C9.9415a.25.25%2C0%2C0%2C0%2C.316%2C0L3.9265%2C7.925A.245.245%2C0%2C0%2C0%2C4%2C7.75.25.25%2C0%2C0%2C0%2C3.75%2C7.5Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.placed":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20SaveToLight%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M16.5%2C4H13V5h3V15H2V5H5V4H1.5a.5.5%2C0%2C0%2C0-.5.5v11a.5.5%2C0%2C0%2C0%2C.5.5h15a.5.5%2C0%2C0%2C0%2C.5-.5V4.5A.5.5%2C0%2C0%2C0%2C16.5%2C4Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22fill%22%20d%3D%22M12.3965%2C7H10V.25A.25.25%2C0%2C0%2C0%2C9.75%2C0H8.25A.25.25%2C0%2C0%2C0%2C8%2C.25V7H5.6035a.25.25%2C0%2C0%2C0-.1765.427L9%2C11l3.573-3.573A.25.25%2C0%2C0%2C0%2C12.3965%2C7Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.resized":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Resize%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M15.5%2C2H2.5a.5.5%2C0%2C0%2C0-.5.5v13a.5.5%2C0%2C0%2C0%2C.5.5h13a.5.5%2C0%2C0%2C0%2C.5-.5V2.5A.5.5%2C0%2C0%2C0%2C15.5%2C2ZM9%2C10.414l2.207-2.207%2C1.366%2C1.366A.25.25%2C0%2C0%2C0%2C13%2C9.3965V5H8.6035a.25.25%2C0%2C0%2C0-.177.427l1.366%2C1.366L7.586%2C9H4V4H14V14H9Z%22%20%2F%3E%3C%2Fsvg%3E","c2pa.unknown":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.fill%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20AlertCircle%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22fill%22%20d%3D%22M7.84555%2C12.88618a1.13418%2C1.13418%2C0%2C0%2C1%2C1.1161-1.15195q.042-.00064.08391.00178a1.116%2C1.116%2C0%2C0%2C1%2C1.2%2C1.15017%2C1.09065%2C1.09065%2C0%2C0%2C1-1.2%2C1.11661%2C1.0908%2C1.0908%2C0%2C0%2C1-1.2-1.11661ZM10.0625%2C4.39771a.20792.20792%2C0%2C0%2C1%2C.09966.183V5.62212c0%2C1.40034-.28322%2C3.98034-.33305%2C4.48067%2C0%2C.04984-.01678.09967-.11695.09967H8.379a.11069.11069%2C0%2C0%2C1-.11695-.09967c-.03305-.46678-.3-3.0305-.3-4.43084V4.6306a.1773.1773%2C0%2C0%2C1%2C.08339-.18306%2C2.88262%2C2.88262%2C0%2C0%2C1%2C1.00017-.20033A3.27435%2C3.27435%2C0%2C0%2C1%2C10.0625%2C4.39771ZM17.50005%2C9A8.50005%2C8.50005%2C0%2C1%2C1%2C9%2C.5H9A8.50008%2C8.50008%2C0%2C0%2C1%2C17.50005%2C9ZM15.67484%2C9A6.67485%2C6.67485%2C0%2C1%2C0%2C9%2C15.6748H9A6.67479%2C6.67479%2C0%2C0%2C0%2C15.67484%2C9Z%22%20%2F%3E%3C%2Fsvg%3E","com.adobe.3d":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.a%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Orbit%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22a%22%20d%3D%22M13.8785%2C6.9355A3.9915%2C3.9915%2C0%2C0%2C0%2C6.35%2C4.374c-.331-.0255-.659-.045-.974-.045C2.6525%2C4.329.5785%2C5.2745.1%2C7c-.52%2C1.8845%2C1.019%2C4.186%2C3.678%2C5.973L2.3545%2C14.6805A.1905.1905%2C0%2C0%2C0%2C2.5%2C14.993H8.95L6.045%2C10.635a.191.191%2C0%2C0%2C0-.305-.0165L4.7555%2C11.8c-2.25-1.471-3.5-3.25-3.1855-4.3935.261-.944%2C1.756-1.554%2C3.8085-1.554.2055%2C0%2C.421.018.633.0305C6.0115%2C5.923%2C6%2C5.96%2C6%2C6a3.9925%2C3.9925%2C0%2C0%2C0%2C7.2385%2C2.332c2.2%2C1.4605%2C3.4045%2C3.214%2C3.091%2C4.345-.2605.944-1.7555%2C1.554-3.807%2C1.554-.283%2C0-.5745-.0155-.87-.041a.3805.3805%2C0%2C0%2C0-.41571.34168l-.00179.03382v.766a.386.386%2C0%2C0%2C0%2C.353.3835c.3185.025.631.0395.9345.0395%2C2.725%2C0%2C4.8-.9455%2C5.276-2.671C18.3365%2C11.1395%2C16.694%2C8.7445%2C13.8785%2C6.9355Z%22%20%2F%3E%3C%2Fsvg%3E","com.adobe.animation_video":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.a%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20VideoOutline%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22a%22%20d%3D%22M15.5%2C2H2.5a.5.5%2C0%2C0%2C0-.5.5v13a.5.5%2C0%2C0%2C0%2C.5.5h13a.5.5%2C0%2C0%2C0%2C.5-.5V2.5A.5.5%2C0%2C0%2C0%2C15.5%2C2ZM5%2C14.75a.25.25%2C0%2C0%2C1-.25.25H3.25A.25.25%2C0%2C0%2C1%2C3%2C14.75v-1.5A.25.25%2C0%2C0%2C1%2C3.25%2C13h1.5a.25.25%2C0%2C0%2C1%2C.25.25Zm0-3.353a.25.25%2C0%2C0%2C1-.25.25H3.25a.25.25%2C0%2C0%2C1-.25-.25v-1.5a.25.25%2C0%2C0%2C1%2C.25-.25h1.5a.25.25%2C0%2C0%2C1%2C.25.25ZM5%2C8.103a.25.25%2C0%2C0%2C1-.25.25H3.25A.25.25%2C0%2C0%2C1%2C3%2C8.103v-1.5a.25.25%2C0%2C0%2C1%2C.25-.25h1.5a.25.25%2C0%2C0%2C1%2C.25.25ZM5%2C4.75A.25.25%2C0%2C0%2C1%2C4.75%2C5H3.25A.25.25%2C0%2C0%2C1%2C3%2C4.75V3.25A.25.25%2C0%2C0%2C1%2C3.25%2C3h1.5A.25.25%2C0%2C0%2C1%2C5%2C3.25ZM12%2C15H6V10h6Zm0-7H6V3h6Zm3%2C6.75a.25.25%2C0%2C0%2C1-.25.25h-1.5a.25.25%2C0%2C0%2C1-.25-.25v-1.5a.25.25%2C0%2C0%2C1%2C.25-.25h1.5a.25.25%2C0%2C0%2C1%2C.25.25Zm0-3.353a.25.25%2C0%2C0%2C1-.25.25h-1.5a.25.25%2C0%2C0%2C1-.25-.25v-1.5a.25.25%2C0%2C0%2C1%2C.25-.25h1.5a.25.25%2C0%2C0%2C1%2C.25.25Zm0-3.294a.25.25%2C0%2C0%2C1-.25.25h-1.5a.25.25%2C0%2C0%2C1-.25-.25v-1.5a.25.25%2C0%2C0%2C1%2C.25-.25h1.5a.25.25%2C0%2C0%2C1%2C.25.25ZM15%2C4.75a.25.25%2C0%2C0%2C1-.25.25h-1.5A.25.25%2C0%2C0%2C1%2C13%2C4.75V3.25A.25.25%2C0%2C0%2C1%2C13.25%2C3h1.5a.25.25%2C0%2C0%2C1%2C.25.25Z%22%20%2F%3E%3C%2Fsvg%3E","com.adobe.combined_asssets":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.a%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Layers%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22a%22%20d%3D%22M14.144%2C9.969%2C9.2245%2C13.3825a.3945.3945%2C0%2C0%2C1-.45%2C0L3.856%2C9.969.929%2C12a.1255.1255%2C0%2C0%2C0%2C0%2C.2055l7.925%2C5.5a.2575.2575%2C0%2C0%2C0%2C.292%2C0l7.925-5.5a.1255.1255%2C0%2C0%2C0%2C0-.2055Z%22%20%2F%3E%20%20%3Cpath%20class%3D%22a%22%20d%3D%22M8.85%2C11.494.929%2C6a.1245.1245%2C0%2C0%2C1%2C0-.205L8.85.297a.265.265%2C0%2C0%2C1%2C.3%2C0l7.921%2C5.496a.1245.1245%2C0%2C0%2C1%2C0%2C.205L9.15%2C11.494A.265.265%2C0%2C0%2C1%2C8.85%2C11.494Z%22%20%2F%3E%3C%2Fsvg%3E","com.adobe.text":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20width%3D%2218%22%3E%20%20%3Cdefs%3E%20%20%20%20%3Cstyle%3E%20%20%20%20%20%20.a%20%7B%20%20%20%20%20%20%20%20fill%3A%20%236E6E6E%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%20%20%3C%2Fdefs%3E%20%20%3Ctitle%3ES%20Text%2018%20N%3C%2Ftitle%3E%20%20%3Crect%20id%3D%22Canvas%22%20fill%3D%22%23ff13dc%22%20opacity%3D%220%22%20width%3D%2218%22%20height%3D%2218%22%20%2F%3E%3Cpath%20class%3D%22a%22%20d%3D%22M2.5%2C2a.5.5%2C0%2C0%2C0-.5.5v3a.5.5%2C0%2C0%2C0%2C.5.5h1A.5.5%2C0%2C0%2C0%2C4%2C5.5V4H8V14H6.5a.5.5%2C0%2C0%2C0-.5.5v1a.5.5%2C0%2C0%2C0%2C.5.5h5a.5.5%2C0%2C0%2C0%2C.5-.5v-1a.5.5%2C0%2C0%2C0-.5-.5H10V4h4V5.5a.5.5%2C0%2C0%2C0%2C.5.5h1a.5.5%2C0%2C0%2C0%2C.5-.5v-3a.5.5%2C0%2C0%2C0-.5-.5Z%22%20%2F%3E%3C%2Fsvg%3E"},fd=u("c2pa:selector:editsAndActivity"),pd=(vd=ud,md={},yd=rd(yd=(e,t)=>t.replace("_","-")),td(vd,(function(e,t,r){ed(md,yd(e,t,r),e)})),md),dd="en-US",hd="UNCATEGORIZED";var vd,yd,md;const gd=Hp(Cp,Qp((e=>e.id)),$p((e=>e.label)));function bd(e){const t=e.claimGenerator,r=t.replace(/\([^)]*\)/g,"");if(/\s+\d+\.\d(\.\d)*\s+/.test(r))return t.split("(")[0]?.trim();{const e=r.split(/\s+/)?.[0]??"",[t,n]=e.split("/"),o=t.replace(/_/g," ");return n?`${o} ${n}`:o}}const _d=["http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia","https://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia","http://cv.iptc.org/newscodes/digitalsourcetype/compositeWithTrainedAlgorithmicMedia","https://cv.iptc.org/newscodes/digitalsourcetype/compositeWithTrainedAlgorithmicMedia"];function wd(e){const t=e.assertions.data.reduce(((e,t)=>{if("com.adobe.generative-ai"===t.label){const{description:r,version:n}=t.data,o=[r,n].map((e=>e?.trim()??"")).join(" ");return[...e,{assertion:t,type:"legacy",softwareAgent:o}]}if("c2pa.actions"===t.label){const{actions:r}=t.data,n=r.reduce(((e,r)=>{const{digitalSourceType:n}=r;var o;return n&&_d.includes(n)&&e.push({assertion:t,action:r,type:(o=n,o.substring(o.lastIndexOf("/")+1)),softwareAgent:r.softwareAgent}),e}),[]);return[...e,...n]}return e}),[]);return t.length?t:null}async function Ed(e,t){const r=[],n=e.activeManifest,o=n.ingredients.map((e=>{const t=e.thumbnail?.getUrl();return t&&r.push(t.dispose),{title:e.title,format:e.format,thumbnail:t?.url??null,hasManifest:!!e.manifest,error:Sd(e.validationStatus),validationStatus:e.validationStatus}})),i=function(e){const[t]=e.assertions.get("stds.schema-org.CreativeWork");if(!t)return null;const r=t.data.author?.find((e=>!e.hasOwnProperty("@id")));return r??null}(n),a=await async function(e,t=dd,r="dark"){const n=e.assertions.get("com.adobe.dictionary")[0]??e.assertions.get("adobe.dictionary")[0],[o]=e.assertions.get("c2pa.actions");return o?n?async function(e,t,r=dd,n="dark"){const o=await Zn.cachedGetJson(t),i=gd(e.map((e=>function(e,t,r,n){const o=e.actions[t]?.category??hd;o===hd&&fd("Could not find category for actionId",t);const i=e.categories[o];return i?{id:o,icon:i.icon?.replace("{variant}",n)??null,label:i.labels[r],description:i.descriptions[r]}:null}(o,e.parameters?.name??e.action,r,n))));return i}(o.data.actions,n.data.url,t,r):function(e,t=dd){const r=e.data.actions,n=function(e=dd){const t=pd[dd]?.selectors?.editsAndActivity??{},r=pd[e]?.selectors?.editsAndActivity??{};return e===dd?t:Nn({},t,r)}(t),o=e.data.metadata?.localizations??[],i={actions:[]};ec(o,(e=>{ec(e,((e,r)=>{const n=e[t];n&&cd(i,r,n)}))}));const a=r.map(((e,t)=>{const r=i.actions[t]??{},o=n[e.action],a=e.action;return{id:e.action,icon:e.parameters?.["com.adobe.icon"]??ld[a],label:r.action??o.label,description:r?.parameters?.description??o.description}}));return gd(a)}(o,t):null}(n,t),s=function(e){const[t]=e.assertions.get("stds.schema-org.CreativeWork");if(!t)return null;const r=t.data.author?.filter((e=>e.hasOwnProperty("@id")));return r}(n)?.map((e=>({"@type":e["@type"],"@id":e["@id"],name:e.name,identifier:e.identifier})))??null,c=n.thumbnail?.getUrl();return c&&r.push(c.dispose),{manifestStore:{ingredients:o,format:n.format,title:n.title,signature:n.signatureInfo?{issuer:n.signatureInfo.issuer??null,isoDateString:n.signatureInfo.time??null}:null,claimGenerator:{value:n.claimGenerator,product:bd(n)},producer:i?{"@type":i["@type"],name:i.name,identifier:i.identifier}:null,socialAccounts:s,editsAndActivity:a,generativeInfo:wd(n),thumbnail:c?.url??null,isBeta:!!n.assertions.get("adobe.beta")?.[0]?.data.version,error:Sd(e.validationStatus),validationStatus:e.validationStatus},dispose:()=>{r.forEach((e=>e()))}}}function Sd(e){return Bs(e)?"otgp":function(e=[]){return e.length>0&&!Bs(e)}(e)?"error":null}},67344:(e,t,r)=>{"use strict";function n(){let e,t;return[new Promise(((r,n)=>{e=r,t=n})),e,t]}r.d(t,{PQ:()=>n}),Symbol("Retry Operation");class o extends Error{constructor(e,t){super(t),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.type=e}}},53683:(e,t,r)=>{"use strict";r.d(t,{Ds:()=>i.Ds,Sd:()=>o,zg:()=>n.z});var n=r(20086);class o extends Event{constructor(e,t){super(`${e}Update`),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"property",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.type=`${e}Update`,this.property=e,this.value=t}}var i=r(44793)},20086:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o,z:()=>n});const n=["stylize","style-id","style","fix-face","guidance","raw-style","iterations","style-iterations","style-seeds","skip-type","draft-iterations","sampler","fast","outline-strength","creativity-strength","masking","use-condition-refinement","prompt-suffix","prompt-seed","use-text-embedding","style-strength","check-stock-match-threshold","concepts","start-ratio"],o=["QUOTA_WARNING_HARD_CAP","QUOTA_EXHAUSTED_USING_DAILY_CREDITS","QUOTA_EXHAUSTED"]},44793:(e,t,r)=>{"use strict";r.d(t,{Ds:()=>o,Zi:()=>i,fk:()=>n});class n extends Error{constructor(e,t){super(t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e}}class o extends n{constructor(e,t){super("SPLResponseError",e),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}static async from(e,t){const{message:r,...n}=await this.extractData(e,t);return new o(`${r} (status: ${n.status})`,n)}static async extractData(e,t={}){const{message:r="Unsuccessful request",reason:n=await a(e),requestID:o=e.headers.get("X-Request-Id")??void 0,status:i=e.status,statusText:s=e.statusText,url:c=e.url}=await t;return{message:r,reason:n,requestID:o,status:i,statusText:s,url:c}}}class i extends n{constructor(e,t){super("SPLTaskInputValidationError",e),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}async function a(e){let t;try{t=await e.text(),t=JSON.parse(t)}catch(e){}return t}},60492:(e,t,r)=>{"use strict";r.d(t,{t6:()=>n,Ct:()=>i,PM:()=>a,HM:()=>c,he:()=>f,HP:()=>p,JQ:()=>d});const{Blob:n,File:o,FormData:i,Headers:a,Request:s,Response:c,crypto:u}=globalThis,{fetch:l}=globalThis,f=async(e,t)=>{let r=6e4;const n=new globalThis.AbortController;t&&"number"==typeof t.timeoutms&&(r=t.timeoutms);const o=globalThis.setTimeout((()=>{n.abort("timeout")}),r);if(!t){const t=await l(e,{signal:n.signal});return globalThis.clearTimeout(o),t}const{body:i,cache:a,credentials:s,headers:c,integrity:u,keepalive:f,method:p,mode:d,redirect:h,referrer:v,referrerPolicy:y,signal:m,window:g}=t;let b=n.signal;m&&(b=(e=>{const t=new AbortController,r=new Set;let n="";const o=()=>{t.abort(n)};if(e instanceof Array&&e.length>0){let t=!1;for(const i of e)i instanceof AbortSignal&&(i.aborted?n=i.reason:(r.add(i),i.addEventListener("abort",(e=>{const t=e.target;return t instanceof AbortSignal&&(n=t.reason,r.delete(t),o()),!1}),{once:!0})),t=t||i.aborted);t&&Promise.resolve(r).finally(o)}return t.signal})([n.signal,m]));const _={body:i,cache:a,credentials:s,headers:c,integrity:u,keepalive:f,method:p,mode:d,redirect:h,referrer:v,referrerPolicy:y,signal:b,window:g};try{const t=await l(e,_);return globalThis.clearTimeout(o),t}catch(e){if(e instanceof DOMException&&b.aborted&&"timeout"===b.reason)throw new Error("timeout");throw e}},p="object"==typeof u&&"function"==typeof u.randomUUID?()=>u.randomUUID():function(){const e=new Uint8Array(16),t=Array(36).fill(45);return function(){const r=u.getRandomValues(e);return r[6]=64|15&r[6],r[8]=128|63&r[8],v(r,0,4,t,0),v(r,4,6,t,9),v(r,6,8,t,14),v(r,8,10,t,19),v(r,10,16,t,24),String.fromCharCode.apply(null,t)}}();async function d(e){const t=new Uint8Array(await u.subtle.digest("sha-256",e));return v(t,0,t.length,h,0),String.fromCharCode.apply(null,h)}const h=Array(64).fill(0);function v(e,t,r,n,o){for(let i=t;i<r;++i){const t=m[e[i]];n[o++]=t>>>8,n[o++]=255&t}}const y="0123456789abcdef",m=Array.from(Array(256),((e,t)=>y.charCodeAt(t>>>4)<<8|y.charCodeAt(15&t)))},89617:(e,t,r)=>{"use strict";r.d(t,{$i:()=>C,HD:()=>s,Lj:()=>u,Lr:()=>y,PX:()=>l,Pj:()=>v,Q:()=>O,RS:()=>I,SV:()=>f,U:()=>k,X_:()=>S,YH:()=>b,bf:()=>w,dm:()=>c,h0:()=>p,hj:()=>a,jn:()=>i,nh:()=>_,nv:()=>g,o7:()=>h,p7:()=>E,um:()=>m,wY:()=>x});var n=r(20086),o=r(60492);const i=(e,t)=>"boolean"==typeof e||P(t,"is not a boolean."),a=(e,t)=>"number"==typeof e||P(t,"is not a number."),s=(e,t)=>"string"==typeof e||P(t,"is not a string."),c=e=>{const t=`is not a string starting with ${e}`;return(r,n)=>s(r,n)&&(r.startsWith(e)||P(n,t))},u=(e,t)=>e instanceof o.t6||P(t,"is not a Blob."),l=(e,t)=>e instanceof URL||P(t,"is not a URL."),f=S({x:a,y:a,width:a,height:a},"SPLRect"),p=S({width:a,height:a},"SPLSize"),d=S({guid:s,revisionId:s},"SPLDCXFormat"),h=S({imageType:b("blob"),blob:u},"SPLImageBlob"),v=S({imageType:b("url"),url:l},"SPLImageURL"),y=S({imageType:b("dcx"),input:d,output:d,docId:s,repoId:s},"SPLImageDCX"),m=O(h,v),g=O(m,y);function b(e){return(t,r)=>t===e||P(r,`is not ${String(e)}.`)}function _(e){return(t,r)=>void 0===t||e(t,r)}function w(e){return(t,r)=>{const n=r?.name;let o;try{o=Array.isArray(t)&&t.every(((t,o)=>(r&&null!=n&&(r.name=`${n}[${o}]`),e(t,r))))}finally{r&&null!=n&&(r.name=n)}return o||P(r,r?.message?`is invalid, because ${r.message}`:"is not an array.")}}function E(e){return(t,r)=>{const n=r?.name;let o;try{o=L(t)&&Object.getOwnPropertyNames(t).every((o=>(r&&null!=n&&(r.name=`${n}.${o}`),e(t[o],r))))}finally{r&&null!=n&&(r.name=n)}return o||P(r,r?.message?`is invalid, because ${r.message}`:"is not a valid record")}}function S(e,t="object"){const r=/^[aeiou]/i.test(t)?"an":"a",n=Object.entries(e).map((([e,t])=>({propName:e,validate:t})));return(e,o)=>{const i=o?.name;let a;try{a=L(e)&&n.every((({propName:t,validate:r})=>(o&&null!=i&&(o.name=`${i}.${t}`),r(e[t],o))))}finally{o&&null!=i&&(o.name=i)}return a||P(o,o?.message?`is not ${r} ${t}, because ${o.message}`:`is not ${r} ${t}.`)}}function O(...e){return(t,r)=>{const n=r&&[];return e.some((e=>{try{return e(t,r)}finally{r?.message&&n?.push(r.message)&&(r.message=void 0)}}))||!!(n&&n.length>0)&&P(r,`is invalid, because ${n.map((e=>e.replace(/\.$/,""))).join("; and ")}.`)}}const k=(e,t)=>Number.isInteger(e)||P(t,"is not an integer.");function C(e,t,r="closed"){const n="half-open"===r?r=>r>=e&&r<t:"open"===r?r=>r>e&&r<t:r=>r>=e&&r<=t;return(o,i)=>a(o,i)&&(n(o)||P(i,`is not in the range ${"open"===r?"(":"["}${e}, ${t}${"closed"===r?"]":")"}.`))}function x(e,t,r="closed"){const n=C(e,t,r);return(e,t)=>n(e,t)&&k(e,t)}function L(e){return null!=e&&"object"==typeof e}const I=S({consumptionStatus:_(O(...n.Y.map((e=>b(e))))),appliedUntilDate:_(k)});function P(e,t){return e&&(e.message=`${e.name} ${t}`),!1}},31173:(e,t,r)=>{"use strict";r.d(t,{uK:()=>_,AF:()=>H,JM:()=>w,Fp:()=>S,u0:()=>E,wZ:()=>k,O9:()=>O,hq:()=>v,R4:()=>p,U3:()=>f,mt:()=>h,hS:()=>d,bd:()=>B,yL:()=>F});var n=r(60492),o=r(89617),i=r(85726);const a="https://sensei-eks01.infra.adobesensei.io/asml-tyom/tyom-backend-clio2/5k",s={concept:(0,o.nh)(o.HD),images:(0,o.bf)(o.Lj)};async function c(e,t){const{images:r,concept:o=(0,n.HP)()}=e,i=await function(e,t){const{signal:r}=t,o=e.map((async e=>{const t=new n.Ct;t.append("image",e);const o=await(0,n.he)(`${a}/upload-image`,{method:"POST",body:t,signal:r});return(await o.json()).image.replace(/[.][^.]*$/,"")}));return Promise.all(o)}(r,t),s=await async function(e,t){const{signal:r}=t,o=await(0,n.he)(`${a}/register-dataset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({images:e}),signal:r});return(await o.json()).dataset_id}(i,t);return await async function(e,t,r){const{signal:o}=r,i=await(0,n.he)(`${a}/train`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({concept:e,model_tag:"ediffi_N130",superclass:"Object",dataset:t,train_steps:1200,train_batch_size:2}),signal:o});return(await i.json()).job_id}(o,s,t),{result:{concept:o,monitorURL:`${a}/status?concept=sks_${o}_Object`}}}var u=r(70270);const l={initSession:function(e,t,r){const n={...e};return e.addEventListener("authTokenUpdate",(e=>{n.authToken=e.value})),e.features["sensei:cpf:disableSessions"]?new u.xu:new u.U3(n,{sessionFunctions:t,skipUploads:!e.features["sensei:cpf:useSessionCache"],ttlSeconds:r})}};function f(){return{plugin:l,validateInputs:F,run(e,t){const r=function(e,t){const{prompt:r,enableFaceFix:a=!0,imageFormat:s}=e,c="gt_GEN_IMAGE",u=s??"image/jpeg",{session:l,signal:f}=t,p=(0,n.HP)();return l.track((async({sessionID:s})=>{const l=()=>Z(p,s,t);f.addEventListener("abort",l);const d=e.guideImage?(0,i.xw)(e.guideImage,"gi_GUIDEIMAGE"):void 0;try{const l=(0,i.vU)({"sensei:engine":m(t),"sensei:inputs":d?.senseiInput,"sensei:outputs":{gt_GEN_IMAGE:{"dc:format":u,"sensei:multipart_field_name":c}},"spl:request":{graph:{uri:e.guideImage?"urn:graph:GuidedText2Image_v2":"urn:graph:Text2Image_v2"},params:[...y(e,{diffusionSteps:G,locale:V}),{name:"gi_USE_FACE_FIX",type:"boolean",value:a}],inputs:{gi_PROMPT:{id:(0,n.HP)(),type:"string",value:r},...d?.splInput},outputs:{gt_GEN_IMAGE:{id:(0,n.HP)(),type:"image",expectedMimeType:u},gt_GEN_STATUS:{id:(0,n.HP)(),type:"scalar"}}}});d?.formData&&l.set(...d.formData);const f=await(0,i.qk)(l,t,{fixMultipart:[c],sessionID:s,transactionId:p}),h=await f.formData(),v=h.get(c);if(!(0,o.Lj)(v))throw new Error("CPF did not return image data");const g=await(0,i.ES)(h),{version:b,values:_}=g,{gt_GEN_STATUS:w}=_;if(void 0===w)throw new Error("gt_GEN_STATUS is undefined");return{result:{image:{imageType:"blob",blob:v},presignedUrl:"",version:b,...(0,i.$D)(w),...(0,i.Lq)(f)}}}finally{f.removeEventListener("abort",l)}}))}(e,t);return{result:r.then((({result:e})=>e))}}}}function p(){return{plugin:l,validateInputs:B,run(e,t){const r=function(e,t){const{prompt:r,glyphMask:a,fitType:s="medium",padRatio:c,imageFormat:u}=e,l="gi_GEN_IMAGE",f=u??"image/webp",p=(0,i.xw)(a,"gi_GLYPHMASK"),{session:d,signal:h}=t,v="blob"===a.imageType?[a.blob]:[];return d.track(v,(async({sessionID:a,handles:u,notUploaded:d})=>{const v=u?.[0],g=(0,i.vU)({"sensei:engine":m(t),"sensei:inputs":v?{gi_GLYPHMASK:v}:p.senseiInput,"sensei:outputs":{gi_GEN_IMAGE:{"dc:format":f,"sensei:multipart_field_name":l}},"spl:request":{graph:{uri:"urn:graph:Glyph2Image_v2"},params:[...y(e,{diffusionSteps:K,locale:V}),{name:"gi_PAD_RATIO",type:"scalar",value:void 0!==c?c:-1},{name:"gi_STRENGTH",type:"scalar",value:H[s]}],inputs:{gi_PROMPT:{id:(0,n.HP)(),type:"string",value:r},...p.splInput},outputs:{gi_GEN_IMAGE:{id:(0,n.HP)(),type:"image",expectedMimeType:f},gi_GEN_STATUS:{id:(0,n.HP)(),type:"scalar"}}}});if(d)for(const[e,t]of d)g.set(e,t);else p.formData&&g.set(...p.formData);const b=(0,n.HP)(),_=()=>Z(b,a,t);h.addEventListener("abort",_);try{const e=await(0,i.qk)(g,t,{fixMultipart:[l],sessionID:a,transactionId:b}),r=await e.formData(),n=r.get(l);if(!(0,o.Lj)(n))throw new Error("CPF did not return image data");const s=await(0,i.ES)(r),{version:c}=s,{values:u}=s,{gi_GEN_STATUS:f}=u;if(void 0===f)throw new Error("gi_GEN_STATUS is undefined");return{result:{image:{imageType:"blob",blob:n},version:c,...(0,i.$D)(f),...(0,i.Lq)(e)}}}finally{h.removeEventListener("abort",_)}}))}(e,t);return{result:r.then((({result:e})=>e))}}}}function d(){return{plugin:l,validateInputs:s,run:(e,t)=>({result:c(e,t).then((({result:e})=>e))})}}function h(){return{plugin:l,validateInputs:F,run(e,t){const r=async function(e,t){const{signal:r}=t,{prompt:o,seed:i,advanced:s}=e,c=s?.style_prompt??"",u=await(0,n.he)(`${a}/textToArt`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({concept:`sks_${void 0===s?.concept?"":s.concept}_Object`,prompt:`${o}, ${c}`,seed:i}),signal:r});return{result:{image:{blob:await u.blob(),imageType:"blob"},presignedUrl:"",version:"",isDenied:!1,isBlockedClassNSFW:!1,isBlockedClassArtist:!1,isDeniedSilent:!1,isNotSupportedLanguage:!1,isPostProcessingNSFW:!1,isEmptyPrompt:!1,isLongPrompt:!1}}}(e,t);return{result:r.then((({result:e})=>e))}}}}function v({r:e,g:t,b:r}){return"0x"+(e<<16|t<<8|r).toString(16).padStart(6,"0")}function y(e,t){const r={...e};for(const e of Object.keys(t))r[e]??(r[e]=t[e]);const{seed:n,diffusionSteps:o,outputSize:i,style:a,color:s,strength:c,advanced:u,locale:l}=r,f=u?.num_inference_steps??o,p=void 0!==f?[{name:"gi_NUM_STEPS",type:"scalar",value:f}]:[],d=void 0!==i?[{name:"gi_OUTPUT_WIDTH",type:"scalar",value:i.width},{name:"gi_OUTPUT_HEIGHT",type:"scalar",value:i.height}]:[],h=void 0!==a?[{name:"gi_IMAGE_STYLE",type:"string",value:a}]:[],y=void 0!==c?[{name:"gi_STRENGTH",type:"scalar",value:c}]:[];u&&(u.num_inference_steps=f);const m=void 0!==u?[{name:"gi_ADVANCED",type:"string",value:JSON.stringify(u)}]:[],g=void 0!==l?[{name:"gi_LANGUAGE",type:"string",value:l}]:[];let b=[];return void 0!==s&&(b=[{name:"gi_COLOR",type:"string",value:v(s)}]),[{name:"gi_SEED",type:"scalar",value:n},...p,...d,...h,...b,...y,...m,...g]}function m({env:e,features:t}){return"stage"===e&&t["gentech:useStage1"]?W.dev:W[e]}const g=(0,o.wY)(0,256,"half-open"),b=(0,o.X_)({r:g,g,b:g}),_=["none","anon","enhance","auto"],w=["default_v1","default_v2"],E=["spliced","uniform","quad","logsnr","sigmoid","spliced_consistency"],S=["hybrid_ddim","deis","ddim","dpmsolver++","stochastic_dpmsolver++","unipc"],O=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],k=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],C=(0,o.Q)(...["image/jpeg","image/png","image/webp"].map((e=>(0,o.YH)(e)))),x=(0,o.Q)(..._.map((e=>(0,o.YH)(e)))),L=(0,o.Q)(...w.map(o.YH)),I=(0,o.Q)(...E.map((e=>(0,o.YH)(e)))),P=(0,o.Q)(...S.map((e=>(0,o.YH)(e)))),A=(0,o.Q)(...O.map((e=>(0,o.YH)(e)))),T=(0,o.Q)(...k.map((e=>(0,o.YH)(e)))),R=(0,o.Q)(...["v1","v2"].map((e=>(0,o.YH)(e)))),j=(0,o.Q)(...["photo","illustration","raw","vector",""].map((e=>(0,o.YH)(e)))),N=(0,o.Q)(...["text_to_image","show_similar","style_zero","reference_image"].map((e=>(0,o.YH)(e)))),D=(0,o.X_)({aperture:(0,o.$i)(0,25,"closed"),focal_length:(0,o.$i)(0,1900,"closed"),shutter_speed:(0,o.$i)(0,32,"closed")}),U=(0,o.X_)({ediffi_switch:(0,o.nh)((0,o.wY)(0,1e3,"closed")),ediffi_revert:(0,o.nh)((0,o.wY)(0,1e3,"closed")),style_id:(0,o.nh)(o.HD),style_prompt:(0,o.nh)(o.HD),fix_face_strategy:(0,o.nh)(x),fix_face_threshold:(0,o.nh)((0,o.$i)(0,1,"closed")),anchor_prompt:(0,o.nh)(o.HD),base_guidance:(0,o.nh)((0,o.wY)(0,25,"closed")),num_inference_steps:(0,o.nh)((0,o.wY)(5,60,"closed")),prior_style_only:(0,o.nh)(o.jn),prior_samples_per_caption:(0,o.nh)((0,o.wY)(1,30,"closed")),prior_inference_iterations:(0,o.nh)(A),skip_type:(0,o.nh)(I),consistency_baseline_timesteps:(0,o.nh)((0,o.wY)(0,60,"closed")),prompt_seed:(0,o.nh)(o.hj),schedule_type:(0,o.nh)(P),use_text_embedding:(0,o.nh)(o.jn),style_strength:(0,o.nh)(o.hj),skip_uncond_every_n_iters:(0,o.nh)((0,o.wY)(0,10,"closed")),outline_strength:(0,o.nh)((0,o.$i)(0,1,"closed")),prior_strength:(0,o.nh)((0,o.$i)(.05,.4,"closed")),check_stock_match_threshold:(0,o.nh)((0,o.$i)(0,1,"closed")),masking:(0,o.nh)(L),use_condition_refinement:(0,o.nh)(o.jn),enable_mts:(0,o.nh)(o.jn),prompt_suffix:(0,o.nh)(o.HD),expanded_prompt_suffixes:(0,o.nh)((0,o.bf)(o.HD)),concept:(0,o.nh)(o.HD),timesteps_start_ratio:(0,o.nh)((0,o.$i)(0,1,"closed")),diffusion_variant:(0,o.nh)(T),content:(0,o.nh)(j),exif:(0,o.nh)(D),workflow:(0,o.nh)(N),rhlf_creativity:(0,o.nh)((0,o.$i)(0,10,"closed")),use_auto_style:(0,o.nh)(o.jn),use_keyword_style_concatenation:(0,o.nh)(o.jn),keywords_prompt:(0,o.nh)(o.HD),use_auto_keywords:(0,o.nh)(o.jn)}),M={prompt:i.nx,seed:(0,o.wY)(0,Math.pow(2,31),"half-open"),diffusionSteps:(0,o.nh)(o.hj),outputSize:(0,o.nh)(o.h0),color:(0,o.nh)(b),style:(0,o.nh)(o.HD),strength:(0,o.nh)(o.hj),guideImage:(0,o.nh)(o.um),imageFormat:(0,o.nh)(C),advanced:(0,o.nh)(((e,t)=>U(e,t)&&(0,o.wY)(0,1024,"closed")(JSON.stringify(e).length,t))),locale:(0,o.nh)(o.HD)},F={...M,enableFaceFix:(0,o.nh)(o.jn),modelInputVersion:(0,o.nh)(R)},H={tight:0,medium:.5,loose:1},z=(0,o.Q)(...Object.keys(H).map((e=>(0,o.YH)(e)))),B={...M,glyphMask:o.um,fitType:(0,o.nh)(z),padRatio:(0,o.nh)(o.hj)},G=40,K=30,V="en-us",W={dev:"Classification:diffusion-service:Service-943088ea714543dd8289374cd1e92bb6",stage:"Classification:diffusion-service:Service-7367c21c82b946e7adb3995315de18a8",prod:"Classification:diffusion-service:Service-c742bc2eaae1491987dc00daff32fc07"};function Z(e,t,r){(0,i.qk)((0,i.vU)({"sensei:engine":m(r),"sensei:outputs":{},"spl:request":{graph:{uri:"urn:graph:cancel"},params:[],inputs:{job_id:{type:"string",value:e}},outputs:{}}}),{...r,signal:void 0},{sessionID:t}).catch((()=>{}))}},85726:(e,t,r)=>{"use strict";r.d(t,{zl:()=>P,qL:()=>I,ES:()=>C,vU:()=>k,nx:()=>N,lz:()=>j,Lq:()=>U,$D:()=>D,c5:()=>T,qk:()=>O,xw:()=>R});var n=r(44793),o=r(60492),i=r(89617);class a{constructor(e,t,r){Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"begin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"end",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.headers=S.decode(r).trim().split("\r\n").map((e=>{const t=/(.*?):\s*(.*)/.exec(e),r=t?.[1],n=t?.[2];return null==r||null==n?null:{name:r,value:n}})).filter((e=>null!=e)),this.begin=e,this.end=t}toString(){let e="";for(const{name:t,value:r}of this.headers)e+=`${t}: ${r}\r\n`;return e&&e+"\r\n"}get(e){return e=e.toLowerCase(),this.headers.find((t=>t.name.toLowerCase()===e))}}function s(e){const t=/([^;]*)(;.*)?/.exec(e),[,r,n]=t;return{value:r?.trim()??"",params:null==n?void 0:Object.fromEntries(c(n))}}function*c(e){let t;for(;t=E.exec(e);){const e=t[1]?.trim()??"",r=t[2]?.trim()??"";yield[e,r.startsWith('"')?JSON.parse(r):r]}}function*u(e){for(let t=0,r=e.length;t<r;++t)yield 255&e.charCodeAt(t)}function l(e,t,r){const n=r;for(let n;(n=f(e,t,r))>=0;r+=1){const r=n+b.length+t.length;if(p(e,r))return{begin:n,end:r+b.length,type:"begin"};if(y(e,r,w)&&d(e,r+w.length))return{begin:n,end:-1,type:"end"}}throw new RangeError(`Unterminated part in multipart message, starting at offset ${n}`)}function f(e,t,r){for(let n;(n=v(e,r))>=0;r=n+b.length)if(y(e,n+b.length,t))return n;return-1}function p(e,t){return e[t]===m&&e[t+1]===g}function d(e,t){return e.length===t||p(e,t)}function h(e,t){for(let r;(r=e.indexOf(m,t))>=0;t+=1)if(y(e,r,_))return r;return-1}function v(e,t){for(let r;(r=e.indexOf(m,t))>=0;t+=1)if(e[r+1]===g)return r;return-1}function y(e,t,r){const n=r.length;if(t+n>e.length)return!1;for(let o=0;o<n;++o)if(e[t+o]!==r[o])return!1;return!0}const m="\r".charCodeAt(0),g="\n".charCodeAt(0),b=new Uint8Array(u("\r\n")),_=new Uint8Array(u("\r\n\r\n")),w=new Uint8Array(u("--")),E=/;([^=]*)(?:=\s*((?:"(?:[^"\\]|\\\\|\\")*"|[^;])*)(?=;|$))?/y,S=new TextDecoder("iso-8859-1");async function O(e,t,{fixMultipart:r,sessionID:i,transactionId:c}){const{clientID:d,fetch:v,signal:m,timeoutms:g}=t,w=T(t,"ue1"),E=new o.PM({...P(t),...A(i),Accept:"multipart/form-data",Prefer:"respond-sync, wait=100","x-api-key":d,"x-transaction-id":c??(0,o.HP)()});try{const t=await v(new URL("v2/predict",w),{body:e,headers:E,method:"POST",mode:"cors",signal:m,timeoutms:g});if(j(t.headers))throw await n.Ds.from(t,I(t));return null==r?t:async function(e,t){const r=e.headers.get("content-type");if(null==r)throw new TypeError("No Content-Type header found on request");const n=new Uint8Array(await e.arrayBuffer());let i;for(const e of function*(e,t){const r=new Uint8Array(u(`--${t}`)),n=function(e,t){if(y(e,0,t)&&p(e,t.length))return t.length+b.length;const r=function(e,t,r){for(let n;(n=f(e,t,r))>=0;r+=1)if(p(e,n+b.length+t.length))return n;return-1}(e,t,0);return r<0?-1:r+t.length+2*b.length}(e,r);if(n<0)return;let o=l(e,r,n),i=h(e,n)+_.length;if(i<_.length||i>o.begin)throw new RangeError("Invalid part in multipart message: Does not contain CRLF/CRLF");for(yield new a(n,i,e.slice(n,i));"end"!==o.type;){const t=o;if(o=l(e,r,t.end),i=h(e,t.end)+_.length,i<_.length||i>o.begin)throw new RangeError("Invalid part in multipart message: Does not contain CRLF/CRLF");yield new a(t.end,i,e.slice(t.end,i))}}(n,function(e){const{value:t,params:r}=s(e);if("multipart/form-data"!==t)throw new Error(`Unexpected content-type: '${e}'. Expected 'multipart/form-data'.`);const n=r?.boundary;if(null==n||""===n)throw new RangeError(`No boundary found in multipart/form-data content type: '${e}'`);return n}(r))){const r=e.get("content-disposition"),n=null!=r?s(r.value).params:void 0;if(null!=r&&void 0!==n?.name&&t.includes(n.name)&&"string"!=typeof n.filename){r.value+=`; filename=${JSON.stringify(n.name)}`,i=e;break}}const c=i?[n.slice(0,i.begin),i.toString(),n.slice(i.end)]:[n];return new o.HM(new o.t6(c),e)}(t,r)}catch(e){if(!(e instanceof Error))throw e;if("timeout"===e.message)throw new n.fk("TimeoutError","Request timed out.");throw e}}function k({"sensei:engine":e,"sensei:name":t,"sensei:inputs":r={},"sensei:outputs":n,"spl:request":i},a=new o.Ct){const s={"sensei:name":t??"SelectionParse v2","sensei:invocation_mode":"synchronous","sensei:invocation_batch":!1,"sensei:in_response":!1,"sensei:engines":[{"sensei:execution_info":{"sensei:engine":e},"sensei:inputs":r,"sensei:outputs":{"spl:response":{"dc:format":"application/json","sensei:multipart_field_name":"spl:response"},...n},"sensei:params":{"spl:request":i}}]};return a.set("contentAnalyzerRequests",JSON.stringify(s)),a}async function C(e){const t=e.get(M);if(null===t)throw new Error("CPF did not return spl response");const r=(0,i.HD)(t)?t:await t.text(),n=JSON.parse(r);if(!L(n))throw new Error(`CPF did not return a proper values in ${M}`);return n}const x=(0,i.X_)({value:i.hj}),L=(0,i.X_)({version:i.HD,values:(0,i.X_)({gt_GEN_STATUS:(0,i.nh)(x),gi_GEN_STATUS:(0,i.nh)(x)})});async function I(e){let t,r;try{t=await e.text(),r=JSON.parse(t)}catch(e){}return function(e,t="Invalid CPF JSON response."){let r,n,o,i;try{({status:o,statuses:i,request_id:n,...r}=e??{}),r.report=JSON.parse(r?.report)}catch(e){}return null!=r&&(null==o&&(o=function(e){if(null!=e)for(const{invocations:t}of e)if(t)for(const{message:e="",status:r=""}of t){const t=+r;if(t>399)return t;if(/\bcode=SPLCLOUD-GRPC-116\b/.test(e))return 429}}(i)),null==n&&"string"==typeof r.request_id&&(n=r.request_id)),{message:"string"==typeof r?.title?`Failed CPF request: ${r.title}`:void 0,reason:r??t,requestID:n,status:o??void 0,statuses:i}}(r,t)}function P({authType:e,authToken:t}){return"anonymous"===e?void 0:{Authorization:`Bearer ${t}`}}function A(e){return null==e?void 0:{"x-session-id":e}}function T({env:e,authType:t},r){switch(t){case"anonymous":return"ue1"===r?K[e]:z[e];case"user":return"ue1"===r?B[e]:F[e];case"service":return"ue1"===r?G[e]:H[e];default:throw new Error("unimplemented authType")}}function R(e,t,r){let n,a,s="";if((0,i.o7)(e)){const o=r?.formDataName??t,{blob:i}=e;n=[o,i],a={"dc:format":i.type,"sensei:multipart_field_name":o},s=i.type}else a={"dc:format":"image/*","sensei:repoType":"HTTP","repo:path":e.url.toString()};return{formData:n,senseiInput:{[t]:a},splInput:{[t]:{id:r?.splInputID??(0,o.HP)(),type:"image",mimeType:s}}}}function j(e){return"multipart/form-data"!==e.get("content-type")?.split(";")[0]}const N=(e,t)=>(0,i.HD)(e,t)&&(0,i.wY)(1,1024,"closed")(e.length,t);function D(e){const{value:t}=e;return{isDenied:0!=(1&t),isBlockedClassNSFW:0!=(2&t),isBlockedClassArtist:0!=(4&t),isDeniedSilent:0!=(8&t),isNotSupportedLanguage:0!=(16&t),isPostProcessingNSFW:0!=(32&t),isEmptyPrompt:0!=(64&t),isLongPrompt:0!=(128&t)}}function U(e){const t=e.headers,r=t.get("X-Credits-Consumption-Status"),n=t.get("X-Credits-Applied-Until-Date"),o={consumptionStatus:r,appliedUntilDate:Number(n)};return(0,i.RS)(o)?o:{}}const M="spl:response",F={dev:"https://sensei-stage.adobe.io/services/",stage:"https://sensei-stage.adobe.io/services/",prod:"https://sensei.adobe.io/services/"},H={dev:"https://sensei-stage.adobe.io/sensei-core/",stage:"https://sensei-stage.adobe.io/sensei-core/",prod:"https://sensei.adobe.io/sensei-core/"},z={dev:"https://senseicore-stage.adobe.io/anonymous/",stage:"https://senseicore-stage.adobe.io/anonymous/",prod:"https://sensei.adobe.io/anonymous/"},B={dev:"https://senseicore-stage-ue1.adobe.io/services/",stage:"https://senseicore-stage-ue1.adobe.io/services/",prod:"https://sensei-ue1.adobe.io/services/"},G={dev:"https://senseicore-stage-ue1.adobe.io/sensei-core/",stage:"https://senseicore-stage-ue1.adobe.io/sensei-core/",prod:"https://sensei-ue1.adobe.io/sensei-core/"},K={dev:"https://senseicore-stage-ue1.adobe.io/anonymous/",stage:"https://senseicore-stage-ue1.adobe.io/anonymous/",prod:"https://sensei-ue1.adobe.io/anonymous/"}},70270:(e,t,r)=>{"use strict";r.d(t,{U3:()=>y,xu:()=>m});var n=r(67344),o=r(60492),i=r(44793),a=r(89617),s=r(85726);async function c({ttl:e},t){const r=new o.Ct;r.set("contentAnalyzerRequests",JSON.stringify({session_ttl:e}));const{clientID:n,fetch:a}=t,c=(0,s.c5)(t,"ue1"),u=await a(new URL("session/create",c),{method:"POST",headers:{...(0,s.zl)(t),Accept:"multipart/form-data","x-api-key":n},body:r});if(!u.ok){if(401===u.status&&"anonymous"===t.authType)return t.logging.warn("Did not get a CPF Session ID for anyonymous access"),{bytesAvailable:0,sessionID:void 0};throw await i.Ds.from(u)}const l=u.headers.get("x-session-id");return null==l||""===l?(t.logging.warn("Could not create a CPF Session: Response did not contain a session ID header."),{bytesAvailable:0,sessionID:void 0}):{bytesAvailable:26214400,sessionID:l}}class u extends Error{constructor(e,t){super(e),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CPFSessionError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t}}async function l(e,t,r){if(!e)throw new u("Missing session ID","SESSION_MISSING");const{clientID:n,fetch:a}=t,c=[],l=(0,s.c5)(t,"ue1"),y=new o.Ct,m={};for(const{id:e,blob:t}of r)c.push(e),y.set(e,t),m[e]={"dc:format":t.type,"sensei:multipart_field_name":e};y.set("loadContentRequest",JSON.stringify({"sensei:inputs":m}));const g=await a(new URL("session/load",l),{method:"POST",headers:{...(0,s.zl)(t),Accept:"multipart/form-data","x-api-key":n,"x-session-id":e},body:y});if(400===g.status){let e,t=null;try{e=await g.json(),t=h(e)?JSON.parse(e.report):{}}catch(e){}switch(t?.error_code){case"SESSION_EXPIRED":throw new u("Session has expired.","SESSION_EXPIRED");case"SESSION_NOT_FOUND":throw new u("Session ID is invalid.","SESSION_INVALID")}}if(!g.ok)throw await i.Ds.from(g);let b;try{b=await g.json()}catch(e){const t=e instanceof Error?e.message:String(e);throw await i.Ds.from(g,{message:t})}if(!v(b))throw await i.Ds.from(g,{message:"Unexpected response format",reason:b});const _=b["sensei:load_status"];return c.map((e=>{return t=_[e]?.status,400===t?d:"number"==typeof t&&t<300?f:p;var t}))}const f="UPLOAD_SUCCESS",p="UPLOAD_FAILURE",d="QUOTA_EXCEEDED",h=(0,a.X_)({report:a.HD}),v=(0,a.X_)({"sensei:load_status":(0,a.p7)((0,a.X_)({status:a.hj}))});class y{constructor(e,t){Object.defineProperty(this,"_taskOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sessionFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_skipUploads",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_ttl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_state",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._taskOptions=e,this._sessionFunctions=t?.sessionFunctions??{create:c,upload:l},this._skipUploads=!0===t?.skipUploads,this._ttl=t?.ttlSeconds??3600,this._state=this._initializeSession()}async track(...e){const[t,r,n]=1===e.length?[[],void 0,e[0]]:2===e.length?[e[0],void 0,e[1]]:e,[i,a]=await Promise.all([this._getCurrentSession(),Promise.all(Array.from(t,(async e=>({blob:e,id:await(0,o.JQ)(await e.arrayBuffer())}))))]);return this._uploadTrackedIfSessionValid(i,a,n,r)}_uploadTrackedIfSessionValid(e,t,r,n){return function(e){return null!=e.sessionID}(e)?this._uploadTracked(e,t,r,n):r({sessionID:void 0})}async _uploadTracked(e,t,r,o){const{upload:i}=this._sessionFunctions,a=this._taskOptions,{sessionID:s,uploadCache:c}=e,{cachedRefs:u,needsUpload:l,resolveUploads:h}=this._skipUploads?{cachedRefs:new Map,needsUpload:t.slice(),resolveUploads:[]}:await async function({quota:e,uploadCache:t},r){const o=E(r.slice(),(({blob:t})=>t.size>e)),i=[];for(const e=[];b(t,o,e);e.length=0){const t=E(await Promise.all(e),(e=>e[1]===p));i.push(...t),E(o,(({id:e})=>t.findIndex((t=>t[0]===e))>=0))}const a=o.map((({id:e})=>{const[r,o]=(0,n.PQ)();return t.set(e,r),o}));return{cachedRefs:new Map(i),needsUpload:o,resolveUploads:a}}(e,t),v=l.length&&!this._skipUploads?await i(s,{...a,...o},l):[];v.forEach(((e,t)=>{h[t](e),e===p&&c.delete(l[t].id)}));const y=[],m=[];for(const e of t){let n;const i=l.indexOf(e);if(i<0)n=u.get(e.id)??p;else if(n=v[i]??p,n===d&&"ignore"!==o?.onQuotaExceeded)return this._uploadTrackedIfSessionValid(await this._initializeSession().session,t,r,{...o,onQuotaExceeded:"ignore"});y.push(w(e,n)),n!==f&&m.push([e.id,e.blob])}return await r({sessionID:s,handles:y,notUploaded:m})}_initializeSession(){const e=async function(e,{create:t},r){const n=g()+1e3*r,{bytesAvailable:o,sessionID:i}=await t({ttl:r},e);return{expiresMilliseconds:n,quota:o,uploadCache:new Map,remainingQuota:o,sessionID:i}}(this._taskOptions,this._sessionFunctions,this._ttl);e.then((e=>{this._state={state:"initialized",session:e}}),(e=>{this._state={state:"failed",reason:e}}));const t={state:"initializing",session:e};return this._state=t}_getCurrentSession(){const{state:e,session:t}=this._state;if("initialized"!==e||this._renewSessionIfExpired(t)){if("failed"===e)return this._initializeSession().session;{const e=()=>this._getCurrentSession();return Promise.resolve(this._state.session).then(e,e)}}return t}_renewSessionIfExpired(e){return e.expiresMilliseconds-3e5<g()&&(this._initializeSession(),!0)}}class m{async track(...e){return(1===e.length?e[0]:e[1])({sessionID:void 0})}}function g(){return performance.now()}function b(e,t,r){let n=!1;for(const{id:o}of t){const t=e.get(o);t&&(n=!0,r.push(_(o,t)))}return n}async function _(e,t){return[e,await t]}function w({blob:e,id:t},r=p){return r===f?{"dc:format":e.type,"repo:id":t,"sensei:repoType":"SESSION_CACHE"}:{"dc:format":e.type,"sensei:multipart_field_name":t}}function E(e,t){let r=e.findIndex(t);if(r<0)return e;for(let n=r+1;n<e.length;++n){const o=e[n];t(o)||(e[r++]=o)}return e.length=r,e}},20069:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FileSystemDirectoryHandle:()=>a,default:()=>s});var n=r(72032),o=r(24738);const i=Symbol("adapter");class a extends n.q{constructor(e){super(e),this.kind="directory",this[i]=e}async getDirectoryHandle(e,t={}){if(""===e)throw new TypeError("Name can't be an empty string.");if("."===e||".."===e||e.includes("/"))throw new TypeError("Name contains invalid characters.");return new a(await this[i].getDirectoryHandle(e,t))}getDirectory(e,t={}){return this.getDirectoryHandle(e,t)}async*entries(){for await(const[e,t]of this[i].entries())yield[t.name,"file"===t.kind?new o.FileSystemFileHandle(t):new a(t)]}async*getEntries(){return this.entries()}async*keys(){for await(const[e]of this[i].entries())yield e}async*values(){for await(const[e,t]of this.entries())yield t}async getFileHandle(e,t={}){if(""===e)throw new TypeError("Name can't be an empty string.");if("."===e||".."===e||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.create=!!t.create,new o.FileSystemFileHandle(await this[i].getFileHandle(e,t))}getFile(e,t={}){return this.getFileHandle(e,t)}async removeEntry(e,t={}){if(""===e)throw new TypeError("Name can't be an empty string.");if("."===e||".."===e||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.recursive=!!t.recursive,this[i].removeEntry(e,t)}async resolve(e){if(await e.isSameEntry(this))return[];const t=[{handle:this,path:[]}];for(;t.length;){let{handle:r,path:n}=t.pop();for await(const o of r.values()){if(await o.isSameEntry(e))return[...n,o.name];"directory"===o.kind&&t.push({handle:o,path:[...n,o.name]})}}return null}[Symbol.asyncIterator](){return this.entries()}}Object.defineProperty(a.prototype,Symbol.toStringTag,{value:"FileSystemDirectoryHandle",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(a.prototype,{getDirectoryHandle:{enumerable:!0},entries:{enumerable:!0},getFileHandle:{enumerable:!0},removeEntry:{enumerable:!0}});const s=a},24738:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FileSystemFileHandle:()=>i,default:()=>a});var n=r(72032);const o=Symbol("adapter");class i extends n.q{constructor(e){super(e),this.kind="file",this[o]=e}async createWritable(e={}){const{FileSystemWritableFileStream:t}=await Promise.all([r.e(707),r.e(3119)]).then(r.bind(r,53119));return new t(await this[o].createWritable(e))}async getFile(){return this[o].getFile()}}Object.defineProperty(i.prototype,Symbol.toStringTag,{value:"FileSystemFileHandle",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(i.prototype,{createWritable:{enumerable:!0},getFile:{enumerable:!0}});const a=i},72032:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});const n=Symbol("adapter");class o{constructor(e){this.kind=e.kind,this.name=e.name,this[n]=e}get isFile(){return"file"===this.kind}get isDirectory(){return"directory"===this.kind}async queryPermission(e={mode:"read"}){const t=this[n];if(t.queryPermission)return t.queryPermission(e);if("read"===e.mode)return"granted";if("readwrite"===e.mode)return t.writable?"granted":"denied";throw new TypeError(`Mode ${e.mode} must be 'read' or 'readwrite'`)}async requestPermission(e={mode:"read"}){const t=this[n];if(t.requestPermission)return t.requestPermission(e);if("read"===e.mode)return"granted";if("readwrite"===e.mode)return t.writable?"granted":"denied";throw new TypeError(`Mode ${e.mode} must be 'read' or 'readwrite'`)}async isSameEntry(e){return this===e||this.kind===e.kind&&!!e[n]&&await this[n].isSameEntry(e[n])}}Object.defineProperty(o.prototype,Symbol.toStringTag,{value:"FileSystemHandle",writable:!1,enumerable:!1,configurable:!0})},69508:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(83482);const o=function(e,t){for(var r=e.length;r--;)if((0,n.Z)(e[r][0],t))return r;return-1};var i=Array.prototype.splice;function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(e){var t=this.__data__,r=o(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))},a.prototype.get=function(e){var t=this.__data__,r=o(t,e);return r<0?void 0:t[r][1]},a.prototype.has=function(e){return o(this.__data__,e)>-1},a.prototype.set=function(e,t){var r=this.__data__,n=o(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const s=a},96614:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(51596),o=r(74938);const i=(0,n.Z)(o.Z,"Map")},31275:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});const n=(0,r(51596).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var i=Object.prototype.hasOwnProperty;function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)},a.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this};const s=a;var c=r(69508),u=r(96614);const l=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function f(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(u.Z||c.Z),string:new s}},f.prototype.delete=function(e){var t=l(this,e).delete(e);return this.size-=t?1:0,t},f.prototype.get=function(e){return l(this,e).get(e)},f.prototype.has=function(e){return l(this,e).has(e)},f.prototype.set=function(e,t){var r=l(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};const p=f},41424:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(69508);var o=r(96614),i=r(31275);function a(e){var t=this.__data__=new n.Z(e);this.size=t.size}a.prototype.clear=function(){this.__data__=new n.Z,this.size=0},a.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},a.prototype.get=function(e){return this.__data__.get(e)},a.prototype.has=function(e){return this.__data__.has(e)},a.prototype.set=function(e,t){var r=this.__data__;if(r instanceof n.Z){var a=r.__data__;if(!o.Z||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i.Z(a)}return r.set(e,t),this.size=r.size,this};const s=a},57837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=r(74938).Z.Symbol},92985:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=r(74938).Z.Uint8Array},6982:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(86127),o=r(19447),i=r(61520),a=/^(?:0|[1-9]\d*)$/;const s=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&a.test(e))&&e>-1&&e%1==0&&e<t};var c=r(83971),u=Object.prototype.hasOwnProperty;const l=function(e,t){var r=(0,o.Z)(e),a=!r&&(0,n.Z)(e),l=!r&&!a&&(0,i.Z)(e),f=!r&&!a&&!l&&(0,c.Z)(e),p=r||a||l||f,d=p?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],h=d.length;for(var v in e)!t&&!u.call(e,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,h))||d.push(v);return d}},48976:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},65674:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},11656:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(47904),o=r(83482),i=Object.prototype.hasOwnProperty;const a=function(e,t,r){var a=e[t];i.call(e,t)&&(0,o.Z)(a,r)&&(void 0!==r||t in e)||(0,n.Z)(e,t,r)}},47904:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(42898);const o=function(e,t,r){"__proto__"==t&&n.Z?(0,n.Z)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},59859:(e,t,r)=>{"use strict";r.d(t,{Z:()=>V});var n=r(41424);var o=r(11656),i=r(31189),a=r(94144);var s=r(55023);var c=r(74938),u="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=u&&"object"==typeof module&&module&&!module.nodeType&&module,f=l&&l.exports===u?c.Z.Buffer:void 0,p=f?f.allocUnsafe:void 0;var d=r(39324),h=r(11038);var v=r(7892);var y=r(567),m=r(42722),g=r(88683),b=Object.prototype.hasOwnProperty;var _=r(92985);const w=function(e){var t=new e.constructor(e.byteLength);return new _.Z(t).set(new _.Z(e)),t};var E=/\w*$/;var S=r(57837),O=S.Z?S.Z.prototype:void 0,k=O?O.valueOf:void 0;const C=function(e,t,r){var n,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return w(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?w(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?w(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,E.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=e,k?Object(k.call(n)):{}}};var x=r(50197),L=Object.create;const I=function(){function e(){}return function(t){if(!(0,x.Z)(t))return{};if(L)return L(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var P=r(26024),A=r(72269);var T=r(19447),R=r(61520),j=r(65586);var N=r(42587),D=r(43259),U=D.Z&&D.Z.isMap;const M=U?(0,N.Z)(U):function(e){return(0,j.Z)(e)&&"[object Map]"==(0,g.Z)(e)};var F=D.Z&&D.Z.isSet;const H=F?(0,N.Z)(F):function(e){return(0,j.Z)(e)&&"[object Set]"==(0,g.Z)(e)};var z="[object Arguments]",B="[object Function]",G="[object Object]",K={};K[z]=K["[object Array]"]=K["[object ArrayBuffer]"]=K["[object DataView]"]=K["[object Boolean]"]=K["[object Date]"]=K["[object Float32Array]"]=K["[object Float64Array]"]=K["[object Int8Array]"]=K["[object Int16Array]"]=K["[object Int32Array]"]=K["[object Map]"]=K["[object Number]"]=K[G]=K["[object RegExp]"]=K["[object Set]"]=K["[object String]"]=K["[object Symbol]"]=K["[object Uint8Array]"]=K["[object Uint8ClampedArray]"]=K["[object Uint16Array]"]=K["[object Uint32Array]"]=!0,K["[object Error]"]=K[B]=K["[object WeakMap]"]=!1;const V=function e(t,r,c,u,l,f){var _,w=1&r,E=2&r,S=4&r;if(c&&(_=l?c(t,u,l,f):c(t)),void 0!==_)return _;if(!(0,x.Z)(t))return t;var O=(0,T.Z)(t);if(O){if(_=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&b.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!w)return(0,d.Z)(t,_)}else{var k=(0,g.Z)(t),L=k==B||"[object GeneratorFunction]"==k;if((0,R.Z)(t))return function(e,t){if(t)return e.slice();var r=e.length,n=p?p(r):new e.constructor(r);return e.copy(n),n}(t,w);if(k==G||k==z||L&&!l){if(_=E||L?{}:function(e){return"function"!=typeof e.constructor||(0,A.Z)(e)?{}:I((0,P.Z)(e))}(t),!w)return E?function(e,t){return(0,i.Z)(e,(0,v.Z)(e),t)}(t,function(e,t){return e&&(0,i.Z)(t,(0,s.Z)(t),e)}(_,t)):function(e,t){return(0,i.Z)(e,(0,h.Z)(e),t)}(t,function(e,t){return e&&(0,i.Z)(t,(0,a.Z)(t),e)}(_,t))}else{if(!K[k])return l?t:{};_=C(t,k,w)}}f||(f=new n.Z);var j=f.get(t);if(j)return j;f.set(t,_),H(t)?t.forEach((function(n){_.add(e(n,r,c,n,t,f))})):M(t)&&t.forEach((function(n,o){_.set(o,e(n,r,c,o,t,f))}));var N=S?E?m.Z:y.Z:E?s.Z:a.Z,D=O?void 0:N(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(D||t,(function(n,i){D&&(n=t[i=n]),(0,o.Z)(_,i,e(n,r,c,i,t,f))})),_}},64694:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(65674),o=r(19447);const i=function(e,t,r){var i=t(e);return(0,o.Z)(e)?i:(0,n.Z)(i,r(e))}},61511:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(57837),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n.Z?n.Z.toStringTag:void 0;var c=Object.prototype.toString;var u=n.Z?n.Z.toStringTag:void 0;const l=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}(e):function(e){return c.call(e)}(e)}},7509:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},42587:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return function(t){return e(t)}}},39324:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},31189:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(11656),o=r(47904);const i=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),a?(0,o.Z)(r,u,l):(0,n.Z)(r,u,l)}return r}},42898:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(51596);const o=function(){try{var e=(0,n.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},35148:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},567:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(64694),o=r(11038),i=r(94144);const a=function(e){return(0,n.Z)(e,i.Z,o.Z)}},42722:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(64694),o=r(7892),i=r(55023);const a=function(e){return(0,n.Z)(e,i.Z,o.Z)}},51596:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(54049);const o=r(74938).Z["__core-js_shared__"];var i,a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";var s=r(50197),c=r(23616),u=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const v=function(e){return!(!(0,s.Z)(e)||(t=e,a&&a in t))&&((0,n.Z)(e)?h:u).test((0,c.Z)(e));var t},y=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return v(r)?r:void 0}},26024:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=(0,r(71082).Z)(Object.getPrototypeOf,Object)},11038:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(83263),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;const a=i?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(i(e),(function(t){return o.call(e,t)})))}:n.Z},7892:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(65674),o=r(26024),i=r(11038),a=r(83263);const s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,n.Z)(t,(0,i.Z)(e)),e=(0,o.Z)(e);return t}:a.Z},88683:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n=r(51596),o=r(74938);const i=(0,n.Z)(o.Z,"DataView");var a=r(96614);const s=(0,n.Z)(o.Z,"Promise"),c=(0,n.Z)(o.Z,"Set"),u=(0,n.Z)(o.Z,"WeakMap");var l=r(61511),f=r(23616),p="[object Map]",d="[object Promise]",h="[object Set]",v="[object WeakMap]",y="[object DataView]",m=(0,f.Z)(i),g=(0,f.Z)(a.Z),b=(0,f.Z)(s),_=(0,f.Z)(c),w=(0,f.Z)(u),E=l.Z;(i&&E(new i(new ArrayBuffer(1)))!=y||a.Z&&E(new a.Z)!=p||s&&E(s.resolve())!=d||c&&E(new c)!=h||u&&E(new u)!=v)&&(E=function(e){var t=(0,l.Z)(e),r="[object Object]"==t?e.constructor:void 0,n=r?(0,f.Z)(r):"";if(n)switch(n){case m:return y;case g:return p;case b:return d;case _:return h;case w:return v}return t});const S=E},72269:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},43259:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(35148),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o&&n.Z.process;const s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}()},71082:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){return function(r){return e(t(r))}}},74938:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(35148),o="object"==typeof self&&self&&self.Object===Object&&self;const i=n.Z||o||Function("return this")()},23616:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=Function.prototype.toString;const o=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},83482:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e,t){return e===t||e!=e&&t!=t}},86127:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(61511),o=r(65586);const i=function(e){return(0,o.Z)(e)&&"[object Arguments]"==(0,n.Z)(e)};var a=Object.prototype,s=a.hasOwnProperty,c=a.propertyIsEnumerable;const u=i(function(){return arguments}())?i:function(e){return(0,o.Z)(e)&&s.call(e,"callee")&&!c.call(e,"callee")}},19447:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=Array.isArray},82390:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(54049),o=r(20102);const i=function(e){return null!=e&&(0,o.Z)(e.length)&&!(0,n.Z)(e)}},61520:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(74938);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o?n.Z.Buffer:void 0;const s=(a?a.isBuffer:void 0)||function(){return!1}},60447:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(41424),o=r(31275);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new o.Z;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},i.prototype.has=function(e){return this.__data__.has(e)};const a=i,s=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},c=function(e,t,r,n,o,i){var c=1&r,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=-1,h=!0,v=2&r?new a:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var y=e[d],m=t[d];if(n)var g=c?n(m,y,d,t,e,i):n(y,m,d,e,t,i);if(void 0!==g){if(g)continue;h=!1;break}if(v){if(!s(t,(function(e,t){if(a=t,!v.has(a)&&(y===e||o(y,e,r,n,i)))return v.push(t);var a}))){h=!1;break}}else if(y!==m&&!o(y,m,r,n,i)){h=!1;break}}return i.delete(e),i.delete(t),h};var u=r(57837),l=r(92985),f=r(83482);const p=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},d=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r};var h=u.Z?u.Z.prototype:void 0,v=h?h.valueOf:void 0;var y=r(567),m=Object.prototype.hasOwnProperty;var g=r(88683),b=r(19447),_=r(61520),w=r(83971),E="[object Arguments]",S="[object Array]",O="[object Object]",k=Object.prototype.hasOwnProperty;const C=function(e,t,r,o,i,a){var s=(0,b.Z)(e),u=(0,b.Z)(t),h=s?S:(0,g.Z)(e),C=u?S:(0,g.Z)(t),x=(h=h==E?O:h)==O,L=(C=C==E?O:C)==O,I=h==C;if(I&&(0,_.Z)(e)){if(!(0,_.Z)(t))return!1;s=!0,x=!1}if(I&&!x)return a||(a=new n.Z),s||(0,w.Z)(e)?c(e,t,r,o,i,a):function(e,t,r,n,o,i,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new l.Z(e),new l.Z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=p;case"[object Set]":var u=1&n;if(s||(s=d),e.size!=t.size&&!u)return!1;var h=a.get(e);if(h)return h==t;n|=2,a.set(e,t);var y=c(s(e),s(t),n,o,i,a);return a.delete(e),y;case"[object Symbol]":if(v)return v.call(e)==v.call(t)}return!1}(e,t,h,r,o,i,a);if(!(1&r)){var P=x&&k.call(e,"__wrapped__"),A=L&&k.call(t,"__wrapped__");if(P||A){var T=P?e.value():e,R=A?t.value():t;return a||(a=new n.Z),i(T,R,r,o,a)}}return!!I&&(a||(a=new n.Z),function(e,t,r,n,o,i){var a=1&r,s=(0,y.Z)(e),c=s.length;if(c!=(0,y.Z)(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:m.call(t,l)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<c;){var v=e[l=s[u]],g=t[l];if(n)var b=a?n(g,v,l,t,e,i):n(v,g,l,e,t,i);if(!(void 0===b?v===g||o(v,g,r,n,i):b)){d=!1;break}h||(h="constructor"==l)}if(d&&!h){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,r,o,i,a))};var x=r(65586);const L=function e(t,r,n,o,i){return t===r||(null==t||null==r||!(0,x.Z)(t)&&!(0,x.Z)(r)?t!=t&&r!=r:C(t,r,n,o,e,i))},I=function(e,t){return L(e,t)}},54049:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(61511),o=r(50197);const i=function(e){if(!(0,o.Z)(e))return!1;var t=(0,n.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},50197:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},65586:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(e){return null!=e&&"object"==typeof e}},41453:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(61511),o=r(65586);const i=function(e){return"symbol"==typeof e||(0,o.Z)(e)&&"[object Symbol]"==(0,n.Z)(e)}},83971:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(61511),o=r(20102),i=r(65586),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=r(42587),c=r(43259),u=c.Z&&c.Z.isTypedArray;const l=u?(0,s.Z)(u):function(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!a[(0,n.Z)(e)]}},94144:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(6982),o=r(72269);const i=(0,r(71082).Z)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;var s=r(82390);const c=function(e){return(0,s.Z)(e)?(0,n.Z)(e):function(e){if(!(0,o.Z)(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}},55023:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(6982),o=r(50197),i=r(72269);var a=Object.prototype.hasOwnProperty;const s=function(e){if(!(0,o.Z)(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=(0,i.Z)(e),r=[];for(var n in e)("constructor"!=n||!t&&a.call(e,n))&&r.push(n);return r};var c=r(82390);const u=function(e){return(0,c.Z)(e)?(0,n.Z)(e,!0):s(e)}},32147:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Y});var n=r(48976),o=r(59859),i=r(19447),a=r(41453),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;var u=r(31275);function l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(l.Cache||u.Z),r}l.Cache=u.Z;var f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g;const d=(h=l((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(f,(function(e,r,n,o){t.push(n?o.replace(p,"$1"):r||e)})),t}),(function(e){return 500===v.size&&v.clear(),e})),v=h.cache,h);var h,v,y=r(63228);const m=function(e,t){return(0,i.Z)(e)?e:function(e,t){if((0,i.Z)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,a.Z)(e))||c.test(e)||!s.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:d((0,y.Z)(e))},g=function(e){if("string"==typeof e||(0,a.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var b=r(7509);const _=function(e,t){return t.length<2?e:function(e,t){for(var r=0,n=(t=m(t,e)).length;null!=e&&r<n;)e=e[g(t[r++])];return r&&r==n?e:void 0}(e,(0,b.Z)(t,0,-1))},w=function(e,t){return t=m(t,e),null==(e=_(e,t))||delete e[g((r=t,n=null==r?0:r.length,n?r[n-1]:void 0))];var r,n};var E=r(31189),S=r(61511),O=r(26024),k=r(65586),C=Function.prototype,x=Object.prototype,L=C.toString,I=x.hasOwnProperty,P=L.call(Object);const A=function(e){return function(e){if(!(0,k.Z)(e)||"[object Object]"!=(0,S.Z)(e))return!1;var t=(0,O.Z)(e);if(null===t)return!0;var r=I.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&L.call(r)==P}(e)?void 0:e};var T=r(65674),R=r(57837),j=r(86127),N=R.Z?R.Z.isConcatSpreadable:void 0;const D=function(e){return(0,i.Z)(e)||(0,j.Z)(e)||!!(N&&e&&e[N])},U=function e(t,r,n,o,i){var a=-1,s=t.length;for(n||(n=D),i||(i=[]);++a<s;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,o,i):(0,T.Z)(i,c):o||(i[i.length]=c)}return i},M=function(e){return null!=e&&e.length?U(e,1):[]};var F=Math.max;var H=r(42898);const z=H.Z?function(e,t){return(0,H.Z)(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:function(e){return e};var B=Date.now;const G=(K=z,V=0,W=0,function(){var e=B(),t=16-(e-W);if(W=e,t>0){if(++V>=800)return arguments[0]}else V=0;return K.apply(void 0,arguments)});var K,V,W;var Z=r(42722);const Y=function(e){return G(function(e,t,r){return t=F(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=F(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,void 0,M),e+"")}((function(e,t){var r={};if(null==e)return r;var i=!1;t=(0,n.Z)(t,(function(t){return t=m(t,e),i||(i=t.length>1),t})),(0,E.Z)(e,(0,Z.Z)(e),r),i&&(r=(0,o.Z)(r,7,A));for(var a=t.length;a--;)w(r,t[a]);return r}))},83263:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=function(){return[]}},63228:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(57837),o=r(48976),i=r(19447),a=r(41453),s=n.Z?n.Z.prototype:void 0,c=s?s.toString:void 0;const u=function e(t){if("string"==typeof t)return t;if((0,i.Z)(t))return(0,o.Z)(t,e)+"";if((0,a.Z)(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},l=function(e){return null==e?"":u(e)}},66989:(e,t,r)=>{"use strict";r.d(t,{ZT:()=>o,_T:()=>a,ev:()=>c,gn:()=>s,pi:()=>i});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},93653:e=>{"use strict";e.exports=JSON.parse('{"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/proxy/pricing","production":"https://acrobat.adobe.com/proxy/pricing"},"acrobat_web":{"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"},"assets":{"stage":"https://assets-stage.adobecc.com","production":"https://assets.adobe.com"},"behance":{"stage":"https://net.s2stagehance.com","production":"https://www.behance.net"},"adobehome":{"stage":["https://www.stage.adobe.com/home","https://www.stage.adobe.com/apps"],"production":["https://www.adobe.com/home","https://www.adobe.com/apps"]},"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"},"dcweb":{"stage":"https://dc.stage.acrobat.com","production":"https://documentcloud.adobe.com"},"experiencecloud":{"stage":"https://experiencecloud-stage.adobe.com","production":"https://experiencecloud.adobe.com"},"firefly":{"stage":"https://firefly-stage.corp.adobe.com","production":"https://firefly.adobe.com"},"firefly_nonprod":{"stage":"https://firefly-stage.corp.adobe.com","dev":"https://firefly-dev.corp.adobe.com"},"frameio":{"stage":"https://support.frame.io","production":"https://support.frame.io"},"fonts":{"stage":"https://fonts-relstage.adobe.com","production":"https://fonts.adobe.com"},"glaas":{"stage":"https://glaas.corp.adobe.com/#/home","production":"https://glaas.corp.adobe.com/#/home"},"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"},"psweb":{"stage":"https://stage.photoshop.adobe.com","production":"https://photoshop.adobe.com"},"portfolio":{"stage":"https://portfolio.ccpsx.com","production":"https://portfolio.adobe.com"},"projectx":{"stage":"https://stage.projectx.corp.adobe.com","production":["https://preview.projectx.corp.adobe.com","https://projectx.corp.adobe.com","https://new.express.adobe.com"],"regions":["AU","BR","CO","DE","ES","FR","ID","IN","IT","JP","KR","MX","TH","GB","US","ZZ"]},"projectx_nonprod":{"stage":"https://stage.projectx.corp.adobe.com","dev":["https://dev.projectx.corp.adobe.com"],"regions":["AU","BR","CO","DE","ES","FR","ID","IN","IT","JP","KR","MX","TH","GB","US","ZZ"]},"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"},"stock_contributor":{"stage":"https://contributor.stock.stage.adobe.com","production":"https://contributor.stock.adobe.com"},"spark":{"stage":"https://express-stage.adobe.com","production":["https://spark.adobe.com","https://express.adobe.com"]},"s3diweb":{"stage":["https://dev.substance3d.adobe.com/assets","https://dev.substance3d.adobe.com/community-assets","https://dev.substance3d.adobe.com/tutorials"],"production":"https://substance3d.adobe.com"},"s3diwebviewer":{"stage":["https://rte-web-viewer-develop.dev.substance3d.io","https://rte-web-viewer-beehive.dev.substance3d.io"],"production":["https://rte-web-viewer.substance3d.com"]},"commerce_ui":{"stage":"https://commerce-stg.adobe.com","production":"https://commerce.adobe.com"},"unifiedcheckout":{"stage":"https://commerce-stg.adobe.com","production":"https://commerce.adobe.com"},"unfurl":{"stage":"N/A","production":"N/A"},"xd":{"stage":"https://stage.xd.adobe.com","production":"https://xd.adobe.com"},"adobedotcom":{"stage":"https://www.stage.adobe.com","production":"https://www.adobe.com"},"adobelearn":{"stage":"https://www.stage.adobe.com/learn","production":"https://www.adobe.com/learn"}}')},84162:e=>{"use strict";e.exports=JSON.parse('{"bn":"bn-IN","mr":"mr-IN","ne":"ne-NP","sr":"sr-SP","te":"te-IN","uk":"uk-UA","pt":"pt-BR","ar-mena":"ar-x-MENA","en-africa":"en-x-AFRICA","en-cis":"en-x-CIS","en-mena":"en-x-MENA","en-sea":"en-x-SEA","es-la":"es-x-LA","ru-cis":"ru-x-CIS","zh":"zh-Hans-CN","es-419":"es-419","zh-CN":"zh-Hans-CN","zh-HK":"zh-Hant-HK","zh-TW":"zh-Hant-TW"}')},72860:e=>{"use strict";e.exports=JSON.parse('{"ar":"ar-AE","bg":"bg-BG","cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","el":"el-GR","es":"es-ES","et":"et-EE","fi":"fi-FI","fil":"fil-PH","fr":"fr-FR","id":"id-ID","he":"he-IL","hi":"hi-IN","hu":"hu-HU","it":"it-IT","ja":"ja-JP","ko":"ko-KR","lt":"lt-LT","lv":"lv-LV","ms":"ms-MY","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},74359:e=>{"use strict";e.exports=JSON.parse('{"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","hu-HU":"hu-HU","sk-SK":"sk-SK","sl-SI":"sl-SI","uk-UA":"uk-UA","hr-HR":"hr-HR","ro-RO":"ro-RO","ca-ES":"ca-ES","eu-ES":"eu-ES","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}')},62626:e=>{"use strict";e.exports=JSON.parse('{"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","eu-ES":"eu-ES","id-ID":"id-ID","ms-MY":"ms-MY","th-TH":"th-TH","vi-VN":"vi-VN","hr-HR":"hr-HR","sl-SI":"sl-SI","sk-SK":"sk-SK","uk-UA":"uk-UA","hu-HU":"hu-HU","is-IS":"is-IS","cy-GB":"cy-GB"}')},95191:e=>{"use strict";e.exports=JSON.parse('{"bg":"bg-BG","cs":"cs-CZ","da":"da-DK","de":"de-DE","el":"el-GR","en":"en-US","es":"es-ES","et":"et-EE","fi":"fi-FI","fr":"fr-FR","hu":"hu-HU","id":"id-ID","it":"it-IT","ja":"ja-JP","ko":"ko-KR","lt":"lt-LT","lv":"lv-LV","ms":"ms-MY","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-cn":"zh-Hans-CN","zh-tw":"zh-Hant-TW"}')},15215:e=>{"use strict";e.exports=JSON.parse('{"ar":"ar-AE","bg":"bg-BG","cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","el":"el-GR","es":"es-ES","et":"et-EE","fi":"fi-FI","fr":"fr-FR","id":"id-ID","he":"he-IL","hu":"hu-HU","it":"it-IT","ja":"ja-JP","ko":"ko-KR","lt":"lt-LT","lv":"lv-LV","ms":"ms-MY","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},87228:e=>{"use strict";e.exports=JSON.parse('{"mena_ar":"ar-x-MENA","ae_ar":"ar-AE","eg_ar":"ar-EG","sa_ar":"ar-SA","kw_ar":"ar-KW","qa_ar":"ar-QA","bg":"bg-BG","cz":"cs-CZ","dk":"da-DK","de":"de-DE","at":"de-AT","ch_de":"de-CH","lu_de":"de-LU","ph_fil":"fil-PH","gr_el":"el-GR","us":"en-US","ae_en":"en-AE","au":"en-AU","be_en":"en-BE","ca":"en-CA","uk":"en-GB","gr_en":"en-GR","eg_en":"en-EG","hk_en":"en-HK","ie":"en-IE","il_en":"en-IL","in":"en-IN","kw_en":"en-KW","lu_en":"en-LU","ng":"en-NG","nz":"en-NZ","sa_en":"en-SA","sg":"en-SG","th_en":"en-TH","ph_en":"en-PH","qa_en":"en-QA","id_en":"en-ID","my_en":"en-MY","vn_en":"en-VN","africa":"en-x-AFRICA","cis_en":"en-x-CIS","mena_en":"en-x-MENA","sea":"en-x-SEA","es":"es-ES","ec":"es-EC","gt":"es-GT","mx":"es-MX","cl":"es-CL","ar":"es-AR","co":"es-CO","cr":"es-CR","pe":"es-PE","pr":"es-PR","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","in_hi":"hi-IN","id_id":"id-ID","it":"it-IT","ch_it":"it-CH","jp":"ja-JP","kr":"ko-KR","lt":"lt-LT","lv":"lv-LV","my_ms":"ms-MY","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","th_th":"th-TH","tr":"tr-TR","ua":"uk-UA","vn_vi":"vi-VN","cn":"zh-Hans-CN","tw":"zh-Hant-TW","hk_zh":"zh-Hant-HK"}')},25147:e=>{"use strict";e.exports=JSON.parse('{"mena_ar":"ar-x-MENA","ae_ar":"ar-AE","eg_ar":"ar-EG","kw_ar":"ar-KW","qa_ar":"ar-QA","sa_ar":"ar-SA","bg":"bg-BG","cz":"cs-CZ","dk":"da-DK","de":"de-DE","at":"de-AT","ch_de":"de-CH","lu_de":"de-LU","gr_el":"el-GR","us":"en-US","ae_en":"en-AE","au":"en-AU","be_en":"en-BE","ca":"en-CA","cy_en":"en-CY","eg_en":"en-EG","uk":"en-GB","gr_en":"en-GR","hk_en":"en-HK","id_en":"en-ID","ie":"en-IE","il_en":"en-IL","in":"en-IN","kw_en":"en-KW","lu_en":"en-LU","mt":"en-MT","my_en":"en-MY","ng":"en-NG","nz":"en-NZ","ph_en":"en-PH","qa_en":"en-QA","sa_en":"en-SA","sg":"en-SG","th_en":"en-TH","vn_en":"en-VN","africa":"en-x-AFRICA","cis_en":"en-x-CIS","mena_en":"en-x-MENA","sea":"en-x-SEA","za":"en-ZA","es":"es-ES","ar":"es-AR","cl":"es-CL","co":"es-CO","cr":"es-CR","ec":"es-EC","gt":"es-GT","mx":"es-MX","pe":"es-PE","pr":"es-PR","la":"es-x-LA","ee":"et-EE","fi":"fi-FI","ph_fil":"fil-PH","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","in_hi":"hi-IN","id_id":"id-ID","it":"it-IT","ch_it":"it-CH","jp":"ja-JP","kr":"ko-KR","lt":"lt-LT","lv":"lv-LV","my_ms":"ms-MY","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","th_th":"th-TH","tr":"tr-TR","ua":"uk-UA","vn_vi":"vi-VN","cn":"zh-Hans-CN","tw":"zh-Hant-TW","hk_zh":"zh-Hant-HK"}')},39162:e=>{"use strict";e.exports=JSON.parse('{"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"}')},62303:e=>{"use strict";e.exports=JSON.parse('{"cy-GB":"cy-GB","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","pt-BR":"pt-BR","sv-SE":"sv-SE","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},4810:e=>{"use strict";e.exports=JSON.parse('{"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"}')},86337:e=>{"use strict";e.exports=JSON.parse('{"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","pt_PT":"pt-BR","sv_SE":"sv-SE","zh_CN":"zh-Hans-CN","zh_TW":"zh-Hant-TW"}')},60847:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","es":"es-ES","fi":"fi-FI","fr":"fr-FR","hu":"hu-HU","id":"id-ID","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},6188:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","es":"es-ES","fi":"fi-FI","fr":"fr-FR","hu":"hu-HU","id":"id-ID","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},89912:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","es":"es-ES","fi":"fi-FI","fr":"fr-FR","hu":"hu-HU","id":"id-ID","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW","cy":"cy-GB","ms":"ms-MY"}')},12738:e=>{"use strict";e.exports=JSON.parse('{"cs_CZ":"cs-CZ","cy_GB":"cy-GB","da_DK":"da-DK","de_DE":"de-DE","en_US":"en-US","es_ES":"es-ES","es_MX":"es-MX","fi_FI":"fi-FI","fr_FR":"fr-FR","fr_CA":"fr-CA","fr_MA":"fr-MA","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","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"}')},95986:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","es":"es-ES","fi":"fi-FI","fr":"fr-FR","hu":"hu-HU","id":"id-ID","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},94752:e=>{"use strict";e.exports=JSON.parse('{"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","id_ID":"id-ID","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","th_TH":"th-TH","tr_TR":"tr-TR","uk_UA":"uk-UA","vi_VN":"vi-VN","zh_CN":"zh-Hans-CN","zh_TW":"zh-Hant-TW"}')},81666:e=>{"use strict";e.exports=JSON.parse('{"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"}')},26314:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","cy":"cy-GB","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"}')},73988:e=>{"use strict";e.exports=JSON.parse('{"de":"de-DE","en":"en-US","es":"es-ES","fr":"fr-FR","ja":"ja-JP","ko":"ko-KR","pt":"pt-BR"}')},57285:e=>{"use strict";e.exports=JSON.parse('{"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"}')},48256:e=>{"use strict";e.exports=JSON.parse('{"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"}')},95538:e=>{"use strict";e.exports=JSON.parse('{"da-dk":"da-DK","de-de":"de-DE","en-us":"en-US","en-gb":"en-GB","es-es":"es-ES","fr-fr":"fr-FR","hi-in":"hi-IN","it-it":"it-IT","ja-jp":"ja-JP","ko-kr":"ko-KR","pt-br":"pt-BR","pt-pt":"pt-PT","nb-no":"nb-NO","nl-nl":"nl-NL","sv-se":"sv-SE","ru-ru":"ru-RU","cmn-hans":"zh-Hans-CN","cmn-hant":"zh-Hant-TW","zh-hk":"zh-Hant-HK"}')},92322:e=>{"use strict";e.exports=JSON.parse('{"ar":"ar-AE","bg":"bg-BG","cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","es":"es-ES","el":"el-GR","et":"et-EE","fi":"fi-FI","fr":"fr-FR","he":"he-IL","hu":"hu-HU","id":"id-ID","it":"it-IT","ja":"ja-JP","ko":"ko-KR","lt":"lt-LT","lv":"lv-LV","ms":"ms-MY","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-hans":"zh-Hans-CN","zh-hant":"zh-Hant-TW"}')},4968:e=>{"use strict";e.exports=JSON.parse('{"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"}')},22838:e=>{"use strict";e.exports=JSON.parse('{"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","ru-RU":"ru-RU","sv-SE":"sv-SE","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},81846:e=>{"use strict";e.exports=JSON.parse('{"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-BL","pt-BR":"pt-BR","ru-RU":"ru-RU","sv-SE":"sv-SE","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},54136:e=>{"use strict";e.exports=JSON.parse('{"bg-BG":"bg-BG","bn-IN":"bn-IN","cs-CZ":"cs-CZ","cy-GB":"cy-GB","da-DK":"da-DK","de-DE":"de-DE","el-GR":"el-GR","en-US":"en-US","es-ES":"es-ES","fi-FI":"fi-FI","fil-PH":"fil-PH","fr-FR":"fr-FR","hi-IN":"hi-IN","hr-HR":"hr-HR","hu-HU":"hu-HU","id-ID":"id-ID","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","mr-IN":"mr-IN","ms-MY":"ms-MY","nb-NO":"nb-NO","ne-NP":"ne-NP","nl-NL":"nl-NL","pl-PL":"pl-PL","pt-BR":"pt-BR","ro-RO":"ro-RO","ru-RU":"ru-RU","sr-SP":"sr-SP","sv-SE":"sv-SE","ta-IN":"ta-IN","te-IN":"te-IN","th-TH":"th-TH","tr-TR":"tr-TR","uk-UA":"uk-UA","vi-VN":"vi-VN","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}')},13194:e=>{"use strict";e.exports=JSON.parse('{"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","pt-BR":"pt-BR","sv-SE":"sv-SE","ru-RU":"ru-RU","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}')},96786:e=>{"use strict";e.exports=JSON.parse('{"de":"de-DE","en":"en-US","es":"es-ES","fr":"fr-FR","it":"it-IT","ja":"ja-JP","ko":"ko-KR","ru":"ru-RU","pt-BR":"pt-BR","zh-CN":"zh-Hans-CN"}')},23191:e=>{"use strict";e.exports=JSON.parse('{"ar_AE":"ar-AE","bg_BG":"bg-BG","bn_IN":"bn-IN","cs_CZ":"cs-CZ","da_DK":"da-DK","de_DE":"de-DE","el_GR":"el-GR","en_US":"en-US","en_AE":"en-AE","en_AU":"en-AU","en_IE":"en-IE","en_IN":"en-IN","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","gu_IN":"gu-IN","hi_IN":"hi-IN","he_IL":"he-IL","hu_HU":"hu-HU","hr_HR":"hr-HR","id_ID":"id-ID","is_IS":"is-IS","it_IT":"it-IT","ja_JP":"ja-JP","ko_KR":"ko-KR","lt_LT":"lt-LT","lv_LV":"lv-LV","nb_NO":"nb-NO","ne_NP":"ne-NP","nl_BE":"nl-BE","ml_IN":"ml-IN","ms_MY":"ms-MY","nl_NL":"nl-NL","ph_PH":"fil-PH","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_SP":"sr-SP","sv_SE":"sv-SE","ta_IN":"ta-IN","te_IN":"te-IN","th_TH":"th-TH","tr_TR":"tr-TR","uk_UA":"uk-UA","vi_VN":"vi-VN","zh_CN":"zh-Hans-CN","zh_TW":"zh-Hant-TW","zz_ZY":"zz-ZY","zz_ZZ":"zz-ZZ"}')},10956:e=>{"use strict";e.exports=JSON.parse('{"mena_ar":"ar-x-MENA","ae_ar":"ar-AE","sa_ar":"ar-SA","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","ae_en":"en-AE","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","sa_en":"en-SA","sg":"en-SG","th_en":"en-TH","africa":"en-x-AFRICA","cis_en":"en-x-CIS","mena_en":"en-x-MENA","sea":"en-x-SEA","es":"es-ES","mx":"es-MX","cl":"es-CL","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","th_th":"th-TH","tr":"tr-TR","ua":"uk-UA","cn":"zh-Hans-CN","tw":"zh-Hant-TW","hk_zh":"zh-Hant-HK"}')},78658:e=>{"use strict";e.exports=JSON.parse('{"bg_BG":"bg-BG","cs_CZ":"cs-CZ","da_DK":"da-DK","de_DE":"de-DE","el_GR":"el-GR","en_US":"en-US","en_AE":"en-AE","en_GB":"en-GB","en_HR":"en-HR","en_IL":"en-IL","en_KE":"en-KE","en_LK":"en-LK","en_MO":"en-MO","en_MU":"en-MU","en_NG":"en-NG","en_TT":"en-TT","en_VN":"en-VN","en_XM":"en-x-MENA","es_ES":"es-ES","es_BO":"es-BO","es_DO":"es-DO","es_LA":"es-x-LA","es_MX":"es-MX","es_NA":"es-x-NA","es_PA":"es-PA","es_PY":"es-PY","es_SV":"es-SV","es_UY":"es-UY","et_EE":"et-EE","fi_FI":"fi-FI","fil_PH":"fil-PH","fr_FR":"fr-FR","fr_CA":"fr-CA","fr_MA":"fr-MA","fr_XM":"fr-x-MENA","hi_IN":"hi-IN","hr_HR":"hr-HR","hu_HU":"hu-HU","id_ID":"id-ID","in_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","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","th_TH":"th-TH","tr_TR":"tr-TR","uk_UA":"uk-UA","vi_VN":"vi-VN","zh_HANS":"zh-Hans-CN","zh_CN":"zh-Hans-CN","zh_HANT":"zh-Hant-TW","zh_TW":"zh-Hant-TW","zh_MO":"zh-Hant-MO"}')},3078:e=>{"use strict";e.exports=JSON.parse('{"ar-ae":"ar-AE","bg-bg":"bg-BG","cs-cz":"cs-CZ","da-dk":"da-DK","de-de":"de-DE","el-gr":"el-GR","en-us":"en-US","en-gb":"en-GB","en-il":"en-IL","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-ca":"fr-CA","he-il":"he-IL","hr-hr":"hr-HR","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","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-Latn-RS","sv-se":"sv-SE","th-th":"th-TH","tr-tr":"tr-TR","uk-ua":"uk-UA","vi-vn":"vi-VN","zh-cn":"zh-Hans-CN","zh-tw":"zh-Hant-TW"}')},56985:e=>{"use strict";e.exports=JSON.parse('{"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-SI","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"}')},78509:e=>{"use strict";e.exports=JSON.parse('{"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"}')},76680:e=>{"use strict";e.exports=JSON.parse('{"ar_AE":"ar-AE","bg_BG":"bg-BG","cs_CZ":"cs-CZ","da_DK":"da-DK","de_DE":"de-DE","el_GR":"el-GR","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","id_ID":"id-ID","it_IT":"it-IT","ja_JP":"ja-JP","ko_KR":"ko-KR","ms_MY":"ms-MY","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-Latn-RS","sv_SE":"sv-SE","th_TH":"th-TH","tr_TR":"tr-TR","uk_UA":"uk-UA","vi_VN":"vi-VN","zh_CN":"zh-Hans-CN","zh_HK":"zh-Hant-HK","zh_TW":"zh-Hant-TW"}')},90348:e=>{"use strict";e.exports=JSON.parse('{"ae_ar":"ar-AE","eg_ar":"ar-EG","kw_ar":"ar-KW","qa_ar":"ar-QA","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","gr_el":"el-GR","us":"en-US","ae_en":"en-AE","au":"en-AU","be_en":"en-BE","ca":"en-CA","cy_en":"en-CY","eg_en":"en-EG","uk":"en-GB","gr_en":"en-GR","hk_en":"en-HK","id_en":"en-ID","ie":"en-IE","il_en":"en-IL","in":"en-IN","kw_en":"en-KW","lu_en":"en-LU","mt":"en-MT","my_en":"en-MY","ng":"en-NG","nz":"en-NZ","ph_en":"en-PH","sa_en":"en-SA","sg":"en-SG","qa_en":"en-QA","th_en":"en-TH","vn_en":"en-VN","za":"en-ZA","africa":"en-x-AFRICA","mena_en":"en-x-MENA","es":"es-ES","ar":"es-AR","cl":"es-CL","co":"es-CO","cr":"es-CR","ec":"es-EC","gt":"es-GT","mx":"es-MX","pe":"es-PE","pr":"es-PR","ee":"et-EE","fi":"fi-FI","ph_fil":"fil-PH","fr":"fr-FR","be_fr":"fr-BE","ca_fr":"fr-CA","ch_fr":"fr-CH","lu_fr":"fr-LU","il_he":"he-IL","in_hi":"hi-IN","hu":"hu-HU","id_id":"id-ID","it":"it-IT","ch_it":"it-CH","jp":"ja-JP","kr":"ko-KR","lt":"lt-LT","lv":"lv-LV","my_ms":"ms-MY","no":"nb-NO","nl":"nl-NL","be_nl":"nl-BE","pl":"pl-PL","br":"pt-BR","pt":"pt-PT","ro":"ro-RO","ru":"ru-RU","sk":"sk-SK","si":"sl-SI","se":"sv-SE","th_th":"th-TH","tr":"tr-TR","ua":"uk-UA","vn_vi":"vi-VN","tw":"zh-Hant-TW","hk_zh":"zh-Hant-HK"}')},13627:e=>{"use strict";e.exports=JSON.parse('{"au":"en-AU","nz":"en-NZ"}')},67861:e=>{"use strict";e.exports=JSON.parse('{"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"}')},38571:e=>{"use strict";e.exports=JSON.parse('{"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"}')},33270:e=>{"use strict";e.exports=JSON.parse('{"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","id-ID":"id-ID","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","ms-MY":"ms-MY","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-TW":"zh-Hant-TW","zh-HK":"zh-Hant-HK"}')},79732:e=>{"use strict";e.exports=JSON.parse('{"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"}')},64659:e=>{"use strict";e.exports=JSON.parse('{"bn-IN":"bn-IN","cy-GB":"cy-GB","da-DK":"da-DK","de-DE":"de-DE","el-GR":"el-GR","en-US":"en-US","es-ES":"es-ES","fi-FI":"fi-FI","fil-PH":"fil-PH","fr-FR":"fr-FR","hi-IN":"hi-IN","id-ID":"id-ID","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","ms-MY":"ms-MY","nb-NO":"nb-NO","nl-NL":"nl-NL","pl-PL":"pl-PL","pt-BR":"pt-BR","ro-RO":"ro-RO","sv-SE":"sv-SE","ta-IN":"ta-IN","th-TH":"th-TH","tr-TR":"tr-TR","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},62667:e=>{"use strict";e.exports=JSON.parse('{"bn-IN":"bn-IN","cs-CZ":"cs-CZ","cy-GB":"cy-GB","da-DK":"da-DK","de-DE":"de-DE","el-GR":"el-GR","en-US":"en-US","es-ES":"es-ES","fi-FI":"fi-FI","fil-PH":"fil-PH","fr-FR":"fr-FR","hi-IN":"hi-IN","hu-HU":"hu-HU","hr-HR":"hr-HR","it-IT":"it-IT","id-ID":"id-ID","ja-JP":"ja-JP","ko-KR":"ko-KR","mr-IN":"mr-IN","ms-MY":"ms-MY","nb-NO":"nb-NO","ne-NP":"ne-NP","nl-NL":"nl-NL","pl-PL":"pl-PL","pt-BR":"pt-BR","ro-RO":"ro-RO","sr-SP":"sr-SP","sv-SE":"sv-SE","ta-IN":"ta-IN","te-IN":"te-IN","th-TH":"th-TH","tr-TR":"tr-TR","uk-UA":"uk-UA","vi-VN":"vi-VN","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},39867:e=>{"use strict";e.exports=JSON.parse('{"en":"en-US","en_GB":"en-GB","cs":"cs-CZ","da":"da-DK","de":"de-DE","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","uk":"uk-UA","zh_Hans":"zh-Hans-CN","zh_Hant":"zh-Hant-TW"}')},3716:e=>{"use strict";e.exports=JSON.parse('{"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"}')},36232:e=>{"use strict";e.exports=JSON.parse('{"bn-IN":"bn-IN","cs-CZ":"cs-CZ","cy-GB":"cy-GB","da-DK":"da-DK","de-DE":"de-DE","el-GR":"el-GR","en-US":"en-US","es-ES":"es-ES","fi-FI":"fi-FI","fil-PH":"fil-PH","fr-FR":"fr-FR","hi-IN":"hi-IN","hu-HU":"hu-HU","id-ID":"id-ID","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","ms-MY":"ms-MY","nb-NO":"nb-NO","ne-NP":"ne-NP","nl-NL":"nl-NL","pl-PL":"pl-PL","pt-BR":"pt-BR","ro-RO":"ro-RO","ru-RU":"ru-RU","sv-SE":"sv-SE","ta-IN":"ta-IN","th-TH":"th-TH","tr-TR":"tr-TR","uk-UA":"uk-UA","vi-VN":"vi-VN","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},33194:e=>{"use strict";e.exports=JSON.parse('{"ar-AE":"ar-AE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","da-DK":"da-DK","de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","et-EE":"et-EE","fi-FI":"fi-FI","fr-FR":"fr-FR","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-SP":"sr-Latn-RS","sv-SE":"sv-SE","tr-TR":"tr-TR","uk-UA":"uk-UA","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW"}')},87182:e=>{"use strict";e.exports=JSON.parse('{"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"}')},37754:e=>{"use strict";e.exports=JSON.parse('{"de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","fr-FR":"fr-FR","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","pt-BR":"pt-BR","zh-Hans":"zh-Hans-CN"}')},6352:e=>{"use strict";e.exports=JSON.parse('{"cs-CZ":"cs-CZ","da-DK":"da-DK","de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","es-MX":"es-MX","fi-FI":"fi-FI","fr-CA":"fr-CA","fr-FR":"fr-FR","hu-HU":"hu-HU","id-ID":"id-ID","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","th-TH":"th-TH","tr-TR":"tr-TR","uk-UA":"uk-UA","vi-VN":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},60107:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","cy":"cy-GB","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","uk":"uk-UA","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},21311:e=>{"use strict";e.exports=JSON.parse('{"cy-GB":"cy-GB","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"}')},80240:e=>{"use strict";e.exports=JSON.parse('{"cy-GB":"cy-GB","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","pt-BR":"pt-BR","sv-SE":"sv-SE","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},85990:e=>{"use strict";e.exports=JSON.parse('{"bg":"bg-BG","cz":"cs-CZ","dk":"da-DK","de":"de-DE","at":"de-AT","ch_de":"de-CH","lu_de":"de-LU","gr_en":"el-GR","cy_en":"el-CY","us":"en-US","be_en":"en-BE","ca":"en-CA","au":"en-AU","uk":"en-GB","ie":"en-IE","lu_en":"en-LU","nz":"en-NZ","ph":"en-PH","sg":"en-SG","es":"es-ES","ar":"es-AR","cl":"es-CL","co":"es-CO","cr":"es-CR","ec":"es-EC","gt":"es-GT","mx":"es-MX","pe":"es-PE","ve":"es-VE","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-IL","in":"hi-IN","hu":"hu-HU","it":"it-IT","ch_it":"it-CH","jp":"ja-JP","kr":"ko-KR","lt":"lt-LT","lv":"lv-LV","mt":"mt-MT","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","tr":"tr-TR","ua":"uk-UA","tw":"zh-Hant-TW","hk":"zh-Hant-HK","id":"id-ID","my":"ms-MY"}')},89856:e=>{"use strict";e.exports=JSON.parse('{"cs_CZ":"cs-CZ","da_DK":"da-DK","de_AT":"de-AT","de_CH":"de-CH","de_DE":"de-DE","de_LU":"de-LU","en_US":"en-US","cy_EN":"en-CY","be_EN":"en-BE","ca_EN":"en-CA","en_AE":"en-AE","en_AU":"en-AU","en_BG":"en-BG","en_BH":"en-BH","en_DZ":"en-DZ","en_EE":"en-EE","en_EG":"en-EG","en_FI":"en-FI","en_HR":"en-HR","en_HU":"en-HU","en_ID":"en-ID","en_IE":"en-IE","en_IL":"en-IL","en_JO":"en-JO","en_KE":"en-KE","en_KW":"en-KW","en_LB":"en-LB","en_LK":"en-LK","en_LT":"en-LT","en_LV":"en-LV","en_MA":"en-MA","en_MT":"en-MT","en_MY":"en-MY","en_NG":"en-NG","en_NZ":"en-NZ","en_OM":"en-OM","en_QA":"en-QA","en_RO":"en-RO","en_SA":"en-SA","en_SI":"en-SI","en_SK":"en-SK","en_TH":"en-TH","en_TR":"en-TR","en_UA":"en-UA","en_UK":"en-UK","en_VN":"en-VN","gr_EN":"en-GR","lu_EN":"lu-EN","es_ES":"es-ES","es_BO":"es-BO","es_DO":"es-DO","es_MX":"es-MX","es_PA":"es-PA","es_PY":"es-PY","es_SV":"es-SV","fr_FR":"fr-FR","fr_CA":"fr-CA","fr_BE":"fr-BE","fr_CH":"fr-CH","fr_LU":"fr-LU","fr_MA":"fr-MA","it_IT":"it-IT","it_CH":"it-CH","ja_JP":"ja-JP","ko_KR":"ko-KR","nb_NO":"nb-NO","nl_NL":"nl-NL","nl_BE":"nl-BE","pl_PL":"pl-PL","pt_BR":"pt-BR","pt_PT":"pt-PT","ru_RU":"ru-RU","ru_KZ":"ru-KZ","ru_UZ":"ru-UZ","sv_SE":"sv-SE"}')},67760:e=>{"use strict";e.exports=JSON.parse('{"bg":"bg-BG","cz":"cs-CZ","dk":"da-DK","de":"de-DE","at":"de-AT","ch_de":"de-CH","lu_de":"de-LU","gr_en":"el-GR","cy_en":"el-CY","en":"en-US","be_en":"en-BE","ca":"en-CA","au":"en-AU","uk":"en-GB","ie":"en-IE","lu_en":"en-LU","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","mt":"mt-MT","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","tr":"tr-TR","ua":"uk-UA"}')},14141:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","cy":"cy-GB","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"}')},89183:e=>{"use strict";e.exports=JSON.parse('{"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"}')},47029:e=>{"use strict";e.exports=JSON.parse('{"bg":"bg-BG","cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","el":"el-GR","es":"es-ES","et":"et-EE","fi":"fi-FI","fr":"fr-FR","hu":"hu-HU","id":"id-ID","it":"it-IT","ja":"ja-JP","ko":"ko-KR","lt":"lt-LT","lv":"lv-LV","ms":"ms-MY","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","th":"th-TH","tr":"tr-TR","uk":"uk-UA","vi":"vi-VN","zh-hant":"zh-Hant-TW"}')},76586:e=>{"use strict";e.exports=JSON.parse('{"cy-GB":"cy-GB","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","pt-BR":"pt-BR","sv-SE":"sv-SE","zh-Hans-CN":"zh-Hans-CN","zh-Hant-TW":"zh-Hant-TW"}')},76436:e=>{"use strict";e.exports=JSON.parse('{"cs":"cs-CZ","da":"da-DK","de":"de-DE","en":"en-US","es":"es-ES","fi":"fi-FI","fr":"fr-FR","hu":"hu-HU","id":"id-ID","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","vi":"vi-VN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW"}')},48062:e=>{"use strict";e.exports=JSON.parse('{"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_PT":"pt-PT","pt_BR":"pt-BR","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_TW":"zh-Hant-TW","cy_GB":"cy-GB","ar_AE":"ar-AE","bg_BG":"bg-BG","et_EE":"et-EE","el_GR":"el-GR","id_ID":"id-ID","he_IL":"he-IL","hi_IN":"hi-IN","lv_LV":"lv-LV","ms_MY":"ms-MY","fil_PH":"fil-PH","ro_RO":"ro-RO","sk_SK":"sk-SK","vi_VN":"vi-VN","sl_SL":"sl-SL","lt_LT":"lt-LT"}')},40152:e=>{"use strict";e.exports=JSON.parse('{"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","fi_FI":"fi-FI","fr_FR":"fr-FR","fr_CA":"fr-CA","hu_HU":"hu-HU","it_IT":"it-IT","id_ID":"id-ID","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","th_TH":"th-TH","tr_TR":"tr-TR","uk_UA":"uk-UA","vi_VN":"vi-VN","zh_CN":"zh-Hans-CN","zh_TW":"zh-Hant-TW"}')},11484:e=>{"use strict";e.exports=JSON.parse('{"cs_CZ":"cs-CZ","cy_GB":"cy-GB","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"}')},28553:e=>{"use strict";e.exports=JSON.parse('{"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","es_ES":"es-ES","es_MX":"es-MX","fi_FI":"fi-FI","fr_FR":"fr-FR","fr_CA":"fr-CA","fr_MA":"fr-MA","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","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","de_AT":"de-AT","de_CH":"de-CH","de_LU":"de-LU","en_ZA":"en-x-AFRICA","en_AU":"en-AU","en_BE":"en-BE","en_CA":"en-CA","en_LU":"en-LU","en_MENA":"en-x-MENA","en_MT":"en-MT","en_NZ":"en-NZ","en_SA":"en-SA","en_SG":"en-SG","en_TH":"en-TH","en_IN":"en-IN","en_IE":"en-IE","en_GR":"en-GR","en_HK":"en-HK","en_CY":"en-CY","en_PH":"en-PH","en_ID":"en-ID","en_MY":"en-MY","en_VN":"en-VN","es_LA":"es-x-LA","es_CL":"es-CL","es_AR":"es-AR","es_PE":"es-PE","es_CO":"es-CO","fr_BE":"fr-BE","fr_CH":"fr-CH","fr_LU":"fr-LU","it_CH":"it-CH","nl_BE":"nl-BE","pt_PT":"pt-PT","zh_HK":"zh-Hant-HK","bg_BG":"bg-BG","et_EE":"et-EE","he_IL":"he-IL","lt_LT":"lt-LT","lv_LV":"lv-LV","ar_MENA":"ar-x-MENA","ar_AE":"ar-AE","ar_SA":"ar-SA","ro_RO":"ro-RO","sl_SL":"sl-SL","sk_SK":"sk-SK","th_TH":"th-TH","fil_PH":"fil-PH","id_ID":"id-ID","ms_MY":"ms-MY","vi_VN":"vi-VN","hi_IN":"hi-IN"}')},7143:e=>{"use strict";e.exports=JSON.parse('{"de-DE":"de-DE","en-US":"en-US","es-ES":"es-ES","fr-FR":"fr-FR","it-IT":"it-IT","ja-JP":"ja-JP","ko-KR":"ko-KR","pt-BR":"pt-BR","ru-RU":"ru-RU"}')},7340:e=>{"use strict";e.exports=JSON.parse('{"AF":[],"AX":[],"AL":[],"DZ":["en","fr","ar"],"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"],"CX":[],"CC":["en"],"CO":["es"],"KM":[],"CG":["en","fr"],"CD":["en","fr"],"CK":[],"CR":["es"],"CI":["en","fr"],"HR":["hr","en"],"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":["el","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"],"HU":["hu"],"IS":[],"IN":["en","bn","hi","ta","te","mr"],"ID":["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":["en","ar"],"LS":["en"],"LR":["en"],"LY":["ar"],"LI":[],"LT":["lt"],"LU":["en","de","fr"],"MO":["en","zh-Hant"],"MK":[],"MG":["en","fr"],"MW":[],"MY":["ms","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":["en","fr","ar"],"MZ":["pt"],"MM":[],"NA":["en"],"NR":[],"NP":["ne"],"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","fil"],"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","ca","eu"],"LK":["en"],"SD":[],"SR":["nl"],"SJ":[],"SZ":[],"SE":["sv"],"CH":["de","fr","it"],"SY":[],"TW":["zh-Hant"],"TJ":["ru","en"],"TZ":["en"],"TH":["th","en"],"TL":[],"TG":[],"TK":[],"TO":[],"TT":["en"],"TN":["en","fr","ar"],"TR":["tr"],"TM":["en","ru"],"TC":["en"],"TV":[],"UG":["en"],"UA":["uk"],"AE":["en","ar"],"GB":["en"],"US":["en"],"UM":[],"UY":["es"],"UZ":["ru","en"],"VU":[],"VE":["es"],"VN":["vi","en"],"VG":["en"],"VI":[],"WF":[],"EH":[],"YE":["en","ar"],"ZM":["en"],"ZW":["en"]}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=o,e=[],a.O=(t,r,n,o)=>{if(!r){var i=1/0;for(l=0;l<e.length;l++){for(var[r,n,o]=e[l],s=!0,c=0;c<r.length;c++)(!1&o||i>=o)&&Object.keys(a.O).every((e=>a.O[e](r[c])))?r.splice(c--,1):(s=!1,o<i&&(i=o));if(s){e.splice(l--,1);var u=n();void 0!==u&&(t=u)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[r,n,o]},a.F={},a.E=e=>{Object.keys(a.F).map((t=>{a.F[t](e)}))},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};t=t||[null,r({}),r([]),r(r)];for(var s=2&n&&e;"object"==typeof s&&!~t.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>"js/chunk."+{12:"cb05f27d5591dd3acf0e",13:"0559d64d923e87ce880e",45:"3d46fff281f9a36961fb",190:"171fe489d5473c7af7f8",273:"1a360dbeeb4f785154ec",281:"7ed1bb3777f9d5b7bc5a",311:"499b3991bde4fac0257d",340:"aa00457431eb925de6b1",350:"192f596e226409772e2b",518:"ffab9ae9bd9c2ec593b8",532:"f3a82fdd3106bf8b3795",694:"17575083f8bf537b6b54",706:"3057f302e0d8deacb639",707:"1250134f9606e6077cf3",721:"c2c180b1d1112fd30c23",774:"fceb9952ec078a6f1c88",805:"cc8235008ab08896ff5e",850:"2372135f7727e0c3f194",902:"19cac405d134a7f38e1c",936:"374321eee100e10e8376",1080:"51a0f8a3e5b670b15d5c",1108:"2191d582fb1e1c652601",1247:"b387376fb058d8b72c46",1293:"8d97fa706e6ccedaaecc",1342:"42654575631232341f26",1345:"f79f637fb2178998fbcb",1390:"53685ce6a8e1d9c09ff6",1413:"fdec2bd923fa9f8d0ca0",1431:"412ca508466ddc774d73",1472:"1fe75d5c9e262a085475",1537:"91fcdb147ae1d479f639",1549:"853f48e5ef98f661508f",1578:"201792213f6994e6f248",1588:"6d309ac9aa588d2c50fc",1602:"e015fb76dbe9317b8bc1",2046:"0b2e6e854665d13c222f",2075:"3f12698d02944b78387a",2108:"c378ece64c040ec4ba4e",2267:"c7fa9e59d8b69e11237a",2311:"3be82aa8270a6782edf2",2415:"c0cacbc5ece665eb64b5",2478:"208e299ada70782084c8",2485:"6166eca3341e1a94afe8",2508:"4516509a8d75a6aa5d44",2568:"994eec506b02f2a555b5",2627:"bee6e4496ee1bbcc202e",2643:"4ca19d932aeccc74fcc1",2721:"46f928bc665db942fa64",2771:"d7692a37bf89b1705b57",2849:"ae06ef90f972838c1d76",2911:"c75bdd5e976ec30ba640",2998:"8862c1a0b3b076503c64",3082:"1ac316f670cb02435635",3119:"c9fe9ad2e7602f8b6ce3",3259:"8304a5973b1c285243f9",3278:"eaf36a4037b1cc06af00",3410:"a38c442eb0bec3247d19",3545:"15fa4a52fa9e9c75ad5d",3575:"0095702238e4f29bb7d0",3609:"27427a484027b9b8e05b",3657:"2e7451806d4df8593adc",3725:"513835efd39ad09447b9",3783:"51a6a5b108a61e20e68e",3824:"f16e4608862ee6450181",3840:"9edd5382f844d146b6fc",3854:"9a62559403def162c721",3865:"6fe5e445f261f9fa354c",3937:"5de4aa095c907fa26491",3964:"f728ccf32520126fcebf",3993:"632fad29d998773d6656",4017:"472b9743d3817791c59e",4209:"683e891558ece4956fc6",4220:"b3fe5d411af4d3c144fe",4285:"087a93367f39ae4d2cc7",4405:"ed89adf5ac3361991b8c",4563:"29e1f7b66b4d19065e7a",4567:"dc6084b7887e6fa91e17",4659:"a8aec00296e9bacafed9",4680:"ae1e2670678c2fa9593c",4727:"07c4967a8329179aca1d",4852:"f97293c80fa5c4e56669",4854:"d8ac60673f0261084ed1",4872:"9cc4f8806901698fa04b",4962:"41ff6ed1bb9f0d823ae5",5051:"344dbf742b119a911d1c",5067:"fe5f08026dcd792ccf9c",5094:"b633f1cde93e5cdeccbe",5129:"493d598cf51134ca7177",5181:"34055a2b41ed799fc362",5251:"95ea647b152908f46b7f",5259:"dd6777bb49241c610478",5276:"6a2f8eb78bc6d98d9189",5300:"99767ff607dd62012f82",5328:"89835fe4f6f0b6ba389c",5387:"be98acb50e4bd3273b2e",5406:"fe738126c9bd72b064ee",5566:"516b3c3611490f931282",5567:"8672775cfd28776b2afb",5739:"ff961dcdffb37d81147c",5793:"6f3e8732a05512b219c0",5854:"5a14de5e60cae83921ba",5907:"cc90ce6d7b1f35d0c459",6056:"c3951ab1e63b2bba7ddc",6076:"2fd25726ead61b2e96b2",6086:"f3067782a960ba2ff409",6135:"f5fc676582c46a58e5d0",6250:"18b3cf4f6e29340c4008",6522:"557f269e1cafa77087ee",6608:"c8630065161e5f3d0b39",6630:"2d96e3e8fc20db953cef",6730:"e6b4260f24ef295a59ef",6749:"d8bed81fe23289b92483",6754:"55600a4c64a56f666eab",6769:"7f15a934e00bc56df5d7",6799:"ebf87d8085ee268b740c",6817:"9d3aad7e075afc37c850",6861:"6ce4bdfee8e8d53f2726",6925:"f68174298d15bca22002",6994:"0949a6e69a21fb30bece",7201:"8bb0f832ebf4b7ede50d",7234:"70b86db3ab947ba57750",7250:"17a31effa853d8a40ec2",7313:"59ce8911efcc26dc7e29",7399:"e7052d874bee8f25f8b1",7406:"260294833ecb77c5b2cc",7514:"6fef9bc5e6fcc9c38a3b",7527:"9fabeed99f3de514207b",7543:"784b557f4874ca50293a",7554:"cf70d598a3126c8648da",7613:"5660f4ef99342abd512a",7639:"2d8f095e431632ccda26",7653:"04b6252236aadaba93fd",7711:"9cbb49c69a2865f16b0b",7752:"47ebfd91d01633864120",7809:"6bef3e1edc6493bd9d3f",7889:"d31ee3028d8dcdd49e09",8013:"a9e388dd202454064100",8055:"0cbf6ec4225a9a2073c3",8094:"63ed04f07d164a69e270",8165:"51f3a3184a4bd32fd5fb",8298:"490926353b27d5b41712",8337:"bd29dc538d911331735c",8363:"2f1cb958101422068c1b",8397:"2f32683fce7528e1a998",8569:"af7f5f171037c809ed94",8581:"828eb51c61163c2c87e5",8676:"bdfeb3a52877867b1d23",8758:"330d3675f4974fd00287",8835:"18f7867870b7fa590f2a",9017:"e864cc6e1174d606c174",9028:"b12a63647b4576551187",9051:"3d3db9fc6e42a4c81227",9126:"3e5e7a126831ef862a82",9182:"b36bca40aa0c5439dc1c",9252:"9f86f0dd18b61c37e19d",9302:"cb5212b3f1760cd1a992",9405:"58eb8d020faa16ab693c",9438:"b7a36c3745caf925eb34",9480:"1cbe81cd1fe9d1750660",9731:"71ddcbd0797eb43c6218",9794:"32717c33070f8c679ef5",9832:"6dd2d20566f0da44642e",9923:"fe5c81b2f43818904410",9946:"fecc90ec07e42bc17332"}[e]+".min.js",a.miniCssF=e=>"styles.79d6bb6a702940950aab.css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a.l=(e,t,r,o)=>{if(n[e])n[e].push(t);else{var i,s;if(void 0!==r)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var l=c[u];if(l.getAttribute("src")==e){i=l;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=e),n[e]=[t];var f=(t,r)=>{i.onerror=i.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="/",(()=>{if("undefined"!=typeof document){var e={179:0};a.f.miniCss=(t,r)=>{e[t]?r.push(e[t]):0!==e[t]&&{532:1}[t]&&r.push(e[t]=(e=>new Promise(((t,r)=>{var n=a.miniCssF(e),o=a.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===e||o===t)return a}})(n,o))return t();((e,t,r,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=s,i.parentNode&&i.parentNode.removeChild(i),o(c)}},i.href=t,document.head.appendChild(i)})(e,o,0,t,r)})))(t).then((()=>{e[t]=0}),(r=>{throw delete e[t],r})))}}})(),(()=>{a.b=document.baseURI||self.location.href;var e={179:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(532!=t){var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}else e[t]=0},a.F.j=t=>{if((!a.o(e,t)||void 0===e[t])&&532!=t){e[t]=null;var r=document.createElement("link");a.nc&&r.setAttribute("nonce",a.nc),r.rel="prefetch",r.as="script",r.href=a.p+a.u(t),document.head.appendChild(r)}},a.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[i,s,c]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(c)var l=c(a)}for(t&&t(r);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(l)},r=self.webpackChunk=self.webpackChunk||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0,a.O(0,[179],(()=>{a.E(8397)}),5);var s={};(()=>{"use strict";a(11579),Promise.all([a.e(532),a.e(9438),a.e(6522)]).then(a.bind(a,90800))})(),s=a.O(s)})();